]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Implement deep copy of wxBitmapRefData
[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]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2641
093d3ff1 2642/* -------- TYPES TABLE (END) -------- */
d14a1e28 2643
0085ce49
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d14a1e28 2658
093d3ff1
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d14a1e28 2663
093d3ff1 2664#define SWIG_name "_gdi_"
d14a1e28 2665
0085ce49 2666#define SWIGVERSION 0x010329
d14a1e28 2667
d14a1e28 2668
0085ce49
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2671
2672
0085ce49
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
093d3ff1 2684 }
0085ce49
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
093d3ff1 2689 }
0085ce49
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
093d3ff1 2719}
d14a1e28 2720
994141e6 2721
0085ce49
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
69223c70 2731 }
0085ce49 2732 };
15afbcd0
RD
2733}
2734
2735
0085ce49
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
01f6b6d3
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
0085ce49
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
b88bce5f 2762
b88bce5f 2763
50efceee
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
093d3ff1 2775SWIGINTERN int
0085ce49 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2780 return SWIG_TypeError;
093d3ff1
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
0085ce49 2784 return SWIG_OK;
093d3ff1 2785}
d14a1e28
RD
2786
2787
093d3ff1 2788SWIGINTERN int
0085ce49
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
093d3ff1 2791 unsigned long v;
0085ce49
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
093d3ff1 2796 } else {
0085ce49 2797 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2798 }
0085ce49
RD
2799 }
2800 return res;
093d3ff1 2801}
33b885b9 2802
d14a1e28 2803
0085ce49
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2806{
0085ce49
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2809}
d14a1e28 2810
d14a1e28 2811
0085ce49
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d14a1e28 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
093d3ff1
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
093d3ff1
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2871 return rv;
2872 }
0085ce49 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d14a1e28 2876
0085ce49
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2879{
0085ce49
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d14a1e28
RD
2890}
2891
0085ce49 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
0085ce49 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2909
093d3ff1
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
0085ce49
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2926
fc46b7f3
RD
2927#include <wx/rawbmp.h>
2928
2929
8f514ab4
RD
2930// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931// appears to me that the other platforms are already doing it, so I'll just
2932// automatically do it for wxMSW here.
2933#ifdef __WXMSW__
2934#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936#else
2937#define wxPy_premultiply(p, a) (p)
2938#define wxPy_unpremultiply(p, a) (p)
2939#endif
2940
2941
093d3ff1 2942#include <wx/image.h>
b88bce5f 2943
093d3ff1
RD
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
b88bce5f 2960 }
b88bce5f
RD
2961
2962
0085ce49 2963SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
0085ce49 2974SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
0085ce49 2980SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
0085ce49 2984SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
0085ce49 2988SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
8f514ab4
RD
2992SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
fc46b7f3 2995
8f514ab4
RD
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
fc46b7f3 3006
8f514ab4
RD
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
0085ce49 3202SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3203 if ( !colour.IsOk() )
093d3ff1
RD
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
d14a1e28 3208
093d3ff1 3209#include <wx/iconbndl.h>
d14a1e28 3210
0085ce49 3211SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
0085ce49 3216SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3217 char** cArray = NULL;
3218 wxIcon* icon;
d14a1e28 3219
093d3ff1
RD
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
0085ce49 3227SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3228
3229
d14a1e28 3230
093d3ff1 3231 return new wxIconLocation(*filename);
d14a1e28 3232
093d3ff1 3233 }
0085ce49 3234SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3235
3236
d14a1e28 3237
093d3ff1 3238 // do nothing
d14a1e28 3239
093d3ff1 3240 }
0085ce49 3241SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3242
3243
093d3ff1
RD
3244
3245 return -1;
3246
3247 }
0085ce49 3248SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3249#ifdef __WXGTK__
7557b9b5
RD
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
093d3ff1 3254#else
7557b9b5 3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3256#endif
3257 }
3258
3259
0085ce49 3260SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3261 (*self) ++;
3262 }
0085ce49 3263SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3264 return self->operator bool();
3265 }
3266
3267#include <wx/fontutil.h>
3268#include <wx/fontmap.h>
3269#include <wx/fontenum.h>
3270
0085ce49 3271SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3272 return self->ToString();
3273 }
3274
3275 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3276 static wxNativeEncodingInfo info;
3277 if ( wxGetNativeFontEncoding(encoding, &info) )
3278 return &info;
3279 else
3280 return NULL;
3281 }
3282
0085ce49
RD
3283
3284SWIGINTERNINLINE PyObject *
3285SWIG_From_size_t (size_t value)
3286{
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288}
3289
3290
3291SWIGINTERNINLINE int
3292SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293{
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298}
3299
3300SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
0085ce49 3309SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
0085ce49 3314SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
0085ce49 3317SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
0085ce49 3322SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
0085ce49
RD
3325SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3327
3328class wxPyFontEnumerator : public wxFontEnumerator {
3329public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337};
3338
3339IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
704eda0c 3343SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3344 PyObject* ret;
704eda0c 3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3347 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
093d3ff1 3350 }
704eda0c 3351SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3352 PyObject* ret;
704eda0c 3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3355 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
093d3ff1
RD
3358 }
3359
3360#include <locale.h>
3361
0085ce49 3362SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370#if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372#endif
3373 return loc;
3374 }
0085ce49 3375SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379#if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381#endif
3382 return rc;
3383 }
0085ce49 3384SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388#if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390#endif
3391 return rc;
3392 }
3393
fc46b7f3
RD
3394class wxPyLocale : public wxLocale
3395{
3396public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425};
3426
3427wxPyLocale::wxPyLocale() : wxLocale()
3428{
3429}
3430
3431wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437{
3438}
3439
3440wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442{
3443}
3444
3445wxPyLocale::~wxPyLocale()
3446{
3447}
3448
3449const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451{
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454}
3455
3456const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459{
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462}
3463
3464wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466{
3467 bool found;
3468 static wxString str;
3469 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484}
3485
3486wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509}
3510
3511SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519#if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521#endif
3522 return loc;
3523 }
3524
093d3ff1
RD
3525#include "wx/wxPython/pydrawxxx.h"
3526
0085ce49 3527SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
0085ce49 3532SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538SWIGINTERN int
0085ce49 3539SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3540{
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3543 return SWIG_OK;
093d3ff1 3544 }
0085ce49 3545 return SWIG_TypeError;
093d3ff1
RD
3546}
3547
0085ce49 3548SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
0085ce49 3553SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
0085ce49 3558SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
0085ce49 3564 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3565
0085ce49 3566SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
0085ce49 3569SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
0085ce49 3572SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
0085ce49 3575SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
0085ce49 3578SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
0085ce49 3581SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
0085ce49 3584SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
0085ce49 3587SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
0085ce49 3590SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599}
3600
3601
3602#include <wx/dcbuffer.h>
3603
3604
3605#include <wx/dcps.h>
3606
3607
3608class wxMetaFile : public wxObject {
3609public:
3610 wxMetaFile(const wxString&)
3611 { wxPyRaiseNotImplemented(); }
3612};
3613
3614class wxMetaFileDC : public wxClientDC {
3615public:
3616 wxMetaFileDC(const wxString&, int, int, const wxString&)
3617 { wxPyRaiseNotImplemented(); }
3618};
3619
3620
3621
3622class wxPrinterDC : public wxClientDC {
3623public:
3624 wxPrinterDC(const wxPrintData&)
3625 { wxPyRaiseNotImplemented(); }
3626
3627};
3628
3629
72ef6efb
RD
3630#include <wx/graphics.h>
3631
3632
3633#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3634// C++ stub classes for platforms or build configurations that don't have
3635// wxGraphicsContext yet.
72ef6efb 3636
70d7cb34
RD
3637
3638class wxGraphicsObject : public wxObject
72ef6efb
RD
3639{
3640public :
70d7cb34 3641 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3642 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3643 "wx.GraphicsObject is not available on this platform.");
3644 }
3645 wxGraphicsObject( const wxGraphicsObject& ) {}
3646 virtual ~wxGraphicsObject() {}
3647 bool IsNull() const { return false; }
3648 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3649} ;
3650
3651
3652
3653class wxGraphicsPen : public wxGraphicsObject
3654{
3655 wxGraphicsPen() {}
3656 virtual ~wxGraphicsPen() {}
3657} ;
3658wxGraphicsPen wxNullGraphicsPen;
3659
3660
3661
3662class wxGraphicsBrush : public wxGraphicsObject
3663{
3664public :
3665 wxGraphicsBrush() {}
3666 virtual ~wxGraphicsBrush() {}
3667} ;
3668wxGraphicsBrush wxNullGraphicsBrush;
3669
3670
3671
3672class wxGraphicsFont : public wxGraphicsObject
3673{
3674public :
3675 wxGraphicsFont() {}
3676 virtual ~wxGraphicsFont() {}
3677} ;
3678wxGraphicsFont wxNullGraphicsFont;
3679
3680
3681
3682class wxGraphicsPath : public wxGraphicsObject
3683{
3684public :
3685 wxGraphicsPath(wxGraphicsRenderer* ) {
3686 PyErr_SetString(PyExc_NotImplementedError,
3687 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3688 }
3689 virtual ~wxGraphicsPath() {}
70d7cb34 3690
72ef6efb 3691 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3692 void MoveToPoint( const wxPoint2DDouble& ) {}
3693 void AddLineToPoint( wxDouble, wxDouble ) {}
3694 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3695 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3696 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3697 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3698 void CloseSubpath() {}
3699 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3700 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3701 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3702 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3703
3704 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3705 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3706 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3707 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3708
70d7cb34
RD
3709 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3710 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3711 void * GetNativePath() const { return NULL; }
3712 void UnGetNativePath(void *) {}
3713 void Transform( wxGraphicsMatrix* ) {}
3714 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3715 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3716
3717 bool Contains( wxDouble , wxDouble , int ) { return false; }
3718 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3719};
5c8c7dd3 3720wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3721
3722
3723class wxGraphicsMatrix : public wxGraphicsObject
3724{
3725public :
3726 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3727 PyErr_SetString(PyExc_NotImplementedError,
3728 "wx.GraphicsMatrix is not available on this platform.");
3729 }
3730 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3731 virtual void Concat( const wxGraphicsMatrix * ) {}
3732 virtual void Copy( const wxGraphicsMatrix * ) {}
3733 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3734 wxDouble , wxDouble ) {}
3735 virtual void Invert() {}
3736 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3737 virtual bool IsIdentity() { return false; }
3738 virtual void Translate( wxDouble , wxDouble ) {}
3739 virtual void Scale( wxDouble , wxDouble ) {}
3740 virtual void Rotate( wxDouble ) {}
3741 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3742 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3743 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3744};
5c8c7dd3 3745wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3746
70d7cb34
RD
3747
3748class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3749{
3750public:
70d7cb34
RD
3751
3752 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3753 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3754 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3755 }
70d7cb34 3756
72ef6efb 3757 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3758
3759 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3760 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3761 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3762 }
b876c1e4 3763
70d7cb34 3764 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3765 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3766 "wx.GraphicsContext is not available on this platform.");
3767 }
b876c1e4 3768
70d7cb34
RD
3769 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 }
3778
3779 wxGraphicsPath * CreatePath() { return NULL; }
3780
3781 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3782
3783 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3784
3785 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3786 const wxColour&, const wxColour&) { return NULL; }
3787
3788 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3789 wxDouble xc, wxDouble yc, wxDouble radius,
3790 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3791
3792 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3793
3794 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3795 wxDouble, wxDouble) { return NULL; }
3796
3797 virtual void PushState() {}
3798 virtual void PopState() {}
3799 virtual void Clip( const wxRegion & ) {}
3800 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3801 virtual void ResetClip() {}
3802 virtual void * GetNativeContext() { return NULL; }
3803 virtual void Translate( wxDouble , wxDouble ) {}
3804 virtual void Scale( wxDouble , wxDouble ) {}
3805 virtual void Rotate( wxDouble ) {}
3806 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3807 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3808 virtual void GetTransform( wxGraphicsMatrix* ) {}
3809
3810 virtual void SetPen( const wxGraphicsPen& ) {}
3811 void SetPen( const wxPen& ) {}
3812
3813 virtual void SetBrush( const wxGraphicsBrush& ) {}
3814 void SetBrush( const wxBrush& ) {}
3815
3816 virtual void SetFont( const wxGraphicsFont& ) {}
3817 void SetFont( const wxFont&, const wxColour& ) {}
3818
3819 virtual void StrokePath( const wxGraphicsPath * ) {}
3820 virtual void FillPath( const wxGraphicsPath *, int ) {}
3821 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3822
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3825 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3826 wxDouble *, wxDouble * ) const {}
3827 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3828
3829 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3830 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3831
3832 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3834 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3835 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3836 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual bool ShouldOffset() const { return false; }
3840};
3841
3842
3843class wxGraphicsRenderer : public wxObject
3844{
3845public :
3846 wxGraphicsRenderer() {
3847 PyErr_SetString(PyExc_NotImplementedError,
3848 "wx.GraphicsRenderer is not available on this platform.");
3849 }
3850
3851 virtual ~wxGraphicsRenderer() {}
3852
3853 static wxGraphicsRenderer* GetDefaultRenderer(
3854 PyErr_SetString(PyExc_NotImplementedError,
3855 "wx.GraphicsRenderer is not available on this platform.");
3856 );
3857
3858 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3859 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3860 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3861 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3862
3863 virtual wxGraphicsPath * CreatePath() { return NULL; }
3864
3865 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3866 wxDouble , wxDouble ) { return NULL; }
3867
3868 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3869 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3870 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3871 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3872 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3873 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3875};
3876
3877
70d7cb34 3878
72ef6efb
RD
3879class wxGCDC: public wxWindowDC
3880{
3881public:
3882 wxGCDC(const wxWindowDC&) {
3883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3884 PyErr_SetString(PyExc_NotImplementedError,
3885 "wxGCDC is not available on this platform.");
3886 wxPyEndBlockThreads(blocked);
3887 }
70d7cb34 3888
72ef6efb
RD
3889 wxGCDC() {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
70d7cb34 3895
72ef6efb
RD
3896 virtual ~wxGCDC() {}
3897
b876c1e4
RD
3898 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3899 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3900};
3901
3902#endif
3903
5c8c7dd3
RD
3904SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3905 *self = t;
3906 }
be68621e
RD
3907SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3908 wxDouble width = 0.0,
3909 height = 0.0;
3910 self->GetTextExtent(text, &width, &height, NULL, NULL);
3911 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3912 PyObject* rv = PyTuple_New(2);
3913 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3914 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3915 return rv;
3916 }
b39fe951
RD
3917SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3918 wxArrayDouble widths;
3919 self->GetPartialTextExtents(text, widths);
3920 return widths;
3921 }
f8eb59b9 3922SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3923 size_t c1, c2, count;
3924 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3925 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3926
3927 if ( beginP != NULL && endP != NULL )
3928 {
3929 count = wxMin(c1, c2);
3930 self->StrokeLines(count, beginP, endP);
3931 }
3932 delete [] beginP;
3933 delete [] endP;
3934 }
72ef6efb 3935
0a27f394
RD
3936#include "wx/dcgraph.h"
3937
3938
66493fc7
RD
3939#include <wx/overlay.h>
3940
3941
093d3ff1 3942
0085ce49 3943SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3944 self->AddColour(name, wxColour(red, green, blue));
3945 }
3946
50efceee
RD
3947 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3948 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3949 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3950 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3951
3952
093d3ff1
RD
3953#include <wx/effects.h>
3954
8d38bd1d
RD
3955
3956#include "wx/renderer.h"
3957
3958
32fe5131 3959SWIGINTERNINLINE PyObject*
0085ce49 3960 SWIG_From_bool (bool value)
8d38bd1d 3961{
0085ce49 3962 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3963}
3964
27e45892
RD
3965
3966#include "wx/wxPython/pseudodc.h"
3967
3968SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3969 wxRect rect;
3970 self->GetIdBounds(id, rect);
3971 return rect;
3972 }
093d3ff1
RD
3973#ifdef __cplusplus
3974extern "C" {
3975#endif
0085ce49
RD
3976SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3977 PyObject *resultobj = 0;
3978 wxGDIObject *result = 0 ;
3979
3980 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3981 {
3982 if (!wxPyCheckForApp()) SWIG_fail;
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (wxGDIObject *)new wxGDIObject();
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3989 return resultobj;
3990fail:
3991 return NULL;
093d3ff1
RD
3992}
3993
3994
0085ce49
RD
3995SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3996 PyObject *resultobj = 0;
3997 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3998 void *argp1 = 0 ;
3999 int res1 = 0 ;
4000 PyObject *swig_obj[1] ;
4001
4002 if (!args) SWIG_fail;
4003 swig_obj[0] = args;
4004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4005 if (!SWIG_IsOK(res1)) {
4006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4007 }
4008 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 delete arg1;
093d3ff1 4012
0085ce49
RD
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 resultobj = SWIG_Py_Void();
4017 return resultobj;
4018fail:
4019 return NULL;
d14a1e28
RD
4020}
4021
4022
0085ce49
RD
4023SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4024 PyObject *resultobj = 0;
4025 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4026 bool result;
4027 void *argp1 = 0 ;
4028 int res1 = 0 ;
4029 PyObject *swig_obj[1] ;
4030
4031 if (!args) SWIG_fail;
4032 swig_obj[0] = args;
4033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4034 if (!SWIG_IsOK(res1)) {
4035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4036 }
4037 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 result = (bool)(arg1)->IsNull();
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
4044 {
4045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4046 }
4047 return resultobj;
4048fail:
4049 return NULL;
4050}
4051
4052
4053SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4054 PyObject *obj;
4055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4056 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4057 return SWIG_Py_Void();
4058}
4059
4060SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4061 return SWIG_Python_InitShadowInstance(args);
4062}
4063
4064SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj = 0;
4066 byte arg1 = (byte) 0 ;
4067 byte arg2 = (byte) 0 ;
4068 byte arg3 = (byte) 0 ;
fc46b7f3 4069 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4070 wxColour *result = 0 ;
4071 unsigned char val1 ;
4072 int ecode1 = 0 ;
4073 unsigned char val2 ;
4074 int ecode2 = 0 ;
4075 unsigned char val3 ;
4076 int ecode3 = 0 ;
fc46b7f3
RD
4077 unsigned char val4 ;
4078 int ecode4 = 0 ;
0085ce49
RD
4079 PyObject * obj0 = 0 ;
4080 PyObject * obj1 = 0 ;
4081 PyObject * obj2 = 0 ;
fc46b7f3 4082 PyObject * obj3 = 0 ;
0085ce49 4083 char * kwnames[] = {
fc46b7f3 4084 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4085 };
4086
fc46b7f3 4087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
4088 if (obj0) {
4089 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4090 if (!SWIG_IsOK(ecode1)) {
4091 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4092 }
4093 arg1 = static_cast< byte >(val1);
4094 }
4095 if (obj1) {
4096 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4097 if (!SWIG_IsOK(ecode2)) {
4098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4099 }
4100 arg2 = static_cast< byte >(val2);
4101 }
4102 if (obj2) {
4103 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4104 if (!SWIG_IsOK(ecode3)) {
4105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4106 }
4107 arg3 = static_cast< byte >(val3);
4108 }
fc46b7f3
RD
4109 if (obj3) {
4110 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4111 if (!SWIG_IsOK(ecode4)) {
4112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4113 }
4114 arg4 = static_cast< byte >(val4);
4115 }
0085ce49
RD
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4118 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
4119 wxPyEndAllowThreads(__tstate);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4123 return resultobj;
4124fail:
4125 return NULL;
d14a1e28
RD
4126}
4127
4128
0085ce49
RD
4129SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj = 0;
4131 wxString *arg1 = 0 ;
4132 wxColour *result = 0 ;
4133 bool temp1 = false ;
4134 PyObject * obj0 = 0 ;
4135 char * kwnames[] = {
4136 (char *) "colorName", NULL
4137 };
4138
4139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4140 {
4141 arg1 = wxString_in_helper(obj0);
4142 if (arg1 == NULL) SWIG_fail;
4143 temp1 = true;
4144 }
4145 {
4146 if (!wxPyCheckForApp()) SWIG_fail;
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (wxColour *)new wxColour((wxString const &)*arg1);
4149 wxPyEndAllowThreads(__tstate);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 }
4152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4153 {
4154 if (temp1)
4155 delete arg1;
4156 }
4157 return resultobj;
4158fail:
4159 {
4160 if (temp1)
4161 delete arg1;
4162 }
4163 return NULL;
d14a1e28
RD
4164}
4165
4166
0085ce49
RD
4167SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj = 0;
4169 unsigned long arg1 ;
4170 wxColour *result = 0 ;
4171 unsigned long val1 ;
4172 int ecode1 = 0 ;
4173 PyObject * obj0 = 0 ;
4174 char * kwnames[] = {
4175 (char *) "colRGB", NULL
4176 };
4177
4178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4179 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4180 if (!SWIG_IsOK(ecode1)) {
4181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4182 }
4183 arg1 = static_cast< unsigned long >(val1);
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 result = (wxColour *)new wxColour(arg1);
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4191 return resultobj;
4192fail:
4193 return NULL;
d14a1e28
RD
4194}
4195
4196
0085ce49
RD
4197SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4198 PyObject *resultobj = 0;
4199 wxColour *arg1 = (wxColour *) 0 ;
4200 void *argp1 = 0 ;
4201 int res1 = 0 ;
4202 PyObject *swig_obj[1] ;
4203
4204 if (!args) SWIG_fail;
4205 swig_obj[0] = args;
4206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4209 }
4210 arg1 = reinterpret_cast< wxColour * >(argp1);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 delete arg1;
d14a1e28 4214
0085ce49
RD
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220fail:
4221 return NULL;
d14a1e28
RD
4222}
4223
4224
0085ce49
RD
4225SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4226 PyObject *resultobj = 0;
4227 wxColour *arg1 = (wxColour *) 0 ;
4228 byte result;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 PyObject *swig_obj[1] ;
4232
4233 if (!args) SWIG_fail;
4234 swig_obj[0] = args;
4235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4236 if (!SWIG_IsOK(res1)) {
4237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4238 }
4239 arg1 = reinterpret_cast< wxColour * >(argp1);
4240 {
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 result = (byte)(arg1)->Red();
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4247 return resultobj;
4248fail:
4249 return NULL;
d14a1e28
RD
4250}
4251
4252
0085ce49
RD
4253SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4254 PyObject *resultobj = 0;
4255 wxColour *arg1 = (wxColour *) 0 ;
4256 byte result;
4257 void *argp1 = 0 ;
4258 int res1 = 0 ;
4259 PyObject *swig_obj[1] ;
4260
4261 if (!args) SWIG_fail;
4262 swig_obj[0] = args;
4263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
4268 {
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 result = (byte)(arg1)->Green();
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4275 return resultobj;
4276fail:
4277 return NULL;
5cbf236d
RD
4278}
4279
4280
0085ce49
RD
4281SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4282 PyObject *resultobj = 0;
4283 wxColour *arg1 = (wxColour *) 0 ;
4284 byte result;
4285 void *argp1 = 0 ;
4286 int res1 = 0 ;
4287 PyObject *swig_obj[1] ;
4288
4289 if (!args) SWIG_fail;
4290 swig_obj[0] = args;
4291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4294 }
4295 arg1 = reinterpret_cast< wxColour * >(argp1);
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (byte)(arg1)->Blue();
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4303 return resultobj;
4304fail:
4305 return NULL;
d14a1e28
RD
4306}
4307
4308
fc46b7f3
RD
4309SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4310 PyObject *resultobj = 0;
4311 wxColour *arg1 = (wxColour *) 0 ;
4312 byte result;
4313 void *argp1 = 0 ;
4314 int res1 = 0 ;
4315 PyObject *swig_obj[1] ;
4316
4317 if (!args) SWIG_fail;
4318 swig_obj[0] = args;
4319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4322 }
4323 arg1 = reinterpret_cast< wxColour * >(argp1);
4324 {
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (byte)(arg1)->Alpha();
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4331 return resultobj;
4332fail:
4333 return NULL;
4334}
4335
4336
b39fe951 4337SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4338 PyObject *resultobj = 0;
4339 wxColour *arg1 = (wxColour *) 0 ;
4340 bool result;
4341 void *argp1 = 0 ;
4342 int res1 = 0 ;
4343 PyObject *swig_obj[1] ;
4344
4345 if (!args) SWIG_fail;
4346 swig_obj[0] = args;
4347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4348 if (!SWIG_IsOK(res1)) {
b39fe951 4349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4350 }
4351 arg1 = reinterpret_cast< wxColour * >(argp1);
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4354 result = (bool)(arg1)->IsOk();
0085ce49
RD
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 {
4359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4360 }
4361 return resultobj;
4362fail:
4363 return NULL;
4364}
4365
4366
4367SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj = 0;
4369 wxColour *arg1 = (wxColour *) 0 ;
4370 byte arg2 ;
4371 byte arg3 ;
4372 byte arg4 ;
fc46b7f3 4373 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4374 void *argp1 = 0 ;
4375 int res1 = 0 ;
4376 unsigned char val2 ;
4377 int ecode2 = 0 ;
4378 unsigned char val3 ;
4379 int ecode3 = 0 ;
4380 unsigned char val4 ;
4381 int ecode4 = 0 ;
fc46b7f3
RD
4382 unsigned char val5 ;
4383 int ecode5 = 0 ;
0085ce49
RD
4384 PyObject * obj0 = 0 ;
4385 PyObject * obj1 = 0 ;
4386 PyObject * obj2 = 0 ;
4387 PyObject * obj3 = 0 ;
fc46b7f3 4388 PyObject * obj4 = 0 ;
0085ce49 4389 char * kwnames[] = {
fc46b7f3 4390 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4391 };
4392
fc46b7f3 4393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4395 if (!SWIG_IsOK(res1)) {
4396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4397 }
4398 arg1 = reinterpret_cast< wxColour * >(argp1);
4399 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4400 if (!SWIG_IsOK(ecode2)) {
4401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4402 }
4403 arg2 = static_cast< byte >(val2);
4404 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4405 if (!SWIG_IsOK(ecode3)) {
4406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4407 }
4408 arg3 = static_cast< byte >(val3);
4409 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4410 if (!SWIG_IsOK(ecode4)) {
4411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4412 }
4413 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4414 if (obj4) {
4415 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4416 if (!SWIG_IsOK(ecode5)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4418 }
4419 arg5 = static_cast< byte >(val5);
4420 }
0085ce49
RD
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4423 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_Py_Void();
4428 return resultobj;
4429fail:
4430 return NULL;
4431}
4432
4433
4434SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4435 PyObject *resultobj = 0;
4436 wxColour *arg1 = (wxColour *) 0 ;
4437 unsigned long arg2 ;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 unsigned long val2 ;
4441 int ecode2 = 0 ;
4442 PyObject * obj0 = 0 ;
4443 PyObject * obj1 = 0 ;
4444 char * kwnames[] = {
4445 (char *) "self",(char *) "colRGB", NULL
4446 };
4447
4448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4450 if (!SWIG_IsOK(res1)) {
4451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4452 }
4453 arg1 = reinterpret_cast< wxColour * >(argp1);
4454 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4455 if (!SWIG_IsOK(ecode2)) {
4456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4457 }
4458 arg2 = static_cast< unsigned long >(val2);
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 (arg1)->Set(arg2);
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 resultobj = SWIG_Py_Void();
4466 return resultobj;
4467fail:
4468 return NULL;
4469}
4470
4471
4472SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4473 PyObject *resultobj = 0;
4474 wxColour *arg1 = (wxColour *) 0 ;
4475 wxString *arg2 = 0 ;
4476 void *argp1 = 0 ;
4477 int res1 = 0 ;
4478 bool temp2 = false ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 char * kwnames[] = {
4482 (char *) "self",(char *) "colourName", NULL
4483 };
4484
4485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4487 if (!SWIG_IsOK(res1)) {
4488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4489 }
4490 arg1 = reinterpret_cast< wxColour * >(argp1);
4491 {
4492 arg2 = wxString_in_helper(obj1);
4493 if (arg2 == NULL) SWIG_fail;
4494 temp2 = true;
4495 }
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4498 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 resultobj = SWIG_Py_Void();
4503 {
4504 if (temp2)
4505 delete arg2;
4506 }
4507 return resultobj;
4508fail:
4509 {
4510 if (temp2)
4511 delete arg2;
4512 }
4513 return NULL;
d14a1e28
RD
4514}
4515
4516
01f6b6d3
RD
4517SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxColour *arg1 = (wxColour *) 0 ;
4520 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4521 wxString result;
4522 void *argp1 = 0 ;
4523 int res1 = 0 ;
4524 long val2 ;
4525 int ecode2 = 0 ;
4526 PyObject * obj0 = 0 ;
4527 PyObject * obj1 = 0 ;
4528 char * kwnames[] = {
4529 (char *) "self",(char *) "flags", NULL
4530 };
4531
4532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4534 if (!SWIG_IsOK(res1)) {
4535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4536 }
4537 arg1 = reinterpret_cast< wxColour * >(argp1);
4538 if (obj1) {
4539 ecode2 = SWIG_AsVal_long(obj1, &val2);
4540 if (!SWIG_IsOK(ecode2)) {
4541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4542 }
4543 arg2 = static_cast< long >(val2);
4544 }
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 result = ((wxColour const *)arg1)->GetAsString(arg2);
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) SWIG_fail;
4550 }
4551 {
4552#if wxUSE_UNICODE
4553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4554#else
4555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4556#endif
4557 }
4558 return resultobj;
4559fail:
4560 return NULL;
4561}
4562
4563
0085ce49
RD
4564SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4565 PyObject *resultobj = 0;
4566 wxColour *arg1 = (wxColour *) 0 ;
4567 long result;
4568 void *argp1 = 0 ;
4569 int res1 = 0 ;
4570 PyObject *swig_obj[1] ;
4571
4572 if (!args) SWIG_fail;
4573 swig_obj[0] = args;
4574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4577 }
4578 arg1 = reinterpret_cast< wxColour * >(argp1);
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 result = (long)((wxColour const *)arg1)->GetPixel();
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 resultobj = SWIG_From_long(static_cast< long >(result));
4586 return resultobj;
4587fail:
4588 return NULL;
4589}
4590
4591
4592SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4593 PyObject *resultobj = 0;
4594 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4595 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4596 bool result;
4597 void *argp1 = 0 ;
4598 int res1 = 0 ;
0085ce49
RD
4599 PyObject * obj0 = 0 ;
4600 PyObject * obj1 = 0 ;
4601 char * kwnames[] = {
e9d6f3a4 4602 (char *) "self",(char *) "other", NULL
0085ce49
RD
4603 };
4604
4605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4607 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4609 }
4610 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4611 arg2 = obj1;
0085ce49 4612 {
e9d6f3a4 4613 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 {
4617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4618 }
4619 return resultobj;
4620fail:
4621 return NULL;
4622}
4623
4624
4625SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj = 0;
4627 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4628 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4629 bool result;
4630 void *argp1 = 0 ;
4631 int res1 = 0 ;
0085ce49
RD
4632 PyObject * obj0 = 0 ;
4633 PyObject * obj1 = 0 ;
4634 char * kwnames[] = {
e9d6f3a4 4635 (char *) "self",(char *) "other", NULL
0085ce49
RD
4636 };
4637
4638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4640 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4642 }
4643 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4644 arg2 = obj1;
0085ce49 4645 {
e9d6f3a4 4646 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 {
4650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4651 }
4652 return resultobj;
4653fail:
4654 return NULL;
d14a1e28
RD
4655}
4656
4657
fc46b7f3 4658SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4659 PyObject *resultobj = 0;
4660 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4661 bool arg2 = (bool) false ;
0085ce49
RD
4662 PyObject *result = 0 ;
4663 void *argp1 = 0 ;
4664 int res1 = 0 ;
fc46b7f3
RD
4665 bool val2 ;
4666 int ecode2 = 0 ;
4667 PyObject * obj0 = 0 ;
4668 PyObject * obj1 = 0 ;
4669 char * kwnames[] = {
4670 (char *) "self",(char *) "includeAlpha", NULL
4671 };
0085ce49 4672
fc46b7f3
RD
4673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4675 if (!SWIG_IsOK(res1)) {
4676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4677 }
4678 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4679 if (obj1) {
4680 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4681 if (!SWIG_IsOK(ecode2)) {
4682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4683 }
4684 arg2 = static_cast< bool >(val2);
4685 }
0085ce49 4686 {
fc46b7f3 4687 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 resultobj = result;
4691 return resultobj;
4692fail:
4693 return NULL;
d14a1e28
RD
4694}
4695
4696
0085ce49
RD
4697SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4698 PyObject *resultobj = 0;
4699 wxColour *arg1 = (wxColour *) 0 ;
4700 unsigned long result;
4701 void *argp1 = 0 ;
4702 int res1 = 0 ;
4703 PyObject *swig_obj[1] ;
4704
4705 if (!args) SWIG_fail;
4706 swig_obj[0] = args;
4707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4708 if (!SWIG_IsOK(res1)) {
4709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4710 }
4711 arg1 = reinterpret_cast< wxColour * >(argp1);
4712 {
0085ce49 4713 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4714 if (PyErr_Occurred()) SWIG_fail;
4715 }
4716 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4717 return resultobj;
4718fail:
4719 return NULL;
4720}
4721
4722
4723SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4724 PyObject *obj;
4725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4726 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4727 return SWIG_Py_Void();
4728}
4729
4730SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731 return SWIG_Python_InitShadowInstance(args);
4732}
4733
4734SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4735 PyObject *resultobj = 0;
4736 int arg1 ;
4737 unsigned char *arg2 = (unsigned char *) 0 ;
4738 unsigned char *arg3 = (unsigned char *) 0 ;
4739 unsigned char *arg4 = (unsigned char *) 0 ;
4740 wxPalette *result = 0 ;
4741 int val1 ;
4742 int ecode1 = 0 ;
4743 void *argp2 = 0 ;
4744 int res2 = 0 ;
4745 void *argp3 = 0 ;
4746 int res3 = 0 ;
4747 void *argp4 = 0 ;
4748 int res4 = 0 ;
4749 PyObject * obj0 = 0 ;
4750 PyObject * obj1 = 0 ;
4751 PyObject * obj2 = 0 ;
4752 PyObject * obj3 = 0 ;
4753 char * kwnames[] = {
4754 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4755 };
4756
4757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4758 ecode1 = SWIG_AsVal_int(obj0, &val1);
4759 if (!SWIG_IsOK(ecode1)) {
4760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4761 }
4762 arg1 = static_cast< int >(val1);
4763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4764 if (!SWIG_IsOK(res2)) {
4765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4766 }
4767 arg2 = reinterpret_cast< unsigned char * >(argp2);
4768 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4769 if (!SWIG_IsOK(res3)) {
4770 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4771 }
4772 arg3 = reinterpret_cast< unsigned char * >(argp3);
4773 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4774 if (!SWIG_IsOK(res4)) {
4775 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4776 }
4777 arg4 = reinterpret_cast< unsigned char * >(argp4);
4778 {
4779 if (!wxPyCheckForApp()) SWIG_fail;
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4786 return resultobj;
4787fail:
4788 return NULL;
d14a1e28
RD
4789}
4790
4791
0085ce49
RD
4792SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4793 PyObject *resultobj = 0;
4794 wxPalette *arg1 = (wxPalette *) 0 ;
4795 void *argp1 = 0 ;
4796 int res1 = 0 ;
4797 PyObject *swig_obj[1] ;
4798
4799 if (!args) SWIG_fail;
4800 swig_obj[0] = args;
4801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4802 if (!SWIG_IsOK(res1)) {
4803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4804 }
4805 arg1 = reinterpret_cast< wxPalette * >(argp1);
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 delete arg1;
d14a1e28 4809
0085ce49
RD
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 resultobj = SWIG_Py_Void();
4814 return resultobj;
4815fail:
4816 return NULL;
4817}
4818
4819
4820SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj = 0;
4822 wxPalette *arg1 = (wxPalette *) 0 ;
4823 byte arg2 ;
4824 byte arg3 ;
4825 byte arg4 ;
4826 int result;
4827 void *argp1 = 0 ;
4828 int res1 = 0 ;
4829 unsigned char val2 ;
4830 int ecode2 = 0 ;
4831 unsigned char val3 ;
4832 int ecode3 = 0 ;
4833 unsigned char val4 ;
4834 int ecode4 = 0 ;
4835 PyObject * obj0 = 0 ;
4836 PyObject * obj1 = 0 ;
4837 PyObject * obj2 = 0 ;
4838 PyObject * obj3 = 0 ;
4839 char * kwnames[] = {
4840 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4841 };
4842
4843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4847 }
4848 arg1 = reinterpret_cast< wxPalette * >(argp1);
4849 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4850 if (!SWIG_IsOK(ecode2)) {
4851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4852 }
4853 arg2 = static_cast< byte >(val2);
4854 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4855 if (!SWIG_IsOK(ecode3)) {
4856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4857 }
4858 arg3 = static_cast< byte >(val3);
4859 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4860 if (!SWIG_IsOK(ecode4)) {
4861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4862 }
4863 arg4 = static_cast< byte >(val4);
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_From_int(static_cast< int >(result));
4871 return resultobj;
4872fail:
4873 return NULL;
4874}
4875
4876
4877SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj = 0;
4879 wxPalette *arg1 = (wxPalette *) 0 ;
4880 int arg2 ;
4881 byte *arg3 = (byte *) 0 ;
4882 byte *arg4 = (byte *) 0 ;
4883 byte *arg5 = (byte *) 0 ;
4884 bool result;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 int val2 ;
4888 int ecode2 = 0 ;
4889 byte temp3 ;
4890 int res3 = SWIG_TMPOBJ ;
4891 byte temp4 ;
4892 int res4 = SWIG_TMPOBJ ;
4893 byte temp5 ;
4894 int res5 = SWIG_TMPOBJ ;
4895 PyObject * obj0 = 0 ;
4896 PyObject * obj1 = 0 ;
4897 char * kwnames[] = {
4898 (char *) "self",(char *) "pixel", NULL
4899 };
4900
4901 arg3 = &temp3;
4902 arg4 = &temp4;
4903 arg5 = &temp5;
4904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4906 if (!SWIG_IsOK(res1)) {
4907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4908 }
4909 arg1 = reinterpret_cast< wxPalette * >(argp1);
4910 ecode2 = SWIG_AsVal_int(obj1, &val2);
4911 if (!SWIG_IsOK(ecode2)) {
4912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4913 }
4914 arg2 = static_cast< int >(val2);
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 {
4922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4923 }
4924 if (SWIG_IsTmpObj(res3)) {
4925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4926 } else {
4927 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4929 }
4930 if (SWIG_IsTmpObj(res4)) {
4931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4932 } else {
4933 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4935 }
4936 if (SWIG_IsTmpObj(res5)) {
4937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4938 } else {
4939 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4941 }
4942 return resultobj;
4943fail:
4944 return NULL;
d14a1e28
RD
4945}
4946
4947
0085ce49
RD
4948SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4949 PyObject *resultobj = 0;
4950 wxPalette *arg1 = (wxPalette *) 0 ;
4951 int result;
4952 void *argp1 = 0 ;
4953 int res1 = 0 ;
4954 PyObject *swig_obj[1] ;
4955
4956 if (!args) SWIG_fail;
4957 swig_obj[0] = args;
4958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4959 if (!SWIG_IsOK(res1)) {
4960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4961 }
4962 arg1 = reinterpret_cast< wxPalette * >(argp1);
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4966 wxPyEndAllowThreads(__tstate);
4967 if (PyErr_Occurred()) SWIG_fail;
4968 }
4969 resultobj = SWIG_From_int(static_cast< int >(result));
4970 return resultobj;
4971fail:
4972 return NULL;
d14a1e28
RD
4973}
4974
4975
b39fe951 4976SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4977 PyObject *resultobj = 0;
4978 wxPalette *arg1 = (wxPalette *) 0 ;
4979 bool result;
4980 void *argp1 = 0 ;
4981 int res1 = 0 ;
4982 PyObject *swig_obj[1] ;
4983
4984 if (!args) SWIG_fail;
4985 swig_obj[0] = args;
4986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4987 if (!SWIG_IsOK(res1)) {
b39fe951 4988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
4989 }
4990 arg1 = reinterpret_cast< wxPalette * >(argp1);
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4993 result = (bool)(arg1)->IsOk();
0085ce49
RD
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 {
4998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4999 }
5000 return resultobj;
5001fail:
5002 return NULL;
5003}
5004
5005
5006SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5007 PyObject *obj;
5008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5009 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5010 return SWIG_Py_Void();
5011}
5012
5013SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5014 return SWIG_Python_InitShadowInstance(args);
5015}
5016
5017SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5018 PyObject *resultobj = 0;
5019 wxColour *arg1 = 0 ;
5020 int arg2 = (int) 1 ;
5021 int arg3 = (int) wxSOLID ;
5022 wxPen *result = 0 ;
5023 wxColour temp1 ;
5024 int val2 ;
5025 int ecode2 = 0 ;
5026 int val3 ;
5027 int ecode3 = 0 ;
5028 PyObject * obj0 = 0 ;
5029 PyObject * obj1 = 0 ;
5030 PyObject * obj2 = 0 ;
5031 char * kwnames[] = {
5032 (char *) "colour",(char *) "width",(char *) "style", NULL
5033 };
5034
5035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5036 {
5037 arg1 = &temp1;
5038 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5039 }
5040 if (obj1) {
5041 ecode2 = SWIG_AsVal_int(obj1, &val2);
5042 if (!SWIG_IsOK(ecode2)) {
5043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5044 }
5045 arg2 = static_cast< int >(val2);
5046 }
5047 if (obj2) {
5048 ecode3 = SWIG_AsVal_int(obj2, &val3);
5049 if (!SWIG_IsOK(ecode3)) {
5050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5051 }
5052 arg3 = static_cast< int >(val3);
5053 }
5054 {
5055 if (!wxPyCheckForApp()) SWIG_fail;
5056 PyThreadState* __tstate = wxPyBeginAllowThreads();
5057 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5062 return resultobj;
5063fail:
5064 return NULL;
d14a1e28
RD
5065}
5066
5067
0085ce49
RD
5068SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 PyObject *resultobj = 0;
5070 wxPen *arg1 = (wxPen *) 0 ;
5071 void *argp1 = 0 ;
5072 int res1 = 0 ;
5073 PyObject *swig_obj[1] ;
5074
5075 if (!args) SWIG_fail;
5076 swig_obj[0] = args;
5077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5078 if (!SWIG_IsOK(res1)) {
5079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5080 }
5081 arg1 = reinterpret_cast< wxPen * >(argp1);
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 delete arg1;
d14a1e28 5085
0085ce49
RD
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 resultobj = SWIG_Py_Void();
5090 return resultobj;
5091fail:
5092 return NULL;
d14a1e28
RD
5093}
5094
5095
0085ce49
RD
5096SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5097 PyObject *resultobj = 0;
5098 wxPen *arg1 = (wxPen *) 0 ;
5099 int result;
5100 void *argp1 = 0 ;
5101 int res1 = 0 ;
5102 PyObject *swig_obj[1] ;
5103
5104 if (!args) SWIG_fail;
5105 swig_obj[0] = args;
5106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5107 if (!SWIG_IsOK(res1)) {
5108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5109 }
5110 arg1 = reinterpret_cast< wxPen * >(argp1);
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 result = (int)(arg1)->GetCap();
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 resultobj = SWIG_From_int(static_cast< int >(result));
5118 return resultobj;
5119fail:
5120 return NULL;
d14a1e28
RD
5121}
5122
5123
0085ce49
RD
5124SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5125 PyObject *resultobj = 0;
5126 wxPen *arg1 = (wxPen *) 0 ;
5127 wxColour result;
5128 void *argp1 = 0 ;
5129 int res1 = 0 ;
5130 PyObject *swig_obj[1] ;
5131
5132 if (!args) SWIG_fail;
5133 swig_obj[0] = args;
5134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5135 if (!SWIG_IsOK(res1)) {
5136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5137 }
5138 arg1 = reinterpret_cast< wxPen * >(argp1);
5139 {
5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
5141 result = (arg1)->GetColour();
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5146 return resultobj;
5147fail:
5148 return NULL;
d14a1e28
RD
5149}
5150
5151
0085ce49
RD
5152SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5153 PyObject *resultobj = 0;
5154 wxPen *arg1 = (wxPen *) 0 ;
5155 int result;
5156 void *argp1 = 0 ;
5157 int res1 = 0 ;
5158 PyObject *swig_obj[1] ;
5159
5160 if (!args) SWIG_fail;
5161 swig_obj[0] = args;
5162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5165 }
5166 arg1 = reinterpret_cast< wxPen * >(argp1);
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (int)(arg1)->GetJoin();
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_From_int(static_cast< int >(result));
5174 return resultobj;
5175fail:
5176 return NULL;
d14a1e28
RD
5177}
5178
5179
0085ce49
RD
5180SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5181 PyObject *resultobj = 0;
5182 wxPen *arg1 = (wxPen *) 0 ;
5183 int result;
5184 void *argp1 = 0 ;
5185 int res1 = 0 ;
5186 PyObject *swig_obj[1] ;
5187
5188 if (!args) SWIG_fail;
5189 swig_obj[0] = args;
5190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5191 if (!SWIG_IsOK(res1)) {
5192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5193 }
5194 arg1 = reinterpret_cast< wxPen * >(argp1);
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 result = (int)(arg1)->GetStyle();
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 resultobj = SWIG_From_int(static_cast< int >(result));
5202 return resultobj;
5203fail:
5204 return NULL;
3adfb63b
RD
5205}
5206
5207
0085ce49
RD
5208SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5209 PyObject *resultobj = 0;
5210 wxPen *arg1 = (wxPen *) 0 ;
5211 int result;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject *swig_obj[1] ;
5215
5216 if (!args) SWIG_fail;
5217 swig_obj[0] = args;
5218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5219 if (!SWIG_IsOK(res1)) {
5220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5221 }
5222 arg1 = reinterpret_cast< wxPen * >(argp1);
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (int)(arg1)->GetWidth();
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = SWIG_From_int(static_cast< int >(result));
5230 return resultobj;
5231fail:
5232 return NULL;
d14a1e28
RD
5233}
5234
5235
b39fe951 5236SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5237 PyObject *resultobj = 0;
5238 wxPen *arg1 = (wxPen *) 0 ;
5239 bool result;
5240 void *argp1 = 0 ;
5241 int res1 = 0 ;
5242 PyObject *swig_obj[1] ;
5243
5244 if (!args) SWIG_fail;
5245 swig_obj[0] = args;
5246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5247 if (!SWIG_IsOK(res1)) {
b39fe951 5248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
5249 }
5250 arg1 = reinterpret_cast< wxPen * >(argp1);
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5253 result = (bool)(arg1)->IsOk();
0085ce49
RD
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 {
5258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5259 }
5260 return resultobj;
5261fail:
5262 return NULL;
5263}
5264
5265
5266SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5267 PyObject *resultobj = 0;
5268 wxPen *arg1 = (wxPen *) 0 ;
5269 int arg2 ;
5270 void *argp1 = 0 ;
5271 int res1 = 0 ;
5272 int val2 ;
5273 int ecode2 = 0 ;
5274 PyObject * obj0 = 0 ;
5275 PyObject * obj1 = 0 ;
5276 char * kwnames[] = {
5277 (char *) "self",(char *) "cap_style", NULL
5278 };
5279
5280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5282 if (!SWIG_IsOK(res1)) {
5283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5284 }
5285 arg1 = reinterpret_cast< wxPen * >(argp1);
5286 ecode2 = SWIG_AsVal_int(obj1, &val2);
5287 if (!SWIG_IsOK(ecode2)) {
5288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5289 }
5290 arg2 = static_cast< int >(val2);
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 (arg1)->SetCap(arg2);
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 resultobj = SWIG_Py_Void();
5298 return resultobj;
5299fail:
5300 return NULL;
5301}
5302
5303
5304SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj = 0;
5306 wxPen *arg1 = (wxPen *) 0 ;
5307 wxColour *arg2 = 0 ;
5308 void *argp1 = 0 ;
5309 int res1 = 0 ;
5310 wxColour temp2 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char * kwnames[] = {
5314 (char *) "self",(char *) "colour", NULL
5315 };
5316
5317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5319 if (!SWIG_IsOK(res1)) {
5320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5321 }
5322 arg1 = reinterpret_cast< wxPen * >(argp1);
5323 {
5324 arg2 = &temp2;
5325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5326 }
5327 {
5328 PyThreadState* __tstate = wxPyBeginAllowThreads();
5329 (arg1)->SetColour(*arg2);
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 resultobj = SWIG_Py_Void();
5334 return resultobj;
5335fail:
5336 return NULL;
5337}
5338
5339
5340SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5341 PyObject *resultobj = 0;
5342 wxPen *arg1 = (wxPen *) 0 ;
5343 int arg2 ;
5344 void *argp1 = 0 ;
5345 int res1 = 0 ;
5346 int val2 ;
5347 int ecode2 = 0 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char * kwnames[] = {
5351 (char *) "self",(char *) "join_style", NULL
5352 };
5353
5354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5356 if (!SWIG_IsOK(res1)) {
5357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5358 }
5359 arg1 = reinterpret_cast< wxPen * >(argp1);
5360 ecode2 = SWIG_AsVal_int(obj1, &val2);
5361 if (!SWIG_IsOK(ecode2)) {
5362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5363 }
5364 arg2 = static_cast< int >(val2);
5365 {
5366 PyThreadState* __tstate = wxPyBeginAllowThreads();
5367 (arg1)->SetJoin(arg2);
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 resultobj = SWIG_Py_Void();
5372 return resultobj;
5373fail:
5374 return NULL;
5375}
5376
5377
5378SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj = 0;
5380 wxPen *arg1 = (wxPen *) 0 ;
5381 int arg2 ;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 int val2 ;
5385 int ecode2 = 0 ;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 char * kwnames[] = {
5389 (char *) "self",(char *) "style", NULL
5390 };
5391
5392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5396 }
5397 arg1 = reinterpret_cast< wxPen * >(argp1);
5398 ecode2 = SWIG_AsVal_int(obj1, &val2);
5399 if (!SWIG_IsOK(ecode2)) {
5400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5401 }
5402 arg2 = static_cast< int >(val2);
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 (arg1)->SetStyle(arg2);
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 resultobj = SWIG_Py_Void();
5410 return resultobj;
5411fail:
5412 return NULL;
5413}
5414
5415
5416SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5417 PyObject *resultobj = 0;
5418 wxPen *arg1 = (wxPen *) 0 ;
5419 int arg2 ;
5420 void *argp1 = 0 ;
5421 int res1 = 0 ;
5422 int val2 ;
5423 int ecode2 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 PyObject * obj1 = 0 ;
5426 char * kwnames[] = {
5427 (char *) "self",(char *) "width", NULL
5428 };
5429
5430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5432 if (!SWIG_IsOK(res1)) {
5433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5434 }
5435 arg1 = reinterpret_cast< wxPen * >(argp1);
5436 ecode2 = SWIG_AsVal_int(obj1, &val2);
5437 if (!SWIG_IsOK(ecode2)) {
5438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5439 }
5440 arg2 = static_cast< int >(val2);
5441 {
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 (arg1)->SetWidth(arg2);
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_Py_Void();
5448 return resultobj;
5449fail:
5450 return NULL;
5451}
5452
5453
5454SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj = 0;
5456 wxPen *arg1 = (wxPen *) 0 ;
5457 int arg2 ;
5458 wxDash *arg3 = (wxDash *) 0 ;
5459 void *argp1 = 0 ;
5460 int res1 = 0 ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char * kwnames[] = {
5464 (char *) "self",(char *) "dashes", NULL
5465 };
5466
5467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5469 if (!SWIG_IsOK(res1)) {
5470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5471 }
5472 arg1 = reinterpret_cast< wxPen * >(argp1);
5473 {
5474 arg2 = PyList_Size(obj1);
5475 arg3 = (wxDash*)byte_LIST_helper(obj1);
5476 if (arg3 == NULL) SWIG_fail;
5477 }
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 (arg1)->SetDashes(arg2,arg3);
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
5484 resultobj = SWIG_Py_Void();
5485 {
5486 if (arg3) delete [] arg3;
5487 }
5488 return resultobj;
5489fail:
5490 {
5491 if (arg3) delete [] arg3;
5492 }
5493 return NULL;
d14a1e28
RD
5494}
5495
5496
0085ce49
RD
5497SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5498 PyObject *resultobj = 0;
5499 wxPen *arg1 = (wxPen *) 0 ;
5500 PyObject *result = 0 ;
5501 void *argp1 = 0 ;
5502 int res1 = 0 ;
5503 PyObject *swig_obj[1] ;
5504
5505 if (!args) SWIG_fail;
5506 swig_obj[0] = args;
5507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5508 if (!SWIG_IsOK(res1)) {
5509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5510 }
5511 arg1 = reinterpret_cast< wxPen * >(argp1);
5512 {
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (PyObject *)wxPen_GetDashes(arg1);
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = result;
5519 return resultobj;
5520fail:
5521 return NULL;
5522}
5523
5524
5525SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj = 0;
5527 wxPen *arg1 = (wxPen *) 0 ;
5528 PyObject *arg2 = (PyObject *) 0 ;
5529 PyObject *arg3 = (PyObject *) 0 ;
5530 void *argp1 = 0 ;
5531 int res1 = 0 ;
5532 PyObject * obj0 = 0 ;
5533 PyObject * obj1 = 0 ;
5534 PyObject * obj2 = 0 ;
5535 char * kwnames[] = {
5536 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5537 };
5538
5539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5541 if (!SWIG_IsOK(res1)) {
5542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5543 }
5544 arg1 = reinterpret_cast< wxPen * >(argp1);
5545 arg2 = obj1;
5546 arg3 = obj2;
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 wxPen__SetDashes(arg1,arg2,arg3);
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 resultobj = SWIG_Py_Void();
5554 return resultobj;
5555fail:
5556 return NULL;
d14a1e28
RD
5557}
5558
5559
0085ce49
RD
5560SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5561 PyObject *resultobj = 0;
5562 wxPen *arg1 = (wxPen *) 0 ;
5563 int result;
5564 void *argp1 = 0 ;
5565 int res1 = 0 ;
5566 PyObject *swig_obj[1] ;
5567
5568 if (!args) SWIG_fail;
5569 swig_obj[0] = args;
5570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5571 if (!SWIG_IsOK(res1)) {
5572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5573 }
5574 arg1 = reinterpret_cast< wxPen * >(argp1);
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (int)((wxPen const *)arg1)->GetDashCount();
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_From_int(static_cast< int >(result));
5582 return resultobj;
5583fail:
5584 return NULL;
5585}
5586
5587
5588SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5589 PyObject *resultobj = 0;
5590 wxPen *arg1 = (wxPen *) 0 ;
5591 wxPen *arg2 = (wxPen *) 0 ;
5592 bool result;
5593 void *argp1 = 0 ;
5594 int res1 = 0 ;
5595 void *argp2 = 0 ;
5596 int res2 = 0 ;
5597 PyObject * obj0 = 0 ;
5598 PyObject * obj1 = 0 ;
5599 char * kwnames[] = {
5600 (char *) "self",(char *) "other", NULL
5601 };
5602
5603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5605 if (!SWIG_IsOK(res1)) {
5606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5607 }
5608 arg1 = reinterpret_cast< wxPen * >(argp1);
5609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5610 if (!SWIG_IsOK(res2)) {
5611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5612 }
5613 arg2 = reinterpret_cast< wxPen * >(argp2);
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 {
5621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5622 }
5623 return resultobj;
5624fail:
5625 return NULL;
5626}
5627
5628
5629SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxPen *arg1 = (wxPen *) 0 ;
5632 wxPen *arg2 = (wxPen *) 0 ;
5633 bool result;
5634 void *argp1 = 0 ;
5635 int res1 = 0 ;
5636 void *argp2 = 0 ;
5637 int res2 = 0 ;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 char * kwnames[] = {
5641 (char *) "self",(char *) "other", NULL
5642 };
5643
5644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5646 if (!SWIG_IsOK(res1)) {
5647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5648 }
5649 arg1 = reinterpret_cast< wxPen * >(argp1);
5650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5651 if (!SWIG_IsOK(res2)) {
5652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5653 }
5654 arg2 = reinterpret_cast< wxPen * >(argp2);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665fail:
5666 return NULL;
d14a1e28
RD
5667}
5668
5669
0085ce49
RD
5670SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5671 PyObject *obj;
5672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5673 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5674 return SWIG_Py_Void();
d14a1e28
RD
5675}
5676
0085ce49
RD
5677SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5678 return SWIG_Python_InitShadowInstance(args);
5679}
d14a1e28 5680
0085ce49
RD
5681SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj = 0;
5683 wxColour *arg1 = 0 ;
5684 int arg2 = (int) wxSOLID ;
5685 wxBrush *result = 0 ;
5686 wxColour temp1 ;
5687 int val2 ;
5688 int ecode2 = 0 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 char * kwnames[] = {
5692 (char *) "colour",(char *) "style", NULL
5693 };
5694
5695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5696 {
5697 arg1 = &temp1;
5698 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5699 }
5700 if (obj1) {
5701 ecode2 = SWIG_AsVal_int(obj1, &val2);
5702 if (!SWIG_IsOK(ecode2)) {
5703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5704 }
5705 arg2 = static_cast< int >(val2);
5706 }
5707 {
5708 if (!wxPyCheckForApp()) SWIG_fail;
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5715 return resultobj;
5716fail:
5717 return NULL;
5718}
5719
5720
5721SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj = 0;
5723 wxBitmap *arg1 = 0 ;
5724 wxBrush *result = 0 ;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 PyObject * obj0 = 0 ;
5728 char * kwnames[] = {
5729 (char *) "stippleBitmap", NULL
5730 };
5731
5732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5733 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5734 if (!SWIG_IsOK(res1)) {
5735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5736 }
5737 if (!argp1) {
5738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5739 }
5740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5741 {
5742 if (!wxPyCheckForApp()) SWIG_fail;
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5749 return resultobj;
5750fail:
5751 return NULL;
d14a1e28
RD
5752}
5753
5754
0085ce49
RD
5755SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5756 PyObject *resultobj = 0;
5757 wxBrush *arg1 = (wxBrush *) 0 ;
5758 void *argp1 = 0 ;
5759 int res1 = 0 ;
5760 PyObject *swig_obj[1] ;
5761
5762 if (!args) SWIG_fail;
5763 swig_obj[0] = args;
5764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5765 if (!SWIG_IsOK(res1)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5767 }
5768 arg1 = reinterpret_cast< wxBrush * >(argp1);
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 delete arg1;
d14a1e28 5772
0085ce49
RD
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 resultobj = SWIG_Py_Void();
5777 return resultobj;
5778fail:
5779 return NULL;
5780}
5781
5782
5783SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj = 0;
5785 wxBrush *arg1 = (wxBrush *) 0 ;
5786 wxColour *arg2 = 0 ;
5787 void *argp1 = 0 ;
5788 int res1 = 0 ;
5789 wxColour temp2 ;
5790 PyObject * obj0 = 0 ;
5791 PyObject * obj1 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "self",(char *) "col", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5798 if (!SWIG_IsOK(res1)) {
5799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5800 }
5801 arg1 = reinterpret_cast< wxBrush * >(argp1);
5802 {
5803 arg2 = &temp2;
5804 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5805 }
5806 {
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 (arg1)->SetColour((wxColour const &)*arg2);
5809 wxPyEndAllowThreads(__tstate);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 }
5812 resultobj = SWIG_Py_Void();
5813 return resultobj;
5814fail:
5815 return NULL;
5816}
5817
5818
5819SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj = 0;
5821 wxBrush *arg1 = (wxBrush *) 0 ;
5822 int arg2 ;
5823 void *argp1 = 0 ;
5824 int res1 = 0 ;
5825 int val2 ;
5826 int ecode2 = 0 ;
5827 PyObject * obj0 = 0 ;
5828 PyObject * obj1 = 0 ;
5829 char * kwnames[] = {
5830 (char *) "self",(char *) "style", NULL
5831 };
5832
5833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5837 }
5838 arg1 = reinterpret_cast< wxBrush * >(argp1);
5839 ecode2 = SWIG_AsVal_int(obj1, &val2);
5840 if (!SWIG_IsOK(ecode2)) {
5841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5842 }
5843 arg2 = static_cast< int >(val2);
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 (arg1)->SetStyle(arg2);
5847 wxPyEndAllowThreads(__tstate);
5848 if (PyErr_Occurred()) SWIG_fail;
5849 }
5850 resultobj = SWIG_Py_Void();
5851 return resultobj;
5852fail:
5853 return NULL;
5854}
5855
5856
5857SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5858 PyObject *resultobj = 0;
5859 wxBrush *arg1 = (wxBrush *) 0 ;
5860 wxBitmap *arg2 = 0 ;
5861 void *argp1 = 0 ;
5862 int res1 = 0 ;
5863 void *argp2 = 0 ;
5864 int res2 = 0 ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "self",(char *) "stipple", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5873 if (!SWIG_IsOK(res1)) {
5874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5875 }
5876 arg1 = reinterpret_cast< wxBrush * >(argp1);
5877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5878 if (!SWIG_IsOK(res2)) {
5879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5880 }
5881 if (!argp2) {
5882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5883 }
5884 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 (arg1)->SetStipple((wxBitmap const &)*arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_Py_Void();
5892 return resultobj;
5893fail:
5894 return NULL;
d14a1e28
RD
5895}
5896
5897
0085ce49
RD
5898SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5899 PyObject *resultobj = 0;
5900 wxBrush *arg1 = (wxBrush *) 0 ;
5901 wxColour result;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5911 }
5912 arg1 = reinterpret_cast< wxBrush * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = ((wxBrush const *)arg1)->GetColour();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5920 return resultobj;
5921fail:
5922 return NULL;
d14a1e28
RD
5923}
5924
5925
0085ce49
RD
5926SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5927 PyObject *resultobj = 0;
5928 wxBrush *arg1 = (wxBrush *) 0 ;
5929 int result;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5939 }
5940 arg1 = reinterpret_cast< wxBrush * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 result = (int)((wxBrush const *)arg1)->GetStyle();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_From_int(static_cast< int >(result));
5948 return resultobj;
5949fail:
5950 return NULL;
d14a1e28
RD
5951}
5952
5953
0085ce49
RD
5954SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxBrush *arg1 = (wxBrush *) 0 ;
5957 wxBitmap *result = 0 ;
5958 void *argp1 = 0 ;
5959 int res1 = 0 ;
5960 PyObject *swig_obj[1] ;
5961
5962 if (!args) SWIG_fail;
5963 swig_obj[0] = args;
5964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5965 if (!SWIG_IsOK(res1)) {
5966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5967 }
5968 arg1 = reinterpret_cast< wxBrush * >(argp1);
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) SWIG_fail;
5974 }
5975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5976 return resultobj;
5977fail:
5978 return NULL;
d14a1e28
RD
5979}
5980
5981
0085ce49
RD
5982SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5983 PyObject *resultobj = 0;
5984 wxBrush *arg1 = (wxBrush *) 0 ;
5985 bool result;
5986 void *argp1 = 0 ;
5987 int res1 = 0 ;
5988 PyObject *swig_obj[1] ;
5989
5990 if (!args) SWIG_fail;
5991 swig_obj[0] = args;
5992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5995 }
5996 arg1 = reinterpret_cast< wxBrush * >(argp1);
5997 {
5998 PyThreadState* __tstate = wxPyBeginAllowThreads();
5999 result = (bool)((wxBrush const *)arg1)->IsHatch();
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 {
6004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6005 }
6006 return resultobj;
6007fail:
6008 return NULL;
f78cc896
RD
6009}
6010
6011
b39fe951 6012SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6013 PyObject *resultobj = 0;
6014 wxBrush *arg1 = (wxBrush *) 0 ;
6015 bool result;
6016 void *argp1 = 0 ;
6017 int res1 = 0 ;
6018 PyObject *swig_obj[1] ;
6019
6020 if (!args) SWIG_fail;
6021 swig_obj[0] = args;
6022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6023 if (!SWIG_IsOK(res1)) {
b39fe951 6024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
6025 }
6026 arg1 = reinterpret_cast< wxBrush * >(argp1);
6027 {
6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6029 result = (bool)(arg1)->IsOk();
0085ce49
RD
6030 wxPyEndAllowThreads(__tstate);
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 {
6034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6035 }
6036 return resultobj;
6037fail:
6038 return NULL;
d14a1e28
RD
6039}
6040
6041
0085ce49
RD
6042SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6043 PyObject *obj;
6044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6045 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6046 return SWIG_Py_Void();
d14a1e28
RD
6047}
6048
0085ce49
RD
6049SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050 return SWIG_Python_InitShadowInstance(args);
6051}
d14a1e28 6052
0085ce49
RD
6053SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj = 0;
6055 wxString *arg1 = 0 ;
6056 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6057 wxBitmap *result = 0 ;
6058 bool temp1 = false ;
6059 int val2 ;
6060 int ecode2 = 0 ;
6061 PyObject * obj0 = 0 ;
6062 PyObject * obj1 = 0 ;
6063 char * kwnames[] = {
6064 (char *) "name",(char *) "type", NULL
6065 };
6066
6067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6068 {
6069 arg1 = wxString_in_helper(obj0);
6070 if (arg1 == NULL) SWIG_fail;
6071 temp1 = true;
6072 }
6073 if (obj1) {
6074 ecode2 = SWIG_AsVal_int(obj1, &val2);
6075 if (!SWIG_IsOK(ecode2)) {
6076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6077 }
6078 arg2 = static_cast< wxBitmapType >(val2);
6079 }
6080 {
6081 if (!wxPyCheckForApp()) SWIG_fail;
6082 PyThreadState* __tstate = wxPyBeginAllowThreads();
6083 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6084 wxPyEndAllowThreads(__tstate);
6085 if (PyErr_Occurred()) SWIG_fail;
6086 }
6087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6088 {
6089 if (temp1)
6090 delete arg1;
6091 }
6092 return resultobj;
6093fail:
6094 {
6095 if (temp1)
6096 delete arg1;
6097 }
6098 return NULL;
d14a1e28
RD
6099}
6100
6101
0085ce49
RD
6102SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6103 PyObject *resultobj = 0;
6104 wxBitmap *arg1 = (wxBitmap *) 0 ;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6114 }
6115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6116 {
0085ce49 6117 delete arg1;
66c033b4 6118
0085ce49
RD
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_Py_Void();
6122 return resultobj;
6123fail:
6124 return NULL;
6125}
6126
6127
6128SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj = 0;
6130 int arg1 ;
6131 int arg2 ;
6132 int arg3 = (int) -1 ;
6133 wxBitmap *result = 0 ;
6134 int val1 ;
6135 int ecode1 = 0 ;
6136 int val2 ;
6137 int ecode2 = 0 ;
6138 int val3 ;
6139 int ecode3 = 0 ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 PyObject * obj2 = 0 ;
6143 char * kwnames[] = {
6144 (char *) "width",(char *) "height",(char *) "depth", NULL
6145 };
6146
6147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6148 ecode1 = SWIG_AsVal_int(obj0, &val1);
6149 if (!SWIG_IsOK(ecode1)) {
6150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6151 }
6152 arg1 = static_cast< int >(val1);
6153 ecode2 = SWIG_AsVal_int(obj1, &val2);
6154 if (!SWIG_IsOK(ecode2)) {
6155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6156 }
6157 arg2 = static_cast< int >(val2);
6158 if (obj2) {
6159 ecode3 = SWIG_AsVal_int(obj2, &val3);
6160 if (!SWIG_IsOK(ecode3)) {
6161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6162 }
6163 arg3 = static_cast< int >(val3);
6164 }
6165 {
6166 if (!wxPyCheckForApp()) SWIG_fail;
6167 PyThreadState* __tstate = wxPyBeginAllowThreads();
6168 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6169 wxPyEndAllowThreads(__tstate);
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6173 return resultobj;
6174fail:
6175 return NULL;
6176}
6177
6178
6179SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj = 0;
6181 wxIcon *arg1 = 0 ;
6182 wxBitmap *result = 0 ;
6183 void *argp1 = 0 ;
6184 int res1 = 0 ;
6185 PyObject * obj0 = 0 ;
6186 char * kwnames[] = {
6187 (char *) "icon", NULL
6188 };
6189
6190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6191 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6194 }
6195 if (!argp1) {
6196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6197 }
6198 arg1 = reinterpret_cast< wxIcon * >(argp1);
6199 {
6200 if (!wxPyCheckForApp()) SWIG_fail;
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6207 return resultobj;
6208fail:
6209 return NULL;
6210}
6211
6212
6213SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj = 0;
6215 wxImage *arg1 = 0 ;
6216 int arg2 = (int) -1 ;
6217 wxBitmap *result = 0 ;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 int val2 ;
6221 int ecode2 = 0 ;
6222 PyObject * obj0 = 0 ;
6223 PyObject * obj1 = 0 ;
6224 char * kwnames[] = {
6225 (char *) "image",(char *) "depth", NULL
6226 };
6227
6228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6229 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6230 if (!SWIG_IsOK(res1)) {
6231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6232 }
6233 if (!argp1) {
6234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6235 }
6236 arg1 = reinterpret_cast< wxImage * >(argp1);
6237 if (obj1) {
6238 ecode2 = SWIG_AsVal_int(obj1, &val2);
6239 if (!SWIG_IsOK(ecode2)) {
6240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6241 }
6242 arg2 = static_cast< int >(val2);
6243 }
6244 {
6245 if (!wxPyCheckForApp()) SWIG_fail;
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6252 return resultobj;
6253fail:
6254 return NULL;
66c033b4
RD
6255}
6256
6257
0085ce49
RD
6258SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj = 0;
6260 PyObject *arg1 = (PyObject *) 0 ;
6261 wxBitmap *result = 0 ;
6262 PyObject * obj0 = 0 ;
6263 char * kwnames[] = {
6264 (char *) "listOfStrings", NULL
6265 };
6266
6267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6268 arg1 = obj0;
6269 {
6270 if (!wxPyCheckForApp()) SWIG_fail;
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = (wxBitmap *)new_wxBitmap(arg1);
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6277 return resultobj;
6278fail:
6279 return NULL;
6280}
6281
6282
6283SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj = 0;
6285 PyObject *arg1 = (PyObject *) 0 ;
6286 int arg2 ;
6287 int arg3 ;
6288 int arg4 = (int) 1 ;
6289 wxBitmap *result = 0 ;
6290 int val2 ;
6291 int ecode2 = 0 ;
6292 int val3 ;
6293 int ecode3 = 0 ;
6294 int val4 ;
6295 int ecode4 = 0 ;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 PyObject * obj2 = 0 ;
6299 PyObject * obj3 = 0 ;
6300 char * kwnames[] = {
6301 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6302 };
6303
6304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6305 arg1 = obj0;
6306 ecode2 = SWIG_AsVal_int(obj1, &val2);
6307 if (!SWIG_IsOK(ecode2)) {
6308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6309 }
6310 arg2 = static_cast< int >(val2);
6311 ecode3 = SWIG_AsVal_int(obj2, &val3);
6312 if (!SWIG_IsOK(ecode3)) {
6313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6314 }
6315 arg3 = static_cast< int >(val3);
6316 if (obj3) {
6317 ecode4 = SWIG_AsVal_int(obj3, &val4);
6318 if (!SWIG_IsOK(ecode4)) {
6319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6320 }
6321 arg4 = static_cast< int >(val4);
6322 }
6323 {
6324 if (!wxPyCheckForApp()) SWIG_fail;
6325 PyThreadState* __tstate = wxPyBeginAllowThreads();
6326 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6331 return resultobj;
6332fail:
6333 return NULL;
d14a1e28
RD
6334}
6335
6336
b39fe951 6337SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6338 PyObject *resultobj = 0;
6339 wxBitmap *arg1 = (wxBitmap *) 0 ;
6340 bool result;
6341 void *argp1 = 0 ;
6342 int res1 = 0 ;
6343 PyObject *swig_obj[1] ;
6344
6345 if (!args) SWIG_fail;
6346 swig_obj[0] = args;
6347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6348 if (!SWIG_IsOK(res1)) {
b39fe951 6349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6350 }
6351 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6352 {
b39fe951 6353 result = (bool)(arg1)->IsOk();
0085ce49
RD
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 {
6357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6358 }
6359 return resultobj;
6360fail:
6361 return NULL;
d14a1e28
RD
6362}
6363
6364
0085ce49
RD
6365SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6366 PyObject *resultobj = 0;
6367 wxBitmap *arg1 = (wxBitmap *) 0 ;
6368 int result;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 PyObject *swig_obj[1] ;
6372
6373 if (!args) SWIG_fail;
6374 swig_obj[0] = args;
6375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6376 if (!SWIG_IsOK(res1)) {
6377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6378 }
6379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6380 {
0085ce49 6381 result = (int)(arg1)->GetWidth();
0085ce49
RD
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 resultobj = SWIG_From_int(static_cast< int >(result));
6385 return resultobj;
6386fail:
6387 return NULL;
d14a1e28
RD
6388}
6389
6390
0085ce49
RD
6391SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6392 PyObject *resultobj = 0;
6393 wxBitmap *arg1 = (wxBitmap *) 0 ;
6394 int result;
6395 void *argp1 = 0 ;
6396 int res1 = 0 ;
6397 PyObject *swig_obj[1] ;
6398
6399 if (!args) SWIG_fail;
6400 swig_obj[0] = args;
6401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6402 if (!SWIG_IsOK(res1)) {
6403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6404 }
6405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6406 {
0085ce49 6407 result = (int)(arg1)->GetHeight();
0085ce49
RD
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 resultobj = SWIG_From_int(static_cast< int >(result));
6411 return resultobj;
6412fail:
6413 return NULL;
d14a1e28
RD
6414}
6415
6416
0085ce49
RD
6417SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6418 PyObject *resultobj = 0;
6419 wxBitmap *arg1 = (wxBitmap *) 0 ;
6420 int result;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 PyObject *swig_obj[1] ;
6424
6425 if (!args) SWIG_fail;
6426 swig_obj[0] = args;
6427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6428 if (!SWIG_IsOK(res1)) {
6429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6430 }
6431 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6432 {
0085ce49 6433 result = (int)(arg1)->GetDepth();
0085ce49
RD
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_From_int(static_cast< int >(result));
6437 return resultobj;
6438fail:
6439 return NULL;
d14a1e28
RD
6440}
6441
6442
0085ce49
RD
6443SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6444 PyObject *resultobj = 0;
6445 wxBitmap *arg1 = (wxBitmap *) 0 ;
6446 wxSize result;
6447 void *argp1 = 0 ;
6448 int res1 = 0 ;
6449 PyObject *swig_obj[1] ;
6450
6451 if (!args) SWIG_fail;
6452 swig_obj[0] = args;
6453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6454 if (!SWIG_IsOK(res1)) {
6455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6456 }
6457 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6458 {
0085ce49 6459 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6463 return resultobj;
6464fail:
6465 return NULL;
d14a1e28
RD
6466}
6467
6468
0085ce49
RD
6469SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6470 PyObject *resultobj = 0;
6471 wxBitmap *arg1 = (wxBitmap *) 0 ;
6472 SwigValueWrapper<wxImage > result;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 PyObject *swig_obj[1] ;
6476
6477 if (!args) SWIG_fail;
6478 swig_obj[0] = args;
6479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6480 if (!SWIG_IsOK(res1)) {
6481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6482 }
6483 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6484 {
0085ce49 6485 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6489 return resultobj;
6490fail:
6491 return NULL;
d14a1e28
RD
6492}
6493
6494
0085ce49
RD
6495SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6496 PyObject *resultobj = 0;
6497 wxBitmap *arg1 = (wxBitmap *) 0 ;
6498 wxMask *result = 0 ;
6499 void *argp1 = 0 ;
6500 int res1 = 0 ;
6501 PyObject *swig_obj[1] ;
6502
6503 if (!args) SWIG_fail;
6504 swig_obj[0] = args;
6505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6508 }
6509 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6510 {
0085ce49 6511 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6515 return resultobj;
6516fail:
6517 return NULL;
6518}
6519
6520
6521SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj = 0;
6523 wxBitmap *arg1 = (wxBitmap *) 0 ;
6524 wxMask *arg2 = (wxMask *) 0 ;
6525 void *argp1 = 0 ;
6526 int res1 = 0 ;
6527 int res2 = 0 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char * kwnames[] = {
6531 (char *) "self",(char *) "mask", NULL
6532 };
6533
6534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6538 }
6539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6540 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6541 if (!SWIG_IsOK(res2)) {
6542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6543 }
6544 {
0085ce49 6545 (arg1)->SetMask(arg2);
0085ce49
RD
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 resultobj = SWIG_Py_Void();
6549 return resultobj;
6550fail:
6551 return NULL;
6552}
6553
6554
6555SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj = 0;
6557 wxBitmap *arg1 = (wxBitmap *) 0 ;
6558 wxColour *arg2 = 0 ;
6559 void *argp1 = 0 ;
6560 int res1 = 0 ;
6561 wxColour temp2 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 char * kwnames[] = {
6565 (char *) "self",(char *) "colour", NULL
6566 };
6567
6568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6570 if (!SWIG_IsOK(res1)) {
6571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6572 }
6573 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6574 {
6575 arg2 = &temp2;
6576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6577 }
6578 {
0085ce49 6579 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 resultobj = SWIG_Py_Void();
6583 return resultobj;
6584fail:
6585 return NULL;
6586}
6587
6588
6589SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj = 0;
6591 wxBitmap *arg1 = (wxBitmap *) 0 ;
6592 wxRect *arg2 = 0 ;
6593 SwigValueWrapper<wxBitmap > result;
6594 void *argp1 = 0 ;
6595 int res1 = 0 ;
6596 wxRect temp2 ;
6597 PyObject * obj0 = 0 ;
6598 PyObject * obj1 = 0 ;
6599 char * kwnames[] = {
6600 (char *) "self",(char *) "rect", NULL
6601 };
6602
6603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6605 if (!SWIG_IsOK(res1)) {
6606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6607 }
6608 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6609 {
6610 arg2 = &temp2;
6611 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6612 }
6613 {
0085ce49 6614 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6618 return resultobj;
6619fail:
6620 return NULL;
6621}
6622
6623
6624SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj = 0;
6626 wxBitmap *arg1 = (wxBitmap *) 0 ;
6627 wxString *arg2 = 0 ;
6628 wxBitmapType arg3 ;
6629 wxPalette *arg4 = (wxPalette *) NULL ;
6630 bool result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 bool temp2 = false ;
6634 int val3 ;
6635 int ecode3 = 0 ;
6636 void *argp4 = 0 ;
6637 int res4 = 0 ;
6638 PyObject * obj0 = 0 ;
6639 PyObject * obj1 = 0 ;
6640 PyObject * obj2 = 0 ;
6641 PyObject * obj3 = 0 ;
6642 char * kwnames[] = {
6643 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6644 };
6645
6646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6648 if (!SWIG_IsOK(res1)) {
6649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6650 }
6651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6652 {
6653 arg2 = wxString_in_helper(obj1);
6654 if (arg2 == NULL) SWIG_fail;
6655 temp2 = true;
6656 }
6657 ecode3 = SWIG_AsVal_int(obj2, &val3);
6658 if (!SWIG_IsOK(ecode3)) {
6659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6660 }
6661 arg3 = static_cast< wxBitmapType >(val3);
6662 if (obj3) {
6663 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6664 if (!SWIG_IsOK(res4)) {
6665 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6666 }
0085ce49
RD
6667 arg4 = reinterpret_cast< wxPalette * >(argp4);
6668 }
6669 {
0085ce49 6670 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 {
6674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6675 }
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return resultobj;
6681fail:
6682 {
6683 if (temp2)
6684 delete arg2;
6685 }
6686 return NULL;
6687}
6688
6689
6690SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6691 PyObject *resultobj = 0;
6692 wxBitmap *arg1 = (wxBitmap *) 0 ;
6693 wxString *arg2 = 0 ;
6694 wxBitmapType arg3 ;
6695 bool result;
6696 void *argp1 = 0 ;
6697 int res1 = 0 ;
6698 bool temp2 = false ;
6699 int val3 ;
6700 int ecode3 = 0 ;
6701 PyObject * obj0 = 0 ;
6702 PyObject * obj1 = 0 ;
6703 PyObject * obj2 = 0 ;
6704 char * kwnames[] = {
6705 (char *) "self",(char *) "name",(char *) "type", NULL
6706 };
6707
6708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6710 if (!SWIG_IsOK(res1)) {
6711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6712 }
6713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6714 {
6715 arg2 = wxString_in_helper(obj1);
6716 if (arg2 == NULL) SWIG_fail;
6717 temp2 = true;
6718 }
6719 ecode3 = SWIG_AsVal_int(obj2, &val3);
6720 if (!SWIG_IsOK(ecode3)) {
6721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6722 }
6723 arg3 = static_cast< wxBitmapType >(val3);
6724 {
0085ce49 6725 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6726 if (PyErr_Occurred()) SWIG_fail;
6727 }
6728 {
6729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6730 }
6731 {
6732 if (temp2)
6733 delete arg2;
6734 }
6735 return resultobj;
6736fail:
6737 {
6738 if (temp2)
6739 delete arg2;
6740 }
6741 return NULL;
d04418a7
RD
6742}
6743
6744
0085ce49
RD
6745SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6746 PyObject *resultobj = 0;
6747 wxBitmap *arg1 = (wxBitmap *) 0 ;
6748 wxPalette *result = 0 ;
6749 void *argp1 = 0 ;
6750 int res1 = 0 ;
6751 PyObject *swig_obj[1] ;
6752
6753 if (!args) SWIG_fail;
6754 swig_obj[0] = args;
6755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6756 if (!SWIG_IsOK(res1)) {
6757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6758 }
6759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6760 {
0085ce49 6761 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6765 return resultobj;
6766fail:
6767 return NULL;
6768}
6769
6770
6771SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj = 0;
6773 wxBitmap *arg1 = (wxBitmap *) 0 ;
6774 wxIcon *arg2 = 0 ;
6775 bool result;
6776 void *argp1 = 0 ;
6777 int res1 = 0 ;
6778 void *argp2 = 0 ;
6779 int res2 = 0 ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 char * kwnames[] = {
6783 (char *) "self",(char *) "icon", NULL
6784 };
6785
6786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6788 if (!SWIG_IsOK(res1)) {
6789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6790 }
6791 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6793 if (!SWIG_IsOK(res2)) {
6794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6795 }
6796 if (!argp2) {
6797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6798 }
6799 arg2 = reinterpret_cast< wxIcon * >(argp2);
6800 {
0085ce49 6801 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 {
6805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6806 }
6807 return resultobj;
6808fail:
6809 return NULL;
6810}
6811
6812
6813SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj = 0;
6815 wxBitmap *arg1 = (wxBitmap *) 0 ;
6816 int arg2 ;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 int val2 ;
6820 int ecode2 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char * kwnames[] = {
6824 (char *) "self",(char *) "height", NULL
6825 };
6826
6827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6829 if (!SWIG_IsOK(res1)) {
6830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6831 }
6832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6833 ecode2 = SWIG_AsVal_int(obj1, &val2);
6834 if (!SWIG_IsOK(ecode2)) {
6835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6836 }
6837 arg2 = static_cast< int >(val2);
6838 {
0085ce49 6839 (arg1)->SetHeight(arg2);
0085ce49
RD
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 resultobj = SWIG_Py_Void();
6843 return resultobj;
6844fail:
6845 return NULL;
6846}
6847
6848
6849SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj = 0;
6851 wxBitmap *arg1 = (wxBitmap *) 0 ;
6852 int arg2 ;
6853 void *argp1 = 0 ;
6854 int res1 = 0 ;
6855 int val2 ;
6856 int ecode2 = 0 ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 char * kwnames[] = {
6860 (char *) "self",(char *) "width", NULL
6861 };
6862
6863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6865 if (!SWIG_IsOK(res1)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6867 }
6868 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6869 ecode2 = SWIG_AsVal_int(obj1, &val2);
6870 if (!SWIG_IsOK(ecode2)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6872 }
6873 arg2 = static_cast< int >(val2);
6874 {
0085ce49 6875 (arg1)->SetWidth(arg2);
0085ce49
RD
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = SWIG_Py_Void();
6879 return resultobj;
6880fail:
6881 return NULL;
6882}
6883
6884
6885SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj = 0;
6887 wxBitmap *arg1 = (wxBitmap *) 0 ;
6888 int arg2 ;
6889 void *argp1 = 0 ;
6890 int res1 = 0 ;
6891 int val2 ;
6892 int ecode2 = 0 ;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6895 char * kwnames[] = {
6896 (char *) "self",(char *) "depth", NULL
6897 };
6898
6899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6901 if (!SWIG_IsOK(res1)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6903 }
6904 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6905 ecode2 = SWIG_AsVal_int(obj1, &val2);
6906 if (!SWIG_IsOK(ecode2)) {
6907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6908 }
6909 arg2 = static_cast< int >(val2);
6910 {
0085ce49 6911 (arg1)->SetDepth(arg2);
0085ce49
RD
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 resultobj = SWIG_Py_Void();
6915 return resultobj;
6916fail:
6917 return NULL;
6918}
6919
6920
6921SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6922 PyObject *resultobj = 0;
6923 wxBitmap *arg1 = (wxBitmap *) 0 ;
6924 wxSize *arg2 = 0 ;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 wxSize temp2 ;
6928 PyObject * obj0 = 0 ;
6929 PyObject * obj1 = 0 ;
6930 char * kwnames[] = {
6931 (char *) "self",(char *) "size", NULL
6932 };
6933
6934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6936 if (!SWIG_IsOK(res1)) {
6937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6938 }
6939 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6940 {
6941 arg2 = &temp2;
6942 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6943 }
6944 {
0085ce49 6945 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 resultobj = SWIG_Py_Void();
6949 return resultobj;
6950fail:
6951 return NULL;
6952}
6953
6954
8f514ab4
RD
6955SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6956 PyObject *resultobj = 0;
6957 wxBitmap *arg1 = (wxBitmap *) 0 ;
6958 buffer arg2 ;
6959 int arg3 ;
6960 void *argp1 = 0 ;
6961 int res1 = 0 ;
6962 Py_ssize_t temp2 ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 char * kwnames[] = {
6966 (char *) "self",(char *) "data", NULL
6967 };
6968
6969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
6970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6971 if (!SWIG_IsOK(res1)) {
6972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
6973 }
6974 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6975 {
6976 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
6977 arg3 = (int)temp2;
6978 }
6979 {
6980 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 resultobj = SWIG_Py_Void();
6984 return resultobj;
6985fail:
6986 return NULL;
6987}
6988
6989
6990SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6991 PyObject *resultobj = 0;
6992 wxBitmap *arg1 = (wxBitmap *) 0 ;
6993 buffer arg2 ;
6994 int arg3 ;
6995 void *argp1 = 0 ;
6996 int res1 = 0 ;
6997 Py_ssize_t temp2 ;
6998 PyObject * obj0 = 0 ;
6999 PyObject * obj1 = 0 ;
7000 char * kwnames[] = {
7001 (char *) "self",(char *) "data", NULL
7002 };
7003
7004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7006 if (!SWIG_IsOK(res1)) {
7007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7008 }
7009 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7010 {
7011 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7012 arg3 = (int)temp2;
7013 }
7014 {
7015 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 resultobj = SWIG_Py_Void();
7019 return resultobj;
7020fail:
7021 return NULL;
7022}
7023
7024
0085ce49
RD
7025SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7026 PyObject *resultobj = 0;
7027 wxBitmap *arg1 = (wxBitmap *) 0 ;
7028 wxBitmap *arg2 = (wxBitmap *) 0 ;
7029 bool result;
7030 void *argp1 = 0 ;
7031 int res1 = 0 ;
7032 void *argp2 = 0 ;
7033 int res2 = 0 ;
7034 PyObject * obj0 = 0 ;
7035 PyObject * obj1 = 0 ;
7036 char * kwnames[] = {
7037 (char *) "self",(char *) "other", NULL
7038 };
7039
7040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7042 if (!SWIG_IsOK(res1)) {
7043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7044 }
7045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7047 if (!SWIG_IsOK(res2)) {
7048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7049 }
7050 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7051 {
0085ce49 7052 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 {
fc46b7f3
RD
7056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7057 }
7058 return resultobj;
7059fail:
7060 return NULL;
7061}
7062
7063
7064SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxBitmap *arg1 = (wxBitmap *) 0 ;
7067 wxBitmap *arg2 = (wxBitmap *) 0 ;
7068 bool result;
7069 void *argp1 = 0 ;
7070 int res1 = 0 ;
7071 void *argp2 = 0 ;
7072 int res2 = 0 ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 char * kwnames[] = {
7076 (char *) "self",(char *) "other", NULL
7077 };
7078
7079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7081 if (!SWIG_IsOK(res1)) {
7082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7083 }
7084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7086 if (!SWIG_IsOK(res2)) {
7087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7088 }
7089 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7090 {
7091 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 {
7095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7096 }
7097 return resultobj;
7098fail:
7099 return NULL;
7100}
7101
7102
7103SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7104 PyObject *obj;
7105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7106 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7107 return SWIG_Py_Void();
7108}
7109
7110SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7111 return SWIG_Python_InitShadowInstance(args);
7112}
7113
7114SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj = 0;
7116 int arg1 ;
7117 int arg2 ;
7118 buffer arg3 ;
7119 int arg4 ;
7120 buffer arg5 ;
7121 int arg6 ;
7122 wxBitmap *result = 0 ;
7123 int val1 ;
7124 int ecode1 = 0 ;
7125 int val2 ;
7126 int ecode2 = 0 ;
c79fdf86
RD
7127 Py_ssize_t temp3 ;
7128 Py_ssize_t temp5 ;
fc46b7f3
RD
7129 PyObject * obj0 = 0 ;
7130 PyObject * obj1 = 0 ;
7131 PyObject * obj2 = 0 ;
7132 PyObject * obj3 = 0 ;
7133 char * kwnames[] = {
7134 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7135 };
7136
7137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7138 ecode1 = SWIG_AsVal_int(obj0, &val1);
7139 if (!SWIG_IsOK(ecode1)) {
7140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7141 }
7142 arg1 = static_cast< int >(val1);
7143 ecode2 = SWIG_AsVal_int(obj1, &val2);
7144 if (!SWIG_IsOK(ecode2)) {
7145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7146 }
7147 arg2 = static_cast< int >(val2);
7148 {
c79fdf86
RD
7149 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7150 arg4 = (int)temp3;
fc46b7f3
RD
7151 }
7152 {
7153 if (obj3 != Py_None) {
c79fdf86
RD
7154 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7155 arg6 = (int)temp5;
fc46b7f3
RD
7156 }
7157 }
7158 {
7159 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7163 return resultobj;
7164fail:
7165 return NULL;
7166}
7167
7168
7169SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj = 0;
7171 int arg1 ;
7172 int arg2 ;
7173 buffer arg3 ;
7174 int arg4 ;
7175 wxBitmap *result = 0 ;
7176 int val1 ;
7177 int ecode1 = 0 ;
7178 int val2 ;
7179 int ecode2 = 0 ;
c79fdf86 7180 Py_ssize_t temp3 ;
fc46b7f3
RD
7181 PyObject * obj0 = 0 ;
7182 PyObject * obj1 = 0 ;
7183 PyObject * obj2 = 0 ;
7184 char * kwnames[] = {
7185 (char *) "width",(char *) "height",(char *) "data", NULL
7186 };
7187
7188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7189 ecode1 = SWIG_AsVal_int(obj0, &val1);
7190 if (!SWIG_IsOK(ecode1)) {
7191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7192 }
7193 arg1 = static_cast< int >(val1);
7194 ecode2 = SWIG_AsVal_int(obj1, &val2);
7195 if (!SWIG_IsOK(ecode2)) {
7196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7197 }
7198 arg2 = static_cast< int >(val2);
7199 {
c79fdf86
RD
7200 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7201 arg4 = (int)temp3;
fc46b7f3
RD
7202 }
7203 {
7204 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7205 if (PyErr_Occurred()) SWIG_fail;
7206 }
7207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7208 return resultobj;
7209fail:
7210 return NULL;
7211}
7212
7213
7214SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7215 PyObject *resultobj = 0;
7216 int arg1 ;
7217 int arg2 ;
7218 buffer arg3 ;
7219 int arg4 ;
7220 wxBitmap *result = 0 ;
7221 int val1 ;
7222 int ecode1 = 0 ;
7223 int val2 ;
7224 int ecode2 = 0 ;
c79fdf86 7225 Py_ssize_t temp3 ;
fc46b7f3
RD
7226 PyObject * obj0 = 0 ;
7227 PyObject * obj1 = 0 ;
7228 PyObject * obj2 = 0 ;
7229 char * kwnames[] = {
7230 (char *) "width",(char *) "height",(char *) "data", NULL
7231 };
7232
7233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7234 ecode1 = SWIG_AsVal_int(obj0, &val1);
7235 if (!SWIG_IsOK(ecode1)) {
7236 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7237 }
7238 arg1 = static_cast< int >(val1);
7239 ecode2 = SWIG_AsVal_int(obj1, &val2);
7240 if (!SWIG_IsOK(ecode2)) {
7241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7242 }
7243 arg2 = static_cast< int >(val2);
7244 {
c79fdf86
RD
7245 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7246 arg4 = (int)temp3;
fc46b7f3
RD
7247 }
7248 {
7249 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7253 return resultobj;
7254fail:
7255 return NULL;
7256}
7257
7258
7259SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7260 PyObject *resultobj = 0;
7261 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7262 wxPoint result;
7263 void *argp1 = 0 ;
7264 int res1 = 0 ;
7265 PyObject *swig_obj[1] ;
7266
7267 if (!args) SWIG_fail;
7268 swig_obj[0] = args;
7269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7270 if (!SWIG_IsOK(res1)) {
7271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7272 }
7273 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7274 {
7275 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7276 if (PyErr_Occurred()) SWIG_fail;
7277 }
7278 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7279 return resultobj;
7280fail:
7281 return NULL;
7282}
7283
7284
7285SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7286 PyObject *resultobj = 0;
7287 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7288 int result;
7289 void *argp1 = 0 ;
7290 int res1 = 0 ;
7291 PyObject *swig_obj[1] ;
7292
7293 if (!args) SWIG_fail;
7294 swig_obj[0] = args;
7295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7296 if (!SWIG_IsOK(res1)) {
7297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7298 }
7299 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7300 {
7301 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 resultobj = SWIG_From_int(static_cast< int >(result));
7305 return resultobj;
7306fail:
7307 return NULL;
7308}
7309
7310
7311SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7312 PyObject *resultobj = 0;
7313 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7314 int result;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317 PyObject *swig_obj[1] ;
7318
7319 if (!args) SWIG_fail;
7320 swig_obj[0] = args;
7321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7322 if (!SWIG_IsOK(res1)) {
7323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7324 }
7325 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7326 {
7327 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_From_int(static_cast< int >(result));
7331 return resultobj;
7332fail:
7333 return NULL;
7334}
7335
7336
7337SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7338 PyObject *resultobj = 0;
7339 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7340 wxSize result;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 PyObject *swig_obj[1] ;
7344
7345 if (!args) SWIG_fail;
7346 swig_obj[0] = args;
7347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7348 if (!SWIG_IsOK(res1)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7350 }
7351 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7352 {
7353 result = ((wxPixelDataBase const *)arg1)->GetSize();
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7357 return resultobj;
7358fail:
7359 return NULL;
7360}
7361
7362
7363SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7364 PyObject *resultobj = 0;
7365 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7366 int result;
7367 void *argp1 = 0 ;
7368 int res1 = 0 ;
7369 PyObject *swig_obj[1] ;
7370
7371 if (!args) SWIG_fail;
7372 swig_obj[0] = args;
7373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7374 if (!SWIG_IsOK(res1)) {
7375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7376 }
7377 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7378 {
7379 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7380 if (PyErr_Occurred()) SWIG_fail;
7381 }
7382 resultobj = SWIG_From_int(static_cast< int >(result));
7383 return resultobj;
7384fail:
7385 return NULL;
7386}
7387
7388
7389SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7390 PyObject *obj;
7391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7392 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7393 return SWIG_Py_Void();
7394}
7395
7396SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7397 PyObject *resultobj = 0;
7398 wxBitmap *arg1 = 0 ;
7399 wxNativePixelData *result = 0 ;
7400 void *argp1 = 0 ;
7401 int res1 = 0 ;
7402
7403 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7405 if (!SWIG_IsOK(res1)) {
7406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7407 }
7408 if (!argp1) {
7409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7410 }
7411 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7412 {
7413 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7417 return resultobj;
7418fail:
7419 return NULL;
7420}
7421
7422
7423SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7424 PyObject *resultobj = 0;
7425 wxBitmap *arg1 = 0 ;
7426 wxRect *arg2 = 0 ;
7427 wxNativePixelData *result = 0 ;
7428 void *argp1 = 0 ;
7429 int res1 = 0 ;
7430 wxRect temp2 ;
7431
7432 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7434 if (!SWIG_IsOK(res1)) {
7435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7436 }
7437 if (!argp1) {
7438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7439 }
7440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7441 {
7442 arg2 = &temp2;
7443 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7444 }
7445 {
7446 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7450 return resultobj;
7451fail:
7452 return NULL;
7453}
7454
7455
7456SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7457 PyObject *resultobj = 0;
7458 wxBitmap *arg1 = 0 ;
7459 wxPoint *arg2 = 0 ;
7460 wxSize *arg3 = 0 ;
7461 wxNativePixelData *result = 0 ;
7462 void *argp1 = 0 ;
7463 int res1 = 0 ;
7464 wxPoint temp2 ;
7465 wxSize temp3 ;
7466
7467 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7469 if (!SWIG_IsOK(res1)) {
7470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7471 }
7472 if (!argp1) {
7473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7474 }
7475 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7476 {
7477 arg2 = &temp2;
7478 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7479 }
7480 {
7481 arg3 = &temp3;
7482 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7483 }
7484 {
7485 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7489 return resultobj;
7490fail:
7491 return NULL;
7492}
7493
7494
7495SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7496 int argc;
7497 PyObject *argv[4];
7498
7499 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7500 --argc;
7501 if (argc == 1) {
7502 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7503 }
7504 if (argc == 2) {
7505 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7506 }
7507 if (argc == 3) {
7508 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7509 }
7510
7511fail:
7512 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7513 return NULL;
7514}
7515
7516
7517SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7518 PyObject *resultobj = 0;
7519 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7520 void *argp1 = 0 ;
7521 int res1 = 0 ;
7522 PyObject *swig_obj[1] ;
7523
7524 if (!args) SWIG_fail;
7525 swig_obj[0] = args;
7526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7527 if (!SWIG_IsOK(res1)) {
7528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7529 }
7530 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7531 {
7532 delete arg1;
7533
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_Py_Void();
7537 return resultobj;
7538fail:
7539 return NULL;
7540}
7541
7542
7543SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7544 PyObject *resultobj = 0;
7545 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7546 wxNativePixelData_Accessor result;
7547 void *argp1 = 0 ;
7548 int res1 = 0 ;
7549 PyObject *swig_obj[1] ;
7550
7551 if (!args) SWIG_fail;
7552 swig_obj[0] = args;
7553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7554 if (!SWIG_IsOK(res1)) {
7555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7556 }
7557 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7558 {
7559 result = ((wxNativePixelData const *)arg1)->GetPixels();
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7563 return resultobj;
7564fail:
7565 return NULL;
7566}
7567
7568
7569SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7570 PyObject *resultobj = 0;
7571 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7572 void *argp1 = 0 ;
7573 int res1 = 0 ;
7574 PyObject *swig_obj[1] ;
7575
7576 if (!args) SWIG_fail;
7577 swig_obj[0] = args;
7578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7579 if (!SWIG_IsOK(res1)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7581 }
7582 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7583 {
7584 (arg1)->UseAlpha();
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_Py_Void();
7588 return resultobj;
7589fail:
7590 return NULL;
7591}
7592
7593
7594SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7595 PyObject *resultobj = 0;
7596 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7597 bool result;
7598 void *argp1 = 0 ;
7599 int res1 = 0 ;
7600 PyObject *swig_obj[1] ;
7601
7602 if (!args) SWIG_fail;
7603 swig_obj[0] = args;
7604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7605 if (!SWIG_IsOK(res1)) {
7606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7607 }
7608 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7609 {
7610 result = (bool)wxNativePixelData___nonzero__(arg1);
7611 if (PyErr_Occurred()) SWIG_fail;
7612 }
7613 {
7614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7615 }
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7623 PyObject *obj;
7624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7625 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7626 return SWIG_Py_Void();
7627}
7628
7629SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7630 return SWIG_Python_InitShadowInstance(args);
7631}
7632
7633SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7634 PyObject *resultobj = 0;
7635 wxNativePixelData *arg1 = 0 ;
7636 wxNativePixelData_Accessor *result = 0 ;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639
7640 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7642 if (!SWIG_IsOK(res1)) {
7643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7644 }
7645 if (!argp1) {
7646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7647 }
7648 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7649 {
7650 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7654 return resultobj;
7655fail:
7656 return NULL;
7657}
7658
7659
7660SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7661 PyObject *resultobj = 0;
7662 wxBitmap *arg1 = 0 ;
7663 wxNativePixelData *arg2 = 0 ;
7664 wxNativePixelData_Accessor *result = 0 ;
7665 void *argp1 = 0 ;
7666 int res1 = 0 ;
7667 void *argp2 = 0 ;
7668 int res2 = 0 ;
7669
7670 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7672 if (!SWIG_IsOK(res1)) {
7673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7674 }
7675 if (!argp1) {
7676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7677 }
7678 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7679 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7680 if (!SWIG_IsOK(res2)) {
7681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7682 }
7683 if (!argp2) {
7684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7685 }
7686 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7687 {
7688 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7692 return resultobj;
7693fail:
7694 return NULL;
7695}
7696
7697
7698SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7699 PyObject *resultobj = 0;
7700 wxNativePixelData_Accessor *result = 0 ;
7701
7702 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7703 {
7704 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7708 return resultobj;
7709fail:
7710 return NULL;
7711}
7712
7713
7714SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7715 int argc;
7716 PyObject *argv[3];
7717
7718 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7719 --argc;
7720 if (argc == 0) {
7721 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7722 }
7723 if (argc == 1) {
7724 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7725 }
7726 if (argc == 2) {
7727 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7728 }
7729
7730fail:
7731 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7732 return NULL;
7733}
7734
7735
7736SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7737 PyObject *resultobj = 0;
7738 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7739 void *argp1 = 0 ;
7740 int res1 = 0 ;
7741 PyObject *swig_obj[1] ;
7742
7743 if (!args) SWIG_fail;
7744 swig_obj[0] = args;
7745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7746 if (!SWIG_IsOK(res1)) {
7747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7748 }
7749 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7750 {
7751 delete arg1;
7752
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
7755 resultobj = SWIG_Py_Void();
7756 return resultobj;
7757fail:
7758 return NULL;
7759}
7760
7761
7762SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7763 PyObject *resultobj = 0;
7764 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7765 wxNativePixelData *arg2 = 0 ;
7766 void *argp1 = 0 ;
7767 int res1 = 0 ;
7768 void *argp2 = 0 ;
7769 int res2 = 0 ;
7770 PyObject * obj0 = 0 ;
7771 PyObject * obj1 = 0 ;
7772 char * kwnames[] = {
7773 (char *) "self",(char *) "data", NULL
7774 };
7775
7776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7778 if (!SWIG_IsOK(res1)) {
7779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7780 }
7781 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7783 if (!SWIG_IsOK(res2)) {
7784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7785 }
7786 if (!argp2) {
7787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7788 }
7789 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7790 {
7791 (arg1)->Reset((wxNativePixelData const &)*arg2);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_Py_Void();
7795 return resultobj;
7796fail:
7797 return NULL;
7798}
7799
7800
7801SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7802 PyObject *resultobj = 0;
7803 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7804 bool result;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 PyObject *swig_obj[1] ;
7808
7809 if (!args) SWIG_fail;
7810 swig_obj[0] = args;
7811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7812 if (!SWIG_IsOK(res1)) {
7813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7814 }
7815 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7816 {
7817 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 {
7821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7822 }
7823 return resultobj;
7824fail:
7825 return NULL;
7826}
7827
7828
7829SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7832 void *argp1 = 0 ;
7833 int res1 = 0 ;
7834 PyObject *swig_obj[1] ;
7835
7836 if (!args) SWIG_fail;
7837 swig_obj[0] = args;
7838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7839 if (!SWIG_IsOK(res1)) {
7840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7841 }
7842 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7843 {
7844 wxNativePixelData_Accessor_nextPixel(arg1);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 resultobj = SWIG_Py_Void();
7848 return resultobj;
7849fail:
7850 return NULL;
7851}
7852
7853
7854SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7855 PyObject *resultobj = 0;
7856 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7857 wxNativePixelData *arg2 = 0 ;
7858 int arg3 ;
7859 int arg4 ;
7860 void *argp1 = 0 ;
7861 int res1 = 0 ;
7862 void *argp2 = 0 ;
7863 int res2 = 0 ;
7864 int val3 ;
7865 int ecode3 = 0 ;
7866 int val4 ;
7867 int ecode4 = 0 ;
7868 PyObject * obj0 = 0 ;
7869 PyObject * obj1 = 0 ;
7870 PyObject * obj2 = 0 ;
7871 PyObject * obj3 = 0 ;
7872 char * kwnames[] = {
7873 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7874 };
7875
7876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7880 }
7881 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7883 if (!SWIG_IsOK(res2)) {
7884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7885 }
7886 if (!argp2) {
7887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7888 }
7889 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7890 ecode3 = SWIG_AsVal_int(obj2, &val3);
7891 if (!SWIG_IsOK(ecode3)) {
7892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7893 }
7894 arg3 = static_cast< int >(val3);
7895 ecode4 = SWIG_AsVal_int(obj3, &val4);
7896 if (!SWIG_IsOK(ecode4)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7898 }
7899 arg4 = static_cast< int >(val4);
7900 {
7901 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 resultobj = SWIG_Py_Void();
7905 return resultobj;
7906fail:
7907 return NULL;
7908}
7909
7910
7911SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7912 PyObject *resultobj = 0;
7913 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7914 wxNativePixelData *arg2 = 0 ;
7915 int arg3 ;
7916 void *argp1 = 0 ;
7917 int res1 = 0 ;
7918 void *argp2 = 0 ;
7919 int res2 = 0 ;
7920 int val3 ;
7921 int ecode3 = 0 ;
7922 PyObject * obj0 = 0 ;
7923 PyObject * obj1 = 0 ;
7924 PyObject * obj2 = 0 ;
7925 char * kwnames[] = {
7926 (char *) "self",(char *) "data",(char *) "x", NULL
7927 };
7928
7929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7931 if (!SWIG_IsOK(res1)) {
7932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7933 }
7934 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7936 if (!SWIG_IsOK(res2)) {
7937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7938 }
7939 if (!argp2) {
7940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7941 }
7942 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7943 ecode3 = SWIG_AsVal_int(obj2, &val3);
7944 if (!SWIG_IsOK(ecode3)) {
7945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7946 }
7947 arg3 = static_cast< int >(val3);
7948 {
7949 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7950 if (PyErr_Occurred()) SWIG_fail;
7951 }
7952 resultobj = SWIG_Py_Void();
7953 return resultobj;
7954fail:
7955 return NULL;
7956}
7957
7958
7959SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7960 PyObject *resultobj = 0;
7961 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7962 wxNativePixelData *arg2 = 0 ;
7963 int arg3 ;
7964 void *argp1 = 0 ;
7965 int res1 = 0 ;
7966 void *argp2 = 0 ;
7967 int res2 = 0 ;
7968 int val3 ;
7969 int ecode3 = 0 ;
7970 PyObject * obj0 = 0 ;
7971 PyObject * obj1 = 0 ;
7972 PyObject * obj2 = 0 ;
7973 char * kwnames[] = {
7974 (char *) "self",(char *) "data",(char *) "y", NULL
7975 };
7976
7977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7979 if (!SWIG_IsOK(res1)) {
7980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7981 }
7982 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7984 if (!SWIG_IsOK(res2)) {
7985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7986 }
7987 if (!argp2) {
7988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7989 }
7990 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7991 ecode3 = SWIG_AsVal_int(obj2, &val3);
7992 if (!SWIG_IsOK(ecode3)) {
7993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7994 }
7995 arg3 = static_cast< int >(val3);
7996 {
7997 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 resultobj = SWIG_Py_Void();
8001 return resultobj;
8002fail:
8003 return NULL;
8004}
8005
8006
8007SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj = 0;
8009 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8010 wxNativePixelData *arg2 = 0 ;
8011 int arg3 ;
8012 int arg4 ;
8013 void *argp1 = 0 ;
8014 int res1 = 0 ;
8015 void *argp2 = 0 ;
8016 int res2 = 0 ;
8017 int val3 ;
8018 int ecode3 = 0 ;
8019 int val4 ;
8020 int ecode4 = 0 ;
8021 PyObject * obj0 = 0 ;
8022 PyObject * obj1 = 0 ;
8023 PyObject * obj2 = 0 ;
8024 PyObject * obj3 = 0 ;
8025 char * kwnames[] = {
8026 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8027 };
8028
8029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8031 if (!SWIG_IsOK(res1)) {
8032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8033 }
8034 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8036 if (!SWIG_IsOK(res2)) {
8037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8038 }
8039 if (!argp2) {
8040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8041 }
8042 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8043 ecode3 = SWIG_AsVal_int(obj2, &val3);
8044 if (!SWIG_IsOK(ecode3)) {
8045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8046 }
8047 arg3 = static_cast< int >(val3);
8048 ecode4 = SWIG_AsVal_int(obj3, &val4);
8049 if (!SWIG_IsOK(ecode4)) {
8050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8051 }
8052 arg4 = static_cast< int >(val4);
8053 {
8054 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 resultobj = SWIG_Py_Void();
8058 return resultobj;
8059fail:
8060 return NULL;
8061}
8062
8063
8064SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj = 0;
8066 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8067 byte arg2 ;
8068 byte arg3 ;
8069 byte arg4 ;
8070 void *argp1 = 0 ;
8071 int res1 = 0 ;
8072 unsigned char val2 ;
8073 int ecode2 = 0 ;
8074 unsigned char val3 ;
8075 int ecode3 = 0 ;
8076 unsigned char val4 ;
8077 int ecode4 = 0 ;
8078 PyObject * obj0 = 0 ;
8079 PyObject * obj1 = 0 ;
8080 PyObject * obj2 = 0 ;
8081 PyObject * obj3 = 0 ;
8082 char * kwnames[] = {
8083 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8084 };
8085
8086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8088 if (!SWIG_IsOK(res1)) {
8089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8090 }
8091 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8092 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8093 if (!SWIG_IsOK(ecode2)) {
8094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8095 }
8096 arg2 = static_cast< byte >(val2);
8097 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8098 if (!SWIG_IsOK(ecode3)) {
8099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8100 }
8101 arg3 = static_cast< byte >(val3);
8102 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8103 if (!SWIG_IsOK(ecode4)) {
8104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8105 }
8106 arg4 = static_cast< byte >(val4);
8107 {
8108 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_Py_Void();
8112 return resultobj;
8113fail:
8114 return NULL;
8115}
8116
8117
8118SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8119 PyObject *resultobj = 0;
8120 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8121 PyObject *result = 0 ;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 PyObject *swig_obj[1] ;
8125
8126 if (!args) SWIG_fail;
8127 swig_obj[0] = args;
8128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8131 }
8132 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8133 {
8134 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = result;
8138 return resultobj;
8139fail:
8140 return NULL;
8141}
8142
8143
8144SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8145 PyObject *obj;
8146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8147 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8148 return SWIG_Py_Void();
8149}
8150
8151SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8152 return SWIG_Python_InitShadowInstance(args);
8153}
8154
8155SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8156 PyObject *resultobj = 0;
8157 wxBitmap *arg1 = 0 ;
8158 wxAlphaPixelData *result = 0 ;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161
8162 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8164 if (!SWIG_IsOK(res1)) {
8165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8166 }
8167 if (!argp1) {
8168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8169 }
8170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8171 {
8172 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8176 return resultobj;
8177fail:
8178 return NULL;
8179}
8180
8181
8182SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8183 PyObject *resultobj = 0;
8184 wxBitmap *arg1 = 0 ;
8185 wxRect *arg2 = 0 ;
8186 wxAlphaPixelData *result = 0 ;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 wxRect temp2 ;
8190
8191 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8193 if (!SWIG_IsOK(res1)) {
8194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8195 }
8196 if (!argp1) {
8197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8198 }
8199 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8200 {
8201 arg2 = &temp2;
8202 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8203 }
8204 {
8205 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
8208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8209 return resultobj;
8210fail:
8211 return NULL;
8212}
8213
8214
8215SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8216 PyObject *resultobj = 0;
8217 wxBitmap *arg1 = 0 ;
8218 wxPoint *arg2 = 0 ;
8219 wxSize *arg3 = 0 ;
8220 wxAlphaPixelData *result = 0 ;
8221 void *argp1 = 0 ;
8222 int res1 = 0 ;
8223 wxPoint temp2 ;
8224 wxSize temp3 ;
8225
8226 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8228 if (!SWIG_IsOK(res1)) {
8229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8230 }
8231 if (!argp1) {
8232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8233 }
8234 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8235 {
8236 arg2 = &temp2;
8237 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8238 }
8239 {
8240 arg3 = &temp3;
8241 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8242 }
8243 {
8244 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8248 return resultobj;
8249fail:
8250 return NULL;
8251}
8252
8253
8254SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8255 int argc;
8256 PyObject *argv[4];
8257
8258 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8259 --argc;
8260 if (argc == 1) {
8261 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8262 }
8263 if (argc == 2) {
8264 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8265 }
8266 if (argc == 3) {
8267 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8268 }
8269
8270fail:
8271 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8272 return NULL;
8273}
8274
8275
8276SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8277 PyObject *resultobj = 0;
8278 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8279 void *argp1 = 0 ;
8280 int res1 = 0 ;
8281 PyObject *swig_obj[1] ;
8282
8283 if (!args) SWIG_fail;
8284 swig_obj[0] = args;
8285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8286 if (!SWIG_IsOK(res1)) {
8287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8288 }
8289 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8290 {
8291 delete arg1;
8292
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 resultobj = SWIG_Py_Void();
8296 return resultobj;
8297fail:
8298 return NULL;
8299}
8300
8301
8302SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8303 PyObject *resultobj = 0;
8304 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8305 wxAlphaPixelData_Accessor result;
8306 void *argp1 = 0 ;
8307 int res1 = 0 ;
8308 PyObject *swig_obj[1] ;
8309
8310 if (!args) SWIG_fail;
8311 swig_obj[0] = args;
8312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8313 if (!SWIG_IsOK(res1)) {
8314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8315 }
8316 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8317 {
8318 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8322 return resultobj;
8323fail:
8324 return NULL;
8325}
8326
8327
8328SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8329 PyObject *resultobj = 0;
8330 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8331 void *argp1 = 0 ;
8332 int res1 = 0 ;
8333 PyObject *swig_obj[1] ;
8334
8335 if (!args) SWIG_fail;
8336 swig_obj[0] = args;
8337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8338 if (!SWIG_IsOK(res1)) {
8339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8340 }
8341 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8342 {
8343 (arg1)->UseAlpha();
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348fail:
8349 return NULL;
8350}
8351
8352
8353SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8356 bool result;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8366 }
8367 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8368 {
8369 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 {
8373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8374 }
8375 return resultobj;
8376fail:
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8382 PyObject *obj;
8383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8384 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8385 return SWIG_Py_Void();
8386}
8387
8388SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8389 return SWIG_Python_InitShadowInstance(args);
8390}
8391
8392SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8393 PyObject *resultobj = 0;
8394 wxAlphaPixelData *arg1 = 0 ;
8395 wxAlphaPixelData_Accessor *result = 0 ;
8396 void *argp1 = 0 ;
8397 int res1 = 0 ;
8398
8399 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8401 if (!SWIG_IsOK(res1)) {
8402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8403 }
8404 if (!argp1) {
8405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8406 }
8407 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8408 {
8409 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8413 return resultobj;
8414fail:
8415 return NULL;
8416}
8417
8418
8419SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8420 PyObject *resultobj = 0;
8421 wxBitmap *arg1 = 0 ;
8422 wxAlphaPixelData *arg2 = 0 ;
8423 wxAlphaPixelData_Accessor *result = 0 ;
8424 void *argp1 = 0 ;
8425 int res1 = 0 ;
8426 void *argp2 = 0 ;
8427 int res2 = 0 ;
8428
8429 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8431 if (!SWIG_IsOK(res1)) {
8432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8433 }
8434 if (!argp1) {
8435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8436 }
8437 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8438 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8439 if (!SWIG_IsOK(res2)) {
8440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8441 }
8442 if (!argp2) {
8443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8444 }
8445 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8446 {
8447 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8451 return resultobj;
8452fail:
8453 return NULL;
8454}
8455
8456
8457SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8458 PyObject *resultobj = 0;
8459 wxAlphaPixelData_Accessor *result = 0 ;
8460
8461 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8462 {
8463 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8467 return resultobj;
8468fail:
8469 return NULL;
8470}
8471
8472
8473SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8474 int argc;
8475 PyObject *argv[3];
8476
8477 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8478 --argc;
8479 if (argc == 0) {
8480 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8481 }
8482 if (argc == 1) {
8483 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8484 }
8485 if (argc == 2) {
8486 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8487 }
8488
8489fail:
8490 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8491 return NULL;
8492}
8493
8494
8495SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8496 PyObject *resultobj = 0;
8497 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8498 void *argp1 = 0 ;
8499 int res1 = 0 ;
8500 PyObject *swig_obj[1] ;
8501
8502 if (!args) SWIG_fail;
8503 swig_obj[0] = args;
8504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8505 if (!SWIG_IsOK(res1)) {
8506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8507 }
8508 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8509 {
8510 delete arg1;
8511
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_Py_Void();
8515 return resultobj;
8516fail:
8517 return NULL;
8518}
8519
8520
8521SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj = 0;
8523 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8524 wxAlphaPixelData *arg2 = 0 ;
8525 void *argp1 = 0 ;
8526 int res1 = 0 ;
8527 void *argp2 = 0 ;
8528 int res2 = 0 ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 char * kwnames[] = {
8532 (char *) "self",(char *) "data", NULL
8533 };
8534
8535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8537 if (!SWIG_IsOK(res1)) {
8538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8539 }
8540 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8542 if (!SWIG_IsOK(res2)) {
8543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8544 }
8545 if (!argp2) {
8546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8547 }
8548 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8549 {
8550 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_Py_Void();
8554 return resultobj;
8555fail:
8556 return NULL;
8557}
8558
8559
8560SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8561 PyObject *resultobj = 0;
8562 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8563 bool result;
8564 void *argp1 = 0 ;
8565 int res1 = 0 ;
8566 PyObject *swig_obj[1] ;
8567
8568 if (!args) SWIG_fail;
8569 swig_obj[0] = args;
8570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8573 }
8574 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8575 {
8576 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 {
8580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8581 }
8582 return resultobj;
8583fail:
8584 return NULL;
8585}
8586
8587
8588SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8589 PyObject *resultobj = 0;
8590 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8591 void *argp1 = 0 ;
8592 int res1 = 0 ;
8593 PyObject *swig_obj[1] ;
8594
8595 if (!args) SWIG_fail;
8596 swig_obj[0] = args;
8597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8598 if (!SWIG_IsOK(res1)) {
8599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8600 }
8601 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8602 {
8603 wxAlphaPixelData_Accessor_nextPixel(arg1);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 resultobj = SWIG_Py_Void();
8607 return resultobj;
8608fail:
8609 return NULL;
8610}
8611
8612
8613SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8614 PyObject *resultobj = 0;
8615 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8616 wxAlphaPixelData *arg2 = 0 ;
8617 int arg3 ;
8618 int arg4 ;
8619 void *argp1 = 0 ;
8620 int res1 = 0 ;
8621 void *argp2 = 0 ;
8622 int res2 = 0 ;
8623 int val3 ;
8624 int ecode3 = 0 ;
8625 int val4 ;
8626 int ecode4 = 0 ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 PyObject * obj2 = 0 ;
8630 PyObject * obj3 = 0 ;
8631 char * kwnames[] = {
8632 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8633 };
8634
8635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8637 if (!SWIG_IsOK(res1)) {
8638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8639 }
8640 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8642 if (!SWIG_IsOK(res2)) {
8643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8644 }
8645 if (!argp2) {
8646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8647 }
8648 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8649 ecode3 = SWIG_AsVal_int(obj2, &val3);
8650 if (!SWIG_IsOK(ecode3)) {
8651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8652 }
8653 arg3 = static_cast< int >(val3);
8654 ecode4 = SWIG_AsVal_int(obj3, &val4);
8655 if (!SWIG_IsOK(ecode4)) {
8656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8657 }
8658 arg4 = static_cast< int >(val4);
8659 {
8660 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8661 if (PyErr_Occurred()) SWIG_fail;
8662 }
8663 resultobj = SWIG_Py_Void();
8664 return resultobj;
8665fail:
8666 return NULL;
8667}
8668
8669
8670SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8671 PyObject *resultobj = 0;
8672 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8673 wxAlphaPixelData *arg2 = 0 ;
8674 int arg3 ;
8675 void *argp1 = 0 ;
8676 int res1 = 0 ;
8677 void *argp2 = 0 ;
8678 int res2 = 0 ;
8679 int val3 ;
8680 int ecode3 = 0 ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 PyObject * obj2 = 0 ;
8684 char * kwnames[] = {
8685 (char *) "self",(char *) "data",(char *) "x", NULL
8686 };
8687
8688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8690 if (!SWIG_IsOK(res1)) {
8691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8692 }
8693 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8695 if (!SWIG_IsOK(res2)) {
8696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8697 }
8698 if (!argp2) {
8699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8700 }
8701 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8702 ecode3 = SWIG_AsVal_int(obj2, &val3);
8703 if (!SWIG_IsOK(ecode3)) {
8704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8705 }
8706 arg3 = static_cast< int >(val3);
8707 {
8708 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 resultobj = SWIG_Py_Void();
8712 return resultobj;
8713fail:
8714 return NULL;
8715}
8716
8717
8718SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj = 0;
8720 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8721 wxAlphaPixelData *arg2 = 0 ;
8722 int arg3 ;
8723 void *argp1 = 0 ;
8724 int res1 = 0 ;
8725 void *argp2 = 0 ;
8726 int res2 = 0 ;
8727 int val3 ;
8728 int ecode3 = 0 ;
8729 PyObject * obj0 = 0 ;
8730 PyObject * obj1 = 0 ;
8731 PyObject * obj2 = 0 ;
8732 char * kwnames[] = {
8733 (char *) "self",(char *) "data",(char *) "y", NULL
8734 };
8735
8736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8738 if (!SWIG_IsOK(res1)) {
8739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8740 }
8741 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8743 if (!SWIG_IsOK(res2)) {
8744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8745 }
8746 if (!argp2) {
8747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8748 }
8749 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8750 ecode3 = SWIG_AsVal_int(obj2, &val3);
8751 if (!SWIG_IsOK(ecode3)) {
8752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8753 }
8754 arg3 = static_cast< int >(val3);
8755 {
8756 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 }
8759 resultobj = SWIG_Py_Void();
8760 return resultobj;
8761fail:
8762 return NULL;
8763}
8764
8765
8766SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8767 PyObject *resultobj = 0;
8768 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8769 wxAlphaPixelData *arg2 = 0 ;
8770 int arg3 ;
8771 int arg4 ;
8772 void *argp1 = 0 ;
8773 int res1 = 0 ;
8774 void *argp2 = 0 ;
8775 int res2 = 0 ;
8776 int val3 ;
8777 int ecode3 = 0 ;
8778 int val4 ;
8779 int ecode4 = 0 ;
8780 PyObject * obj0 = 0 ;
8781 PyObject * obj1 = 0 ;
8782 PyObject * obj2 = 0 ;
8783 PyObject * obj3 = 0 ;
8784 char * kwnames[] = {
8785 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8786 };
8787
8788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8790 if (!SWIG_IsOK(res1)) {
8791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8792 }
8793 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8795 if (!SWIG_IsOK(res2)) {
8796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8797 }
8798 if (!argp2) {
8799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8800 }
8801 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8802 ecode3 = SWIG_AsVal_int(obj2, &val3);
8803 if (!SWIG_IsOK(ecode3)) {
8804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8805 }
8806 arg3 = static_cast< int >(val3);
8807 ecode4 = SWIG_AsVal_int(obj3, &val4);
8808 if (!SWIG_IsOK(ecode4)) {
8809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8810 }
8811 arg4 = static_cast< int >(val4);
8812 {
8813 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 resultobj = SWIG_Py_Void();
8817 return resultobj;
8818fail:
8819 return NULL;
8820}
8821
8822
8823SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj = 0;
8825 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8826 byte arg2 ;
8827 byte arg3 ;
8828 byte arg4 ;
8829 byte arg5 ;
8830 void *argp1 = 0 ;
8831 int res1 = 0 ;
8832 unsigned char val2 ;
8833 int ecode2 = 0 ;
8834 unsigned char val3 ;
8835 int ecode3 = 0 ;
8836 unsigned char val4 ;
8837 int ecode4 = 0 ;
8838 unsigned char val5 ;
8839 int ecode5 = 0 ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 PyObject * obj3 = 0 ;
8844 PyObject * obj4 = 0 ;
8845 char * kwnames[] = {
8846 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8847 };
8848
8849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8853 }
8854 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8855 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8858 }
8859 arg2 = static_cast< byte >(val2);
8860 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8861 if (!SWIG_IsOK(ecode3)) {
8862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8863 }
8864 arg3 = static_cast< byte >(val3);
8865 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8866 if (!SWIG_IsOK(ecode4)) {
8867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8868 }
8869 arg4 = static_cast< byte >(val4);
8870 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8871 if (!SWIG_IsOK(ecode5)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8873 }
8874 arg5 = static_cast< byte >(val5);
8875 {
8876 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8877 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8878 }
fc46b7f3 8879 resultobj = SWIG_Py_Void();
0085ce49
RD
8880 return resultobj;
8881fail:
8882 return NULL;
8883}
8884
8885
fc46b7f3 8886SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8887 PyObject *resultobj = 0;
fc46b7f3
RD
8888 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8889 PyObject *result = 0 ;
0085ce49
RD
8890 void *argp1 = 0 ;
8891 int res1 = 0 ;
fc46b7f3 8892 PyObject *swig_obj[1] ;
0085ce49 8893
fc46b7f3
RD
8894 if (!args) SWIG_fail;
8895 swig_obj[0] = args;
8896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8897 if (!SWIG_IsOK(res1)) {
fc46b7f3 8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8899 }
fc46b7f3 8900 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8901 {
fc46b7f3 8902 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
fc46b7f3 8905 resultobj = result;
0085ce49
RD
8906 return resultobj;
8907fail:
8908 return NULL;
d14a1e28
RD
8909}
8910
8911
fc46b7f3 8912SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8913 PyObject *obj;
8914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8915 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8916 return SWIG_Py_Void();
b2df227b
RD
8917}
8918
fc46b7f3 8919SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8920 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8921}
8922
0085ce49
RD
8923SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj = 0;
8925 wxBitmap *arg1 = 0 ;
8926 wxColour const &arg2_defvalue = wxNullColour ;
8927 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8928 wxMask *result = 0 ;
8929 void *argp1 = 0 ;
8930 int res1 = 0 ;
8931 wxColour temp2 ;
8932 PyObject * obj0 = 0 ;
8933 PyObject * obj1 = 0 ;
8934 char * kwnames[] = {
8935 (char *) "bitmap",(char *) "colour", NULL
8936 };
8937
8938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8940 if (!SWIG_IsOK(res1)) {
8941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8942 }
8943 if (!argp1) {
8944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8945 }
8946 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8947 if (obj1) {
d14a1e28 8948 {
0085ce49
RD
8949 arg2 = &temp2;
8950 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8951 }
0085ce49
RD
8952 }
8953 {
8954 if (!wxPyCheckForApp()) SWIG_fail;
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8961 return resultobj;
8962fail:
8963 return NULL;
d14a1e28
RD
8964}
8965
8966
0085ce49
RD
8967SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8968 PyObject *resultobj = 0;
8969 wxMask *arg1 = (wxMask *) 0 ;
8970 void *argp1 = 0 ;
8971 int res1 = 0 ;
8972 PyObject *swig_obj[1] ;
8973
8974 if (!args) SWIG_fail;
8975 swig_obj[0] = args;
8976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8977 if (!SWIG_IsOK(res1)) {
8978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8979 }
8980 arg1 = reinterpret_cast< wxMask * >(argp1);
8981 {
0085ce49 8982 delete arg1;
d14a1e28 8983
0085ce49
RD
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 resultobj = SWIG_Py_Void();
8987 return resultobj;
8988fail:
8989 return NULL;
8990}
8991
8992
8993SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8994 PyObject *obj;
8995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8996 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8997 return SWIG_Py_Void();
8998}
8999
9000SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9001 return SWIG_Python_InitShadowInstance(args);
9002}
9003
9004SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj = 0;
9006 wxString *arg1 = 0 ;
9007 wxBitmapType arg2 ;
9008 int arg3 = (int) -1 ;
9009 int arg4 = (int) -1 ;
9010 wxIcon *result = 0 ;
9011 bool temp1 = false ;
9012 int val2 ;
9013 int ecode2 = 0 ;
9014 int val3 ;
9015 int ecode3 = 0 ;
9016 int val4 ;
9017 int ecode4 = 0 ;
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 PyObject * obj2 = 0 ;
9021 PyObject * obj3 = 0 ;
9022 char * kwnames[] = {
9023 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9024 };
9025
9026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9027 {
9028 arg1 = wxString_in_helper(obj0);
9029 if (arg1 == NULL) SWIG_fail;
9030 temp1 = true;
9031 }
9032 ecode2 = SWIG_AsVal_int(obj1, &val2);
9033 if (!SWIG_IsOK(ecode2)) {
9034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9035 }
9036 arg2 = static_cast< wxBitmapType >(val2);
9037 if (obj2) {
9038 ecode3 = SWIG_AsVal_int(obj2, &val3);
9039 if (!SWIG_IsOK(ecode3)) {
9040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9041 }
9042 arg3 = static_cast< int >(val3);
9043 }
9044 if (obj3) {
9045 ecode4 = SWIG_AsVal_int(obj3, &val4);
9046 if (!SWIG_IsOK(ecode4)) {
9047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9048 }
9049 arg4 = static_cast< int >(val4);
9050 }
9051 {
9052 if (!wxPyCheckForApp()) SWIG_fail;
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9059 {
9060 if (temp1)
9061 delete arg1;
9062 }
9063 return resultobj;
9064fail:
9065 {
9066 if (temp1)
9067 delete arg1;
9068 }
9069 return NULL;
d14a1e28
RD
9070}
9071
9072
0085ce49
RD
9073SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9074 PyObject *resultobj = 0;
9075 wxIcon *arg1 = (wxIcon *) 0 ;
9076 void *argp1 = 0 ;
9077 int res1 = 0 ;
9078 PyObject *swig_obj[1] ;
9079
9080 if (!args) SWIG_fail;
9081 swig_obj[0] = args;
9082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9085 }
9086 arg1 = reinterpret_cast< wxIcon * >(argp1);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 delete arg1;
d14a1e28 9090
0085ce49
RD
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 resultobj = SWIG_Py_Void();
9095 return resultobj;
9096fail:
9097 return NULL;
d14a1e28
RD
9098}
9099
9100
0085ce49
RD
9101SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9102 PyObject *resultobj = 0;
9103 wxIcon *result = 0 ;
9104
9105 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9106 {
9107 if (!wxPyCheckForApp()) SWIG_fail;
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 result = (wxIcon *)new wxIcon();
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9114 return resultobj;
9115fail:
9116 return NULL;
9117}
9118
9119
9120SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj = 0;
9122 wxIconLocation *arg1 = 0 ;
9123 wxIcon *result = 0 ;
9124 void *argp1 = 0 ;
9125 int res1 = 0 ;
9126 PyObject * obj0 = 0 ;
9127 char * kwnames[] = {
9128 (char *) "loc", NULL
9129 };
9130
9131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9132 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9133 if (!SWIG_IsOK(res1)) {
9134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9135 }
9136 if (!argp1) {
9137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9138 }
9139 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9140 {
9141 if (!wxPyCheckForApp()) SWIG_fail;
9142 PyThreadState* __tstate = wxPyBeginAllowThreads();
9143 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9144 wxPyEndAllowThreads(__tstate);
9145 if (PyErr_Occurred()) SWIG_fail;
9146 }
9147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9148 return resultobj;
9149fail:
9150 return NULL;
9151}
9152
9153
9154SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj = 0;
9156 wxBitmap *arg1 = 0 ;
9157 wxIcon *result = 0 ;
9158 void *argp1 = 0 ;
9159 int res1 = 0 ;
9160 PyObject * obj0 = 0 ;
9161 char * kwnames[] = {
9162 (char *) "bmp", NULL
9163 };
9164
9165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9166 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9169 }
9170 if (!argp1) {
9171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9172 }
9173 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9174 {
9175 if (!wxPyCheckForApp()) SWIG_fail;
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9182 return resultobj;
9183fail:
9184 return NULL;
d14a1e28
RD
9185}
9186
9187
0085ce49
RD
9188SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj = 0;
9190 PyObject *arg1 = (PyObject *) 0 ;
9191 wxIcon *result = 0 ;
9192 PyObject * obj0 = 0 ;
9193 char * kwnames[] = {
9194 (char *) "listOfStrings", NULL
9195 };
9196
9197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9198 arg1 = obj0;
9199 {
9200 if (!wxPyCheckForApp()) SWIG_fail;
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (wxIcon *)new_wxIcon(arg1);
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9207 return resultobj;
9208fail:
9209 return NULL;
9210}
9211
9212
9213SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxIcon *arg1 = (wxIcon *) 0 ;
9216 wxString *arg2 = 0 ;
9217 wxBitmapType arg3 ;
9218 bool result;
9219 void *argp1 = 0 ;
9220 int res1 = 0 ;
9221 bool temp2 = false ;
9222 int val3 ;
9223 int ecode3 = 0 ;
9224 PyObject * obj0 = 0 ;
9225 PyObject * obj1 = 0 ;
9226 PyObject * obj2 = 0 ;
9227 char * kwnames[] = {
9228 (char *) "self",(char *) "name",(char *) "type", NULL
9229 };
9230
9231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9233 if (!SWIG_IsOK(res1)) {
9234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9235 }
9236 arg1 = reinterpret_cast< wxIcon * >(argp1);
9237 {
9238 arg2 = wxString_in_helper(obj1);
9239 if (arg2 == NULL) SWIG_fail;
9240 temp2 = true;
9241 }
9242 ecode3 = SWIG_AsVal_int(obj2, &val3);
9243 if (!SWIG_IsOK(ecode3)) {
9244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9245 }
9246 arg3 = static_cast< wxBitmapType >(val3);
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9255 }
9256 {
9257 if (temp2)
9258 delete arg2;
9259 }
9260 return resultobj;
9261fail:
9262 {
9263 if (temp2)
9264 delete arg2;
9265 }
9266 return NULL;
d14a1e28
RD
9267}
9268
9269
b39fe951 9270SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9271 PyObject *resultobj = 0;
9272 wxIcon *arg1 = (wxIcon *) 0 ;
9273 bool result;
9274 void *argp1 = 0 ;
9275 int res1 = 0 ;
9276 PyObject *swig_obj[1] ;
9277
9278 if (!args) SWIG_fail;
9279 swig_obj[0] = args;
9280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
b39fe951 9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
9283 }
9284 arg1 = reinterpret_cast< wxIcon * >(argp1);
9285 {
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9287 result = (bool)(arg1)->IsOk();
0085ce49
RD
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 {
9292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9293 }
9294 return resultobj;
9295fail:
9296 return NULL;
d14a1e28
RD
9297}
9298
9299
0085ce49
RD
9300SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9301 PyObject *resultobj = 0;
9302 wxIcon *arg1 = (wxIcon *) 0 ;
9303 int result;
9304 void *argp1 = 0 ;
9305 int res1 = 0 ;
9306 PyObject *swig_obj[1] ;
9307
9308 if (!args) SWIG_fail;
9309 swig_obj[0] = args;
9310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9311 if (!SWIG_IsOK(res1)) {
9312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9313 }
9314 arg1 = reinterpret_cast< wxIcon * >(argp1);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (int)(arg1)->GetWidth();
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 resultobj = SWIG_From_int(static_cast< int >(result));
9322 return resultobj;
9323fail:
9324 return NULL;
d3b6e4ff
RD
9325}
9326
9327
0085ce49
RD
9328SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9329 PyObject *resultobj = 0;
9330 wxIcon *arg1 = (wxIcon *) 0 ;
9331 int result;
9332 void *argp1 = 0 ;
9333 int res1 = 0 ;
9334 PyObject *swig_obj[1] ;
9335
9336 if (!args) SWIG_fail;
9337 swig_obj[0] = args;
9338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9339 if (!SWIG_IsOK(res1)) {
9340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9341 }
9342 arg1 = reinterpret_cast< wxIcon * >(argp1);
9343 {
9344 PyThreadState* __tstate = wxPyBeginAllowThreads();
9345 result = (int)(arg1)->GetHeight();
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 resultobj = SWIG_From_int(static_cast< int >(result));
9350 return resultobj;
9351fail:
9352 return NULL;
d14a1e28
RD
9353}
9354
9355
0085ce49
RD
9356SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9357 PyObject *resultobj = 0;
9358 wxIcon *arg1 = (wxIcon *) 0 ;
9359 int result;
9360 void *argp1 = 0 ;
9361 int res1 = 0 ;
9362 PyObject *swig_obj[1] ;
9363
9364 if (!args) SWIG_fail;
9365 swig_obj[0] = args;
9366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9367 if (!SWIG_IsOK(res1)) {
9368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9369 }
9370 arg1 = reinterpret_cast< wxIcon * >(argp1);
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (int)(arg1)->GetDepth();
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 resultobj = SWIG_From_int(static_cast< int >(result));
9378 return resultobj;
9379fail:
9380 return NULL;
9381}
9382
9383
9384SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9385 PyObject *resultobj = 0;
9386 wxIcon *arg1 = (wxIcon *) 0 ;
9387 int arg2 ;
9388 void *argp1 = 0 ;
9389 int res1 = 0 ;
9390 int val2 ;
9391 int ecode2 = 0 ;
9392 PyObject * obj0 = 0 ;
9393 PyObject * obj1 = 0 ;
9394 char * kwnames[] = {
9395 (char *) "self",(char *) "w", NULL
9396 };
9397
9398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9402 }
9403 arg1 = reinterpret_cast< wxIcon * >(argp1);
9404 ecode2 = SWIG_AsVal_int(obj1, &val2);
9405 if (!SWIG_IsOK(ecode2)) {
9406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9407 }
9408 arg2 = static_cast< int >(val2);
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 (arg1)->SetWidth(arg2);
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 resultobj = SWIG_Py_Void();
9416 return resultobj;
9417fail:
9418 return NULL;
9419}
9420
9421
9422SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9423 PyObject *resultobj = 0;
9424 wxIcon *arg1 = (wxIcon *) 0 ;
9425 int arg2 ;
9426 void *argp1 = 0 ;
9427 int res1 = 0 ;
9428 int val2 ;
9429 int ecode2 = 0 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 char * kwnames[] = {
9433 (char *) "self",(char *) "h", NULL
9434 };
9435
9436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9438 if (!SWIG_IsOK(res1)) {
9439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9440 }
9441 arg1 = reinterpret_cast< wxIcon * >(argp1);
9442 ecode2 = SWIG_AsVal_int(obj1, &val2);
9443 if (!SWIG_IsOK(ecode2)) {
9444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9445 }
9446 arg2 = static_cast< int >(val2);
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 (arg1)->SetHeight(arg2);
9450 wxPyEndAllowThreads(__tstate);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 resultobj = SWIG_Py_Void();
9454 return resultobj;
9455fail:
9456 return NULL;
9457}
9458
9459
9460SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj = 0;
9462 wxIcon *arg1 = (wxIcon *) 0 ;
9463 int arg2 ;
9464 void *argp1 = 0 ;
9465 int res1 = 0 ;
9466 int val2 ;
9467 int ecode2 = 0 ;
9468 PyObject * obj0 = 0 ;
9469 PyObject * obj1 = 0 ;
9470 char * kwnames[] = {
9471 (char *) "self",(char *) "d", NULL
9472 };
9473
9474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9476 if (!SWIG_IsOK(res1)) {
9477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9478 }
9479 arg1 = reinterpret_cast< wxIcon * >(argp1);
9480 ecode2 = SWIG_AsVal_int(obj1, &val2);
9481 if (!SWIG_IsOK(ecode2)) {
9482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9483 }
9484 arg2 = static_cast< int >(val2);
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 (arg1)->SetDepth(arg2);
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 resultobj = SWIG_Py_Void();
9492 return resultobj;
9493fail:
9494 return NULL;
9495}
9496
9497
9498SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj = 0;
9500 wxIcon *arg1 = (wxIcon *) 0 ;
9501 wxBitmap *arg2 = 0 ;
9502 void *argp1 = 0 ;
9503 int res1 = 0 ;
9504 void *argp2 = 0 ;
9505 int res2 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 char * kwnames[] = {
9509 (char *) "self",(char *) "bmp", NULL
9510 };
9511
9512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9514 if (!SWIG_IsOK(res1)) {
9515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9516 }
9517 arg1 = reinterpret_cast< wxIcon * >(argp1);
9518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9519 if (!SWIG_IsOK(res2)) {
9520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9521 }
9522 if (!argp2) {
9523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9524 }
9525 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = SWIG_Py_Void();
9533 return resultobj;
9534fail:
9535 return NULL;
d14a1e28
RD
9536}
9537
9538
0085ce49
RD
9539SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9540 PyObject *obj;
9541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9542 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9543 return SWIG_Py_Void();
d14a1e28
RD
9544}
9545
0085ce49
RD
9546SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9547 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9548}
9549
0085ce49
RD
9550SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9551 PyObject *resultobj = 0;
9552 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9553 int arg2 = (int) 0 ;
9554 wxIconLocation *result = 0 ;
9555 bool temp1 = false ;
9556 int val2 ;
9557 int ecode2 = 0 ;
9558 PyObject * obj0 = 0 ;
9559 PyObject * obj1 = 0 ;
9560 char * kwnames[] = {
9561 (char *) "filename",(char *) "num", NULL
9562 };
9563
9564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9565 if (obj0) {
b2df227b 9566 {
0085ce49
RD
9567 arg1 = wxString_in_helper(obj0);
9568 if (arg1 == NULL) SWIG_fail;
9569 temp1 = true;
b2df227b 9570 }
0085ce49
RD
9571 }
9572 if (obj1) {
9573 ecode2 = SWIG_AsVal_int(obj1, &val2);
9574 if (!SWIG_IsOK(ecode2)) {
9575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9576 }
9577 arg2 = static_cast< int >(val2);
9578 }
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9586 {
9587 if (temp1)
9588 delete arg1;
9589 }
9590 return resultobj;
9591fail:
9592 {
9593 if (temp1)
9594 delete arg1;
9595 }
9596 return NULL;
b2df227b
RD
9597}
9598
9599
0085ce49
RD
9600SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9601 PyObject *resultobj = 0;
9602 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9612 }
9613 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 delete arg1;
4276dc52 9617
0085ce49
RD
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 resultobj = SWIG_Py_Void();
9622 return resultobj;
9623fail:
9624 return NULL;
4276dc52
RD
9625}
9626
9627
0085ce49
RD
9628SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9629 PyObject *resultobj = 0;
9630 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9631 bool result;
9632 void *argp1 = 0 ;
9633 int res1 = 0 ;
9634 PyObject *swig_obj[1] ;
9635
9636 if (!args) SWIG_fail;
9637 swig_obj[0] = args;
9638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9639 if (!SWIG_IsOK(res1)) {
9640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9641 }
9642 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9646 wxPyEndAllowThreads(__tstate);
9647 if (PyErr_Occurred()) SWIG_fail;
9648 }
9649 {
9650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9651 }
9652 return resultobj;
9653fail:
9654 return NULL;
9655}
9656
9657
9658SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9659 PyObject *resultobj = 0;
9660 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9661 wxString *arg2 = 0 ;
9662 void *argp1 = 0 ;
9663 int res1 = 0 ;
9664 bool temp2 = false ;
9665 PyObject * obj0 = 0 ;
9666 PyObject * obj1 = 0 ;
9667 char * kwnames[] = {
9668 (char *) "self",(char *) "filename", NULL
9669 };
9670
9671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9675 }
9676 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9677 {
9678 arg2 = wxString_in_helper(obj1);
9679 if (arg2 == NULL) SWIG_fail;
9680 temp2 = true;
9681 }
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 (arg1)->SetFileName((wxString const &)*arg2);
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 resultobj = SWIG_Py_Void();
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return resultobj;
9694fail:
9695 {
9696 if (temp2)
9697 delete arg2;
9698 }
9699 return NULL;
4276dc52
RD
9700}
9701
9702
0085ce49
RD
9703SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9704 PyObject *resultobj = 0;
9705 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9706 wxString *result = 0 ;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 PyObject *swig_obj[1] ;
9710
9711 if (!args) SWIG_fail;
9712 swig_obj[0] = args;
9713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9716 }
9717 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9720 {
0085ce49
RD
9721 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9722 result = (wxString *) &_result_ref;
093d3ff1 9723 }
0085ce49
RD
9724 wxPyEndAllowThreads(__tstate);
9725 if (PyErr_Occurred()) SWIG_fail;
9726 }
9727 {
9728#if wxUSE_UNICODE
9729 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9730#else
9731 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9732#endif
9733 }
9734 return resultobj;
9735fail:
9736 return NULL;
9737}
9738
9739
9740SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9741 PyObject *resultobj = 0;
9742 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9743 int arg2 ;
9744 void *argp1 = 0 ;
9745 int res1 = 0 ;
9746 int val2 ;
9747 int ecode2 = 0 ;
9748 PyObject * obj0 = 0 ;
9749 PyObject * obj1 = 0 ;
9750 char * kwnames[] = {
9751 (char *) "self",(char *) "num", NULL
9752 };
9753
9754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9756 if (!SWIG_IsOK(res1)) {
9757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9758 }
9759 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9760 ecode2 = SWIG_AsVal_int(obj1, &val2);
9761 if (!SWIG_IsOK(ecode2)) {
9762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9763 }
9764 arg2 = static_cast< int >(val2);
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 wxIconLocation_SetIndex(arg1,arg2);
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) SWIG_fail;
9770 }
9771 resultobj = SWIG_Py_Void();
9772 return resultobj;
9773fail:
9774 return NULL;
d14a1e28
RD
9775}
9776
9777
0085ce49
RD
9778SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9779 PyObject *resultobj = 0;
9780 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9781 int result;
9782 void *argp1 = 0 ;
9783 int res1 = 0 ;
9784 PyObject *swig_obj[1] ;
9785
9786 if (!args) SWIG_fail;
9787 swig_obj[0] = args;
9788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9789 if (!SWIG_IsOK(res1)) {
9790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9791 }
9792 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 result = (int)wxIconLocation_GetIndex(arg1);
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 resultobj = SWIG_From_int(static_cast< int >(result));
9800 return resultobj;
9801fail:
9802 return NULL;
d14a1e28
RD
9803}
9804
9805
0085ce49
RD
9806SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9807 PyObject *obj;
9808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9809 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9810 return SWIG_Py_Void();
d14a1e28
RD
9811}
9812
0085ce49
RD
9813SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9814 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9815}
9816
0085ce49
RD
9817SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9818 PyObject *resultobj = 0;
9819 wxIconBundle *result = 0 ;
9820
9821 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 result = (wxIconBundle *)new wxIconBundle();
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9829 return resultobj;
9830fail:
9831 return NULL;
9832}
9833
9834
9835SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxString *arg1 = 0 ;
9838 long arg2 ;
9839 wxIconBundle *result = 0 ;
9840 bool temp1 = false ;
9841 long val2 ;
9842 int ecode2 = 0 ;
9843 PyObject * obj0 = 0 ;
9844 PyObject * obj1 = 0 ;
9845 char * kwnames[] = {
9846 (char *) "file",(char *) "type", NULL
9847 };
9848
9849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9850 {
9851 arg1 = wxString_in_helper(obj0);
9852 if (arg1 == NULL) SWIG_fail;
9853 temp1 = true;
9854 }
9855 ecode2 = SWIG_AsVal_long(obj1, &val2);
9856 if (!SWIG_IsOK(ecode2)) {
9857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9858 }
9859 arg2 = static_cast< long >(val2);
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9867 {
9868 if (temp1)
9869 delete arg1;
9870 }
9871 return resultobj;
9872fail:
9873 {
9874 if (temp1)
9875 delete arg1;
9876 }
9877 return NULL;
d14a1e28
RD
9878}
9879
9880
0085ce49
RD
9881SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj = 0;
9883 wxIcon *arg1 = 0 ;
9884 wxIconBundle *result = 0 ;
9885 void *argp1 = 0 ;
9886 int res1 = 0 ;
9887 PyObject * obj0 = 0 ;
9888 char * kwnames[] = {
9889 (char *) "icon", NULL
9890 };
9891
9892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9893 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9894 if (!SWIG_IsOK(res1)) {
9895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9896 }
9897 if (!argp1) {
9898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9899 }
9900 arg1 = reinterpret_cast< wxIcon * >(argp1);
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9908 return resultobj;
9909fail:
9910 return NULL;
d14a1e28
RD
9911}
9912
9913
0085ce49
RD
9914SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9915 PyObject *resultobj = 0;
9916 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9917 void *argp1 = 0 ;
9918 int res1 = 0 ;
9919 PyObject *swig_obj[1] ;
9920
9921 if (!args) SWIG_fail;
9922 swig_obj[0] = args;
9923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9926 }
9927 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 delete arg1;
d14a1e28 9931
0085ce49
RD
9932 wxPyEndAllowThreads(__tstate);
9933 if (PyErr_Occurred()) SWIG_fail;
9934 }
9935 resultobj = SWIG_Py_Void();
9936 return resultobj;
9937fail:
9938 return NULL;
9939}
9940
9941
9942SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9943 PyObject *resultobj = 0;
9944 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9945 wxIcon *arg2 = 0 ;
9946 void *argp1 = 0 ;
9947 int res1 = 0 ;
9948 void *argp2 = 0 ;
9949 int res2 = 0 ;
9950 PyObject * obj0 = 0 ;
9951 PyObject * obj1 = 0 ;
9952 char * kwnames[] = {
9953 (char *) "self",(char *) "icon", NULL
9954 };
9955
9956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9958 if (!SWIG_IsOK(res1)) {
9959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9960 }
9961 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9963 if (!SWIG_IsOK(res2)) {
9964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9965 }
9966 if (!argp2) {
9967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9968 }
9969 arg2 = reinterpret_cast< wxIcon * >(argp2);
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 (arg1)->AddIcon((wxIcon const &)*arg2);
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_Py_Void();
9977 return resultobj;
9978fail:
9979 return NULL;
9980}
9981
9982
9983SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj = 0;
9985 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9986 wxString *arg2 = 0 ;
9987 long arg3 ;
9988 void *argp1 = 0 ;
9989 int res1 = 0 ;
9990 bool temp2 = false ;
9991 long val3 ;
9992 int ecode3 = 0 ;
9993 PyObject * obj0 = 0 ;
9994 PyObject * obj1 = 0 ;
9995 PyObject * obj2 = 0 ;
9996 char * kwnames[] = {
9997 (char *) "self",(char *) "file",(char *) "type", NULL
9998 };
9999
10000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10002 if (!SWIG_IsOK(res1)) {
10003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10004 }
10005 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10006 {
10007 arg2 = wxString_in_helper(obj1);
10008 if (arg2 == NULL) SWIG_fail;
10009 temp2 = true;
10010 }
10011 ecode3 = SWIG_AsVal_long(obj2, &val3);
10012 if (!SWIG_IsOK(ecode3)) {
10013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10014 }
10015 arg3 = static_cast< long >(val3);
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 resultobj = SWIG_Py_Void();
10023 {
10024 if (temp2)
10025 delete arg2;
10026 }
10027 return resultobj;
10028fail:
10029 {
10030 if (temp2)
10031 delete arg2;
10032 }
10033 return NULL;
10034}
10035
10036
10037SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10038 PyObject *resultobj = 0;
10039 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10040 wxSize *arg2 = 0 ;
10041 wxIcon *result = 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 wxSize temp2 ;
10045 PyObject * obj0 = 0 ;
10046 PyObject * obj1 = 0 ;
10047 char * kwnames[] = {
10048 (char *) "self",(char *) "size", NULL
10049 };
10050
10051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10053 if (!SWIG_IsOK(res1)) {
10054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10055 }
10056 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10057 {
10058 arg2 = &temp2;
10059 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10060 }
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 10063 {
0085ce49
RD
10064 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10065 result = (wxIcon *) &_result_ref;
d14a1e28 10066 }
0085ce49
RD
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 {
10071 wxIcon* resultptr = new wxIcon(*result);
10072 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10073 }
10074 return resultobj;
10075fail:
10076 return NULL;
10077}
10078
10079
10080SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10081 PyObject *obj;
10082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10083 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10084 return SWIG_Py_Void();
10085}
10086
10087SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10088 return SWIG_Python_InitShadowInstance(args);
10089}
10090
10091SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10092 PyObject *resultobj = 0;
10093 wxString *arg1 = 0 ;
10094 long arg2 ;
10095 int arg3 = (int) 0 ;
10096 int arg4 = (int) 0 ;
10097 wxCursor *result = 0 ;
10098 bool temp1 = false ;
10099 long val2 ;
10100 int ecode2 = 0 ;
10101 int val3 ;
10102 int ecode3 = 0 ;
10103 int val4 ;
10104 int ecode4 = 0 ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 PyObject * obj3 = 0 ;
10109 char * kwnames[] = {
10110 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10111 };
10112
10113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10114 {
10115 arg1 = wxString_in_helper(obj0);
10116 if (arg1 == NULL) SWIG_fail;
10117 temp1 = true;
10118 }
10119 ecode2 = SWIG_AsVal_long(obj1, &val2);
10120 if (!SWIG_IsOK(ecode2)) {
10121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10122 }
10123 arg2 = static_cast< long >(val2);
10124 if (obj2) {
10125 ecode3 = SWIG_AsVal_int(obj2, &val3);
10126 if (!SWIG_IsOK(ecode3)) {
10127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10128 }
10129 arg3 = static_cast< int >(val3);
10130 }
10131 if (obj3) {
10132 ecode4 = SWIG_AsVal_int(obj3, &val4);
10133 if (!SWIG_IsOK(ecode4)) {
10134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10135 }
10136 arg4 = static_cast< int >(val4);
10137 }
10138 {
10139 if (!wxPyCheckForApp()) SWIG_fail;
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10146 {
10147 if (temp1)
10148 delete arg1;
10149 }
10150 return resultobj;
10151fail:
10152 {
10153 if (temp1)
10154 delete arg1;
10155 }
10156 return NULL;
d14a1e28
RD
10157}
10158
10159
0085ce49
RD
10160SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 PyObject *resultobj = 0;
10162 wxCursor *arg1 = (wxCursor *) 0 ;
10163 void *argp1 = 0 ;
10164 int res1 = 0 ;
10165 PyObject *swig_obj[1] ;
10166
10167 if (!args) SWIG_fail;
10168 swig_obj[0] = args;
10169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10170 if (!SWIG_IsOK(res1)) {
10171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10172 }
10173 arg1 = reinterpret_cast< wxCursor * >(argp1);
10174 {
10175 PyThreadState* __tstate = wxPyBeginAllowThreads();
10176 delete arg1;
093d3ff1 10177
0085ce49
RD
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 resultobj = SWIG_Py_Void();
10182 return resultobj;
10183fail:
10184 return NULL;
10185}
10186
10187
10188SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10189 PyObject *resultobj = 0;
10190 int arg1 ;
10191 wxCursor *result = 0 ;
10192 int val1 ;
10193 int ecode1 = 0 ;
10194 PyObject * obj0 = 0 ;
10195 char * kwnames[] = {
10196 (char *) "id", NULL
10197 };
10198
10199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10200 ecode1 = SWIG_AsVal_int(obj0, &val1);
10201 if (!SWIG_IsOK(ecode1)) {
10202 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10203 }
10204 arg1 = static_cast< int >(val1);
10205 {
10206 if (!wxPyCheckForApp()) SWIG_fail;
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (wxCursor *)new wxCursor(arg1);
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10213 return resultobj;
10214fail:
10215 return NULL;
10216}
10217
10218
10219SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj = 0;
10221 wxImage *arg1 = 0 ;
10222 wxCursor *result = 0 ;
10223 void *argp1 = 0 ;
10224 int res1 = 0 ;
10225 PyObject * obj0 = 0 ;
10226 char * kwnames[] = {
10227 (char *) "image", NULL
10228 };
10229
10230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10231 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10232 if (!SWIG_IsOK(res1)) {
10233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10234 }
10235 if (!argp1) {
10236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10237 }
10238 arg1 = reinterpret_cast< wxImage * >(argp1);
10239 {
10240 if (!wxPyCheckForApp()) SWIG_fail;
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10243 wxPyEndAllowThreads(__tstate);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10247 return resultobj;
10248fail:
10249 return NULL;
093d3ff1
RD
10250}
10251
10252
b39fe951 10253SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
10254 PyObject *resultobj = 0;
10255 wxCursor *arg1 = (wxCursor *) 0 ;
10256 bool result;
10257 void *argp1 = 0 ;
10258 int res1 = 0 ;
10259 PyObject *swig_obj[1] ;
10260
10261 if (!args) SWIG_fail;
10262 swig_obj[0] = args;
10263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10264 if (!SWIG_IsOK(res1)) {
b39fe951 10265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
10266 }
10267 arg1 = reinterpret_cast< wxCursor * >(argp1);
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10270 result = (bool)(arg1)->IsOk();
0085ce49
RD
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 {
10275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10276 }
10277 return resultobj;
10278fail:
10279 return NULL;
10280}
10281
10282
10283SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10284 PyObject *obj;
10285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10286 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10287 return SWIG_Py_Void();
10288}
10289
10290SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10291 return SWIG_Python_InitShadowInstance(args);
10292}
10293
10294SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10295 PyObject *resultobj = 0;
10296 int arg1 = (int) 0 ;
10297 int arg2 = (int) 0 ;
10298 int arg3 = (int) 0 ;
10299 int arg4 = (int) 0 ;
10300 wxRegion *result = 0 ;
10301 int val1 ;
10302 int ecode1 = 0 ;
10303 int val2 ;
10304 int ecode2 = 0 ;
10305 int val3 ;
10306 int ecode3 = 0 ;
10307 int val4 ;
10308 int ecode4 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 PyObject * obj2 = 0 ;
10312 PyObject * obj3 = 0 ;
10313 char * kwnames[] = {
10314 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10315 };
10316
10317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10318 if (obj0) {
10319 ecode1 = SWIG_AsVal_int(obj0, &val1);
10320 if (!SWIG_IsOK(ecode1)) {
10321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10322 }
10323 arg1 = static_cast< int >(val1);
10324 }
10325 if (obj1) {
10326 ecode2 = SWIG_AsVal_int(obj1, &val2);
10327 if (!SWIG_IsOK(ecode2)) {
10328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10329 }
10330 arg2 = static_cast< int >(val2);
10331 }
10332 if (obj2) {
10333 ecode3 = SWIG_AsVal_int(obj2, &val3);
10334 if (!SWIG_IsOK(ecode3)) {
10335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10336 }
10337 arg3 = static_cast< int >(val3);
10338 }
10339 if (obj3) {
10340 ecode4 = SWIG_AsVal_int(obj3, &val4);
10341 if (!SWIG_IsOK(ecode4)) {
10342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10343 }
10344 arg4 = static_cast< int >(val4);
10345 }
10346 {
10347 if (!wxPyCheckForApp()) SWIG_fail;
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10354 return resultobj;
10355fail:
10356 return NULL;
10357}
10358
10359
10360SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj = 0;
10362 wxBitmap *arg1 = 0 ;
10363 wxRegion *result = 0 ;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 PyObject * obj0 = 0 ;
10367 char * kwnames[] = {
10368 (char *) "bmp", NULL
10369 };
10370
10371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10372 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10373 if (!SWIG_IsOK(res1)) {
10374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10375 }
10376 if (!argp1) {
10377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10378 }
10379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10380 {
10381 if (!wxPyCheckForApp()) SWIG_fail;
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10388 return resultobj;
10389fail:
10390 return NULL;
10391}
10392
10393
10394SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj = 0;
10396 wxBitmap *arg1 = 0 ;
10397 wxColour *arg2 = 0 ;
10398 int arg3 = (int) 0 ;
10399 wxRegion *result = 0 ;
10400 void *argp1 = 0 ;
10401 int res1 = 0 ;
10402 wxColour temp2 ;
10403 int val3 ;
10404 int ecode3 = 0 ;
10405 PyObject * obj0 = 0 ;
10406 PyObject * obj1 = 0 ;
10407 PyObject * obj2 = 0 ;
10408 char * kwnames[] = {
10409 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10410 };
10411
10412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10413 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10414 if (!SWIG_IsOK(res1)) {
10415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10416 }
10417 if (!argp1) {
10418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10419 }
10420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10421 {
10422 arg2 = &temp2;
10423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10424 }
10425 if (obj2) {
10426 ecode3 = SWIG_AsVal_int(obj2, &val3);
10427 if (!SWIG_IsOK(ecode3)) {
10428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10429 }
10430 arg3 = static_cast< int >(val3);
10431 }
10432 {
10433 if (!wxPyCheckForApp()) SWIG_fail;
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10440 return resultobj;
10441fail:
10442 return NULL;
10443}
10444
10445
10446SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10447 PyObject *resultobj = 0;
10448 int arg1 ;
10449 wxPoint *arg2 = (wxPoint *) 0 ;
10450 int arg3 = (int) wxWINDING_RULE ;
10451 wxRegion *result = 0 ;
10452 int val3 ;
10453 int ecode3 = 0 ;
10454 PyObject * obj0 = 0 ;
10455 PyObject * obj1 = 0 ;
10456 char * kwnames[] = {
10457 (char *) "points",(char *) "fillStyle", NULL
10458 };
10459
10460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10461 {
10462 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10463 if (arg2 == NULL) SWIG_fail;
10464 }
10465 if (obj1) {
10466 ecode3 = SWIG_AsVal_int(obj1, &val3);
10467 if (!SWIG_IsOK(ecode3)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', 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(arg1,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 {
10481 if (arg2) delete [] arg2;
10482 }
10483 return resultobj;
10484fail:
10485 {
10486 if (arg2) delete [] arg2;
10487 }
10488 return NULL;
d14a1e28
RD
10489}
10490
10491
0085ce49
RD
10492SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10493 PyObject *resultobj = 0;
10494 wxRegion *arg1 = (wxRegion *) 0 ;
10495 void *argp1 = 0 ;
10496 int res1 = 0 ;
10497 PyObject *swig_obj[1] ;
10498
10499 if (!args) SWIG_fail;
10500 swig_obj[0] = args;
10501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10502 if (!SWIG_IsOK(res1)) {
10503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10504 }
10505 arg1 = reinterpret_cast< wxRegion * >(argp1);
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 delete arg1;
d14a1e28 10509
0085ce49
RD
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 resultobj = SWIG_Py_Void();
10514 return resultobj;
10515fail:
10516 return NULL;
d14a1e28
RD
10517}
10518
10519
0085ce49
RD
10520SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10521 PyObject *resultobj = 0;
10522 wxRegion *arg1 = (wxRegion *) 0 ;
10523 void *argp1 = 0 ;
10524 int res1 = 0 ;
10525 PyObject *swig_obj[1] ;
10526
10527 if (!args) SWIG_fail;
10528 swig_obj[0] = args;
10529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10530 if (!SWIG_IsOK(res1)) {
10531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10532 }
10533 arg1 = reinterpret_cast< wxRegion * >(argp1);
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 (arg1)->Clear();
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = SWIG_Py_Void();
10541 return resultobj;
10542fail:
10543 return NULL;
10544}
10545
10546
10547SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj = 0;
10549 wxRegion *arg1 = (wxRegion *) 0 ;
10550 int arg2 ;
10551 int arg3 ;
10552 bool result;
10553 void *argp1 = 0 ;
10554 int res1 = 0 ;
10555 int val2 ;
10556 int ecode2 = 0 ;
10557 int val3 ;
10558 int ecode3 = 0 ;
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 PyObject * obj2 = 0 ;
10562 char * kwnames[] = {
10563 (char *) "self",(char *) "x",(char *) "y", NULL
10564 };
10565
10566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10568 if (!SWIG_IsOK(res1)) {
10569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10570 }
10571 arg1 = reinterpret_cast< wxRegion * >(argp1);
10572 ecode2 = SWIG_AsVal_int(obj1, &val2);
10573 if (!SWIG_IsOK(ecode2)) {
10574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10575 }
10576 arg2 = static_cast< int >(val2);
10577 ecode3 = SWIG_AsVal_int(obj2, &val3);
10578 if (!SWIG_IsOK(ecode3)) {
10579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10580 }
10581 arg3 = static_cast< int >(val3);
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = (bool)(arg1)->Offset(arg2,arg3);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 {
10589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10590 }
10591 return resultobj;
10592fail:
10593 return NULL;
10594}
10595
10596
10597SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10598 PyObject *resultobj = 0;
10599 wxRegion *arg1 = (wxRegion *) 0 ;
10600 int arg2 ;
10601 int arg3 ;
10602 wxRegionContain result;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 int val2 ;
10606 int ecode2 = 0 ;
10607 int val3 ;
10608 int ecode3 = 0 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 PyObject * obj2 = 0 ;
10612 char * kwnames[] = {
10613 (char *) "self",(char *) "x",(char *) "y", NULL
10614 };
10615
10616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10618 if (!SWIG_IsOK(res1)) {
10619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10620 }
10621 arg1 = reinterpret_cast< wxRegion * >(argp1);
10622 ecode2 = SWIG_AsVal_int(obj1, &val2);
10623 if (!SWIG_IsOK(ecode2)) {
10624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10625 }
10626 arg2 = static_cast< int >(val2);
10627 ecode3 = SWIG_AsVal_int(obj2, &val3);
10628 if (!SWIG_IsOK(ecode3)) {
10629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10630 }
10631 arg3 = static_cast< int >(val3);
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_From_int(static_cast< int >(result));
10639 return resultobj;
10640fail:
10641 return NULL;
10642}
10643
10644
10645SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj = 0;
10647 wxRegion *arg1 = (wxRegion *) 0 ;
10648 wxPoint *arg2 = 0 ;
10649 wxRegionContain result;
10650 void *argp1 = 0 ;
10651 int res1 = 0 ;
10652 wxPoint temp2 ;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 char * kwnames[] = {
10656 (char *) "self",(char *) "pt", NULL
10657 };
10658
10659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10661 if (!SWIG_IsOK(res1)) {
10662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10663 }
10664 arg1 = reinterpret_cast< wxRegion * >(argp1);
10665 {
10666 arg2 = &temp2;
10667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 resultobj = SWIG_From_int(static_cast< int >(result));
10676 return resultobj;
10677fail:
10678 return NULL;
10679}
10680
10681
10682SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 wxRect *arg2 = 0 ;
10686 wxRegionContain result;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 wxRect temp2 ;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 char * kwnames[] = {
10693 (char *) "self",(char *) "rect", NULL
10694 };
10695
10696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10698 if (!SWIG_IsOK(res1)) {
10699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10700 }
10701 arg1 = reinterpret_cast< wxRegion * >(argp1);
10702 {
10703 arg2 = &temp2;
10704 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 resultobj = SWIG_From_int(static_cast< int >(result));
10713 return resultobj;
10714fail:
10715 return NULL;
10716}
10717
10718
10719SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxRegion *arg1 = (wxRegion *) 0 ;
10722 int arg2 ;
10723 int arg3 ;
10724 int arg4 ;
10725 int arg5 ;
10726 wxRegionContain result;
10727 void *argp1 = 0 ;
10728 int res1 = 0 ;
10729 int val2 ;
10730 int ecode2 = 0 ;
10731 int val3 ;
10732 int ecode3 = 0 ;
10733 int val4 ;
10734 int ecode4 = 0 ;
10735 int val5 ;
10736 int ecode5 = 0 ;
10737 PyObject * obj0 = 0 ;
10738 PyObject * obj1 = 0 ;
10739 PyObject * obj2 = 0 ;
10740 PyObject * obj3 = 0 ;
10741 PyObject * obj4 = 0 ;
10742 char * kwnames[] = {
10743 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10744 };
10745
10746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10748 if (!SWIG_IsOK(res1)) {
10749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10750 }
10751 arg1 = reinterpret_cast< wxRegion * >(argp1);
10752 ecode2 = SWIG_AsVal_int(obj1, &val2);
10753 if (!SWIG_IsOK(ecode2)) {
10754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10755 }
10756 arg2 = static_cast< int >(val2);
10757 ecode3 = SWIG_AsVal_int(obj2, &val3);
10758 if (!SWIG_IsOK(ecode3)) {
10759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10760 }
10761 arg3 = static_cast< int >(val3);
10762 ecode4 = SWIG_AsVal_int(obj3, &val4);
10763 if (!SWIG_IsOK(ecode4)) {
10764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10765 }
10766 arg4 = static_cast< int >(val4);
10767 ecode5 = SWIG_AsVal_int(obj4, &val5);
10768 if (!SWIG_IsOK(ecode5)) {
10769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10770 }
10771 arg5 = static_cast< int >(val5);
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 resultobj = SWIG_From_int(static_cast< int >(result));
10779 return resultobj;
10780fail:
10781 return NULL;
d14a1e28
RD
10782}
10783
10784
0085ce49
RD
10785SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10786 PyObject *resultobj = 0;
10787 wxRegion *arg1 = (wxRegion *) 0 ;
10788 wxRect result;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 PyObject *swig_obj[1] ;
10792
10793 if (!args) SWIG_fail;
10794 swig_obj[0] = args;
10795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10796 if (!SWIG_IsOK(res1)) {
10797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10798 }
10799 arg1 = reinterpret_cast< wxRegion * >(argp1);
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 result = (arg1)->GetBox();
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10807 return resultobj;
10808fail:
10809 return NULL;
10810}
10811
10812
10813SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj = 0;
10815 wxRegion *arg1 = (wxRegion *) 0 ;
10816 int arg2 ;
10817 int arg3 ;
10818 int arg4 ;
10819 int arg5 ;
10820 bool result;
10821 void *argp1 = 0 ;
10822 int res1 = 0 ;
10823 int val2 ;
10824 int ecode2 = 0 ;
10825 int val3 ;
10826 int ecode3 = 0 ;
10827 int val4 ;
10828 int ecode4 = 0 ;
10829 int val5 ;
10830 int ecode5 = 0 ;
10831 PyObject * obj0 = 0 ;
10832 PyObject * obj1 = 0 ;
10833 PyObject * obj2 = 0 ;
10834 PyObject * obj3 = 0 ;
10835 PyObject * obj4 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10844 }
10845 arg1 = reinterpret_cast< wxRegion * >(argp1);
10846 ecode2 = SWIG_AsVal_int(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10849 }
10850 arg2 = static_cast< int >(val2);
10851 ecode3 = SWIG_AsVal_int(obj2, &val3);
10852 if (!SWIG_IsOK(ecode3)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10854 }
10855 arg3 = static_cast< int >(val3);
10856 ecode4 = SWIG_AsVal_int(obj3, &val4);
10857 if (!SWIG_IsOK(ecode4)) {
10858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10859 }
10860 arg4 = static_cast< int >(val4);
10861 ecode5 = SWIG_AsVal_int(obj4, &val5);
10862 if (!SWIG_IsOK(ecode5)) {
10863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10864 }
10865 arg5 = static_cast< int >(val5);
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 {
10873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10874 }
10875 return resultobj;
10876fail:
10877 return NULL;
10878}
10879
10880
10881SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj = 0;
10883 wxRegion *arg1 = (wxRegion *) 0 ;
10884 wxRect *arg2 = 0 ;
10885 bool result;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 wxRect temp2 ;
10889 PyObject * obj0 = 0 ;
10890 PyObject * obj1 = 0 ;
10891 char * kwnames[] = {
10892 (char *) "self",(char *) "rect", NULL
10893 };
10894
10895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10897 if (!SWIG_IsOK(res1)) {
10898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10899 }
10900 arg1 = reinterpret_cast< wxRegion * >(argp1);
10901 {
10902 arg2 = &temp2;
10903 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 {
10912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10913 }
10914 return resultobj;
10915fail:
10916 return NULL;
10917}
10918
10919
10920SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxRegion *arg1 = (wxRegion *) 0 ;
10923 wxRegion *arg2 = 0 ;
10924 bool result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 void *argp2 = 0 ;
10928 int res2 = 0 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "region", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",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_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10939 }
10940 arg1 = reinterpret_cast< wxRegion * >(argp1);
10941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10942 if (!SWIG_IsOK(res2)) {
10943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10944 }
10945 if (!argp2) {
10946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10947 }
10948 arg2 = reinterpret_cast< wxRegion * >(argp2);
10949 {
10950 PyThreadState* __tstate = wxPyBeginAllowThreads();
10951 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 {
10956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10957 }
10958 return resultobj;
10959fail:
10960 return NULL;
d14a1e28
RD
10961}
10962
10963
0085ce49
RD
10964SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10965 PyObject *resultobj = 0;
10966 wxRegion *arg1 = (wxRegion *) 0 ;
10967 bool result;
10968 void *argp1 = 0 ;
10969 int res1 = 0 ;
10970 PyObject *swig_obj[1] ;
10971
10972 if (!args) SWIG_fail;
10973 swig_obj[0] = args;
10974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10975 if (!SWIG_IsOK(res1)) {
10976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10977 }
10978 arg1 = reinterpret_cast< wxRegion * >(argp1);
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 result = (bool)(arg1)->IsEmpty();
10982 wxPyEndAllowThreads(__tstate);
10983 if (PyErr_Occurred()) SWIG_fail;
10984 }
10985 {
10986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10987 }
10988 return resultobj;
10989fail:
10990 return NULL;
10991}
10992
10993
f5263701
RD
10994SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxRegion *arg1 = (wxRegion *) 0 ;
10997 wxRegion *arg2 = 0 ;
10998 bool result;
10999 void *argp1 = 0 ;
11000 int res1 = 0 ;
11001 void *argp2 = 0 ;
11002 int res2 = 0 ;
11003 PyObject * obj0 = 0 ;
11004 PyObject * obj1 = 0 ;
11005 char * kwnames[] = {
11006 (char *) "self",(char *) "region", NULL
11007 };
11008
11009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11011 if (!SWIG_IsOK(res1)) {
11012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11013 }
11014 arg1 = reinterpret_cast< wxRegion * >(argp1);
11015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11016 if (!SWIG_IsOK(res2)) {
11017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11018 }
11019 if (!argp2) {
11020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11021 }
11022 arg2 = reinterpret_cast< wxRegion * >(argp2);
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 {
11030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11031 }
11032 return resultobj;
11033fail:
11034 return NULL;
11035}
11036
11037
0085ce49
RD
11038SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj = 0;
11040 wxRegion *arg1 = (wxRegion *) 0 ;
11041 int arg2 ;
11042 int arg3 ;
11043 int arg4 ;
11044 int arg5 ;
11045 bool result;
11046 void *argp1 = 0 ;
11047 int res1 = 0 ;
11048 int val2 ;
11049 int ecode2 = 0 ;
11050 int val3 ;
11051 int ecode3 = 0 ;
11052 int val4 ;
11053 int ecode4 = 0 ;
11054 int val5 ;
11055 int ecode5 = 0 ;
11056 PyObject * obj0 = 0 ;
11057 PyObject * obj1 = 0 ;
11058 PyObject * obj2 = 0 ;
11059 PyObject * obj3 = 0 ;
11060 PyObject * obj4 = 0 ;
11061 char * kwnames[] = {
11062 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11063 };
11064
11065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11069 }
11070 arg1 = reinterpret_cast< wxRegion * >(argp1);
11071 ecode2 = SWIG_AsVal_int(obj1, &val2);
11072 if (!SWIG_IsOK(ecode2)) {
11073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11074 }
11075 arg2 = static_cast< int >(val2);
11076 ecode3 = SWIG_AsVal_int(obj2, &val3);
11077 if (!SWIG_IsOK(ecode3)) {
11078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11079 }
11080 arg3 = static_cast< int >(val3);
11081 ecode4 = SWIG_AsVal_int(obj3, &val4);
11082 if (!SWIG_IsOK(ecode4)) {
11083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11084 }
11085 arg4 = static_cast< int >(val4);
11086 ecode5 = SWIG_AsVal_int(obj4, &val5);
11087 if (!SWIG_IsOK(ecode5)) {
11088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11089 }
11090 arg5 = static_cast< int >(val5);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 {
11098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11099 }
11100 return resultobj;
11101fail:
11102 return NULL;
11103}
11104
11105
11106SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj = 0;
11108 wxRegion *arg1 = (wxRegion *) 0 ;
11109 wxRect *arg2 = 0 ;
11110 bool result;
11111 void *argp1 = 0 ;
11112 int res1 = 0 ;
11113 wxRect temp2 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 char * kwnames[] = {
11117 (char *) "self",(char *) "rect", NULL
11118 };
11119
11120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11122 if (!SWIG_IsOK(res1)) {
11123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11124 }
11125 arg1 = reinterpret_cast< wxRegion * >(argp1);
11126 {
11127 arg2 = &temp2;
11128 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11129 }
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 {
11137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11138 }
11139 return resultobj;
11140fail:
11141 return NULL;
11142}
11143
11144
11145SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11146 PyObject *resultobj = 0;
11147 wxRegion *arg1 = (wxRegion *) 0 ;
11148 wxRegion *arg2 = 0 ;
11149 bool result;
11150 void *argp1 = 0 ;
11151 int res1 = 0 ;
11152 void *argp2 = 0 ;
11153 int res2 = 0 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 char * kwnames[] = {
11157 (char *) "self",(char *) "region", NULL
11158 };
11159
11160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",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_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11164 }
11165 arg1 = reinterpret_cast< wxRegion * >(argp1);
11166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11167 if (!SWIG_IsOK(res2)) {
11168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11169 }
11170 if (!argp2) {
11171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11172 }
11173 arg2 = reinterpret_cast< wxRegion * >(argp2);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11182 }
11183 return resultobj;
11184fail:
11185 return NULL;
11186}
11187
11188
11189SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11190 PyObject *resultobj = 0;
11191 wxRegion *arg1 = (wxRegion *) 0 ;
11192 int arg2 ;
11193 int arg3 ;
11194 int arg4 ;
11195 int arg5 ;
11196 bool result;
11197 void *argp1 = 0 ;
11198 int res1 = 0 ;
11199 int val2 ;
11200 int ecode2 = 0 ;
11201 int val3 ;
11202 int ecode3 = 0 ;
11203 int val4 ;
11204 int ecode4 = 0 ;
11205 int val5 ;
11206 int ecode5 = 0 ;
11207 PyObject * obj0 = 0 ;
11208 PyObject * obj1 = 0 ;
11209 PyObject * obj2 = 0 ;
11210 PyObject * obj3 = 0 ;
11211 PyObject * obj4 = 0 ;
11212 char * kwnames[] = {
11213 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11214 };
11215
11216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11218 if (!SWIG_IsOK(res1)) {
11219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11220 }
11221 arg1 = reinterpret_cast< wxRegion * >(argp1);
11222 ecode2 = SWIG_AsVal_int(obj1, &val2);
11223 if (!SWIG_IsOK(ecode2)) {
11224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11225 }
11226 arg2 = static_cast< int >(val2);
11227 ecode3 = SWIG_AsVal_int(obj2, &val3);
11228 if (!SWIG_IsOK(ecode3)) {
11229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11230 }
11231 arg3 = static_cast< int >(val3);
11232 ecode4 = SWIG_AsVal_int(obj3, &val4);
11233 if (!SWIG_IsOK(ecode4)) {
11234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11235 }
11236 arg4 = static_cast< int >(val4);
11237 ecode5 = SWIG_AsVal_int(obj4, &val5);
11238 if (!SWIG_IsOK(ecode5)) {
11239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11240 }
11241 arg5 = static_cast< int >(val5);
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11250 }
11251 return resultobj;
11252fail:
11253 return NULL;
11254}
11255
11256
11257SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11258 PyObject *resultobj = 0;
11259 wxRegion *arg1 = (wxRegion *) 0 ;
11260 wxRect *arg2 = 0 ;
11261 bool result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 wxRect temp2 ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11267 char * kwnames[] = {
11268 (char *) "self",(char *) "rect", NULL
11269 };
11270
11271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11273 if (!SWIG_IsOK(res1)) {
11274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11275 }
11276 arg1 = reinterpret_cast< wxRegion * >(argp1);
11277 {
11278 arg2 = &temp2;
11279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11280 }
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11289 }
11290 return resultobj;
11291fail:
11292 return NULL;
11293}
11294
11295
11296SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11297 PyObject *resultobj = 0;
11298 wxRegion *arg1 = (wxRegion *) 0 ;
11299 wxRegion *arg2 = 0 ;
11300 bool result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 void *argp2 = 0 ;
11304 int res2 = 0 ;
11305 PyObject * obj0 = 0 ;
11306 PyObject * obj1 = 0 ;
11307 char * kwnames[] = {
11308 (char *) "self",(char *) "region", NULL
11309 };
11310
11311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",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_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11315 }
11316 arg1 = reinterpret_cast< wxRegion * >(argp1);
11317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11318 if (!SWIG_IsOK(res2)) {
11319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11320 }
11321 if (!argp2) {
11322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11323 }
11324 arg2 = reinterpret_cast< wxRegion * >(argp2);
11325 {
11326 PyThreadState* __tstate = wxPyBeginAllowThreads();
11327 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 {
11332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11333 }
11334 return resultobj;
11335fail:
11336 return NULL;
11337}
11338
11339
11340SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11341 PyObject *resultobj = 0;
11342 wxRegion *arg1 = (wxRegion *) 0 ;
11343 int arg2 ;
11344 int arg3 ;
11345 int arg4 ;
11346 int arg5 ;
11347 bool result;
11348 void *argp1 = 0 ;
11349 int res1 = 0 ;
11350 int val2 ;
11351 int ecode2 = 0 ;
11352 int val3 ;
11353 int ecode3 = 0 ;
11354 int val4 ;
11355 int ecode4 = 0 ;
11356 int val5 ;
11357 int ecode5 = 0 ;
11358 PyObject * obj0 = 0 ;
11359 PyObject * obj1 = 0 ;
11360 PyObject * obj2 = 0 ;
11361 PyObject * obj3 = 0 ;
11362 PyObject * obj4 = 0 ;
11363 char * kwnames[] = {
11364 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11365 };
11366
11367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11369 if (!SWIG_IsOK(res1)) {
11370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11371 }
11372 arg1 = reinterpret_cast< wxRegion * >(argp1);
11373 ecode2 = SWIG_AsVal_int(obj1, &val2);
11374 if (!SWIG_IsOK(ecode2)) {
11375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11376 }
11377 arg2 = static_cast< int >(val2);
11378 ecode3 = SWIG_AsVal_int(obj2, &val3);
11379 if (!SWIG_IsOK(ecode3)) {
11380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11381 }
11382 arg3 = static_cast< int >(val3);
11383 ecode4 = SWIG_AsVal_int(obj3, &val4);
11384 if (!SWIG_IsOK(ecode4)) {
11385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11386 }
11387 arg4 = static_cast< int >(val4);
11388 ecode5 = SWIG_AsVal_int(obj4, &val5);
11389 if (!SWIG_IsOK(ecode5)) {
11390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11391 }
11392 arg5 = static_cast< int >(val5);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 {
11400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11401 }
11402 return resultobj;
11403fail:
11404 return NULL;
11405}
11406
11407
11408SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj = 0;
11410 wxRegion *arg1 = (wxRegion *) 0 ;
11411 wxRect *arg2 = 0 ;
11412 bool result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 wxRect temp2 ;
11416 PyObject * obj0 = 0 ;
11417 PyObject * obj1 = 0 ;
11418 char * kwnames[] = {
11419 (char *) "self",(char *) "rect", NULL
11420 };
11421
11422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11424 if (!SWIG_IsOK(res1)) {
11425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11426 }
11427 arg1 = reinterpret_cast< wxRegion * >(argp1);
11428 {
11429 arg2 = &temp2;
11430 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11431 }
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 {
11439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11440 }
11441 return resultobj;
11442fail:
11443 return NULL;
11444}
11445
11446
11447SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj = 0;
11449 wxRegion *arg1 = (wxRegion *) 0 ;
11450 wxRegion *arg2 = 0 ;
11451 bool result;
11452 void *argp1 = 0 ;
11453 int res1 = 0 ;
11454 void *argp2 = 0 ;
11455 int res2 = 0 ;
11456 PyObject * obj0 = 0 ;
11457 PyObject * obj1 = 0 ;
11458 char * kwnames[] = {
11459 (char *) "self",(char *) "region", NULL
11460 };
11461
11462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",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_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11466 }
11467 arg1 = reinterpret_cast< wxRegion * >(argp1);
11468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11469 if (!SWIG_IsOK(res2)) {
11470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11471 }
11472 if (!argp2) {
11473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11474 }
11475 arg2 = reinterpret_cast< wxRegion * >(argp2);
11476 {
11477 PyThreadState* __tstate = wxPyBeginAllowThreads();
11478 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 {
11483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11484 }
11485 return resultobj;
11486fail:
11487 return NULL;
d14a1e28
RD
11488}
11489
11490
0085ce49
RD
11491SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11492 PyObject *resultobj = 0;
11493 wxRegion *arg1 = (wxRegion *) 0 ;
11494 SwigValueWrapper<wxBitmap > result;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 PyObject *swig_obj[1] ;
11498
11499 if (!args) SWIG_fail;
11500 swig_obj[0] = args;
11501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11502 if (!SWIG_IsOK(res1)) {
11503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11504 }
11505 arg1 = reinterpret_cast< wxRegion * >(argp1);
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (arg1)->ConvertToBitmap();
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11513 return resultobj;
11514fail:
11515 return NULL;
11516}
11517
11518
11519SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11520 PyObject *resultobj = 0;
11521 wxRegion *arg1 = (wxRegion *) 0 ;
11522 wxBitmap *arg2 = 0 ;
11523 bool result;
11524 void *argp1 = 0 ;
11525 int res1 = 0 ;
11526 void *argp2 = 0 ;
11527 int res2 = 0 ;
11528 PyObject * obj0 = 0 ;
11529 PyObject * obj1 = 0 ;
11530 char * kwnames[] = {
11531 (char *) "self",(char *) "bmp", NULL
11532 };
11533
11534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11536 if (!SWIG_IsOK(res1)) {
11537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11538 }
11539 arg1 = reinterpret_cast< wxRegion * >(argp1);
11540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11541 if (!SWIG_IsOK(res2)) {
11542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11543 }
11544 if (!argp2) {
11545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11546 }
11547 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11551 wxPyEndAllowThreads(__tstate);
11552 if (PyErr_Occurred()) SWIG_fail;
11553 }
11554 {
11555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11556 }
11557 return resultobj;
11558fail:
11559 return NULL;
11560}
11561
11562
11563SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11564 PyObject *resultobj = 0;
11565 wxRegion *arg1 = (wxRegion *) 0 ;
11566 wxBitmap *arg2 = 0 ;
11567 wxColour *arg3 = 0 ;
11568 int arg4 = (int) 0 ;
11569 bool result;
11570 void *argp1 = 0 ;
11571 int res1 = 0 ;
11572 void *argp2 = 0 ;
11573 int res2 = 0 ;
11574 wxColour temp3 ;
11575 int val4 ;
11576 int ecode4 = 0 ;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 PyObject * obj2 = 0 ;
11580 PyObject * obj3 = 0 ;
11581 char * kwnames[] = {
11582 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11583 };
11584
11585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11589 }
11590 arg1 = reinterpret_cast< wxRegion * >(argp1);
11591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11592 if (!SWIG_IsOK(res2)) {
11593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11594 }
11595 if (!argp2) {
11596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11597 }
11598 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11599 {
11600 arg3 = &temp3;
11601 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11602 }
11603 if (obj3) {
11604 ecode4 = SWIG_AsVal_int(obj3, &val4);
11605 if (!SWIG_IsOK(ecode4)) {
11606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11607 }
11608 arg4 = static_cast< int >(val4);
11609 }
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 {
11617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11618 }
11619 return resultobj;
11620fail:
11621 return NULL;
d14a1e28
RD
11622}
11623
11624
0085ce49
RD
11625SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11626 PyObject *obj;
11627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11628 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11629 return SWIG_Py_Void();
d14a1e28
RD
11630}
11631
0085ce49
RD
11632SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11633 return SWIG_Python_InitShadowInstance(args);
11634}
d14a1e28 11635
0085ce49
RD
11636SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11637 PyObject *resultobj = 0;
11638 wxRegion *arg1 = 0 ;
11639 wxRegionIterator *result = 0 ;
11640 void *argp1 = 0 ;
11641 int res1 = 0 ;
11642 PyObject * obj0 = 0 ;
11643 char * kwnames[] = {
11644 (char *) "region", NULL
11645 };
11646
11647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11648 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11649 if (!SWIG_IsOK(res1)) {
11650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11651 }
11652 if (!argp1) {
11653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11654 }
11655 arg1 = reinterpret_cast< wxRegion * >(argp1);
11656 {
11657 if (!wxPyCheckForApp()) SWIG_fail;
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11664 return resultobj;
11665fail:
11666 return NULL;
d14a1e28
RD
11667}
11668
11669
0085ce49
RD
11670SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11671 PyObject *resultobj = 0;
11672 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11673 void *argp1 = 0 ;
11674 int res1 = 0 ;
11675 PyObject *swig_obj[1] ;
11676
11677 if (!args) SWIG_fail;
11678 swig_obj[0] = args;
11679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11680 if (!SWIG_IsOK(res1)) {
11681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11682 }
11683 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 delete arg1;
d14a1e28 11687
0085ce49
RD
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 resultobj = SWIG_Py_Void();
11692 return resultobj;
11693fail:
11694 return NULL;
d14a1e28
RD
11695}
11696
11697
0085ce49
RD
11698SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11699 PyObject *resultobj = 0;
11700 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11701 int result;
11702 void *argp1 = 0 ;
11703 int res1 = 0 ;
11704 PyObject *swig_obj[1] ;
11705
11706 if (!args) SWIG_fail;
11707 swig_obj[0] = args;
11708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11709 if (!SWIG_IsOK(res1)) {
11710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11711 }
11712 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 result = (int)(arg1)->GetX();
11716 wxPyEndAllowThreads(__tstate);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 resultobj = SWIG_From_int(static_cast< int >(result));
11720 return resultobj;
11721fail:
11722 return NULL;
d14a1e28
RD
11723}
11724
11725
0085ce49
RD
11726SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11727 PyObject *resultobj = 0;
11728 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11729 int result;
11730 void *argp1 = 0 ;
11731 int res1 = 0 ;
11732 PyObject *swig_obj[1] ;
11733
11734 if (!args) SWIG_fail;
11735 swig_obj[0] = args;
11736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11737 if (!SWIG_IsOK(res1)) {
11738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11739 }
11740 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (int)(arg1)->GetY();
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = SWIG_From_int(static_cast< int >(result));
11748 return resultobj;
11749fail:
11750 return NULL;
d14a1e28
RD
11751}
11752
11753
0085ce49
RD
11754SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11755 PyObject *resultobj = 0;
11756 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11757 int result;
11758 void *argp1 = 0 ;
11759 int res1 = 0 ;
11760 PyObject *swig_obj[1] ;
11761
11762 if (!args) SWIG_fail;
11763 swig_obj[0] = args;
11764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11765 if (!SWIG_IsOK(res1)) {
11766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11767 }
11768 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11769 {
11770 PyThreadState* __tstate = wxPyBeginAllowThreads();
11771 result = (int)(arg1)->GetW();
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 resultobj = SWIG_From_int(static_cast< int >(result));
11776 return resultobj;
11777fail:
11778 return NULL;
d14a1e28
RD
11779}
11780
11781
0085ce49
RD
11782SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11783 PyObject *resultobj = 0;
11784 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11785 int result;
11786 void *argp1 = 0 ;
11787 int res1 = 0 ;
11788 PyObject *swig_obj[1] ;
11789
11790 if (!args) SWIG_fail;
11791 swig_obj[0] = args;
11792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11793 if (!SWIG_IsOK(res1)) {
11794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11795 }
11796 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11797 {
11798 PyThreadState* __tstate = wxPyBeginAllowThreads();
11799 result = (int)(arg1)->GetWidth();
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 resultobj = SWIG_From_int(static_cast< int >(result));
11804 return resultobj;
11805fail:
11806 return NULL;
093d3ff1
RD
11807}
11808
11809
0085ce49
RD
11810SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11811 PyObject *resultobj = 0;
11812 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11813 int result;
11814 void *argp1 = 0 ;
11815 int res1 = 0 ;
11816 PyObject *swig_obj[1] ;
11817
11818 if (!args) SWIG_fail;
11819 swig_obj[0] = args;
11820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11821 if (!SWIG_IsOK(res1)) {
11822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11823 }
11824 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11825 {
11826 PyThreadState* __tstate = wxPyBeginAllowThreads();
11827 result = (int)(arg1)->GetH();
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 }
11831 resultobj = SWIG_From_int(static_cast< int >(result));
11832 return resultobj;
11833fail:
11834 return NULL;
d14a1e28
RD
11835}
11836
11837
0085ce49
RD
11838SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11839 PyObject *resultobj = 0;
11840 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11841 int result;
11842 void *argp1 = 0 ;
11843 int res1 = 0 ;
11844 PyObject *swig_obj[1] ;
11845
11846 if (!args) SWIG_fail;
11847 swig_obj[0] = args;
11848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11849 if (!SWIG_IsOK(res1)) {
11850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11851 }
11852 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 result = (int)(arg1)->GetHeight();
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 resultobj = SWIG_From_int(static_cast< int >(result));
11860 return resultobj;
11861fail:
11862 return NULL;
093d3ff1
RD
11863}
11864
11865
0085ce49
RD
11866SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11867 PyObject *resultobj = 0;
11868 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11869 wxRect result;
11870 void *argp1 = 0 ;
11871 int res1 = 0 ;
11872 PyObject *swig_obj[1] ;
11873
11874 if (!args) SWIG_fail;
11875 swig_obj[0] = args;
11876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11877 if (!SWIG_IsOK(res1)) {
11878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11879 }
11880 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 result = (arg1)->GetRect();
11884 wxPyEndAllowThreads(__tstate);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 }
11887 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11888 return resultobj;
11889fail:
11890 return NULL;
d14a1e28
RD
11891}
11892
11893
0085ce49
RD
11894SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11895 PyObject *resultobj = 0;
11896 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11897 bool result;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 PyObject *swig_obj[1] ;
11901
11902 if (!args) SWIG_fail;
11903 swig_obj[0] = args;
11904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11905 if (!SWIG_IsOK(res1)) {
11906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11907 }
11908 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11909 {
11910 PyThreadState* __tstate = wxPyBeginAllowThreads();
11911 result = (bool)(arg1)->HaveRects();
11912 wxPyEndAllowThreads(__tstate);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 }
11915 {
11916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11917 }
11918 return resultobj;
11919fail:
11920 return NULL;
093d3ff1
RD
11921}
11922
11923
0085ce49
RD
11924SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11925 PyObject *resultobj = 0;
11926 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11927 void *argp1 = 0 ;
11928 int res1 = 0 ;
11929 PyObject *swig_obj[1] ;
11930
11931 if (!args) SWIG_fail;
11932 swig_obj[0] = args;
11933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11934 if (!SWIG_IsOK(res1)) {
11935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11936 }
11937 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11938 {
11939 PyThreadState* __tstate = wxPyBeginAllowThreads();
11940 (arg1)->Reset();
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 resultobj = SWIG_Py_Void();
11945 return resultobj;
11946fail:
11947 return NULL;
d14a1e28
RD
11948}
11949
11950
0085ce49
RD
11951SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11952 PyObject *resultobj = 0;
11953 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11954 void *argp1 = 0 ;
11955 int res1 = 0 ;
11956 PyObject *swig_obj[1] ;
11957
11958 if (!args) SWIG_fail;
11959 swig_obj[0] = args;
11960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11963 }
11964 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 wxRegionIterator_Next(arg1);
11968 wxPyEndAllowThreads(__tstate);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 resultobj = SWIG_Py_Void();
11972 return resultobj;
11973fail:
11974 return NULL;
d14a1e28
RD
11975}
11976
11977
0085ce49
RD
11978SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11979 PyObject *resultobj = 0;
11980 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11981 bool result;
11982 void *argp1 = 0 ;
11983 int res1 = 0 ;
11984 PyObject *swig_obj[1] ;
11985
11986 if (!args) SWIG_fail;
11987 swig_obj[0] = args;
11988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11989 if (!SWIG_IsOK(res1)) {
11990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11991 }
11992 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 result = (bool)wxRegionIterator___nonzero__(arg1);
11996 wxPyEndAllowThreads(__tstate);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 }
11999 {
12000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12001 }
12002 return resultobj;
12003fail:
12004 return NULL;
d14a1e28
RD
12005}
12006
12007
0085ce49
RD
12008SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12009 PyObject *obj;
12010 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12011 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12012 return SWIG_Py_Void();
d14a1e28
RD
12013}
12014
0085ce49
RD
12015SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12016 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12017}
12018
0085ce49
RD
12019SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12020 PyObject *resultobj = 0;
12021 wxNativeFontInfo *result = 0 ;
12022
12023 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12031 return resultobj;
12032fail:
12033 return NULL;
d14a1e28
RD
12034}
12035
12036
0085ce49
RD
12037SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12038 PyObject *resultobj = 0;
12039 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12040 void *argp1 = 0 ;
12041 int res1 = 0 ;
12042 PyObject *swig_obj[1] ;
12043
12044 if (!args) SWIG_fail;
12045 swig_obj[0] = args;
12046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12047 if (!SWIG_IsOK(res1)) {
12048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12049 }
12050 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 delete arg1;
d14a1e28 12054
0085ce49
RD
12055 wxPyEndAllowThreads(__tstate);
12056 if (PyErr_Occurred()) SWIG_fail;
12057 }
12058 resultobj = SWIG_Py_Void();
12059 return resultobj;
12060fail:
12061 return NULL;
d14a1e28
RD
12062}
12063
12064
0085ce49
RD
12065SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12066 PyObject *resultobj = 0;
12067 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12068 void *argp1 = 0 ;
12069 int res1 = 0 ;
12070 PyObject *swig_obj[1] ;
12071
12072 if (!args) SWIG_fail;
12073 swig_obj[0] = args;
12074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12075 if (!SWIG_IsOK(res1)) {
12076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12077 }
12078 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->Init();
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_Py_Void();
12086 return resultobj;
12087fail:
12088 return NULL;
12089}
12090
12091
12092SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj = 0;
12094 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12095 wxFont *arg2 = 0 ;
12096 void *argp1 = 0 ;
12097 int res1 = 0 ;
12098 void *argp2 = 0 ;
12099 int res2 = 0 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 char * kwnames[] = {
12103 (char *) "self",(char *) "font", NULL
12104 };
12105
12106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12108 if (!SWIG_IsOK(res1)) {
12109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12110 }
12111 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12113 if (!SWIG_IsOK(res2)) {
12114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12115 }
12116 if (!argp2) {
12117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12118 }
12119 arg2 = reinterpret_cast< wxFont * >(argp2);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 (arg1)->InitFromFont((wxFont const &)*arg2);
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_Py_Void();
12127 return resultobj;
12128fail:
12129 return NULL;
e6ffcedd
RD
12130}
12131
12132
0085ce49
RD
12133SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12134 PyObject *resultobj = 0;
12135 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12136 int result;
12137 void *argp1 = 0 ;
12138 int res1 = 0 ;
12139 PyObject *swig_obj[1] ;
12140
12141 if (!args) SWIG_fail;
12142 swig_obj[0] = args;
12143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12144 if (!SWIG_IsOK(res1)) {
12145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12146 }
12147 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 resultobj = SWIG_From_int(static_cast< int >(result));
12155 return resultobj;
12156fail:
12157 return NULL;
d14a1e28
RD
12158}
12159
12160
0085ce49
RD
12161SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12162 PyObject *resultobj = 0;
12163 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12164 wxFontStyle result;
12165 void *argp1 = 0 ;
12166 int res1 = 0 ;
12167 PyObject *swig_obj[1] ;
12168
12169 if (!args) SWIG_fail;
12170 swig_obj[0] = args;
12171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12172 if (!SWIG_IsOK(res1)) {
12173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12174 }
12175 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 resultobj = SWIG_From_int(static_cast< int >(result));
12183 return resultobj;
12184fail:
12185 return NULL;
d14a1e28
RD
12186}
12187
12188
0085ce49
RD
12189SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12190 PyObject *resultobj = 0;
12191 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12192 wxFontWeight result;
12193 void *argp1 = 0 ;
12194 int res1 = 0 ;
12195 PyObject *swig_obj[1] ;
12196
12197 if (!args) SWIG_fail;
12198 swig_obj[0] = args;
12199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12200 if (!SWIG_IsOK(res1)) {
12201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12202 }
12203 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12204 {
12205 PyThreadState* __tstate = wxPyBeginAllowThreads();
12206 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12207 wxPyEndAllowThreads(__tstate);
12208 if (PyErr_Occurred()) SWIG_fail;
12209 }
12210 resultobj = SWIG_From_int(static_cast< int >(result));
12211 return resultobj;
12212fail:
12213 return NULL;
d14a1e28
RD
12214}
12215
12216
0085ce49
RD
12217SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12218 PyObject *resultobj = 0;
12219 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12220 bool result;
12221 void *argp1 = 0 ;
12222 int res1 = 0 ;
12223 PyObject *swig_obj[1] ;
12224
12225 if (!args) SWIG_fail;
12226 swig_obj[0] = args;
12227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12228 if (!SWIG_IsOK(res1)) {
12229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12230 }
12231 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 {
12239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12240 }
12241 return resultobj;
12242fail:
12243 return NULL;
d14a1e28
RD
12244}
12245
12246
0085ce49
RD
12247SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12250 wxString result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12260 }
12261 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 {
12269#if wxUSE_UNICODE
12270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12271#else
12272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12273#endif
12274 }
12275 return resultobj;
12276fail:
12277 return NULL;
d14a1e28
RD
12278}
12279
12280
0085ce49
RD
12281SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12282 PyObject *resultobj = 0;
12283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12284 wxFontFamily result;
12285 void *argp1 = 0 ;
12286 int res1 = 0 ;
12287 PyObject *swig_obj[1] ;
12288
12289 if (!args) SWIG_fail;
12290 swig_obj[0] = args;
12291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12292 if (!SWIG_IsOK(res1)) {
12293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12294 }
12295 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12296 {
12297 PyThreadState* __tstate = wxPyBeginAllowThreads();
12298 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12299 wxPyEndAllowThreads(__tstate);
12300 if (PyErr_Occurred()) SWIG_fail;
12301 }
12302 resultobj = SWIG_From_int(static_cast< int >(result));
12303 return resultobj;
12304fail:
12305 return NULL;
d14a1e28
RD
12306}
12307
12308
0085ce49
RD
12309SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12310 PyObject *resultobj = 0;
12311 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12312 wxFontEncoding result;
12313 void *argp1 = 0 ;
12314 int res1 = 0 ;
12315 PyObject *swig_obj[1] ;
12316
12317 if (!args) SWIG_fail;
12318 swig_obj[0] = args;
12319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12320 if (!SWIG_IsOK(res1)) {
12321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12322 }
12323 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_From_int(static_cast< int >(result));
12331 return resultobj;
12332fail:
12333 return NULL;
12334}
12335
12336
12337SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj = 0;
12339 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12340 int arg2 ;
12341 void *argp1 = 0 ;
12342 int res1 = 0 ;
12343 int val2 ;
12344 int ecode2 = 0 ;
12345 PyObject * obj0 = 0 ;
12346 PyObject * obj1 = 0 ;
12347 char * kwnames[] = {
12348 (char *) "self",(char *) "pointsize", NULL
12349 };
12350
12351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12355 }
12356 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12357 ecode2 = SWIG_AsVal_int(obj1, &val2);
12358 if (!SWIG_IsOK(ecode2)) {
12359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12360 }
12361 arg2 = static_cast< int >(val2);
12362 {
12363 PyThreadState* __tstate = wxPyBeginAllowThreads();
12364 (arg1)->SetPointSize(arg2);
12365 wxPyEndAllowThreads(__tstate);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 }
12368 resultobj = SWIG_Py_Void();
12369 return resultobj;
12370fail:
12371 return NULL;
12372}
12373
12374
12375SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12376 PyObject *resultobj = 0;
12377 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12378 wxFontStyle arg2 ;
12379 void *argp1 = 0 ;
12380 int res1 = 0 ;
12381 int val2 ;
12382 int ecode2 = 0 ;
12383 PyObject * obj0 = 0 ;
12384 PyObject * obj1 = 0 ;
12385 char * kwnames[] = {
12386 (char *) "self",(char *) "style", NULL
12387 };
12388
12389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12393 }
12394 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12395 ecode2 = SWIG_AsVal_int(obj1, &val2);
12396 if (!SWIG_IsOK(ecode2)) {
12397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12398 }
12399 arg2 = static_cast< wxFontStyle >(val2);
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 (arg1)->SetStyle(arg2);
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 resultobj = SWIG_Py_Void();
12407 return resultobj;
12408fail:
12409 return NULL;
12410}
12411
12412
12413SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj = 0;
12415 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12416 wxFontWeight arg2 ;
12417 void *argp1 = 0 ;
12418 int res1 = 0 ;
12419 int val2 ;
12420 int ecode2 = 0 ;
12421 PyObject * obj0 = 0 ;
12422 PyObject * obj1 = 0 ;
12423 char * kwnames[] = {
12424 (char *) "self",(char *) "weight", NULL
12425 };
12426
12427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12429 if (!SWIG_IsOK(res1)) {
12430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12431 }
12432 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12433 ecode2 = SWIG_AsVal_int(obj1, &val2);
12434 if (!SWIG_IsOK(ecode2)) {
12435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12436 }
12437 arg2 = static_cast< wxFontWeight >(val2);
12438 {
12439 PyThreadState* __tstate = wxPyBeginAllowThreads();
12440 (arg1)->SetWeight(arg2);
12441 wxPyEndAllowThreads(__tstate);
12442 if (PyErr_Occurred()) SWIG_fail;
12443 }
12444 resultobj = SWIG_Py_Void();
12445 return resultobj;
12446fail:
12447 return NULL;
12448}
12449
12450
12451SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12452 PyObject *resultobj = 0;
12453 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12454 bool arg2 ;
12455 void *argp1 = 0 ;
12456 int res1 = 0 ;
12457 bool val2 ;
12458 int ecode2 = 0 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 char * kwnames[] = {
12462 (char *) "self",(char *) "underlined", NULL
12463 };
12464
12465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12467 if (!SWIG_IsOK(res1)) {
12468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12469 }
12470 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12471 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12472 if (!SWIG_IsOK(ecode2)) {
12473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12474 }
12475 arg2 = static_cast< bool >(val2);
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 (arg1)->SetUnderlined(arg2);
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 resultobj = SWIG_Py_Void();
12483 return resultobj;
12484fail:
12485 return NULL;
12486}
12487
12488
12489SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12490 PyObject *resultobj = 0;
12491 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12492 wxString arg2 ;
704eda0c 12493 bool result;
0085ce49
RD
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 char * kwnames[] = {
12499 (char *) "self",(char *) "facename", NULL
12500 };
12501
12502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12506 }
12507 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12508 {
12509 wxString* sptr = wxString_in_helper(obj1);
12510 if (sptr == NULL) SWIG_fail;
12511 arg2 = *sptr;
12512 delete sptr;
12513 }
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12516 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
704eda0c
RD
12520 {
12521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12522 }
0085ce49
RD
12523 return resultobj;
12524fail:
12525 return NULL;
12526}
12527
12528
12529SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj = 0;
12531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12532 wxFontFamily arg2 ;
12533 void *argp1 = 0 ;
12534 int res1 = 0 ;
12535 int val2 ;
12536 int ecode2 = 0 ;
12537 PyObject * obj0 = 0 ;
12538 PyObject * obj1 = 0 ;
12539 char * kwnames[] = {
12540 (char *) "self",(char *) "family", NULL
12541 };
12542
12543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12547 }
12548 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12549 ecode2 = SWIG_AsVal_int(obj1, &val2);
12550 if (!SWIG_IsOK(ecode2)) {
12551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12552 }
12553 arg2 = static_cast< wxFontFamily >(val2);
12554 {
12555 PyThreadState* __tstate = wxPyBeginAllowThreads();
12556 (arg1)->SetFamily(arg2);
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
12560 resultobj = SWIG_Py_Void();
12561 return resultobj;
12562fail:
12563 return NULL;
12564}
12565
12566
12567SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj = 0;
12569 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12570 wxFontEncoding arg2 ;
12571 void *argp1 = 0 ;
12572 int res1 = 0 ;
12573 int val2 ;
12574 int ecode2 = 0 ;
12575 PyObject * obj0 = 0 ;
12576 PyObject * obj1 = 0 ;
12577 char * kwnames[] = {
12578 (char *) "self",(char *) "encoding", NULL
12579 };
12580
12581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12583 if (!SWIG_IsOK(res1)) {
12584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12585 }
12586 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12587 ecode2 = SWIG_AsVal_int(obj1, &val2);
12588 if (!SWIG_IsOK(ecode2)) {
12589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12590 }
12591 arg2 = static_cast< wxFontEncoding >(val2);
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 (arg1)->SetEncoding(arg2);
12595 wxPyEndAllowThreads(__tstate);
12596 if (PyErr_Occurred()) SWIG_fail;
12597 }
12598 resultobj = SWIG_Py_Void();
12599 return resultobj;
12600fail:
12601 return NULL;
12602}
12603
12604
12605SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj = 0;
12607 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12608 wxString *arg2 = 0 ;
12609 bool result;
12610 void *argp1 = 0 ;
12611 int res1 = 0 ;
12612 bool temp2 = false ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 char * kwnames[] = {
12616 (char *) "self",(char *) "s", NULL
12617 };
12618
12619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12621 if (!SWIG_IsOK(res1)) {
12622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12623 }
12624 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12625 {
12626 arg2 = wxString_in_helper(obj1);
12627 if (arg2 == NULL) SWIG_fail;
12628 temp2 = true;
12629 }
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 {
12637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12638 }
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return resultobj;
12644fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 return NULL;
d14a1e28
RD
12650}
12651
12652
0085ce49
RD
12653SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12654 PyObject *resultobj = 0;
12655 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12656 wxString result;
12657 void *argp1 = 0 ;
12658 int res1 = 0 ;
12659 PyObject *swig_obj[1] ;
12660
12661 if (!args) SWIG_fail;
12662 swig_obj[0] = args;
12663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12664 if (!SWIG_IsOK(res1)) {
12665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12666 }
12667 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 result = ((wxNativeFontInfo const *)arg1)->ToString();
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 {
12675#if wxUSE_UNICODE
12676 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12677#else
12678 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12679#endif
12680 }
12681 return resultobj;
12682fail:
12683 return NULL;
d14a1e28
RD
12684}
12685
12686
0085ce49
RD
12687SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12688 PyObject *resultobj = 0;
12689 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12690 wxString result;
12691 void *argp1 = 0 ;
12692 int res1 = 0 ;
12693 PyObject *swig_obj[1] ;
12694
12695 if (!args) SWIG_fail;
12696 swig_obj[0] = args;
12697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12700 }
12701 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = wxNativeFontInfo___str__(arg1);
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 {
12709#if wxUSE_UNICODE
12710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12711#else
12712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12713#endif
12714 }
12715 return resultobj;
12716fail:
12717 return NULL;
12718}
12719
12720
12721SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12722 PyObject *resultobj = 0;
12723 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12724 wxString *arg2 = 0 ;
12725 bool result;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 bool temp2 = false ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 char * kwnames[] = {
12732 (char *) "self",(char *) "s", NULL
12733 };
12734
12735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12737 if (!SWIG_IsOK(res1)) {
12738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12739 }
12740 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12741 {
12742 arg2 = wxString_in_helper(obj1);
12743 if (arg2 == NULL) SWIG_fail;
12744 temp2 = true;
12745 }
12746 {
12747 PyThreadState* __tstate = wxPyBeginAllowThreads();
12748 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 {
12753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12754 }
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return resultobj;
12760fail:
12761 {
12762 if (temp2)
12763 delete arg2;
12764 }
12765 return NULL;
d14a1e28
RD
12766}
12767
12768
0085ce49
RD
12769SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12770 PyObject *resultobj = 0;
12771 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12772 wxString result;
12773 void *argp1 = 0 ;
12774 int res1 = 0 ;
12775 PyObject *swig_obj[1] ;
12776
12777 if (!args) SWIG_fail;
12778 swig_obj[0] = args;
12779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12782 }
12783 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 {
12791#if wxUSE_UNICODE
12792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12793#else
12794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12795#endif
12796 }
12797 return resultobj;
12798fail:
12799 return NULL;
d14a1e28
RD
12800}
12801
12802
0085ce49
RD
12803SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12804 PyObject *obj;
12805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12806 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12807 return SWIG_Py_Void();
d14a1e28
RD
12808}
12809
0085ce49
RD
12810SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12811 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12812}
12813
0085ce49
RD
12814SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12815 PyObject *resultobj = 0;
12816 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12817 wxString *arg2 = (wxString *) 0 ;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 bool temp2 = false ;
12821 PyObject *swig_obj[2] ;
12822
12823 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12827 }
12828 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12829 {
12830 arg2 = wxString_in_helper(swig_obj[1]);
12831 if (arg2 == NULL) SWIG_fail;
12832 temp2 = true;
12833 }
12834 if (arg1) (arg1)->facename = *arg2;
12835
12836 resultobj = SWIG_Py_Void();
12837 {
12838 if (temp2)
12839 delete arg2;
12840 }
12841 return resultobj;
12842fail:
12843 {
12844 if (temp2)
12845 delete arg2;
12846 }
12847 return NULL;
d14a1e28
RD
12848}
12849
12850
0085ce49
RD
12851SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 PyObject *resultobj = 0;
12853 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12854 wxString *result = 0 ;
12855 void *argp1 = 0 ;
12856 int res1 = 0 ;
12857 PyObject *swig_obj[1] ;
12858
12859 if (!args) SWIG_fail;
12860 swig_obj[0] = args;
12861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12862 if (!SWIG_IsOK(res1)) {
12863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12864 }
12865 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12866 result = (wxString *)& ((arg1)->facename);
12867 {
12868#if wxUSE_UNICODE
12869 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12870#else
12871 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12872#endif
12873 }
12874 return resultobj;
12875fail:
12876 return NULL;
d14a1e28
RD
12877}
12878
12879
0085ce49
RD
12880SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12881 PyObject *resultobj = 0;
12882 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12883 wxFontEncoding arg2 ;
12884 void *argp1 = 0 ;
12885 int res1 = 0 ;
12886 int val2 ;
12887 int ecode2 = 0 ;
12888 PyObject *swig_obj[2] ;
12889
12890 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12892 if (!SWIG_IsOK(res1)) {
12893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12894 }
12895 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12896 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12897 if (!SWIG_IsOK(ecode2)) {
12898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12899 }
12900 arg2 = static_cast< wxFontEncoding >(val2);
12901 if (arg1) (arg1)->encoding = arg2;
12902
12903 resultobj = SWIG_Py_Void();
12904 return resultobj;
12905fail:
12906 return NULL;
d14a1e28
RD
12907}
12908
12909
0085ce49
RD
12910SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12911 PyObject *resultobj = 0;
12912 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12913 wxFontEncoding result;
12914 void *argp1 = 0 ;
12915 int res1 = 0 ;
12916 PyObject *swig_obj[1] ;
12917
12918 if (!args) SWIG_fail;
12919 swig_obj[0] = args;
12920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12923 }
12924 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12925 result = (wxFontEncoding) ((arg1)->encoding);
12926 resultobj = SWIG_From_int(static_cast< int >(result));
12927 return resultobj;
12928fail:
12929 return NULL;
d14a1e28
RD
12930}
12931
12932
0085ce49
RD
12933SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
12935 wxNativeEncodingInfo *result = 0 ;
12936
12937 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
12940 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12945 return resultobj;
12946fail:
12947 return NULL;
d14a1e28
RD
12948}
12949
12950
0085ce49
RD
12951SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12952 PyObject *resultobj = 0;
12953 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
12961 if (!SWIG_IsOK(res1)) {
12962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12963 }
12964 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 delete arg1;
d14a1e28 12968
0085ce49
RD
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 resultobj = SWIG_Py_Void();
12973 return resultobj;
12974fail:
12975 return NULL;
12976}
12977
12978
12979SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj = 0;
12981 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12982 wxString *arg2 = 0 ;
12983 bool result;
12984 void *argp1 = 0 ;
12985 int res1 = 0 ;
12986 bool temp2 = false ;
12987 PyObject * obj0 = 0 ;
12988 PyObject * obj1 = 0 ;
12989 char * kwnames[] = {
12990 (char *) "self",(char *) "s", NULL
12991 };
12992
12993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12995 if (!SWIG_IsOK(res1)) {
12996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12997 }
12998 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12999 {
13000 arg2 = wxString_in_helper(obj1);
13001 if (arg2 == NULL) SWIG_fail;
13002 temp2 = true;
13003 }
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13007 wxPyEndAllowThreads(__tstate);
13008 if (PyErr_Occurred()) SWIG_fail;
13009 }
13010 {
13011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13012 }
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return resultobj;
13018fail:
13019 {
13020 if (temp2)
13021 delete arg2;
13022 }
13023 return NULL;
d14a1e28
RD
13024}
13025
13026
0085ce49
RD
13027SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13028 PyObject *resultobj = 0;
13029 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13030 wxString result;
13031 void *argp1 = 0 ;
13032 int res1 = 0 ;
13033 PyObject *swig_obj[1] ;
13034
13035 if (!args) SWIG_fail;
13036 swig_obj[0] = args;
13037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13038 if (!SWIG_IsOK(res1)) {
13039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13040 }
13041 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13045 wxPyEndAllowThreads(__tstate);
13046 if (PyErr_Occurred()) SWIG_fail;
13047 }
13048 {
13049#if wxUSE_UNICODE
13050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13051#else
13052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13053#endif
13054 }
13055 return resultobj;
13056fail:
13057 return NULL;
d14a1e28
RD
13058}
13059
13060
0085ce49
RD
13061SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13062 PyObject *obj;
13063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13064 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13065 return SWIG_Py_Void();
d14a1e28
RD
13066}
13067
0085ce49
RD
13068SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13069 return SWIG_Python_InitShadowInstance(args);
13070}
d14a1e28 13071
0085ce49
RD
13072SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxFontEncoding arg1 ;
13075 wxNativeEncodingInfo *result = 0 ;
13076 int val1 ;
13077 int ecode1 = 0 ;
13078 PyObject * obj0 = 0 ;
13079 char * kwnames[] = {
13080 (char *) "encoding", NULL
13081 };
13082
13083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13084 ecode1 = SWIG_AsVal_int(obj0, &val1);
13085 if (!SWIG_IsOK(ecode1)) {
13086 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13087 }
13088 arg1 = static_cast< wxFontEncoding >(val1);
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13096 return resultobj;
13097fail:
13098 return NULL;
13099}
13100
13101
13102SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj = 0;
13104 wxNativeEncodingInfo *arg1 = 0 ;
13105 bool result;
13106 void *argp1 = 0 ;
13107 int res1 = 0 ;
13108 PyObject * obj0 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "info", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13117 }
13118 if (!argp1) {
13119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13120 }
13121 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 {
13129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13130 }
13131 return resultobj;
13132fail:
13133 return NULL;
d14a1e28
RD
13134}
13135
13136
0085ce49
RD
13137SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13138 PyObject *resultobj = 0;
13139 wxFontMapper *result = 0 ;
13140
13141 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 result = (wxFontMapper *)new wxFontMapper();
13145 wxPyEndAllowThreads(__tstate);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13149 return resultobj;
13150fail:
13151 return NULL;
d14a1e28
RD
13152}
13153
13154
0085ce49
RD
13155SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13156 PyObject *resultobj = 0;
13157 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13158 void *argp1 = 0 ;
13159 int res1 = 0 ;
13160 PyObject *swig_obj[1] ;
13161
13162 if (!args) SWIG_fail;
13163 swig_obj[0] = args;
13164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13167 }
13168 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 delete arg1;
d14a1e28 13172
0085ce49
RD
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 resultobj = SWIG_Py_Void();
13177 return resultobj;
13178fail:
13179 return NULL;
d14a1e28
RD
13180}
13181
13182
0085ce49
RD
13183SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13184 PyObject *resultobj = 0;
13185 wxFontMapper *result = 0 ;
13186
13187 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 result = (wxFontMapper *)wxFontMapper::Get();
13191 wxPyEndAllowThreads(__tstate);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13195 return resultobj;
13196fail:
13197 return NULL;
13198}
13199
13200
13201SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj = 0;
13203 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13204 wxFontMapper *result = 0 ;
13205 void *argp1 = 0 ;
13206 int res1 = 0 ;
13207 PyObject * obj0 = 0 ;
13208 char * kwnames[] = {
13209 (char *) "mapper", NULL
13210 };
13211
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13216 }
13217 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
13220 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13221 wxPyEndAllowThreads(__tstate);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13225 return resultobj;
13226fail:
13227 return NULL;
13228}
13229
13230
13231SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13232 PyObject *resultobj = 0;
13233 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13234 wxString *arg2 = 0 ;
13235 bool arg3 = (bool) true ;
13236 wxFontEncoding result;
13237 void *argp1 = 0 ;
13238 int res1 = 0 ;
13239 bool temp2 = false ;
13240 bool val3 ;
13241 int ecode3 = 0 ;
13242 PyObject * obj0 = 0 ;
13243 PyObject * obj1 = 0 ;
13244 PyObject * obj2 = 0 ;
13245 char * kwnames[] = {
13246 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13247 };
13248
13249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13253 }
13254 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13255 {
13256 arg2 = wxString_in_helper(obj1);
13257 if (arg2 == NULL) SWIG_fail;
13258 temp2 = true;
13259 }
13260 if (obj2) {
13261 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13262 if (!SWIG_IsOK(ecode3)) {
13263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13264 }
13265 arg3 = static_cast< bool >(val3);
13266 }
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_From_int(static_cast< int >(result));
13274 {
13275 if (temp2)
13276 delete arg2;
13277 }
13278 return resultobj;
13279fail:
13280 {
13281 if (temp2)
13282 delete arg2;
13283 }
13284 return NULL;
e6ffcedd
RD
13285}
13286
13287
0085ce49
RD
13288SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13289 PyObject *resultobj = 0;
13290 size_t result;
13291
13292 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13300 return resultobj;
13301fail:
13302 return NULL;
13303}
13304
13305
13306SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 size_t arg1 ;
13309 wxFontEncoding result;
13310 size_t val1 ;
13311 int ecode1 = 0 ;
13312 PyObject * obj0 = 0 ;
13313 char * kwnames[] = {
13314 (char *) "n", NULL
13315 };
13316
13317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13318 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13319 if (!SWIG_IsOK(ecode1)) {
13320 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13321 }
13322 arg1 = static_cast< size_t >(val1);
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 resultobj = SWIG_From_int(static_cast< int >(result));
13330 return resultobj;
13331fail:
13332 return NULL;
13333}
13334
13335
13336SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj = 0;
13338 wxFontEncoding arg1 ;
13339 wxString result;
13340 int val1 ;
13341 int ecode1 = 0 ;
13342 PyObject * obj0 = 0 ;
13343 char * kwnames[] = {
13344 (char *) "encoding", NULL
13345 };
13346
13347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13348 ecode1 = SWIG_AsVal_int(obj0, &val1);
13349 if (!SWIG_IsOK(ecode1)) {
13350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13351 }
13352 arg1 = static_cast< wxFontEncoding >(val1);
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = wxFontMapper::GetEncodingName(arg1);
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 {
13360#if wxUSE_UNICODE
13361 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13362#else
13363 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13364#endif
13365 }
13366 return resultobj;
13367fail:
13368 return NULL;
d14a1e28
RD
13369}
13370
13371
0085ce49
RD
13372SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13373 PyObject *resultobj = 0;
13374 wxFontEncoding arg1 ;
13375 wxString result;
13376 int val1 ;
13377 int ecode1 = 0 ;
13378 PyObject * obj0 = 0 ;
13379 char * kwnames[] = {
13380 (char *) "encoding", NULL
13381 };
13382
13383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13384 ecode1 = SWIG_AsVal_int(obj0, &val1);
13385 if (!SWIG_IsOK(ecode1)) {
13386 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13387 }
13388 arg1 = static_cast< wxFontEncoding >(val1);
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = wxFontMapper::GetEncodingDescription(arg1);
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 {
13396#if wxUSE_UNICODE
13397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13398#else
13399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13400#endif
13401 }
13402 return resultobj;
13403fail:
13404 return NULL;
d14a1e28
RD
13405}
13406
13407
0085ce49
RD
13408SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13409 PyObject *resultobj = 0;
13410 wxString *arg1 = 0 ;
13411 wxFontEncoding result;
13412 bool temp1 = false ;
13413 PyObject * obj0 = 0 ;
13414 char * kwnames[] = {
13415 (char *) "name", NULL
13416 };
13417
13418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13419 {
13420 arg1 = wxString_in_helper(obj0);
13421 if (arg1 == NULL) SWIG_fail;
13422 temp1 = true;
13423 }
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_From_int(static_cast< int >(result));
13431 {
13432 if (temp1)
13433 delete arg1;
13434 }
13435 return resultobj;
13436fail:
13437 {
13438 if (temp1)
13439 delete arg1;
13440 }
13441 return NULL;
d14a1e28
RD
13442}
13443
13444
0085ce49
RD
13445SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj = 0;
13447 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13448 wxString *arg2 = 0 ;
13449 void *argp1 = 0 ;
13450 int res1 = 0 ;
13451 bool temp2 = false ;
13452 PyObject * obj0 = 0 ;
13453 PyObject * obj1 = 0 ;
13454 char * kwnames[] = {
13455 (char *) "self",(char *) "prefix", NULL
13456 };
13457
13458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13460 if (!SWIG_IsOK(res1)) {
13461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13462 }
13463 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13464 {
13465 arg2 = wxString_in_helper(obj1);
13466 if (arg2 == NULL) SWIG_fail;
13467 temp2 = true;
13468 }
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 (arg1)->SetConfigPath((wxString const &)*arg2);
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 resultobj = SWIG_Py_Void();
13476 {
13477 if (temp2)
13478 delete arg2;
13479 }
13480 return resultobj;
13481fail:
13482 {
13483 if (temp2)
13484 delete arg2;
13485 }
13486 return NULL;
d14a1e28
RD
13487}
13488
13489
0085ce49
RD
13490SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13491 PyObject *resultobj = 0;
13492 wxString result;
13493
13494 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 result = wxFontMapper::GetDefaultConfigPath();
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 {
13502#if wxUSE_UNICODE
13503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13504#else
13505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13506#endif
13507 }
13508 return resultobj;
13509fail:
13510 return NULL;
13511}
13512
13513
13514SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13515 PyObject *resultobj = 0;
13516 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13517 wxFontEncoding arg2 ;
13518 wxString const &arg3_defvalue = wxPyEmptyString ;
13519 wxString *arg3 = (wxString *) &arg3_defvalue ;
13520 bool arg4 = (bool) true ;
13521 PyObject *result = 0 ;
13522 void *argp1 = 0 ;
13523 int res1 = 0 ;
13524 int val2 ;
13525 int ecode2 = 0 ;
13526 bool temp3 = false ;
13527 bool val4 ;
13528 int ecode4 = 0 ;
13529 PyObject * obj0 = 0 ;
13530 PyObject * obj1 = 0 ;
13531 PyObject * obj2 = 0 ;
13532 PyObject * obj3 = 0 ;
13533 char * kwnames[] = {
13534 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13535 };
13536
13537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13539 if (!SWIG_IsOK(res1)) {
13540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13541 }
13542 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13543 ecode2 = SWIG_AsVal_int(obj1, &val2);
13544 if (!SWIG_IsOK(ecode2)) {
13545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13546 }
13547 arg2 = static_cast< wxFontEncoding >(val2);
13548 if (obj2) {
093d3ff1 13549 {
0085ce49
RD
13550 arg3 = wxString_in_helper(obj2);
13551 if (arg3 == NULL) SWIG_fail;
13552 temp3 = true;
093d3ff1 13553 }
0085ce49
RD
13554 }
13555 if (obj3) {
13556 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13557 if (!SWIG_IsOK(ecode4)) {
13558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13559 }
13560 arg4 = static_cast< bool >(val4);
13561 }
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = result;
13569 {
13570 if (temp3)
13571 delete arg3;
13572 }
13573 return resultobj;
13574fail:
13575 {
13576 if (temp3)
13577 delete arg3;
13578 }
13579 return NULL;
13580}
13581
13582
13583SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13584 PyObject *resultobj = 0;
13585 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13586 wxFontEncoding arg2 ;
13587 wxString const &arg3_defvalue = wxPyEmptyString ;
13588 wxString *arg3 = (wxString *) &arg3_defvalue ;
13589 bool result;
13590 void *argp1 = 0 ;
13591 int res1 = 0 ;
13592 int val2 ;
13593 int ecode2 = 0 ;
13594 bool temp3 = false ;
13595 PyObject * obj0 = 0 ;
13596 PyObject * obj1 = 0 ;
13597 PyObject * obj2 = 0 ;
13598 char * kwnames[] = {
13599 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13600 };
13601
13602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13604 if (!SWIG_IsOK(res1)) {
13605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13606 }
13607 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13608 ecode2 = SWIG_AsVal_int(obj1, &val2);
13609 if (!SWIG_IsOK(ecode2)) {
13610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13611 }
13612 arg2 = static_cast< wxFontEncoding >(val2);
13613 if (obj2) {
d14a1e28 13614 {
0085ce49
RD
13615 arg3 = wxString_in_helper(obj2);
13616 if (arg3 == NULL) SWIG_fail;
13617 temp3 = true;
d14a1e28 13618 }
0085ce49
RD
13619 }
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 {
13627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13628 }
13629 {
13630 if (temp3)
13631 delete arg3;
13632 }
13633 return resultobj;
13634fail:
13635 {
13636 if (temp3)
13637 delete arg3;
13638 }
13639 return NULL;
13640}
13641
13642
13643SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj = 0;
13645 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13646 wxWindow *arg2 = (wxWindow *) 0 ;
13647 void *argp1 = 0 ;
13648 int res1 = 0 ;
13649 void *argp2 = 0 ;
13650 int res2 = 0 ;
13651 PyObject * obj0 = 0 ;
13652 PyObject * obj1 = 0 ;
13653 char * kwnames[] = {
13654 (char *) "self",(char *) "parent", NULL
13655 };
13656
13657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13659 if (!SWIG_IsOK(res1)) {
13660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13661 }
13662 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13664 if (!SWIG_IsOK(res2)) {
13665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13666 }
13667 arg2 = reinterpret_cast< wxWindow * >(argp2);
13668 {
13669 PyThreadState* __tstate = wxPyBeginAllowThreads();
13670 (arg1)->SetDialogParent(arg2);
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 resultobj = SWIG_Py_Void();
13675 return resultobj;
13676fail:
13677 return NULL;
13678}
13679
13680
13681SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj = 0;
13683 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13684 wxString *arg2 = 0 ;
13685 void *argp1 = 0 ;
13686 int res1 = 0 ;
13687 bool temp2 = false ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "title", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13698 }
13699 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13700 {
13701 arg2 = wxString_in_helper(obj1);
13702 if (arg2 == NULL) SWIG_fail;
13703 temp2 = true;
13704 }
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 (arg1)->SetDialogTitle((wxString const &)*arg2);
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 resultobj = SWIG_Py_Void();
13712 {
13713 if (temp2)
13714 delete arg2;
13715 }
13716 return resultobj;
13717fail:
13718 {
13719 if (temp2)
13720 delete arg2;
13721 }
13722 return NULL;
13723}
13724
13725
13726SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13727 PyObject *obj;
13728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13729 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13730 return SWIG_Py_Void();
13731}
13732
13733SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13734 return SWIG_Python_InitShadowInstance(args);
13735}
13736
13737SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj = 0;
13739 int arg1 ;
13740 int arg2 ;
13741 int arg3 ;
13742 int arg4 ;
13743 bool arg5 = (bool) false ;
13744 wxString const &arg6_defvalue = wxPyEmptyString ;
13745 wxString *arg6 = (wxString *) &arg6_defvalue ;
13746 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13747 wxFont *result = 0 ;
13748 int val1 ;
13749 int ecode1 = 0 ;
13750 int val2 ;
13751 int ecode2 = 0 ;
13752 int val3 ;
13753 int ecode3 = 0 ;
13754 int val4 ;
13755 int ecode4 = 0 ;
13756 bool val5 ;
13757 int ecode5 = 0 ;
13758 bool temp6 = false ;
13759 int val7 ;
13760 int ecode7 = 0 ;
13761 PyObject * obj0 = 0 ;
13762 PyObject * obj1 = 0 ;
13763 PyObject * obj2 = 0 ;
13764 PyObject * obj3 = 0 ;
13765 PyObject * obj4 = 0 ;
13766 PyObject * obj5 = 0 ;
13767 PyObject * obj6 = 0 ;
13768 char * kwnames[] = {
13769 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13770 };
13771
13772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13773 ecode1 = SWIG_AsVal_int(obj0, &val1);
13774 if (!SWIG_IsOK(ecode1)) {
13775 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13776 }
13777 arg1 = static_cast< int >(val1);
13778 ecode2 = SWIG_AsVal_int(obj1, &val2);
13779 if (!SWIG_IsOK(ecode2)) {
13780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13781 }
13782 arg2 = static_cast< int >(val2);
13783 ecode3 = SWIG_AsVal_int(obj2, &val3);
13784 if (!SWIG_IsOK(ecode3)) {
13785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13786 }
13787 arg3 = static_cast< int >(val3);
13788 ecode4 = SWIG_AsVal_int(obj3, &val4);
13789 if (!SWIG_IsOK(ecode4)) {
13790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13791 }
13792 arg4 = static_cast< int >(val4);
13793 if (obj4) {
13794 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13795 if (!SWIG_IsOK(ecode5)) {
13796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13797 }
13798 arg5 = static_cast< bool >(val5);
13799 }
13800 if (obj5) {
093d3ff1 13801 {
0085ce49
RD
13802 arg6 = wxString_in_helper(obj5);
13803 if (arg6 == NULL) SWIG_fail;
13804 temp6 = true;
093d3ff1 13805 }
0085ce49
RD
13806 }
13807 if (obj6) {
13808 ecode7 = SWIG_AsVal_int(obj6, &val7);
13809 if (!SWIG_IsOK(ecode7)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13811 }
13812 arg7 = static_cast< wxFontEncoding >(val7);
13813 }
13814 {
13815 if (!wxPyCheckForApp()) SWIG_fail;
13816 PyThreadState* __tstate = wxPyBeginAllowThreads();
13817 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13818 wxPyEndAllowThreads(__tstate);
13819 if (PyErr_Occurred()) SWIG_fail;
13820 }
13821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13822 {
13823 if (temp6)
13824 delete arg6;
13825 }
13826 return resultobj;
13827fail:
13828 {
13829 if (temp6)
13830 delete arg6;
13831 }
13832 return NULL;
d14a1e28
RD
13833}
13834
13835
0085ce49
RD
13836SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13837 PyObject *resultobj = 0;
13838 wxFont *arg1 = (wxFont *) 0 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 PyObject *swig_obj[1] ;
13842
13843 if (!args) SWIG_fail;
13844 swig_obj[0] = args;
13845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13846 if (!SWIG_IsOK(res1)) {
13847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13848 }
13849 arg1 = reinterpret_cast< wxFont * >(argp1);
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 delete arg1;
d14a1e28 13853
0085ce49
RD
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = SWIG_Py_Void();
13858 return resultobj;
13859fail:
13860 return NULL;
13861}
13862
13863
13864SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13865 PyObject *resultobj = 0;
13866 wxNativeFontInfo *arg1 = 0 ;
13867 wxFont *result = 0 ;
13868 void *argp1 = 0 ;
13869 int res1 = 0 ;
13870 PyObject * obj0 = 0 ;
13871 char * kwnames[] = {
13872 (char *) "info", NULL
13873 };
13874
13875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13876 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13877 if (!SWIG_IsOK(res1)) {
13878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13879 }
13880 if (!argp1) {
13881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13882 }
13883 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13884 {
13885 if (!wxPyCheckForApp()) SWIG_fail;
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13892 return resultobj;
13893fail:
13894 return NULL;
d14a1e28
RD
13895}
13896
13897
0085ce49
RD
13898SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj = 0;
13900 wxString *arg1 = 0 ;
13901 wxFont *result = 0 ;
13902 bool temp1 = false ;
13903 PyObject * obj0 = 0 ;
13904 char * kwnames[] = {
13905 (char *) "info", NULL
13906 };
13907
13908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13909 {
13910 arg1 = wxString_in_helper(obj0);
13911 if (arg1 == NULL) SWIG_fail;
13912 temp1 = true;
13913 }
13914 {
13915 if (!wxPyCheckForApp()) SWIG_fail;
13916 PyThreadState* __tstate = wxPyBeginAllowThreads();
13917 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
13921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13922 {
13923 if (temp1)
13924 delete arg1;
13925 }
13926 return resultobj;
13927fail:
13928 {
13929 if (temp1)
13930 delete arg1;
13931 }
13932 return NULL;
13933}
13934
13935
13936SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13937 PyObject *resultobj = 0;
13938 int arg1 ;
13939 wxFontFamily arg2 ;
13940 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13941 wxString const &arg4_defvalue = wxPyEmptyString ;
13942 wxString *arg4 = (wxString *) &arg4_defvalue ;
13943 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13944 wxFont *result = 0 ;
13945 int val1 ;
13946 int ecode1 = 0 ;
13947 int val2 ;
13948 int ecode2 = 0 ;
13949 int val3 ;
13950 int ecode3 = 0 ;
13951 bool temp4 = false ;
13952 int val5 ;
13953 int ecode5 = 0 ;
13954 PyObject * obj0 = 0 ;
13955 PyObject * obj1 = 0 ;
13956 PyObject * obj2 = 0 ;
13957 PyObject * obj3 = 0 ;
13958 PyObject * obj4 = 0 ;
13959 char * kwnames[] = {
13960 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13961 };
13962
13963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13964 ecode1 = SWIG_AsVal_int(obj0, &val1);
13965 if (!SWIG_IsOK(ecode1)) {
13966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13967 }
13968 arg1 = static_cast< int >(val1);
13969 ecode2 = SWIG_AsVal_int(obj1, &val2);
13970 if (!SWIG_IsOK(ecode2)) {
13971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13972 }
13973 arg2 = static_cast< wxFontFamily >(val2);
13974 if (obj2) {
13975 ecode3 = SWIG_AsVal_int(obj2, &val3);
13976 if (!SWIG_IsOK(ecode3)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13978 }
13979 arg3 = static_cast< int >(val3);
13980 }
13981 if (obj3) {
093d3ff1 13982 {
0085ce49
RD
13983 arg4 = wxString_in_helper(obj3);
13984 if (arg4 == NULL) SWIG_fail;
13985 temp4 = true;
093d3ff1 13986 }
0085ce49
RD
13987 }
13988 if (obj4) {
13989 ecode5 = SWIG_AsVal_int(obj4, &val5);
13990 if (!SWIG_IsOK(ecode5)) {
13991 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13992 }
13993 arg5 = static_cast< wxFontEncoding >(val5);
13994 }
13995 {
13996 if (!wxPyCheckForApp()) SWIG_fail;
13997 PyThreadState* __tstate = wxPyBeginAllowThreads();
13998 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13999 wxPyEndAllowThreads(__tstate);
14000 if (PyErr_Occurred()) SWIG_fail;
14001 }
14002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14003 {
14004 if (temp4)
14005 delete arg4;
14006 }
14007 return resultobj;
14008fail:
14009 {
14010 if (temp4)
14011 delete arg4;
14012 }
14013 return NULL;
14014}
14015
14016
14017SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14018 PyObject *resultobj = 0;
14019 wxSize *arg1 = 0 ;
14020 int arg2 ;
14021 int arg3 ;
14022 int arg4 ;
14023 bool arg5 = (bool) false ;
14024 wxString const &arg6_defvalue = wxEmptyString ;
14025 wxString *arg6 = (wxString *) &arg6_defvalue ;
14026 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14027 wxFont *result = 0 ;
14028 wxSize temp1 ;
14029 int val2 ;
14030 int ecode2 = 0 ;
14031 int val3 ;
14032 int ecode3 = 0 ;
14033 int val4 ;
14034 int ecode4 = 0 ;
14035 bool val5 ;
14036 int ecode5 = 0 ;
14037 bool temp6 = false ;
14038 int val7 ;
14039 int ecode7 = 0 ;
14040 PyObject * obj0 = 0 ;
14041 PyObject * obj1 = 0 ;
14042 PyObject * obj2 = 0 ;
14043 PyObject * obj3 = 0 ;
14044 PyObject * obj4 = 0 ;
14045 PyObject * obj5 = 0 ;
14046 PyObject * obj6 = 0 ;
14047 char * kwnames[] = {
14048 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14049 };
14050
14051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14052 {
14053 arg1 = &temp1;
14054 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14055 }
14056 ecode2 = SWIG_AsVal_int(obj1, &val2);
14057 if (!SWIG_IsOK(ecode2)) {
14058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14059 }
14060 arg2 = static_cast< int >(val2);
14061 ecode3 = SWIG_AsVal_int(obj2, &val3);
14062 if (!SWIG_IsOK(ecode3)) {
14063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14064 }
14065 arg3 = static_cast< int >(val3);
14066 ecode4 = SWIG_AsVal_int(obj3, &val4);
14067 if (!SWIG_IsOK(ecode4)) {
14068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14069 }
14070 arg4 = static_cast< int >(val4);
14071 if (obj4) {
14072 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14073 if (!SWIG_IsOK(ecode5)) {
14074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14075 }
14076 arg5 = static_cast< bool >(val5);
14077 }
14078 if (obj5) {
d14a1e28 14079 {
0085ce49
RD
14080 arg6 = wxString_in_helper(obj5);
14081 if (arg6 == NULL) SWIG_fail;
14082 temp6 = true;
d14a1e28 14083 }
0085ce49
RD
14084 }
14085 if (obj6) {
14086 ecode7 = SWIG_AsVal_int(obj6, &val7);
14087 if (!SWIG_IsOK(ecode7)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14089 }
14090 arg7 = static_cast< wxFontEncoding >(val7);
14091 }
14092 {
14093 if (!wxPyCheckForApp()) SWIG_fail;
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14100 {
14101 if (temp6)
14102 delete arg6;
14103 }
14104 return resultobj;
14105fail:
14106 {
14107 if (temp6)
14108 delete arg6;
14109 }
14110 return NULL;
14111}
14112
14113
14114SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14115 PyObject *resultobj = 0;
14116 wxSize *arg1 = 0 ;
14117 wxFontFamily arg2 ;
14118 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14119 wxString const &arg4_defvalue = wxEmptyString ;
14120 wxString *arg4 = (wxString *) &arg4_defvalue ;
14121 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14122 wxFont *result = 0 ;
14123 wxSize temp1 ;
14124 int val2 ;
14125 int ecode2 = 0 ;
14126 int val3 ;
14127 int ecode3 = 0 ;
14128 bool temp4 = false ;
14129 int val5 ;
14130 int ecode5 = 0 ;
14131 PyObject * obj0 = 0 ;
14132 PyObject * obj1 = 0 ;
14133 PyObject * obj2 = 0 ;
14134 PyObject * obj3 = 0 ;
14135 PyObject * obj4 = 0 ;
14136 char * kwnames[] = {
14137 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14138 };
14139
14140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14141 {
14142 arg1 = &temp1;
14143 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14144 }
14145 ecode2 = SWIG_AsVal_int(obj1, &val2);
14146 if (!SWIG_IsOK(ecode2)) {
14147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14148 }
14149 arg2 = static_cast< wxFontFamily >(val2);
14150 if (obj2) {
14151 ecode3 = SWIG_AsVal_int(obj2, &val3);
14152 if (!SWIG_IsOK(ecode3)) {
14153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14154 }
14155 arg3 = static_cast< int >(val3);
14156 }
14157 if (obj3) {
093d3ff1 14158 {
0085ce49
RD
14159 arg4 = wxString_in_helper(obj3);
14160 if (arg4 == NULL) SWIG_fail;
14161 temp4 = true;
093d3ff1 14162 }
0085ce49
RD
14163 }
14164 if (obj4) {
14165 ecode5 = SWIG_AsVal_int(obj4, &val5);
14166 if (!SWIG_IsOK(ecode5)) {
14167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14168 }
14169 arg5 = static_cast< wxFontEncoding >(val5);
14170 }
14171 {
14172 if (!wxPyCheckForApp()) SWIG_fail;
14173 PyThreadState* __tstate = wxPyBeginAllowThreads();
14174 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14175 wxPyEndAllowThreads(__tstate);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 }
14178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14179 {
14180 if (temp4)
14181 delete arg4;
14182 }
14183 return resultobj;
14184fail:
14185 {
14186 if (temp4)
14187 delete arg4;
14188 }
14189 return NULL;
d14a1e28
RD
14190}
14191
14192
b39fe951 14193SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
14194 PyObject *resultobj = 0;
14195 wxFont *arg1 = (wxFont *) 0 ;
14196 bool result;
14197 void *argp1 = 0 ;
14198 int res1 = 0 ;
14199 PyObject *swig_obj[1] ;
14200
14201 if (!args) SWIG_fail;
14202 swig_obj[0] = args;
14203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14204 if (!SWIG_IsOK(res1)) {
b39fe951 14205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
14206 }
14207 arg1 = reinterpret_cast< wxFont * >(argp1);
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14210 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
14211 wxPyEndAllowThreads(__tstate);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 }
14214 {
14215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14216 }
14217 return resultobj;
14218fail:
14219 return NULL;
14220}
14221
14222
14223SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14224 PyObject *resultobj = 0;
14225 wxFont *arg1 = (wxFont *) 0 ;
14226 wxFont *arg2 = (wxFont *) 0 ;
14227 bool result;
14228 void *argp1 = 0 ;
14229 int res1 = 0 ;
14230 void *argp2 = 0 ;
14231 int res2 = 0 ;
14232 PyObject * obj0 = 0 ;
14233 PyObject * obj1 = 0 ;
14234 char * kwnames[] = {
14235 (char *) "self",(char *) "other", NULL
14236 };
14237
14238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14240 if (!SWIG_IsOK(res1)) {
14241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14242 }
14243 arg1 = reinterpret_cast< wxFont * >(argp1);
14244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14245 if (!SWIG_IsOK(res2)) {
14246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14247 }
14248 arg2 = reinterpret_cast< wxFont * >(argp2);
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 {
14256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14257 }
14258 return resultobj;
14259fail:
14260 return NULL;
14261}
14262
14263
14264SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14265 PyObject *resultobj = 0;
14266 wxFont *arg1 = (wxFont *) 0 ;
14267 wxFont *arg2 = (wxFont *) 0 ;
14268 bool result;
14269 void *argp1 = 0 ;
14270 int res1 = 0 ;
14271 void *argp2 = 0 ;
14272 int res2 = 0 ;
14273 PyObject * obj0 = 0 ;
14274 PyObject * obj1 = 0 ;
14275 char * kwnames[] = {
14276 (char *) "self",(char *) "other", NULL
14277 };
14278
14279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14281 if (!SWIG_IsOK(res1)) {
14282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14283 }
14284 arg1 = reinterpret_cast< wxFont * >(argp1);
14285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14286 if (!SWIG_IsOK(res2)) {
14287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14288 }
14289 arg2 = reinterpret_cast< wxFont * >(argp2);
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 {
14297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14298 }
14299 return resultobj;
14300fail:
14301 return NULL;
d14a1e28
RD
14302}
14303
14304
0085ce49
RD
14305SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14306 PyObject *resultobj = 0;
14307 wxFont *arg1 = (wxFont *) 0 ;
14308 int result;
14309 void *argp1 = 0 ;
14310 int res1 = 0 ;
14311 PyObject *swig_obj[1] ;
14312
14313 if (!args) SWIG_fail;
14314 swig_obj[0] = args;
14315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14316 if (!SWIG_IsOK(res1)) {
14317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14318 }
14319 arg1 = reinterpret_cast< wxFont * >(argp1);
14320 {
14321 PyThreadState* __tstate = wxPyBeginAllowThreads();
14322 result = (int)((wxFont const *)arg1)->GetPointSize();
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = SWIG_From_int(static_cast< int >(result));
14327 return resultobj;
14328fail:
14329 return NULL;
d14a1e28
RD
14330}
14331
14332
0085ce49
RD
14333SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14334 PyObject *resultobj = 0;
14335 wxFont *arg1 = (wxFont *) 0 ;
14336 wxSize result;
14337 void *argp1 = 0 ;
14338 int res1 = 0 ;
14339 PyObject *swig_obj[1] ;
14340
14341 if (!args) SWIG_fail;
14342 swig_obj[0] = args;
14343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14344 if (!SWIG_IsOK(res1)) {
14345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14346 }
14347 arg1 = reinterpret_cast< wxFont * >(argp1);
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = ((wxFont const *)arg1)->GetPixelSize();
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14355 return resultobj;
14356fail:
14357 return NULL;
d14a1e28
RD
14358}
14359
14360
0085ce49
RD
14361SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14362 PyObject *resultobj = 0;
14363 wxFont *arg1 = (wxFont *) 0 ;
14364 bool result;
14365 void *argp1 = 0 ;
14366 int res1 = 0 ;
14367 PyObject *swig_obj[1] ;
14368
14369 if (!args) SWIG_fail;
14370 swig_obj[0] = args;
14371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14374 }
14375 arg1 = reinterpret_cast< wxFont * >(argp1);
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14379 wxPyEndAllowThreads(__tstate);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 }
14382 {
14383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14384 }
14385 return resultobj;
14386fail:
14387 return NULL;
d14a1e28
RD
14388}
14389
14390
0085ce49
RD
14391SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14392 PyObject *resultobj = 0;
14393 wxFont *arg1 = (wxFont *) 0 ;
14394 int result;
14395 void *argp1 = 0 ;
14396 int res1 = 0 ;
14397 PyObject *swig_obj[1] ;
14398
14399 if (!args) SWIG_fail;
14400 swig_obj[0] = args;
14401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14402 if (!SWIG_IsOK(res1)) {
14403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14404 }
14405 arg1 = reinterpret_cast< wxFont * >(argp1);
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (int)((wxFont const *)arg1)->GetFamily();
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = SWIG_From_int(static_cast< int >(result));
14413 return resultobj;
14414fail:
14415 return NULL;
d14a1e28
RD
14416}
14417
14418
0085ce49
RD
14419SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14420 PyObject *resultobj = 0;
14421 wxFont *arg1 = (wxFont *) 0 ;
14422 int result;
14423 void *argp1 = 0 ;
14424 int res1 = 0 ;
14425 PyObject *swig_obj[1] ;
14426
14427 if (!args) SWIG_fail;
14428 swig_obj[0] = args;
14429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14430 if (!SWIG_IsOK(res1)) {
14431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14432 }
14433 arg1 = reinterpret_cast< wxFont * >(argp1);
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 result = (int)((wxFont const *)arg1)->GetStyle();
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 resultobj = SWIG_From_int(static_cast< int >(result));
14441 return resultobj;
14442fail:
14443 return NULL;
d14a1e28
RD
14444}
14445
14446
0085ce49
RD
14447SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14448 PyObject *resultobj = 0;
14449 wxFont *arg1 = (wxFont *) 0 ;
14450 int result;
14451 void *argp1 = 0 ;
14452 int res1 = 0 ;
14453 PyObject *swig_obj[1] ;
14454
14455 if (!args) SWIG_fail;
14456 swig_obj[0] = args;
14457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14458 if (!SWIG_IsOK(res1)) {
14459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14460 }
14461 arg1 = reinterpret_cast< wxFont * >(argp1);
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = (int)((wxFont const *)arg1)->GetWeight();
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 resultobj = SWIG_From_int(static_cast< int >(result));
14469 return resultobj;
14470fail:
14471 return NULL;
d14a1e28
RD
14472}
14473
14474
0085ce49
RD
14475SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14476 PyObject *resultobj = 0;
14477 wxFont *arg1 = (wxFont *) 0 ;
14478 bool result;
14479 void *argp1 = 0 ;
14480 int res1 = 0 ;
14481 PyObject *swig_obj[1] ;
14482
14483 if (!args) SWIG_fail;
14484 swig_obj[0] = args;
14485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14486 if (!SWIG_IsOK(res1)) {
14487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14488 }
14489 arg1 = reinterpret_cast< wxFont * >(argp1);
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 {
14497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14498 }
14499 return resultobj;
14500fail:
14501 return NULL;
d14a1e28
RD
14502}
14503
14504
0085ce49
RD
14505SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14506 PyObject *resultobj = 0;
14507 wxFont *arg1 = (wxFont *) 0 ;
14508 wxString result;
14509 void *argp1 = 0 ;
14510 int res1 = 0 ;
14511 PyObject *swig_obj[1] ;
14512
14513 if (!args) SWIG_fail;
14514 swig_obj[0] = args;
14515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14516 if (!SWIG_IsOK(res1)) {
14517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14518 }
14519 arg1 = reinterpret_cast< wxFont * >(argp1);
14520 {
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 result = ((wxFont const *)arg1)->GetFaceName();
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 {
14527#if wxUSE_UNICODE
14528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14529#else
14530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14531#endif
14532 }
14533 return resultobj;
14534fail:
14535 return NULL;
d14a1e28
RD
14536}
14537
14538
0085ce49
RD
14539SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14540 PyObject *resultobj = 0;
14541 wxFont *arg1 = (wxFont *) 0 ;
14542 wxFontEncoding result;
14543 void *argp1 = 0 ;
14544 int res1 = 0 ;
14545 PyObject *swig_obj[1] ;
14546
14547 if (!args) SWIG_fail;
14548 swig_obj[0] = args;
14549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14550 if (!SWIG_IsOK(res1)) {
14551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14552 }
14553 arg1 = reinterpret_cast< wxFont * >(argp1);
14554 {
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14557 wxPyEndAllowThreads(__tstate);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 resultobj = SWIG_From_int(static_cast< int >(result));
14561 return resultobj;
14562fail:
14563 return NULL;
d14a1e28
RD
14564}
14565
14566
0085ce49
RD
14567SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14568 PyObject *resultobj = 0;
14569 wxFont *arg1 = (wxFont *) 0 ;
14570 wxNativeFontInfo *result = 0 ;
14571 void *argp1 = 0 ;
14572 int res1 = 0 ;
14573 PyObject *swig_obj[1] ;
14574
14575 if (!args) SWIG_fail;
14576 swig_obj[0] = args;
14577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14580 }
14581 arg1 = reinterpret_cast< wxFont * >(argp1);
14582 {
14583 PyThreadState* __tstate = wxPyBeginAllowThreads();
14584 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14589 return resultobj;
14590fail:
14591 return NULL;
d14a1e28
RD
14592}
14593
14594
0085ce49
RD
14595SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14596 PyObject *resultobj = 0;
14597 wxFont *arg1 = (wxFont *) 0 ;
14598 bool result;
14599 void *argp1 = 0 ;
14600 int res1 = 0 ;
14601 PyObject *swig_obj[1] ;
14602
14603 if (!args) SWIG_fail;
14604 swig_obj[0] = args;
14605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14606 if (!SWIG_IsOK(res1)) {
14607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14608 }
14609 arg1 = reinterpret_cast< wxFont * >(argp1);
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 {
14617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14618 }
14619 return resultobj;
14620fail:
14621 return NULL;
d14a1e28
RD
14622}
14623
14624
0085ce49
RD
14625SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14626 PyObject *resultobj = 0;
14627 wxFont *arg1 = (wxFont *) 0 ;
14628 wxString result;
14629 void *argp1 = 0 ;
14630 int res1 = 0 ;
14631 PyObject *swig_obj[1] ;
14632
14633 if (!args) SWIG_fail;
14634 swig_obj[0] = args;
14635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14636 if (!SWIG_IsOK(res1)) {
14637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14638 }
14639 arg1 = reinterpret_cast< wxFont * >(argp1);
14640 {
14641 PyThreadState* __tstate = wxPyBeginAllowThreads();
14642 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14643 wxPyEndAllowThreads(__tstate);
14644 if (PyErr_Occurred()) SWIG_fail;
14645 }
14646 {
14647#if wxUSE_UNICODE
14648 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14649#else
14650 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14651#endif
14652 }
14653 return resultobj;
14654fail:
14655 return NULL;
d14a1e28
RD
14656}
14657
14658
0085ce49
RD
14659SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14660 PyObject *resultobj = 0;
14661 wxFont *arg1 = (wxFont *) 0 ;
14662 wxString result;
14663 void *argp1 = 0 ;
14664 int res1 = 0 ;
14665 PyObject *swig_obj[1] ;
14666
14667 if (!args) SWIG_fail;
14668 swig_obj[0] = args;
14669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14670 if (!SWIG_IsOK(res1)) {
14671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14672 }
14673 arg1 = reinterpret_cast< wxFont * >(argp1);
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14677 wxPyEndAllowThreads(__tstate);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 }
14680 {
14681#if wxUSE_UNICODE
14682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14683#else
14684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14685#endif
14686 }
14687 return resultobj;
14688fail:
14689 return NULL;
14690}
14691
14692
14693SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14694 PyObject *resultobj = 0;
14695 wxFont *arg1 = (wxFont *) 0 ;
14696 int arg2 ;
14697 void *argp1 = 0 ;
14698 int res1 = 0 ;
14699 int val2 ;
14700 int ecode2 = 0 ;
14701 PyObject * obj0 = 0 ;
14702 PyObject * obj1 = 0 ;
14703 char * kwnames[] = {
14704 (char *) "self",(char *) "pointSize", NULL
14705 };
14706
14707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14709 if (!SWIG_IsOK(res1)) {
14710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14711 }
14712 arg1 = reinterpret_cast< wxFont * >(argp1);
14713 ecode2 = SWIG_AsVal_int(obj1, &val2);
14714 if (!SWIG_IsOK(ecode2)) {
14715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14716 }
14717 arg2 = static_cast< int >(val2);
14718 {
14719 PyThreadState* __tstate = wxPyBeginAllowThreads();
14720 (arg1)->SetPointSize(arg2);
14721 wxPyEndAllowThreads(__tstate);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 }
14724 resultobj = SWIG_Py_Void();
14725 return resultobj;
14726fail:
14727 return NULL;
14728}
14729
14730
14731SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14732 PyObject *resultobj = 0;
14733 wxFont *arg1 = (wxFont *) 0 ;
14734 wxSize *arg2 = 0 ;
14735 void *argp1 = 0 ;
14736 int res1 = 0 ;
14737 wxSize temp2 ;
14738 PyObject * obj0 = 0 ;
14739 PyObject * obj1 = 0 ;
14740 char * kwnames[] = {
14741 (char *) "self",(char *) "pixelSize", NULL
14742 };
14743
14744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14746 if (!SWIG_IsOK(res1)) {
14747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14748 }
14749 arg1 = reinterpret_cast< wxFont * >(argp1);
14750 {
14751 arg2 = &temp2;
14752 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14753 }
14754 {
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 (arg1)->SetPixelSize((wxSize const &)*arg2);
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 resultobj = SWIG_Py_Void();
14761 return resultobj;
14762fail:
14763 return NULL;
14764}
14765
14766
14767SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14768 PyObject *resultobj = 0;
14769 wxFont *arg1 = (wxFont *) 0 ;
14770 int arg2 ;
14771 void *argp1 = 0 ;
14772 int res1 = 0 ;
14773 int val2 ;
14774 int ecode2 = 0 ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 char * kwnames[] = {
14778 (char *) "self",(char *) "family", NULL
14779 };
14780
14781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14783 if (!SWIG_IsOK(res1)) {
14784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14785 }
14786 arg1 = reinterpret_cast< wxFont * >(argp1);
14787 ecode2 = SWIG_AsVal_int(obj1, &val2);
14788 if (!SWIG_IsOK(ecode2)) {
14789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14790 }
14791 arg2 = static_cast< int >(val2);
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 (arg1)->SetFamily(arg2);
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_Py_Void();
14799 return resultobj;
14800fail:
14801 return NULL;
14802}
14803
14804
14805SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14806 PyObject *resultobj = 0;
14807 wxFont *arg1 = (wxFont *) 0 ;
14808 int arg2 ;
14809 void *argp1 = 0 ;
14810 int res1 = 0 ;
14811 int val2 ;
14812 int ecode2 = 0 ;
14813 PyObject * obj0 = 0 ;
14814 PyObject * obj1 = 0 ;
14815 char * kwnames[] = {
14816 (char *) "self",(char *) "style", NULL
14817 };
14818
14819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14821 if (!SWIG_IsOK(res1)) {
14822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14823 }
14824 arg1 = reinterpret_cast< wxFont * >(argp1);
14825 ecode2 = SWIG_AsVal_int(obj1, &val2);
14826 if (!SWIG_IsOK(ecode2)) {
14827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14828 }
14829 arg2 = static_cast< int >(val2);
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 (arg1)->SetStyle(arg2);
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 resultobj = SWIG_Py_Void();
14837 return resultobj;
14838fail:
14839 return NULL;
14840}
14841
14842
14843SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14844 PyObject *resultobj = 0;
14845 wxFont *arg1 = (wxFont *) 0 ;
14846 int arg2 ;
14847 void *argp1 = 0 ;
14848 int res1 = 0 ;
14849 int val2 ;
14850 int ecode2 = 0 ;
14851 PyObject * obj0 = 0 ;
14852 PyObject * obj1 = 0 ;
14853 char * kwnames[] = {
14854 (char *) "self",(char *) "weight", NULL
14855 };
14856
14857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14859 if (!SWIG_IsOK(res1)) {
14860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14861 }
14862 arg1 = reinterpret_cast< wxFont * >(argp1);
14863 ecode2 = SWIG_AsVal_int(obj1, &val2);
14864 if (!SWIG_IsOK(ecode2)) {
14865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14866 }
14867 arg2 = static_cast< int >(val2);
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 (arg1)->SetWeight(arg2);
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 resultobj = SWIG_Py_Void();
14875 return resultobj;
14876fail:
14877 return NULL;
14878}
14879
14880
14881SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14882 PyObject *resultobj = 0;
14883 wxFont *arg1 = (wxFont *) 0 ;
14884 wxString *arg2 = 0 ;
704eda0c 14885 bool result;
0085ce49
RD
14886 void *argp1 = 0 ;
14887 int res1 = 0 ;
14888 bool temp2 = false ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char * kwnames[] = {
14892 (char *) "self",(char *) "faceName", NULL
14893 };
14894
14895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14897 if (!SWIG_IsOK(res1)) {
14898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14899 }
14900 arg1 = reinterpret_cast< wxFont * >(argp1);
14901 {
14902 arg2 = wxString_in_helper(obj1);
14903 if (arg2 == NULL) SWIG_fail;
14904 temp2 = true;
14905 }
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14908 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
704eda0c
RD
14912 {
14913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14914 }
0085ce49
RD
14915 {
14916 if (temp2)
14917 delete arg2;
14918 }
14919 return resultobj;
14920fail:
14921 {
14922 if (temp2)
14923 delete arg2;
14924 }
14925 return NULL;
14926}
14927
14928
14929SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14930 PyObject *resultobj = 0;
14931 wxFont *arg1 = (wxFont *) 0 ;
14932 bool arg2 ;
14933 void *argp1 = 0 ;
14934 int res1 = 0 ;
14935 bool val2 ;
14936 int ecode2 = 0 ;
14937 PyObject * obj0 = 0 ;
14938 PyObject * obj1 = 0 ;
14939 char * kwnames[] = {
14940 (char *) "self",(char *) "underlined", NULL
14941 };
14942
14943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14945 if (!SWIG_IsOK(res1)) {
14946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14947 }
14948 arg1 = reinterpret_cast< wxFont * >(argp1);
14949 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14950 if (!SWIG_IsOK(ecode2)) {
14951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14952 }
14953 arg2 = static_cast< bool >(val2);
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 (arg1)->SetUnderlined(arg2);
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = SWIG_Py_Void();
14961 return resultobj;
14962fail:
14963 return NULL;
14964}
14965
14966
14967SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj = 0;
14969 wxFont *arg1 = (wxFont *) 0 ;
14970 wxFontEncoding arg2 ;
14971 void *argp1 = 0 ;
14972 int res1 = 0 ;
14973 int val2 ;
14974 int ecode2 = 0 ;
14975 PyObject * obj0 = 0 ;
14976 PyObject * obj1 = 0 ;
14977 char * kwnames[] = {
14978 (char *) "self",(char *) "encoding", NULL
14979 };
14980
14981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14983 if (!SWIG_IsOK(res1)) {
14984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14985 }
14986 arg1 = reinterpret_cast< wxFont * >(argp1);
14987 ecode2 = SWIG_AsVal_int(obj1, &val2);
14988 if (!SWIG_IsOK(ecode2)) {
14989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14990 }
14991 arg2 = static_cast< wxFontEncoding >(val2);
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 (arg1)->SetEncoding(arg2);
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 resultobj = SWIG_Py_Void();
14999 return resultobj;
15000fail:
15001 return NULL;
15002}
15003
15004
15005SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15006 PyObject *resultobj = 0;
15007 wxFont *arg1 = (wxFont *) 0 ;
15008 wxNativeFontInfo *arg2 = 0 ;
15009 void *argp1 = 0 ;
15010 int res1 = 0 ;
15011 void *argp2 = 0 ;
15012 int res2 = 0 ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 char * kwnames[] = {
15016 (char *) "self",(char *) "info", NULL
15017 };
15018
15019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15021 if (!SWIG_IsOK(res1)) {
15022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15023 }
15024 arg1 = reinterpret_cast< wxFont * >(argp1);
15025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15026 if (!SWIG_IsOK(res2)) {
15027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15028 }
15029 if (!argp2) {
15030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15031 }
15032 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15036 wxPyEndAllowThreads(__tstate);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 resultobj = SWIG_Py_Void();
15040 return resultobj;
15041fail:
15042 return NULL;
15043}
15044
15045
15046SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15047 PyObject *resultobj = 0;
15048 wxFont *arg1 = (wxFont *) 0 ;
15049 wxString *arg2 = 0 ;
704eda0c 15050 bool result;
0085ce49
RD
15051 void *argp1 = 0 ;
15052 int res1 = 0 ;
15053 bool temp2 = false ;
15054 PyObject * obj0 = 0 ;
15055 PyObject * obj1 = 0 ;
15056 char * kwnames[] = {
15057 (char *) "self",(char *) "info", NULL
15058 };
15059
15060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15064 }
15065 arg1 = reinterpret_cast< wxFont * >(argp1);
15066 {
15067 arg2 = wxString_in_helper(obj1);
15068 if (arg2 == NULL) SWIG_fail;
15069 temp2 = true;
15070 }
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15073 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
704eda0c
RD
15077 {
15078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15079 }
0085ce49
RD
15080 {
15081 if (temp2)
15082 delete arg2;
15083 }
15084 return resultobj;
15085fail:
15086 {
15087 if (temp2)
15088 delete arg2;
15089 }
15090 return NULL;
d14a1e28
RD
15091}
15092
15093
0085ce49
RD
15094SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj = 0;
15096 wxFont *arg1 = (wxFont *) 0 ;
15097 wxString *arg2 = 0 ;
704eda0c 15098 bool result;
0085ce49
RD
15099 void *argp1 = 0 ;
15100 int res1 = 0 ;
15101 bool temp2 = false ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 char * kwnames[] = {
15105 (char *) "self",(char *) "info", NULL
15106 };
15107
15108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15110 if (!SWIG_IsOK(res1)) {
15111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15112 }
15113 arg1 = reinterpret_cast< wxFont * >(argp1);
15114 {
15115 arg2 = wxString_in_helper(obj1);
15116 if (arg2 == NULL) SWIG_fail;
15117 temp2 = true;
15118 }
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15121 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
704eda0c
RD
15125 {
15126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15127 }
0085ce49
RD
15128 {
15129 if (temp2)
15130 delete arg2;
15131 }
15132 return resultobj;
15133fail:
15134 {
15135 if (temp2)
15136 delete arg2;
15137 }
15138 return NULL;
d14a1e28
RD
15139}
15140
15141
0085ce49
RD
15142SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15143 PyObject *resultobj = 0;
15144 wxFont *arg1 = (wxFont *) 0 ;
15145 wxString result;
15146 void *argp1 = 0 ;
15147 int res1 = 0 ;
15148 PyObject *swig_obj[1] ;
15149
15150 if (!args) SWIG_fail;
15151 swig_obj[0] = args;
15152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15153 if (!SWIG_IsOK(res1)) {
15154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15155 }
15156 arg1 = reinterpret_cast< wxFont * >(argp1);
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 result = ((wxFont const *)arg1)->GetFamilyString();
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 {
15164#if wxUSE_UNICODE
15165 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15166#else
15167 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15168#endif
15169 }
15170 return resultobj;
15171fail:
15172 return NULL;
d14a1e28
RD
15173}
15174
15175
0085ce49
RD
15176SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15177 PyObject *resultobj = 0;
15178 wxFont *arg1 = (wxFont *) 0 ;
15179 wxString result;
15180 void *argp1 = 0 ;
15181 int res1 = 0 ;
15182 PyObject *swig_obj[1] ;
15183
15184 if (!args) SWIG_fail;
15185 swig_obj[0] = args;
15186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15187 if (!SWIG_IsOK(res1)) {
15188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15189 }
15190 arg1 = reinterpret_cast< wxFont * >(argp1);
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = ((wxFont const *)arg1)->GetStyleString();
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198#if wxUSE_UNICODE
15199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15200#else
15201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15202#endif
15203 }
15204 return resultobj;
15205fail:
15206 return NULL;
d14a1e28
RD
15207}
15208
15209
0085ce49
RD
15210SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15211 PyObject *resultobj = 0;
15212 wxFont *arg1 = (wxFont *) 0 ;
15213 wxString result;
15214 void *argp1 = 0 ;
15215 int res1 = 0 ;
15216 PyObject *swig_obj[1] ;
15217
15218 if (!args) SWIG_fail;
15219 swig_obj[0] = args;
15220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15221 if (!SWIG_IsOK(res1)) {
15222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15223 }
15224 arg1 = reinterpret_cast< wxFont * >(argp1);
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 result = ((wxFont const *)arg1)->GetWeightString();
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 {
d14a1e28 15232#if wxUSE_UNICODE
0085ce49 15233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15234#else
0085ce49 15235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15236#endif
0085ce49
RD
15237 }
15238 return resultobj;
15239fail:
15240 return NULL;
15241}
15242
15243
15244SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15245 PyObject *resultobj = 0;
15246 wxFont *arg1 = (wxFont *) 0 ;
15247 bool arg2 = (bool) true ;
15248 void *argp1 = 0 ;
15249 int res1 = 0 ;
15250 bool val2 ;
15251 int ecode2 = 0 ;
15252 PyObject * obj0 = 0 ;
15253 PyObject * obj1 = 0 ;
15254 char * kwnames[] = {
15255 (char *) "self",(char *) "no", NULL
15256 };
15257
15258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15260 if (!SWIG_IsOK(res1)) {
15261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15262 }
15263 arg1 = reinterpret_cast< wxFont * >(argp1);
15264 if (obj1) {
15265 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15266 if (!SWIG_IsOK(ecode2)) {
15267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15268 }
15269 arg2 = static_cast< bool >(val2);
15270 }
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 (arg1)->SetNoAntiAliasing(arg2);
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 resultobj = SWIG_Py_Void();
15278 return resultobj;
15279fail:
15280 return NULL;
d14a1e28
RD
15281}
15282
15283
0085ce49
RD
15284SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 bool result;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 PyObject *swig_obj[1] ;
15291
15292 if (!args) SWIG_fail;
15293 swig_obj[0] = args;
15294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15295 if (!SWIG_IsOK(res1)) {
15296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15297 }
15298 arg1 = reinterpret_cast< wxFont * >(argp1);
15299 {
15300 PyThreadState* __tstate = wxPyBeginAllowThreads();
15301 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 {
15306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15307 }
15308 return resultobj;
15309fail:
15310 return NULL;
d14a1e28
RD
15311}
15312
15313
0085ce49
RD
15314SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15315 PyObject *resultobj = 0;
15316 wxFontEncoding result;
15317
15318 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15319 {
15320 if (!wxPyCheckForApp()) SWIG_fail;
15321 PyThreadState* __tstate = wxPyBeginAllowThreads();
15322 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15323 wxPyEndAllowThreads(__tstate);
15324 if (PyErr_Occurred()) SWIG_fail;
15325 }
15326 resultobj = SWIG_From_int(static_cast< int >(result));
15327 return resultobj;
15328fail:
15329 return NULL;
d14a1e28
RD
15330}
15331
15332
0085ce49
RD
15333SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15334 PyObject *resultobj = 0;
15335 wxFontEncoding arg1 ;
15336 int val1 ;
15337 int ecode1 = 0 ;
15338 PyObject * obj0 = 0 ;
15339 char * kwnames[] = {
15340 (char *) "encoding", NULL
15341 };
15342
15343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15344 ecode1 = SWIG_AsVal_int(obj0, &val1);
15345 if (!SWIG_IsOK(ecode1)) {
15346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15347 }
15348 arg1 = static_cast< wxFontEncoding >(val1);
15349 {
15350 if (!wxPyCheckForApp()) SWIG_fail;
15351 PyThreadState* __tstate = wxPyBeginAllowThreads();
15352 wxFont::SetDefaultEncoding(arg1);
15353 wxPyEndAllowThreads(__tstate);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 }
15356 resultobj = SWIG_Py_Void();
15357 return resultobj;
15358fail:
15359 return NULL;
d14a1e28
RD
15360}
15361
15362
0085ce49
RD
15363SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15364 PyObject *obj;
15365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15366 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15367 return SWIG_Py_Void();
d14a1e28
RD
15368}
15369
0085ce49
RD
15370SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15371 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15372}
15373
0085ce49
RD
15374SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15375 PyObject *resultobj = 0;
15376 wxPyFontEnumerator *result = 0 ;
15377
15378 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15379 {
15380 if (!wxPyCheckForApp()) SWIG_fail;
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15387 return resultobj;
15388fail:
15389 return NULL;
d14a1e28
RD
15390}
15391
15392
0085ce49
RD
15393SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15394 PyObject *resultobj = 0;
15395 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 PyObject *swig_obj[1] ;
15399
15400 if (!args) SWIG_fail;
15401 swig_obj[0] = args;
15402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15405 }
15406 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 delete arg1;
d14a1e28 15410
0085ce49
RD
15411 wxPyEndAllowThreads(__tstate);
15412 if (PyErr_Occurred()) SWIG_fail;
15413 }
15414 resultobj = SWIG_Py_Void();
15415 return resultobj;
15416fail:
15417 return NULL;
15418}
15419
15420
15421SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15422 PyObject *resultobj = 0;
15423 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15424 PyObject *arg2 = (PyObject *) 0 ;
15425 PyObject *arg3 = (PyObject *) 0 ;
15426 bool arg4 ;
15427 void *argp1 = 0 ;
15428 int res1 = 0 ;
15429 bool val4 ;
15430 int ecode4 = 0 ;
15431 PyObject * obj0 = 0 ;
15432 PyObject * obj1 = 0 ;
15433 PyObject * obj2 = 0 ;
15434 PyObject * obj3 = 0 ;
15435 char * kwnames[] = {
15436 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15437 };
15438
15439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15441 if (!SWIG_IsOK(res1)) {
15442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15443 }
15444 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15445 arg2 = obj1;
15446 arg3 = obj2;
15447 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15448 if (!SWIG_IsOK(ecode4)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15450 }
15451 arg4 = static_cast< bool >(val4);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460fail:
15461 return NULL;
15462}
15463
15464
15465SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15468 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15469 bool arg3 = (bool) false ;
15470 bool result;
15471 void *argp1 = 0 ;
15472 int res1 = 0 ;
15473 int val2 ;
15474 int ecode2 = 0 ;
15475 bool val3 ;
15476 int ecode3 = 0 ;
15477 PyObject * obj0 = 0 ;
15478 PyObject * obj1 = 0 ;
15479 PyObject * obj2 = 0 ;
15480 char * kwnames[] = {
15481 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15482 };
15483
15484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15486 if (!SWIG_IsOK(res1)) {
15487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15488 }
15489 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15490 if (obj1) {
15491 ecode2 = SWIG_AsVal_int(obj1, &val2);
15492 if (!SWIG_IsOK(ecode2)) {
15493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15494 }
15495 arg2 = static_cast< wxFontEncoding >(val2);
15496 }
15497 if (obj2) {
15498 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15499 if (!SWIG_IsOK(ecode3)) {
15500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15501 }
15502 arg3 = static_cast< bool >(val3);
15503 }
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 {
15511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15512 }
15513 return resultobj;
15514fail:
15515 return NULL;
15516}
15517
15518
15519SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj = 0;
15521 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15522 wxString const &arg2_defvalue = wxPyEmptyString ;
15523 wxString *arg2 = (wxString *) &arg2_defvalue ;
15524 bool result;
15525 void *argp1 = 0 ;
15526 int res1 = 0 ;
15527 bool temp2 = false ;
15528 PyObject * obj0 = 0 ;
15529 PyObject * obj1 = 0 ;
15530 char * kwnames[] = {
15531 (char *) "self",(char *) "facename", NULL
15532 };
15533
15534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15536 if (!SWIG_IsOK(res1)) {
15537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15538 }
15539 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15540 if (obj1) {
d14a1e28 15541 {
0085ce49
RD
15542 arg2 = wxString_in_helper(obj1);
15543 if (arg2 == NULL) SWIG_fail;
15544 temp2 = true;
d14a1e28 15545 }
0085ce49
RD
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 {
15554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15555 }
15556 {
15557 if (temp2)
15558 delete arg2;
15559 }
15560 return resultobj;
15561fail:
15562 {
15563 if (temp2)
15564 delete arg2;
15565 }
15566 return NULL;
d14a1e28
RD
15567}
15568
15569
0085ce49
RD
15570SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15571 PyObject *resultobj = 0;
0085ce49 15572 PyObject *result = 0 ;
0085ce49 15573
704eda0c 15574 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15575 {
15576 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15577 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 resultobj = result;
15582 return resultobj;
15583fail:
15584 return NULL;
d14a1e28
RD
15585}
15586
15587
0085ce49
RD
15588SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15589 PyObject *resultobj = 0;
0085ce49 15590 PyObject *result = 0 ;
0085ce49 15591
704eda0c 15592 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15595 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = result;
15600 return resultobj;
15601fail:
15602 return NULL;
d14a1e28
RD
15603}
15604
15605
704eda0c
RD
15606SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxString *arg1 = 0 ;
15609 bool result;
15610 bool temp1 = false ;
15611 PyObject * obj0 = 0 ;
15612 char * kwnames[] = {
15613 (char *) "str", NULL
15614 };
15615
15616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15617 {
15618 arg1 = wxString_in_helper(obj0);
15619 if (arg1 == NULL) SWIG_fail;
15620 temp1 = true;
15621 }
15622 {
15623 PyThreadState* __tstate = wxPyBeginAllowThreads();
15624 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15625 wxPyEndAllowThreads(__tstate);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 {
15629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15630 }
15631 {
15632 if (temp1)
15633 delete arg1;
15634 }
15635 return resultobj;
15636fail:
15637 {
15638 if (temp1)
15639 delete arg1;
15640 }
15641 return NULL;
15642}
15643
15644
0085ce49
RD
15645SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15646 PyObject *obj;
15647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15648 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15649 return SWIG_Py_Void();
d14a1e28
RD
15650}
15651
0085ce49
RD
15652SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15653 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15654}
15655
0085ce49
RD
15656SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15657 PyObject *resultobj = 0;
15658 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15659 int arg2 ;
15660 void *argp1 = 0 ;
15661 int res1 = 0 ;
15662 int val2 ;
15663 int ecode2 = 0 ;
15664 PyObject *swig_obj[2] ;
15665
15666 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15668 if (!SWIG_IsOK(res1)) {
15669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15670 }
15671 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15672 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15673 if (!SWIG_IsOK(ecode2)) {
15674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15675 }
15676 arg2 = static_cast< int >(val2);
15677 if (arg1) (arg1)->Language = arg2;
15678
15679 resultobj = SWIG_Py_Void();
15680 return resultobj;
15681fail:
15682 return NULL;
d14a1e28
RD
15683}
15684
15685
0085ce49
RD
15686SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15687 PyObject *resultobj = 0;
15688 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15689 int result;
15690 void *argp1 = 0 ;
15691 int res1 = 0 ;
15692 PyObject *swig_obj[1] ;
15693
15694 if (!args) SWIG_fail;
15695 swig_obj[0] = args;
15696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15697 if (!SWIG_IsOK(res1)) {
15698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15699 }
15700 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15701 result = (int) ((arg1)->Language);
15702 resultobj = SWIG_From_int(static_cast< int >(result));
15703 return resultobj;
15704fail:
15705 return NULL;
15706}
15707
15708
15709SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15710 PyObject *resultobj = 0;
15711 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15712 wxString *arg2 = (wxString *) 0 ;
15713 void *argp1 = 0 ;
15714 int res1 = 0 ;
15715 bool temp2 = false ;
15716 PyObject *swig_obj[2] ;
15717
15718 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15720 if (!SWIG_IsOK(res1)) {
15721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15722 }
15723 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15724 {
15725 arg2 = wxString_in_helper(swig_obj[1]);
15726 if (arg2 == NULL) SWIG_fail;
15727 temp2 = true;
15728 }
15729 if (arg1) (arg1)->CanonicalName = *arg2;
15730
15731 resultobj = SWIG_Py_Void();
15732 {
15733 if (temp2)
15734 delete arg2;
15735 }
15736 return resultobj;
15737fail:
15738 {
15739 if (temp2)
15740 delete arg2;
15741 }
15742 return NULL;
d14a1e28
RD
15743}
15744
15745
0085ce49
RD
15746SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15747 PyObject *resultobj = 0;
15748 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15749 wxString *result = 0 ;
15750 void *argp1 = 0 ;
15751 int res1 = 0 ;
15752 PyObject *swig_obj[1] ;
15753
15754 if (!args) SWIG_fail;
15755 swig_obj[0] = args;
15756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15757 if (!SWIG_IsOK(res1)) {
15758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15759 }
15760 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15761 result = (wxString *)& ((arg1)->CanonicalName);
15762 {
093d3ff1 15763#if wxUSE_UNICODE
0085ce49 15764 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15765#else
0085ce49 15766 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15767#endif
0085ce49
RD
15768 }
15769 return resultobj;
15770fail:
15771 return NULL;
d14a1e28
RD
15772}
15773
15774
0085ce49
RD
15775SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15776 PyObject *resultobj = 0;
15777 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15778 wxString *arg2 = (wxString *) 0 ;
15779 void *argp1 = 0 ;
15780 int res1 = 0 ;
15781 bool temp2 = false ;
15782 PyObject *swig_obj[2] ;
15783
15784 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15786 if (!SWIG_IsOK(res1)) {
15787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15788 }
15789 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15790 {
15791 arg2 = wxString_in_helper(swig_obj[1]);
15792 if (arg2 == NULL) SWIG_fail;
15793 temp2 = true;
15794 }
15795 if (arg1) (arg1)->Description = *arg2;
15796
15797 resultobj = SWIG_Py_Void();
15798 {
15799 if (temp2)
15800 delete arg2;
15801 }
15802 return resultobj;
15803fail:
15804 {
15805 if (temp2)
15806 delete arg2;
15807 }
15808 return NULL;
d14a1e28
RD
15809}
15810
15811
0085ce49
RD
15812SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15813 PyObject *resultobj = 0;
15814 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15815 wxString *result = 0 ;
15816 void *argp1 = 0 ;
15817 int res1 = 0 ;
15818 PyObject *swig_obj[1] ;
15819
15820 if (!args) SWIG_fail;
15821 swig_obj[0] = args;
15822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15823 if (!SWIG_IsOK(res1)) {
15824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15825 }
15826 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15827 result = (wxString *)& ((arg1)->Description);
15828 {
d14a1e28 15829#if wxUSE_UNICODE
0085ce49 15830 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15831#else
0085ce49 15832 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15833#endif
0085ce49
RD
15834 }
15835 return resultobj;
15836fail:
15837 return NULL;
15838}
15839
15840
15841SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15842 PyObject *obj;
15843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15844 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15845 return SWIG_Py_Void();
15846}
15847
15848SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15849 PyObject *resultobj = 0;
15850 int arg1 = (int) -1 ;
15851 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15852 wxLocale *result = 0 ;
15853 int val1 ;
15854 int ecode1 = 0 ;
15855 int val2 ;
15856 int ecode2 = 0 ;
15857 PyObject * obj0 = 0 ;
15858 PyObject * obj1 = 0 ;
15859 char * kwnames[] = {
15860 (char *) "language",(char *) "flags", NULL
15861 };
15862
15863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15864 if (obj0) {
15865 ecode1 = SWIG_AsVal_int(obj0, &val1);
15866 if (!SWIG_IsOK(ecode1)) {
15867 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15868 }
15869 arg1 = static_cast< int >(val1);
15870 }
15871 if (obj1) {
15872 ecode2 = SWIG_AsVal_int(obj1, &val2);
15873 if (!SWIG_IsOK(ecode2)) {
15874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15875 }
15876 arg2 = static_cast< int >(val2);
15877 }
15878 {
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 result = (wxLocale *)new_wxLocale(arg1,arg2);
15881 wxPyEndAllowThreads(__tstate);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 }
15884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15885 return resultobj;
15886fail:
15887 return NULL;
d14a1e28
RD
15888}
15889
15890
0085ce49
RD
15891SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15892 PyObject *resultobj = 0;
15893 wxLocale *arg1 = (wxLocale *) 0 ;
15894 void *argp1 = 0 ;
15895 int res1 = 0 ;
15896 PyObject *swig_obj[1] ;
15897
15898 if (!args) SWIG_fail;
15899 swig_obj[0] = args;
15900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15901 if (!SWIG_IsOK(res1)) {
15902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15903 }
15904 arg1 = reinterpret_cast< wxLocale * >(argp1);
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 delete arg1;
d14a1e28 15908
0085ce49
RD
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_Py_Void();
15913 return resultobj;
15914fail:
15915 return NULL;
15916}
15917
15918
15919SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15920 PyObject *resultobj = 0;
15921 wxLocale *arg1 = (wxLocale *) 0 ;
15922 wxString *arg2 = 0 ;
15923 wxString const &arg3_defvalue = wxPyEmptyString ;
15924 wxString *arg3 = (wxString *) &arg3_defvalue ;
15925 wxString const &arg4_defvalue = wxPyEmptyString ;
15926 wxString *arg4 = (wxString *) &arg4_defvalue ;
15927 bool arg5 = (bool) true ;
15928 bool arg6 = (bool) false ;
15929 bool result;
15930 void *argp1 = 0 ;
15931 int res1 = 0 ;
15932 bool temp2 = false ;
15933 bool temp3 = false ;
15934 bool temp4 = false ;
15935 bool val5 ;
15936 int ecode5 = 0 ;
15937 bool val6 ;
15938 int ecode6 = 0 ;
15939 PyObject * obj0 = 0 ;
15940 PyObject * obj1 = 0 ;
15941 PyObject * obj2 = 0 ;
15942 PyObject * obj3 = 0 ;
15943 PyObject * obj4 = 0 ;
15944 PyObject * obj5 = 0 ;
15945 char * kwnames[] = {
15946 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15947 };
15948
15949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15951 if (!SWIG_IsOK(res1)) {
15952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15953 }
15954 arg1 = reinterpret_cast< wxLocale * >(argp1);
15955 {
15956 arg2 = wxString_in_helper(obj1);
15957 if (arg2 == NULL) SWIG_fail;
15958 temp2 = true;
15959 }
15960 if (obj2) {
d14a1e28 15961 {
0085ce49
RD
15962 arg3 = wxString_in_helper(obj2);
15963 if (arg3 == NULL) SWIG_fail;
15964 temp3 = true;
d14a1e28 15965 }
0085ce49
RD
15966 }
15967 if (obj3) {
093d3ff1 15968 {
0085ce49
RD
15969 arg4 = wxString_in_helper(obj3);
15970 if (arg4 == NULL) SWIG_fail;
15971 temp4 = true;
093d3ff1 15972 }
0085ce49
RD
15973 }
15974 if (obj4) {
15975 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15976 if (!SWIG_IsOK(ecode5)) {
15977 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15978 }
15979 arg5 = static_cast< bool >(val5);
15980 }
15981 if (obj5) {
15982 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15983 if (!SWIG_IsOK(ecode6)) {
15984 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15985 }
15986 arg6 = static_cast< bool >(val6);
15987 }
15988 {
15989 PyThreadState* __tstate = wxPyBeginAllowThreads();
15990 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 {
15995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15996 }
15997 {
15998 if (temp2)
15999 delete arg2;
16000 }
16001 {
16002 if (temp3)
16003 delete arg3;
16004 }
16005 {
16006 if (temp4)
16007 delete arg4;
16008 }
16009 return resultobj;
16010fail:
16011 {
16012 if (temp2)
16013 delete arg2;
16014 }
16015 {
16016 if (temp3)
16017 delete arg3;
16018 }
16019 {
16020 if (temp4)
16021 delete arg4;
16022 }
16023 return NULL;
16024}
16025
16026
16027SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16028 PyObject *resultobj = 0;
16029 wxLocale *arg1 = (wxLocale *) 0 ;
16030 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16031 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16032 bool result;
16033 void *argp1 = 0 ;
16034 int res1 = 0 ;
16035 int val2 ;
16036 int ecode2 = 0 ;
16037 int val3 ;
16038 int ecode3 = 0 ;
16039 PyObject * obj0 = 0 ;
16040 PyObject * obj1 = 0 ;
16041 PyObject * obj2 = 0 ;
16042 char * kwnames[] = {
16043 (char *) "self",(char *) "language",(char *) "flags", NULL
16044 };
16045
16046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16048 if (!SWIG_IsOK(res1)) {
16049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16050 }
16051 arg1 = reinterpret_cast< wxLocale * >(argp1);
16052 if (obj1) {
16053 ecode2 = SWIG_AsVal_int(obj1, &val2);
16054 if (!SWIG_IsOK(ecode2)) {
16055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16056 }
16057 arg2 = static_cast< int >(val2);
16058 }
16059 if (obj2) {
16060 ecode3 = SWIG_AsVal_int(obj2, &val3);
16061 if (!SWIG_IsOK(ecode3)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16063 }
16064 arg3 = static_cast< int >(val3);
16065 }
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16069 wxPyEndAllowThreads(__tstate);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 {
16073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16074 }
16075 return resultobj;
16076fail:
16077 return NULL;
093d3ff1
RD
16078}
16079
16080
0085ce49
RD
16081SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16082 PyObject *resultobj = 0;
16083 int result;
16084
16085 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (int)wxLocale::GetSystemLanguage();
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_From_int(static_cast< int >(result));
16093 return resultobj;
16094fail:
16095 return NULL;
d14a1e28
RD
16096}
16097
16098
0085ce49
RD
16099SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16100 PyObject *resultobj = 0;
16101 wxFontEncoding result;
16102
16103 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = SWIG_From_int(static_cast< int >(result));
16111 return resultobj;
16112fail:
16113 return NULL;
d14a1e28
RD
16114}
16115
16116
0085ce49
RD
16117SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16118 PyObject *resultobj = 0;
16119 wxString result;
16120
16121 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 result = wxLocale::GetSystemEncodingName();
16125 wxPyEndAllowThreads(__tstate);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 {
d14a1e28 16129#if wxUSE_UNICODE
0085ce49 16130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 16131#else
0085ce49 16132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 16133#endif
0085ce49
RD
16134 }
16135 return resultobj;
16136fail:
16137 return NULL;
d14a1e28
RD
16138}
16139
16140
0085ce49
RD
16141SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 PyObject *resultobj = 0;
16143 wxLocale *arg1 = (wxLocale *) 0 ;
16144 bool result;
16145 void *argp1 = 0 ;
16146 int res1 = 0 ;
16147 PyObject *swig_obj[1] ;
16148
16149 if (!args) SWIG_fail;
16150 swig_obj[0] = args;
16151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16152 if (!SWIG_IsOK(res1)) {
16153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16154 }
16155 arg1 = reinterpret_cast< wxLocale * >(argp1);
16156 {
16157 PyThreadState* __tstate = wxPyBeginAllowThreads();
16158 result = (bool)((wxLocale const *)arg1)->IsOk();
16159 wxPyEndAllowThreads(__tstate);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 {
16163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16164 }
16165 return resultobj;
16166fail:
16167 return NULL;
093d3ff1 16168}
0085ce49
RD
16169
16170
16171SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16172 PyObject *resultobj = 0;
16173 wxLocale *arg1 = (wxLocale *) 0 ;
16174 wxString result;
16175 void *argp1 = 0 ;
16176 int res1 = 0 ;
16177 PyObject *swig_obj[1] ;
16178
16179 if (!args) SWIG_fail;
16180 swig_obj[0] = args;
16181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16182 if (!SWIG_IsOK(res1)) {
16183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16184 }
16185 arg1 = reinterpret_cast< wxLocale * >(argp1);
16186 {
16187 PyThreadState* __tstate = wxPyBeginAllowThreads();
16188 result = ((wxLocale const *)arg1)->GetLocale();
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 {
16193#if wxUSE_UNICODE
16194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16195#else
16196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16197#endif
16198 }
16199 return resultobj;
16200fail:
16201 return NULL;
d14a1e28
RD
16202}
16203
16204
0085ce49
RD
16205SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16206 PyObject *resultobj = 0;
16207 wxLocale *arg1 = (wxLocale *) 0 ;
16208 int result;
16209 void *argp1 = 0 ;
16210 int res1 = 0 ;
16211 PyObject *swig_obj[1] ;
16212
16213 if (!args) SWIG_fail;
16214 swig_obj[0] = args;
16215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16216 if (!SWIG_IsOK(res1)) {
16217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16218 }
16219 arg1 = reinterpret_cast< wxLocale * >(argp1);
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (int)((wxLocale const *)arg1)->GetLanguage();
16223 wxPyEndAllowThreads(__tstate);
16224 if (PyErr_Occurred()) SWIG_fail;
16225 }
16226 resultobj = SWIG_From_int(static_cast< int >(result));
16227 return resultobj;
16228fail:
16229 return NULL;
d14a1e28
RD
16230}
16231
16232
0085ce49
RD
16233SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16234 PyObject *resultobj = 0;
16235 wxLocale *arg1 = (wxLocale *) 0 ;
16236 wxString result;
16237 void *argp1 = 0 ;
16238 int res1 = 0 ;
16239 PyObject *swig_obj[1] ;
16240
16241 if (!args) SWIG_fail;
16242 swig_obj[0] = args;
16243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = ((wxLocale const *)arg1)->GetSysName();
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 {
16255#if wxUSE_UNICODE
16256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16257#else
16258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16259#endif
16260 }
16261 return resultobj;
16262fail:
16263 return NULL;
d14a1e28
RD
16264}
16265
16266
0085ce49
RD
16267SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16268 PyObject *resultobj = 0;
16269 wxLocale *arg1 = (wxLocale *) 0 ;
16270 wxString result;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 PyObject *swig_obj[1] ;
16274
16275 if (!args) SWIG_fail;
16276 swig_obj[0] = args;
16277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16280 }
16281 arg1 = reinterpret_cast< wxLocale * >(argp1);
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = ((wxLocale const *)arg1)->GetCanonicalName();
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 {
16289#if wxUSE_UNICODE
16290 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16291#else
16292 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16293#endif
16294 }
16295 return resultobj;
16296fail:
16297 return NULL;
d14a1e28
RD
16298}
16299
16300
0085ce49
RD
16301SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16302 PyObject *resultobj = 0;
16303 wxString *arg1 = 0 ;
16304 bool temp1 = false ;
16305 PyObject * obj0 = 0 ;
16306 char * kwnames[] = {
16307 (char *) "prefix", NULL
16308 };
16309
16310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16311 {
16312 arg1 = wxString_in_helper(obj0);
16313 if (arg1 == NULL) SWIG_fail;
16314 temp1 = true;
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 resultobj = SWIG_Py_Void();
16323 {
16324 if (temp1)
16325 delete arg1;
16326 }
16327 return resultobj;
16328fail:
16329 {
16330 if (temp1)
16331 delete arg1;
16332 }
16333 return NULL;
16334}
16335
16336
16337SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16338 PyObject *resultobj = 0;
16339 wxLocale *arg1 = (wxLocale *) 0 ;
16340 wxString *arg2 = 0 ;
16341 bool result;
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 bool temp2 = false ;
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 char * kwnames[] = {
16348 (char *) "self",(char *) "szDomain", NULL
16349 };
16350
16351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16353 if (!SWIG_IsOK(res1)) {
16354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16355 }
16356 arg1 = reinterpret_cast< wxLocale * >(argp1);
16357 {
16358 arg2 = wxString_in_helper(obj1);
16359 if (arg2 == NULL) SWIG_fail;
16360 temp2 = true;
16361 }
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 {
16369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16370 }
16371 {
16372 if (temp2)
16373 delete arg2;
16374 }
16375 return resultobj;
16376fail:
16377 {
16378 if (temp2)
16379 delete arg2;
16380 }
16381 return NULL;
16382}
16383
16384
33d6fd3b
RD
16385SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj = 0;
16387 int arg1 ;
16388 bool result;
16389 int val1 ;
16390 int ecode1 = 0 ;
16391 PyObject * obj0 = 0 ;
16392 char * kwnames[] = {
16393 (char *) "lang", NULL
16394 };
16395
16396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16397 ecode1 = SWIG_AsVal_int(obj0, &val1);
16398 if (!SWIG_IsOK(ecode1)) {
16399 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16400 }
16401 arg1 = static_cast< int >(val1);
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (bool)wxLocale::IsAvailable(arg1);
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 {
16409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16410 }
16411 return resultobj;
16412fail:
16413 return NULL;
16414}
16415
16416
0085ce49
RD
16417SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj = 0;
16419 wxLocale *arg1 = (wxLocale *) 0 ;
16420 wxString *arg2 = 0 ;
16421 bool result;
16422 void *argp1 = 0 ;
16423 int res1 = 0 ;
16424 bool temp2 = false ;
16425 PyObject * obj0 = 0 ;
16426 PyObject * obj1 = 0 ;
16427 char * kwnames[] = {
16428 (char *) "self",(char *) "szDomain", NULL
16429 };
16430
16431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16433 if (!SWIG_IsOK(res1)) {
16434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16435 }
16436 arg1 = reinterpret_cast< wxLocale * >(argp1);
16437 {
16438 arg2 = wxString_in_helper(obj1);
16439 if (arg2 == NULL) SWIG_fail;
16440 temp2 = true;
16441 }
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 {
16449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16450 }
16451 {
16452 if (temp2)
16453 delete arg2;
16454 }
16455 return resultobj;
16456fail:
16457 {
16458 if (temp2)
16459 delete arg2;
16460 }
16461 return NULL;
d14a1e28
RD
16462}
16463
16464
0085ce49
RD
16465SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16466 PyObject *resultobj = 0;
16467 int arg1 ;
16468 wxLanguageInfo *result = 0 ;
16469 int val1 ;
16470 int ecode1 = 0 ;
16471 PyObject * obj0 = 0 ;
16472 char * kwnames[] = {
16473 (char *) "lang", NULL
16474 };
16475
16476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16477 ecode1 = SWIG_AsVal_int(obj0, &val1);
16478 if (!SWIG_IsOK(ecode1)) {
16479 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16480 }
16481 arg1 = static_cast< int >(val1);
16482 {
16483 PyThreadState* __tstate = wxPyBeginAllowThreads();
16484 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16485 wxPyEndAllowThreads(__tstate);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 }
16488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16489 return resultobj;
16490fail:
16491 return NULL;
16492}
16493
16494
16495SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj = 0;
16497 int arg1 ;
16498 wxString result;
16499 int val1 ;
16500 int ecode1 = 0 ;
16501 PyObject * obj0 = 0 ;
16502 char * kwnames[] = {
16503 (char *) "lang", NULL
16504 };
16505
16506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16507 ecode1 = SWIG_AsVal_int(obj0, &val1);
16508 if (!SWIG_IsOK(ecode1)) {
16509 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16510 }
16511 arg1 = static_cast< int >(val1);
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 result = wxLocale::GetLanguageName(arg1);
16515 wxPyEndAllowThreads(__tstate);
16516 if (PyErr_Occurred()) SWIG_fail;
16517 }
16518 {
16519#if wxUSE_UNICODE
16520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16521#else
16522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16523#endif
16524 }
16525 return resultobj;
16526fail:
16527 return NULL;
d14a1e28
RD
16528}
16529
16530
0085ce49
RD
16531SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16532 PyObject *resultobj = 0;
16533 wxString *arg1 = 0 ;
16534 wxLanguageInfo *result = 0 ;
16535 bool temp1 = false ;
16536 PyObject * obj0 = 0 ;
16537 char * kwnames[] = {
16538 (char *) "locale", NULL
16539 };
16540
16541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16542 {
16543 arg1 = wxString_in_helper(obj0);
16544 if (arg1 == NULL) SWIG_fail;
16545 temp1 = true;
16546 }
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16549 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16550 wxPyEndAllowThreads(__tstate);
16551 if (PyErr_Occurred()) SWIG_fail;
16552 }
16553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16554 {
16555 if (temp1)
16556 delete arg1;
16557 }
16558 return resultobj;
16559fail:
16560 {
16561 if (temp1)
16562 delete arg1;
16563 }
16564 return NULL;
16565}
16566
16567
16568SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16569 PyObject *resultobj = 0;
16570 wxLanguageInfo *arg1 = 0 ;
16571 void *argp1 = 0 ;
16572 int res1 = 0 ;
16573 PyObject * obj0 = 0 ;
16574 char * kwnames[] = {
16575 (char *) "info", NULL
16576 };
16577
16578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16579 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16580 if (!SWIG_IsOK(res1)) {
16581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16582 }
16583 if (!argp1) {
16584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16585 }
16586 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16590 wxPyEndAllowThreads(__tstate);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 }
16593 resultobj = SWIG_Py_Void();
16594 return resultobj;
16595fail:
16596 return NULL;
16597}
16598
16599
16600SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16601 PyObject *resultobj = 0;
16602 wxLocale *arg1 = (wxLocale *) 0 ;
16603 wxString *arg2 = 0 ;
16604 wxString const &arg3_defvalue = wxPyEmptyString ;
16605 wxString *arg3 = (wxString *) &arg3_defvalue ;
16606 wxString result;
16607 void *argp1 = 0 ;
16608 int res1 = 0 ;
16609 bool temp2 = false ;
16610 bool temp3 = false ;
16611 PyObject * obj0 = 0 ;
16612 PyObject * obj1 = 0 ;
16613 PyObject * obj2 = 0 ;
16614 char * kwnames[] = {
16615 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16616 };
16617
16618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16620 if (!SWIG_IsOK(res1)) {
16621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16622 }
16623 arg1 = reinterpret_cast< wxLocale * >(argp1);
16624 {
16625 arg2 = wxString_in_helper(obj1);
16626 if (arg2 == NULL) SWIG_fail;
16627 temp2 = true;
16628 }
16629 if (obj2) {
16630 {
16631 arg3 = wxString_in_helper(obj2);
16632 if (arg3 == NULL) SWIG_fail;
16633 temp3 = true;
16634 }
16635 }
16636 {
16637 PyThreadState* __tstate = wxPyBeginAllowThreads();
16638 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643#if wxUSE_UNICODE
16644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16645#else
16646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16647#endif
16648 }
16649 {
16650 if (temp2)
16651 delete arg2;
16652 }
16653 {
16654 if (temp3)
16655 delete arg3;
16656 }
16657 return resultobj;
16658fail:
16659 {
16660 if (temp2)
16661 delete arg2;
16662 }
16663 {
16664 if (temp3)
16665 delete arg3;
16666 }
16667 return NULL;
16668}
16669
16670
16671SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16672 PyObject *resultobj = 0;
16673 wxLocale *arg1 = (wxLocale *) 0 ;
16674 wxString *result = 0 ;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 PyObject *swig_obj[1] ;
16678
16679 if (!args) SWIG_fail;
16680 swig_obj[0] = args;
16681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16682 if (!SWIG_IsOK(res1)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16684 }
16685 arg1 = reinterpret_cast< wxLocale * >(argp1);
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 {
16689 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16690 result = (wxString *) &_result_ref;
16691 }
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 {
16696#if wxUSE_UNICODE
16697 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16698#else
16699 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16700#endif
16701 }
16702 return resultobj;
16703fail:
16704 return NULL;
16705}
16706
16707
16708SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16709 PyObject *obj;
16710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16711 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16712 return SWIG_Py_Void();
16713}
16714
16715SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16716 return SWIG_Python_InitShadowInstance(args);
16717}
16718
16719SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16720 PyObject *resultobj = 0;
16721 int arg1 = (int) -1 ;
16722 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16723 wxPyLocale *result = 0 ;
16724 int val1 ;
16725 int ecode1 = 0 ;
16726 int val2 ;
16727 int ecode2 = 0 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 char * kwnames[] = {
16731 (char *) "language",(char *) "flags", NULL
16732 };
16733
16734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16735 if (obj0) {
16736 ecode1 = SWIG_AsVal_int(obj0, &val1);
16737 if (!SWIG_IsOK(ecode1)) {
16738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16739 }
16740 arg1 = static_cast< int >(val1);
16741 }
16742 if (obj1) {
16743 ecode2 = SWIG_AsVal_int(obj1, &val2);
16744 if (!SWIG_IsOK(ecode2)) {
16745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16746 }
16747 arg2 = static_cast< int >(val2);
16748 }
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16756 return resultobj;
16757fail:
16758 return NULL;
16759}
16760
16761
16762SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16763 PyObject *resultobj = 0;
16764 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16765 void *argp1 = 0 ;
16766 int res1 = 0 ;
16767 PyObject *swig_obj[1] ;
16768
16769 if (!args) SWIG_fail;
16770 swig_obj[0] = args;
16771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16774 }
16775 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16776 {
16777 PyThreadState* __tstate = wxPyBeginAllowThreads();
16778 delete arg1;
16779
0085ce49
RD
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
fc46b7f3 16783 resultobj = SWIG_Py_Void();
0085ce49
RD
16784 return resultobj;
16785fail:
0085ce49 16786 return NULL;
d14a1e28
RD
16787}
16788
16789
fc46b7f3 16790SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16791 PyObject *resultobj = 0;
fc46b7f3
RD
16792 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16793 PyObject *arg2 = (PyObject *) 0 ;
16794 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16795 void *argp1 = 0 ;
16796 int res1 = 0 ;
16797 PyObject * obj0 = 0 ;
fc46b7f3
RD
16798 PyObject * obj1 = 0 ;
16799 PyObject * obj2 = 0 ;
0085ce49 16800 char * kwnames[] = {
fc46b7f3 16801 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16802 };
16803
fc46b7f3
RD
16804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16806 if (!SWIG_IsOK(res1)) {
fc46b7f3 16807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16808 }
fc46b7f3
RD
16809 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16810 arg2 = obj1;
16811 arg3 = obj2;
0085ce49
RD
16812 {
16813 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16814 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16815 wxPyEndAllowThreads(__tstate);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 resultobj = SWIG_Py_Void();
16819 return resultobj;
16820fail:
16821 return NULL;
16822}
16823
16824
fc46b7f3 16825SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16826 PyObject *resultobj = 0;
fc46b7f3
RD
16827 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16828 wxChar *arg2 = (wxChar *) 0 ;
16829 wxChar *arg3 = (wxChar *) NULL ;
16830 wxChar *result = 0 ;
0085ce49
RD
16831 void *argp1 = 0 ;
16832 int res1 = 0 ;
fc46b7f3
RD
16833 void *argp2 = 0 ;
16834 int res2 = 0 ;
16835 void *argp3 = 0 ;
16836 int res3 = 0 ;
0085ce49
RD
16837 PyObject * obj0 = 0 ;
16838 PyObject * obj1 = 0 ;
16839 PyObject * obj2 = 0 ;
16840 char * kwnames[] = {
16841 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16842 };
16843
fc46b7f3
RD
16844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16846 if (!SWIG_IsOK(res1)) {
fc46b7f3 16847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16848 }
fc46b7f3
RD
16849 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16851 if (!SWIG_IsOK(res2)) {
16852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16853 }
fc46b7f3 16854 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16855 if (obj2) {
fc46b7f3
RD
16856 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16857 if (!SWIG_IsOK(res3)) {
16858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16859 }
fc46b7f3 16860 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16861 }
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16864 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
fc46b7f3 16868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16869 return resultobj;
16870fail:
0085ce49 16871 return NULL;
b6294124
RD
16872}
16873
16874
fc46b7f3 16875SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16876 PyObject *resultobj = 0;
fc46b7f3
RD
16877 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16878 wxChar *arg2 = (wxChar *) 0 ;
16879 wxChar *arg3 = (wxChar *) 0 ;
16880 size_t arg4 ;
16881 wxChar *arg5 = (wxChar *) NULL ;
16882 wxChar *result = 0 ;
0085ce49
RD
16883 void *argp1 = 0 ;
16884 int res1 = 0 ;
fc46b7f3
RD
16885 void *argp2 = 0 ;
16886 int res2 = 0 ;
16887 void *argp3 = 0 ;
16888 int res3 = 0 ;
16889 size_t val4 ;
16890 int ecode4 = 0 ;
16891 void *argp5 = 0 ;
16892 int res5 = 0 ;
16893 PyObject * obj0 = 0 ;
16894 PyObject * obj1 = 0 ;
16895 PyObject * obj2 = 0 ;
16896 PyObject * obj3 = 0 ;
16897 PyObject * obj4 = 0 ;
16898 char * kwnames[] = {
16899 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16900 };
0085ce49 16901
fc46b7f3
RD
16902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16904 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16906 }
16907 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16909 if (!SWIG_IsOK(res2)) {
16910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16911 }
16912 arg2 = reinterpret_cast< wxChar * >(argp2);
16913 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16914 if (!SWIG_IsOK(res3)) {
16915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16916 }
16917 arg3 = reinterpret_cast< wxChar * >(argp3);
16918 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16919 if (!SWIG_IsOK(ecode4)) {
16920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16921 }
16922 arg4 = static_cast< size_t >(val4);
16923 if (obj4) {
16924 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16925 if (!SWIG_IsOK(res5)) {
16926 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16927 }
16928 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16929 }
0085ce49
RD
16930 {
16931 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16932 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
fc46b7f3 16936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16937 return resultobj;
16938fail:
16939 return NULL;
d14a1e28
RD
16940}
16941
16942
fc46b7f3 16943SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16944 PyObject *obj;
16945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16946 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16947 return SWIG_Py_Void();
d14a1e28
RD
16948}
16949
fc46b7f3 16950SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16951 return SWIG_Python_InitShadowInstance(args);
16952}
d14a1e28 16953
0085ce49
RD
16954SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16955 PyObject *resultobj = 0;
16956 wxLocale *result = 0 ;
16957
16958 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16959 {
16960 PyThreadState* __tstate = wxPyBeginAllowThreads();
16961 result = (wxLocale *)wxGetLocale();
16962 wxPyEndAllowThreads(__tstate);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 }
16965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16966 return resultobj;
16967fail:
16968 return NULL;
d14a1e28
RD
16969}
16970
16971
0085ce49
RD
16972SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16973 PyObject *resultobj = 0;
16974 wxString *arg1 = 0 ;
16975 wxString result;
16976 bool temp1 = false ;
16977
16978 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16979 {
16980 arg1 = wxString_in_helper(swig_obj[0]);
16981 if (arg1 == NULL) SWIG_fail;
16982 temp1 = true;
16983 }
16984 {
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = wxGetTranslation((wxString const &)*arg1);
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 {
093d3ff1 16991#if wxUSE_UNICODE
0085ce49 16992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16993#else
0085ce49 16994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16995#endif
0085ce49
RD
16996 }
16997 {
16998 if (temp1)
16999 delete arg1;
17000 }
17001 return resultobj;
17002fail:
17003 {
17004 if (temp1)
17005 delete arg1;
17006 }
17007 return NULL;
b6294124
RD
17008}
17009
17010
0085ce49 17011SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17012 PyObject *resultobj = 0;
17013 wxString *arg1 = 0 ;
17014 wxString *arg2 = 0 ;
17015 wxString result;
17016 bool temp1 = false ;
17017 bool temp2 = false ;
17018
17019 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17020 {
17021 arg1 = wxString_in_helper(swig_obj[0]);
17022 if (arg1 == NULL) SWIG_fail;
17023 temp1 = true;
17024 }
17025 {
17026 arg2 = wxString_in_helper(swig_obj[1]);
17027 if (arg2 == NULL) SWIG_fail;
17028 temp2 = true;
17029 }
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 {
17037#if wxUSE_UNICODE
17038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17039#else
17040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17041#endif
17042 }
17043 {
17044 if (temp1)
17045 delete arg1;
17046 }
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 return resultobj;
17052fail:
17053 {
17054 if (temp1)
17055 delete arg1;
17056 }
17057 {
17058 if (temp2)
17059 delete arg2;
17060 }
17061 return NULL;
17062}
17063
17064
17065SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
17066 PyObject *resultobj = 0;
17067 wxString *arg1 = 0 ;
17068 wxString *arg2 = 0 ;
17069 size_t arg3 ;
17070 wxString result;
17071 bool temp1 = false ;
17072 bool temp2 = false ;
17073 size_t val3 ;
17074 int ecode3 = 0 ;
17075
17076 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17077 {
17078 arg1 = wxString_in_helper(swig_obj[0]);
17079 if (arg1 == NULL) SWIG_fail;
17080 temp1 = true;
17081 }
17082 {
17083 arg2 = wxString_in_helper(swig_obj[1]);
17084 if (arg2 == NULL) SWIG_fail;
17085 temp2 = true;
17086 }
17087 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17088 if (!SWIG_IsOK(ecode3)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17090 }
17091 arg3 = static_cast< size_t >(val3);
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099#if wxUSE_UNICODE
17100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17101#else
17102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17103#endif
17104 }
17105 {
17106 if (temp1)
17107 delete arg1;
17108 }
17109 {
17110 if (temp2)
17111 delete arg2;
17112 }
17113 return resultobj;
17114fail:
17115 {
17116 if (temp1)
17117 delete arg1;
17118 }
17119 {
17120 if (temp2)
17121 delete arg2;
17122 }
17123 return NULL;
d14a1e28
RD
17124}
17125
17126
fc46b7f3
RD
17127SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17128 PyObject *resultobj = 0;
17129 wxString *arg1 = 0 ;
17130 wxString *arg2 = 0 ;
17131 size_t arg3 ;
17132 wxString *arg4 = 0 ;
17133 wxString result;
17134 bool temp1 = false ;
17135 bool temp2 = false ;
17136 size_t val3 ;
17137 int ecode3 = 0 ;
17138 bool temp4 = false ;
17139
17140 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17141 {
17142 arg1 = wxString_in_helper(swig_obj[0]);
17143 if (arg1 == NULL) SWIG_fail;
17144 temp1 = true;
17145 }
17146 {
17147 arg2 = wxString_in_helper(swig_obj[1]);
17148 if (arg2 == NULL) SWIG_fail;
17149 temp2 = true;
17150 }
17151 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17152 if (!SWIG_IsOK(ecode3)) {
17153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17154 }
17155 arg3 = static_cast< size_t >(val3);
17156 {
17157 arg4 = wxString_in_helper(swig_obj[3]);
17158 if (arg4 == NULL) SWIG_fail;
17159 temp4 = true;
17160 }
17161 {
17162 PyThreadState* __tstate = wxPyBeginAllowThreads();
17163 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17164 wxPyEndAllowThreads(__tstate);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 {
17168#if wxUSE_UNICODE
17169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17170#else
17171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17172#endif
17173 }
17174 {
17175 if (temp1)
17176 delete arg1;
17177 }
17178 {
17179 if (temp2)
17180 delete arg2;
17181 }
17182 {
17183 if (temp4)
17184 delete arg4;
17185 }
17186 return resultobj;
17187fail:
17188 {
17189 if (temp1)
17190 delete arg1;
17191 }
17192 {
17193 if (temp2)
17194 delete arg2;
17195 }
17196 {
17197 if (temp4)
17198 delete arg4;
17199 }
17200 return NULL;
17201}
17202
17203
0085ce49
RD
17204SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17205 int argc;
fc46b7f3 17206 PyObject *argv[5];
0085ce49 17207
fc46b7f3 17208 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
17209 --argc;
17210 if (argc == 1) {
17211 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17212 }
fc46b7f3 17213 if (argc == 2) {
0085ce49
RD
17214 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17215 }
fc46b7f3
RD
17216 if (argc == 3) {
17217 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17218 }
17219 if (argc == 4) {
17220 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17221 }
0085ce49
RD
17222
17223fail:
17224 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17225 return NULL;
d14a1e28
RD
17226}
17227
17228
0085ce49
RD
17229SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17230 PyObject *resultobj = 0;
17231 wxEncodingConverter *result = 0 ;
17232
17233 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 result = (wxEncodingConverter *)new wxEncodingConverter();
17237 wxPyEndAllowThreads(__tstate);
17238 if (PyErr_Occurred()) SWIG_fail;
17239 }
17240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17241 return resultobj;
17242fail:
17243 return NULL;
d14a1e28
RD
17244}
17245
17246
0085ce49
RD
17247SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17248 PyObject *resultobj = 0;
17249 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17250 void *argp1 = 0 ;
17251 int res1 = 0 ;
17252 PyObject *swig_obj[1] ;
17253
17254 if (!args) SWIG_fail;
17255 swig_obj[0] = args;
17256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17257 if (!SWIG_IsOK(res1)) {
17258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17259 }
17260 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 delete arg1;
d14a1e28 17264
0085ce49
RD
17265 wxPyEndAllowThreads(__tstate);
17266 if (PyErr_Occurred()) SWIG_fail;
17267 }
17268 resultobj = SWIG_Py_Void();
17269 return resultobj;
17270fail:
17271 return NULL;
17272}
17273
17274
17275SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17276 PyObject *resultobj = 0;
17277 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17278 wxFontEncoding arg2 ;
17279 wxFontEncoding arg3 ;
17280 int arg4 = (int) wxCONVERT_STRICT ;
17281 bool result;
17282 void *argp1 = 0 ;
17283 int res1 = 0 ;
17284 int val2 ;
17285 int ecode2 = 0 ;
17286 int val3 ;
17287 int ecode3 = 0 ;
17288 int val4 ;
17289 int ecode4 = 0 ;
17290 PyObject * obj0 = 0 ;
17291 PyObject * obj1 = 0 ;
17292 PyObject * obj2 = 0 ;
17293 PyObject * obj3 = 0 ;
17294 char * kwnames[] = {
17295 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17296 };
17297
17298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17300 if (!SWIG_IsOK(res1)) {
17301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17302 }
17303 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17304 ecode2 = SWIG_AsVal_int(obj1, &val2);
17305 if (!SWIG_IsOK(ecode2)) {
17306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17307 }
17308 arg2 = static_cast< wxFontEncoding >(val2);
17309 ecode3 = SWIG_AsVal_int(obj2, &val3);
17310 if (!SWIG_IsOK(ecode3)) {
17311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17312 }
17313 arg3 = static_cast< wxFontEncoding >(val3);
17314 if (obj3) {
17315 ecode4 = SWIG_AsVal_int(obj3, &val4);
17316 if (!SWIG_IsOK(ecode4)) {
17317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17318 }
17319 arg4 = static_cast< int >(val4);
17320 }
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 {
17328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17329 }
17330 return resultobj;
17331fail:
17332 return NULL;
17333}
17334
17335
17336SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj = 0;
17338 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17339 wxString *arg2 = 0 ;
17340 wxString result;
17341 void *argp1 = 0 ;
17342 int res1 = 0 ;
17343 bool temp2 = false ;
17344 PyObject * obj0 = 0 ;
17345 PyObject * obj1 = 0 ;
17346 char * kwnames[] = {
17347 (char *) "self",(char *) "input", NULL
17348 };
17349
17350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17352 if (!SWIG_IsOK(res1)) {
17353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17354 }
17355 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17356 {
17357 arg2 = wxString_in_helper(obj1);
17358 if (arg2 == NULL) SWIG_fail;
17359 temp2 = true;
17360 }
17361 {
17362 PyThreadState* __tstate = wxPyBeginAllowThreads();
17363 result = (arg1)->Convert((wxString const &)*arg2);
17364 wxPyEndAllowThreads(__tstate);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 {
17368#if wxUSE_UNICODE
17369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17370#else
17371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17372#endif
17373 }
17374 {
17375 if (temp2)
17376 delete arg2;
17377 }
17378 return resultobj;
17379fail:
17380 {
17381 if (temp2)
17382 delete arg2;
17383 }
17384 return NULL;
17385}
17386
17387
17388SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17389 PyObject *resultobj = 0;
17390 wxFontEncoding arg1 ;
17391 int arg2 = (int) wxPLATFORM_CURRENT ;
17392 wxFontEncodingArray result;
17393 int val1 ;
17394 int ecode1 = 0 ;
17395 int val2 ;
17396 int ecode2 = 0 ;
17397 PyObject * obj0 = 0 ;
17398 PyObject * obj1 = 0 ;
17399 char * kwnames[] = {
17400 (char *) "enc",(char *) "platform", NULL
17401 };
17402
17403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17404 ecode1 = SWIG_AsVal_int(obj0, &val1);
17405 if (!SWIG_IsOK(ecode1)) {
17406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17407 }
17408 arg1 = static_cast< wxFontEncoding >(val1);
17409 if (obj1) {
17410 ecode2 = SWIG_AsVal_int(obj1, &val2);
17411 if (!SWIG_IsOK(ecode2)) {
17412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17413 }
17414 arg2 = static_cast< int >(val2);
17415 }
17416 {
17417 PyThreadState* __tstate = wxPyBeginAllowThreads();
17418 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17419 wxPyEndAllowThreads(__tstate);
17420 if (PyErr_Occurred()) SWIG_fail;
17421 }
17422 {
17423 resultobj = PyList_New(0);
17424 for (size_t i=0; i < (&result)->GetCount(); i++) {
17425 PyObject* number = PyInt_FromLong((&result)->Item(i));
17426 PyList_Append(resultobj, number);
17427 Py_DECREF(number);
093d3ff1 17428 }
0085ce49
RD
17429 }
17430 return resultobj;
17431fail:
17432 return NULL;
d14a1e28
RD
17433}
17434
17435
0085ce49
RD
17436SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17437 PyObject *resultobj = 0;
17438 wxFontEncoding arg1 ;
17439 wxFontEncodingArray result;
17440 int val1 ;
17441 int ecode1 = 0 ;
17442 PyObject * obj0 = 0 ;
17443 char * kwnames[] = {
17444 (char *) "enc", NULL
17445 };
17446
17447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17448 ecode1 = SWIG_AsVal_int(obj0, &val1);
17449 if (!SWIG_IsOK(ecode1)) {
17450 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17451 }
17452 arg1 = static_cast< wxFontEncoding >(val1);
17453 {
17454 PyThreadState* __tstate = wxPyBeginAllowThreads();
17455 result = wxEncodingConverter::GetAllEquivalents(arg1);
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 {
17460 resultobj = PyList_New(0);
17461 for (size_t i=0; i < (&result)->GetCount(); i++) {
17462 PyObject* number = PyInt_FromLong((&result)->Item(i));
17463 PyList_Append(resultobj, number);
17464 Py_DECREF(number);
093d3ff1 17465 }
0085ce49
RD
17466 }
17467 return resultobj;
17468fail:
17469 return NULL;
17470}
17471
17472
17473SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj = 0;
17475 wxFontEncoding arg1 ;
17476 wxFontEncoding arg2 ;
17477 bool result;
17478 int val1 ;
17479 int ecode1 = 0 ;
17480 int val2 ;
17481 int ecode2 = 0 ;
17482 PyObject * obj0 = 0 ;
17483 PyObject * obj1 = 0 ;
17484 char * kwnames[] = {
17485 (char *) "encIn",(char *) "encOut", NULL
17486 };
17487
17488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17489 ecode1 = SWIG_AsVal_int(obj0, &val1);
17490 if (!SWIG_IsOK(ecode1)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17492 }
17493 arg1 = static_cast< wxFontEncoding >(val1);
17494 ecode2 = SWIG_AsVal_int(obj1, &val2);
17495 if (!SWIG_IsOK(ecode2)) {
17496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17497 }
17498 arg2 = static_cast< wxFontEncoding >(val2);
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 {
17506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17507 }
17508 return resultobj;
17509fail:
17510 return NULL;
d14a1e28
RD
17511}
17512
17513
0085ce49
RD
17514SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17515 PyObject *obj;
17516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17517 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17518 return SWIG_Py_Void();
d14a1e28
RD
17519}
17520
0085ce49
RD
17521SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17522 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17523}
17524
0085ce49
RD
17525SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17526 PyObject *resultobj = 0;
17527 wxDC *arg1 = (wxDC *) 0 ;
17528 void *argp1 = 0 ;
17529 int res1 = 0 ;
17530 PyObject *swig_obj[1] ;
17531
17532 if (!args) SWIG_fail;
17533 swig_obj[0] = args;
17534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17535 if (!SWIG_IsOK(res1)) {
17536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17537 }
17538 arg1 = reinterpret_cast< wxDC * >(argp1);
17539 {
17540 PyThreadState* __tstate = wxPyBeginAllowThreads();
17541 delete arg1;
d14a1e28 17542
0085ce49
RD
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 resultobj = SWIG_Py_Void();
17547 return resultobj;
17548fail:
17549 return NULL;
17550}
17551
17552
17553SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17554 PyObject *resultobj = 0;
17555 wxDC *arg1 = (wxDC *) 0 ;
17556 int arg2 ;
17557 int arg3 ;
17558 wxColour *arg4 = 0 ;
17559 int arg5 = (int) wxFLOOD_SURFACE ;
17560 bool result;
17561 void *argp1 = 0 ;
17562 int res1 = 0 ;
17563 int val2 ;
17564 int ecode2 = 0 ;
17565 int val3 ;
17566 int ecode3 = 0 ;
17567 wxColour temp4 ;
17568 int val5 ;
17569 int ecode5 = 0 ;
17570 PyObject * obj0 = 0 ;
17571 PyObject * obj1 = 0 ;
17572 PyObject * obj2 = 0 ;
17573 PyObject * obj3 = 0 ;
17574 PyObject * obj4 = 0 ;
17575 char * kwnames[] = {
17576 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17577 };
17578
17579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17581 if (!SWIG_IsOK(res1)) {
17582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17583 }
17584 arg1 = reinterpret_cast< wxDC * >(argp1);
17585 ecode2 = SWIG_AsVal_int(obj1, &val2);
17586 if (!SWIG_IsOK(ecode2)) {
17587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17588 }
17589 arg2 = static_cast< int >(val2);
17590 ecode3 = SWIG_AsVal_int(obj2, &val3);
17591 if (!SWIG_IsOK(ecode3)) {
17592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17593 }
17594 arg3 = static_cast< int >(val3);
17595 {
17596 arg4 = &temp4;
17597 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17598 }
17599 if (obj4) {
17600 ecode5 = SWIG_AsVal_int(obj4, &val5);
17601 if (!SWIG_IsOK(ecode5)) {
17602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17603 }
17604 arg5 = static_cast< int >(val5);
17605 }
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 {
17613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17614 }
17615 return resultobj;
17616fail:
17617 return NULL;
17618}
17619
17620
17621SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17622 PyObject *resultobj = 0;
17623 wxDC *arg1 = (wxDC *) 0 ;
17624 wxPoint *arg2 = 0 ;
17625 wxColour *arg3 = 0 ;
17626 int arg4 = (int) wxFLOOD_SURFACE ;
17627 bool result;
17628 void *argp1 = 0 ;
17629 int res1 = 0 ;
17630 wxPoint temp2 ;
17631 wxColour temp3 ;
17632 int val4 ;
17633 int ecode4 = 0 ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 PyObject * obj3 = 0 ;
17638 char * kwnames[] = {
17639 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17640 };
17641
17642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17644 if (!SWIG_IsOK(res1)) {
17645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17646 }
17647 arg1 = reinterpret_cast< wxDC * >(argp1);
17648 {
17649 arg2 = &temp2;
17650 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17651 }
17652 {
17653 arg3 = &temp3;
17654 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17655 }
17656 if (obj3) {
17657 ecode4 = SWIG_AsVal_int(obj3, &val4);
17658 if (!SWIG_IsOK(ecode4)) {
17659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17660 }
17661 arg4 = static_cast< int >(val4);
17662 }
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17671 }
17672 return resultobj;
17673fail:
17674 return NULL;
17675}
17676
17677
17678SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17679 PyObject *resultobj = 0;
17680 wxDC *arg1 = (wxDC *) 0 ;
17681 wxRect *arg2 = 0 ;
17682 wxColour *arg3 = 0 ;
17683 wxColour *arg4 = 0 ;
17684 wxPoint *arg5 = 0 ;
17685 void *argp1 = 0 ;
17686 int res1 = 0 ;
17687 wxRect temp2 ;
17688 wxColour temp3 ;
17689 wxColour temp4 ;
17690 wxPoint temp5 ;
17691 PyObject * obj0 = 0 ;
17692 PyObject * obj1 = 0 ;
17693 PyObject * obj2 = 0 ;
17694 PyObject * obj3 = 0 ;
17695 PyObject * obj4 = 0 ;
17696 char * kwnames[] = {
17697 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17698 };
17699
17700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17702 if (!SWIG_IsOK(res1)) {
17703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17704 }
17705 arg1 = reinterpret_cast< wxDC * >(argp1);
17706 {
17707 arg2 = &temp2;
17708 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17709 }
17710 {
17711 arg3 = &temp3;
17712 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17713 }
17714 {
17715 arg4 = &temp4;
17716 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17717 }
17718 {
17719 arg5 = &temp5;
17720 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17721 }
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_Py_Void();
17729 return resultobj;
17730fail:
17731 return NULL;
17732}
17733
17734
17735SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj = 0;
17737 wxDC *arg1 = (wxDC *) 0 ;
17738 wxRect *arg2 = 0 ;
17739 wxColour *arg3 = 0 ;
17740 wxColour *arg4 = 0 ;
17741 wxDirection arg5 = (wxDirection) wxEAST ;
17742 void *argp1 = 0 ;
17743 int res1 = 0 ;
17744 wxRect temp2 ;
17745 wxColour temp3 ;
17746 wxColour temp4 ;
17747 int val5 ;
17748 int ecode5 = 0 ;
17749 PyObject * obj0 = 0 ;
17750 PyObject * obj1 = 0 ;
17751 PyObject * obj2 = 0 ;
17752 PyObject * obj3 = 0 ;
17753 PyObject * obj4 = 0 ;
17754 char * kwnames[] = {
17755 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17756 };
17757
17758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17760 if (!SWIG_IsOK(res1)) {
17761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17762 }
17763 arg1 = reinterpret_cast< wxDC * >(argp1);
17764 {
17765 arg2 = &temp2;
17766 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17767 }
17768 {
17769 arg3 = &temp3;
17770 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17771 }
17772 {
17773 arg4 = &temp4;
17774 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17775 }
17776 if (obj4) {
17777 ecode5 = SWIG_AsVal_int(obj4, &val5);
17778 if (!SWIG_IsOK(ecode5)) {
17779 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17780 }
17781 arg5 = static_cast< wxDirection >(val5);
17782 }
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 resultobj = SWIG_Py_Void();
17790 return resultobj;
17791fail:
17792 return NULL;
17793}
17794
17795
17796SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17797 PyObject *resultobj = 0;
17798 wxDC *arg1 = (wxDC *) 0 ;
17799 int arg2 ;
17800 int arg3 ;
17801 wxColour result;
17802 void *argp1 = 0 ;
17803 int res1 = 0 ;
17804 int val2 ;
17805 int ecode2 = 0 ;
17806 int val3 ;
17807 int ecode3 = 0 ;
17808 PyObject * obj0 = 0 ;
17809 PyObject * obj1 = 0 ;
17810 PyObject * obj2 = 0 ;
17811 char * kwnames[] = {
17812 (char *) "self",(char *) "x",(char *) "y", NULL
17813 };
17814
17815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17817 if (!SWIG_IsOK(res1)) {
17818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17819 }
17820 arg1 = reinterpret_cast< wxDC * >(argp1);
17821 ecode2 = SWIG_AsVal_int(obj1, &val2);
17822 if (!SWIG_IsOK(ecode2)) {
17823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17824 }
17825 arg2 = static_cast< int >(val2);
17826 ecode3 = SWIG_AsVal_int(obj2, &val3);
17827 if (!SWIG_IsOK(ecode3)) {
17828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17829 }
17830 arg3 = static_cast< int >(val3);
17831 {
17832 PyThreadState* __tstate = wxPyBeginAllowThreads();
17833 result = wxDC_GetPixel(arg1,arg2,arg3);
17834 wxPyEndAllowThreads(__tstate);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
17837 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17838 return resultobj;
17839fail:
17840 return NULL;
17841}
17842
17843
17844SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17845 PyObject *resultobj = 0;
17846 wxDC *arg1 = (wxDC *) 0 ;
17847 wxPoint *arg2 = 0 ;
17848 wxColour result;
17849 void *argp1 = 0 ;
17850 int res1 = 0 ;
17851 wxPoint temp2 ;
17852 PyObject * obj0 = 0 ;
17853 PyObject * obj1 = 0 ;
17854 char * kwnames[] = {
17855 (char *) "self",(char *) "pt", NULL
17856 };
17857
17858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17860 if (!SWIG_IsOK(res1)) {
17861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17862 }
17863 arg1 = reinterpret_cast< wxDC * >(argp1);
17864 {
17865 arg2 = &temp2;
17866 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17867 }
17868 {
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17875 return resultobj;
17876fail:
17877 return NULL;
17878}
17879
17880
17881SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17882 PyObject *resultobj = 0;
17883 wxDC *arg1 = (wxDC *) 0 ;
17884 int arg2 ;
17885 int arg3 ;
17886 int arg4 ;
17887 int arg5 ;
17888 void *argp1 = 0 ;
17889 int res1 = 0 ;
17890 int val2 ;
17891 int ecode2 = 0 ;
17892 int val3 ;
17893 int ecode3 = 0 ;
17894 int val4 ;
17895 int ecode4 = 0 ;
17896 int val5 ;
17897 int ecode5 = 0 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 PyObject * obj2 = 0 ;
17901 PyObject * obj3 = 0 ;
17902 PyObject * obj4 = 0 ;
17903 char * kwnames[] = {
17904 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17905 };
17906
17907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17909 if (!SWIG_IsOK(res1)) {
17910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17911 }
17912 arg1 = reinterpret_cast< wxDC * >(argp1);
17913 ecode2 = SWIG_AsVal_int(obj1, &val2);
17914 if (!SWIG_IsOK(ecode2)) {
17915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17916 }
17917 arg2 = static_cast< int >(val2);
17918 ecode3 = SWIG_AsVal_int(obj2, &val3);
17919 if (!SWIG_IsOK(ecode3)) {
17920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17921 }
17922 arg3 = static_cast< int >(val3);
17923 ecode4 = SWIG_AsVal_int(obj3, &val4);
17924 if (!SWIG_IsOK(ecode4)) {
17925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17926 }
17927 arg4 = static_cast< int >(val4);
17928 ecode5 = SWIG_AsVal_int(obj4, &val5);
17929 if (!SWIG_IsOK(ecode5)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17931 }
17932 arg5 = static_cast< int >(val5);
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 resultobj = SWIG_Py_Void();
17940 return resultobj;
17941fail:
17942 return NULL;
17943}
17944
17945
17946SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj = 0;
17948 wxDC *arg1 = (wxDC *) 0 ;
17949 wxPoint *arg2 = 0 ;
17950 wxPoint *arg3 = 0 ;
17951 void *argp1 = 0 ;
17952 int res1 = 0 ;
17953 wxPoint temp2 ;
17954 wxPoint temp3 ;
17955 PyObject * obj0 = 0 ;
17956 PyObject * obj1 = 0 ;
17957 PyObject * obj2 = 0 ;
17958 char * kwnames[] = {
17959 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17960 };
17961
17962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17966 }
17967 arg1 = reinterpret_cast< wxDC * >(argp1);
17968 {
17969 arg2 = &temp2;
17970 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17971 }
17972 {
17973 arg3 = &temp3;
17974 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17975 }
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_Py_Void();
17983 return resultobj;
17984fail:
17985 return NULL;
17986}
17987
17988
17989SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj = 0;
17991 wxDC *arg1 = (wxDC *) 0 ;
17992 int arg2 ;
17993 int arg3 ;
17994 void *argp1 = 0 ;
17995 int res1 = 0 ;
17996 int val2 ;
17997 int ecode2 = 0 ;
17998 int val3 ;
17999 int ecode3 = 0 ;
18000 PyObject * obj0 = 0 ;
18001 PyObject * obj1 = 0 ;
18002 PyObject * obj2 = 0 ;
18003 char * kwnames[] = {
18004 (char *) "self",(char *) "x",(char *) "y", NULL
18005 };
18006
18007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18009 if (!SWIG_IsOK(res1)) {
18010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18011 }
18012 arg1 = reinterpret_cast< wxDC * >(argp1);
18013 ecode2 = SWIG_AsVal_int(obj1, &val2);
18014 if (!SWIG_IsOK(ecode2)) {
18015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18016 }
18017 arg2 = static_cast< int >(val2);
18018 ecode3 = SWIG_AsVal_int(obj2, &val3);
18019 if (!SWIG_IsOK(ecode3)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18021 }
18022 arg3 = static_cast< int >(val3);
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 (arg1)->CrossHair(arg2,arg3);
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_Py_Void();
18030 return resultobj;
18031fail:
18032 return NULL;
18033}
18034
18035
18036SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxDC *arg1 = (wxDC *) 0 ;
18039 wxPoint *arg2 = 0 ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 wxPoint temp2 ;
18043 PyObject * obj0 = 0 ;
18044 PyObject * obj1 = 0 ;
18045 char * kwnames[] = {
18046 (char *) "self",(char *) "pt", NULL
18047 };
18048
18049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) 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_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18053 }
18054 arg1 = reinterpret_cast< wxDC * >(argp1);
18055 {
18056 arg2 = &temp2;
18057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18058 }
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->CrossHair((wxPoint const &)*arg2);
18062 wxPyEndAllowThreads(__tstate);
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 resultobj = SWIG_Py_Void();
18066 return resultobj;
18067fail:
18068 return NULL;
18069}
18070
18071
18072SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18073 PyObject *resultobj = 0;
18074 wxDC *arg1 = (wxDC *) 0 ;
18075 int arg2 ;
18076 int arg3 ;
18077 int arg4 ;
18078 int arg5 ;
18079 int arg6 ;
18080 int arg7 ;
18081 void *argp1 = 0 ;
18082 int res1 = 0 ;
18083 int val2 ;
18084 int ecode2 = 0 ;
18085 int val3 ;
18086 int ecode3 = 0 ;
18087 int val4 ;
18088 int ecode4 = 0 ;
18089 int val5 ;
18090 int ecode5 = 0 ;
18091 int val6 ;
18092 int ecode6 = 0 ;
18093 int val7 ;
18094 int ecode7 = 0 ;
18095 PyObject * obj0 = 0 ;
18096 PyObject * obj1 = 0 ;
18097 PyObject * obj2 = 0 ;
18098 PyObject * obj3 = 0 ;
18099 PyObject * obj4 = 0 ;
18100 PyObject * obj5 = 0 ;
18101 PyObject * obj6 = 0 ;
18102 char * kwnames[] = {
18103 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18104 };
18105
18106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18108 if (!SWIG_IsOK(res1)) {
18109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18110 }
18111 arg1 = reinterpret_cast< wxDC * >(argp1);
18112 ecode2 = SWIG_AsVal_int(obj1, &val2);
18113 if (!SWIG_IsOK(ecode2)) {
18114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18115 }
18116 arg2 = static_cast< int >(val2);
18117 ecode3 = SWIG_AsVal_int(obj2, &val3);
18118 if (!SWIG_IsOK(ecode3)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18120 }
18121 arg3 = static_cast< int >(val3);
18122 ecode4 = SWIG_AsVal_int(obj3, &val4);
18123 if (!SWIG_IsOK(ecode4)) {
18124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18125 }
18126 arg4 = static_cast< int >(val4);
18127 ecode5 = SWIG_AsVal_int(obj4, &val5);
18128 if (!SWIG_IsOK(ecode5)) {
18129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18130 }
18131 arg5 = static_cast< int >(val5);
18132 ecode6 = SWIG_AsVal_int(obj5, &val6);
18133 if (!SWIG_IsOK(ecode6)) {
18134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18135 }
18136 arg6 = static_cast< int >(val6);
18137 ecode7 = SWIG_AsVal_int(obj6, &val7);
18138 if (!SWIG_IsOK(ecode7)) {
18139 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18140 }
18141 arg7 = static_cast< int >(val7);
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 resultobj = SWIG_Py_Void();
18149 return resultobj;
18150fail:
18151 return NULL;
18152}
18153
18154
18155SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj = 0;
18157 wxDC *arg1 = (wxDC *) 0 ;
18158 wxPoint *arg2 = 0 ;
18159 wxPoint *arg3 = 0 ;
18160 wxPoint *arg4 = 0 ;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 wxPoint temp2 ;
18164 wxPoint temp3 ;
18165 wxPoint temp4 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 PyObject * obj2 = 0 ;
18169 PyObject * obj3 = 0 ;
18170 char * kwnames[] = {
18171 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18172 };
18173
18174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18178 }
18179 arg1 = reinterpret_cast< wxDC * >(argp1);
18180 {
18181 arg2 = &temp2;
18182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18183 }
18184 {
18185 arg3 = &temp3;
18186 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18187 }
18188 {
18189 arg4 = &temp4;
18190 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18191 }
18192 {
18193 PyThreadState* __tstate = wxPyBeginAllowThreads();
18194 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 resultobj = SWIG_Py_Void();
18199 return resultobj;
18200fail:
18201 return NULL;
18202}
18203
18204
18205SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18206 PyObject *resultobj = 0;
18207 wxDC *arg1 = (wxDC *) 0 ;
18208 int arg2 ;
18209 int arg3 ;
18210 int arg4 ;
18211 int arg5 ;
18212 void *argp1 = 0 ;
18213 int res1 = 0 ;
18214 int val2 ;
18215 int ecode2 = 0 ;
18216 int val3 ;
18217 int ecode3 = 0 ;
18218 int val4 ;
18219 int ecode4 = 0 ;
18220 int val5 ;
18221 int ecode5 = 0 ;
18222 PyObject * obj0 = 0 ;
18223 PyObject * obj1 = 0 ;
18224 PyObject * obj2 = 0 ;
18225 PyObject * obj3 = 0 ;
18226 PyObject * obj4 = 0 ;
18227 char * kwnames[] = {
18228 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18229 };
18230
18231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18235 }
18236 arg1 = reinterpret_cast< wxDC * >(argp1);
18237 ecode2 = SWIG_AsVal_int(obj1, &val2);
18238 if (!SWIG_IsOK(ecode2)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18240 }
18241 arg2 = static_cast< int >(val2);
18242 ecode3 = SWIG_AsVal_int(obj2, &val3);
18243 if (!SWIG_IsOK(ecode3)) {
18244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18245 }
18246 arg3 = static_cast< int >(val3);
18247 ecode4 = SWIG_AsVal_int(obj3, &val4);
18248 if (!SWIG_IsOK(ecode4)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18250 }
18251 arg4 = static_cast< int >(val4);
18252 ecode5 = SWIG_AsVal_int(obj4, &val5);
18253 if (!SWIG_IsOK(ecode5)) {
18254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18255 }
18256 arg5 = static_cast< int >(val5);
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18260 wxPyEndAllowThreads(__tstate);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 resultobj = SWIG_Py_Void();
18264 return resultobj;
18265fail:
18266 return NULL;
18267}
18268
18269
18270SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18271 PyObject *resultobj = 0;
18272 wxDC *arg1 = (wxDC *) 0 ;
18273 wxRect *arg2 = 0 ;
18274 void *argp1 = 0 ;
18275 int res1 = 0 ;
18276 wxRect temp2 ;
18277 PyObject * obj0 = 0 ;
18278 PyObject * obj1 = 0 ;
18279 char * kwnames[] = {
18280 (char *) "self",(char *) "rect", NULL
18281 };
18282
18283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18285 if (!SWIG_IsOK(res1)) {
18286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18287 }
18288 arg1 = reinterpret_cast< wxDC * >(argp1);
18289 {
18290 arg2 = &temp2;
18291 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18292 }
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18296 wxPyEndAllowThreads(__tstate);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 }
18299 resultobj = SWIG_Py_Void();
18300 return resultobj;
18301fail:
18302 return NULL;
18303}
18304
18305
18306SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18307 PyObject *resultobj = 0;
18308 wxDC *arg1 = (wxDC *) 0 ;
18309 int arg2 ;
18310 int arg3 ;
18311 int arg4 ;
18312 int arg5 ;
18313 double arg6 ;
18314 double arg7 ;
18315 void *argp1 = 0 ;
18316 int res1 = 0 ;
18317 int val2 ;
18318 int ecode2 = 0 ;
18319 int val3 ;
18320 int ecode3 = 0 ;
18321 int val4 ;
18322 int ecode4 = 0 ;
18323 int val5 ;
18324 int ecode5 = 0 ;
18325 double val6 ;
18326 int ecode6 = 0 ;
18327 double val7 ;
18328 int ecode7 = 0 ;
18329 PyObject * obj0 = 0 ;
18330 PyObject * obj1 = 0 ;
18331 PyObject * obj2 = 0 ;
18332 PyObject * obj3 = 0 ;
18333 PyObject * obj4 = 0 ;
18334 PyObject * obj5 = 0 ;
18335 PyObject * obj6 = 0 ;
18336 char * kwnames[] = {
18337 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18338 };
18339
18340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18342 if (!SWIG_IsOK(res1)) {
18343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18344 }
18345 arg1 = reinterpret_cast< wxDC * >(argp1);
18346 ecode2 = SWIG_AsVal_int(obj1, &val2);
18347 if (!SWIG_IsOK(ecode2)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18349 }
18350 arg2 = static_cast< int >(val2);
18351 ecode3 = SWIG_AsVal_int(obj2, &val3);
18352 if (!SWIG_IsOK(ecode3)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18354 }
18355 arg3 = static_cast< int >(val3);
18356 ecode4 = SWIG_AsVal_int(obj3, &val4);
18357 if (!SWIG_IsOK(ecode4)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18359 }
18360 arg4 = static_cast< int >(val4);
18361 ecode5 = SWIG_AsVal_int(obj4, &val5);
18362 if (!SWIG_IsOK(ecode5)) {
18363 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18364 }
18365 arg5 = static_cast< int >(val5);
18366 ecode6 = SWIG_AsVal_double(obj5, &val6);
18367 if (!SWIG_IsOK(ecode6)) {
18368 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18369 }
18370 arg6 = static_cast< double >(val6);
18371 ecode7 = SWIG_AsVal_double(obj6, &val7);
18372 if (!SWIG_IsOK(ecode7)) {
18373 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18374 }
18375 arg7 = static_cast< double >(val7);
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 resultobj = SWIG_Py_Void();
18383 return resultobj;
18384fail:
18385 return NULL;
18386}
18387
18388
18389SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18390 PyObject *resultobj = 0;
18391 wxDC *arg1 = (wxDC *) 0 ;
18392 wxPoint *arg2 = 0 ;
18393 wxSize *arg3 = 0 ;
18394 double arg4 ;
18395 double arg5 ;
18396 void *argp1 = 0 ;
18397 int res1 = 0 ;
18398 wxPoint temp2 ;
18399 wxSize temp3 ;
18400 double val4 ;
18401 int ecode4 = 0 ;
18402 double val5 ;
18403 int ecode5 = 0 ;
18404 PyObject * obj0 = 0 ;
18405 PyObject * obj1 = 0 ;
18406 PyObject * obj2 = 0 ;
18407 PyObject * obj3 = 0 ;
18408 PyObject * obj4 = 0 ;
18409 char * kwnames[] = {
18410 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18411 };
18412
18413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18417 }
18418 arg1 = reinterpret_cast< wxDC * >(argp1);
18419 {
18420 arg2 = &temp2;
18421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18422 }
18423 {
18424 arg3 = &temp3;
18425 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18426 }
18427 ecode4 = SWIG_AsVal_double(obj3, &val4);
18428 if (!SWIG_IsOK(ecode4)) {
18429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18430 }
18431 arg4 = static_cast< double >(val4);
18432 ecode5 = SWIG_AsVal_double(obj4, &val5);
18433 if (!SWIG_IsOK(ecode5)) {
18434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18435 }
18436 arg5 = static_cast< double >(val5);
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18440 wxPyEndAllowThreads(__tstate);
18441 if (PyErr_Occurred()) SWIG_fail;
18442 }
18443 resultobj = SWIG_Py_Void();
18444 return resultobj;
18445fail:
18446 return NULL;
18447}
18448
18449
18450SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj = 0;
18452 wxDC *arg1 = (wxDC *) 0 ;
18453 int arg2 ;
18454 int arg3 ;
18455 void *argp1 = 0 ;
18456 int res1 = 0 ;
18457 int val2 ;
18458 int ecode2 = 0 ;
18459 int val3 ;
18460 int ecode3 = 0 ;
18461 PyObject * obj0 = 0 ;
18462 PyObject * obj1 = 0 ;
18463 PyObject * obj2 = 0 ;
18464 char * kwnames[] = {
18465 (char *) "self",(char *) "x",(char *) "y", NULL
18466 };
18467
18468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18470 if (!SWIG_IsOK(res1)) {
18471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18472 }
18473 arg1 = reinterpret_cast< wxDC * >(argp1);
18474 ecode2 = SWIG_AsVal_int(obj1, &val2);
18475 if (!SWIG_IsOK(ecode2)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18477 }
18478 arg2 = static_cast< int >(val2);
18479 ecode3 = SWIG_AsVal_int(obj2, &val3);
18480 if (!SWIG_IsOK(ecode3)) {
18481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18482 }
18483 arg3 = static_cast< int >(val3);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->DrawPoint(arg2,arg3);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_Py_Void();
18491 return resultobj;
18492fail:
18493 return NULL;
18494}
18495
18496
18497SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18498 PyObject *resultobj = 0;
18499 wxDC *arg1 = (wxDC *) 0 ;
18500 wxPoint *arg2 = 0 ;
18501 void *argp1 = 0 ;
18502 int res1 = 0 ;
18503 wxPoint temp2 ;
18504 PyObject * obj0 = 0 ;
18505 PyObject * obj1 = 0 ;
18506 char * kwnames[] = {
18507 (char *) "self",(char *) "pt", NULL
18508 };
18509
18510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) 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_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18514 }
18515 arg1 = reinterpret_cast< wxDC * >(argp1);
18516 {
18517 arg2 = &temp2;
18518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18519 }
18520 {
18521 PyThreadState* __tstate = wxPyBeginAllowThreads();
18522 (arg1)->DrawPoint((wxPoint const &)*arg2);
18523 wxPyEndAllowThreads(__tstate);
18524 if (PyErr_Occurred()) SWIG_fail;
18525 }
18526 resultobj = SWIG_Py_Void();
18527 return resultobj;
18528fail:
18529 return NULL;
18530}
18531
18532
18533SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18534 PyObject *resultobj = 0;
18535 wxDC *arg1 = (wxDC *) 0 ;
18536 int arg2 ;
18537 int arg3 ;
18538 int arg4 ;
18539 int arg5 ;
18540 void *argp1 = 0 ;
18541 int res1 = 0 ;
18542 int val2 ;
18543 int ecode2 = 0 ;
18544 int val3 ;
18545 int ecode3 = 0 ;
18546 int val4 ;
18547 int ecode4 = 0 ;
18548 int val5 ;
18549 int ecode5 = 0 ;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 PyObject * obj2 = 0 ;
18553 PyObject * obj3 = 0 ;
18554 PyObject * obj4 = 0 ;
18555 char * kwnames[] = {
18556 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18557 };
18558
18559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18563 }
18564 arg1 = reinterpret_cast< wxDC * >(argp1);
18565 ecode2 = SWIG_AsVal_int(obj1, &val2);
18566 if (!SWIG_IsOK(ecode2)) {
18567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18568 }
18569 arg2 = static_cast< int >(val2);
18570 ecode3 = SWIG_AsVal_int(obj2, &val3);
18571 if (!SWIG_IsOK(ecode3)) {
18572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18573 }
18574 arg3 = static_cast< int >(val3);
18575 ecode4 = SWIG_AsVal_int(obj3, &val4);
18576 if (!SWIG_IsOK(ecode4)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18578 }
18579 arg4 = static_cast< int >(val4);
18580 ecode5 = SWIG_AsVal_int(obj4, &val5);
18581 if (!SWIG_IsOK(ecode5)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18583 }
18584 arg5 = static_cast< int >(val5);
18585 {
18586 PyThreadState* __tstate = wxPyBeginAllowThreads();
18587 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 resultobj = SWIG_Py_Void();
18592 return resultobj;
18593fail:
18594 return NULL;
18595}
18596
18597
18598SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18599 PyObject *resultobj = 0;
18600 wxDC *arg1 = (wxDC *) 0 ;
18601 wxRect *arg2 = 0 ;
18602 void *argp1 = 0 ;
18603 int res1 = 0 ;
18604 wxRect temp2 ;
18605 PyObject * obj0 = 0 ;
18606 PyObject * obj1 = 0 ;
18607 char * kwnames[] = {
18608 (char *) "self",(char *) "rect", NULL
18609 };
18610
18611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18613 if (!SWIG_IsOK(res1)) {
18614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18615 }
18616 arg1 = reinterpret_cast< wxDC * >(argp1);
18617 {
18618 arg2 = &temp2;
18619 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18620 }
18621 {
18622 PyThreadState* __tstate = wxPyBeginAllowThreads();
18623 (arg1)->DrawRectangle((wxRect const &)*arg2);
18624 wxPyEndAllowThreads(__tstate);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 resultobj = SWIG_Py_Void();
18628 return resultobj;
18629fail:
18630 return NULL;
18631}
18632
18633
18634SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18635 PyObject *resultobj = 0;
18636 wxDC *arg1 = (wxDC *) 0 ;
18637 wxPoint *arg2 = 0 ;
18638 wxSize *arg3 = 0 ;
18639 void *argp1 = 0 ;
18640 int res1 = 0 ;
18641 wxPoint temp2 ;
18642 wxSize temp3 ;
18643 PyObject * obj0 = 0 ;
18644 PyObject * obj1 = 0 ;
18645 PyObject * obj2 = 0 ;
18646 char * kwnames[] = {
18647 (char *) "self",(char *) "pt",(char *) "sz", NULL
18648 };
18649
18650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18652 if (!SWIG_IsOK(res1)) {
18653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18654 }
18655 arg1 = reinterpret_cast< wxDC * >(argp1);
18656 {
18657 arg2 = &temp2;
18658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18659 }
18660 {
18661 arg3 = &temp3;
18662 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18663 }
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 resultobj = SWIG_Py_Void();
18671 return resultobj;
18672fail:
18673 return NULL;
18674}
18675
18676
18677SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18678 PyObject *resultobj = 0;
18679 wxDC *arg1 = (wxDC *) 0 ;
18680 int arg2 ;
18681 int arg3 ;
18682 int arg4 ;
18683 int arg5 ;
18684 double arg6 ;
18685 void *argp1 = 0 ;
18686 int res1 = 0 ;
18687 int val2 ;
18688 int ecode2 = 0 ;
18689 int val3 ;
18690 int ecode3 = 0 ;
18691 int val4 ;
18692 int ecode4 = 0 ;
18693 int val5 ;
18694 int ecode5 = 0 ;
18695 double val6 ;
18696 int ecode6 = 0 ;
18697 PyObject * obj0 = 0 ;
18698 PyObject * obj1 = 0 ;
18699 PyObject * obj2 = 0 ;
18700 PyObject * obj3 = 0 ;
18701 PyObject * obj4 = 0 ;
18702 PyObject * obj5 = 0 ;
18703 char * kwnames[] = {
18704 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18705 };
18706
18707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18709 if (!SWIG_IsOK(res1)) {
18710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18711 }
18712 arg1 = reinterpret_cast< wxDC * >(argp1);
18713 ecode2 = SWIG_AsVal_int(obj1, &val2);
18714 if (!SWIG_IsOK(ecode2)) {
18715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18716 }
18717 arg2 = static_cast< int >(val2);
18718 ecode3 = SWIG_AsVal_int(obj2, &val3);
18719 if (!SWIG_IsOK(ecode3)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18721 }
18722 arg3 = static_cast< int >(val3);
18723 ecode4 = SWIG_AsVal_int(obj3, &val4);
18724 if (!SWIG_IsOK(ecode4)) {
18725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18726 }
18727 arg4 = static_cast< int >(val4);
18728 ecode5 = SWIG_AsVal_int(obj4, &val5);
18729 if (!SWIG_IsOK(ecode5)) {
18730 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18731 }
18732 arg5 = static_cast< int >(val5);
18733 ecode6 = SWIG_AsVal_double(obj5, &val6);
18734 if (!SWIG_IsOK(ecode6)) {
18735 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18736 }
18737 arg6 = static_cast< double >(val6);
18738 {
18739 PyThreadState* __tstate = wxPyBeginAllowThreads();
18740 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_Py_Void();
18745 return resultobj;
18746fail:
18747 return NULL;
18748}
18749
18750
18751SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18752 PyObject *resultobj = 0;
18753 wxDC *arg1 = (wxDC *) 0 ;
18754 wxRect *arg2 = 0 ;
18755 double arg3 ;
18756 void *argp1 = 0 ;
18757 int res1 = 0 ;
18758 wxRect temp2 ;
18759 double val3 ;
18760 int ecode3 = 0 ;
18761 PyObject * obj0 = 0 ;
18762 PyObject * obj1 = 0 ;
18763 PyObject * obj2 = 0 ;
18764 char * kwnames[] = {
18765 (char *) "self",(char *) "r",(char *) "radius", NULL
18766 };
18767
18768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18770 if (!SWIG_IsOK(res1)) {
18771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18772 }
18773 arg1 = reinterpret_cast< wxDC * >(argp1);
18774 {
18775 arg2 = &temp2;
18776 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18777 }
18778 ecode3 = SWIG_AsVal_double(obj2, &val3);
18779 if (!SWIG_IsOK(ecode3)) {
18780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18781 }
18782 arg3 = static_cast< double >(val3);
18783 {
18784 PyThreadState* __tstate = wxPyBeginAllowThreads();
18785 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18786 wxPyEndAllowThreads(__tstate);
18787 if (PyErr_Occurred()) SWIG_fail;
18788 }
18789 resultobj = SWIG_Py_Void();
18790 return resultobj;
18791fail:
18792 return NULL;
18793}
18794
18795
18796SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18797 PyObject *resultobj = 0;
18798 wxDC *arg1 = (wxDC *) 0 ;
18799 wxPoint *arg2 = 0 ;
18800 wxSize *arg3 = 0 ;
18801 double arg4 ;
18802 void *argp1 = 0 ;
18803 int res1 = 0 ;
18804 wxPoint temp2 ;
18805 wxSize temp3 ;
18806 double val4 ;
18807 int ecode4 = 0 ;
18808 PyObject * obj0 = 0 ;
18809 PyObject * obj1 = 0 ;
18810 PyObject * obj2 = 0 ;
18811 PyObject * obj3 = 0 ;
18812 char * kwnames[] = {
18813 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18814 };
18815
18816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18818 if (!SWIG_IsOK(res1)) {
18819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18820 }
18821 arg1 = reinterpret_cast< wxDC * >(argp1);
18822 {
18823 arg2 = &temp2;
18824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18825 }
18826 {
18827 arg3 = &temp3;
18828 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18829 }
18830 ecode4 = SWIG_AsVal_double(obj3, &val4);
18831 if (!SWIG_IsOK(ecode4)) {
18832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18833 }
18834 arg4 = static_cast< double >(val4);
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 resultobj = SWIG_Py_Void();
18842 return resultobj;
18843fail:
18844 return NULL;
18845}
18846
18847
18848SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18849 PyObject *resultobj = 0;
18850 wxDC *arg1 = (wxDC *) 0 ;
18851 int arg2 ;
18852 int arg3 ;
18853 int arg4 ;
18854 void *argp1 = 0 ;
18855 int res1 = 0 ;
18856 int val2 ;
18857 int ecode2 = 0 ;
18858 int val3 ;
18859 int ecode3 = 0 ;
18860 int val4 ;
18861 int ecode4 = 0 ;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 PyObject * obj2 = 0 ;
18865 PyObject * obj3 = 0 ;
18866 char * kwnames[] = {
18867 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18868 };
18869
18870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18872 if (!SWIG_IsOK(res1)) {
18873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18874 }
18875 arg1 = reinterpret_cast< wxDC * >(argp1);
18876 ecode2 = SWIG_AsVal_int(obj1, &val2);
18877 if (!SWIG_IsOK(ecode2)) {
18878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18879 }
18880 arg2 = static_cast< int >(val2);
18881 ecode3 = SWIG_AsVal_int(obj2, &val3);
18882 if (!SWIG_IsOK(ecode3)) {
18883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18884 }
18885 arg3 = static_cast< int >(val3);
18886 ecode4 = SWIG_AsVal_int(obj3, &val4);
18887 if (!SWIG_IsOK(ecode4)) {
18888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18889 }
18890 arg4 = static_cast< int >(val4);
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 (arg1)->DrawCircle(arg2,arg3,arg4);
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_Py_Void();
18898 return resultobj;
18899fail:
18900 return NULL;
18901}
18902
18903
18904SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 wxPoint *arg2 = 0 ;
18908 int arg3 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 wxPoint temp2 ;
18912 int val3 ;
18913 int ecode3 = 0 ;
18914 PyObject * obj0 = 0 ;
18915 PyObject * obj1 = 0 ;
18916 PyObject * obj2 = 0 ;
18917 char * kwnames[] = {
18918 (char *) "self",(char *) "pt",(char *) "radius", NULL
18919 };
18920
18921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18925 }
18926 arg1 = reinterpret_cast< wxDC * >(argp1);
18927 {
18928 arg2 = &temp2;
18929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18930 }
18931 ecode3 = SWIG_AsVal_int(obj2, &val3);
18932 if (!SWIG_IsOK(ecode3)) {
18933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18934 }
18935 arg3 = static_cast< int >(val3);
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18939 wxPyEndAllowThreads(__tstate);
18940 if (PyErr_Occurred()) SWIG_fail;
18941 }
18942 resultobj = SWIG_Py_Void();
18943 return resultobj;
18944fail:
18945 return NULL;
18946}
18947
18948
18949SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18950 PyObject *resultobj = 0;
18951 wxDC *arg1 = (wxDC *) 0 ;
18952 int arg2 ;
18953 int arg3 ;
18954 int arg4 ;
18955 int arg5 ;
18956 void *argp1 = 0 ;
18957 int res1 = 0 ;
18958 int val2 ;
18959 int ecode2 = 0 ;
18960 int val3 ;
18961 int ecode3 = 0 ;
18962 int val4 ;
18963 int ecode4 = 0 ;
18964 int val5 ;
18965 int ecode5 = 0 ;
18966 PyObject * obj0 = 0 ;
18967 PyObject * obj1 = 0 ;
18968 PyObject * obj2 = 0 ;
18969 PyObject * obj3 = 0 ;
18970 PyObject * obj4 = 0 ;
18971 char * kwnames[] = {
18972 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18973 };
18974
18975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18977 if (!SWIG_IsOK(res1)) {
18978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18979 }
18980 arg1 = reinterpret_cast< wxDC * >(argp1);
18981 ecode2 = SWIG_AsVal_int(obj1, &val2);
18982 if (!SWIG_IsOK(ecode2)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18984 }
18985 arg2 = static_cast< int >(val2);
18986 ecode3 = SWIG_AsVal_int(obj2, &val3);
18987 if (!SWIG_IsOK(ecode3)) {
18988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18989 }
18990 arg3 = static_cast< int >(val3);
18991 ecode4 = SWIG_AsVal_int(obj3, &val4);
18992 if (!SWIG_IsOK(ecode4)) {
18993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18994 }
18995 arg4 = static_cast< int >(val4);
18996 ecode5 = SWIG_AsVal_int(obj4, &val5);
18997 if (!SWIG_IsOK(ecode5)) {
18998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18999 }
19000 arg5 = static_cast< int >(val5);
19001 {
19002 PyThreadState* __tstate = wxPyBeginAllowThreads();
19003 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19004 wxPyEndAllowThreads(__tstate);
19005 if (PyErr_Occurred()) SWIG_fail;
19006 }
19007 resultobj = SWIG_Py_Void();
19008 return resultobj;
19009fail:
19010 return NULL;
19011}
19012
19013
19014SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj = 0;
19016 wxDC *arg1 = (wxDC *) 0 ;
19017 wxRect *arg2 = 0 ;
19018 void *argp1 = 0 ;
19019 int res1 = 0 ;
19020 wxRect temp2 ;
19021 PyObject * obj0 = 0 ;
19022 PyObject * obj1 = 0 ;
19023 char * kwnames[] = {
19024 (char *) "self",(char *) "rect", NULL
19025 };
19026
19027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19029 if (!SWIG_IsOK(res1)) {
19030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19031 }
19032 arg1 = reinterpret_cast< wxDC * >(argp1);
19033 {
19034 arg2 = &temp2;
19035 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19036 }
19037 {
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 (arg1)->DrawEllipse((wxRect const &)*arg2);
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 resultobj = SWIG_Py_Void();
19044 return resultobj;
19045fail:
19046 return NULL;
19047}
19048
19049
19050SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19051 PyObject *resultobj = 0;
19052 wxDC *arg1 = (wxDC *) 0 ;
19053 wxPoint *arg2 = 0 ;
19054 wxSize *arg3 = 0 ;
19055 void *argp1 = 0 ;
19056 int res1 = 0 ;
19057 wxPoint temp2 ;
19058 wxSize temp3 ;
19059 PyObject * obj0 = 0 ;
19060 PyObject * obj1 = 0 ;
19061 PyObject * obj2 = 0 ;
19062 char * kwnames[] = {
19063 (char *) "self",(char *) "pt",(char *) "sz", NULL
19064 };
19065
19066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19068 if (!SWIG_IsOK(res1)) {
19069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19070 }
19071 arg1 = reinterpret_cast< wxDC * >(argp1);
19072 {
19073 arg2 = &temp2;
19074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19075 }
19076 {
19077 arg3 = &temp3;
19078 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19079 }
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19083 wxPyEndAllowThreads(__tstate);
19084 if (PyErr_Occurred()) SWIG_fail;
19085 }
19086 resultobj = SWIG_Py_Void();
19087 return resultobj;
19088fail:
19089 return NULL;
19090}
19091
19092
19093SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19094 PyObject *resultobj = 0;
19095 wxDC *arg1 = (wxDC *) 0 ;
19096 wxIcon *arg2 = 0 ;
19097 int arg3 ;
19098 int arg4 ;
19099 void *argp1 = 0 ;
19100 int res1 = 0 ;
19101 void *argp2 = 0 ;
19102 int res2 = 0 ;
19103 int val3 ;
19104 int ecode3 = 0 ;
19105 int val4 ;
19106 int ecode4 = 0 ;
19107 PyObject * obj0 = 0 ;
19108 PyObject * obj1 = 0 ;
19109 PyObject * obj2 = 0 ;
19110 PyObject * obj3 = 0 ;
19111 char * kwnames[] = {
19112 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19113 };
19114
19115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19117 if (!SWIG_IsOK(res1)) {
19118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19119 }
19120 arg1 = reinterpret_cast< wxDC * >(argp1);
19121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19122 if (!SWIG_IsOK(res2)) {
19123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19124 }
19125 if (!argp2) {
19126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19127 }
19128 arg2 = reinterpret_cast< wxIcon * >(argp2);
19129 ecode3 = SWIG_AsVal_int(obj2, &val3);
19130 if (!SWIG_IsOK(ecode3)) {
19131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19132 }
19133 arg3 = static_cast< int >(val3);
19134 ecode4 = SWIG_AsVal_int(obj3, &val4);
19135 if (!SWIG_IsOK(ecode4)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19137 }
19138 arg4 = static_cast< int >(val4);
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19142 wxPyEndAllowThreads(__tstate);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 resultobj = SWIG_Py_Void();
19146 return resultobj;
19147fail:
19148 return NULL;
19149}
19150
19151
19152SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19153 PyObject *resultobj = 0;
19154 wxDC *arg1 = (wxDC *) 0 ;
19155 wxIcon *arg2 = 0 ;
19156 wxPoint *arg3 = 0 ;
19157 void *argp1 = 0 ;
19158 int res1 = 0 ;
19159 void *argp2 = 0 ;
19160 int res2 = 0 ;
19161 wxPoint temp3 ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 PyObject * obj2 = 0 ;
19165 char * kwnames[] = {
19166 (char *) "self",(char *) "icon",(char *) "pt", NULL
19167 };
19168
19169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19171 if (!SWIG_IsOK(res1)) {
19172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19173 }
19174 arg1 = reinterpret_cast< wxDC * >(argp1);
19175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19176 if (!SWIG_IsOK(res2)) {
19177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19178 }
19179 if (!argp2) {
19180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19181 }
19182 arg2 = reinterpret_cast< wxIcon * >(argp2);
19183 {
19184 arg3 = &temp3;
19185 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19186 }
19187 {
19188 PyThreadState* __tstate = wxPyBeginAllowThreads();
19189 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19190 wxPyEndAllowThreads(__tstate);
19191 if (PyErr_Occurred()) SWIG_fail;
19192 }
19193 resultobj = SWIG_Py_Void();
19194 return resultobj;
19195fail:
19196 return NULL;
19197}
19198
19199
19200SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19201 PyObject *resultobj = 0;
19202 wxDC *arg1 = (wxDC *) 0 ;
19203 wxBitmap *arg2 = 0 ;
19204 int arg3 ;
19205 int arg4 ;
19206 bool arg5 = (bool) false ;
19207 void *argp1 = 0 ;
19208 int res1 = 0 ;
19209 void *argp2 = 0 ;
19210 int res2 = 0 ;
19211 int val3 ;
19212 int ecode3 = 0 ;
19213 int val4 ;
19214 int ecode4 = 0 ;
19215 bool val5 ;
19216 int ecode5 = 0 ;
19217 PyObject * obj0 = 0 ;
19218 PyObject * obj1 = 0 ;
19219 PyObject * obj2 = 0 ;
19220 PyObject * obj3 = 0 ;
19221 PyObject * obj4 = 0 ;
19222 char * kwnames[] = {
19223 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19224 };
19225
19226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19230 }
19231 arg1 = reinterpret_cast< wxDC * >(argp1);
19232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19233 if (!SWIG_IsOK(res2)) {
19234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19235 }
19236 if (!argp2) {
19237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19238 }
19239 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19240 ecode3 = SWIG_AsVal_int(obj2, &val3);
19241 if (!SWIG_IsOK(ecode3)) {
19242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19243 }
19244 arg3 = static_cast< int >(val3);
19245 ecode4 = SWIG_AsVal_int(obj3, &val4);
19246 if (!SWIG_IsOK(ecode4)) {
19247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19248 }
19249 arg4 = static_cast< int >(val4);
19250 if (obj4) {
19251 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19252 if (!SWIG_IsOK(ecode5)) {
19253 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19254 }
19255 arg5 = static_cast< bool >(val5);
19256 }
19257 {
19258 PyThreadState* __tstate = wxPyBeginAllowThreads();
19259 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19260 wxPyEndAllowThreads(__tstate);
19261 if (PyErr_Occurred()) SWIG_fail;
19262 }
19263 resultobj = SWIG_Py_Void();
19264 return resultobj;
19265fail:
19266 return NULL;
19267}
19268
19269
19270SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19271 PyObject *resultobj = 0;
19272 wxDC *arg1 = (wxDC *) 0 ;
19273 wxBitmap *arg2 = 0 ;
19274 wxPoint *arg3 = 0 ;
19275 bool arg4 = (bool) false ;
19276 void *argp1 = 0 ;
19277 int res1 = 0 ;
19278 void *argp2 = 0 ;
19279 int res2 = 0 ;
19280 wxPoint temp3 ;
19281 bool val4 ;
19282 int ecode4 = 0 ;
19283 PyObject * obj0 = 0 ;
19284 PyObject * obj1 = 0 ;
19285 PyObject * obj2 = 0 ;
19286 PyObject * obj3 = 0 ;
19287 char * kwnames[] = {
19288 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19289 };
19290
19291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19293 if (!SWIG_IsOK(res1)) {
19294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19295 }
19296 arg1 = reinterpret_cast< wxDC * >(argp1);
19297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19298 if (!SWIG_IsOK(res2)) {
19299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19300 }
19301 if (!argp2) {
19302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19303 }
19304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19305 {
19306 arg3 = &temp3;
19307 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19308 }
19309 if (obj3) {
19310 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19311 if (!SWIG_IsOK(ecode4)) {
19312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19313 }
19314 arg4 = static_cast< bool >(val4);
19315 }
19316 {
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 resultobj = SWIG_Py_Void();
19323 return resultobj;
19324fail:
19325 return NULL;
19326}
19327
19328
19329SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19330 PyObject *resultobj = 0;
19331 wxDC *arg1 = (wxDC *) 0 ;
19332 wxString *arg2 = 0 ;
19333 int arg3 ;
19334 int arg4 ;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 bool temp2 = false ;
19338 int val3 ;
19339 int ecode3 = 0 ;
19340 int val4 ;
19341 int ecode4 = 0 ;
19342 PyObject * obj0 = 0 ;
19343 PyObject * obj1 = 0 ;
19344 PyObject * obj2 = 0 ;
19345 PyObject * obj3 = 0 ;
19346 char * kwnames[] = {
19347 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19348 };
19349
19350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19352 if (!SWIG_IsOK(res1)) {
19353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19354 }
19355 arg1 = reinterpret_cast< wxDC * >(argp1);
19356 {
19357 arg2 = wxString_in_helper(obj1);
19358 if (arg2 == NULL) SWIG_fail;
19359 temp2 = true;
19360 }
19361 ecode3 = SWIG_AsVal_int(obj2, &val3);
19362 if (!SWIG_IsOK(ecode3)) {
19363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19364 }
19365 arg3 = static_cast< int >(val3);
19366 ecode4 = SWIG_AsVal_int(obj3, &val4);
19367 if (!SWIG_IsOK(ecode4)) {
19368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19369 }
19370 arg4 = static_cast< int >(val4);
19371 {
19372 PyThreadState* __tstate = wxPyBeginAllowThreads();
19373 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19374 wxPyEndAllowThreads(__tstate);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 resultobj = SWIG_Py_Void();
19378 {
19379 if (temp2)
19380 delete arg2;
19381 }
19382 return resultobj;
19383fail:
19384 {
19385 if (temp2)
19386 delete arg2;
19387 }
19388 return NULL;
19389}
19390
19391
19392SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxDC *arg1 = (wxDC *) 0 ;
19395 wxString *arg2 = 0 ;
19396 wxPoint *arg3 = 0 ;
19397 void *argp1 = 0 ;
19398 int res1 = 0 ;
19399 bool temp2 = false ;
19400 wxPoint temp3 ;
19401 PyObject * obj0 = 0 ;
19402 PyObject * obj1 = 0 ;
19403 PyObject * obj2 = 0 ;
19404 char * kwnames[] = {
19405 (char *) "self",(char *) "text",(char *) "pt", NULL
19406 };
19407
19408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19410 if (!SWIG_IsOK(res1)) {
19411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19412 }
19413 arg1 = reinterpret_cast< wxDC * >(argp1);
19414 {
19415 arg2 = wxString_in_helper(obj1);
19416 if (arg2 == NULL) SWIG_fail;
19417 temp2 = true;
19418 }
19419 {
19420 arg3 = &temp3;
19421 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 {
19431 if (temp2)
19432 delete arg2;
19433 }
19434 return resultobj;
19435fail:
19436 {
19437 if (temp2)
19438 delete arg2;
19439 }
19440 return NULL;
19441}
19442
19443
19444SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj = 0;
19446 wxDC *arg1 = (wxDC *) 0 ;
19447 wxString *arg2 = 0 ;
19448 int arg3 ;
19449 int arg4 ;
19450 double arg5 ;
19451 void *argp1 = 0 ;
19452 int res1 = 0 ;
19453 bool temp2 = false ;
19454 int val3 ;
19455 int ecode3 = 0 ;
19456 int val4 ;
19457 int ecode4 = 0 ;
19458 double val5 ;
19459 int ecode5 = 0 ;
19460 PyObject * obj0 = 0 ;
19461 PyObject * obj1 = 0 ;
19462 PyObject * obj2 = 0 ;
19463 PyObject * obj3 = 0 ;
19464 PyObject * obj4 = 0 ;
19465 char * kwnames[] = {
19466 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19467 };
19468
19469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19471 if (!SWIG_IsOK(res1)) {
19472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19473 }
19474 arg1 = reinterpret_cast< wxDC * >(argp1);
19475 {
19476 arg2 = wxString_in_helper(obj1);
19477 if (arg2 == NULL) SWIG_fail;
19478 temp2 = true;
19479 }
19480 ecode3 = SWIG_AsVal_int(obj2, &val3);
19481 if (!SWIG_IsOK(ecode3)) {
19482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19483 }
19484 arg3 = static_cast< int >(val3);
19485 ecode4 = SWIG_AsVal_int(obj3, &val4);
19486 if (!SWIG_IsOK(ecode4)) {
19487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19488 }
19489 arg4 = static_cast< int >(val4);
19490 ecode5 = SWIG_AsVal_double(obj4, &val5);
19491 if (!SWIG_IsOK(ecode5)) {
19492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19493 }
19494 arg5 = static_cast< double >(val5);
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19498 wxPyEndAllowThreads(__tstate);
19499 if (PyErr_Occurred()) SWIG_fail;
19500 }
19501 resultobj = SWIG_Py_Void();
19502 {
19503 if (temp2)
19504 delete arg2;
19505 }
19506 return resultobj;
19507fail:
19508 {
19509 if (temp2)
19510 delete arg2;
19511 }
19512 return NULL;
19513}
19514
19515
19516SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19517 PyObject *resultobj = 0;
19518 wxDC *arg1 = (wxDC *) 0 ;
19519 wxString *arg2 = 0 ;
19520 wxPoint *arg3 = 0 ;
19521 double arg4 ;
19522 void *argp1 = 0 ;
19523 int res1 = 0 ;
19524 bool temp2 = false ;
19525 wxPoint temp3 ;
19526 double val4 ;
19527 int ecode4 = 0 ;
19528 PyObject * obj0 = 0 ;
19529 PyObject * obj1 = 0 ;
19530 PyObject * obj2 = 0 ;
19531 PyObject * obj3 = 0 ;
19532 char * kwnames[] = {
19533 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19534 };
19535
19536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19540 }
19541 arg1 = reinterpret_cast< wxDC * >(argp1);
19542 {
19543 arg2 = wxString_in_helper(obj1);
19544 if (arg2 == NULL) SWIG_fail;
19545 temp2 = true;
19546 }
19547 {
19548 arg3 = &temp3;
19549 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19550 }
19551 ecode4 = SWIG_AsVal_double(obj3, &val4);
19552 if (!SWIG_IsOK(ecode4)) {
19553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19554 }
19555 arg4 = static_cast< double >(val4);
19556 {
19557 PyThreadState* __tstate = wxPyBeginAllowThreads();
19558 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19559 wxPyEndAllowThreads(__tstate);
19560 if (PyErr_Occurred()) SWIG_fail;
19561 }
19562 resultobj = SWIG_Py_Void();
19563 {
19564 if (temp2)
19565 delete arg2;
19566 }
19567 return resultobj;
19568fail:
19569 {
19570 if (temp2)
19571 delete arg2;
19572 }
19573 return NULL;
19574}
19575
19576
19577SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19578 PyObject *resultobj = 0;
19579 wxDC *arg1 = (wxDC *) 0 ;
19580 int arg2 ;
19581 int arg3 ;
19582 int arg4 ;
19583 int arg5 ;
19584 wxDC *arg6 = (wxDC *) 0 ;
19585 int arg7 ;
19586 int arg8 ;
19587 int arg9 = (int) wxCOPY ;
19588 bool arg10 = (bool) false ;
19589 int arg11 = (int) -1 ;
19590 int arg12 = (int) -1 ;
19591 bool result;
19592 void *argp1 = 0 ;
19593 int res1 = 0 ;
19594 int val2 ;
19595 int ecode2 = 0 ;
19596 int val3 ;
19597 int ecode3 = 0 ;
19598 int val4 ;
19599 int ecode4 = 0 ;
19600 int val5 ;
19601 int ecode5 = 0 ;
19602 void *argp6 = 0 ;
19603 int res6 = 0 ;
19604 int val7 ;
19605 int ecode7 = 0 ;
19606 int val8 ;
19607 int ecode8 = 0 ;
19608 int val9 ;
19609 int ecode9 = 0 ;
19610 bool val10 ;
19611 int ecode10 = 0 ;
19612 int val11 ;
19613 int ecode11 = 0 ;
19614 int val12 ;
19615 int ecode12 = 0 ;
19616 PyObject * obj0 = 0 ;
19617 PyObject * obj1 = 0 ;
19618 PyObject * obj2 = 0 ;
19619 PyObject * obj3 = 0 ;
19620 PyObject * obj4 = 0 ;
19621 PyObject * obj5 = 0 ;
19622 PyObject * obj6 = 0 ;
19623 PyObject * obj7 = 0 ;
19624 PyObject * obj8 = 0 ;
19625 PyObject * obj9 = 0 ;
19626 PyObject * obj10 = 0 ;
19627 PyObject * obj11 = 0 ;
19628 char * kwnames[] = {
19629 (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
19630 };
19631
19632 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;
19633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19634 if (!SWIG_IsOK(res1)) {
19635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19636 }
19637 arg1 = reinterpret_cast< wxDC * >(argp1);
19638 ecode2 = SWIG_AsVal_int(obj1, &val2);
19639 if (!SWIG_IsOK(ecode2)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19641 }
19642 arg2 = static_cast< int >(val2);
19643 ecode3 = SWIG_AsVal_int(obj2, &val3);
19644 if (!SWIG_IsOK(ecode3)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19646 }
19647 arg3 = static_cast< int >(val3);
19648 ecode4 = SWIG_AsVal_int(obj3, &val4);
19649 if (!SWIG_IsOK(ecode4)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19651 }
19652 arg4 = static_cast< int >(val4);
19653 ecode5 = SWIG_AsVal_int(obj4, &val5);
19654 if (!SWIG_IsOK(ecode5)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19656 }
19657 arg5 = static_cast< int >(val5);
19658 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19659 if (!SWIG_IsOK(res6)) {
19660 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19661 }
19662 arg6 = reinterpret_cast< wxDC * >(argp6);
19663 ecode7 = SWIG_AsVal_int(obj6, &val7);
19664 if (!SWIG_IsOK(ecode7)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19666 }
19667 arg7 = static_cast< int >(val7);
19668 ecode8 = SWIG_AsVal_int(obj7, &val8);
19669 if (!SWIG_IsOK(ecode8)) {
19670 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19671 }
19672 arg8 = static_cast< int >(val8);
19673 if (obj8) {
19674 ecode9 = SWIG_AsVal_int(obj8, &val9);
19675 if (!SWIG_IsOK(ecode9)) {
19676 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19677 }
19678 arg9 = static_cast< int >(val9);
19679 }
19680 if (obj9) {
19681 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19682 if (!SWIG_IsOK(ecode10)) {
19683 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19684 }
19685 arg10 = static_cast< bool >(val10);
19686 }
19687 if (obj10) {
19688 ecode11 = SWIG_AsVal_int(obj10, &val11);
19689 if (!SWIG_IsOK(ecode11)) {
19690 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19691 }
19692 arg11 = static_cast< int >(val11);
19693 }
19694 if (obj11) {
19695 ecode12 = SWIG_AsVal_int(obj11, &val12);
19696 if (!SWIG_IsOK(ecode12)) {
19697 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19698 }
19699 arg12 = static_cast< int >(val12);
19700 }
19701 {
19702 PyThreadState* __tstate = wxPyBeginAllowThreads();
19703 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19704 wxPyEndAllowThreads(__tstate);
19705 if (PyErr_Occurred()) SWIG_fail;
19706 }
19707 {
19708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19709 }
19710 return resultobj;
19711fail:
19712 return NULL;
19713}
19714
19715
19716SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19717 PyObject *resultobj = 0;
19718 wxDC *arg1 = (wxDC *) 0 ;
19719 wxPoint *arg2 = 0 ;
19720 wxSize *arg3 = 0 ;
19721 wxDC *arg4 = (wxDC *) 0 ;
19722 wxPoint *arg5 = 0 ;
19723 int arg6 = (int) wxCOPY ;
19724 bool arg7 = (bool) false ;
19725 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19726 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19727 bool result;
19728 void *argp1 = 0 ;
19729 int res1 = 0 ;
19730 wxPoint temp2 ;
19731 wxSize temp3 ;
19732 void *argp4 = 0 ;
19733 int res4 = 0 ;
19734 wxPoint temp5 ;
19735 int val6 ;
19736 int ecode6 = 0 ;
19737 bool val7 ;
19738 int ecode7 = 0 ;
19739 wxPoint temp8 ;
19740 PyObject * obj0 = 0 ;
19741 PyObject * obj1 = 0 ;
19742 PyObject * obj2 = 0 ;
19743 PyObject * obj3 = 0 ;
19744 PyObject * obj4 = 0 ;
19745 PyObject * obj5 = 0 ;
19746 PyObject * obj6 = 0 ;
19747 PyObject * obj7 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19756 }
19757 arg1 = reinterpret_cast< wxDC * >(argp1);
19758 {
19759 arg2 = &temp2;
19760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19761 }
19762 {
19763 arg3 = &temp3;
19764 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19765 }
19766 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19767 if (!SWIG_IsOK(res4)) {
19768 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19769 }
19770 arg4 = reinterpret_cast< wxDC * >(argp4);
19771 {
19772 arg5 = &temp5;
19773 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19774 }
19775 if (obj5) {
19776 ecode6 = SWIG_AsVal_int(obj5, &val6);
19777 if (!SWIG_IsOK(ecode6)) {
19778 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19779 }
19780 arg6 = static_cast< int >(val6);
19781 }
19782 if (obj6) {
19783 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19784 if (!SWIG_IsOK(ecode7)) {
19785 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19786 }
19787 arg7 = static_cast< bool >(val7);
19788 }
19789 if (obj7) {
093d3ff1 19790 {
0085ce49
RD
19791 arg8 = &temp8;
19792 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19793 }
0085ce49
RD
19794 }
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 {
19802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19803 }
19804 return resultobj;
19805fail:
19806 return NULL;
19807}
19808
19809
8f514ab4
RD
19810SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19811 PyObject *resultobj = 0;
19812 wxDC *arg1 = (wxDC *) 0 ;
19813 wxRect *arg2 = (wxRect *) NULL ;
19814 SwigValueWrapper<wxBitmap > result;
19815 void *argp1 = 0 ;
19816 int res1 = 0 ;
19817 void *argp2 = 0 ;
19818 int res2 = 0 ;
19819 PyObject * obj0 = 0 ;
19820 PyObject * obj1 = 0 ;
19821 char * kwnames[] = {
19822 (char *) "self",(char *) "subrect", NULL
19823 };
19824
19825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19827 if (!SWIG_IsOK(res1)) {
19828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19829 }
19830 arg1 = reinterpret_cast< wxDC * >(argp1);
19831 if (obj1) {
19832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19833 if (!SWIG_IsOK(res2)) {
19834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19835 }
19836 arg2 = reinterpret_cast< wxRect * >(argp2);
19837 }
19838 {
19839 PyThreadState* __tstate = wxPyBeginAllowThreads();
19840 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19845 return resultobj;
19846fail:
19847 return NULL;
19848}
19849
19850
0085ce49
RD
19851SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19852 PyObject *resultobj = 0;
19853 wxDC *arg1 = (wxDC *) 0 ;
19854 int arg2 ;
19855 int arg3 ;
19856 int arg4 ;
19857 int arg5 ;
19858 void *argp1 = 0 ;
19859 int res1 = 0 ;
19860 int val2 ;
19861 int ecode2 = 0 ;
19862 int val3 ;
19863 int ecode3 = 0 ;
19864 int val4 ;
19865 int ecode4 = 0 ;
19866 int val5 ;
19867 int ecode5 = 0 ;
19868 PyObject * obj0 = 0 ;
19869 PyObject * obj1 = 0 ;
19870 PyObject * obj2 = 0 ;
19871 PyObject * obj3 = 0 ;
19872 PyObject * obj4 = 0 ;
19873 char * kwnames[] = {
19874 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19875 };
19876
19877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19879 if (!SWIG_IsOK(res1)) {
19880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19881 }
19882 arg1 = reinterpret_cast< wxDC * >(argp1);
19883 ecode2 = SWIG_AsVal_int(obj1, &val2);
19884 if (!SWIG_IsOK(ecode2)) {
19885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19886 }
19887 arg2 = static_cast< int >(val2);
19888 ecode3 = SWIG_AsVal_int(obj2, &val3);
19889 if (!SWIG_IsOK(ecode3)) {
19890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19891 }
19892 arg3 = static_cast< int >(val3);
19893 ecode4 = SWIG_AsVal_int(obj3, &val4);
19894 if (!SWIG_IsOK(ecode4)) {
19895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19896 }
19897 arg4 = static_cast< int >(val4);
19898 ecode5 = SWIG_AsVal_int(obj4, &val5);
19899 if (!SWIG_IsOK(ecode5)) {
19900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19901 }
19902 arg5 = static_cast< int >(val5);
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 resultobj = SWIG_Py_Void();
19910 return resultobj;
19911fail:
19912 return NULL;
19913}
19914
19915
19916SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19917 PyObject *resultobj = 0;
19918 wxDC *arg1 = (wxDC *) 0 ;
19919 wxPoint *arg2 = 0 ;
19920 wxSize *arg3 = 0 ;
19921 void *argp1 = 0 ;
19922 int res1 = 0 ;
19923 wxPoint temp2 ;
19924 wxSize temp3 ;
19925 PyObject * obj0 = 0 ;
19926 PyObject * obj1 = 0 ;
19927 PyObject * obj2 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "pt",(char *) "sz", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19936 }
19937 arg1 = reinterpret_cast< wxDC * >(argp1);
19938 {
19939 arg2 = &temp2;
19940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19941 }
19942 {
19943 arg3 = &temp3;
19944 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19945 }
19946 {
19947 PyThreadState* __tstate = wxPyBeginAllowThreads();
19948 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 resultobj = SWIG_Py_Void();
19953 return resultobj;
19954fail:
19955 return NULL;
19956}
19957
19958
19959SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19960 PyObject *resultobj = 0;
19961 wxDC *arg1 = (wxDC *) 0 ;
19962 wxRegion *arg2 = 0 ;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 void *argp2 = 0 ;
19966 int res2 = 0 ;
19967 PyObject * obj0 = 0 ;
19968 PyObject * obj1 = 0 ;
19969 char * kwnames[] = {
19970 (char *) "self",(char *) "region", NULL
19971 };
19972
19973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19975 if (!SWIG_IsOK(res1)) {
19976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19977 }
19978 arg1 = reinterpret_cast< wxDC * >(argp1);
19979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19980 if (!SWIG_IsOK(res2)) {
19981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19982 }
19983 if (!argp2) {
19984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19985 }
19986 arg2 = reinterpret_cast< wxRegion * >(argp2);
19987 {
19988 PyThreadState* __tstate = wxPyBeginAllowThreads();
19989 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 resultobj = SWIG_Py_Void();
19994 return resultobj;
19995fail:
19996 return NULL;
19997}
19998
19999
20000SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20001 PyObject *resultobj = 0;
20002 wxDC *arg1 = (wxDC *) 0 ;
20003 wxRect *arg2 = 0 ;
20004 void *argp1 = 0 ;
20005 int res1 = 0 ;
20006 wxRect temp2 ;
20007 PyObject * obj0 = 0 ;
20008 PyObject * obj1 = 0 ;
20009 char * kwnames[] = {
20010 (char *) "self",(char *) "rect", NULL
20011 };
20012
20013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20015 if (!SWIG_IsOK(res1)) {
20016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20017 }
20018 arg1 = reinterpret_cast< wxDC * >(argp1);
20019 {
20020 arg2 = &temp2;
20021 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20022 }
20023 {
20024 PyThreadState* __tstate = wxPyBeginAllowThreads();
20025 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20026 wxPyEndAllowThreads(__tstate);
20027 if (PyErr_Occurred()) SWIG_fail;
20028 }
20029 resultobj = SWIG_Py_Void();
20030 return resultobj;
20031fail:
20032 return NULL;
20033}
20034
20035
20036SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20037 PyObject *resultobj = 0;
20038 wxDC *arg1 = (wxDC *) 0 ;
20039 int arg2 ;
20040 wxPoint *arg3 = (wxPoint *) 0 ;
20041 int arg4 = (int) 0 ;
20042 int arg5 = (int) 0 ;
20043 void *argp1 = 0 ;
20044 int res1 = 0 ;
20045 int val4 ;
20046 int ecode4 = 0 ;
20047 int val5 ;
20048 int ecode5 = 0 ;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051 PyObject * obj2 = 0 ;
20052 PyObject * obj3 = 0 ;
20053 char * kwnames[] = {
20054 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20055 };
20056
20057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20059 if (!SWIG_IsOK(res1)) {
20060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20061 }
20062 arg1 = reinterpret_cast< wxDC * >(argp1);
20063 {
20064 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20065 if (arg3 == NULL) SWIG_fail;
20066 }
20067 if (obj2) {
20068 ecode4 = SWIG_AsVal_int(obj2, &val4);
20069 if (!SWIG_IsOK(ecode4)) {
20070 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20071 }
20072 arg4 = static_cast< int >(val4);
20073 }
20074 if (obj3) {
20075 ecode5 = SWIG_AsVal_int(obj3, &val5);
20076 if (!SWIG_IsOK(ecode5)) {
20077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20078 }
20079 arg5 = static_cast< int >(val5);
20080 }
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20084 wxPyEndAllowThreads(__tstate);
20085 if (PyErr_Occurred()) SWIG_fail;
20086 }
20087 resultobj = SWIG_Py_Void();
20088 {
20089 if (arg3) delete [] arg3;
20090 }
20091 return resultobj;
20092fail:
20093 {
20094 if (arg3) delete [] arg3;
20095 }
20096 return NULL;
20097}
20098
20099
20100SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj = 0;
20102 wxDC *arg1 = (wxDC *) 0 ;
20103 int arg2 ;
20104 wxPoint *arg3 = (wxPoint *) 0 ;
20105 int arg4 = (int) 0 ;
20106 int arg5 = (int) 0 ;
20107 int arg6 = (int) wxODDEVEN_RULE ;
20108 void *argp1 = 0 ;
20109 int res1 = 0 ;
20110 int val4 ;
20111 int ecode4 = 0 ;
20112 int val5 ;
20113 int ecode5 = 0 ;
20114 int val6 ;
20115 int ecode6 = 0 ;
20116 PyObject * obj0 = 0 ;
20117 PyObject * obj1 = 0 ;
20118 PyObject * obj2 = 0 ;
20119 PyObject * obj3 = 0 ;
20120 PyObject * obj4 = 0 ;
20121 char * kwnames[] = {
20122 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20123 };
20124
20125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20129 }
20130 arg1 = reinterpret_cast< wxDC * >(argp1);
20131 {
20132 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20133 if (arg3 == NULL) SWIG_fail;
20134 }
20135 if (obj2) {
20136 ecode4 = SWIG_AsVal_int(obj2, &val4);
20137 if (!SWIG_IsOK(ecode4)) {
20138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20139 }
20140 arg4 = static_cast< int >(val4);
20141 }
20142 if (obj3) {
20143 ecode5 = SWIG_AsVal_int(obj3, &val5);
20144 if (!SWIG_IsOK(ecode5)) {
20145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20146 }
20147 arg5 = static_cast< int >(val5);
20148 }
20149 if (obj4) {
20150 ecode6 = SWIG_AsVal_int(obj4, &val6);
20151 if (!SWIG_IsOK(ecode6)) {
20152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20153 }
20154 arg6 = static_cast< int >(val6);
20155 }
20156 {
20157 PyThreadState* __tstate = wxPyBeginAllowThreads();
20158 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20159 wxPyEndAllowThreads(__tstate);
20160 if (PyErr_Occurred()) SWIG_fail;
20161 }
20162 resultobj = SWIG_Py_Void();
20163 {
20164 if (arg3) delete [] arg3;
20165 }
20166 return resultobj;
20167fail:
20168 {
20169 if (arg3) delete [] arg3;
20170 }
20171 return NULL;
20172}
20173
20174
20175SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20176 PyObject *resultobj = 0;
20177 wxDC *arg1 = (wxDC *) 0 ;
20178 wxString *arg2 = 0 ;
20179 wxRect *arg3 = 0 ;
20180 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20181 int arg5 = (int) -1 ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 bool temp2 = false ;
20185 wxRect temp3 ;
20186 int val4 ;
20187 int ecode4 = 0 ;
20188 int val5 ;
20189 int ecode5 = 0 ;
20190 PyObject * obj0 = 0 ;
20191 PyObject * obj1 = 0 ;
20192 PyObject * obj2 = 0 ;
20193 PyObject * obj3 = 0 ;
20194 PyObject * obj4 = 0 ;
20195 char * kwnames[] = {
20196 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20197 };
20198
20199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20201 if (!SWIG_IsOK(res1)) {
20202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20203 }
20204 arg1 = reinterpret_cast< wxDC * >(argp1);
20205 {
20206 arg2 = wxString_in_helper(obj1);
20207 if (arg2 == NULL) SWIG_fail;
20208 temp2 = true;
20209 }
20210 {
20211 arg3 = &temp3;
20212 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20213 }
20214 if (obj3) {
20215 ecode4 = SWIG_AsVal_int(obj3, &val4);
20216 if (!SWIG_IsOK(ecode4)) {
20217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20218 }
20219 arg4 = static_cast< int >(val4);
20220 }
20221 if (obj4) {
20222 ecode5 = SWIG_AsVal_int(obj4, &val5);
20223 if (!SWIG_IsOK(ecode5)) {
20224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20225 }
20226 arg5 = static_cast< int >(val5);
20227 }
20228 {
20229 PyThreadState* __tstate = wxPyBeginAllowThreads();
20230 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 resultobj = SWIG_Py_Void();
20235 {
20236 if (temp2)
20237 delete arg2;
20238 }
20239 return resultobj;
20240fail:
20241 {
20242 if (temp2)
20243 delete arg2;
20244 }
20245 return NULL;
20246}
20247
20248
20249SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20250 PyObject *resultobj = 0;
20251 wxDC *arg1 = (wxDC *) 0 ;
20252 wxString *arg2 = 0 ;
20253 wxBitmap *arg3 = 0 ;
20254 wxRect *arg4 = 0 ;
20255 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20256 int arg6 = (int) -1 ;
20257 wxRect result;
20258 void *argp1 = 0 ;
20259 int res1 = 0 ;
20260 bool temp2 = false ;
20261 void *argp3 = 0 ;
20262 int res3 = 0 ;
20263 wxRect temp4 ;
20264 int val5 ;
20265 int ecode5 = 0 ;
20266 int val6 ;
20267 int ecode6 = 0 ;
20268 PyObject * obj0 = 0 ;
20269 PyObject * obj1 = 0 ;
20270 PyObject * obj2 = 0 ;
20271 PyObject * obj3 = 0 ;
20272 PyObject * obj4 = 0 ;
20273 PyObject * obj5 = 0 ;
20274 char * kwnames[] = {
20275 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20276 };
20277
20278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20280 if (!SWIG_IsOK(res1)) {
20281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20282 }
20283 arg1 = reinterpret_cast< wxDC * >(argp1);
20284 {
20285 arg2 = wxString_in_helper(obj1);
20286 if (arg2 == NULL) SWIG_fail;
20287 temp2 = true;
20288 }
20289 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20290 if (!SWIG_IsOK(res3)) {
20291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20292 }
20293 if (!argp3) {
20294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20295 }
20296 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20297 {
20298 arg4 = &temp4;
20299 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20300 }
20301 if (obj4) {
20302 ecode5 = SWIG_AsVal_int(obj4, &val5);
20303 if (!SWIG_IsOK(ecode5)) {
20304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20305 }
20306 arg5 = static_cast< int >(val5);
20307 }
20308 if (obj5) {
20309 ecode6 = SWIG_AsVal_int(obj5, &val6);
20310 if (!SWIG_IsOK(ecode6)) {
20311 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20312 }
20313 arg6 = static_cast< int >(val6);
20314 }
20315 {
20316 PyThreadState* __tstate = wxPyBeginAllowThreads();
20317 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20318 wxPyEndAllowThreads(__tstate);
20319 if (PyErr_Occurred()) SWIG_fail;
20320 }
20321 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20322 {
20323 if (temp2)
20324 delete arg2;
20325 }
20326 return resultobj;
20327fail:
20328 {
20329 if (temp2)
20330 delete arg2;
20331 }
20332 return NULL;
20333}
20334
20335
20336SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20337 PyObject *resultobj = 0;
20338 wxDC *arg1 = (wxDC *) 0 ;
20339 int arg2 ;
20340 wxPoint *arg3 = (wxPoint *) 0 ;
20341 void *argp1 = 0 ;
20342 int res1 = 0 ;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345 char * kwnames[] = {
20346 (char *) "self",(char *) "points", NULL
20347 };
20348
20349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20351 if (!SWIG_IsOK(res1)) {
20352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20353 }
20354 arg1 = reinterpret_cast< wxDC * >(argp1);
20355 {
20356 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20357 if (arg3 == NULL) SWIG_fail;
20358 }
20359 {
20360 PyThreadState* __tstate = wxPyBeginAllowThreads();
20361 (arg1)->DrawSpline(arg2,arg3);
20362 wxPyEndAllowThreads(__tstate);
20363 if (PyErr_Occurred()) SWIG_fail;
20364 }
20365 resultobj = SWIG_Py_Void();
20366 {
20367 if (arg3) delete [] arg3;
20368 }
20369 return resultobj;
20370fail:
20371 {
20372 if (arg3) delete [] arg3;
20373 }
20374 return NULL;
20375}
20376
20377
20378SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20379 PyObject *resultobj = 0;
20380 wxDC *arg1 = (wxDC *) 0 ;
20381 void *argp1 = 0 ;
20382 int res1 = 0 ;
20383 PyObject *swig_obj[1] ;
20384
20385 if (!args) SWIG_fail;
20386 swig_obj[0] = args;
20387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20388 if (!SWIG_IsOK(res1)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20390 }
20391 arg1 = reinterpret_cast< wxDC * >(argp1);
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
20394 (arg1)->Clear();
20395 wxPyEndAllowThreads(__tstate);
20396 if (PyErr_Occurred()) SWIG_fail;
20397 }
20398 resultobj = SWIG_Py_Void();
20399 return resultobj;
20400fail:
20401 return NULL;
20402}
20403
20404
20405SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20406 PyObject *resultobj = 0;
20407 wxDC *arg1 = (wxDC *) 0 ;
20408 wxString *arg2 = 0 ;
20409 bool result;
20410 void *argp1 = 0 ;
20411 int res1 = 0 ;
20412 bool temp2 = false ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 char * kwnames[] = {
20416 (char *) "self",(char *) "message", NULL
20417 };
20418
20419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20421 if (!SWIG_IsOK(res1)) {
20422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20423 }
20424 arg1 = reinterpret_cast< wxDC * >(argp1);
20425 {
20426 arg2 = wxString_in_helper(obj1);
20427 if (arg2 == NULL) SWIG_fail;
20428 temp2 = true;
20429 }
20430 {
20431 PyThreadState* __tstate = wxPyBeginAllowThreads();
20432 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20433 wxPyEndAllowThreads(__tstate);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 }
20436 {
20437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20438 }
20439 {
20440 if (temp2)
20441 delete arg2;
20442 }
20443 return resultobj;
20444fail:
20445 {
20446 if (temp2)
20447 delete arg2;
20448 }
20449 return NULL;
20450}
20451
20452
20453SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20454 PyObject *resultobj = 0;
20455 wxDC *arg1 = (wxDC *) 0 ;
20456 void *argp1 = 0 ;
20457 int res1 = 0 ;
20458 PyObject *swig_obj[1] ;
20459
20460 if (!args) SWIG_fail;
20461 swig_obj[0] = args;
20462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20463 if (!SWIG_IsOK(res1)) {
20464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20465 }
20466 arg1 = reinterpret_cast< wxDC * >(argp1);
20467 {
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 (arg1)->EndDoc();
20470 wxPyEndAllowThreads(__tstate);
20471 if (PyErr_Occurred()) SWIG_fail;
20472 }
20473 resultobj = SWIG_Py_Void();
20474 return resultobj;
20475fail:
20476 return NULL;
20477}
20478
20479
20480SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20481 PyObject *resultobj = 0;
20482 wxDC *arg1 = (wxDC *) 0 ;
20483 void *argp1 = 0 ;
20484 int res1 = 0 ;
20485 PyObject *swig_obj[1] ;
20486
20487 if (!args) SWIG_fail;
20488 swig_obj[0] = args;
20489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20490 if (!SWIG_IsOK(res1)) {
20491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20492 }
20493 arg1 = reinterpret_cast< wxDC * >(argp1);
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 (arg1)->StartPage();
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_Py_Void();
20501 return resultobj;
20502fail:
20503 return NULL;
20504}
20505
20506
20507SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20508 PyObject *resultobj = 0;
20509 wxDC *arg1 = (wxDC *) 0 ;
20510 void *argp1 = 0 ;
20511 int res1 = 0 ;
20512 PyObject *swig_obj[1] ;
20513
20514 if (!args) SWIG_fail;
20515 swig_obj[0] = args;
20516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20517 if (!SWIG_IsOK(res1)) {
20518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20519 }
20520 arg1 = reinterpret_cast< wxDC * >(argp1);
20521 {
20522 PyThreadState* __tstate = wxPyBeginAllowThreads();
20523 (arg1)->EndPage();
20524 wxPyEndAllowThreads(__tstate);
20525 if (PyErr_Occurred()) SWIG_fail;
20526 }
20527 resultobj = SWIG_Py_Void();
20528 return resultobj;
20529fail:
20530 return NULL;
20531}
20532
20533
20534SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20535 PyObject *resultobj = 0;
20536 wxDC *arg1 = (wxDC *) 0 ;
20537 wxFont *arg2 = 0 ;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 void *argp2 = 0 ;
20541 int res2 = 0 ;
20542 PyObject * obj0 = 0 ;
20543 PyObject * obj1 = 0 ;
20544 char * kwnames[] = {
20545 (char *) "self",(char *) "font", NULL
20546 };
20547
20548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20550 if (!SWIG_IsOK(res1)) {
20551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20552 }
20553 arg1 = reinterpret_cast< wxDC * >(argp1);
20554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20555 if (!SWIG_IsOK(res2)) {
20556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20557 }
20558 if (!argp2) {
20559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20560 }
20561 arg2 = reinterpret_cast< wxFont * >(argp2);
20562 {
20563 PyThreadState* __tstate = wxPyBeginAllowThreads();
20564 (arg1)->SetFont((wxFont const &)*arg2);
20565 wxPyEndAllowThreads(__tstate);
20566 if (PyErr_Occurred()) SWIG_fail;
20567 }
20568 resultobj = SWIG_Py_Void();
20569 return resultobj;
20570fail:
20571 return NULL;
20572}
20573
20574
20575SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20576 PyObject *resultobj = 0;
20577 wxDC *arg1 = (wxDC *) 0 ;
20578 wxPen *arg2 = 0 ;
20579 void *argp1 = 0 ;
20580 int res1 = 0 ;
20581 void *argp2 = 0 ;
20582 int res2 = 0 ;
20583 PyObject * obj0 = 0 ;
20584 PyObject * obj1 = 0 ;
20585 char * kwnames[] = {
20586 (char *) "self",(char *) "pen", NULL
20587 };
20588
20589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20591 if (!SWIG_IsOK(res1)) {
20592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20593 }
20594 arg1 = reinterpret_cast< wxDC * >(argp1);
20595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20596 if (!SWIG_IsOK(res2)) {
20597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20598 }
20599 if (!argp2) {
20600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20601 }
20602 arg2 = reinterpret_cast< wxPen * >(argp2);
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 (arg1)->SetPen((wxPen const &)*arg2);
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 resultobj = SWIG_Py_Void();
20610 return resultobj;
20611fail:
20612 return NULL;
20613}
20614
20615
20616SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxDC *arg1 = (wxDC *) 0 ;
20619 wxBrush *arg2 = 0 ;
20620 void *argp1 = 0 ;
20621 int res1 = 0 ;
20622 void *argp2 = 0 ;
20623 int res2 = 0 ;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 char * kwnames[] = {
20627 (char *) "self",(char *) "brush", NULL
20628 };
20629
20630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20632 if (!SWIG_IsOK(res1)) {
20633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20634 }
20635 arg1 = reinterpret_cast< wxDC * >(argp1);
20636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20637 if (!SWIG_IsOK(res2)) {
20638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20639 }
20640 if (!argp2) {
20641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20642 }
20643 arg2 = reinterpret_cast< wxBrush * >(argp2);
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 (arg1)->SetBrush((wxBrush const &)*arg2);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_Py_Void();
20651 return resultobj;
20652fail:
20653 return NULL;
20654}
20655
20656
20657SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj = 0;
20659 wxDC *arg1 = (wxDC *) 0 ;
20660 wxBrush *arg2 = 0 ;
20661 void *argp1 = 0 ;
20662 int res1 = 0 ;
20663 void *argp2 = 0 ;
20664 int res2 = 0 ;
20665 PyObject * obj0 = 0 ;
20666 PyObject * obj1 = 0 ;
20667 char * kwnames[] = {
20668 (char *) "self",(char *) "brush", NULL
20669 };
20670
20671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20673 if (!SWIG_IsOK(res1)) {
20674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20675 }
20676 arg1 = reinterpret_cast< wxDC * >(argp1);
20677 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20678 if (!SWIG_IsOK(res2)) {
20679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20680 }
20681 if (!argp2) {
20682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20683 }
20684 arg2 = reinterpret_cast< wxBrush * >(argp2);
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 (arg1)->SetBackground((wxBrush const &)*arg2);
20688 wxPyEndAllowThreads(__tstate);
20689 if (PyErr_Occurred()) SWIG_fail;
20690 }
20691 resultobj = SWIG_Py_Void();
20692 return resultobj;
20693fail:
20694 return NULL;
20695}
20696
20697
20698SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20699 PyObject *resultobj = 0;
20700 wxDC *arg1 = (wxDC *) 0 ;
20701 int arg2 ;
20702 void *argp1 = 0 ;
20703 int res1 = 0 ;
20704 int val2 ;
20705 int ecode2 = 0 ;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708 char * kwnames[] = {
20709 (char *) "self",(char *) "mode", NULL
20710 };
20711
20712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20714 if (!SWIG_IsOK(res1)) {
20715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20716 }
20717 arg1 = reinterpret_cast< wxDC * >(argp1);
20718 ecode2 = SWIG_AsVal_int(obj1, &val2);
20719 if (!SWIG_IsOK(ecode2)) {
20720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20721 }
20722 arg2 = static_cast< int >(val2);
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 (arg1)->SetBackgroundMode(arg2);
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 resultobj = SWIG_Py_Void();
20730 return resultobj;
20731fail:
20732 return NULL;
20733}
20734
20735
20736SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj = 0;
20738 wxDC *arg1 = (wxDC *) 0 ;
20739 wxPalette *arg2 = 0 ;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 void *argp2 = 0 ;
20743 int res2 = 0 ;
20744 PyObject * obj0 = 0 ;
20745 PyObject * obj1 = 0 ;
20746 char * kwnames[] = {
20747 (char *) "self",(char *) "palette", NULL
20748 };
20749
20750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20752 if (!SWIG_IsOK(res1)) {
20753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20754 }
20755 arg1 = reinterpret_cast< wxDC * >(argp1);
20756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20757 if (!SWIG_IsOK(res2)) {
20758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20759 }
20760 if (!argp2) {
20761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20762 }
20763 arg2 = reinterpret_cast< wxPalette * >(argp2);
20764 {
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 (arg1)->SetPalette((wxPalette const &)*arg2);
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_Py_Void();
20771 return resultobj;
20772fail:
20773 return NULL;
20774}
20775
20776
20777SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20778 PyObject *resultobj = 0;
20779 wxDC *arg1 = (wxDC *) 0 ;
20780 void *argp1 = 0 ;
20781 int res1 = 0 ;
20782 PyObject *swig_obj[1] ;
20783
20784 if (!args) SWIG_fail;
20785 swig_obj[0] = args;
20786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20787 if (!SWIG_IsOK(res1)) {
20788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20789 }
20790 arg1 = reinterpret_cast< wxDC * >(argp1);
20791 {
20792 PyThreadState* __tstate = wxPyBeginAllowThreads();
20793 (arg1)->DestroyClippingRegion();
20794 wxPyEndAllowThreads(__tstate);
20795 if (PyErr_Occurred()) SWIG_fail;
20796 }
20797 resultobj = SWIG_Py_Void();
20798 return resultobj;
20799fail:
20800 return NULL;
20801}
20802
20803
20804SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20805 PyObject *resultobj = 0;
20806 wxDC *arg1 = (wxDC *) 0 ;
20807 int *arg2 = (int *) 0 ;
20808 int *arg3 = (int *) 0 ;
20809 int *arg4 = (int *) 0 ;
20810 int *arg5 = (int *) 0 ;
20811 void *argp1 = 0 ;
20812 int res1 = 0 ;
20813 int temp2 ;
20814 int res2 = SWIG_TMPOBJ ;
20815 int temp3 ;
20816 int res3 = SWIG_TMPOBJ ;
20817 int temp4 ;
20818 int res4 = SWIG_TMPOBJ ;
20819 int temp5 ;
20820 int res5 = SWIG_TMPOBJ ;
20821 PyObject *swig_obj[1] ;
20822
20823 arg2 = &temp2;
20824 arg3 = &temp3;
20825 arg4 = &temp4;
20826 arg5 = &temp5;
20827 if (!args) SWIG_fail;
20828 swig_obj[0] = args;
20829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20830 if (!SWIG_IsOK(res1)) {
20831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20832 }
20833 arg1 = reinterpret_cast< wxDC * >(argp1);
20834 {
20835 PyThreadState* __tstate = wxPyBeginAllowThreads();
20836 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20837 wxPyEndAllowThreads(__tstate);
20838 if (PyErr_Occurred()) SWIG_fail;
20839 }
20840 resultobj = SWIG_Py_Void();
20841 if (SWIG_IsTmpObj(res2)) {
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20843 } else {
20844 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20846 }
20847 if (SWIG_IsTmpObj(res3)) {
20848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20849 } else {
20850 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20852 }
20853 if (SWIG_IsTmpObj(res4)) {
20854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20855 } else {
20856 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20858 }
20859 if (SWIG_IsTmpObj(res5)) {
20860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20861 } else {
20862 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20864 }
20865 return resultobj;
20866fail:
20867 return NULL;
20868}
20869
20870
20871SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20872 PyObject *resultobj = 0;
20873 wxDC *arg1 = (wxDC *) 0 ;
20874 wxRect result;
20875 void *argp1 = 0 ;
20876 int res1 = 0 ;
20877 PyObject *swig_obj[1] ;
20878
20879 if (!args) SWIG_fail;
20880 swig_obj[0] = args;
20881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20882 if (!SWIG_IsOK(res1)) {
20883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20884 }
20885 arg1 = reinterpret_cast< wxDC * >(argp1);
20886 {
20887 PyThreadState* __tstate = wxPyBeginAllowThreads();
20888 result = wxDC_GetClippingRect(arg1);
20889 wxPyEndAllowThreads(__tstate);
20890 if (PyErr_Occurred()) SWIG_fail;
20891 }
20892 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20893 return resultobj;
20894fail:
20895 return NULL;
20896}
20897
20898
20899SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20900 PyObject *resultobj = 0;
20901 wxDC *arg1 = (wxDC *) 0 ;
20902 int result;
20903 void *argp1 = 0 ;
20904 int res1 = 0 ;
20905 PyObject *swig_obj[1] ;
20906
20907 if (!args) SWIG_fail;
20908 swig_obj[0] = args;
20909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20910 if (!SWIG_IsOK(res1)) {
20911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20912 }
20913 arg1 = reinterpret_cast< wxDC * >(argp1);
20914 {
20915 PyThreadState* __tstate = wxPyBeginAllowThreads();
20916 result = (int)((wxDC const *)arg1)->GetCharHeight();
20917 wxPyEndAllowThreads(__tstate);
20918 if (PyErr_Occurred()) SWIG_fail;
20919 }
20920 resultobj = SWIG_From_int(static_cast< int >(result));
20921 return resultobj;
20922fail:
20923 return NULL;
20924}
20925
20926
20927SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20928 PyObject *resultobj = 0;
20929 wxDC *arg1 = (wxDC *) 0 ;
20930 int result;
20931 void *argp1 = 0 ;
20932 int res1 = 0 ;
20933 PyObject *swig_obj[1] ;
20934
20935 if (!args) SWIG_fail;
20936 swig_obj[0] = args;
20937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20940 }
20941 arg1 = reinterpret_cast< wxDC * >(argp1);
20942 {
20943 PyThreadState* __tstate = wxPyBeginAllowThreads();
20944 result = (int)((wxDC const *)arg1)->GetCharWidth();
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_From_int(static_cast< int >(result));
20949 return resultobj;
20950fail:
20951 return NULL;
20952}
20953
20954
20955SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj = 0;
20957 wxDC *arg1 = (wxDC *) 0 ;
20958 wxString *arg2 = 0 ;
20959 int *arg3 = (int *) 0 ;
20960 int *arg4 = (int *) 0 ;
20961 void *argp1 = 0 ;
20962 int res1 = 0 ;
20963 bool temp2 = false ;
20964 int temp3 ;
20965 int res3 = SWIG_TMPOBJ ;
20966 int temp4 ;
20967 int res4 = SWIG_TMPOBJ ;
20968 PyObject * obj0 = 0 ;
20969 PyObject * obj1 = 0 ;
20970 char * kwnames[] = {
20971 (char *) "self",(char *) "string", NULL
20972 };
20973
20974 arg3 = &temp3;
20975 arg4 = &temp4;
20976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20978 if (!SWIG_IsOK(res1)) {
20979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20980 }
20981 arg1 = reinterpret_cast< wxDC * >(argp1);
20982 {
20983 arg2 = wxString_in_helper(obj1);
20984 if (arg2 == NULL) SWIG_fail;
20985 temp2 = true;
20986 }
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = SWIG_Py_Void();
20994 if (SWIG_IsTmpObj(res3)) {
20995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20996 } else {
20997 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20999 }
21000 if (SWIG_IsTmpObj(res4)) {
21001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21002 } else {
21003 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21005 }
21006 {
21007 if (temp2)
21008 delete arg2;
21009 }
21010 return resultobj;
21011fail:
21012 {
21013 if (temp2)
21014 delete arg2;
21015 }
21016 return NULL;
21017}
21018
21019
21020SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21021 PyObject *resultobj = 0;
21022 wxDC *arg1 = (wxDC *) 0 ;
21023 wxString *arg2 = 0 ;
21024 int *arg3 = (int *) 0 ;
21025 int *arg4 = (int *) 0 ;
21026 int *arg5 = (int *) 0 ;
21027 int *arg6 = (int *) 0 ;
21028 wxFont *arg7 = (wxFont *) NULL ;
21029 void *argp1 = 0 ;
21030 int res1 = 0 ;
21031 bool temp2 = false ;
21032 int temp3 ;
21033 int res3 = SWIG_TMPOBJ ;
21034 int temp4 ;
21035 int res4 = SWIG_TMPOBJ ;
21036 int temp5 ;
21037 int res5 = SWIG_TMPOBJ ;
21038 int temp6 ;
21039 int res6 = SWIG_TMPOBJ ;
21040 void *argp7 = 0 ;
21041 int res7 = 0 ;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044 PyObject * obj2 = 0 ;
21045 char * kwnames[] = {
21046 (char *) "self",(char *) "string",(char *) "font", NULL
21047 };
21048
21049 arg3 = &temp3;
21050 arg4 = &temp4;
21051 arg5 = &temp5;
21052 arg6 = &temp6;
21053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21055 if (!SWIG_IsOK(res1)) {
21056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21057 }
21058 arg1 = reinterpret_cast< wxDC * >(argp1);
21059 {
21060 arg2 = wxString_in_helper(obj1);
21061 if (arg2 == NULL) SWIG_fail;
21062 temp2 = true;
21063 }
21064 if (obj2) {
21065 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21066 if (!SWIG_IsOK(res7)) {
21067 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21068 }
0085ce49
RD
21069 arg7 = reinterpret_cast< wxFont * >(argp7);
21070 }
21071 {
21072 PyThreadState* __tstate = wxPyBeginAllowThreads();
21073 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 resultobj = SWIG_Py_Void();
21078 if (SWIG_IsTmpObj(res3)) {
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21080 } else {
21081 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21083 }
21084 if (SWIG_IsTmpObj(res4)) {
21085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21086 } else {
21087 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21089 }
21090 if (SWIG_IsTmpObj(res5)) {
21091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21092 } else {
21093 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21095 }
21096 if (SWIG_IsTmpObj(res6)) {
21097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21098 } else {
21099 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21101 }
21102 {
21103 if (temp2)
21104 delete arg2;
21105 }
21106 return resultobj;
21107fail:
21108 {
21109 if (temp2)
21110 delete arg2;
21111 }
21112 return NULL;
21113}
21114
21115
21116SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21117 PyObject *resultobj = 0;
21118 wxDC *arg1 = (wxDC *) 0 ;
21119 wxString *arg2 = 0 ;
21120 int *arg3 = (int *) 0 ;
21121 int *arg4 = (int *) 0 ;
21122 int *arg5 = (int *) 0 ;
21123 wxFont *arg6 = (wxFont *) NULL ;
21124 void *argp1 = 0 ;
21125 int res1 = 0 ;
21126 bool temp2 = false ;
21127 int temp3 ;
21128 int res3 = SWIG_TMPOBJ ;
21129 int temp4 ;
21130 int res4 = SWIG_TMPOBJ ;
21131 int temp5 ;
21132 int res5 = SWIG_TMPOBJ ;
21133 void *argp6 = 0 ;
21134 int res6 = 0 ;
21135 PyObject * obj0 = 0 ;
21136 PyObject * obj1 = 0 ;
21137 PyObject * obj2 = 0 ;
21138 char * kwnames[] = {
21139 (char *) "self",(char *) "text",(char *) "font", NULL
21140 };
21141
21142 arg3 = &temp3;
21143 arg4 = &temp4;
21144 arg5 = &temp5;
21145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21147 if (!SWIG_IsOK(res1)) {
21148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21149 }
21150 arg1 = reinterpret_cast< wxDC * >(argp1);
21151 {
21152 arg2 = wxString_in_helper(obj1);
21153 if (arg2 == NULL) SWIG_fail;
21154 temp2 = true;
21155 }
21156 if (obj2) {
21157 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21158 if (!SWIG_IsOK(res6)) {
21159 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21160 }
0085ce49
RD
21161 arg6 = reinterpret_cast< wxFont * >(argp6);
21162 }
21163 {
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21166 wxPyEndAllowThreads(__tstate);
21167 if (PyErr_Occurred()) SWIG_fail;
21168 }
21169 resultobj = SWIG_Py_Void();
21170 if (SWIG_IsTmpObj(res3)) {
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21172 } else {
21173 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21175 }
21176 if (SWIG_IsTmpObj(res4)) {
21177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21178 } else {
21179 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21181 }
21182 if (SWIG_IsTmpObj(res5)) {
21183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21184 } else {
21185 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21187 }
21188 {
21189 if (temp2)
21190 delete arg2;
21191 }
21192 return resultobj;
21193fail:
21194 {
21195 if (temp2)
21196 delete arg2;
21197 }
21198 return NULL;
21199}
21200
21201
21202SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21203 PyObject *resultobj = 0;
21204 wxDC *arg1 = (wxDC *) 0 ;
21205 wxString *arg2 = 0 ;
21206 wxArrayInt result;
21207 void *argp1 = 0 ;
21208 int res1 = 0 ;
21209 bool temp2 = false ;
21210 PyObject * obj0 = 0 ;
21211 PyObject * obj1 = 0 ;
21212 char * kwnames[] = {
21213 (char *) "self",(char *) "text", NULL
21214 };
21215
21216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21218 if (!SWIG_IsOK(res1)) {
21219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21220 }
21221 arg1 = reinterpret_cast< wxDC * >(argp1);
21222 {
21223 arg2 = wxString_in_helper(obj1);
21224 if (arg2 == NULL) SWIG_fail;
21225 temp2 = true;
21226 }
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21230 wxPyEndAllowThreads(__tstate);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
21233 {
b39fe951 21234 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
21235 }
21236 {
21237 if (temp2)
21238 delete arg2;
21239 }
21240 return resultobj;
21241fail:
21242 {
21243 if (temp2)
21244 delete arg2;
21245 }
21246 return NULL;
21247}
21248
21249
21250SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21251 PyObject *resultobj = 0;
21252 wxDC *arg1 = (wxDC *) 0 ;
21253 wxSize result;
21254 void *argp1 = 0 ;
21255 int res1 = 0 ;
21256 PyObject *swig_obj[1] ;
21257
21258 if (!args) SWIG_fail;
21259 swig_obj[0] = args;
21260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21261 if (!SWIG_IsOK(res1)) {
21262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21263 }
21264 arg1 = reinterpret_cast< wxDC * >(argp1);
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 result = (arg1)->GetSize();
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21272 return resultobj;
21273fail:
21274 return NULL;
21275}
21276
21277
21278SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21279 PyObject *resultobj = 0;
21280 wxDC *arg1 = (wxDC *) 0 ;
21281 int *arg2 = (int *) 0 ;
21282 int *arg3 = (int *) 0 ;
21283 void *argp1 = 0 ;
21284 int res1 = 0 ;
21285 int temp2 ;
21286 int res2 = SWIG_TMPOBJ ;
21287 int temp3 ;
21288 int res3 = SWIG_TMPOBJ ;
21289 PyObject *swig_obj[1] ;
21290
21291 arg2 = &temp2;
21292 arg3 = &temp3;
21293 if (!args) SWIG_fail;
21294 swig_obj[0] = args;
21295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21296 if (!SWIG_IsOK(res1)) {
21297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21298 }
21299 arg1 = reinterpret_cast< wxDC * >(argp1);
21300 {
21301 PyThreadState* __tstate = wxPyBeginAllowThreads();
21302 (arg1)->GetSize(arg2,arg3);
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 resultobj = SWIG_Py_Void();
21307 if (SWIG_IsTmpObj(res2)) {
21308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21309 } else {
21310 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21312 }
21313 if (SWIG_IsTmpObj(res3)) {
21314 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21315 } else {
21316 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21317 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21318 }
21319 return resultobj;
21320fail:
21321 return NULL;
21322}
21323
21324
21325SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21326 PyObject *resultobj = 0;
21327 wxDC *arg1 = (wxDC *) 0 ;
21328 wxSize result;
21329 void *argp1 = 0 ;
21330 int res1 = 0 ;
21331 PyObject *swig_obj[1] ;
21332
21333 if (!args) SWIG_fail;
21334 swig_obj[0] = args;
21335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21336 if (!SWIG_IsOK(res1)) {
21337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21338 }
21339 arg1 = reinterpret_cast< wxDC * >(argp1);
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 result = ((wxDC const *)arg1)->GetSizeMM();
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21347 return resultobj;
21348fail:
21349 return NULL;
21350}
21351
21352
21353SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21354 PyObject *resultobj = 0;
21355 wxDC *arg1 = (wxDC *) 0 ;
21356 int *arg2 = (int *) 0 ;
21357 int *arg3 = (int *) 0 ;
21358 void *argp1 = 0 ;
21359 int res1 = 0 ;
21360 int temp2 ;
21361 int res2 = SWIG_TMPOBJ ;
21362 int temp3 ;
21363 int res3 = SWIG_TMPOBJ ;
21364 PyObject *swig_obj[1] ;
21365
21366 arg2 = &temp2;
21367 arg3 = &temp3;
21368 if (!args) SWIG_fail;
21369 swig_obj[0] = args;
21370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21371 if (!SWIG_IsOK(res1)) {
21372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21373 }
21374 arg1 = reinterpret_cast< wxDC * >(argp1);
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21378 wxPyEndAllowThreads(__tstate);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 resultobj = SWIG_Py_Void();
21382 if (SWIG_IsTmpObj(res2)) {
21383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21384 } else {
21385 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21387 }
21388 if (SWIG_IsTmpObj(res3)) {
21389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21390 } else {
21391 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21393 }
21394 return resultobj;
21395fail:
21396 return NULL;
21397}
21398
21399
21400SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21401 PyObject *resultobj = 0;
21402 wxDC *arg1 = (wxDC *) 0 ;
21403 int arg2 ;
21404 int result;
21405 void *argp1 = 0 ;
21406 int res1 = 0 ;
21407 int val2 ;
21408 int ecode2 = 0 ;
21409 PyObject * obj0 = 0 ;
21410 PyObject * obj1 = 0 ;
21411 char * kwnames[] = {
21412 (char *) "self",(char *) "x", NULL
21413 };
21414
21415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21417 if (!SWIG_IsOK(res1)) {
21418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21419 }
21420 arg1 = reinterpret_cast< wxDC * >(argp1);
21421 ecode2 = SWIG_AsVal_int(obj1, &val2);
21422 if (!SWIG_IsOK(ecode2)) {
21423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21424 }
21425 arg2 = static_cast< int >(val2);
21426 {
21427 PyThreadState* __tstate = wxPyBeginAllowThreads();
21428 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 resultobj = SWIG_From_int(static_cast< int >(result));
21433 return resultobj;
21434fail:
21435 return NULL;
21436}
21437
21438
21439SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21440 PyObject *resultobj = 0;
21441 wxDC *arg1 = (wxDC *) 0 ;
21442 int arg2 ;
21443 int result;
21444 void *argp1 = 0 ;
21445 int res1 = 0 ;
21446 int val2 ;
21447 int ecode2 = 0 ;
21448 PyObject * obj0 = 0 ;
21449 PyObject * obj1 = 0 ;
21450 char * kwnames[] = {
21451 (char *) "self",(char *) "y", NULL
21452 };
21453
21454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21456 if (!SWIG_IsOK(res1)) {
21457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21458 }
21459 arg1 = reinterpret_cast< wxDC * >(argp1);
21460 ecode2 = SWIG_AsVal_int(obj1, &val2);
21461 if (!SWIG_IsOK(ecode2)) {
21462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21463 }
21464 arg2 = static_cast< int >(val2);
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_From_int(static_cast< int >(result));
21472 return resultobj;
21473fail:
21474 return NULL;
21475}
21476
21477
21478SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj = 0;
21480 wxDC *arg1 = (wxDC *) 0 ;
21481 int arg2 ;
21482 int result;
21483 void *argp1 = 0 ;
21484 int res1 = 0 ;
21485 int val2 ;
21486 int ecode2 = 0 ;
21487 PyObject * obj0 = 0 ;
21488 PyObject * obj1 = 0 ;
21489 char * kwnames[] = {
21490 (char *) "self",(char *) "x", NULL
21491 };
21492
21493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21495 if (!SWIG_IsOK(res1)) {
21496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21497 }
21498 arg1 = reinterpret_cast< wxDC * >(argp1);
21499 ecode2 = SWIG_AsVal_int(obj1, &val2);
21500 if (!SWIG_IsOK(ecode2)) {
21501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21502 }
21503 arg2 = static_cast< int >(val2);
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_From_int(static_cast< int >(result));
21511 return resultobj;
21512fail:
21513 return NULL;
21514}
21515
21516
21517SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj = 0;
21519 wxDC *arg1 = (wxDC *) 0 ;
21520 int arg2 ;
21521 int result;
21522 void *argp1 = 0 ;
21523 int res1 = 0 ;
21524 int val2 ;
21525 int ecode2 = 0 ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 char * kwnames[] = {
21529 (char *) "self",(char *) "y", NULL
21530 };
21531
21532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21536 }
21537 arg1 = reinterpret_cast< wxDC * >(argp1);
21538 ecode2 = SWIG_AsVal_int(obj1, &val2);
21539 if (!SWIG_IsOK(ecode2)) {
21540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21541 }
21542 arg2 = static_cast< int >(val2);
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_From_int(static_cast< int >(result));
21550 return resultobj;
21551fail:
21552 return NULL;
21553}
21554
21555
21556SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj = 0;
21558 wxDC *arg1 = (wxDC *) 0 ;
21559 int arg2 ;
21560 int result;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 int val2 ;
21564 int ecode2 = 0 ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 char * kwnames[] = {
21568 (char *) "self",(char *) "x", NULL
21569 };
21570
21571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21573 if (!SWIG_IsOK(res1)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21575 }
21576 arg1 = reinterpret_cast< wxDC * >(argp1);
21577 ecode2 = SWIG_AsVal_int(obj1, &val2);
21578 if (!SWIG_IsOK(ecode2)) {
21579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21580 }
21581 arg2 = static_cast< int >(val2);
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 resultobj = SWIG_From_int(static_cast< int >(result));
21589 return resultobj;
21590fail:
21591 return NULL;
21592}
21593
21594
21595SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21596 PyObject *resultobj = 0;
21597 wxDC *arg1 = (wxDC *) 0 ;
21598 int arg2 ;
21599 int result;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 int val2 ;
21603 int ecode2 = 0 ;
21604 PyObject * obj0 = 0 ;
21605 PyObject * obj1 = 0 ;
21606 char * kwnames[] = {
21607 (char *) "self",(char *) "y", NULL
21608 };
21609
21610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21612 if (!SWIG_IsOK(res1)) {
21613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21614 }
21615 arg1 = reinterpret_cast< wxDC * >(argp1);
21616 ecode2 = SWIG_AsVal_int(obj1, &val2);
21617 if (!SWIG_IsOK(ecode2)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21619 }
21620 arg2 = static_cast< int >(val2);
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21624 wxPyEndAllowThreads(__tstate);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 resultobj = SWIG_From_int(static_cast< int >(result));
21628 return resultobj;
21629fail:
21630 return NULL;
21631}
21632
21633
21634SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21635 PyObject *resultobj = 0;
21636 wxDC *arg1 = (wxDC *) 0 ;
21637 int arg2 ;
21638 int result;
21639 void *argp1 = 0 ;
21640 int res1 = 0 ;
21641 int val2 ;
21642 int ecode2 = 0 ;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 char * kwnames[] = {
21646 (char *) "self",(char *) "x", NULL
21647 };
21648
21649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21651 if (!SWIG_IsOK(res1)) {
21652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21653 }
21654 arg1 = reinterpret_cast< wxDC * >(argp1);
21655 ecode2 = SWIG_AsVal_int(obj1, &val2);
21656 if (!SWIG_IsOK(ecode2)) {
21657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21658 }
21659 arg2 = static_cast< int >(val2);
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 resultobj = SWIG_From_int(static_cast< int >(result));
21667 return resultobj;
21668fail:
21669 return NULL;
21670}
21671
21672
21673SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21674 PyObject *resultobj = 0;
21675 wxDC *arg1 = (wxDC *) 0 ;
21676 int arg2 ;
21677 int result;
21678 void *argp1 = 0 ;
21679 int res1 = 0 ;
21680 int val2 ;
21681 int ecode2 = 0 ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 char * kwnames[] = {
21685 (char *) "self",(char *) "y", NULL
21686 };
21687
21688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21690 if (!SWIG_IsOK(res1)) {
21691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21692 }
21693 arg1 = reinterpret_cast< wxDC * >(argp1);
21694 ecode2 = SWIG_AsVal_int(obj1, &val2);
21695 if (!SWIG_IsOK(ecode2)) {
21696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21697 }
21698 arg2 = static_cast< int >(val2);
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21702 wxPyEndAllowThreads(__tstate);
21703 if (PyErr_Occurred()) SWIG_fail;
21704 }
21705 resultobj = SWIG_From_int(static_cast< int >(result));
21706 return resultobj;
21707fail:
21708 return NULL;
21709}
21710
21711
21712SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21713 PyObject *resultobj = 0;
21714 wxDC *arg1 = (wxDC *) 0 ;
21715 bool result;
21716 void *argp1 = 0 ;
21717 int res1 = 0 ;
21718 PyObject *swig_obj[1] ;
21719
21720 if (!args) SWIG_fail;
21721 swig_obj[0] = args;
21722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21723 if (!SWIG_IsOK(res1)) {
21724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21725 }
21726 arg1 = reinterpret_cast< wxDC * >(argp1);
21727 {
21728 PyThreadState* __tstate = wxPyBeginAllowThreads();
21729 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21730 wxPyEndAllowThreads(__tstate);
21731 if (PyErr_Occurred()) SWIG_fail;
21732 }
21733 {
21734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21735 }
21736 return resultobj;
21737fail:
21738 return NULL;
21739}
21740
21741
21742SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21743 PyObject *resultobj = 0;
21744 wxDC *arg1 = (wxDC *) 0 ;
21745 bool result;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 PyObject *swig_obj[1] ;
21749
21750 if (!args) SWIG_fail;
21751 swig_obj[0] = args;
21752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21753 if (!SWIG_IsOK(res1)) {
21754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21755 }
21756 arg1 = reinterpret_cast< wxDC * >(argp1);
21757 {
21758 PyThreadState* __tstate = wxPyBeginAllowThreads();
21759 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21760 wxPyEndAllowThreads(__tstate);
21761 if (PyErr_Occurred()) SWIG_fail;
21762 }
21763 {
21764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21765 }
21766 return resultobj;
21767fail:
21768 return NULL;
21769}
21770
21771
21772SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21773 PyObject *resultobj = 0;
21774 wxDC *arg1 = (wxDC *) 0 ;
21775 int result;
21776 void *argp1 = 0 ;
21777 int res1 = 0 ;
21778 PyObject *swig_obj[1] ;
21779
21780 if (!args) SWIG_fail;
21781 swig_obj[0] = args;
21782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21783 if (!SWIG_IsOK(res1)) {
21784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21785 }
21786 arg1 = reinterpret_cast< wxDC * >(argp1);
21787 {
21788 PyThreadState* __tstate = wxPyBeginAllowThreads();
21789 result = (int)((wxDC const *)arg1)->GetDepth();
21790 wxPyEndAllowThreads(__tstate);
21791 if (PyErr_Occurred()) SWIG_fail;
21792 }
21793 resultobj = SWIG_From_int(static_cast< int >(result));
21794 return resultobj;
21795fail:
21796 return NULL;
21797}
21798
21799
21800SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21801 PyObject *resultobj = 0;
21802 wxDC *arg1 = (wxDC *) 0 ;
21803 wxSize result;
21804 void *argp1 = 0 ;
21805 int res1 = 0 ;
21806 PyObject *swig_obj[1] ;
21807
21808 if (!args) SWIG_fail;
21809 swig_obj[0] = args;
21810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21811 if (!SWIG_IsOK(res1)) {
21812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21813 }
21814 arg1 = reinterpret_cast< wxDC * >(argp1);
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 result = ((wxDC const *)arg1)->GetPPI();
21818 wxPyEndAllowThreads(__tstate);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 }
21821 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21822 return resultobj;
21823fail:
21824 return NULL;
21825}
21826
21827
b39fe951 21828SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21829 PyObject *resultobj = 0;
21830 wxDC *arg1 = (wxDC *) 0 ;
21831 bool result;
21832 void *argp1 = 0 ;
21833 int res1 = 0 ;
21834 PyObject *swig_obj[1] ;
21835
21836 if (!args) SWIG_fail;
21837 swig_obj[0] = args;
21838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21839 if (!SWIG_IsOK(res1)) {
b39fe951 21840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21841 }
21842 arg1 = reinterpret_cast< wxDC * >(argp1);
21843 {
21844 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21845 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21846 wxPyEndAllowThreads(__tstate);
21847 if (PyErr_Occurred()) SWIG_fail;
21848 }
21849 {
21850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21851 }
21852 return resultobj;
21853fail:
21854 return NULL;
21855}
21856
21857
21858SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21859 PyObject *resultobj = 0;
21860 wxDC *arg1 = (wxDC *) 0 ;
21861 int result;
21862 void *argp1 = 0 ;
21863 int res1 = 0 ;
21864 PyObject *swig_obj[1] ;
21865
21866 if (!args) SWIG_fail;
21867 swig_obj[0] = args;
21868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21869 if (!SWIG_IsOK(res1)) {
21870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21871 }
21872 arg1 = reinterpret_cast< wxDC * >(argp1);
21873 {
21874 PyThreadState* __tstate = wxPyBeginAllowThreads();
21875 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21876 wxPyEndAllowThreads(__tstate);
21877 if (PyErr_Occurred()) SWIG_fail;
21878 }
21879 resultobj = SWIG_From_int(static_cast< int >(result));
21880 return resultobj;
21881fail:
21882 return NULL;
21883}
21884
21885
21886SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21887 PyObject *resultobj = 0;
21888 wxDC *arg1 = (wxDC *) 0 ;
21889 wxBrush *result = 0 ;
21890 void *argp1 = 0 ;
21891 int res1 = 0 ;
21892 PyObject *swig_obj[1] ;
21893
21894 if (!args) SWIG_fail;
21895 swig_obj[0] = args;
21896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21897 if (!SWIG_IsOK(res1)) {
21898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21899 }
21900 arg1 = reinterpret_cast< wxDC * >(argp1);
21901 {
21902 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21903 {
0085ce49
RD
21904 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21905 result = (wxBrush *) &_result_ref;
093d3ff1 21906 }
0085ce49
RD
21907 wxPyEndAllowThreads(__tstate);
21908 if (PyErr_Occurred()) SWIG_fail;
21909 }
21910 {
21911 wxBrush* resultptr = new wxBrush(*result);
21912 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21913 }
21914 return resultobj;
21915fail:
21916 return NULL;
21917}
21918
21919
21920SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21921 PyObject *resultobj = 0;
21922 wxDC *arg1 = (wxDC *) 0 ;
21923 wxBrush *result = 0 ;
21924 void *argp1 = 0 ;
21925 int res1 = 0 ;
21926 PyObject *swig_obj[1] ;
21927
21928 if (!args) SWIG_fail;
21929 swig_obj[0] = args;
21930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21931 if (!SWIG_IsOK(res1)) {
21932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21933 }
21934 arg1 = reinterpret_cast< wxDC * >(argp1);
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21937 {
0085ce49
RD
21938 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21939 result = (wxBrush *) &_result_ref;
093d3ff1 21940 }
0085ce49
RD
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 wxBrush* resultptr = new wxBrush(*result);
21946 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21947 }
21948 return resultobj;
21949fail:
21950 return NULL;
21951}
21952
21953
21954SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21955 PyObject *resultobj = 0;
21956 wxDC *arg1 = (wxDC *) 0 ;
21957 wxFont *result = 0 ;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 PyObject *swig_obj[1] ;
21961
21962 if (!args) SWIG_fail;
21963 swig_obj[0] = args;
21964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21967 }
21968 arg1 = reinterpret_cast< wxDC * >(argp1);
21969 {
21970 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21971 {
0085ce49
RD
21972 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21973 result = (wxFont *) &_result_ref;
093d3ff1 21974 }
0085ce49
RD
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 {
21979 wxFont* resultptr = new wxFont(*result);
21980 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21981 }
21982 return resultobj;
21983fail:
21984 return NULL;
21985}
21986
21987
21988SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21989 PyObject *resultobj = 0;
21990 wxDC *arg1 = (wxDC *) 0 ;
21991 wxPen *result = 0 ;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 PyObject *swig_obj[1] ;
21995
21996 if (!args) SWIG_fail;
21997 swig_obj[0] = args;
21998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21999 if (!SWIG_IsOK(res1)) {
22000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22001 }
22002 arg1 = reinterpret_cast< wxDC * >(argp1);
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22005 {
0085ce49
RD
22006 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22007 result = (wxPen *) &_result_ref;
093d3ff1 22008 }
0085ce49
RD
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 {
22013 wxPen* resultptr = new wxPen(*result);
22014 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22015 }
22016 return resultobj;
22017fail:
22018 return NULL;
22019}
22020
22021
22022SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22023 PyObject *resultobj = 0;
22024 wxDC *arg1 = (wxDC *) 0 ;
22025 wxColour *result = 0 ;
22026 void *argp1 = 0 ;
22027 int res1 = 0 ;
22028 PyObject *swig_obj[1] ;
22029
22030 if (!args) SWIG_fail;
22031 swig_obj[0] = args;
22032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22033 if (!SWIG_IsOK(res1)) {
22034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22035 }
22036 arg1 = reinterpret_cast< wxDC * >(argp1);
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22039 {
0085ce49
RD
22040 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22041 result = (wxColour *) &_result_ref;
093d3ff1 22042 }
0085ce49
RD
22043 wxPyEndAllowThreads(__tstate);
22044 if (PyErr_Occurred()) SWIG_fail;
22045 }
22046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22047 return resultobj;
22048fail:
22049 return NULL;
22050}
22051
22052
22053SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22054 PyObject *resultobj = 0;
22055 wxDC *arg1 = (wxDC *) 0 ;
22056 wxColour *result = 0 ;
22057 void *argp1 = 0 ;
22058 int res1 = 0 ;
22059 PyObject *swig_obj[1] ;
22060
22061 if (!args) SWIG_fail;
22062 swig_obj[0] = args;
22063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22064 if (!SWIG_IsOK(res1)) {
22065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22066 }
22067 arg1 = reinterpret_cast< wxDC * >(argp1);
22068 {
22069 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22070 {
0085ce49
RD
22071 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22072 result = (wxColour *) &_result_ref;
093d3ff1 22073 }
0085ce49
RD
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22078 return resultobj;
22079fail:
22080 return NULL;
22081}
22082
22083
22084SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22085 PyObject *resultobj = 0;
22086 wxDC *arg1 = (wxDC *) 0 ;
22087 wxColour *arg2 = 0 ;
22088 void *argp1 = 0 ;
22089 int res1 = 0 ;
22090 wxColour temp2 ;
22091 PyObject * obj0 = 0 ;
22092 PyObject * obj1 = 0 ;
22093 char * kwnames[] = {
22094 (char *) "self",(char *) "colour", NULL
22095 };
22096
22097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22099 if (!SWIG_IsOK(res1)) {
22100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22101 }
22102 arg1 = reinterpret_cast< wxDC * >(argp1);
22103 {
22104 arg2 = &temp2;
22105 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22106 }
22107 {
22108 PyThreadState* __tstate = wxPyBeginAllowThreads();
22109 (arg1)->SetTextForeground((wxColour const &)*arg2);
22110 wxPyEndAllowThreads(__tstate);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 }
22113 resultobj = SWIG_Py_Void();
22114 return resultobj;
22115fail:
22116 return NULL;
22117}
22118
22119
22120SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22121 PyObject *resultobj = 0;
22122 wxDC *arg1 = (wxDC *) 0 ;
22123 wxColour *arg2 = 0 ;
22124 void *argp1 = 0 ;
22125 int res1 = 0 ;
22126 wxColour temp2 ;
22127 PyObject * obj0 = 0 ;
22128 PyObject * obj1 = 0 ;
22129 char * kwnames[] = {
22130 (char *) "self",(char *) "colour", NULL
22131 };
22132
22133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22135 if (!SWIG_IsOK(res1)) {
22136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22137 }
22138 arg1 = reinterpret_cast< wxDC * >(argp1);
22139 {
22140 arg2 = &temp2;
22141 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22142 }
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 (arg1)->SetTextBackground((wxColour const &)*arg2);
22146 wxPyEndAllowThreads(__tstate);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 }
22149 resultobj = SWIG_Py_Void();
22150 return resultobj;
22151fail:
22152 return NULL;
22153}
22154
22155
22156SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22157 PyObject *resultobj = 0;
22158 wxDC *arg1 = (wxDC *) 0 ;
22159 int result;
22160 void *argp1 = 0 ;
22161 int res1 = 0 ;
22162 PyObject *swig_obj[1] ;
22163
22164 if (!args) SWIG_fail;
22165 swig_obj[0] = args;
22166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22167 if (!SWIG_IsOK(res1)) {
22168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22169 }
22170 arg1 = reinterpret_cast< wxDC * >(argp1);
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 result = (int)((wxDC const *)arg1)->GetMapMode();
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_From_int(static_cast< int >(result));
22178 return resultobj;
22179fail:
22180 return NULL;
22181}
22182
22183
22184SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 int arg2 ;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 int val2 ;
22191 int ecode2 = 0 ;
22192 PyObject * obj0 = 0 ;
22193 PyObject * obj1 = 0 ;
22194 char * kwnames[] = {
22195 (char *) "self",(char *) "mode", NULL
22196 };
22197
22198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22200 if (!SWIG_IsOK(res1)) {
22201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22202 }
22203 arg1 = reinterpret_cast< wxDC * >(argp1);
22204 ecode2 = SWIG_AsVal_int(obj1, &val2);
22205 if (!SWIG_IsOK(ecode2)) {
22206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22207 }
22208 arg2 = static_cast< int >(val2);
22209 {
22210 PyThreadState* __tstate = wxPyBeginAllowThreads();
22211 (arg1)->SetMapMode(arg2);
22212 wxPyEndAllowThreads(__tstate);
22213 if (PyErr_Occurred()) SWIG_fail;
22214 }
22215 resultobj = SWIG_Py_Void();
22216 return resultobj;
22217fail:
22218 return NULL;
22219}
22220
22221
22222SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxDC *arg1 = (wxDC *) 0 ;
22225 double *arg2 = (double *) 0 ;
22226 double *arg3 = (double *) 0 ;
22227 void *argp1 = 0 ;
22228 int res1 = 0 ;
22229 double temp2 ;
22230 int res2 = SWIG_TMPOBJ ;
22231 double temp3 ;
22232 int res3 = SWIG_TMPOBJ ;
22233 PyObject *swig_obj[1] ;
22234
22235 arg2 = &temp2;
22236 arg3 = &temp3;
22237 if (!args) SWIG_fail;
22238 swig_obj[0] = args;
22239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22240 if (!SWIG_IsOK(res1)) {
22241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22242 }
22243 arg1 = reinterpret_cast< wxDC * >(argp1);
22244 {
22245 PyThreadState* __tstate = wxPyBeginAllowThreads();
22246 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 resultobj = SWIG_Py_Void();
22251 if (SWIG_IsTmpObj(res2)) {
22252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22253 } else {
22254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22256 }
22257 if (SWIG_IsTmpObj(res3)) {
22258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22259 } else {
22260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22262 }
22263 return resultobj;
22264fail:
22265 return NULL;
22266}
22267
22268
22269SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj = 0;
22271 wxDC *arg1 = (wxDC *) 0 ;
22272 double arg2 ;
22273 double arg3 ;
22274 void *argp1 = 0 ;
22275 int res1 = 0 ;
22276 double val2 ;
22277 int ecode2 = 0 ;
22278 double val3 ;
22279 int ecode3 = 0 ;
22280 PyObject * obj0 = 0 ;
22281 PyObject * obj1 = 0 ;
22282 PyObject * obj2 = 0 ;
22283 char * kwnames[] = {
22284 (char *) "self",(char *) "x",(char *) "y", NULL
22285 };
22286
22287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22289 if (!SWIG_IsOK(res1)) {
22290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22291 }
22292 arg1 = reinterpret_cast< wxDC * >(argp1);
22293 ecode2 = SWIG_AsVal_double(obj1, &val2);
22294 if (!SWIG_IsOK(ecode2)) {
22295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22296 }
22297 arg2 = static_cast< double >(val2);
22298 ecode3 = SWIG_AsVal_double(obj2, &val3);
22299 if (!SWIG_IsOK(ecode3)) {
22300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22301 }
22302 arg3 = static_cast< double >(val3);
22303 {
22304 PyThreadState* __tstate = wxPyBeginAllowThreads();
22305 (arg1)->SetUserScale(arg2,arg3);
22306 wxPyEndAllowThreads(__tstate);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 resultobj = SWIG_Py_Void();
22310 return resultobj;
22311fail:
22312 return NULL;
22313}
22314
22315
22316SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22317 PyObject *resultobj = 0;
22318 wxDC *arg1 = (wxDC *) 0 ;
22319 double *arg2 = (double *) 0 ;
22320 double *arg3 = (double *) 0 ;
22321 void *argp1 = 0 ;
22322 int res1 = 0 ;
22323 double temp2 ;
22324 int res2 = SWIG_TMPOBJ ;
22325 double temp3 ;
22326 int res3 = SWIG_TMPOBJ ;
22327 PyObject *swig_obj[1] ;
22328
22329 arg2 = &temp2;
22330 arg3 = &temp3;
22331 if (!args) SWIG_fail;
22332 swig_obj[0] = args;
22333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22334 if (!SWIG_IsOK(res1)) {
22335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22336 }
22337 arg1 = reinterpret_cast< wxDC * >(argp1);
22338 {
22339 PyThreadState* __tstate = wxPyBeginAllowThreads();
22340 (arg1)->GetLogicalScale(arg2,arg3);
22341 wxPyEndAllowThreads(__tstate);
22342 if (PyErr_Occurred()) SWIG_fail;
22343 }
22344 resultobj = SWIG_Py_Void();
22345 if (SWIG_IsTmpObj(res2)) {
22346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22347 } else {
22348 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22349 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22350 }
22351 if (SWIG_IsTmpObj(res3)) {
22352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22353 } else {
22354 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22356 }
22357 return resultobj;
22358fail:
22359 return NULL;
22360}
22361
22362
22363SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22364 PyObject *resultobj = 0;
22365 wxDC *arg1 = (wxDC *) 0 ;
22366 double arg2 ;
22367 double arg3 ;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 double val2 ;
22371 int ecode2 = 0 ;
22372 double val3 ;
22373 int ecode3 = 0 ;
22374 PyObject * obj0 = 0 ;
22375 PyObject * obj1 = 0 ;
22376 PyObject * obj2 = 0 ;
22377 char * kwnames[] = {
22378 (char *) "self",(char *) "x",(char *) "y", NULL
22379 };
22380
22381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 ecode2 = SWIG_AsVal_double(obj1, &val2);
22388 if (!SWIG_IsOK(ecode2)) {
22389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22390 }
22391 arg2 = static_cast< double >(val2);
22392 ecode3 = SWIG_AsVal_double(obj2, &val3);
22393 if (!SWIG_IsOK(ecode3)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22395 }
22396 arg3 = static_cast< double >(val3);
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 (arg1)->SetLogicalScale(arg2,arg3);
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_Py_Void();
22404 return resultobj;
22405fail:
22406 return NULL;
22407}
22408
22409
22410SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22411 PyObject *resultobj = 0;
22412 wxDC *arg1 = (wxDC *) 0 ;
22413 wxPoint result;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 PyObject *swig_obj[1] ;
22417
22418 if (!args) SWIG_fail;
22419 swig_obj[0] = args;
22420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22421 if (!SWIG_IsOK(res1)) {
22422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22423 }
22424 arg1 = reinterpret_cast< wxDC * >(argp1);
22425 {
22426 PyThreadState* __tstate = wxPyBeginAllowThreads();
22427 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22428 wxPyEndAllowThreads(__tstate);
22429 if (PyErr_Occurred()) SWIG_fail;
22430 }
22431 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22432 return resultobj;
22433fail:
22434 return NULL;
22435}
22436
22437
22438SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22439 PyObject *resultobj = 0;
22440 wxDC *arg1 = (wxDC *) 0 ;
22441 int *arg2 = (int *) 0 ;
22442 int *arg3 = (int *) 0 ;
22443 void *argp1 = 0 ;
22444 int res1 = 0 ;
22445 int temp2 ;
22446 int res2 = SWIG_TMPOBJ ;
22447 int temp3 ;
22448 int res3 = SWIG_TMPOBJ ;
22449 PyObject *swig_obj[1] ;
22450
22451 arg2 = &temp2;
22452 arg3 = &temp3;
22453 if (!args) SWIG_fail;
22454 swig_obj[0] = args;
22455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22456 if (!SWIG_IsOK(res1)) {
22457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22458 }
22459 arg1 = reinterpret_cast< wxDC * >(argp1);
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_Py_Void();
22467 if (SWIG_IsTmpObj(res2)) {
22468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22469 } else {
22470 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22472 }
22473 if (SWIG_IsTmpObj(res3)) {
22474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22475 } else {
22476 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22478 }
22479 return resultobj;
22480fail:
22481 return NULL;
22482}
22483
22484
22485SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj = 0;
22487 wxDC *arg1 = (wxDC *) 0 ;
22488 int arg2 ;
22489 int arg3 ;
22490 void *argp1 = 0 ;
22491 int res1 = 0 ;
22492 int val2 ;
22493 int ecode2 = 0 ;
22494 int val3 ;
22495 int ecode3 = 0 ;
22496 PyObject * obj0 = 0 ;
22497 PyObject * obj1 = 0 ;
22498 PyObject * obj2 = 0 ;
22499 char * kwnames[] = {
22500 (char *) "self",(char *) "x",(char *) "y", NULL
22501 };
22502
22503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22505 if (!SWIG_IsOK(res1)) {
22506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22507 }
22508 arg1 = reinterpret_cast< wxDC * >(argp1);
22509 ecode2 = SWIG_AsVal_int(obj1, &val2);
22510 if (!SWIG_IsOK(ecode2)) {
22511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22512 }
22513 arg2 = static_cast< int >(val2);
22514 ecode3 = SWIG_AsVal_int(obj2, &val3);
22515 if (!SWIG_IsOK(ecode3)) {
22516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22517 }
22518 arg3 = static_cast< int >(val3);
22519 {
22520 PyThreadState* __tstate = wxPyBeginAllowThreads();
22521 (arg1)->SetLogicalOrigin(arg2,arg3);
22522 wxPyEndAllowThreads(__tstate);
22523 if (PyErr_Occurred()) SWIG_fail;
22524 }
22525 resultobj = SWIG_Py_Void();
22526 return resultobj;
22527fail:
22528 return NULL;
22529}
22530
22531
22532SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22533 PyObject *resultobj = 0;
22534 wxDC *arg1 = (wxDC *) 0 ;
22535 wxPoint *arg2 = 0 ;
22536 void *argp1 = 0 ;
22537 int res1 = 0 ;
22538 wxPoint temp2 ;
22539 PyObject * obj0 = 0 ;
22540 PyObject * obj1 = 0 ;
22541 char * kwnames[] = {
22542 (char *) "self",(char *) "point", NULL
22543 };
22544
22545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) 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_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22549 }
22550 arg1 = reinterpret_cast< wxDC * >(argp1);
22551 {
22552 arg2 = &temp2;
22553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22554 }
22555 {
22556 PyThreadState* __tstate = wxPyBeginAllowThreads();
22557 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22558 wxPyEndAllowThreads(__tstate);
22559 if (PyErr_Occurred()) SWIG_fail;
22560 }
22561 resultobj = SWIG_Py_Void();
22562 return resultobj;
22563fail:
22564 return NULL;
22565}
22566
22567
22568SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22569 PyObject *resultobj = 0;
22570 wxDC *arg1 = (wxDC *) 0 ;
22571 wxPoint result;
22572 void *argp1 = 0 ;
22573 int res1 = 0 ;
22574 PyObject *swig_obj[1] ;
22575
22576 if (!args) SWIG_fail;
22577 swig_obj[0] = args;
22578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22579 if (!SWIG_IsOK(res1)) {
22580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22581 }
22582 arg1 = reinterpret_cast< wxDC * >(argp1);
22583 {
22584 PyThreadState* __tstate = wxPyBeginAllowThreads();
22585 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22586 wxPyEndAllowThreads(__tstate);
22587 if (PyErr_Occurred()) SWIG_fail;
22588 }
22589 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22590 return resultobj;
22591fail:
22592 return NULL;
22593}
22594
22595
22596SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22597 PyObject *resultobj = 0;
22598 wxDC *arg1 = (wxDC *) 0 ;
22599 int *arg2 = (int *) 0 ;
22600 int *arg3 = (int *) 0 ;
22601 void *argp1 = 0 ;
22602 int res1 = 0 ;
22603 int temp2 ;
22604 int res2 = SWIG_TMPOBJ ;
22605 int temp3 ;
22606 int res3 = SWIG_TMPOBJ ;
22607 PyObject *swig_obj[1] ;
22608
22609 arg2 = &temp2;
22610 arg3 = &temp3;
22611 if (!args) SWIG_fail;
22612 swig_obj[0] = args;
22613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22614 if (!SWIG_IsOK(res1)) {
22615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22616 }
22617 arg1 = reinterpret_cast< wxDC * >(argp1);
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 resultobj = SWIG_Py_Void();
22625 if (SWIG_IsTmpObj(res2)) {
22626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22627 } else {
22628 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22630 }
22631 if (SWIG_IsTmpObj(res3)) {
22632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22633 } else {
22634 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22636 }
22637 return resultobj;
22638fail:
22639 return NULL;
22640}
22641
22642
22643SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22644 PyObject *resultobj = 0;
22645 wxDC *arg1 = (wxDC *) 0 ;
22646 int arg2 ;
22647 int arg3 ;
22648 void *argp1 = 0 ;
22649 int res1 = 0 ;
22650 int val2 ;
22651 int ecode2 = 0 ;
22652 int val3 ;
22653 int ecode3 = 0 ;
22654 PyObject * obj0 = 0 ;
22655 PyObject * obj1 = 0 ;
22656 PyObject * obj2 = 0 ;
22657 char * kwnames[] = {
22658 (char *) "self",(char *) "x",(char *) "y", NULL
22659 };
22660
22661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22663 if (!SWIG_IsOK(res1)) {
22664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22665 }
22666 arg1 = reinterpret_cast< wxDC * >(argp1);
22667 ecode2 = SWIG_AsVal_int(obj1, &val2);
22668 if (!SWIG_IsOK(ecode2)) {
22669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22670 }
22671 arg2 = static_cast< int >(val2);
22672 ecode3 = SWIG_AsVal_int(obj2, &val3);
22673 if (!SWIG_IsOK(ecode3)) {
22674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22675 }
22676 arg3 = static_cast< int >(val3);
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 (arg1)->SetDeviceOrigin(arg2,arg3);
22680 wxPyEndAllowThreads(__tstate);
22681 if (PyErr_Occurred()) SWIG_fail;
22682 }
22683 resultobj = SWIG_Py_Void();
22684 return resultobj;
22685fail:
22686 return NULL;
22687}
22688
22689
22690SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22691 PyObject *resultobj = 0;
22692 wxDC *arg1 = (wxDC *) 0 ;
22693 wxPoint *arg2 = 0 ;
22694 void *argp1 = 0 ;
22695 int res1 = 0 ;
22696 wxPoint temp2 ;
22697 PyObject * obj0 = 0 ;
22698 PyObject * obj1 = 0 ;
22699 char * kwnames[] = {
22700 (char *) "self",(char *) "point", NULL
22701 };
22702
22703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) 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_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22707 }
22708 arg1 = reinterpret_cast< wxDC * >(argp1);
22709 {
22710 arg2 = &temp2;
22711 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22712 }
22713 {
22714 PyThreadState* __tstate = wxPyBeginAllowThreads();
22715 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22716 wxPyEndAllowThreads(__tstate);
22717 if (PyErr_Occurred()) SWIG_fail;
22718 }
22719 resultobj = SWIG_Py_Void();
22720 return resultobj;
22721fail:
22722 return NULL;
22723}
22724
22725
22726SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22727 PyObject *resultobj = 0;
22728 wxDC *arg1 = (wxDC *) 0 ;
22729 bool arg2 ;
22730 bool arg3 ;
22731 void *argp1 = 0 ;
22732 int res1 = 0 ;
22733 bool val2 ;
22734 int ecode2 = 0 ;
22735 bool val3 ;
22736 int ecode3 = 0 ;
22737 PyObject * obj0 = 0 ;
22738 PyObject * obj1 = 0 ;
22739 PyObject * obj2 = 0 ;
22740 char * kwnames[] = {
22741 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22742 };
22743
22744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22746 if (!SWIG_IsOK(res1)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22748 }
22749 arg1 = reinterpret_cast< wxDC * >(argp1);
22750 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22751 if (!SWIG_IsOK(ecode2)) {
22752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22753 }
22754 arg2 = static_cast< bool >(val2);
22755 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22756 if (!SWIG_IsOK(ecode3)) {
22757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22758 }
22759 arg3 = static_cast< bool >(val3);
22760 {
22761 PyThreadState* __tstate = wxPyBeginAllowThreads();
22762 (arg1)->SetAxisOrientation(arg2,arg3);
22763 wxPyEndAllowThreads(__tstate);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 }
22766 resultobj = SWIG_Py_Void();
22767 return resultobj;
22768fail:
22769 return NULL;
22770}
22771
22772
22773SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22774 PyObject *resultobj = 0;
22775 wxDC *arg1 = (wxDC *) 0 ;
22776 int result;
22777 void *argp1 = 0 ;
22778 int res1 = 0 ;
22779 PyObject *swig_obj[1] ;
22780
22781 if (!args) SWIG_fail;
22782 swig_obj[0] = args;
22783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22784 if (!SWIG_IsOK(res1)) {
22785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22786 }
22787 arg1 = reinterpret_cast< wxDC * >(argp1);
22788 {
22789 PyThreadState* __tstate = wxPyBeginAllowThreads();
22790 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22791 wxPyEndAllowThreads(__tstate);
22792 if (PyErr_Occurred()) SWIG_fail;
22793 }
22794 resultobj = SWIG_From_int(static_cast< int >(result));
22795 return resultobj;
22796fail:
22797 return NULL;
22798}
22799
22800
22801SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22802 PyObject *resultobj = 0;
22803 wxDC *arg1 = (wxDC *) 0 ;
22804 int arg2 ;
22805 void *argp1 = 0 ;
22806 int res1 = 0 ;
22807 int val2 ;
22808 int ecode2 = 0 ;
22809 PyObject * obj0 = 0 ;
22810 PyObject * obj1 = 0 ;
22811 char * kwnames[] = {
22812 (char *) "self",(char *) "function", NULL
22813 };
22814
22815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22817 if (!SWIG_IsOK(res1)) {
22818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22819 }
22820 arg1 = reinterpret_cast< wxDC * >(argp1);
22821 ecode2 = SWIG_AsVal_int(obj1, &val2);
22822 if (!SWIG_IsOK(ecode2)) {
22823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22824 }
22825 arg2 = static_cast< int >(val2);
22826 {
22827 PyThreadState* __tstate = wxPyBeginAllowThreads();
22828 (arg1)->SetLogicalFunction(arg2);
22829 wxPyEndAllowThreads(__tstate);
22830 if (PyErr_Occurred()) SWIG_fail;
22831 }
22832 resultobj = SWIG_Py_Void();
22833 return resultobj;
22834fail:
22835 return NULL;
22836}
22837
22838
22839SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22840 PyObject *resultobj = 0;
22841 wxDC *arg1 = (wxDC *) 0 ;
22842 void *argp1 = 0 ;
22843 int res1 = 0 ;
22844 PyObject *swig_obj[1] ;
22845
22846 if (!args) SWIG_fail;
22847 swig_obj[0] = args;
22848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22849 if (!SWIG_IsOK(res1)) {
22850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22851 }
22852 arg1 = reinterpret_cast< wxDC * >(argp1);
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 (arg1)->ComputeScaleAndOrigin();
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_Py_Void();
22860 return resultobj;
22861fail:
22862 return NULL;
22863}
22864
22865
22866SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22867 PyObject *resultobj = 0;
22868 wxDC *arg1 = (wxDC *) 0 ;
22869 int arg2 ;
22870 int arg3 ;
22871 void *argp1 = 0 ;
22872 int res1 = 0 ;
22873 int val2 ;
22874 int ecode2 = 0 ;
22875 int val3 ;
22876 int ecode3 = 0 ;
22877 PyObject * obj0 = 0 ;
22878 PyObject * obj1 = 0 ;
22879 PyObject * obj2 = 0 ;
22880 char * kwnames[] = {
22881 (char *) "self",(char *) "x",(char *) "y", NULL
22882 };
22883
22884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22886 if (!SWIG_IsOK(res1)) {
22887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22888 }
22889 arg1 = reinterpret_cast< wxDC * >(argp1);
22890 ecode2 = SWIG_AsVal_int(obj1, &val2);
22891 if (!SWIG_IsOK(ecode2)) {
22892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22893 }
22894 arg2 = static_cast< int >(val2);
22895 ecode3 = SWIG_AsVal_int(obj2, &val3);
22896 if (!SWIG_IsOK(ecode3)) {
22897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22898 }
22899 arg3 = static_cast< int >(val3);
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 (arg1)->CalcBoundingBox(arg2,arg3);
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 resultobj = SWIG_Py_Void();
22907 return resultobj;
22908fail:
22909 return NULL;
22910}
22911
22912
22913SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22914 PyObject *resultobj = 0;
22915 wxDC *arg1 = (wxDC *) 0 ;
22916 wxPoint *arg2 = 0 ;
22917 void *argp1 = 0 ;
22918 int res1 = 0 ;
22919 wxPoint temp2 ;
22920 PyObject * obj0 = 0 ;
22921 PyObject * obj1 = 0 ;
22922 char * kwnames[] = {
22923 (char *) "self",(char *) "point", NULL
22924 };
22925
22926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) 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_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22930 }
22931 arg1 = reinterpret_cast< wxDC * >(argp1);
22932 {
22933 arg2 = &temp2;
22934 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22935 }
22936 {
22937 PyThreadState* __tstate = wxPyBeginAllowThreads();
22938 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 resultobj = SWIG_Py_Void();
22943 return resultobj;
22944fail:
22945 return NULL;
22946}
22947
22948
22949SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22950 PyObject *resultobj = 0;
22951 wxDC *arg1 = (wxDC *) 0 ;
22952 void *argp1 = 0 ;
22953 int res1 = 0 ;
22954 PyObject *swig_obj[1] ;
22955
22956 if (!args) SWIG_fail;
22957 swig_obj[0] = args;
22958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22959 if (!SWIG_IsOK(res1)) {
22960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22961 }
22962 arg1 = reinterpret_cast< wxDC * >(argp1);
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 (arg1)->ResetBoundingBox();
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = SWIG_Py_Void();
22970 return resultobj;
22971fail:
22972 return NULL;
22973}
22974
22975
22976SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22977 PyObject *resultobj = 0;
22978 wxDC *arg1 = (wxDC *) 0 ;
22979 int result;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 PyObject *swig_obj[1] ;
22983
22984 if (!args) SWIG_fail;
22985 swig_obj[0] = args;
22986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22987 if (!SWIG_IsOK(res1)) {
22988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22989 }
22990 arg1 = reinterpret_cast< wxDC * >(argp1);
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 result = (int)((wxDC const *)arg1)->MinX();
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = SWIG_From_int(static_cast< int >(result));
22998 return resultobj;
22999fail:
23000 return NULL;
23001}
23002
23003
23004SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23005 PyObject *resultobj = 0;
23006 wxDC *arg1 = (wxDC *) 0 ;
23007 int result;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 PyObject *swig_obj[1] ;
23011
23012 if (!args) SWIG_fail;
23013 swig_obj[0] = args;
23014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23015 if (!SWIG_IsOK(res1)) {
23016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23017 }
23018 arg1 = reinterpret_cast< wxDC * >(argp1);
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
23021 result = (int)((wxDC const *)arg1)->MaxX();
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 resultobj = SWIG_From_int(static_cast< int >(result));
23026 return resultobj;
23027fail:
23028 return NULL;
23029}
23030
23031
23032SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23033 PyObject *resultobj = 0;
23034 wxDC *arg1 = (wxDC *) 0 ;
23035 int result;
23036 void *argp1 = 0 ;
23037 int res1 = 0 ;
23038 PyObject *swig_obj[1] ;
23039
23040 if (!args) SWIG_fail;
23041 swig_obj[0] = args;
23042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 {
23048 PyThreadState* __tstate = wxPyBeginAllowThreads();
23049 result = (int)((wxDC const *)arg1)->MinY();
23050 wxPyEndAllowThreads(__tstate);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 }
23053 resultobj = SWIG_From_int(static_cast< int >(result));
23054 return resultobj;
23055fail:
23056 return NULL;
23057}
23058
23059
23060SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23061 PyObject *resultobj = 0;
23062 wxDC *arg1 = (wxDC *) 0 ;
23063 int result;
23064 void *argp1 = 0 ;
23065 int res1 = 0 ;
23066 PyObject *swig_obj[1] ;
23067
23068 if (!args) SWIG_fail;
23069 swig_obj[0] = args;
23070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23071 if (!SWIG_IsOK(res1)) {
23072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23073 }
23074 arg1 = reinterpret_cast< wxDC * >(argp1);
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 result = (int)((wxDC const *)arg1)->MaxY();
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = SWIG_From_int(static_cast< int >(result));
23082 return resultobj;
23083fail:
23084 return NULL;
23085}
23086
23087
23088SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23089 PyObject *resultobj = 0;
23090 wxDC *arg1 = (wxDC *) 0 ;
23091 int *arg2 = (int *) 0 ;
23092 int *arg3 = (int *) 0 ;
23093 int *arg4 = (int *) 0 ;
23094 int *arg5 = (int *) 0 ;
23095 void *argp1 = 0 ;
23096 int res1 = 0 ;
23097 int temp2 ;
23098 int res2 = SWIG_TMPOBJ ;
23099 int temp3 ;
23100 int res3 = SWIG_TMPOBJ ;
23101 int temp4 ;
23102 int res4 = SWIG_TMPOBJ ;
23103 int temp5 ;
23104 int res5 = SWIG_TMPOBJ ;
23105 PyObject *swig_obj[1] ;
23106
23107 arg2 = &temp2;
23108 arg3 = &temp3;
23109 arg4 = &temp4;
23110 arg5 = &temp5;
23111 if (!args) SWIG_fail;
23112 swig_obj[0] = args;
23113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23114 if (!SWIG_IsOK(res1)) {
23115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23116 }
23117 arg1 = reinterpret_cast< wxDC * >(argp1);
23118 {
23119 PyThreadState* __tstate = wxPyBeginAllowThreads();
23120 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23121 wxPyEndAllowThreads(__tstate);
23122 if (PyErr_Occurred()) SWIG_fail;
23123 }
23124 resultobj = SWIG_Py_Void();
23125 if (SWIG_IsTmpObj(res2)) {
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23127 } else {
23128 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23130 }
23131 if (SWIG_IsTmpObj(res3)) {
23132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23133 } else {
23134 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23136 }
23137 if (SWIG_IsTmpObj(res4)) {
23138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23139 } else {
23140 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23142 }
23143 if (SWIG_IsTmpObj(res5)) {
23144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23145 } else {
23146 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23148 }
23149 return resultobj;
23150fail:
23151 return NULL;
23152}
23153
23154
b39fe951
RD
23155SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23156 PyObject *resultobj = 0;
23157 wxDC *arg1 = (wxDC *) 0 ;
23158 wxLayoutDirection result;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 PyObject *swig_obj[1] ;
23162
23163 if (!args) SWIG_fail;
23164 swig_obj[0] = args;
23165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23168 }
23169 arg1 = reinterpret_cast< wxDC * >(argp1);
23170 {
23171 PyThreadState* __tstate = wxPyBeginAllowThreads();
23172 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 resultobj = SWIG_From_int(static_cast< int >(result));
23177 return resultobj;
23178fail:
23179 return NULL;
23180}
23181
23182
23183SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23184 PyObject *resultobj = 0;
23185 wxDC *arg1 = (wxDC *) 0 ;
23186 wxLayoutDirection arg2 ;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 int val2 ;
23190 int ecode2 = 0 ;
23191 PyObject * obj0 = 0 ;
23192 PyObject * obj1 = 0 ;
23193 char * kwnames[] = {
23194 (char *) "self",(char *) "dir", NULL
23195 };
23196
23197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23199 if (!SWIG_IsOK(res1)) {
23200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23201 }
23202 arg1 = reinterpret_cast< wxDC * >(argp1);
23203 ecode2 = SWIG_AsVal_int(obj1, &val2);
23204 if (!SWIG_IsOK(ecode2)) {
23205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23206 }
23207 arg2 = static_cast< wxLayoutDirection >(val2);
23208 {
23209 PyThreadState* __tstate = wxPyBeginAllowThreads();
23210 (arg1)->SetLayoutDirection(arg2);
23211 wxPyEndAllowThreads(__tstate);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 }
23214 resultobj = SWIG_Py_Void();
23215 return resultobj;
23216fail:
23217 return NULL;
23218}
23219
23220
0085ce49
RD
23221SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23222 PyObject *resultobj = 0;
23223 wxDC *arg1 = (wxDC *) 0 ;
23224 PyObject *arg2 = (PyObject *) 0 ;
23225 PyObject *arg3 = (PyObject *) 0 ;
23226 PyObject *arg4 = (PyObject *) 0 ;
23227 PyObject *result = 0 ;
23228 void *argp1 = 0 ;
23229 int res1 = 0 ;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 PyObject * obj2 = 0 ;
23233 PyObject * obj3 = 0 ;
23234 char * kwnames[] = {
23235 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23236 };
23237
23238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23240 if (!SWIG_IsOK(res1)) {
23241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23242 }
23243 arg1 = reinterpret_cast< wxDC * >(argp1);
23244 arg2 = obj1;
23245 arg3 = obj2;
23246 arg4 = obj3;
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = result;
23254 return resultobj;
23255fail:
23256 return NULL;
23257}
23258
23259
23260SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23261 PyObject *resultobj = 0;
23262 wxDC *arg1 = (wxDC *) 0 ;
23263 PyObject *arg2 = (PyObject *) 0 ;
23264 PyObject *arg3 = (PyObject *) 0 ;
23265 PyObject *arg4 = (PyObject *) 0 ;
23266 PyObject *result = 0 ;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 PyObject * obj2 = 0 ;
23272 PyObject * obj3 = 0 ;
23273 char * kwnames[] = {
23274 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23275 };
23276
23277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23281 }
23282 arg1 = reinterpret_cast< wxDC * >(argp1);
23283 arg2 = obj1;
23284 arg3 = obj2;
23285 arg4 = obj3;
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23289 wxPyEndAllowThreads(__tstate);
23290 if (PyErr_Occurred()) SWIG_fail;
23291 }
23292 resultobj = result;
23293 return resultobj;
23294fail:
23295 return NULL;
23296}
23297
23298
23299SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj = 0;
23301 wxDC *arg1 = (wxDC *) 0 ;
23302 PyObject *arg2 = (PyObject *) 0 ;
23303 PyObject *arg3 = (PyObject *) 0 ;
23304 PyObject *arg4 = (PyObject *) 0 ;
23305 PyObject *result = 0 ;
23306 void *argp1 = 0 ;
23307 int res1 = 0 ;
23308 PyObject * obj0 = 0 ;
23309 PyObject * obj1 = 0 ;
23310 PyObject * obj2 = 0 ;
23311 PyObject * obj3 = 0 ;
23312 char * kwnames[] = {
23313 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23314 };
23315
23316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23318 if (!SWIG_IsOK(res1)) {
23319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23320 }
23321 arg1 = reinterpret_cast< wxDC * >(argp1);
23322 arg2 = obj1;
23323 arg3 = obj2;
23324 arg4 = obj3;
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 resultobj = result;
23332 return resultobj;
23333fail:
23334 return NULL;
23335}
23336
23337
23338SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj = 0;
23340 wxDC *arg1 = (wxDC *) 0 ;
23341 PyObject *arg2 = (PyObject *) 0 ;
23342 PyObject *arg3 = (PyObject *) 0 ;
23343 PyObject *arg4 = (PyObject *) 0 ;
23344 PyObject *result = 0 ;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 PyObject * obj0 = 0 ;
23348 PyObject * obj1 = 0 ;
23349 PyObject * obj2 = 0 ;
23350 PyObject * obj3 = 0 ;
23351 char * kwnames[] = {
23352 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23353 };
23354
23355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23357 if (!SWIG_IsOK(res1)) {
23358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23359 }
23360 arg1 = reinterpret_cast< wxDC * >(argp1);
23361 arg2 = obj1;
23362 arg3 = obj2;
23363 arg4 = obj3;
23364 {
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = result;
23371 return resultobj;
23372fail:
23373 return NULL;
23374}
23375
23376
23377SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23378 PyObject *resultobj = 0;
23379 wxDC *arg1 = (wxDC *) 0 ;
23380 PyObject *arg2 = (PyObject *) 0 ;
23381 PyObject *arg3 = (PyObject *) 0 ;
23382 PyObject *arg4 = (PyObject *) 0 ;
23383 PyObject *result = 0 ;
23384 void *argp1 = 0 ;
23385 int res1 = 0 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 PyObject * obj3 = 0 ;
23390 char * kwnames[] = {
23391 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23392 };
23393
23394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23398 }
23399 arg1 = reinterpret_cast< wxDC * >(argp1);
23400 arg2 = obj1;
23401 arg3 = obj2;
23402 arg4 = obj3;
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23406 wxPyEndAllowThreads(__tstate);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 resultobj = result;
23410 return resultobj;
23411fail:
23412 return NULL;
23413}
23414
23415
23416SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23417 PyObject *resultobj = 0;
23418 wxDC *arg1 = (wxDC *) 0 ;
23419 PyObject *arg2 = (PyObject *) 0 ;
23420 PyObject *arg3 = (PyObject *) 0 ;
23421 PyObject *arg4 = (PyObject *) 0 ;
23422 PyObject *arg5 = (PyObject *) 0 ;
23423 PyObject *result = 0 ;
23424 void *argp1 = 0 ;
23425 int res1 = 0 ;
23426 PyObject * obj0 = 0 ;
23427 PyObject * obj1 = 0 ;
23428 PyObject * obj2 = 0 ;
23429 PyObject * obj3 = 0 ;
23430 PyObject * obj4 = 0 ;
23431 char * kwnames[] = {
23432 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23433 };
23434
23435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23439 }
23440 arg1 = reinterpret_cast< wxDC * >(argp1);
23441 arg2 = obj1;
23442 arg3 = obj2;
23443 arg4 = obj3;
23444 arg5 = obj4;
23445 {
23446 PyThreadState* __tstate = wxPyBeginAllowThreads();
23447 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
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 *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23459 PyObject *obj;
23460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23461 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23462 return SWIG_Py_Void();
23463}
23464
70d7cb34
RD
23465SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj = 0;
23467 wxDC *arg1 = 0 ;
23468 wxColour *arg2 = 0 ;
23469 wxDCTextColourChanger *result = 0 ;
23470 void *argp1 = 0 ;
23471 int res1 = 0 ;
23472 wxColour temp2 ;
23473 PyObject * obj0 = 0 ;
23474 PyObject * obj1 = 0 ;
23475 char * kwnames[] = {
23476 (char *) "dc",(char *) "col", NULL
23477 };
23478
23479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23480 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23483 }
23484 if (!argp1) {
23485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23486 }
23487 arg1 = reinterpret_cast< wxDC * >(argp1);
23488 {
23489 arg2 = &temp2;
23490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23491 }
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23495 wxPyEndAllowThreads(__tstate);
23496 if (PyErr_Occurred()) SWIG_fail;
23497 }
23498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23499 return resultobj;
23500fail:
23501 return NULL;
23502}
23503
23504
23505SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23506 PyObject *resultobj = 0;
23507 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23508 void *argp1 = 0 ;
23509 int res1 = 0 ;
23510 PyObject *swig_obj[1] ;
23511
23512 if (!args) SWIG_fail;
23513 swig_obj[0] = args;
23514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23515 if (!SWIG_IsOK(res1)) {
23516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23517 }
23518 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 delete arg1;
23522
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_Py_Void();
23527 return resultobj;
23528fail:
23529 return NULL;
23530}
23531
23532
23533SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23534 PyObject *obj;
23535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23536 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23537 return SWIG_Py_Void();
23538}
23539
23540SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23541 return SWIG_Python_InitShadowInstance(args);
23542}
23543
23544SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj = 0;
23546 wxDC *arg1 = 0 ;
23547 wxPen *arg2 = 0 ;
23548 wxDCPenChanger *result = 0 ;
23549 void *argp1 = 0 ;
23550 int res1 = 0 ;
23551 void *argp2 = 0 ;
23552 int res2 = 0 ;
23553 PyObject * obj0 = 0 ;
23554 PyObject * obj1 = 0 ;
23555 char * kwnames[] = {
23556 (char *) "dc",(char *) "pen", NULL
23557 };
23558
23559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23560 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23561 if (!SWIG_IsOK(res1)) {
23562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23563 }
23564 if (!argp1) {
23565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23566 }
23567 arg1 = reinterpret_cast< wxDC * >(argp1);
23568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23569 if (!SWIG_IsOK(res2)) {
23570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23571 }
23572 if (!argp2) {
23573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23574 }
23575 arg2 = reinterpret_cast< wxPen * >(argp2);
23576 {
23577 PyThreadState* __tstate = wxPyBeginAllowThreads();
23578 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23583 return resultobj;
23584fail:
23585 return NULL;
23586}
23587
23588
23589SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23590 PyObject *resultobj = 0;
23591 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23592 void *argp1 = 0 ;
23593 int res1 = 0 ;
23594 PyObject *swig_obj[1] ;
23595
23596 if (!args) SWIG_fail;
23597 swig_obj[0] = args;
23598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23599 if (!SWIG_IsOK(res1)) {
23600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23601 }
23602 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 delete arg1;
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 resultobj = SWIG_Py_Void();
23611 return resultobj;
23612fail:
23613 return NULL;
23614}
23615
23616
23617SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23618 PyObject *obj;
23619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23620 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23621 return SWIG_Py_Void();
23622}
23623
23624SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23625 return SWIG_Python_InitShadowInstance(args);
23626}
23627
23628SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23629 PyObject *resultobj = 0;
23630 wxDC *arg1 = 0 ;
23631 wxBrush *arg2 = 0 ;
23632 wxDCBrushChanger *result = 0 ;
23633 void *argp1 = 0 ;
23634 int res1 = 0 ;
23635 void *argp2 = 0 ;
23636 int res2 = 0 ;
23637 PyObject * obj0 = 0 ;
23638 PyObject * obj1 = 0 ;
23639 char * kwnames[] = {
23640 (char *) "dc",(char *) "brush", NULL
23641 };
23642
23643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23644 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23645 if (!SWIG_IsOK(res1)) {
23646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23647 }
23648 if (!argp1) {
23649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23650 }
23651 arg1 = reinterpret_cast< wxDC * >(argp1);
23652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23653 if (!SWIG_IsOK(res2)) {
23654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23655 }
23656 if (!argp2) {
23657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23658 }
23659 arg2 = reinterpret_cast< wxBrush * >(argp2);
23660 {
23661 PyThreadState* __tstate = wxPyBeginAllowThreads();
23662 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23667 return resultobj;
23668fail:
23669 return NULL;
23670}
23671
23672
23673SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23674 PyObject *resultobj = 0;
23675 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23676 void *argp1 = 0 ;
23677 int res1 = 0 ;
23678 PyObject *swig_obj[1] ;
23679
23680 if (!args) SWIG_fail;
23681 swig_obj[0] = args;
23682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23683 if (!SWIG_IsOK(res1)) {
23684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23685 }
23686 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23687 {
23688 PyThreadState* __tstate = wxPyBeginAllowThreads();
23689 delete arg1;
23690
23691 wxPyEndAllowThreads(__tstate);
23692 if (PyErr_Occurred()) SWIG_fail;
23693 }
23694 resultobj = SWIG_Py_Void();
23695 return resultobj;
23696fail:
23697 return NULL;
23698}
23699
23700
23701SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23702 PyObject *obj;
23703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23704 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23705 return SWIG_Py_Void();
23706}
23707
23708SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23709 return SWIG_Python_InitShadowInstance(args);
23710}
23711
23712SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23713 PyObject *resultobj = 0;
23714 wxDC *arg1 = 0 ;
23715 wxRegion *arg2 = 0 ;
23716 wxDCClipper *result = 0 ;
23717 void *argp1 = 0 ;
23718 int res1 = 0 ;
23719 void *argp2 = 0 ;
23720 int res2 = 0 ;
23721
23722 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23724 if (!SWIG_IsOK(res1)) {
23725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23726 }
23727 if (!argp1) {
23728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23729 }
23730 arg1 = reinterpret_cast< wxDC * >(argp1);
23731 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23732 if (!SWIG_IsOK(res2)) {
23733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23734 }
23735 if (!argp2) {
23736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23737 }
23738 arg2 = reinterpret_cast< wxRegion * >(argp2);
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23746 return resultobj;
23747fail:
23748 return NULL;
23749}
23750
23751
23752SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23753 PyObject *resultobj = 0;
23754 wxDC *arg1 = 0 ;
23755 wxRect *arg2 = 0 ;
23756 wxDCClipper *result = 0 ;
23757 void *argp1 = 0 ;
23758 int res1 = 0 ;
23759 wxRect temp2 ;
23760
23761 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23763 if (!SWIG_IsOK(res1)) {
23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23765 }
23766 if (!argp1) {
23767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23768 }
23769 arg1 = reinterpret_cast< wxDC * >(argp1);
23770 {
23771 arg2 = &temp2;
23772 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23773 }
23774 {
23775 PyThreadState* __tstate = wxPyBeginAllowThreads();
23776 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
23780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23781 return resultobj;
23782fail:
23783 return NULL;
23784}
23785
23786
23787SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23788 PyObject *resultobj = 0;
23789 wxDC *arg1 = 0 ;
23790 int arg2 ;
23791 int arg3 ;
23792 int arg4 ;
23793 int arg5 ;
23794 wxDCClipper *result = 0 ;
23795 void *argp1 = 0 ;
23796 int res1 = 0 ;
23797 int val2 ;
23798 int ecode2 = 0 ;
23799 int val3 ;
23800 int ecode3 = 0 ;
23801 int val4 ;
23802 int ecode4 = 0 ;
23803 int val5 ;
23804 int ecode5 = 0 ;
23805
23806 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23808 if (!SWIG_IsOK(res1)) {
23809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23810 }
23811 if (!argp1) {
23812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23813 }
23814 arg1 = reinterpret_cast< wxDC * >(argp1);
23815 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23816 if (!SWIG_IsOK(ecode2)) {
23817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23818 }
23819 arg2 = static_cast< int >(val2);
23820 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23821 if (!SWIG_IsOK(ecode3)) {
23822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23823 }
23824 arg3 = static_cast< int >(val3);
23825 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23826 if (!SWIG_IsOK(ecode4)) {
23827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23828 }
23829 arg4 = static_cast< int >(val4);
23830 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23831 if (!SWIG_IsOK(ecode5)) {
23832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23833 }
23834 arg5 = static_cast< int >(val5);
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23838 wxPyEndAllowThreads(__tstate);
23839 if (PyErr_Occurred()) SWIG_fail;
23840 }
23841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23842 return resultobj;
23843fail:
23844 return NULL;
23845}
23846
23847
23848SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23849 int argc;
23850 PyObject *argv[6];
23851
23852 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23853 --argc;
23854 if (argc == 2) {
23855 int _v = 0;
23856 {
23857 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23858 _v = SWIG_CheckState(res);
23859 }
23860 if (!_v) goto check_1;
23861 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23862 }
23863check_1:
23864
23865 if (argc == 2) {
23866 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23867 }
23868 if (argc == 5) {
23869 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23870 }
23871
23872fail:
23873 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23874 return NULL;
23875}
23876
23877
23878SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23879 PyObject *resultobj = 0;
23880 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23881 void *argp1 = 0 ;
23882 int res1 = 0 ;
23883 PyObject *swig_obj[1] ;
23884
23885 if (!args) SWIG_fail;
23886 swig_obj[0] = args;
23887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23888 if (!SWIG_IsOK(res1)) {
23889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23890 }
23891 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23892 {
23893 PyThreadState* __tstate = wxPyBeginAllowThreads();
23894 delete arg1;
23895
23896 wxPyEndAllowThreads(__tstate);
23897 if (PyErr_Occurred()) SWIG_fail;
23898 }
23899 resultobj = SWIG_Py_Void();
23900 return resultobj;
23901fail:
23902 return NULL;
23903}
23904
23905
23906SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23907 PyObject *obj;
23908 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23909 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23910 return SWIG_Py_Void();
23911}
23912
23913SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23914 return SWIG_Python_InitShadowInstance(args);
23915}
23916
8e99bda9 23917SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 23918 PyObject *resultobj = 0;
8f514ab4 23919 wxBitmap &arg1_defvalue = wxNullBitmap ;
8e99bda9 23920 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
0085ce49 23921 wxMemoryDC *result = 0 ;
8e99bda9
RD
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 PyObject * obj0 = 0 ;
23925 char * kwnames[] = {
23926 (char *) "bitmap", NULL
23927 };
0085ce49 23928
8e99bda9
RD
23929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23930 if (obj0) {
8f514ab4 23931 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
8e99bda9 23932 if (!SWIG_IsOK(res1)) {
8f514ab4 23933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23934 }
23935 if (!argp1) {
8f514ab4 23936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23937 }
23938 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23939 }
0085ce49
RD
23940 {
23941 if (!wxPyCheckForApp()) SWIG_fail;
23942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 23943 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
0085ce49
RD
23944 wxPyEndAllowThreads(__tstate);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 }
23947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23948 return resultobj;
23949fail:
23950 return NULL;
23951}
23952
23953
23954SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23955 PyObject *resultobj = 0;
23956 wxDC *arg1 = (wxDC *) 0 ;
23957 wxMemoryDC *result = 0 ;
23958 void *argp1 = 0 ;
23959 int res1 = 0 ;
23960 PyObject * obj0 = 0 ;
23961 char * kwnames[] = {
23962 (char *) "oldDC", NULL
23963 };
23964
23965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23967 if (!SWIG_IsOK(res1)) {
23968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23969 }
23970 arg1 = reinterpret_cast< wxDC * >(argp1);
23971 {
23972 if (!wxPyCheckForApp()) SWIG_fail;
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23975 wxPyEndAllowThreads(__tstate);
23976 if (PyErr_Occurred()) SWIG_fail;
23977 }
23978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23979 return resultobj;
23980fail:
23981 return NULL;
23982}
23983
23984
23985SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj = 0;
23987 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23988 wxBitmap *arg2 = 0 ;
23989 void *argp1 = 0 ;
23990 int res1 = 0 ;
23991 void *argp2 = 0 ;
23992 int res2 = 0 ;
23993 PyObject * obj0 = 0 ;
23994 PyObject * obj1 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "self",(char *) "bitmap", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24003 }
24004 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
8f514ab4
RD
24005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24006 if (!SWIG_IsOK(res2)) {
24007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24008 }
24009 if (!argp2) {
24010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24011 }
24012 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24013 {
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 (arg1)->SelectObject(*arg2);
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = SWIG_Py_Void();
24020 return resultobj;
24021fail:
24022 return NULL;
24023}
24024
24025
24026SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj = 0;
24028 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24029 wxBitmap *arg2 = 0 ;
24030 void *argp1 = 0 ;
24031 int res1 = 0 ;
24032 void *argp2 = 0 ;
24033 int res2 = 0 ;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 char * kwnames[] = {
24037 (char *) "self",(char *) "bmp", NULL
24038 };
24039
24040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24042 if (!SWIG_IsOK(res1)) {
24043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24044 }
24045 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
0085ce49
RD
24046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24047 if (!SWIG_IsOK(res2)) {
8f514ab4 24048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
0085ce49
RD
24049 }
24050 if (!argp2) {
8f514ab4 24051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
0085ce49
RD
24052 }
24053 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24056 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
0085ce49
RD
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 resultobj = SWIG_Py_Void();
24061 return resultobj;
24062fail:
24063 return NULL;
24064}
24065
24066
24067SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24068 PyObject *obj;
24069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24070 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24071 return SWIG_Py_Void();
24072}
24073
24074SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24075 return SWIG_Python_InitShadowInstance(args);
24076}
24077
24f6c4e8
RD
24078SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24079 PyObject *resultobj = 0;
24080 wxScreenDC *result = 0 ;
24081
24082 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24083 {
24084 if (!wxPyCheckForApp()) SWIG_fail;
24085 PyThreadState* __tstate = wxPyBeginAllowThreads();
24086 result = (wxScreenDC *)new wxScreenDC();
24087 wxPyEndAllowThreads(__tstate);
24088 if (PyErr_Occurred()) SWIG_fail;
24089 }
24090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24091 return resultobj;
24092fail:
24093 return NULL;
24094}
24095
24096
24097SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24100 wxWindow *arg2 = (wxWindow *) 0 ;
24101 bool result;
24102 void *argp1 = 0 ;
24103 int res1 = 0 ;
24104 void *argp2 = 0 ;
24105 int res2 = 0 ;
24106 PyObject * obj0 = 0 ;
24107 PyObject * obj1 = 0 ;
24108 char * kwnames[] = {
24109 (char *) "self",(char *) "window", NULL
24110 };
24111
24112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24114 if (!SWIG_IsOK(res1)) {
24115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24116 }
24117 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24119 if (!SWIG_IsOK(res2)) {
24120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24121 }
24122 arg2 = reinterpret_cast< wxWindow * >(argp2);
24123 {
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 {
24130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24131 }
24132 return resultobj;
24133fail:
24134 return NULL;
24135}
24136
24137
24138SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24139 PyObject *resultobj = 0;
24140 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24141 wxRect *arg2 = (wxRect *) NULL ;
24142 bool result;
24143 void *argp1 = 0 ;
24144 int res1 = 0 ;
24145 void *argp2 = 0 ;
24146 int res2 = 0 ;
24147 PyObject * obj0 = 0 ;
24148 PyObject * obj1 = 0 ;
24149 char * kwnames[] = {
24150 (char *) "self",(char *) "rect", NULL
24151 };
24152
24153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24155 if (!SWIG_IsOK(res1)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24157 }
24158 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24159 if (obj1) {
24160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24161 if (!SWIG_IsOK(res2)) {
24162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24163 }
24164 arg2 = reinterpret_cast< wxRect * >(argp2);
24165 }
24166 {
24167 PyThreadState* __tstate = wxPyBeginAllowThreads();
24168 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24169 wxPyEndAllowThreads(__tstate);
24170 if (PyErr_Occurred()) SWIG_fail;
24171 }
24172 {
24173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24174 }
24175 return resultobj;
24176fail:
24177 return NULL;
24178}
24179
24180
24181SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24182 PyObject *resultobj = 0;
24183 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24184 bool result;
24185 void *argp1 = 0 ;
24186 int res1 = 0 ;
24187 PyObject *swig_obj[1] ;
24188
24189 if (!args) SWIG_fail;
24190 swig_obj[0] = args;
24191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24192 if (!SWIG_IsOK(res1)) {
24193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24194 }
24195 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 result = (bool)(arg1)->EndDrawingOnTop();
24199 wxPyEndAllowThreads(__tstate);
24200 if (PyErr_Occurred()) SWIG_fail;
24201 }
24202 {
24203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24204 }
24205 return resultobj;
24206fail:
24207 return NULL;
24208}
24209
24210
24211SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24212 PyObject *obj;
24213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24214 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24215 return SWIG_Py_Void();
24216}
24217
24218SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24219 return SWIG_Python_InitShadowInstance(args);
24220}
24221
24222SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24223 PyObject *resultobj = 0;
24224 wxWindow *arg1 = (wxWindow *) 0 ;
24225 wxWindowDC *result = 0 ;
24226 void *argp1 = 0 ;
24227 int res1 = 0 ;
24228 PyObject * obj0 = 0 ;
24229 char * kwnames[] = {
24230 (char *) "win", NULL
24231 };
24232
24233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24235 if (!SWIG_IsOK(res1)) {
24236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24237 }
24238 arg1 = reinterpret_cast< wxWindow * >(argp1);
24239 {
24240 if (!wxPyCheckForApp()) SWIG_fail;
24241 PyThreadState* __tstate = wxPyBeginAllowThreads();
24242 result = (wxWindowDC *)new wxWindowDC(arg1);
24243 wxPyEndAllowThreads(__tstate);
24244 if (PyErr_Occurred()) SWIG_fail;
24245 }
24246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24247 return resultobj;
24248fail:
24249 return NULL;
24250}
24251
24252
24253SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24254 PyObject *obj;
24255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24256 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24257 return SWIG_Py_Void();
24258}
24259
24260SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24261 return SWIG_Python_InitShadowInstance(args);
24262}
24263
24264SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj = 0;
24266 wxWindow *arg1 = (wxWindow *) 0 ;
24267 wxClientDC *result = 0 ;
24268 void *argp1 = 0 ;
24269 int res1 = 0 ;
24270 PyObject * obj0 = 0 ;
24271 char * kwnames[] = {
24272 (char *) "win", NULL
24273 };
24274
24275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24277 if (!SWIG_IsOK(res1)) {
24278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24279 }
24280 arg1 = reinterpret_cast< wxWindow * >(argp1);
24281 {
24282 if (!wxPyCheckForApp()) SWIG_fail;
24283 PyThreadState* __tstate = wxPyBeginAllowThreads();
24284 result = (wxClientDC *)new wxClientDC(arg1);
24285 wxPyEndAllowThreads(__tstate);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24289 return resultobj;
24290fail:
24291 return NULL;
24292}
24293
24294
24295SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24296 PyObject *obj;
24297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24298 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24299 return SWIG_Py_Void();
24300}
24301
24302SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24303 return SWIG_Python_InitShadowInstance(args);
24304}
24305
24306SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24307 PyObject *resultobj = 0;
24308 wxWindow *arg1 = (wxWindow *) 0 ;
24309 wxPaintDC *result = 0 ;
24310 void *argp1 = 0 ;
24311 int res1 = 0 ;
24312 PyObject * obj0 = 0 ;
24313 char * kwnames[] = {
24314 (char *) "win", NULL
24315 };
24316
24317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24319 if (!SWIG_IsOK(res1)) {
24320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24321 }
24322 arg1 = reinterpret_cast< wxWindow * >(argp1);
24323 {
24324 if (!wxPyCheckForApp()) SWIG_fail;
24325 PyThreadState* __tstate = wxPyBeginAllowThreads();
24326 result = (wxPaintDC *)new wxPaintDC(arg1);
24327 wxPyEndAllowThreads(__tstate);
24328 if (PyErr_Occurred()) SWIG_fail;
24329 }
24330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24331 return resultobj;
24332fail:
24333 return NULL;
24334}
24335
24336
24337SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24338 PyObject *obj;
24339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24340 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24341 return SWIG_Py_Void();
24342}
24343
24344SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24345 return SWIG_Python_InitShadowInstance(args);
24346}
24347
0085ce49
RD
24348SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24349 PyObject *resultobj = 0;
24350 wxDC *arg1 = (wxDC *) 0 ;
24351 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24352 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24353 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24354 wxBufferedDC *result = 0 ;
24355 void *argp1 = 0 ;
24356 int res1 = 0 ;
24357 void *argp2 = 0 ;
24358 int res2 = 0 ;
24359 int val3 ;
24360 int ecode3 = 0 ;
24361
24362 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24364 if (!SWIG_IsOK(res1)) {
24365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24366 }
24367 arg1 = reinterpret_cast< wxDC * >(argp1);
24368 if (swig_obj[1]) {
24369 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24370 if (!SWIG_IsOK(res2)) {
24371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24372 }
0085ce49
RD
24373 if (!argp2) {
24374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24375 }
0085ce49
RD
24376 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24377 }
24378 if (swig_obj[2]) {
24379 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24380 if (!SWIG_IsOK(ecode3)) {
24381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24382 }
24383 arg3 = static_cast< int >(val3);
24384 }
24385 {
24386 if (!wxPyCheckForApp()) SWIG_fail;
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
24388 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24393 return resultobj;
24394fail:
24395 return NULL;
24396}
24397
24398
24399SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24400 PyObject *resultobj = 0;
24401 wxDC *arg1 = (wxDC *) 0 ;
24402 wxSize *arg2 = 0 ;
24403 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24404 wxBufferedDC *result = 0 ;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 wxSize temp2 ;
24408 int val3 ;
24409 int ecode3 = 0 ;
24410
24411 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24413 if (!SWIG_IsOK(res1)) {
24414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24415 }
24416 arg1 = reinterpret_cast< wxDC * >(argp1);
24417 {
24418 arg2 = &temp2;
24419 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24420 }
24421 if (swig_obj[2]) {
24422 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24423 if (!SWIG_IsOK(ecode3)) {
24424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24425 }
24426 arg3 = static_cast< int >(val3);
24427 }
24428 {
24429 if (!wxPyCheckForApp()) SWIG_fail;
24430 PyThreadState* __tstate = wxPyBeginAllowThreads();
24431 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24432 wxPyEndAllowThreads(__tstate);
24433 if (PyErr_Occurred()) SWIG_fail;
24434 }
24435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24436 return resultobj;
24437fail:
24438 return NULL;
24439}
24440
24441
24442SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24443 int argc;
8e99bda9 24444 PyObject *argv[4];
0085ce49 24445
8e99bda9 24446 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
24447 --argc;
24448 if ((argc >= 1) && (argc <= 3)) {
24449 int _v = 0;
24450 if (argc > 1) {
24451 {
24452 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24453 _v = SWIG_CheckState(res);
24454 }
24455 if (!_v) goto check_1;
093d3ff1 24456 }
0085ce49
RD
24457 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24458 }
24459check_1:
24460
24461 if ((argc >= 2) && (argc <= 3)) {
24462 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24463 }
24464
24465fail:
24466 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24467 return NULL;
24468}
24469
24470
24471SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24472 PyObject *resultobj = 0;
24473 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
24476 PyObject *swig_obj[1] ;
24477
24478 if (!args) SWIG_fail;
24479 swig_obj[0] = args;
24480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24481 if (!SWIG_IsOK(res1)) {
24482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24483 }
24484 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24485 {
24486 PyThreadState* __tstate = wxPyBeginAllowThreads();
24487 delete arg1;
24488
24489 wxPyEndAllowThreads(__tstate);
24490 if (PyErr_Occurred()) SWIG_fail;
24491 }
24492 resultobj = SWIG_Py_Void();
24493 return resultobj;
24494fail:
24495 return NULL;
24496}
24497
24498
24499SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24500 PyObject *resultobj = 0;
24501 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 PyObject *swig_obj[1] ;
24505
24506 if (!args) SWIG_fail;
24507 swig_obj[0] = args;
24508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24509 if (!SWIG_IsOK(res1)) {
24510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24511 }
24512 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24513 {
24514 PyThreadState* __tstate = wxPyBeginAllowThreads();
24515 (arg1)->UnMask();
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 resultobj = SWIG_Py_Void();
24520 return resultobj;
24521fail:
24522 return NULL;
24523}
24524
24525
24526SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24527 PyObject *obj;
24528 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24529 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24530 return SWIG_Py_Void();
24531}
24532
24533SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24534 return SWIG_Python_InitShadowInstance(args);
24535}
24536
24537SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24538 PyObject *resultobj = 0;
24539 wxWindow *arg1 = (wxWindow *) 0 ;
24540 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24541 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24542 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24543 wxBufferedPaintDC *result = 0 ;
24544 void *argp1 = 0 ;
24545 int res1 = 0 ;
24546 void *argp2 = 0 ;
24547 int res2 = 0 ;
24548 int val3 ;
24549 int ecode3 = 0 ;
24550 PyObject * obj0 = 0 ;
24551 PyObject * obj1 = 0 ;
24552 PyObject * obj2 = 0 ;
24553 char * kwnames[] = {
24554 (char *) "window",(char *) "buffer",(char *) "style", NULL
24555 };
24556
24557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24559 if (!SWIG_IsOK(res1)) {
24560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24561 }
24562 arg1 = reinterpret_cast< wxWindow * >(argp1);
24563 if (obj1) {
24564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24565 if (!SWIG_IsOK(res2)) {
24566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24567 }
0085ce49
RD
24568 if (!argp2) {
24569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24570 }
0085ce49
RD
24571 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24572 }
24573 if (obj2) {
24574 ecode3 = SWIG_AsVal_int(obj2, &val3);
24575 if (!SWIG_IsOK(ecode3)) {
24576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24577 }
24578 arg3 = static_cast< int >(val3);
24579 }
24580 {
24581 if (!wxPyCheckForApp()) SWIG_fail;
24582 PyThreadState* __tstate = wxPyBeginAllowThreads();
24583 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24584 wxPyEndAllowThreads(__tstate);
24585 if (PyErr_Occurred()) SWIG_fail;
24586 }
24587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24588 return resultobj;
24589fail:
24590 return NULL;
24591}
24592
24593
24594SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24595 PyObject *obj;
24596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24597 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24598 return SWIG_Py_Void();
24599}
24600
24601SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24602 return SWIG_Python_InitShadowInstance(args);
24603}
24604
24f6c4e8 24605SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
24606 PyObject *resultobj = 0;
24607 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24608 wxAutoBufferedPaintDC *result = 0 ;
0085ce49
RD
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 PyObject * obj0 = 0 ;
24612 char * kwnames[] = {
24613 (char *) "win", NULL
24614 };
24615
24f6c4e8 24616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
24617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24618 if (!SWIG_IsOK(res1)) {
24f6c4e8 24619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
24620 }
24621 arg1 = reinterpret_cast< wxWindow * >(argp1);
24622 {
0085ce49 24623 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24624 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
0085ce49
RD
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24f6c4e8 24628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
24629 return resultobj;
24630fail:
24631 return NULL;
24632}
24633
24634
24f6c4e8 24635SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24636 PyObject *obj;
24637 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24638 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
24639 return SWIG_Py_Void();
24640}
24641
24f6c4e8 24642SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24643 return SWIG_Python_InitShadowInstance(args);
24644}
24645
8e99bda9
RD
24646SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxWindow *arg1 = (wxWindow *) 0 ;
24649 wxDC *result = 0 ;
24650 void *argp1 = 0 ;
24651 int res1 = 0 ;
24652 PyObject * obj0 = 0 ;
24653 char * kwnames[] = {
24654 (char *) "window", NULL
24655 };
24656
24657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24659 if (!SWIG_IsOK(res1)) {
24660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24661 }
24662 arg1 = reinterpret_cast< wxWindow * >(argp1);
24663 {
24664 PyThreadState* __tstate = wxPyBeginAllowThreads();
24665 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24666 wxPyEndAllowThreads(__tstate);
24667 if (PyErr_Occurred()) SWIG_fail;
24668 }
24669 {
24670 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24671 }
24672 return resultobj;
24673fail:
24674 return NULL;
24675}
24676
24677
0085ce49
RD
24678SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24679 PyObject *resultobj = 0;
24680 wxDC *arg1 = 0 ;
24681 bool arg2 ;
24682 wxMirrorDC *result = 0 ;
24683 void *argp1 = 0 ;
24684 int res1 = 0 ;
24685 bool val2 ;
24686 int ecode2 = 0 ;
24687 PyObject * obj0 = 0 ;
24688 PyObject * obj1 = 0 ;
24689 char * kwnames[] = {
24690 (char *) "dc",(char *) "mirror", NULL
24691 };
24692
24693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24694 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24695 if (!SWIG_IsOK(res1)) {
24696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24697 }
24698 if (!argp1) {
24699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24700 }
24701 arg1 = reinterpret_cast< wxDC * >(argp1);
24702 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24703 if (!SWIG_IsOK(ecode2)) {
24704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24705 }
24706 arg2 = static_cast< bool >(val2);
24707 {
24708 if (!wxPyCheckForApp()) SWIG_fail;
24709 PyThreadState* __tstate = wxPyBeginAllowThreads();
24710 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24711 wxPyEndAllowThreads(__tstate);
24712 if (PyErr_Occurred()) SWIG_fail;
24713 }
24714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24715 return resultobj;
24716fail:
24717 return NULL;
24718}
24719
24720
24721SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24722 PyObject *obj;
24723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24724 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24725 return SWIG_Py_Void();
24726}
24727
24728SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24729 return SWIG_Python_InitShadowInstance(args);
24730}
24731
24732SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24733 PyObject *resultobj = 0;
24734 wxPrintData *arg1 = 0 ;
24735 wxPostScriptDC *result = 0 ;
24736 void *argp1 = 0 ;
24737 int res1 = 0 ;
24738 PyObject * obj0 = 0 ;
24739 char * kwnames[] = {
24740 (char *) "printData", NULL
24741 };
24742
24743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24744 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24745 if (!SWIG_IsOK(res1)) {
24746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24747 }
24748 if (!argp1) {
24749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24750 }
24751 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24752 {
24753 if (!wxPyCheckForApp()) SWIG_fail;
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24760 return resultobj;
24761fail:
24762 return NULL;
24763}
24764
24765
24766SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24767 PyObject *resultobj = 0;
24768 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24769 wxPrintData *result = 0 ;
24770 void *argp1 = 0 ;
24771 int res1 = 0 ;
24772 PyObject *swig_obj[1] ;
24773
24774 if (!args) SWIG_fail;
24775 swig_obj[0] = args;
24776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24777 if (!SWIG_IsOK(res1)) {
24778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24779 }
24780 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24781 {
24782 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24783 {
0085ce49
RD
24784 wxPrintData &_result_ref = (arg1)->GetPrintData();
24785 result = (wxPrintData *) &_result_ref;
e2950dbb 24786 }
0085ce49
RD
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24791 return resultobj;
24792fail:
24793 return NULL;
24794}
24795
24796
24797SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24798 PyObject *resultobj = 0;
24799 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24800 wxPrintData *arg2 = 0 ;
24801 void *argp1 = 0 ;
24802 int res1 = 0 ;
24803 void *argp2 = 0 ;
24804 int res2 = 0 ;
24805 PyObject * obj0 = 0 ;
24806 PyObject * obj1 = 0 ;
24807 char * kwnames[] = {
24808 (char *) "self",(char *) "data", NULL
24809 };
24810
24811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24813 if (!SWIG_IsOK(res1)) {
24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24815 }
24816 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24818 if (!SWIG_IsOK(res2)) {
24819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24820 }
24821 if (!argp2) {
24822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24823 }
24824 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24825 {
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24828 wxPyEndAllowThreads(__tstate);
24829 if (PyErr_Occurred()) SWIG_fail;
24830 }
24831 resultobj = SWIG_Py_Void();
24832 return resultobj;
24833fail:
24834 return NULL;
24835}
24836
24837
24838SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24839 PyObject *resultobj = 0;
24840 int arg1 ;
24841 int val1 ;
24842 int ecode1 = 0 ;
24843 PyObject * obj0 = 0 ;
24844 char * kwnames[] = {
24845 (char *) "ppi", NULL
24846 };
24847
24848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24849 ecode1 = SWIG_AsVal_int(obj0, &val1);
24850 if (!SWIG_IsOK(ecode1)) {
24851 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24852 }
24853 arg1 = static_cast< int >(val1);
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 wxPostScriptDC::SetResolution(arg1);
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 resultobj = SWIG_Py_Void();
24861 return resultobj;
24862fail:
24863 return NULL;
24864}
24865
24866
24867SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24868 PyObject *resultobj = 0;
24869 int result;
24870
24871 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24872 {
24873 PyThreadState* __tstate = wxPyBeginAllowThreads();
24874 result = (int)wxPostScriptDC::GetResolution();
24875 wxPyEndAllowThreads(__tstate);
24876 if (PyErr_Occurred()) SWIG_fail;
24877 }
24878 resultobj = SWIG_From_int(static_cast< int >(result));
24879 return resultobj;
24880fail:
24881 return NULL;
24882}
24883
24884
24885SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24886 PyObject *obj;
24887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24888 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24889 return SWIG_Py_Void();
24890}
24891
24892SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24893 return SWIG_Python_InitShadowInstance(args);
24894}
24895
24896SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24897 PyObject *resultobj = 0;
24898 wxString const &arg1_defvalue = wxPyEmptyString ;
24899 wxString *arg1 = (wxString *) &arg1_defvalue ;
24900 wxMetaFile *result = 0 ;
24901 bool temp1 = false ;
24902 PyObject * obj0 = 0 ;
24903 char * kwnames[] = {
24904 (char *) "filename", NULL
24905 };
24906
24907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24908 if (obj0) {
093d3ff1 24909 {
0085ce49
RD
24910 arg1 = wxString_in_helper(obj0);
24911 if (arg1 == NULL) SWIG_fail;
24912 temp1 = true;
093d3ff1 24913 }
0085ce49
RD
24914 }
24915 {
24916 if (!wxPyCheckForApp()) SWIG_fail;
24917 PyThreadState* __tstate = wxPyBeginAllowThreads();
24918 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24919 wxPyEndAllowThreads(__tstate);
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24923 {
24924 if (temp1)
24925 delete arg1;
24926 }
24927 return resultobj;
24928fail:
24929 {
24930 if (temp1)
24931 delete arg1;
24932 }
24933 return NULL;
24934}
24935
24936
24937SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24938 PyObject *obj;
24939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24940 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24941 return SWIG_Py_Void();
24942}
24943
24944SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24945 return SWIG_Python_InitShadowInstance(args);
24946}
24947
24948SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24949 PyObject *resultobj = 0;
24950 wxString const &arg1_defvalue = wxPyEmptyString ;
24951 wxString *arg1 = (wxString *) &arg1_defvalue ;
24952 int arg2 = (int) 0 ;
24953 int arg3 = (int) 0 ;
24954 wxString const &arg4_defvalue = wxPyEmptyString ;
24955 wxString *arg4 = (wxString *) &arg4_defvalue ;
24956 wxMetaFileDC *result = 0 ;
24957 bool temp1 = false ;
24958 int val2 ;
24959 int ecode2 = 0 ;
24960 int val3 ;
24961 int ecode3 = 0 ;
24962 bool temp4 = false ;
24963 PyObject * obj0 = 0 ;
24964 PyObject * obj1 = 0 ;
24965 PyObject * obj2 = 0 ;
24966 PyObject * obj3 = 0 ;
24967 char * kwnames[] = {
24968 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24969 };
24970
24971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24972 if (obj0) {
093d3ff1 24973 {
0085ce49
RD
24974 arg1 = wxString_in_helper(obj0);
24975 if (arg1 == NULL) SWIG_fail;
24976 temp1 = true;
093d3ff1 24977 }
0085ce49
RD
24978 }
24979 if (obj1) {
24980 ecode2 = SWIG_AsVal_int(obj1, &val2);
24981 if (!SWIG_IsOK(ecode2)) {
24982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24983 }
24984 arg2 = static_cast< int >(val2);
24985 }
24986 if (obj2) {
24987 ecode3 = SWIG_AsVal_int(obj2, &val3);
24988 if (!SWIG_IsOK(ecode3)) {
24989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24990 }
24991 arg3 = static_cast< int >(val3);
24992 }
24993 if (obj3) {
093d3ff1 24994 {
0085ce49
RD
24995 arg4 = wxString_in_helper(obj3);
24996 if (arg4 == NULL) SWIG_fail;
24997 temp4 = true;
093d3ff1 24998 }
0085ce49
RD
24999 }
25000 {
25001 if (!wxPyCheckForApp()) SWIG_fail;
25002 PyThreadState* __tstate = wxPyBeginAllowThreads();
25003 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25004 wxPyEndAllowThreads(__tstate);
25005 if (PyErr_Occurred()) SWIG_fail;
25006 }
25007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25008 {
25009 if (temp1)
25010 delete arg1;
25011 }
25012 {
25013 if (temp4)
25014 delete arg4;
25015 }
25016 return resultobj;
25017fail:
25018 {
25019 if (temp1)
25020 delete arg1;
25021 }
25022 {
25023 if (temp4)
25024 delete arg4;
25025 }
25026 return NULL;
25027}
25028
25029
25030SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25031 PyObject *obj;
25032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25033 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25034 return SWIG_Py_Void();
25035}
25036
25037SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25038 return SWIG_Python_InitShadowInstance(args);
25039}
25040
25041SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25042 PyObject *resultobj = 0;
25043 wxPrintData *arg1 = 0 ;
25044 wxPrinterDC *result = 0 ;
25045 void *argp1 = 0 ;
25046 int res1 = 0 ;
25047 PyObject * obj0 = 0 ;
25048 char * kwnames[] = {
25049 (char *) "printData", NULL
25050 };
25051
25052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25053 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25054 if (!SWIG_IsOK(res1)) {
25055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25056 }
25057 if (!argp1) {
25058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25059 }
25060 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25061 {
25062 if (!wxPyCheckForApp()) SWIG_fail;
25063 PyThreadState* __tstate = wxPyBeginAllowThreads();
25064 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25065 wxPyEndAllowThreads(__tstate);
25066 if (PyErr_Occurred()) SWIG_fail;
25067 }
25068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25069 return resultobj;
25070fail:
25071 return NULL;
25072}
25073
25074
25075SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25076 PyObject *obj;
25077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25078 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25079 return SWIG_Py_Void();
25080}
25081
25082SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25083 return SWIG_Python_InitShadowInstance(args);
25084}
25085
70d7cb34
RD
25086SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25087 PyObject *resultobj = 0;
25088 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25089 wxGraphicsObject *result = 0 ;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 PyObject * obj0 = 0 ;
25093 char * kwnames[] = {
25094 (char *) "renderer", NULL
25095 };
25096
25097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25098 if (obj0) {
25099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25100 if (!SWIG_IsOK(res1)) {
25101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25102 }
25103 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25104 }
25105 {
25106 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25107 if (PyErr_Occurred()) SWIG_fail;
25108 }
25109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25110 return resultobj;
25111fail:
25112 return NULL;
25113}
25114
25115
25116SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25117 PyObject *resultobj = 0;
25118 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25119 void *argp1 = 0 ;
25120 int res1 = 0 ;
25121 PyObject *swig_obj[1] ;
25122
25123 if (!args) SWIG_fail;
25124 swig_obj[0] = args;
25125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25126 if (!SWIG_IsOK(res1)) {
25127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25128 }
25129 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25130 {
25131 delete arg1;
25132
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 resultobj = SWIG_Py_Void();
25136 return resultobj;
25137fail:
25138 return NULL;
25139}
25140
25141
25142SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25143 PyObject *resultobj = 0;
25144 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25145 bool result;
25146 void *argp1 = 0 ;
25147 int res1 = 0 ;
25148 PyObject *swig_obj[1] ;
25149
25150 if (!args) SWIG_fail;
25151 swig_obj[0] = args;
25152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25153 if (!SWIG_IsOK(res1)) {
25154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25155 }
25156 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25157 {
25158 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 {
25162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25163 }
25164 return resultobj;
25165fail:
25166 return NULL;
25167}
25168
25169
25170SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25171 PyObject *resultobj = 0;
25172 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25173 wxGraphicsRenderer *result = 0 ;
25174 void *argp1 = 0 ;
25175 int res1 = 0 ;
25176 PyObject *swig_obj[1] ;
25177
25178 if (!args) SWIG_fail;
25179 swig_obj[0] = args;
25180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25181 if (!SWIG_IsOK(res1)) {
25182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25183 }
25184 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25185 {
25186 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25187 if (PyErr_Occurred()) SWIG_fail;
25188 }
25189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25190 return resultobj;
25191fail:
25192 return NULL;
25193}
25194
25195
25196SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25197 PyObject *obj;
25198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25199 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25200 return SWIG_Py_Void();
25201}
25202
25203SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25204 return SWIG_Python_InitShadowInstance(args);
25205}
25206
25207SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25208 PyObject *resultobj = 0;
25209 wxGraphicsPen *result = 0 ;
25210
25211 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25212 {
25213 result = (wxGraphicsPen *)new wxGraphicsPen();
25214 if (PyErr_Occurred()) SWIG_fail;
25215 }
25216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25217 return resultobj;
25218fail:
25219 return NULL;
25220}
25221
25222
25223SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25224 PyObject *resultobj = 0;
25225 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25226 void *argp1 = 0 ;
25227 int res1 = 0 ;
25228 PyObject *swig_obj[1] ;
25229
25230 if (!args) SWIG_fail;
25231 swig_obj[0] = args;
25232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25233 if (!SWIG_IsOK(res1)) {
25234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25235 }
25236 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25237 {
25238 delete arg1;
25239
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 resultobj = SWIG_Py_Void();
25243 return resultobj;
25244fail:
25245 return NULL;
25246}
25247
25248
25249SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25250 PyObject *obj;
25251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25252 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25253 return SWIG_Py_Void();
25254}
25255
25256SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25257 return SWIG_Python_InitShadowInstance(args);
25258}
25259
25260SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25261 PyObject *resultobj = 0;
25262 wxGraphicsBrush *result = 0 ;
25263
25264 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25265 {
25266 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25267 if (PyErr_Occurred()) SWIG_fail;
25268 }
25269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25270 return resultobj;
25271fail:
25272 return NULL;
25273}
25274
25275
25276SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25277 PyObject *resultobj = 0;
25278 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25279 void *argp1 = 0 ;
25280 int res1 = 0 ;
25281 PyObject *swig_obj[1] ;
25282
25283 if (!args) SWIG_fail;
25284 swig_obj[0] = args;
25285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25286 if (!SWIG_IsOK(res1)) {
25287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25288 }
25289 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25290 {
25291 delete arg1;
25292
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_Py_Void();
25296 return resultobj;
25297fail:
25298 return NULL;
25299}
25300
25301
25302SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25303 PyObject *obj;
25304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25305 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25306 return SWIG_Py_Void();
25307}
25308
25309SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25310 return SWIG_Python_InitShadowInstance(args);
25311}
25312
25313SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25314 PyObject *resultobj = 0;
25315 wxGraphicsFont *result = 0 ;
25316
25317 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25318 {
25319 result = (wxGraphicsFont *)new wxGraphicsFont();
25320 if (PyErr_Occurred()) SWIG_fail;
25321 }
25322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25323 return resultobj;
25324fail:
25325 return NULL;
25326}
25327
25328
25329SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25330 PyObject *resultobj = 0;
25331 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25332 void *argp1 = 0 ;
25333 int res1 = 0 ;
25334 PyObject *swig_obj[1] ;
25335
25336 if (!args) SWIG_fail;
25337 swig_obj[0] = args;
25338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25341 }
25342 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25343 {
25344 delete arg1;
25345
25346 if (PyErr_Occurred()) SWIG_fail;
25347 }
25348 resultobj = SWIG_Py_Void();
25349 return resultobj;
25350fail:
25351 return NULL;
25352}
25353
25354
25355SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25356 PyObject *obj;
25357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25358 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25359 return SWIG_Py_Void();
25360}
25361
25362SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25363 return SWIG_Python_InitShadowInstance(args);
25364}
25365
8f514ab4
RD
25366SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25367 PyObject *resultobj = 0;
25368 wxGraphicsMatrix *result = 0 ;
25369
25370 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25371 {
25372 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25373 if (PyErr_Occurred()) SWIG_fail;
25374 }
25375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25376 return resultobj;
25377fail:
25378 return NULL;
25379}
25380
25381
5c8c7dd3 25382SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25383 PyObject *resultobj = 0;
5c8c7dd3 25384 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25385 void *argp1 = 0 ;
25386 int res1 = 0 ;
25387 PyObject *swig_obj[1] ;
25388
25389 if (!args) SWIG_fail;
25390 swig_obj[0] = args;
5c8c7dd3 25391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
0085ce49 25392 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25394 }
5c8c7dd3 25395 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25396 {
0085ce49
RD
25397 delete arg1;
25398
0085ce49
RD
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_Py_Void();
25402 return resultobj;
25403fail:
25404 return NULL;
25405}
25406
25407
5c8c7dd3 25408SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25409 PyObject *resultobj = 0;
5c8c7dd3
RD
25410 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25411 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25412 void *argp1 = 0 ;
25413 int res1 = 0 ;
5c8c7dd3
RD
25414 void *argp2 = 0 ;
25415 int res2 = 0 ;
25416 PyObject * obj0 = 0 ;
25417 PyObject * obj1 = 0 ;
25418 char * kwnames[] = {
25419 (char *) "self",(char *) "t", NULL
25420 };
70d7cb34 25421
5c8c7dd3
RD
25422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25424 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25426 }
5c8c7dd3
RD
25427 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25428 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25429 if (!SWIG_IsOK(res2)) {
25430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25431 }
25432 if (!argp2) {
25433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25434 }
25435 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25436 {
5c8c7dd3 25437 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25438 if (PyErr_Occurred()) SWIG_fail;
25439 }
5c8c7dd3 25440 resultobj = SWIG_Py_Void();
70d7cb34
RD
25441 return resultobj;
25442fail:
25443 return NULL;
25444}
25445
25446
5c8c7dd3 25447SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25448 PyObject *resultobj = 0;
5c8c7dd3
RD
25449 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25450 wxGraphicsMatrix *arg2 = 0 ;
0085ce49
RD
25451 void *argp1 = 0 ;
25452 int res1 = 0 ;
5c8c7dd3
RD
25453 void *argp2 = 0 ;
25454 int res2 = 0 ;
25455 PyObject * obj0 = 0 ;
25456 PyObject * obj1 = 0 ;
25457 char * kwnames[] = {
25458 (char *) "self",(char *) "t", NULL
25459 };
0085ce49 25460
5c8c7dd3
RD
25461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
25462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25463 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25465 }
5c8c7dd3
RD
25466 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25468 if (!SWIG_IsOK(res2)) {
25469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25470 }
25471 if (!argp2) {
25472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25473 }
25474 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
0085ce49 25475 {
5c8c7dd3 25476 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
0085ce49
RD
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
72ef6efb 25479 resultobj = SWIG_Py_Void();
0085ce49
RD
25480 return resultobj;
25481fail:
25482 return NULL;
25483}
25484
25485
5c8c7dd3 25486SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25487 PyObject *resultobj = 0;
5c8c7dd3
RD
25488 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25489 wxDouble arg2 = (wxDouble) 1.0 ;
25490 wxDouble arg3 = (wxDouble) 0.0 ;
25491 wxDouble arg4 = (wxDouble) 0.0 ;
25492 wxDouble arg5 = (wxDouble) 1.0 ;
25493 wxDouble arg6 = (wxDouble) 0.0 ;
25494 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25495 void *argp1 = 0 ;
25496 int res1 = 0 ;
5c8c7dd3
RD
25497 double val2 ;
25498 int ecode2 = 0 ;
25499 double val3 ;
25500 int ecode3 = 0 ;
25501 double val4 ;
25502 int ecode4 = 0 ;
25503 double val5 ;
25504 int ecode5 = 0 ;
25505 double val6 ;
25506 int ecode6 = 0 ;
25507 double val7 ;
25508 int ecode7 = 0 ;
25509 PyObject * obj0 = 0 ;
25510 PyObject * obj1 = 0 ;
25511 PyObject * obj2 = 0 ;
25512 PyObject * obj3 = 0 ;
25513 PyObject * obj4 = 0 ;
25514 PyObject * obj5 = 0 ;
25515 PyObject * obj6 = 0 ;
25516 char * kwnames[] = {
25517 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25518 };
70d7cb34 25519
5c8c7dd3
RD
25520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25522 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25524 }
5c8c7dd3
RD
25525 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25526 if (obj1) {
25527 ecode2 = SWIG_AsVal_double(obj1, &val2);
25528 if (!SWIG_IsOK(ecode2)) {
25529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25530 }
25531 arg2 = static_cast< wxDouble >(val2);
25532 }
25533 if (obj2) {
25534 ecode3 = SWIG_AsVal_double(obj2, &val3);
25535 if (!SWIG_IsOK(ecode3)) {
25536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25537 }
25538 arg3 = static_cast< wxDouble >(val3);
25539 }
25540 if (obj3) {
25541 ecode4 = SWIG_AsVal_double(obj3, &val4);
25542 if (!SWIG_IsOK(ecode4)) {
25543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25544 }
25545 arg4 = static_cast< wxDouble >(val4);
25546 }
25547 if (obj4) {
25548 ecode5 = SWIG_AsVal_double(obj4, &val5);
25549 if (!SWIG_IsOK(ecode5)) {
25550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25551 }
25552 arg5 = static_cast< wxDouble >(val5);
25553 }
25554 if (obj5) {
25555 ecode6 = SWIG_AsVal_double(obj5, &val6);
25556 if (!SWIG_IsOK(ecode6)) {
25557 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25558 }
25559 arg6 = static_cast< wxDouble >(val6);
25560 }
25561 if (obj6) {
25562 ecode7 = SWIG_AsVal_double(obj6, &val7);
25563 if (!SWIG_IsOK(ecode7)) {
25564 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25565 }
25566 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25567 }
25568 {
5c8c7dd3 25569 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25570 if (PyErr_Occurred()) SWIG_fail;
25571 }
25572 resultobj = SWIG_Py_Void();
25573 return resultobj;
25574fail:
25575 return NULL;
25576}
25577
25578
5c8c7dd3 25579SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25580 PyObject *resultobj = 0;
5c8c7dd3 25581 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25582 void *argp1 = 0 ;
25583 int res1 = 0 ;
5c8c7dd3 25584 PyObject *swig_obj[1] ;
0085ce49 25585
5c8c7dd3
RD
25586 if (!args) SWIG_fail;
25587 swig_obj[0] = args;
25588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25589 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25591 }
5c8c7dd3 25592 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25593 {
5c8c7dd3 25594 (arg1)->Invert();
0085ce49
RD
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
72ef6efb 25597 resultobj = SWIG_Py_Void();
0085ce49
RD
25598 return resultobj;
25599fail:
25600 return NULL;
25601}
25602
25603
5c8c7dd3 25604SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25605 PyObject *resultobj = 0;
5c8c7dd3
RD
25606 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25607 wxGraphicsMatrix *arg2 = 0 ;
25608 bool result;
70d7cb34
RD
25609 void *argp1 = 0 ;
25610 int res1 = 0 ;
5c8c7dd3
RD
25611 void *argp2 = 0 ;
25612 int res2 = 0 ;
25613 PyObject * obj0 = 0 ;
25614 PyObject * obj1 = 0 ;
25615 char * kwnames[] = {
25616 (char *) "self",(char *) "t", NULL
25617 };
70d7cb34 25618
5c8c7dd3
RD
25619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25621 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25623 }
5c8c7dd3
RD
25624 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25626 if (!SWIG_IsOK(res2)) {
25627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25628 }
25629 if (!argp2) {
25630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25631 }
5c8c7dd3 25632 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25633 {
5c8c7dd3 25634 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25635 if (PyErr_Occurred()) SWIG_fail;
25636 }
5c8c7dd3
RD
25637 {
25638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25639 }
70d7cb34
RD
25640 return resultobj;
25641fail:
25642 return NULL;
25643}
25644
25645
5c8c7dd3
RD
25646SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25647 PyObject *resultobj = 0;
25648 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25649 bool result;
25650 void *argp1 = 0 ;
25651 int res1 = 0 ;
25652 PyObject *swig_obj[1] ;
70d7cb34 25653
5c8c7dd3
RD
25654 if (!args) SWIG_fail;
25655 swig_obj[0] = args;
25656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25657 if (!SWIG_IsOK(res1)) {
25658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25659 }
5c8c7dd3
RD
25660 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25661 {
25662 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25663 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25664 }
5c8c7dd3
RD
25665 {
25666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25667 }
25668 return resultobj;
70d7cb34 25669fail:
70d7cb34
RD
25670 return NULL;
25671}
25672
25673
5c8c7dd3 25674SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25675 PyObject *resultobj = 0;
5c8c7dd3 25676 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25677 wxDouble arg2 ;
25678 wxDouble arg3 ;
0085ce49
RD
25679 void *argp1 = 0 ;
25680 int res1 = 0 ;
72ef6efb
RD
25681 double val2 ;
25682 int ecode2 = 0 ;
25683 double val3 ;
25684 int ecode3 = 0 ;
5c8c7dd3
RD
25685 PyObject * obj0 = 0 ;
25686 PyObject * obj1 = 0 ;
25687 PyObject * obj2 = 0 ;
25688 char * kwnames[] = {
25689 (char *) "self",(char *) "dx",(char *) "dy", NULL
25690 };
72ef6efb 25691
5c8c7dd3
RD
25692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25694 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25696 }
5c8c7dd3
RD
25697 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25698 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25699 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25701 }
25702 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25703 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25704 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25706 }
25707 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25708 {
5c8c7dd3 25709 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25710 if (PyErr_Occurred()) SWIG_fail;
25711 }
25712 resultobj = SWIG_Py_Void();
25713 return resultobj;
25714fail:
25715 return NULL;
25716}
25717
25718
5c8c7dd3 25719SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25720 PyObject *resultobj = 0;
5c8c7dd3
RD
25721 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25722 wxDouble arg2 ;
25723 wxDouble arg3 ;
70d7cb34
RD
25724 void *argp1 = 0 ;
25725 int res1 = 0 ;
5c8c7dd3
RD
25726 double val2 ;
25727 int ecode2 = 0 ;
25728 double val3 ;
25729 int ecode3 = 0 ;
25730 PyObject * obj0 = 0 ;
25731 PyObject * obj1 = 0 ;
25732 PyObject * obj2 = 0 ;
25733 char * kwnames[] = {
25734 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25735 };
70d7cb34 25736
5c8c7dd3
RD
25737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25739 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25741 }
5c8c7dd3
RD
25742 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25743 ecode2 = SWIG_AsVal_double(obj1, &val2);
25744 if (!SWIG_IsOK(ecode2)) {
25745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25746 }
25747 arg2 = static_cast< wxDouble >(val2);
25748 ecode3 = SWIG_AsVal_double(obj2, &val3);
25749 if (!SWIG_IsOK(ecode3)) {
25750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25751 }
25752 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25753 {
5c8c7dd3 25754 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
25757 resultobj = SWIG_Py_Void();
25758 return resultobj;
25759fail:
25760 return NULL;
25761}
25762
25763
5c8c7dd3 25764SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25765 PyObject *resultobj = 0;
5c8c7dd3
RD
25766 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25767 wxDouble arg2 ;
70d7cb34
RD
25768 void *argp1 = 0 ;
25769 int res1 = 0 ;
5c8c7dd3
RD
25770 double val2 ;
25771 int ecode2 = 0 ;
70d7cb34
RD
25772 PyObject * obj0 = 0 ;
25773 PyObject * obj1 = 0 ;
25774 char * kwnames[] = {
5c8c7dd3 25775 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25776 };
25777
5c8c7dd3
RD
25778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25780 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25782 }
5c8c7dd3
RD
25783 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25784 ecode2 = SWIG_AsVal_double(obj1, &val2);
25785 if (!SWIG_IsOK(ecode2)) {
25786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25787 }
25788 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25789 {
5c8c7dd3 25790 (arg1)->Rotate(arg2);
70d7cb34
RD
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 resultobj = SWIG_Py_Void();
25794 return resultobj;
25795fail:
25796 return NULL;
25797}
25798
25799
5c8c7dd3 25800SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 25801 PyObject *resultobj = 0;
5c8c7dd3
RD
25802 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25803 wxDouble *arg2 = (wxDouble *) 0 ;
25804 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
5c8c7dd3
RD
25807 wxDouble temp2 ;
25808 int res2 = 0 ;
25809 wxDouble temp3 ;
25810 int res3 = 0 ;
25811 PyObject * obj0 = 0 ;
25812 PyObject * obj1 = 0 ;
25813 PyObject * obj2 = 0 ;
25814 char * kwnames[] = {
25815 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25816 };
72ef6efb 25817
5c8c7dd3
RD
25818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25820 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
25821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25822 }
25823 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25824 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25825 double val;
25826 int ecode = SWIG_AsVal_double(obj1, &val);
25827 if (!SWIG_IsOK(ecode)) {
25828 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25829 }
25830 temp2 = static_cast< wxDouble >(val);
25831 arg2 = &temp2;
25832 res2 = SWIG_AddTmpMask(ecode);
25833 }
25834 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25835 double val;
25836 int ecode = SWIG_AsVal_double(obj2, &val);
25837 if (!SWIG_IsOK(ecode)) {
25838 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25839 }
25840 temp3 = static_cast< wxDouble >(val);
25841 arg3 = &temp3;
25842 res3 = SWIG_AddTmpMask(ecode);
25843 }
25844 {
25845 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25846 if (PyErr_Occurred()) SWIG_fail;
72ef6efb
RD
25847 }
25848 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
25849 if (SWIG_IsTmpObj(res2)) {
25850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25851 } else {
25852 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25854 }
25855 if (SWIG_IsTmpObj(res3)) {
25856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25857 } else {
25858 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25860 }
72ef6efb
RD
25861 return resultobj;
25862fail:
25863 return NULL;
25864}
25865
25866
5c8c7dd3
RD
25867SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj = 0;
25869 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25870 wxDouble *arg2 = (wxDouble *) 0 ;
25871 wxDouble *arg3 = (wxDouble *) 0 ;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 wxDouble temp2 ;
25875 int res2 = 0 ;
25876 wxDouble temp3 ;
25877 int res3 = 0 ;
25878 PyObject * obj0 = 0 ;
25879 PyObject * obj1 = 0 ;
25880 PyObject * obj2 = 0 ;
25881 char * kwnames[] = {
25882 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25883 };
25884
25885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25887 if (!SWIG_IsOK(res1)) {
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25889 }
25890 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25891 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25892 double val;
25893 int ecode = SWIG_AsVal_double(obj1, &val);
25894 if (!SWIG_IsOK(ecode)) {
25895 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25896 }
25897 temp2 = static_cast< wxDouble >(val);
25898 arg2 = &temp2;
25899 res2 = SWIG_AddTmpMask(ecode);
25900 }
25901 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25902 double val;
25903 int ecode = SWIG_AsVal_double(obj2, &val);
25904 if (!SWIG_IsOK(ecode)) {
25905 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25906 }
25907 temp3 = static_cast< wxDouble >(val);
25908 arg3 = &temp3;
25909 res3 = SWIG_AddTmpMask(ecode);
25910 }
25911 {
25912 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25913 if (PyErr_Occurred()) SWIG_fail;
25914 }
25915 resultobj = SWIG_Py_Void();
25916 if (SWIG_IsTmpObj(res2)) {
25917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25918 } else {
25919 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25921 }
25922 if (SWIG_IsTmpObj(res3)) {
25923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25924 } else {
25925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25927 }
25928 return resultobj;
25929fail:
25930 return NULL;
25931}
25932
25933
25934SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25935 PyObject *resultobj = 0;
25936 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25937 void *result = 0 ;
25938 void *argp1 = 0 ;
25939 int res1 = 0 ;
25940 PyObject *swig_obj[1] ;
25941
25942 if (!args) SWIG_fail;
25943 swig_obj[0] = args;
25944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25945 if (!SWIG_IsOK(res1)) {
25946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25947 }
25948 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25949 {
25950 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25954 return resultobj;
25955fail:
25956 return NULL;
25957}
25958
25959
25960SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25961 PyObject *obj;
25962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25963 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
25964 return SWIG_Py_Void();
25965}
25966
8f514ab4
RD
25967SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25968 return SWIG_Python_InitShadowInstance(args);
25969}
25970
25971SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25972 PyObject *resultobj = 0;
25973 wxGraphicsPath *result = 0 ;
25974
25975 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
25976 {
25977 if (!wxPyCheckForApp()) SWIG_fail;
25978 PyThreadState* __tstate = wxPyBeginAllowThreads();
25979 result = (wxGraphicsPath *)new wxGraphicsPath();
25980 wxPyEndAllowThreads(__tstate);
25981 if (PyErr_Occurred()) SWIG_fail;
25982 }
25983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
25984 return resultobj;
25985fail:
25986 return NULL;
25987}
25988
25989
5c8c7dd3 25990SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
25991 PyObject *resultobj = 0;
25992 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
25993 void *argp1 = 0 ;
25994 int res1 = 0 ;
25995 PyObject *swig_obj[1] ;
25996
25997 if (!args) SWIG_fail;
25998 swig_obj[0] = args;
5c8c7dd3 25999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26000 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26002 }
26003 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26004 {
5c8c7dd3
RD
26005 delete arg1;
26006
72ef6efb
RD
26007 if (PyErr_Occurred()) SWIG_fail;
26008 }
5c8c7dd3 26009 resultobj = SWIG_Py_Void();
70d7cb34
RD
26010 return resultobj;
26011fail:
26012 return NULL;
26013}
26014
26015
5c8c7dd3 26016SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26017 PyObject *resultobj = 0;
26018 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26019 wxDouble arg2 ;
26020 wxDouble arg3 ;
70d7cb34
RD
26021 void *argp1 = 0 ;
26022 int res1 = 0 ;
26023 double val2 ;
26024 int ecode2 = 0 ;
26025 double val3 ;
26026 int ecode3 = 0 ;
70d7cb34 26027
5c8c7dd3 26028 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26030 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26032 }
26033 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26034 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26035 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26037 }
26038 arg2 = static_cast< wxDouble >(val2);
26039 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26040 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26042 }
26043 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26044 {
5c8c7dd3 26045 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26046 if (PyErr_Occurred()) SWIG_fail;
26047 }
26048 resultobj = SWIG_Py_Void();
26049 return resultobj;
26050fail:
26051 return NULL;
26052}
26053
26054
5c8c7dd3 26055SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26056 PyObject *resultobj = 0;
26057 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26058 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26059 void *argp1 = 0 ;
26060 int res1 = 0 ;
26061 wxPoint2D temp2 ;
70d7cb34 26062
5c8c7dd3 26063 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26065 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26067 }
26068 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26069 {
26070 arg2 = &temp2;
26071 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26072 }
70d7cb34 26073 {
5c8c7dd3 26074 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 resultobj = SWIG_Py_Void();
26078 return resultobj;
26079fail:
26080 return NULL;
26081}
26082
26083
5c8c7dd3 26084SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26085 int argc;
5c8c7dd3 26086 PyObject *argv[4];
70d7cb34 26087
5c8c7dd3 26088 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26089 --argc;
5c8c7dd3
RD
26090 if (argc == 2) {
26091 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26092 }
5c8c7dd3
RD
26093 if (argc == 3) {
26094 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26095 }
26096
26097fail:
5c8c7dd3 26098 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26099 return NULL;
26100}
26101
26102
5c8c7dd3 26103SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26104 PyObject *resultobj = 0;
26105 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26106 wxDouble arg2 ;
26107 wxDouble arg3 ;
70d7cb34
RD
26108 void *argp1 = 0 ;
26109 int res1 = 0 ;
26110 double val2 ;
26111 int ecode2 = 0 ;
26112 double val3 ;
26113 int ecode3 = 0 ;
70d7cb34 26114
5c8c7dd3
RD
26115 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26117 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26119 }
26120 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26121 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26122 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26124 }
26125 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26126 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26127 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26129 }
26130 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26131 {
5c8c7dd3 26132 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 resultobj = SWIG_Py_Void();
26136 return resultobj;
26137fail:
26138 return NULL;
26139}
26140
26141
5c8c7dd3 26142SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26143 PyObject *resultobj = 0;
26144 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26145 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26146 void *argp1 = 0 ;
26147 int res1 = 0 ;
5c8c7dd3 26148 wxPoint2D temp2 ;
70d7cb34 26149
5c8c7dd3
RD
26150 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26152 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26154 }
26155 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26156 {
5c8c7dd3
RD
26157 arg2 = &temp2;
26158 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26159 }
26160 {
26161 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26162 if (PyErr_Occurred()) SWIG_fail;
26163 }
26164 resultobj = SWIG_Py_Void();
26165 return resultobj;
26166fail:
26167 return NULL;
26168}
26169
26170
5c8c7dd3
RD
26171SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26172 int argc;
26173 PyObject *argv[4];
70d7cb34 26174
5c8c7dd3
RD
26175 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26176 --argc;
26177 if (argc == 2) {
26178 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26179 }
5c8c7dd3
RD
26180 if (argc == 3) {
26181 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26182 }
5c8c7dd3 26183
70d7cb34 26184fail:
5c8c7dd3 26185 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26186 return NULL;
26187}
26188
26189
5c8c7dd3 26190SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26191 PyObject *resultobj = 0;
26192 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26193 wxDouble arg2 ;
26194 wxDouble arg3 ;
26195 wxDouble arg4 ;
26196 wxDouble arg5 ;
26197 wxDouble arg6 ;
5c8c7dd3 26198 wxDouble arg7 ;
70d7cb34
RD
26199 void *argp1 = 0 ;
26200 int res1 = 0 ;
26201 double val2 ;
26202 int ecode2 = 0 ;
26203 double val3 ;
26204 int ecode3 = 0 ;
26205 double val4 ;
26206 int ecode4 = 0 ;
26207 double val5 ;
26208 int ecode5 = 0 ;
26209 double val6 ;
26210 int ecode6 = 0 ;
5c8c7dd3
RD
26211 double val7 ;
26212 int ecode7 = 0 ;
70d7cb34 26213
5c8c7dd3
RD
26214 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26216 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26218 }
26219 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26220 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26221 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26223 }
26224 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26225 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26226 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26228 }
26229 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26230 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26231 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26233 }
26234 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26235 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26236 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26237 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26238 }
26239 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26240 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26241 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26242 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26243 }
26244 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26245 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26246 if (!SWIG_IsOK(ecode7)) {
26247 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26248 }
26249 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26250 {
5c8c7dd3 26251 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 resultobj = SWIG_Py_Void();
26255 return resultobj;
26256fail:
26257 return NULL;
26258}
26259
26260
5c8c7dd3 26261SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26262 PyObject *resultobj = 0;
26263 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26264 wxPoint2D *arg2 = 0 ;
26265 wxPoint2D *arg3 = 0 ;
26266 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
5c8c7dd3
RD
26269 wxPoint2D temp2 ;
26270 wxPoint2D temp3 ;
26271 wxPoint2D temp4 ;
70d7cb34 26272
5c8c7dd3
RD
26273 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26275 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26277 }
26278 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26279 {
5c8c7dd3
RD
26280 arg2 = &temp2;
26281 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26282 }
5c8c7dd3
RD
26283 {
26284 arg3 = &temp3;
26285 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26286 }
70d7cb34 26287 {
5c8c7dd3
RD
26288 arg4 = &temp4;
26289 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26290 }
26291 {
26292 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26293 if (PyErr_Occurred()) SWIG_fail;
26294 }
26295 resultobj = SWIG_Py_Void();
26296 return resultobj;
26297fail:
26298 return NULL;
26299}
26300
26301
5c8c7dd3
RD
26302SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26303 int argc;
26304 PyObject *argv[8];
70d7cb34 26305
5c8c7dd3
RD
26306 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26307 --argc;
26308 if (argc == 4) {
26309 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26310 }
5c8c7dd3
RD
26311 if (argc == 7) {
26312 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26313 }
5c8c7dd3 26314
70d7cb34 26315fail:
5c8c7dd3 26316 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26317 return NULL;
26318}
26319
26320
5c8c7dd3 26321SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26322 PyObject *resultobj = 0;
26323 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26324 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26325 void *argp1 = 0 ;
26326 int res1 = 0 ;
5c8c7dd3
RD
26327 void *argp2 = 0 ;
26328 int res2 = 0 ;
70d7cb34
RD
26329 PyObject * obj0 = 0 ;
26330 PyObject * obj1 = 0 ;
26331 char * kwnames[] = {
5c8c7dd3 26332 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26333 };
26334
5c8c7dd3 26335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26337 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26339 }
26340 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26342 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26344 }
26345 if (!argp2) {
26346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26347 }
5c8c7dd3 26348 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26349 {
5c8c7dd3 26350 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_Py_Void();
26354 return resultobj;
26355fail:
26356 return NULL;
26357}
26358
26359
5c8c7dd3 26360SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26361 PyObject *resultobj = 0;
26362 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26363 void *argp1 = 0 ;
26364 int res1 = 0 ;
5c8c7dd3 26365 PyObject *swig_obj[1] ;
70d7cb34 26366
5c8c7dd3
RD
26367 if (!args) SWIG_fail;
26368 swig_obj[0] = args;
26369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26370 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26372 }
26373 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26374 {
5c8c7dd3 26375 (arg1)->CloseSubpath();
70d7cb34
RD
26376 if (PyErr_Occurred()) SWIG_fail;
26377 }
26378 resultobj = SWIG_Py_Void();
26379 return resultobj;
26380fail:
26381 return NULL;
26382}
26383
26384
5c8c7dd3 26385SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26386 PyObject *resultobj = 0;
26387 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26388 wxPoint2D result;
70d7cb34
RD
26389 void *argp1 = 0 ;
26390 int res1 = 0 ;
26391 PyObject *swig_obj[1] ;
26392
26393 if (!args) SWIG_fail;
26394 swig_obj[0] = args;
26395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26396 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26398 }
26399 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26400 {
5c8c7dd3 26401 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26402 if (PyErr_Occurred()) SWIG_fail;
26403 }
5c8c7dd3 26404 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26405 return resultobj;
26406fail:
26407 return NULL;
26408}
26409
26410
5c8c7dd3 26411SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26412 PyObject *resultobj = 0;
26413 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26414 wxDouble arg2 ;
26415 wxDouble arg3 ;
5c8c7dd3
RD
26416 wxDouble arg4 ;
26417 wxDouble arg5 ;
26418 wxDouble arg6 ;
26419 bool arg7 ;
70d7cb34
RD
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
26422 double val2 ;
26423 int ecode2 = 0 ;
26424 double val3 ;
26425 int ecode3 = 0 ;
5c8c7dd3 26426 double val4 ;
70d7cb34 26427 int ecode4 = 0 ;
5c8c7dd3
RD
26428 double val5 ;
26429 int ecode5 = 0 ;
26430 double val6 ;
26431 int ecode6 = 0 ;
26432 bool val7 ;
26433 int ecode7 = 0 ;
70d7cb34 26434
5c8c7dd3 26435 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26437 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26439 }
26440 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26441 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26442 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26444 }
26445 arg2 = static_cast< wxDouble >(val2);
26446 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26447 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26449 }
26450 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26451 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26452 if (!SWIG_IsOK(ecode4)) {
26453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26454 }
26455 arg4 = static_cast< wxDouble >(val4);
26456 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26457 if (!SWIG_IsOK(ecode5)) {
26458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26459 }
26460 arg5 = static_cast< wxDouble >(val5);
26461 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26462 if (!SWIG_IsOK(ecode6)) {
26463 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26464 }
26465 arg6 = static_cast< wxDouble >(val6);
26466 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26467 if (!SWIG_IsOK(ecode7)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26469 }
26470 arg7 = static_cast< bool >(val7);
70d7cb34 26471 {
5c8c7dd3 26472 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26473 if (PyErr_Occurred()) SWIG_fail;
26474 }
5c8c7dd3 26475 resultobj = SWIG_Py_Void();
70d7cb34
RD
26476 return resultobj;
26477fail:
26478 return NULL;
26479}
26480
26481
5c8c7dd3 26482SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26483 PyObject *resultobj = 0;
26484 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26485 wxPoint2D *arg2 = 0 ;
26486 wxDouble arg3 ;
26487 wxDouble arg4 ;
26488 wxDouble arg5 ;
26489 bool arg6 ;
70d7cb34
RD
26490 void *argp1 = 0 ;
26491 int res1 = 0 ;
5c8c7dd3
RD
26492 wxPoint2D temp2 ;
26493 double val3 ;
70d7cb34 26494 int ecode3 = 0 ;
5c8c7dd3
RD
26495 double val4 ;
26496 int ecode4 = 0 ;
26497 double val5 ;
26498 int ecode5 = 0 ;
26499 bool val6 ;
26500 int ecode6 = 0 ;
70d7cb34 26501
5c8c7dd3 26502 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26504 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26506 }
26507 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26508 {
5c8c7dd3
RD
26509 arg2 = &temp2;
26510 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26511 }
5c8c7dd3
RD
26512 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26513 if (!SWIG_IsOK(ecode3)) {
26514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26515 }
26516 arg3 = static_cast< wxDouble >(val3);
26517 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26518 if (!SWIG_IsOK(ecode4)) {
26519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26520 }
26521 arg4 = static_cast< wxDouble >(val4);
26522 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26523 if (!SWIG_IsOK(ecode5)) {
26524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26525 }
26526 arg5 = static_cast< wxDouble >(val5);
26527 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26528 if (!SWIG_IsOK(ecode6)) {
26529 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26530 }
26531 arg6 = static_cast< bool >(val6);
70d7cb34 26532 {
5c8c7dd3
RD
26533 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26534 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26535 }
5c8c7dd3 26536 resultobj = SWIG_Py_Void();
70d7cb34
RD
26537 return resultobj;
26538fail:
26539 return NULL;
26540}
26541
26542
5c8c7dd3 26543SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26544 int argc;
5c8c7dd3 26545 PyObject *argv[8];
70d7cb34 26546
5c8c7dd3 26547 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26548 --argc;
5c8c7dd3
RD
26549 if (argc == 6) {
26550 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26551 }
5c8c7dd3
RD
26552 if (argc == 7) {
26553 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26554 }
26555
26556fail:
5c8c7dd3 26557 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26558 return NULL;
26559}
26560
26561
5c8c7dd3 26562SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26563 PyObject *resultobj = 0;
5c8c7dd3
RD
26564 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26565 wxDouble arg2 ;
26566 wxDouble arg3 ;
26567 wxDouble arg4 ;
26568 wxDouble arg5 ;
70d7cb34
RD
26569 void *argp1 = 0 ;
26570 int res1 = 0 ;
5c8c7dd3
RD
26571 double val2 ;
26572 int ecode2 = 0 ;
26573 double val3 ;
26574 int ecode3 = 0 ;
26575 double val4 ;
26576 int ecode4 = 0 ;
26577 double val5 ;
26578 int ecode5 = 0 ;
26579 PyObject * obj0 = 0 ;
26580 PyObject * obj1 = 0 ;
26581 PyObject * obj2 = 0 ;
26582 PyObject * obj3 = 0 ;
26583 PyObject * obj4 = 0 ;
26584 char * kwnames[] = {
26585 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26586 };
70d7cb34 26587
5c8c7dd3
RD
26588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26590 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26592 }
5c8c7dd3
RD
26593 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26594 ecode2 = SWIG_AsVal_double(obj1, &val2);
26595 if (!SWIG_IsOK(ecode2)) {
26596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26597 }
26598 arg2 = static_cast< wxDouble >(val2);
26599 ecode3 = SWIG_AsVal_double(obj2, &val3);
26600 if (!SWIG_IsOK(ecode3)) {
26601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26602 }
26603 arg3 = static_cast< wxDouble >(val3);
26604 ecode4 = SWIG_AsVal_double(obj3, &val4);
26605 if (!SWIG_IsOK(ecode4)) {
26606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26607 }
26608 arg4 = static_cast< wxDouble >(val4);
26609 ecode5 = SWIG_AsVal_double(obj4, &val5);
26610 if (!SWIG_IsOK(ecode5)) {
26611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26612 }
26613 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26614 {
5c8c7dd3 26615 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_Py_Void();
26619 return resultobj;
26620fail:
26621 return NULL;
26622}
26623
26624
5c8c7dd3 26625SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26626 PyObject *resultobj = 0;
5c8c7dd3
RD
26627 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26628 wxDouble arg2 ;
26629 wxDouble arg3 ;
26630 wxDouble arg4 ;
26631 wxDouble arg5 ;
70d7cb34
RD
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
5c8c7dd3
RD
26634 double val2 ;
26635 int ecode2 = 0 ;
26636 double val3 ;
26637 int ecode3 = 0 ;
26638 double val4 ;
26639 int ecode4 = 0 ;
26640 double val5 ;
26641 int ecode5 = 0 ;
70d7cb34
RD
26642 PyObject * obj0 = 0 ;
26643 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26644 PyObject * obj2 = 0 ;
26645 PyObject * obj3 = 0 ;
26646 PyObject * obj4 = 0 ;
70d7cb34 26647 char * kwnames[] = {
5c8c7dd3 26648 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26649 };
26650
5c8c7dd3
RD
26651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26653 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26655 }
5c8c7dd3
RD
26656 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26657 ecode2 = SWIG_AsVal_double(obj1, &val2);
26658 if (!SWIG_IsOK(ecode2)) {
26659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26660 }
26661 arg2 = static_cast< wxDouble >(val2);
26662 ecode3 = SWIG_AsVal_double(obj2, &val3);
26663 if (!SWIG_IsOK(ecode3)) {
26664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26665 }
26666 arg3 = static_cast< wxDouble >(val3);
26667 ecode4 = SWIG_AsVal_double(obj3, &val4);
26668 if (!SWIG_IsOK(ecode4)) {
26669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26670 }
26671 arg4 = static_cast< wxDouble >(val4);
26672 ecode5 = SWIG_AsVal_double(obj4, &val5);
26673 if (!SWIG_IsOK(ecode5)) {
26674 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26675 }
26676 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26677 {
5c8c7dd3 26678 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26679 if (PyErr_Occurred()) SWIG_fail;
26680 }
26681 resultobj = SWIG_Py_Void();
26682 return resultobj;
26683fail:
26684 return NULL;
26685}
26686
26687
5c8c7dd3 26688SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26689 PyObject *resultobj = 0;
5c8c7dd3
RD
26690 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26691 wxDouble arg2 ;
26692 wxDouble arg3 ;
26693 wxDouble arg4 ;
70d7cb34
RD
26694 void *argp1 = 0 ;
26695 int res1 = 0 ;
5c8c7dd3
RD
26696 double val2 ;
26697 int ecode2 = 0 ;
26698 double val3 ;
26699 int ecode3 = 0 ;
26700 double val4 ;
26701 int ecode4 = 0 ;
70d7cb34
RD
26702 PyObject * obj0 = 0 ;
26703 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26704 PyObject * obj2 = 0 ;
26705 PyObject * obj3 = 0 ;
70d7cb34 26706 char * kwnames[] = {
5c8c7dd3 26707 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26708 };
26709
5c8c7dd3
RD
26710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26712 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26714 }
5c8c7dd3
RD
26715 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26716 ecode2 = SWIG_AsVal_double(obj1, &val2);
26717 if (!SWIG_IsOK(ecode2)) {
26718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26719 }
26720 arg2 = static_cast< wxDouble >(val2);
26721 ecode3 = SWIG_AsVal_double(obj2, &val3);
26722 if (!SWIG_IsOK(ecode3)) {
26723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26724 }
26725 arg3 = static_cast< wxDouble >(val3);
26726 ecode4 = SWIG_AsVal_double(obj3, &val4);
26727 if (!SWIG_IsOK(ecode4)) {
26728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26729 }
26730 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26731 {
5c8c7dd3 26732 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = SWIG_Py_Void();
26736 return resultobj;
26737fail:
26738 return NULL;
26739}
26740
26741
5c8c7dd3 26742SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26743 PyObject *resultobj = 0;
5c8c7dd3
RD
26744 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26745 wxDouble arg2 ;
26746 wxDouble arg3 ;
26747 wxDouble arg4 ;
26748 wxDouble arg5 ;
26749 wxDouble arg6 ;
70d7cb34
RD
26750 void *argp1 = 0 ;
26751 int res1 = 0 ;
26752 double val2 ;
26753 int ecode2 = 0 ;
26754 double val3 ;
26755 int ecode3 = 0 ;
26756 double val4 ;
26757 int ecode4 = 0 ;
26758 double val5 ;
26759 int ecode5 = 0 ;
26760 double val6 ;
26761 int ecode6 = 0 ;
70d7cb34
RD
26762 PyObject * obj0 = 0 ;
26763 PyObject * obj1 = 0 ;
26764 PyObject * obj2 = 0 ;
26765 PyObject * obj3 = 0 ;
26766 PyObject * obj4 = 0 ;
26767 PyObject * obj5 = 0 ;
70d7cb34 26768 char * kwnames[] = {
5c8c7dd3 26769 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26770 };
26771
5c8c7dd3
RD
26772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26774 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26776 }
5c8c7dd3
RD
26777 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26778 ecode2 = SWIG_AsVal_double(obj1, &val2);
26779 if (!SWIG_IsOK(ecode2)) {
26780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26781 }
26782 arg2 = static_cast< wxDouble >(val2);
26783 ecode3 = SWIG_AsVal_double(obj2, &val3);
26784 if (!SWIG_IsOK(ecode3)) {
26785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26786 }
26787 arg3 = static_cast< wxDouble >(val3);
26788 ecode4 = SWIG_AsVal_double(obj3, &val4);
26789 if (!SWIG_IsOK(ecode4)) {
26790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26791 }
26792 arg4 = static_cast< wxDouble >(val4);
26793 ecode5 = SWIG_AsVal_double(obj4, &val5);
26794 if (!SWIG_IsOK(ecode5)) {
26795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26796 }
26797 arg5 = static_cast< wxDouble >(val5);
26798 ecode6 = SWIG_AsVal_double(obj5, &val6);
26799 if (!SWIG_IsOK(ecode6)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26801 }
26802 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26803 {
5c8c7dd3 26804 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26805 if (PyErr_Occurred()) SWIG_fail;
26806 }
26807 resultobj = SWIG_Py_Void();
26808 return resultobj;
26809fail:
26810 return NULL;
26811}
26812
26813
5c8c7dd3 26814SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26815 PyObject *resultobj = 0;
5c8c7dd3
RD
26816 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26817 wxDouble arg2 ;
26818 wxDouble arg3 ;
26819 wxDouble arg4 ;
26820 wxDouble arg5 ;
70d7cb34
RD
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
5c8c7dd3
RD
26823 double val2 ;
26824 int ecode2 = 0 ;
26825 double val3 ;
26826 int ecode3 = 0 ;
26827 double val4 ;
26828 int ecode4 = 0 ;
26829 double val5 ;
26830 int ecode5 = 0 ;
26831 PyObject * obj0 = 0 ;
26832 PyObject * obj1 = 0 ;
26833 PyObject * obj2 = 0 ;
26834 PyObject * obj3 = 0 ;
26835 PyObject * obj4 = 0 ;
26836 char * kwnames[] = {
26837 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26838 };
70d7cb34 26839
5c8c7dd3
RD
26840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26842 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26844 }
5c8c7dd3
RD
26845 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26846 ecode2 = SWIG_AsVal_double(obj1, &val2);
26847 if (!SWIG_IsOK(ecode2)) {
26848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26849 }
26850 arg2 = static_cast< wxDouble >(val2);
26851 ecode3 = SWIG_AsVal_double(obj2, &val3);
26852 if (!SWIG_IsOK(ecode3)) {
26853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26854 }
26855 arg3 = static_cast< wxDouble >(val3);
26856 ecode4 = SWIG_AsVal_double(obj3, &val4);
26857 if (!SWIG_IsOK(ecode4)) {
26858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26859 }
26860 arg4 = static_cast< wxDouble >(val4);
26861 ecode5 = SWIG_AsVal_double(obj4, &val5);
26862 if (!SWIG_IsOK(ecode5)) {
26863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26864 }
26865 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26866 {
5c8c7dd3 26867 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
26868 if (PyErr_Occurred()) SWIG_fail;
26869 }
26870 resultobj = SWIG_Py_Void();
26871 return resultobj;
26872fail:
26873 return NULL;
26874}
26875
26876
5c8c7dd3 26877SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26878 PyObject *resultobj = 0;
5c8c7dd3
RD
26879 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26880 wxDouble arg2 ;
26881 wxDouble arg3 ;
26882 wxDouble arg4 ;
26883 wxDouble arg5 ;
26884 wxDouble arg6 ;
70d7cb34
RD
26885 void *argp1 = 0 ;
26886 int res1 = 0 ;
5c8c7dd3
RD
26887 double val2 ;
26888 int ecode2 = 0 ;
26889 double val3 ;
26890 int ecode3 = 0 ;
26891 double val4 ;
26892 int ecode4 = 0 ;
26893 double val5 ;
26894 int ecode5 = 0 ;
26895 double val6 ;
26896 int ecode6 = 0 ;
70d7cb34
RD
26897 PyObject * obj0 = 0 ;
26898 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26899 PyObject * obj2 = 0 ;
26900 PyObject * obj3 = 0 ;
26901 PyObject * obj4 = 0 ;
26902 PyObject * obj5 = 0 ;
70d7cb34 26903 char * kwnames[] = {
5c8c7dd3 26904 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
26905 };
26906
5c8c7dd3
RD
26907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26909 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26911 }
5c8c7dd3
RD
26912 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26913 ecode2 = SWIG_AsVal_double(obj1, &val2);
26914 if (!SWIG_IsOK(ecode2)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26916 }
26917 arg2 = static_cast< wxDouble >(val2);
26918 ecode3 = SWIG_AsVal_double(obj2, &val3);
26919 if (!SWIG_IsOK(ecode3)) {
26920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26921 }
26922 arg3 = static_cast< wxDouble >(val3);
26923 ecode4 = SWIG_AsVal_double(obj3, &val4);
26924 if (!SWIG_IsOK(ecode4)) {
26925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26926 }
26927 arg4 = static_cast< wxDouble >(val4);
26928 ecode5 = SWIG_AsVal_double(obj4, &val5);
26929 if (!SWIG_IsOK(ecode5)) {
26930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26931 }
26932 arg5 = static_cast< wxDouble >(val5);
26933 ecode6 = SWIG_AsVal_double(obj5, &val6);
26934 if (!SWIG_IsOK(ecode6)) {
26935 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26936 }
26937 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26938 {
5c8c7dd3 26939 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26940 if (PyErr_Occurred()) SWIG_fail;
26941 }
5c8c7dd3 26942 resultobj = SWIG_Py_Void();
70d7cb34
RD
26943 return resultobj;
26944fail:
26945 return NULL;
26946}
26947
26948
5c8c7dd3 26949SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 26950 PyObject *resultobj = 0;
5c8c7dd3
RD
26951 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26952 void *result = 0 ;
70d7cb34
RD
26953 void *argp1 = 0 ;
26954 int res1 = 0 ;
26955 PyObject *swig_obj[1] ;
26956
26957 if (!args) SWIG_fail;
26958 swig_obj[0] = args;
5c8c7dd3 26959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26960 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 26962 }
5c8c7dd3 26963 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26964 {
5c8c7dd3 26965 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
26966 if (PyErr_Occurred()) SWIG_fail;
26967 }
5c8c7dd3 26968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
26969 return resultobj;
26970fail:
26971 return NULL;
26972}
26973
26974
5c8c7dd3 26975SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26976 PyObject *resultobj = 0;
5c8c7dd3
RD
26977 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26978 void *arg2 = (void *) 0 ;
70d7cb34
RD
26979 void *argp1 = 0 ;
26980 int res1 = 0 ;
5c8c7dd3 26981 int res2 ;
70d7cb34
RD
26982 PyObject * obj0 = 0 ;
26983 PyObject * obj1 = 0 ;
70d7cb34 26984 char * kwnames[] = {
5c8c7dd3 26985 (char *) "self",(char *) "p", NULL
70d7cb34
RD
26986 };
26987
5c8c7dd3
RD
26988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
26989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26990 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
26991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26992 }
26993 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26994 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
26995 if (!SWIG_IsOK(res2)) {
26996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 26997 }
70d7cb34 26998 {
5c8c7dd3 26999 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_Py_Void();
27003 return resultobj;
27004fail:
27005 return NULL;
27006}
27007
27008
5c8c7dd3 27009SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27010 PyObject *resultobj = 0;
5c8c7dd3
RD
27011 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27012 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27013 void *argp1 = 0 ;
27014 int res1 = 0 ;
5c8c7dd3
RD
27015 void *argp2 = 0 ;
27016 int res2 = 0 ;
70d7cb34
RD
27017 PyObject * obj0 = 0 ;
27018 PyObject * obj1 = 0 ;
70d7cb34 27019 char * kwnames[] = {
5c8c7dd3 27020 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27021 };
27022
5c8c7dd3
RD
27023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27025 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27027 }
5c8c7dd3
RD
27028 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27030 if (!SWIG_IsOK(res2)) {
27031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27032 }
27033 if (!argp2) {
27034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27035 }
27036 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27037 {
5c8c7dd3 27038 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 resultobj = SWIG_Py_Void();
27042 return resultobj;
27043fail:
27044 return NULL;
27045}
27046
27047
5c8c7dd3 27048SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27049 PyObject *resultobj = 0;
5c8c7dd3
RD
27050 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27051 wxRect2DDouble result;
70d7cb34
RD
27052 void *argp1 = 0 ;
27053 int res1 = 0 ;
5c8c7dd3 27054 PyObject *swig_obj[1] ;
70d7cb34 27055
5c8c7dd3
RD
27056 if (!args) SWIG_fail;
27057 swig_obj[0] = args;
27058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27059 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27061 }
5c8c7dd3 27062 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27063 {
5c8c7dd3 27064 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27065 if (PyErr_Occurred()) SWIG_fail;
27066 }
5c8c7dd3 27067 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27068 return resultobj;
27069fail:
27070 return NULL;
27071}
27072
27073
5c8c7dd3 27074SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27075 PyObject *resultobj = 0;
5c8c7dd3
RD
27076 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27077 wxDouble arg2 ;
27078 wxDouble arg3 ;
27079 int arg4 = (int) wxODDEVEN_RULE ;
27080 bool result;
70d7cb34
RD
27081 void *argp1 = 0 ;
27082 int res1 = 0 ;
5c8c7dd3
RD
27083 double val2 ;
27084 int ecode2 = 0 ;
27085 double val3 ;
27086 int ecode3 = 0 ;
27087 int val4 ;
27088 int ecode4 = 0 ;
70d7cb34 27089
5c8c7dd3
RD
27090 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27092 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27094 }
5c8c7dd3
RD
27095 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27096 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27097 if (!SWIG_IsOK(ecode2)) {
27098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27099 }
27100 arg2 = static_cast< wxDouble >(val2);
27101 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27102 if (!SWIG_IsOK(ecode3)) {
27103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27104 }
27105 arg3 = static_cast< wxDouble >(val3);
27106 if (swig_obj[3]) {
27107 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27108 if (!SWIG_IsOK(ecode4)) {
27109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27110 }
27111 arg4 = static_cast< int >(val4);
70d7cb34
RD
27112 }
27113 {
5c8c7dd3 27114 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27115 if (PyErr_Occurred()) SWIG_fail;
27116 }
5c8c7dd3
RD
27117 {
27118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27119 }
27120 return resultobj;
27121fail:
27122 return NULL;
27123}
27124
27125
5c8c7dd3 27126SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27127 PyObject *resultobj = 0;
5c8c7dd3
RD
27128 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27129 wxPoint2DDouble *arg2 = 0 ;
27130 int arg3 = (int) wxODDEVEN_RULE ;
27131 bool result;
70d7cb34
RD
27132 void *argp1 = 0 ;
27133 int res1 = 0 ;
5c8c7dd3 27134 void *argp2 = 0 ;
70d7cb34 27135 int res2 = 0 ;
5c8c7dd3
RD
27136 int val3 ;
27137 int ecode3 = 0 ;
70d7cb34 27138
5c8c7dd3
RD
27139 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27141 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27143 }
5c8c7dd3
RD
27144 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27145 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27146 if (!SWIG_IsOK(res2)) {
27147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27148 }
5c8c7dd3
RD
27149 if (!argp2) {
27150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27151 }
27152 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27153 if (swig_obj[2]) {
27154 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27155 if (!SWIG_IsOK(ecode3)) {
27156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27157 }
27158 arg3 = static_cast< int >(val3);
70d7cb34
RD
27159 }
27160 {
5c8c7dd3 27161 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27162 if (PyErr_Occurred()) SWIG_fail;
27163 }
5c8c7dd3
RD
27164 {
27165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27166 }
27167 return resultobj;
27168fail:
27169 return NULL;
27170}
27171
27172
5c8c7dd3
RD
27173SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27174 int argc;
27175 PyObject *argv[5];
70d7cb34 27176
5c8c7dd3
RD
27177 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27178 --argc;
27179 if ((argc >= 2) && (argc <= 3)) {
27180 int _v = 0;
27181 {
27182 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27183 _v = SWIG_CheckState(res);
27184 }
27185 if (!_v) goto check_1;
27186 if (argc > 2) {
27187 {
27188 {
27189 int res = SWIG_AsVal_int(argv[2], NULL);
27190 _v = SWIG_CheckState(res);
27191 }
27192 }
27193 if (!_v) goto check_1;
27194 }
27195 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27196 }
5c8c7dd3
RD
27197check_1:
27198
27199 if ((argc >= 3) && (argc <= 4)) {
27200 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27201 }
5c8c7dd3 27202
70d7cb34 27203fail:
5c8c7dd3 27204 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27205 return NULL;
27206}
27207
27208
5c8c7dd3 27209SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27210 PyObject *obj;
27211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27212 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27213 return SWIG_Py_Void();
27214}
27215
8f514ab4
RD
27216SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27217 return SWIG_Python_InitShadowInstance(args);
27218}
27219
5c8c7dd3
RD
27220SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27221 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27222 return 1;
27223}
27224
27225
27226SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27227 PyObject *pyobj = 0;
27228
27229 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27230 return pyobj;
27231}
27232
27233
27234SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27235 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27236 return 1;
27237}
27238
27239
27240SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27241 PyObject *pyobj = 0;
27242
27243 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27244 return pyobj;
27245}
27246
27247
27248SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27249 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27250 return 1;
27251}
27252
27253
27254SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27255 PyObject *pyobj = 0;
27256
27257 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27258 return pyobj;
27259}
27260
27261
27262SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27263 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27264 return 1;
27265}
27266
27267
27268SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27269 PyObject *pyobj = 0;
27270
27271 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27272 return pyobj;
27273}
27274
27275
27276SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27277 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27278 return 1;
27279}
27280
27281
27282SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27283 PyObject *pyobj = 0;
27284
27285 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27286 return pyobj;
27287}
27288
27289
70d7cb34
RD
27290SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27291 PyObject *resultobj = 0;
27292 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27293 void *argp1 = 0 ;
27294 int res1 = 0 ;
27295 PyObject *swig_obj[1] ;
27296
27297 if (!args) SWIG_fail;
27298 swig_obj[0] = args;
27299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27300 if (!SWIG_IsOK(res1)) {
27301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27302 }
27303 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27304 {
27305 delete arg1;
27306
27307 if (PyErr_Occurred()) SWIG_fail;
27308 }
27309 resultobj = SWIG_Py_Void();
27310 return resultobj;
27311fail:
27312 return NULL;
27313}
27314
27315
27316SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27317 PyObject *resultobj = 0;
27318 wxWindowDC *arg1 = 0 ;
27319 wxGraphicsContext *result = 0 ;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322
27323 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27325 if (!SWIG_IsOK(res1)) {
27326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27327 }
27328 if (!argp1) {
27329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27330 }
27331 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27332 {
27333 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27337 return resultobj;
27338fail:
27339 return NULL;
27340}
27341
27342
27343SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27344 PyObject *resultobj = 0;
27345 wxWindow *arg1 = (wxWindow *) 0 ;
27346 wxGraphicsContext *result = 0 ;
27347 void *argp1 = 0 ;
27348 int res1 = 0 ;
27349
27350 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27352 if (!SWIG_IsOK(res1)) {
27353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27354 }
27355 arg1 = reinterpret_cast< wxWindow * >(argp1);
27356 {
27357 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27358 if (PyErr_Occurred()) SWIG_fail;
27359 }
27360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27361 return resultobj;
27362fail:
27363 return NULL;
27364}
27365
27366
27367SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27368 int argc;
27369 PyObject *argv[2];
27370
27371 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27372 --argc;
27373 if (argc == 1) {
27374 int _v = 0;
27375 {
27376 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27377 _v = SWIG_CheckState(res);
27378 }
27379 if (!_v) goto check_1;
27380 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27381 }
27382check_1:
27383
27384 if (argc == 1) {
27385 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27386 }
27387
27388fail:
27389 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27390 return NULL;
27391}
27392
27393
27394SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27395 PyObject *resultobj = 0;
27396 void *arg1 = (void *) 0 ;
27397 wxGraphicsContext *result = 0 ;
27398 int res1 ;
27399 PyObject * obj0 = 0 ;
27400 char * kwnames[] = {
27401 (char *) "context", NULL
27402 };
27403
27404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27405 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27406 if (!SWIG_IsOK(res1)) {
27407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27408 }
27409 {
27410 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27411 if (PyErr_Occurred()) SWIG_fail;
27412 }
27413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27414 return resultobj;
27415fail:
27416 return NULL;
27417}
27418
27419
27420SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27421 PyObject *resultobj = 0;
27422 void *arg1 = (void *) 0 ;
27423 wxGraphicsContext *result = 0 ;
27424 int res1 ;
27425 PyObject * obj0 = 0 ;
27426 char * kwnames[] = {
27427 (char *) "window", NULL
27428 };
27429
27430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27431 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27432 if (!SWIG_IsOK(res1)) {
27433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27434 }
27435 {
27436 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27437 if (PyErr_Occurred()) SWIG_fail;
27438 }
27439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27440 return resultobj;
27441fail:
27442 return NULL;
27443}
27444
27445
27446SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27447 PyObject *resultobj = 0;
27448 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27449 wxGraphicsPath result;
70d7cb34
RD
27450 void *argp1 = 0 ;
27451 int res1 = 0 ;
27452 PyObject *swig_obj[1] ;
27453
27454 if (!args) SWIG_fail;
27455 swig_obj[0] = args;
27456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27457 if (!SWIG_IsOK(res1)) {
27458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27459 }
27460 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27461 {
5c8c7dd3 27462 result = (arg1)->CreatePath();
70d7cb34
RD
27463 if (PyErr_Occurred()) SWIG_fail;
27464 }
5c8c7dd3 27465 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27466 return resultobj;
27467fail:
27468 return NULL;
27469}
27470
27471
70d7cb34 27472SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27473 PyObject *resultobj = 0;
70d7cb34
RD
27474 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27475 wxPen *arg2 = 0 ;
27476 wxGraphicsPen result;
72ef6efb
RD
27477 void *argp1 = 0 ;
27478 int res1 = 0 ;
70d7cb34
RD
27479 void *argp2 = 0 ;
27480 int res2 = 0 ;
72ef6efb
RD
27481 PyObject * obj0 = 0 ;
27482 PyObject * obj1 = 0 ;
72ef6efb 27483 char * kwnames[] = {
70d7cb34 27484 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27485 };
27486
70d7cb34
RD
27487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27489 if (!SWIG_IsOK(res1)) {
70d7cb34 27490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27491 }
70d7cb34
RD
27492 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27494 if (!SWIG_IsOK(res2)) {
27495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27496 }
27497 if (!argp2) {
27498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27499 }
27500 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27501 {
70d7cb34 27502 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
70d7cb34 27505 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27506 return resultobj;
27507fail:
27508 return NULL;
27509}
27510
27511
70d7cb34 27512SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27513 PyObject *resultobj = 0;
70d7cb34
RD
27514 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27515 wxBrush *arg2 = 0 ;
27516 wxGraphicsBrush result;
72ef6efb
RD
27517 void *argp1 = 0 ;
27518 int res1 = 0 ;
70d7cb34
RD
27519 void *argp2 = 0 ;
27520 int res2 = 0 ;
72ef6efb
RD
27521 PyObject * obj0 = 0 ;
27522 PyObject * obj1 = 0 ;
72ef6efb 27523 char * kwnames[] = {
70d7cb34 27524 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27525 };
27526
70d7cb34
RD
27527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27529 if (!SWIG_IsOK(res1)) {
70d7cb34 27530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27531 }
70d7cb34
RD
27532 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27534 if (!SWIG_IsOK(res2)) {
27535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27536 }
27537 if (!argp2) {
27538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27539 }
27540 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27541 {
70d7cb34 27542 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
70d7cb34 27545 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27546 return resultobj;
27547fail:
27548 return NULL;
27549}
27550
27551
70d7cb34 27552SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27553 PyObject *resultobj = 0;
70d7cb34 27554 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27555 wxDouble arg2 ;
27556 wxDouble arg3 ;
27557 wxDouble arg4 ;
27558 wxDouble arg5 ;
70d7cb34
RD
27559 wxColour *arg6 = 0 ;
27560 wxColour *arg7 = 0 ;
27561 wxGraphicsBrush result;
72ef6efb
RD
27562 void *argp1 = 0 ;
27563 int res1 = 0 ;
27564 double val2 ;
27565 int ecode2 = 0 ;
27566 double val3 ;
27567 int ecode3 = 0 ;
27568 double val4 ;
27569 int ecode4 = 0 ;
27570 double val5 ;
27571 int ecode5 = 0 ;
70d7cb34
RD
27572 wxColour temp6 ;
27573 wxColour temp7 ;
72ef6efb
RD
27574 PyObject * obj0 = 0 ;
27575 PyObject * obj1 = 0 ;
27576 PyObject * obj2 = 0 ;
27577 PyObject * obj3 = 0 ;
27578 PyObject * obj4 = 0 ;
70d7cb34
RD
27579 PyObject * obj5 = 0 ;
27580 PyObject * obj6 = 0 ;
72ef6efb 27581 char * kwnames[] = {
70d7cb34 27582 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27583 };
27584
70d7cb34
RD
27585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27587 if (!SWIG_IsOK(res1)) {
70d7cb34 27588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27589 }
70d7cb34 27590 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27591 ecode2 = SWIG_AsVal_double(obj1, &val2);
27592 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27594 }
27595 arg2 = static_cast< wxDouble >(val2);
27596 ecode3 = SWIG_AsVal_double(obj2, &val3);
27597 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27599 }
27600 arg3 = static_cast< wxDouble >(val3);
27601 ecode4 = SWIG_AsVal_double(obj3, &val4);
27602 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27604 }
27605 arg4 = static_cast< wxDouble >(val4);
27606 ecode5 = SWIG_AsVal_double(obj4, &val5);
27607 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27609 }
27610 arg5 = static_cast< wxDouble >(val5);
27611 {
70d7cb34
RD
27612 arg6 = &temp6;
27613 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27614 }
70d7cb34
RD
27615 {
27616 arg7 = &temp7;
27617 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27618 }
72ef6efb 27619 {
70d7cb34 27620 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27621 if (PyErr_Occurred()) SWIG_fail;
27622 }
70d7cb34 27623 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27624 return resultobj;
27625fail:
27626 return NULL;
27627}
27628
27629
70d7cb34 27630SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27631 PyObject *resultobj = 0;
70d7cb34 27632 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27633 wxDouble arg2 ;
27634 wxDouble arg3 ;
27635 wxDouble arg4 ;
27636 wxDouble arg5 ;
27637 wxDouble arg6 ;
70d7cb34
RD
27638 wxColour *arg7 = 0 ;
27639 wxColour *arg8 = 0 ;
27640 wxGraphicsBrush result;
72ef6efb
RD
27641 void *argp1 = 0 ;
27642 int res1 = 0 ;
27643 double val2 ;
27644 int ecode2 = 0 ;
27645 double val3 ;
27646 int ecode3 = 0 ;
27647 double val4 ;
27648 int ecode4 = 0 ;
27649 double val5 ;
27650 int ecode5 = 0 ;
27651 double val6 ;
27652 int ecode6 = 0 ;
70d7cb34
RD
27653 wxColour temp7 ;
27654 wxColour temp8 ;
72ef6efb
RD
27655 PyObject * obj0 = 0 ;
27656 PyObject * obj1 = 0 ;
27657 PyObject * obj2 = 0 ;
27658 PyObject * obj3 = 0 ;
27659 PyObject * obj4 = 0 ;
27660 PyObject * obj5 = 0 ;
70d7cb34
RD
27661 PyObject * obj6 = 0 ;
27662 PyObject * obj7 = 0 ;
72ef6efb 27663 char * kwnames[] = {
70d7cb34 27664 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27665 };
27666
70d7cb34
RD
27667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27669 if (!SWIG_IsOK(res1)) {
70d7cb34 27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27671 }
70d7cb34 27672 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27673 ecode2 = SWIG_AsVal_double(obj1, &val2);
27674 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27676 }
27677 arg2 = static_cast< wxDouble >(val2);
27678 ecode3 = SWIG_AsVal_double(obj2, &val3);
27679 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27681 }
27682 arg3 = static_cast< wxDouble >(val3);
27683 ecode4 = SWIG_AsVal_double(obj3, &val4);
27684 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27686 }
27687 arg4 = static_cast< wxDouble >(val4);
27688 ecode5 = SWIG_AsVal_double(obj4, &val5);
27689 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27691 }
27692 arg5 = static_cast< wxDouble >(val5);
27693 ecode6 = SWIG_AsVal_double(obj5, &val6);
27694 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27696 }
27697 arg6 = static_cast< wxDouble >(val6);
27698 {
70d7cb34
RD
27699 arg7 = &temp7;
27700 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27701 }
27702 {
27703 arg8 = &temp8;
27704 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27705 }
27706 {
27707 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27708 if (PyErr_Occurred()) SWIG_fail;
27709 }
70d7cb34 27710 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27711 return resultobj;
27712fail:
27713 return NULL;
27714}
27715
27716
70d7cb34 27717SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27718 PyObject *resultobj = 0;
27719 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27720 wxFont *arg2 = 0 ;
27721 wxColour const &arg3_defvalue = *wxBLACK ;
27722 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27723 wxGraphicsFont result;
72ef6efb
RD
27724 void *argp1 = 0 ;
27725 int res1 = 0 ;
70d7cb34
RD
27726 void *argp2 = 0 ;
27727 int res2 = 0 ;
27728 wxColour temp3 ;
27729 PyObject * obj0 = 0 ;
27730 PyObject * obj1 = 0 ;
27731 PyObject * obj2 = 0 ;
27732 char * kwnames[] = {
27733 (char *) "self",(char *) "font",(char *) "col", NULL
27734 };
72ef6efb 27735
70d7cb34
RD
27736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27738 if (!SWIG_IsOK(res1)) {
70d7cb34 27739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27740 }
27741 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27743 if (!SWIG_IsOK(res2)) {
27744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27745 }
70d7cb34
RD
27746 if (!argp2) {
27747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27748 }
70d7cb34
RD
27749 arg2 = reinterpret_cast< wxFont * >(argp2);
27750 if (obj2) {
27751 {
27752 arg3 = &temp3;
27753 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27754 }
72ef6efb 27755 }
72ef6efb 27756 {
70d7cb34 27757 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27758 if (PyErr_Occurred()) SWIG_fail;
27759 }
70d7cb34 27760 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27761 return resultobj;
27762fail:
27763 return NULL;
27764}
27765
27766
70d7cb34 27767SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27768 PyObject *resultobj = 0;
70d7cb34
RD
27769 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27770 wxDouble arg2 = (wxDouble) 1.0 ;
27771 wxDouble arg3 = (wxDouble) 0.0 ;
27772 wxDouble arg4 = (wxDouble) 0.0 ;
27773 wxDouble arg5 = (wxDouble) 1.0 ;
27774 wxDouble arg6 = (wxDouble) 0.0 ;
27775 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27776 wxGraphicsMatrix result;
0a27f394
RD
27777 void *argp1 = 0 ;
27778 int res1 = 0 ;
70d7cb34
RD
27779 double val2 ;
27780 int ecode2 = 0 ;
27781 double val3 ;
27782 int ecode3 = 0 ;
27783 double val4 ;
27784 int ecode4 = 0 ;
27785 double val5 ;
27786 int ecode5 = 0 ;
27787 double val6 ;
27788 int ecode6 = 0 ;
27789 double val7 ;
27790 int ecode7 = 0 ;
27791 PyObject * obj0 = 0 ;
27792 PyObject * obj1 = 0 ;
27793 PyObject * obj2 = 0 ;
27794 PyObject * obj3 = 0 ;
27795 PyObject * obj4 = 0 ;
27796 PyObject * obj5 = 0 ;
27797 PyObject * obj6 = 0 ;
27798 char * kwnames[] = {
27799 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27800 };
0a27f394 27801
70d7cb34
RD
27802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27804 if (!SWIG_IsOK(res1)) {
70d7cb34 27805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27806 }
70d7cb34
RD
27807 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27808 if (obj1) {
27809 ecode2 = SWIG_AsVal_double(obj1, &val2);
27810 if (!SWIG_IsOK(ecode2)) {
27811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27812 }
27813 arg2 = static_cast< wxDouble >(val2);
0a27f394 27814 }
70d7cb34
RD
27815 if (obj2) {
27816 ecode3 = SWIG_AsVal_double(obj2, &val3);
27817 if (!SWIG_IsOK(ecode3)) {
27818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27819 }
27820 arg3 = static_cast< wxDouble >(val3);
0a27f394 27821 }
70d7cb34
RD
27822 if (obj3) {
27823 ecode4 = SWIG_AsVal_double(obj3, &val4);
27824 if (!SWIG_IsOK(ecode4)) {
27825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27826 }
27827 arg4 = static_cast< wxDouble >(val4);
0a27f394 27828 }
70d7cb34
RD
27829 if (obj4) {
27830 ecode5 = SWIG_AsVal_double(obj4, &val5);
27831 if (!SWIG_IsOK(ecode5)) {
27832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27833 }
27834 arg5 = static_cast< wxDouble >(val5);
0a27f394 27835 }
70d7cb34
RD
27836 if (obj5) {
27837 ecode6 = SWIG_AsVal_double(obj5, &val6);
27838 if (!SWIG_IsOK(ecode6)) {
27839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27840 }
27841 arg6 = static_cast< wxDouble >(val6);
0a27f394 27842 }
70d7cb34
RD
27843 if (obj6) {
27844 ecode7 = SWIG_AsVal_double(obj6, &val7);
27845 if (!SWIG_IsOK(ecode7)) {
27846 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27847 }
27848 arg7 = static_cast< wxDouble >(val7);
72ef6efb 27849 }
72ef6efb 27850 {
5c8c7dd3 27851 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
5c8c7dd3 27854 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27855 return resultobj;
27856fail:
27857 return NULL;
27858}
27859
27860
27861SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27862 PyObject *resultobj = 0;
27863 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27864 void *argp1 = 0 ;
27865 int res1 = 0 ;
27866 PyObject *swig_obj[1] ;
27867
27868 if (!args) SWIG_fail;
27869 swig_obj[0] = args;
27870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27871 if (!SWIG_IsOK(res1)) {
27872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27873 }
27874 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27875 {
72ef6efb 27876 (arg1)->PushState();
72ef6efb
RD
27877 if (PyErr_Occurred()) SWIG_fail;
27878 }
27879 resultobj = SWIG_Py_Void();
27880 return resultobj;
27881fail:
27882 return NULL;
27883}
27884
27885
27886SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27887 PyObject *resultobj = 0;
27888 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27889 void *argp1 = 0 ;
27890 int res1 = 0 ;
27891 PyObject *swig_obj[1] ;
27892
27893 if (!args) SWIG_fail;
27894 swig_obj[0] = args;
27895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27896 if (!SWIG_IsOK(res1)) {
27897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27898 }
27899 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27900 {
72ef6efb 27901 (arg1)->PopState();
72ef6efb
RD
27902 if (PyErr_Occurred()) SWIG_fail;
27903 }
27904 resultobj = SWIG_Py_Void();
27905 return resultobj;
27906fail:
27907 return NULL;
27908}
27909
27910
0a27f394 27911SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27912 PyObject *resultobj = 0;
27913 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27914 wxRegion *arg2 = 0 ;
27915 void *argp1 = 0 ;
27916 int res1 = 0 ;
27917 void *argp2 = 0 ;
27918 int res2 = 0 ;
27919 PyObject * obj0 = 0 ;
27920 PyObject * obj1 = 0 ;
27921 char * kwnames[] = {
27922 (char *) "self",(char *) "region", NULL
27923 };
27924
0a27f394 27925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
27926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27927 if (!SWIG_IsOK(res1)) {
0a27f394 27928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27929 }
27930 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27932 if (!SWIG_IsOK(res2)) {
0a27f394 27933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27934 }
27935 if (!argp2) {
0a27f394 27936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27937 }
27938 arg2 = reinterpret_cast< wxRegion * >(argp2);
27939 {
72ef6efb 27940 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
27941 if (PyErr_Occurred()) SWIG_fail;
27942 }
27943 resultobj = SWIG_Py_Void();
27944 return resultobj;
27945fail:
27946 return NULL;
27947}
27948
27949
0a27f394
RD
27950SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27951 PyObject *resultobj = 0;
27952 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27953 wxDouble arg2 ;
27954 wxDouble arg3 ;
27955 wxDouble arg4 ;
27956 wxDouble arg5 ;
27957 void *argp1 = 0 ;
27958 int res1 = 0 ;
27959 double val2 ;
27960 int ecode2 = 0 ;
27961 double val3 ;
27962 int ecode3 = 0 ;
27963 double val4 ;
27964 int ecode4 = 0 ;
27965 double val5 ;
27966 int ecode5 = 0 ;
27967 PyObject * obj0 = 0 ;
27968 PyObject * obj1 = 0 ;
27969 PyObject * obj2 = 0 ;
27970 PyObject * obj3 = 0 ;
27971 PyObject * obj4 = 0 ;
27972 char * kwnames[] = {
27973 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27974 };
27975
27976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27978 if (!SWIG_IsOK(res1)) {
27979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27980 }
27981 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27982 ecode2 = SWIG_AsVal_double(obj1, &val2);
27983 if (!SWIG_IsOK(ecode2)) {
27984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
27985 }
27986 arg2 = static_cast< wxDouble >(val2);
27987 ecode3 = SWIG_AsVal_double(obj2, &val3);
27988 if (!SWIG_IsOK(ecode3)) {
27989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
27990 }
27991 arg3 = static_cast< wxDouble >(val3);
27992 ecode4 = SWIG_AsVal_double(obj3, &val4);
27993 if (!SWIG_IsOK(ecode4)) {
27994 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
27995 }
27996 arg4 = static_cast< wxDouble >(val4);
27997 ecode5 = SWIG_AsVal_double(obj4, &val5);
27998 if (!SWIG_IsOK(ecode5)) {
27999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28000 }
28001 arg5 = static_cast< wxDouble >(val5);
28002 {
28003 (arg1)->Clip(arg2,arg3,arg4,arg5);
28004 if (PyErr_Occurred()) SWIG_fail;
28005 }
28006 resultobj = SWIG_Py_Void();
28007 return resultobj;
28008fail:
28009 return NULL;
28010}
28011
28012
28013SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28014 PyObject *resultobj = 0;
28015 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28016 void *argp1 = 0 ;
28017 int res1 = 0 ;
28018 PyObject *swig_obj[1] ;
28019
28020 if (!args) SWIG_fail;
28021 swig_obj[0] = args;
28022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28023 if (!SWIG_IsOK(res1)) {
28024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28025 }
28026 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28027 {
28028 (arg1)->ResetClip();
28029 if (PyErr_Occurred()) SWIG_fail;
28030 }
28031 resultobj = SWIG_Py_Void();
28032 return resultobj;
28033fail:
28034 return NULL;
28035}
28036
28037
28038SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28039 PyObject *resultobj = 0;
28040 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28041 void *result = 0 ;
28042 void *argp1 = 0 ;
28043 int res1 = 0 ;
28044 PyObject *swig_obj[1] ;
28045
28046 if (!args) SWIG_fail;
28047 swig_obj[0] = args;
28048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28051 }
28052 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28053 {
28054 result = (void *)(arg1)->GetNativeContext();
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
28057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28058 return resultobj;
28059fail:
28060 return NULL;
28061}
28062
28063
72ef6efb
RD
28064SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28065 PyObject *resultobj = 0;
28066 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28067 wxDouble arg2 ;
28068 wxDouble arg3 ;
28069 void *argp1 = 0 ;
28070 int res1 = 0 ;
28071 double val2 ;
28072 int ecode2 = 0 ;
28073 double val3 ;
28074 int ecode3 = 0 ;
28075 PyObject * obj0 = 0 ;
28076 PyObject * obj1 = 0 ;
28077 PyObject * obj2 = 0 ;
28078 char * kwnames[] = {
28079 (char *) "self",(char *) "dx",(char *) "dy", NULL
28080 };
28081
28082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28084 if (!SWIG_IsOK(res1)) {
28085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28086 }
28087 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28088 ecode2 = SWIG_AsVal_double(obj1, &val2);
28089 if (!SWIG_IsOK(ecode2)) {
28090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28091 }
28092 arg2 = static_cast< wxDouble >(val2);
28093 ecode3 = SWIG_AsVal_double(obj2, &val3);
28094 if (!SWIG_IsOK(ecode3)) {
28095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28096 }
28097 arg3 = static_cast< wxDouble >(val3);
28098 {
72ef6efb 28099 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28100 if (PyErr_Occurred()) SWIG_fail;
28101 }
28102 resultobj = SWIG_Py_Void();
28103 return resultobj;
28104fail:
28105 return NULL;
28106}
28107
28108
28109SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28110 PyObject *resultobj = 0;
28111 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28112 wxDouble arg2 ;
28113 wxDouble arg3 ;
28114 void *argp1 = 0 ;
28115 int res1 = 0 ;
28116 double val2 ;
28117 int ecode2 = 0 ;
28118 double val3 ;
28119 int ecode3 = 0 ;
28120 PyObject * obj0 = 0 ;
28121 PyObject * obj1 = 0 ;
28122 PyObject * obj2 = 0 ;
28123 char * kwnames[] = {
28124 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28125 };
28126
28127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28131 }
28132 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28133 ecode2 = SWIG_AsVal_double(obj1, &val2);
28134 if (!SWIG_IsOK(ecode2)) {
28135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28136 }
28137 arg2 = static_cast< wxDouble >(val2);
28138 ecode3 = SWIG_AsVal_double(obj2, &val3);
28139 if (!SWIG_IsOK(ecode3)) {
28140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28141 }
28142 arg3 = static_cast< wxDouble >(val3);
28143 {
72ef6efb 28144 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28145 if (PyErr_Occurred()) SWIG_fail;
28146 }
28147 resultobj = SWIG_Py_Void();
28148 return resultobj;
28149fail:
28150 return NULL;
28151}
28152
28153
28154SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28155 PyObject *resultobj = 0;
28156 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28157 wxDouble arg2 ;
28158 void *argp1 = 0 ;
28159 int res1 = 0 ;
28160 double val2 ;
28161 int ecode2 = 0 ;
28162 PyObject * obj0 = 0 ;
28163 PyObject * obj1 = 0 ;
28164 char * kwnames[] = {
28165 (char *) "self",(char *) "angle", NULL
28166 };
28167
28168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28170 if (!SWIG_IsOK(res1)) {
28171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28172 }
28173 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28174 ecode2 = SWIG_AsVal_double(obj1, &val2);
28175 if (!SWIG_IsOK(ecode2)) {
28176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28177 }
28178 arg2 = static_cast< wxDouble >(val2);
28179 {
72ef6efb 28180 (arg1)->Rotate(arg2);
72ef6efb
RD
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_Py_Void();
28184 return resultobj;
28185fail:
28186 return NULL;
28187}
28188
28189
5c8c7dd3
RD
28190SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28191 PyObject *resultobj = 0;
28192 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28193 wxGraphicsMatrix *arg2 = 0 ;
28194 void *argp1 = 0 ;
28195 int res1 = 0 ;
28196 void *argp2 = 0 ;
28197 int res2 = 0 ;
28198 PyObject * obj0 = 0 ;
28199 PyObject * obj1 = 0 ;
28200 char * kwnames[] = {
28201 (char *) "self",(char *) "matrix", NULL
28202 };
28203
28204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28206 if (!SWIG_IsOK(res1)) {
28207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28208 }
28209 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28211 if (!SWIG_IsOK(res2)) {
28212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28213 }
28214 if (!argp2) {
28215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28216 }
28217 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28218 {
28219 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 }
28222 resultobj = SWIG_Py_Void();
28223 return resultobj;
28224fail:
28225 return NULL;
28226}
28227
28228
28229SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28230 PyObject *resultobj = 0;
28231 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28232 wxGraphicsMatrix *arg2 = 0 ;
28233 void *argp1 = 0 ;
28234 int res1 = 0 ;
28235 void *argp2 = 0 ;
28236 int res2 = 0 ;
28237 PyObject * obj0 = 0 ;
28238 PyObject * obj1 = 0 ;
28239 char * kwnames[] = {
28240 (char *) "self",(char *) "matrix", NULL
28241 };
28242
28243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28245 if (!SWIG_IsOK(res1)) {
28246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28247 }
28248 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28250 if (!SWIG_IsOK(res2)) {
28251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28252 }
28253 if (!argp2) {
28254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28255 }
28256 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28257 {
28258 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28259 if (PyErr_Occurred()) SWIG_fail;
28260 }
28261 resultobj = SWIG_Py_Void();
28262 return resultobj;
28263fail:
28264 return NULL;
28265}
28266
28267
28268SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28269 PyObject *resultobj = 0;
28270 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28271 wxGraphicsMatrix result;
28272 void *argp1 = 0 ;
28273 int res1 = 0 ;
28274 PyObject *swig_obj[1] ;
28275
28276 if (!args) SWIG_fail;
28277 swig_obj[0] = args;
28278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28279 if (!SWIG_IsOK(res1)) {
28280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28281 }
28282 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28283 {
28284 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28288 return resultobj;
28289fail:
28290 return NULL;
28291}
28292
28293
70d7cb34
RD
28294SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28295 PyObject *resultobj = 0;
28296 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28297 wxGraphicsPen *arg2 = 0 ;
28298 void *argp1 = 0 ;
28299 int res1 = 0 ;
28300 void *argp2 = 0 ;
28301 int res2 = 0 ;
28302
28303 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28305 if (!SWIG_IsOK(res1)) {
28306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28307 }
28308 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28309 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28310 if (!SWIG_IsOK(res2)) {
28311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28312 }
28313 if (!argp2) {
28314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28315 }
28316 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28317 {
28318 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28319 if (PyErr_Occurred()) SWIG_fail;
28320 }
28321 resultobj = SWIG_Py_Void();
28322 return resultobj;
28323fail:
28324 return NULL;
28325}
28326
28327
28328SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28329 PyObject *resultobj = 0;
28330 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28331 wxPen *arg2 = 0 ;
28332 void *argp1 = 0 ;
28333 int res1 = 0 ;
28334 void *argp2 = 0 ;
28335 int res2 = 0 ;
72ef6efb 28336
70d7cb34
RD
28337 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28341 }
28342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28343 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28344 if (!SWIG_IsOK(res2)) {
28345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28346 }
28347 if (!argp2) {
28348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28349 }
28350 arg2 = reinterpret_cast< wxPen * >(argp2);
28351 {
72ef6efb 28352 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28353 if (PyErr_Occurred()) SWIG_fail;
28354 }
28355 resultobj = SWIG_Py_Void();
28356 return resultobj;
28357fail:
28358 return NULL;
28359}
28360
28361
70d7cb34
RD
28362SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28363 int argc;
28364 PyObject *argv[3];
28365
28366 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28367 --argc;
28368 if (argc == 2) {
28369 int _v = 0;
28370 {
28371 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28372 _v = SWIG_CheckState(res);
28373 }
28374 if (!_v) goto check_1;
28375 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28376 }
28377check_1:
28378
28379 if (argc == 2) {
28380 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28381 }
28382
28383fail:
28384 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28385 return NULL;
28386}
28387
28388
28389SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28390 PyObject *resultobj = 0;
28391 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28392 wxGraphicsBrush *arg2 = 0 ;
28393 void *argp1 = 0 ;
28394 int res1 = 0 ;
28395 void *argp2 = 0 ;
28396 int res2 = 0 ;
28397
28398 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28400 if (!SWIG_IsOK(res1)) {
28401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28402 }
28403 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28404 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28405 if (!SWIG_IsOK(res2)) {
28406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28407 }
28408 if (!argp2) {
28409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28410 }
28411 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28412 {
28413 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 resultobj = SWIG_Py_Void();
28417 return resultobj;
28418fail:
28419 return NULL;
28420}
28421
28422
28423SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28424 PyObject *resultobj = 0;
28425 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28426 wxBrush *arg2 = 0 ;
28427 void *argp1 = 0 ;
28428 int res1 = 0 ;
28429 void *argp2 = 0 ;
28430 int res2 = 0 ;
72ef6efb 28431
70d7cb34
RD
28432 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28434 if (!SWIG_IsOK(res1)) {
28435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28436 }
28437 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28438 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28439 if (!SWIG_IsOK(res2)) {
28440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28441 }
28442 if (!argp2) {
28443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28444 }
28445 arg2 = reinterpret_cast< wxBrush * >(argp2);
28446 {
72ef6efb 28447 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 resultobj = SWIG_Py_Void();
28451 return resultobj;
28452fail:
28453 return NULL;
28454}
28455
28456
70d7cb34
RD
28457SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28458 int argc;
28459 PyObject *argv[3];
72ef6efb 28460
70d7cb34
RD
28461 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28462 --argc;
28463 if (argc == 2) {
28464 int _v = 0;
28465 {
28466 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28467 _v = SWIG_CheckState(res);
28468 }
28469 if (!_v) goto check_1;
28470 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28471 }
70d7cb34
RD
28472check_1:
28473
28474 if (argc == 2) {
28475 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28476 }
70d7cb34 28477
72ef6efb 28478fail:
70d7cb34 28479 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28480 return NULL;
28481}
28482
28483
70d7cb34 28484SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28485 PyObject *resultobj = 0;
28486 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28487 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28488 void *argp1 = 0 ;
28489 int res1 = 0 ;
70d7cb34
RD
28490 void *argp2 = 0 ;
28491 int res2 = 0 ;
72ef6efb 28492
70d7cb34
RD
28493 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28495 if (!SWIG_IsOK(res1)) {
70d7cb34 28496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28497 }
28498 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28499 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28500 if (!SWIG_IsOK(res2)) {
28501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28502 }
70d7cb34
RD
28503 if (!argp2) {
28504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28505 }
70d7cb34 28506 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28507 {
70d7cb34 28508 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28509 if (PyErr_Occurred()) SWIG_fail;
28510 }
28511 resultobj = SWIG_Py_Void();
28512 return resultobj;
28513fail:
28514 return NULL;
28515}
28516
28517
70d7cb34 28518SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28519 PyObject *resultobj = 0;
28520 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28521 wxFont *arg2 = 0 ;
70d7cb34
RD
28522 wxColour const &arg3_defvalue = *wxBLACK ;
28523 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28524 void *argp1 = 0 ;
28525 int res1 = 0 ;
28526 void *argp2 = 0 ;
28527 int res2 = 0 ;
70d7cb34 28528 wxColour temp3 ;
72ef6efb 28529
70d7cb34
RD
28530 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28532 if (!SWIG_IsOK(res1)) {
28533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28534 }
28535 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28536 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28537 if (!SWIG_IsOK(res2)) {
28538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28539 }
28540 if (!argp2) {
28541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28542 }
28543 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28544 if (swig_obj[2]) {
28545 {
28546 arg3 = &temp3;
28547 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28548 }
28549 }
72ef6efb 28550 {
70d7cb34 28551 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28552 if (PyErr_Occurred()) SWIG_fail;
28553 }
28554 resultobj = SWIG_Py_Void();
28555 return resultobj;
28556fail:
28557 return NULL;
28558}
28559
28560
70d7cb34
RD
28561SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28562 int argc;
28563 PyObject *argv[4];
72ef6efb 28564
70d7cb34
RD
28565 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28566 --argc;
28567 if (argc == 2) {
28568 int _v = 0;
28569 {
28570 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28571 _v = SWIG_CheckState(res);
28572 }
28573 if (!_v) goto check_1;
28574 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28575 }
70d7cb34
RD
28576check_1:
28577
28578 if ((argc >= 2) && (argc <= 3)) {
28579 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28580 }
70d7cb34 28581
72ef6efb 28582fail:
70d7cb34 28583 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28584 return NULL;
28585}
28586
28587
28588SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28589 PyObject *resultobj = 0;
28590 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28591 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28592 void *argp1 = 0 ;
28593 int res1 = 0 ;
28594 void *argp2 = 0 ;
28595 int res2 = 0 ;
28596 PyObject * obj0 = 0 ;
28597 PyObject * obj1 = 0 ;
28598 char * kwnames[] = {
28599 (char *) "self",(char *) "path", NULL
28600 };
28601
28602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28604 if (!SWIG_IsOK(res1)) {
28605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28606 }
28607 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28609 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28611 }
28612 if (!argp2) {
28613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28614 }
28615 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28616 {
5c8c7dd3 28617 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_Py_Void();
28621 return resultobj;
28622fail:
28623 return NULL;
28624}
28625
28626
28627SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj = 0;
28629 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28630 wxGraphicsPath *arg2 = 0 ;
28631 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28632 void *argp1 = 0 ;
28633 int res1 = 0 ;
28634 void *argp2 = 0 ;
28635 int res2 = 0 ;
28636 int val3 ;
28637 int ecode3 = 0 ;
28638 PyObject * obj0 = 0 ;
28639 PyObject * obj1 = 0 ;
28640 PyObject * obj2 = 0 ;
28641 char * kwnames[] = {
28642 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28643 };
28644
28645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28647 if (!SWIG_IsOK(res1)) {
28648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28649 }
28650 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28652 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28654 }
28655 if (!argp2) {
28656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28657 }
28658 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28659 if (obj2) {
28660 ecode3 = SWIG_AsVal_int(obj2, &val3);
28661 if (!SWIG_IsOK(ecode3)) {
28662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28663 }
28664 arg3 = static_cast< int >(val3);
28665 }
28666 {
5c8c7dd3 28667 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28668 if (PyErr_Occurred()) SWIG_fail;
28669 }
28670 resultobj = SWIG_Py_Void();
28671 return resultobj;
28672fail:
28673 return NULL;
28674}
28675
28676
28677SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28678 PyObject *resultobj = 0;
28679 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28680 wxGraphicsPath *arg2 = 0 ;
28681 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28682 void *argp1 = 0 ;
28683 int res1 = 0 ;
28684 void *argp2 = 0 ;
28685 int res2 = 0 ;
28686 int val3 ;
28687 int ecode3 = 0 ;
28688 PyObject * obj0 = 0 ;
28689 PyObject * obj1 = 0 ;
28690 PyObject * obj2 = 0 ;
28691 char * kwnames[] = {
28692 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28693 };
28694
28695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28697 if (!SWIG_IsOK(res1)) {
28698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28699 }
28700 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28702 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28704 }
28705 if (!argp2) {
28706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28707 }
28708 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28709 if (obj2) {
28710 ecode3 = SWIG_AsVal_int(obj2, &val3);
28711 if (!SWIG_IsOK(ecode3)) {
28712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28713 }
28714 arg3 = static_cast< int >(val3);
28715 }
28716 {
5c8c7dd3 28717 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28718 if (PyErr_Occurred()) SWIG_fail;
28719 }
28720 resultobj = SWIG_Py_Void();
28721 return resultobj;
28722fail:
28723 return NULL;
28724}
28725
28726
b39fe951 28727SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28728 PyObject *resultobj = 0;
28729 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28730 wxString *arg2 = 0 ;
28731 wxDouble arg3 ;
28732 wxDouble arg4 ;
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 bool temp2 = false ;
28736 double val3 ;
28737 int ecode3 = 0 ;
28738 double val4 ;
28739 int ecode4 = 0 ;
b39fe951
RD
28740 PyObject * obj0 = 0 ;
28741 PyObject * obj1 = 0 ;
28742 PyObject * obj2 = 0 ;
28743 PyObject * obj3 = 0 ;
28744 char * kwnames[] = {
28745 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28746 };
72ef6efb 28747
b39fe951
RD
28748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28750 if (!SWIG_IsOK(res1)) {
28751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28752 }
28753 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28754 {
b39fe951 28755 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28756 if (arg2 == NULL) SWIG_fail;
28757 temp2 = true;
28758 }
b39fe951 28759 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28760 if (!SWIG_IsOK(ecode3)) {
28761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28762 }
28763 arg3 = static_cast< wxDouble >(val3);
b39fe951 28764 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28765 if (!SWIG_IsOK(ecode4)) {
28766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28767 }
28768 arg4 = static_cast< wxDouble >(val4);
28769 {
72ef6efb 28770 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
28771 if (PyErr_Occurred()) SWIG_fail;
28772 }
28773 resultobj = SWIG_Py_Void();
28774 {
28775 if (temp2)
28776 delete arg2;
28777 }
28778 return resultobj;
28779fail:
28780 {
28781 if (temp2)
28782 delete arg2;
28783 }
28784 return NULL;
28785}
28786
28787
b39fe951 28788SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28789 PyObject *resultobj = 0;
28790 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28791 wxString *arg2 = 0 ;
28792 wxDouble arg3 ;
28793 wxDouble arg4 ;
28794 wxDouble arg5 ;
28795 void *argp1 = 0 ;
28796 int res1 = 0 ;
28797 bool temp2 = false ;
28798 double val3 ;
28799 int ecode3 = 0 ;
28800 double val4 ;
28801 int ecode4 = 0 ;
28802 double val5 ;
28803 int ecode5 = 0 ;
b39fe951
RD
28804 PyObject * obj0 = 0 ;
28805 PyObject * obj1 = 0 ;
28806 PyObject * obj2 = 0 ;
28807 PyObject * obj3 = 0 ;
28808 PyObject * obj4 = 0 ;
28809 char * kwnames[] = {
28810 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
28811 };
72ef6efb 28812
b39fe951
RD
28813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28815 if (!SWIG_IsOK(res1)) {
b39fe951 28816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28817 }
28818 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28819 {
b39fe951 28820 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28821 if (arg2 == NULL) SWIG_fail;
28822 temp2 = true;
28823 }
b39fe951 28824 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 28825 if (!SWIG_IsOK(ecode3)) {
b39fe951 28826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28827 }
28828 arg3 = static_cast< wxDouble >(val3);
b39fe951 28829 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 28830 if (!SWIG_IsOK(ecode4)) {
b39fe951 28831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28832 }
28833 arg4 = static_cast< wxDouble >(val4);
b39fe951 28834 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 28835 if (!SWIG_IsOK(ecode5)) {
b39fe951 28836 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28837 }
28838 arg5 = static_cast< wxDouble >(val5);
28839 {
72ef6efb 28840 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
28841 if (PyErr_Occurred()) SWIG_fail;
28842 }
28843 resultobj = SWIG_Py_Void();
28844 {
28845 if (temp2)
28846 delete arg2;
28847 }
28848 return resultobj;
28849fail:
28850 {
28851 if (temp2)
28852 delete arg2;
28853 }
28854 return NULL;
28855}
28856
28857
be68621e 28858SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28859 PyObject *resultobj = 0;
28860 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28861 wxString *arg2 = 0 ;
28862 wxDouble *arg3 = (wxDouble *) 0 ;
28863 wxDouble *arg4 = (wxDouble *) 0 ;
28864 wxDouble *arg5 = (wxDouble *) 0 ;
28865 wxDouble *arg6 = (wxDouble *) 0 ;
28866 void *argp1 = 0 ;
28867 int res1 = 0 ;
28868 bool temp2 = false ;
28869 wxDouble temp3 ;
28870 int res3 = SWIG_TMPOBJ ;
28871 wxDouble temp4 ;
28872 int res4 = SWIG_TMPOBJ ;
28873 wxDouble temp5 ;
28874 int res5 = SWIG_TMPOBJ ;
28875 wxDouble temp6 ;
28876 int res6 = SWIG_TMPOBJ ;
28877 PyObject * obj0 = 0 ;
28878 PyObject * obj1 = 0 ;
28879 char * kwnames[] = {
28880 (char *) "self",(char *) "text", NULL
28881 };
28882
28883 arg3 = &temp3;
28884 arg4 = &temp4;
28885 arg5 = &temp5;
28886 arg6 = &temp6;
be68621e 28887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28889 if (!SWIG_IsOK(res1)) {
be68621e 28890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
28891 }
28892 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28893 {
28894 arg2 = wxString_in_helper(obj1);
28895 if (arg2 == NULL) SWIG_fail;
28896 temp2 = true;
28897 }
28898 {
72ef6efb 28899 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 resultobj = SWIG_Py_Void();
28903 if (SWIG_IsTmpObj(res3)) {
28904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28905 } else {
28906 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28908 }
28909 if (SWIG_IsTmpObj(res4)) {
28910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28911 } else {
28912 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28914 }
28915 if (SWIG_IsTmpObj(res5)) {
28916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
28917 } else {
28918 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
28920 }
28921 if (SWIG_IsTmpObj(res6)) {
28922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
28923 } else {
28924 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
28926 }
28927 {
28928 if (temp2)
28929 delete arg2;
28930 }
28931 return resultobj;
28932fail:
28933 {
28934 if (temp2)
28935 delete arg2;
28936 }
28937 return NULL;
28938}
28939
28940
be68621e
RD
28941SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28942 PyObject *resultobj = 0;
28943 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28944 wxString *arg2 = 0 ;
28945 PyObject *result = 0 ;
28946 void *argp1 = 0 ;
28947 int res1 = 0 ;
28948 bool temp2 = false ;
28949 PyObject * obj0 = 0 ;
28950 PyObject * obj1 = 0 ;
28951 char * kwnames[] = {
28952 (char *) "self",(char *) "text", NULL
28953 };
28954
28955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28959 }
28960 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28961 {
28962 arg2 = wxString_in_helper(obj1);
28963 if (arg2 == NULL) SWIG_fail;
28964 temp2 = true;
28965 }
28966 {
28967 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
28968 if (PyErr_Occurred()) SWIG_fail;
28969 }
28970 resultobj = result;
28971 {
28972 if (temp2)
28973 delete arg2;
28974 }
28975 return resultobj;
28976fail:
28977 {
28978 if (temp2)
28979 delete arg2;
28980 }
28981 return NULL;
28982}
28983
28984
72ef6efb
RD
28985SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28986 PyObject *resultobj = 0;
28987 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28988 wxString *arg2 = 0 ;
b39fe951 28989 wxArrayDouble result;
72ef6efb
RD
28990 void *argp1 = 0 ;
28991 int res1 = 0 ;
28992 bool temp2 = false ;
72ef6efb
RD
28993 PyObject * obj0 = 0 ;
28994 PyObject * obj1 = 0 ;
72ef6efb 28995 char * kwnames[] = {
b39fe951 28996 (char *) "self",(char *) "text", NULL
72ef6efb
RD
28997 };
28998
b39fe951 28999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29001 if (!SWIG_IsOK(res1)) {
b39fe951 29002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29003 }
29004 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29005 {
29006 arg2 = wxString_in_helper(obj1);
29007 if (arg2 == NULL) SWIG_fail;
29008 temp2 = true;
29009 }
72ef6efb 29010 {
b39fe951 29011 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29012 if (PyErr_Occurred()) SWIG_fail;
29013 }
b39fe951
RD
29014 {
29015 resultobj = wxArrayDouble2PyList_helper(result);
29016 }
72ef6efb
RD
29017 {
29018 if (temp2)
29019 delete arg2;
29020 }
29021 return resultobj;
29022fail:
29023 {
29024 if (temp2)
29025 delete arg2;
29026 }
29027 return NULL;
29028}
29029
29030
29031SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29032 PyObject *resultobj = 0;
29033 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29034 wxBitmap *arg2 = 0 ;
29035 wxDouble arg3 ;
29036 wxDouble arg4 ;
29037 wxDouble arg5 ;
29038 wxDouble arg6 ;
29039 void *argp1 = 0 ;
29040 int res1 = 0 ;
29041 void *argp2 = 0 ;
29042 int res2 = 0 ;
29043 double val3 ;
29044 int ecode3 = 0 ;
29045 double val4 ;
29046 int ecode4 = 0 ;
29047 double val5 ;
29048 int ecode5 = 0 ;
29049 double val6 ;
29050 int ecode6 = 0 ;
29051 PyObject * obj0 = 0 ;
29052 PyObject * obj1 = 0 ;
29053 PyObject * obj2 = 0 ;
29054 PyObject * obj3 = 0 ;
29055 PyObject * obj4 = 0 ;
29056 PyObject * obj5 = 0 ;
29057 char * kwnames[] = {
29058 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29059 };
29060
29061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29063 if (!SWIG_IsOK(res1)) {
29064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29065 }
29066 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29068 if (!SWIG_IsOK(res2)) {
29069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29070 }
29071 if (!argp2) {
29072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29073 }
29074 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29075 ecode3 = SWIG_AsVal_double(obj2, &val3);
29076 if (!SWIG_IsOK(ecode3)) {
29077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29078 }
29079 arg3 = static_cast< wxDouble >(val3);
29080 ecode4 = SWIG_AsVal_double(obj3, &val4);
29081 if (!SWIG_IsOK(ecode4)) {
29082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29083 }
29084 arg4 = static_cast< wxDouble >(val4);
29085 ecode5 = SWIG_AsVal_double(obj4, &val5);
29086 if (!SWIG_IsOK(ecode5)) {
29087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29088 }
29089 arg5 = static_cast< wxDouble >(val5);
29090 ecode6 = SWIG_AsVal_double(obj5, &val6);
29091 if (!SWIG_IsOK(ecode6)) {
29092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29093 }
29094 arg6 = static_cast< wxDouble >(val6);
29095 {
72ef6efb 29096 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29097 if (PyErr_Occurred()) SWIG_fail;
29098 }
29099 resultobj = SWIG_Py_Void();
29100 return resultobj;
29101fail:
29102 return NULL;
29103}
29104
29105
29106SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29107 PyObject *resultobj = 0;
29108 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29109 wxIcon *arg2 = 0 ;
29110 wxDouble arg3 ;
29111 wxDouble arg4 ;
29112 wxDouble arg5 ;
29113 wxDouble arg6 ;
29114 void *argp1 = 0 ;
29115 int res1 = 0 ;
29116 void *argp2 = 0 ;
29117 int res2 = 0 ;
29118 double val3 ;
29119 int ecode3 = 0 ;
29120 double val4 ;
29121 int ecode4 = 0 ;
29122 double val5 ;
29123 int ecode5 = 0 ;
70d7cb34
RD
29124 double val6 ;
29125 int ecode6 = 0 ;
29126 PyObject * obj0 = 0 ;
29127 PyObject * obj1 = 0 ;
29128 PyObject * obj2 = 0 ;
29129 PyObject * obj3 = 0 ;
29130 PyObject * obj4 = 0 ;
29131 PyObject * obj5 = 0 ;
29132 char * kwnames[] = {
29133 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29134 };
29135
29136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29140 }
29141 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29143 if (!SWIG_IsOK(res2)) {
29144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29145 }
29146 if (!argp2) {
29147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29148 }
29149 arg2 = reinterpret_cast< wxIcon * >(argp2);
29150 ecode3 = SWIG_AsVal_double(obj2, &val3);
29151 if (!SWIG_IsOK(ecode3)) {
29152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29153 }
29154 arg3 = static_cast< wxDouble >(val3);
29155 ecode4 = SWIG_AsVal_double(obj3, &val4);
29156 if (!SWIG_IsOK(ecode4)) {
29157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29158 }
29159 arg4 = static_cast< wxDouble >(val4);
29160 ecode5 = SWIG_AsVal_double(obj4, &val5);
29161 if (!SWIG_IsOK(ecode5)) {
29162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29163 }
29164 arg5 = static_cast< wxDouble >(val5);
29165 ecode6 = SWIG_AsVal_double(obj5, &val6);
29166 if (!SWIG_IsOK(ecode6)) {
29167 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29168 }
29169 arg6 = static_cast< wxDouble >(val6);
29170 {
29171 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29172 if (PyErr_Occurred()) SWIG_fail;
29173 }
29174 resultobj = SWIG_Py_Void();
29175 return resultobj;
29176fail:
29177 return NULL;
29178}
29179
29180
29181SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29182 PyObject *resultobj = 0;
29183 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29184 wxDouble arg2 ;
29185 wxDouble arg3 ;
29186 wxDouble arg4 ;
29187 wxDouble arg5 ;
29188 void *argp1 = 0 ;
29189 int res1 = 0 ;
29190 double val2 ;
29191 int ecode2 = 0 ;
29192 double val3 ;
29193 int ecode3 = 0 ;
29194 double val4 ;
29195 int ecode4 = 0 ;
29196 double val5 ;
29197 int ecode5 = 0 ;
29198 PyObject * obj0 = 0 ;
29199 PyObject * obj1 = 0 ;
29200 PyObject * obj2 = 0 ;
29201 PyObject * obj3 = 0 ;
29202 PyObject * obj4 = 0 ;
29203 char * kwnames[] = {
29204 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29205 };
29206
29207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29209 if (!SWIG_IsOK(res1)) {
29210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29211 }
29212 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29213 ecode2 = SWIG_AsVal_double(obj1, &val2);
29214 if (!SWIG_IsOK(ecode2)) {
29215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29216 }
29217 arg2 = static_cast< wxDouble >(val2);
29218 ecode3 = SWIG_AsVal_double(obj2, &val3);
29219 if (!SWIG_IsOK(ecode3)) {
29220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29221 }
29222 arg3 = static_cast< wxDouble >(val3);
29223 ecode4 = SWIG_AsVal_double(obj3, &val4);
29224 if (!SWIG_IsOK(ecode4)) {
29225 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29226 }
29227 arg4 = static_cast< wxDouble >(val4);
29228 ecode5 = SWIG_AsVal_double(obj4, &val5);
29229 if (!SWIG_IsOK(ecode5)) {
29230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29231 }
29232 arg5 = static_cast< wxDouble >(val5);
29233 {
29234 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29235 if (PyErr_Occurred()) SWIG_fail;
29236 }
29237 resultobj = SWIG_Py_Void();
29238 return resultobj;
29239fail:
29240 return NULL;
29241}
29242
29243
29244SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29245 PyObject *resultobj = 0;
29246 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29247 size_t arg2 ;
29248 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29249 void *argp1 = 0 ;
29250 int res1 = 0 ;
29251 PyObject * obj0 = 0 ;
29252 PyObject * obj1 = 0 ;
29253 char * kwnames[] = {
29254 (char *) "self",(char *) "points", NULL
29255 };
29256
29257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29259 if (!SWIG_IsOK(res1)) {
29260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29261 }
29262 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29263 {
29264 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29265 if (arg3 == NULL) SWIG_fail;
29266 }
29267 {
29268 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 resultobj = SWIG_Py_Void();
29272 {
29273 if (arg3) delete [] arg3;
29274 }
29275 return resultobj;
29276fail:
29277 {
29278 if (arg3) delete [] arg3;
29279 }
29280 return NULL;
29281}
29282
29283
29284SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29285 PyObject *resultobj = 0;
29286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29287 PyObject *arg2 = (PyObject *) 0 ;
29288 PyObject *arg3 = (PyObject *) 0 ;
29289 void *argp1 = 0 ;
29290 int res1 = 0 ;
29291 PyObject * obj0 = 0 ;
29292 PyObject * obj1 = 0 ;
29293 PyObject * obj2 = 0 ;
29294 char * kwnames[] = {
29295 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29296 };
29297
29298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29300 if (!SWIG_IsOK(res1)) {
29301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29302 }
29303 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29304 arg2 = obj1;
29305 arg3 = obj2;
29306 {
29307 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 resultobj = SWIG_Py_Void();
29311 return resultobj;
29312fail:
29313 return NULL;
29314}
29315
29316
29317SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29318 PyObject *resultobj = 0;
29319 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29320 size_t arg2 ;
29321 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
5c8c7dd3 29322 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29323 void *argp1 = 0 ;
29324 int res1 = 0 ;
29325 int val4 ;
29326 int ecode4 = 0 ;
29327 PyObject * obj0 = 0 ;
29328 PyObject * obj1 = 0 ;
29329 PyObject * obj2 = 0 ;
29330 char * kwnames[] = {
29331 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29332 };
29333
29334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29336 if (!SWIG_IsOK(res1)) {
29337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29338 }
29339 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29340 {
29341 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29342 if (arg3 == NULL) SWIG_fail;
29343 }
29344 if (obj2) {
29345 ecode4 = SWIG_AsVal_int(obj2, &val4);
29346 if (!SWIG_IsOK(ecode4)) {
29347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29348 }
29349 arg4 = static_cast< int >(val4);
29350 }
29351 {
29352 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29353 if (PyErr_Occurred()) SWIG_fail;
29354 }
29355 resultobj = SWIG_Py_Void();
29356 {
29357 if (arg3) delete [] arg3;
29358 }
29359 return resultobj;
29360fail:
29361 {
29362 if (arg3) delete [] arg3;
29363 }
29364 return NULL;
29365}
29366
29367
29368SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29371 wxDouble arg2 ;
29372 wxDouble arg3 ;
29373 wxDouble arg4 ;
29374 wxDouble arg5 ;
29375 void *argp1 = 0 ;
29376 int res1 = 0 ;
29377 double val2 ;
29378 int ecode2 = 0 ;
29379 double val3 ;
29380 int ecode3 = 0 ;
29381 double val4 ;
29382 int ecode4 = 0 ;
29383 double val5 ;
29384 int ecode5 = 0 ;
29385 PyObject * obj0 = 0 ;
29386 PyObject * obj1 = 0 ;
29387 PyObject * obj2 = 0 ;
29388 PyObject * obj3 = 0 ;
29389 PyObject * obj4 = 0 ;
29390 char * kwnames[] = {
29391 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29392 };
29393
29394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29396 if (!SWIG_IsOK(res1)) {
29397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29398 }
29399 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29400 ecode2 = SWIG_AsVal_double(obj1, &val2);
29401 if (!SWIG_IsOK(ecode2)) {
29402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29403 }
29404 arg2 = static_cast< wxDouble >(val2);
29405 ecode3 = SWIG_AsVal_double(obj2, &val3);
29406 if (!SWIG_IsOK(ecode3)) {
29407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29408 }
29409 arg3 = static_cast< wxDouble >(val3);
29410 ecode4 = SWIG_AsVal_double(obj3, &val4);
29411 if (!SWIG_IsOK(ecode4)) {
29412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29413 }
29414 arg4 = static_cast< wxDouble >(val4);
29415 ecode5 = SWIG_AsVal_double(obj4, &val5);
29416 if (!SWIG_IsOK(ecode5)) {
29417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29418 }
29419 arg5 = static_cast< wxDouble >(val5);
29420 {
29421 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 resultobj = SWIG_Py_Void();
29425 return resultobj;
29426fail:
29427 return NULL;
29428}
29429
29430
29431SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29432 PyObject *resultobj = 0;
29433 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29434 wxDouble arg2 ;
29435 wxDouble arg3 ;
29436 wxDouble arg4 ;
29437 wxDouble arg5 ;
29438 void *argp1 = 0 ;
29439 int res1 = 0 ;
29440 double val2 ;
29441 int ecode2 = 0 ;
29442 double val3 ;
29443 int ecode3 = 0 ;
29444 double val4 ;
29445 int ecode4 = 0 ;
29446 double val5 ;
29447 int ecode5 = 0 ;
72ef6efb
RD
29448 PyObject * obj0 = 0 ;
29449 PyObject * obj1 = 0 ;
29450 PyObject * obj2 = 0 ;
29451 PyObject * obj3 = 0 ;
29452 PyObject * obj4 = 0 ;
72ef6efb 29453 char * kwnames[] = {
70d7cb34 29454 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29455 };
29456
70d7cb34 29457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29459 if (!SWIG_IsOK(res1)) {
70d7cb34 29460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29461 }
29462 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29463 ecode2 = SWIG_AsVal_double(obj1, &val2);
29464 if (!SWIG_IsOK(ecode2)) {
29465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29466 }
29467 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29468 ecode3 = SWIG_AsVal_double(obj2, &val3);
29469 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29471 }
29472 arg3 = static_cast< wxDouble >(val3);
29473 ecode4 = SWIG_AsVal_double(obj3, &val4);
29474 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29476 }
29477 arg4 = static_cast< wxDouble >(val4);
29478 ecode5 = SWIG_AsVal_double(obj4, &val5);
29479 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29480 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29481 }
29482 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29483 {
70d7cb34 29484 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29485 if (PyErr_Occurred()) SWIG_fail;
29486 }
29487 resultobj = SWIG_Py_Void();
29488 return resultobj;
29489fail:
29490 return NULL;
29491}
29492
29493
70d7cb34 29494SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29495 PyObject *resultobj = 0;
29496 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29497 wxDouble arg2 ;
29498 wxDouble arg3 ;
29499 wxDouble arg4 ;
29500 wxDouble arg5 ;
70d7cb34 29501 wxDouble arg6 ;
72ef6efb
RD
29502 void *argp1 = 0 ;
29503 int res1 = 0 ;
29504 double val2 ;
29505 int ecode2 = 0 ;
29506 double val3 ;
29507 int ecode3 = 0 ;
29508 double val4 ;
29509 int ecode4 = 0 ;
29510 double val5 ;
29511 int ecode5 = 0 ;
70d7cb34
RD
29512 double val6 ;
29513 int ecode6 = 0 ;
72ef6efb
RD
29514 PyObject * obj0 = 0 ;
29515 PyObject * obj1 = 0 ;
29516 PyObject * obj2 = 0 ;
29517 PyObject * obj3 = 0 ;
29518 PyObject * obj4 = 0 ;
70d7cb34 29519 PyObject * obj5 = 0 ;
72ef6efb 29520 char * kwnames[] = {
70d7cb34 29521 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29522 };
29523
70d7cb34 29524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29526 if (!SWIG_IsOK(res1)) {
70d7cb34 29527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29528 }
29529 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29530 ecode2 = SWIG_AsVal_double(obj1, &val2);
29531 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29533 }
29534 arg2 = static_cast< wxDouble >(val2);
29535 ecode3 = SWIG_AsVal_double(obj2, &val3);
29536 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29538 }
29539 arg3 = static_cast< wxDouble >(val3);
29540 ecode4 = SWIG_AsVal_double(obj3, &val4);
29541 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29543 }
29544 arg4 = static_cast< wxDouble >(val4);
29545 ecode5 = SWIG_AsVal_double(obj4, &val5);
29546 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29548 }
29549 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29550 ecode6 = SWIG_AsVal_double(obj5, &val6);
29551 if (!SWIG_IsOK(ecode6)) {
29552 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29553 }
29554 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29555 {
70d7cb34 29556 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29557 if (PyErr_Occurred()) SWIG_fail;
29558 }
29559 resultobj = SWIG_Py_Void();
29560 return resultobj;
29561fail:
29562 return NULL;
29563}
29564
29565
70d7cb34 29566SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29567 PyObject *resultobj = 0;
29568 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29569 bool result;
72ef6efb
RD
29570 void *argp1 = 0 ;
29571 int res1 = 0 ;
70d7cb34 29572 PyObject *swig_obj[1] ;
72ef6efb 29573
70d7cb34
RD
29574 if (!args) SWIG_fail;
29575 swig_obj[0] = args;
29576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29577 if (!SWIG_IsOK(res1)) {
70d7cb34 29578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29579 }
29580 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29581 {
70d7cb34
RD
29582 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29583 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29584 }
72ef6efb 29585 {
70d7cb34
RD
29586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29587 }
29588 return resultobj;
29589fail:
29590 return NULL;
29591}
29592
29593
29594SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29595 PyObject *obj;
29596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29597 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29598 return SWIG_Py_Void();
29599}
29600
29601SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29602 PyObject *resultobj = 0;
29603 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29604 void *argp1 = 0 ;
29605 int res1 = 0 ;
29606 PyObject *swig_obj[1] ;
29607
29608 if (!args) SWIG_fail;
29609 swig_obj[0] = args;
29610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29611 if (!SWIG_IsOK(res1)) {
29612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29613 }
29614 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29615 {
29616 delete arg1;
29617
72ef6efb
RD
29618 if (PyErr_Occurred()) SWIG_fail;
29619 }
29620 resultobj = SWIG_Py_Void();
70d7cb34
RD
29621 return resultobj;
29622fail:
29623 return NULL;
29624}
29625
29626
29627SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29628 PyObject *resultobj = 0;
29629 wxGraphicsRenderer *result = 0 ;
29630
29631 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29632 {
70d7cb34
RD
29633 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29634 if (PyErr_Occurred()) SWIG_fail;
29635 }
29636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29637 return resultobj;
29638fail:
29639 return NULL;
29640}
29641
29642
29643SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29644 PyObject *resultobj = 0;
29645 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29646 wxWindowDC *arg2 = 0 ;
29647 wxGraphicsContext *result = 0 ;
29648 void *argp1 = 0 ;
29649 int res1 = 0 ;
29650 void *argp2 = 0 ;
29651 int res2 = 0 ;
29652
29653 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29655 if (!SWIG_IsOK(res1)) {
29656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29657 }
29658 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29659 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29660 if (!SWIG_IsOK(res2)) {
29661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29662 }
29663 if (!argp2) {
29664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29665 }
29666 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29667 {
29668 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29669 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29670 }
70d7cb34 29671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29672 return resultobj;
29673fail:
70d7cb34
RD
29674 return NULL;
29675}
29676
29677
29678SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29679 PyObject *resultobj = 0;
29680 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29681 wxWindow *arg2 = (wxWindow *) 0 ;
29682 wxGraphicsContext *result = 0 ;
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 void *argp2 = 0 ;
29686 int res2 = 0 ;
29687
29688 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29690 if (!SWIG_IsOK(res1)) {
29691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29692 }
29693 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29694 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29695 if (!SWIG_IsOK(res2)) {
29696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29697 }
29698 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29699 {
70d7cb34
RD
29700 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29701 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29702 }
70d7cb34
RD
29703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29704 return resultobj;
29705fail:
72ef6efb
RD
29706 return NULL;
29707}
29708
29709
70d7cb34
RD
29710SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29711 int argc;
29712 PyObject *argv[3];
29713
29714 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29715 --argc;
29716 if (argc == 2) {
29717 int _v = 0;
29718 {
29719 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29720 _v = SWIG_CheckState(res);
29721 }
29722 if (!_v) goto check_1;
29723 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29724 }
29725check_1:
29726
29727 if (argc == 2) {
29728 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29729 }
29730
29731fail:
29732 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29733 return NULL;
29734}
29735
29736
29737SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29738 PyObject *resultobj = 0;
70d7cb34
RD
29739 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29740 void *arg2 = (void *) 0 ;
29741 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29742 void *argp1 = 0 ;
29743 int res1 = 0 ;
70d7cb34 29744 int res2 ;
b39fe951
RD
29745 PyObject * obj0 = 0 ;
29746 PyObject * obj1 = 0 ;
b39fe951 29747 char * kwnames[] = {
70d7cb34 29748 (char *) "self",(char *) "context", NULL
b39fe951 29749 };
72ef6efb 29750
70d7cb34
RD
29751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29753 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29755 }
29756 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29757 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29758 if (!SWIG_IsOK(res2)) {
29759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29760 }
72ef6efb 29761 {
70d7cb34 29762 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29763 if (PyErr_Occurred()) SWIG_fail;
29764 }
70d7cb34 29765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29766 return resultobj;
29767fail:
29768 return NULL;
29769}
29770
29771
70d7cb34 29772SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29773 PyObject *resultobj = 0;
70d7cb34
RD
29774 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29775 void *arg2 = (void *) 0 ;
29776 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29777 void *argp1 = 0 ;
29778 int res1 = 0 ;
70d7cb34 29779 int res2 ;
72ef6efb
RD
29780 PyObject * obj0 = 0 ;
29781 PyObject * obj1 = 0 ;
72ef6efb 29782 char * kwnames[] = {
70d7cb34 29783 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29784 };
29785
70d7cb34
RD
29786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29788 if (!SWIG_IsOK(res1)) {
70d7cb34 29789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29790 }
70d7cb34
RD
29791 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29792 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29793 if (!SWIG_IsOK(res2)) {
29794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
29795 }
29796 {
70d7cb34 29797 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
29798 if (PyErr_Occurred()) SWIG_fail;
29799 }
70d7cb34 29800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29801 return resultobj;
29802fail:
70d7cb34
RD
29803 return NULL;
29804}
29805
29806
29807SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29808 PyObject *resultobj = 0;
29809 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 29810 wxGraphicsPath result;
70d7cb34
RD
29811 void *argp1 = 0 ;
29812 int res1 = 0 ;
29813 PyObject *swig_obj[1] ;
29814
29815 if (!args) SWIG_fail;
29816 swig_obj[0] = args;
29817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29818 if (!SWIG_IsOK(res1)) {
29819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29820 }
29821 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 29822 {
5c8c7dd3 29823 result = (arg1)->CreatePath();
70d7cb34 29824 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29825 }
5c8c7dd3 29826 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
29827 return resultobj;
29828fail:
72ef6efb
RD
29829 return NULL;
29830}
29831
29832
70d7cb34 29833SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29834 PyObject *resultobj = 0;
70d7cb34
RD
29835 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29836 wxDouble arg2 = (wxDouble) 1.0 ;
29837 wxDouble arg3 = (wxDouble) 0.0 ;
29838 wxDouble arg4 = (wxDouble) 0.0 ;
29839 wxDouble arg5 = (wxDouble) 1.0 ;
29840 wxDouble arg6 = (wxDouble) 0.0 ;
29841 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 29842 wxGraphicsMatrix result;
72ef6efb
RD
29843 void *argp1 = 0 ;
29844 int res1 = 0 ;
29845 double val2 ;
29846 int ecode2 = 0 ;
29847 double val3 ;
29848 int ecode3 = 0 ;
29849 double val4 ;
29850 int ecode4 = 0 ;
29851 double val5 ;
29852 int ecode5 = 0 ;
70d7cb34
RD
29853 double val6 ;
29854 int ecode6 = 0 ;
29855 double val7 ;
29856 int ecode7 = 0 ;
72ef6efb
RD
29857 PyObject * obj0 = 0 ;
29858 PyObject * obj1 = 0 ;
29859 PyObject * obj2 = 0 ;
29860 PyObject * obj3 = 0 ;
29861 PyObject * obj4 = 0 ;
70d7cb34
RD
29862 PyObject * obj5 = 0 ;
29863 PyObject * obj6 = 0 ;
72ef6efb 29864 char * kwnames[] = {
70d7cb34 29865 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
29866 };
29867
70d7cb34
RD
29868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29870 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29872 }
29873 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29874 if (obj1) {
29875 ecode2 = SWIG_AsVal_double(obj1, &val2);
29876 if (!SWIG_IsOK(ecode2)) {
29877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29878 }
29879 arg2 = static_cast< wxDouble >(val2);
29880 }
29881 if (obj2) {
29882 ecode3 = SWIG_AsVal_double(obj2, &val3);
29883 if (!SWIG_IsOK(ecode3)) {
29884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29885 }
29886 arg3 = static_cast< wxDouble >(val3);
29887 }
29888 if (obj3) {
29889 ecode4 = SWIG_AsVal_double(obj3, &val4);
29890 if (!SWIG_IsOK(ecode4)) {
29891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29892 }
29893 arg4 = static_cast< wxDouble >(val4);
29894 }
29895 if (obj4) {
29896 ecode5 = SWIG_AsVal_double(obj4, &val5);
29897 if (!SWIG_IsOK(ecode5)) {
29898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29899 }
29900 arg5 = static_cast< wxDouble >(val5);
29901 }
29902 if (obj5) {
29903 ecode6 = SWIG_AsVal_double(obj5, &val6);
29904 if (!SWIG_IsOK(ecode6)) {
29905 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29906 }
29907 arg6 = static_cast< wxDouble >(val6);
29908 }
29909 if (obj6) {
29910 ecode7 = SWIG_AsVal_double(obj6, &val7);
29911 if (!SWIG_IsOK(ecode7)) {
29912 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29913 }
29914 arg7 = static_cast< wxDouble >(val7);
72ef6efb 29915 }
72ef6efb 29916 {
5c8c7dd3 29917 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
29918 if (PyErr_Occurred()) SWIG_fail;
29919 }
5c8c7dd3 29920 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29921 return resultobj;
29922fail:
29923 return NULL;
29924}
29925
29926
70d7cb34 29927SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29928 PyObject *resultobj = 0;
70d7cb34
RD
29929 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29930 wxPen *arg2 = 0 ;
29931 wxGraphicsPen result;
29932 void *argp1 = 0 ;
29933 int res1 = 0 ;
29934 void *argp2 = 0 ;
29935 int res2 = 0 ;
29936 PyObject * obj0 = 0 ;
29937 PyObject * obj1 = 0 ;
29938 char * kwnames[] = {
29939 (char *) "self",(char *) "pen", NULL
29940 };
29941
29942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29944 if (!SWIG_IsOK(res1)) {
29945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29946 }
29947 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29949 if (!SWIG_IsOK(res2)) {
29950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29951 }
29952 if (!argp2) {
29953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29954 }
29955 arg2 = reinterpret_cast< wxPen * >(argp2);
29956 {
29957 result = (arg1)->CreatePen((wxPen const &)*arg2);
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29961 return resultobj;
29962fail:
29963 return NULL;
29964}
29965
29966
29967SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29968 PyObject *resultobj = 0;
29969 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29970 wxBrush *arg2 = 0 ;
29971 wxGraphicsBrush result;
29972 void *argp1 = 0 ;
29973 int res1 = 0 ;
29974 void *argp2 = 0 ;
29975 int res2 = 0 ;
29976 PyObject * obj0 = 0 ;
29977 PyObject * obj1 = 0 ;
29978 char * kwnames[] = {
29979 (char *) "self",(char *) "brush", NULL
29980 };
29981
29982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29984 if (!SWIG_IsOK(res1)) {
29985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29986 }
29987 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29989 if (!SWIG_IsOK(res2)) {
29990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29991 }
29992 if (!argp2) {
29993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29994 }
29995 arg2 = reinterpret_cast< wxBrush * >(argp2);
29996 {
29997 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 }
30000 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30001 return resultobj;
30002fail:
30003 return NULL;
30004}
30005
30006
30007SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30008 PyObject *resultobj = 0;
30009 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30010 wxDouble arg2 ;
30011 wxDouble arg3 ;
30012 wxDouble arg4 ;
30013 wxDouble arg5 ;
70d7cb34
RD
30014 wxColour *arg6 = 0 ;
30015 wxColour *arg7 = 0 ;
30016 wxGraphicsBrush result;
72ef6efb
RD
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 double val2 ;
30020 int ecode2 = 0 ;
30021 double val3 ;
30022 int ecode3 = 0 ;
30023 double val4 ;
30024 int ecode4 = 0 ;
30025 double val5 ;
30026 int ecode5 = 0 ;
70d7cb34
RD
30027 wxColour temp6 ;
30028 wxColour temp7 ;
72ef6efb
RD
30029 PyObject * obj0 = 0 ;
30030 PyObject * obj1 = 0 ;
30031 PyObject * obj2 = 0 ;
30032 PyObject * obj3 = 0 ;
30033 PyObject * obj4 = 0 ;
70d7cb34
RD
30034 PyObject * obj5 = 0 ;
30035 PyObject * obj6 = 0 ;
72ef6efb 30036 char * kwnames[] = {
70d7cb34 30037 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30038 };
30039
70d7cb34
RD
30040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30042 if (!SWIG_IsOK(res1)) {
70d7cb34 30043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30044 }
70d7cb34 30045 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30046 ecode2 = SWIG_AsVal_double(obj1, &val2);
30047 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30049 }
30050 arg2 = static_cast< wxDouble >(val2);
30051 ecode3 = SWIG_AsVal_double(obj2, &val3);
30052 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30054 }
30055 arg3 = static_cast< wxDouble >(val3);
30056 ecode4 = SWIG_AsVal_double(obj3, &val4);
30057 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30059 }
30060 arg4 = static_cast< wxDouble >(val4);
30061 ecode5 = SWIG_AsVal_double(obj4, &val5);
30062 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30064 }
30065 arg5 = static_cast< wxDouble >(val5);
30066 {
70d7cb34
RD
30067 arg6 = &temp6;
30068 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30069 }
30070 {
30071 arg7 = &temp7;
30072 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30073 }
30074 {
30075 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30076 if (PyErr_Occurred()) SWIG_fail;
30077 }
70d7cb34 30078 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30079 return resultobj;
30080fail:
30081 return NULL;
30082}
30083
30084
70d7cb34 30085SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30086 PyObject *resultobj = 0;
70d7cb34 30087 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30088 wxDouble arg2 ;
30089 wxDouble arg3 ;
30090 wxDouble arg4 ;
30091 wxDouble arg5 ;
30092 wxDouble arg6 ;
70d7cb34
RD
30093 wxColour *arg7 = 0 ;
30094 wxColour *arg8 = 0 ;
30095 wxGraphicsBrush result;
72ef6efb
RD
30096 void *argp1 = 0 ;
30097 int res1 = 0 ;
30098 double val2 ;
30099 int ecode2 = 0 ;
30100 double val3 ;
30101 int ecode3 = 0 ;
30102 double val4 ;
30103 int ecode4 = 0 ;
30104 double val5 ;
30105 int ecode5 = 0 ;
30106 double val6 ;
30107 int ecode6 = 0 ;
70d7cb34
RD
30108 wxColour temp7 ;
30109 wxColour temp8 ;
72ef6efb
RD
30110 PyObject * obj0 = 0 ;
30111 PyObject * obj1 = 0 ;
30112 PyObject * obj2 = 0 ;
30113 PyObject * obj3 = 0 ;
30114 PyObject * obj4 = 0 ;
30115 PyObject * obj5 = 0 ;
70d7cb34
RD
30116 PyObject * obj6 = 0 ;
30117 PyObject * obj7 = 0 ;
72ef6efb 30118 char * kwnames[] = {
70d7cb34 30119 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30120 };
30121
70d7cb34
RD
30122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30124 if (!SWIG_IsOK(res1)) {
70d7cb34 30125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30126 }
70d7cb34 30127 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30128 ecode2 = SWIG_AsVal_double(obj1, &val2);
30129 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30131 }
30132 arg2 = static_cast< wxDouble >(val2);
30133 ecode3 = SWIG_AsVal_double(obj2, &val3);
30134 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30136 }
30137 arg3 = static_cast< wxDouble >(val3);
30138 ecode4 = SWIG_AsVal_double(obj3, &val4);
30139 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30141 }
30142 arg4 = static_cast< wxDouble >(val4);
30143 ecode5 = SWIG_AsVal_double(obj4, &val5);
30144 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30146 }
30147 arg5 = static_cast< wxDouble >(val5);
30148 ecode6 = SWIG_AsVal_double(obj5, &val6);
30149 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30150 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30151 }
30152 arg6 = static_cast< wxDouble >(val6);
30153 {
70d7cb34
RD
30154 arg7 = &temp7;
30155 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30156 }
30157 {
30158 arg8 = &temp8;
30159 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30160 }
30161 {
30162 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30163 if (PyErr_Occurred()) SWIG_fail;
30164 }
70d7cb34 30165 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30166 return resultobj;
30167fail:
30168 return NULL;
30169}
30170
30171
70d7cb34
RD
30172SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30173 PyObject *resultobj = 0;
30174 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30175 wxFont *arg2 = 0 ;
30176 wxColour const &arg3_defvalue = *wxBLACK ;
30177 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30178 wxGraphicsFont result;
30179 void *argp1 = 0 ;
30180 int res1 = 0 ;
30181 void *argp2 = 0 ;
30182 int res2 = 0 ;
30183 wxColour temp3 ;
30184 PyObject * obj0 = 0 ;
30185 PyObject * obj1 = 0 ;
30186 PyObject * obj2 = 0 ;
30187 char * kwnames[] = {
30188 (char *) "self",(char *) "font",(char *) "col", NULL
30189 };
30190
30191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30193 if (!SWIG_IsOK(res1)) {
30194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30195 }
30196 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30198 if (!SWIG_IsOK(res2)) {
30199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30200 }
30201 if (!argp2) {
30202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30203 }
30204 arg2 = reinterpret_cast< wxFont * >(argp2);
30205 if (obj2) {
30206 {
30207 arg3 = &temp3;
30208 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30209 }
30210 }
30211 {
30212 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30213 if (PyErr_Occurred()) SWIG_fail;
30214 }
30215 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30216 return resultobj;
30217fail:
30218 return NULL;
30219}
30220
30221
30222SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30223 PyObject *obj;
30224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30225 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30226 return SWIG_Py_Void();
30227}
30228
30229SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30230 PyObject *resultobj = 0;
30231 wxWindowDC *arg1 = 0 ;
30232 wxGCDC *result = 0 ;
30233 void *argp1 = 0 ;
30234 int res1 = 0 ;
30235 PyObject * obj0 = 0 ;
30236 char * kwnames[] = {
30237 (char *) "dc", NULL
30238 };
30239
30240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30241 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30242 if (!SWIG_IsOK(res1)) {
30243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30244 }
30245 if (!argp1) {
30246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30247 }
30248 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30249 {
30250 if (!wxPyCheckForApp()) SWIG_fail;
30251 PyThreadState* __tstate = wxPyBeginAllowThreads();
30252 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30253 wxPyEndAllowThreads(__tstate);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 }
30256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30257 return resultobj;
30258fail:
30259 return NULL;
30260}
30261
30262
30263SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30264 PyObject *resultobj = 0;
30265 wxGCDC *arg1 = (wxGCDC *) 0 ;
30266 void *argp1 = 0 ;
30267 int res1 = 0 ;
30268 PyObject *swig_obj[1] ;
30269
30270 if (!args) SWIG_fail;
30271 swig_obj[0] = args;
30272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30273 if (!SWIG_IsOK(res1)) {
30274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30275 }
30276 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30277 {
72ef6efb
RD
30278 delete arg1;
30279
72ef6efb
RD
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
30282 resultobj = SWIG_Py_Void();
30283 return resultobj;
30284fail:
30285 return NULL;
30286}
30287
30288
0a27f394 30289SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30290 PyObject *resultobj = 0;
30291 wxGCDC *arg1 = (wxGCDC *) 0 ;
30292 wxGraphicsContext *result = 0 ;
30293 void *argp1 = 0 ;
30294 int res1 = 0 ;
30295 PyObject *swig_obj[1] ;
30296
30297 if (!args) SWIG_fail;
30298 swig_obj[0] = args;
30299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30300 if (!SWIG_IsOK(res1)) {
0a27f394 30301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30302 }
30303 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30304 {
0a27f394 30305 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30306 if (PyErr_Occurred()) SWIG_fail;
30307 }
30308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30309 return resultobj;
30310fail:
30311 return NULL;
30312}
30313
30314
0a27f394
RD
30315SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30316 PyObject *resultobj = 0;
30317 wxGCDC *arg1 = (wxGCDC *) 0 ;
30318 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30319 void *argp1 = 0 ;
30320 int res1 = 0 ;
30321 void *argp2 = 0 ;
30322 int res2 = 0 ;
30323 PyObject * obj0 = 0 ;
30324 PyObject * obj1 = 0 ;
30325 char * kwnames[] = {
30326 (char *) "self",(char *) "ctx", NULL
30327 };
30328
30329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30331 if (!SWIG_IsOK(res1)) {
30332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30333 }
30334 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30335 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30336 if (!SWIG_IsOK(res2)) {
30337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30338 }
30339 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30340 {
30341 (arg1)->SetGraphicsContext(arg2);
30342 if (PyErr_Occurred()) SWIG_fail;
30343 }
30344 resultobj = SWIG_Py_Void();
30345 return resultobj;
30346fail:
30347 return NULL;
30348}
30349
30350
72ef6efb
RD
30351SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30352 PyObject *obj;
30353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30354 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30355 return SWIG_Py_Void();
30356}
30357
30358SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30359 return SWIG_Python_InitShadowInstance(args);
30360}
30361
b39fe951
RD
30362SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30363 PyObject *resultobj = 0;
30364 wxOverlay *result = 0 ;
30365
30366 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30367 {
30368 PyThreadState* __tstate = wxPyBeginAllowThreads();
30369 result = (wxOverlay *)new wxOverlay();
30370 wxPyEndAllowThreads(__tstate);
30371 if (PyErr_Occurred()) SWIG_fail;
30372 }
30373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30374 return resultobj;
30375fail:
30376 return NULL;
30377}
30378
30379
30380SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30381 PyObject *resultobj = 0;
30382 wxOverlay *arg1 = (wxOverlay *) 0 ;
30383 void *argp1 = 0 ;
30384 int res1 = 0 ;
30385 PyObject *swig_obj[1] ;
30386
30387 if (!args) SWIG_fail;
30388 swig_obj[0] = args;
30389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30390 if (!SWIG_IsOK(res1)) {
30391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30392 }
30393 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30394 {
30395 PyThreadState* __tstate = wxPyBeginAllowThreads();
30396 delete arg1;
30397
30398 wxPyEndAllowThreads(__tstate);
30399 if (PyErr_Occurred()) SWIG_fail;
30400 }
30401 resultobj = SWIG_Py_Void();
30402 return resultobj;
30403fail:
30404 return NULL;
30405}
30406
30407
30408SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30409 PyObject *resultobj = 0;
30410 wxOverlay *arg1 = (wxOverlay *) 0 ;
30411 void *argp1 = 0 ;
30412 int res1 = 0 ;
30413 PyObject *swig_obj[1] ;
30414
30415 if (!args) SWIG_fail;
30416 swig_obj[0] = args;
30417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30418 if (!SWIG_IsOK(res1)) {
30419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30420 }
30421 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30422 {
30423 PyThreadState* __tstate = wxPyBeginAllowThreads();
30424 (arg1)->Reset();
30425 wxPyEndAllowThreads(__tstate);
30426 if (PyErr_Occurred()) SWIG_fail;
30427 }
30428 resultobj = SWIG_Py_Void();
30429 return resultobj;
30430fail:
30431 return NULL;
30432}
30433
30434
30435SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30436 PyObject *obj;
30437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30438 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30439 return SWIG_Py_Void();
30440}
30441
30442SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30443 return SWIG_Python_InitShadowInstance(args);
30444}
30445
30446SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30447 PyObject *resultobj = 0;
30448 wxOverlay *arg1 = 0 ;
30449 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30450 int arg3 ;
30451 int arg4 ;
30452 int arg5 ;
30453 int arg6 ;
30454 wxDCOverlay *result = 0 ;
30455 void *argp1 = 0 ;
30456 int res1 = 0 ;
30457 void *argp2 = 0 ;
30458 int res2 = 0 ;
30459 int val3 ;
30460 int ecode3 = 0 ;
30461 int val4 ;
30462 int ecode4 = 0 ;
30463 int val5 ;
30464 int ecode5 = 0 ;
30465 int val6 ;
30466 int ecode6 = 0 ;
30467
30468 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30470 if (!SWIG_IsOK(res1)) {
30471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30472 }
30473 if (!argp1) {
30474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30475 }
30476 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30477 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30478 if (!SWIG_IsOK(res2)) {
30479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30480 }
30481 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30482 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30483 if (!SWIG_IsOK(ecode3)) {
30484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30485 }
30486 arg3 = static_cast< int >(val3);
30487 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30488 if (!SWIG_IsOK(ecode4)) {
30489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30490 }
30491 arg4 = static_cast< int >(val4);
30492 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30493 if (!SWIG_IsOK(ecode5)) {
30494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30495 }
30496 arg5 = static_cast< int >(val5);
30497 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30498 if (!SWIG_IsOK(ecode6)) {
30499 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30500 }
30501 arg6 = static_cast< int >(val6);
30502 {
30503 PyThreadState* __tstate = wxPyBeginAllowThreads();
30504 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30505 wxPyEndAllowThreads(__tstate);
30506 if (PyErr_Occurred()) SWIG_fail;
30507 }
30508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30509 return resultobj;
30510fail:
30511 return NULL;
30512}
30513
30514
30515SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30516 PyObject *resultobj = 0;
30517 wxOverlay *arg1 = 0 ;
30518 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30519 wxDCOverlay *result = 0 ;
30520 void *argp1 = 0 ;
30521 int res1 = 0 ;
30522 void *argp2 = 0 ;
30523 int res2 = 0 ;
30524
30525 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30527 if (!SWIG_IsOK(res1)) {
30528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30529 }
30530 if (!argp1) {
30531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30532 }
30533 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30534 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30535 if (!SWIG_IsOK(res2)) {
30536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30537 }
30538 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30546 return resultobj;
30547fail:
30548 return NULL;
30549}
30550
30551
30552SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30553 int argc;
30554 PyObject *argv[7];
30555
30556 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30557 --argc;
30558 if (argc == 2) {
30559 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30560 }
30561 if (argc == 6) {
30562 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30563 }
30564
30565fail:
30566 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30567 return NULL;
30568}
30569
30570
30571SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30572 PyObject *resultobj = 0;
30573 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30574 void *argp1 = 0 ;
30575 int res1 = 0 ;
30576 PyObject *swig_obj[1] ;
30577
30578 if (!args) SWIG_fail;
30579 swig_obj[0] = args;
30580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30581 if (!SWIG_IsOK(res1)) {
30582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30583 }
30584 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30585 {
30586 PyThreadState* __tstate = wxPyBeginAllowThreads();
30587 delete arg1;
30588
30589 wxPyEndAllowThreads(__tstate);
30590 if (PyErr_Occurred()) SWIG_fail;
30591 }
30592 resultobj = SWIG_Py_Void();
30593 return resultobj;
30594fail:
30595 return NULL;
30596}
30597
30598
30599SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30600 PyObject *resultobj = 0;
30601 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30602 void *argp1 = 0 ;
30603 int res1 = 0 ;
30604 PyObject *swig_obj[1] ;
30605
30606 if (!args) SWIG_fail;
30607 swig_obj[0] = args;
30608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30609 if (!SWIG_IsOK(res1)) {
30610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30611 }
30612 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30613 {
30614 PyThreadState* __tstate = wxPyBeginAllowThreads();
30615 (arg1)->Clear();
30616 wxPyEndAllowThreads(__tstate);
30617 if (PyErr_Occurred()) SWIG_fail;
30618 }
30619 resultobj = SWIG_Py_Void();
30620 return resultobj;
30621fail:
30622 return NULL;
30623}
30624
30625
30626SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30627 PyObject *obj;
30628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30629 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30630 return SWIG_Py_Void();
30631}
30632
30633SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30634 return SWIG_Python_InitShadowInstance(args);
30635}
30636
72ef6efb
RD
30637SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30638 PyObject *resultobj = 0;
30639 int arg1 ;
30640 int arg2 ;
30641 int arg3 = (int) true ;
30642 int arg4 = (int) 1 ;
30643 wxImageList *result = 0 ;
30644 int val1 ;
30645 int ecode1 = 0 ;
30646 int val2 ;
30647 int ecode2 = 0 ;
30648 int val3 ;
30649 int ecode3 = 0 ;
30650 int val4 ;
30651 int ecode4 = 0 ;
30652 PyObject * obj0 = 0 ;
30653 PyObject * obj1 = 0 ;
30654 PyObject * obj2 = 0 ;
30655 PyObject * obj3 = 0 ;
30656 char * kwnames[] = {
30657 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30658 };
30659
30660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30661 ecode1 = SWIG_AsVal_int(obj0, &val1);
30662 if (!SWIG_IsOK(ecode1)) {
30663 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30664 }
30665 arg1 = static_cast< int >(val1);
30666 ecode2 = SWIG_AsVal_int(obj1, &val2);
30667 if (!SWIG_IsOK(ecode2)) {
30668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30669 }
30670 arg2 = static_cast< int >(val2);
30671 if (obj2) {
30672 ecode3 = SWIG_AsVal_int(obj2, &val3);
30673 if (!SWIG_IsOK(ecode3)) {
30674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30675 }
30676 arg3 = static_cast< int >(val3);
30677 }
30678 if (obj3) {
30679 ecode4 = SWIG_AsVal_int(obj3, &val4);
30680 if (!SWIG_IsOK(ecode4)) {
30681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30682 }
30683 arg4 = static_cast< int >(val4);
30684 }
30685 {
30686 if (!wxPyCheckForApp()) SWIG_fail;
30687 PyThreadState* __tstate = wxPyBeginAllowThreads();
30688 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30689 wxPyEndAllowThreads(__tstate);
30690 if (PyErr_Occurred()) SWIG_fail;
30691 }
e02c0a13 30692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30693 return resultobj;
30694fail:
30695 return NULL;
30696}
30697
30698
30699SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30700 PyObject *resultobj = 0;
30701 wxImageList *arg1 = (wxImageList *) 0 ;
30702 void *argp1 = 0 ;
30703 int res1 = 0 ;
30704 PyObject *swig_obj[1] ;
30705
30706 if (!args) SWIG_fail;
30707 swig_obj[0] = args;
30708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30709 if (!SWIG_IsOK(res1)) {
30710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30711 }
30712 arg1 = reinterpret_cast< wxImageList * >(argp1);
30713 {
30714 PyThreadState* __tstate = wxPyBeginAllowThreads();
30715 delete arg1;
30716
30717 wxPyEndAllowThreads(__tstate);
30718 if (PyErr_Occurred()) SWIG_fail;
30719 }
30720 resultobj = SWIG_Py_Void();
30721 return resultobj;
30722fail:
30723 return NULL;
30724}
30725
30726
30727SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30728 PyObject *resultobj = 0;
30729 wxImageList *arg1 = (wxImageList *) 0 ;
30730 wxBitmap *arg2 = 0 ;
30731 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30732 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30733 int result;
30734 void *argp1 = 0 ;
30735 int res1 = 0 ;
30736 void *argp2 = 0 ;
30737 int res2 = 0 ;
30738 void *argp3 = 0 ;
30739 int res3 = 0 ;
30740 PyObject * obj0 = 0 ;
30741 PyObject * obj1 = 0 ;
30742 PyObject * obj2 = 0 ;
30743 char * kwnames[] = {
30744 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30745 };
30746
30747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30749 if (!SWIG_IsOK(res1)) {
30750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30751 }
30752 arg1 = reinterpret_cast< wxImageList * >(argp1);
30753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30754 if (!SWIG_IsOK(res2)) {
30755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30756 }
30757 if (!argp2) {
30758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30759 }
30760 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30761 if (obj2) {
30762 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30763 if (!SWIG_IsOK(res3)) {
30764 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30765 }
30766 if (!argp3) {
30767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30768 }
30769 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30770 }
30771 {
30772 PyThreadState* __tstate = wxPyBeginAllowThreads();
30773 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30774 wxPyEndAllowThreads(__tstate);
30775 if (PyErr_Occurred()) SWIG_fail;
30776 }
30777 resultobj = SWIG_From_int(static_cast< int >(result));
30778 return resultobj;
30779fail:
30780 return NULL;
30781}
30782
30783
30784SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30785 PyObject *resultobj = 0;
30786 wxImageList *arg1 = (wxImageList *) 0 ;
30787 wxBitmap *arg2 = 0 ;
30788 wxColour *arg3 = 0 ;
30789 int result;
30790 void *argp1 = 0 ;
30791 int res1 = 0 ;
30792 void *argp2 = 0 ;
30793 int res2 = 0 ;
30794 wxColour temp3 ;
30795 PyObject * obj0 = 0 ;
30796 PyObject * obj1 = 0 ;
30797 PyObject * obj2 = 0 ;
30798 char * kwnames[] = {
30799 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30800 };
30801
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30806 }
30807 arg1 = reinterpret_cast< wxImageList * >(argp1);
30808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30809 if (!SWIG_IsOK(res2)) {
30810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30811 }
30812 if (!argp2) {
30813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30814 }
30815 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30816 {
30817 arg3 = &temp3;
30818 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30819 }
30820 {
30821 PyThreadState* __tstate = wxPyBeginAllowThreads();
30822 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 resultobj = SWIG_From_int(static_cast< int >(result));
30827 return resultobj;
30828fail:
30829 return NULL;
30830}
30831
30832
30833SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30834 PyObject *resultobj = 0;
30835 wxImageList *arg1 = (wxImageList *) 0 ;
30836 wxIcon *arg2 = 0 ;
30837 int result;
30838 void *argp1 = 0 ;
30839 int res1 = 0 ;
30840 void *argp2 = 0 ;
30841 int res2 = 0 ;
30842 PyObject * obj0 = 0 ;
30843 PyObject * obj1 = 0 ;
30844 char * kwnames[] = {
30845 (char *) "self",(char *) "icon", NULL
30846 };
30847
30848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30850 if (!SWIG_IsOK(res1)) {
30851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30852 }
0085ce49
RD
30853 arg1 = reinterpret_cast< wxImageList * >(argp1);
30854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30855 if (!SWIG_IsOK(res2)) {
30856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30857 }
30858 if (!argp2) {
30859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30860 }
30861 arg2 = reinterpret_cast< wxIcon * >(argp2);
30862 {
30863 PyThreadState* __tstate = wxPyBeginAllowThreads();
30864 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30865 wxPyEndAllowThreads(__tstate);
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
30868 resultobj = SWIG_From_int(static_cast< int >(result));
30869 return resultobj;
30870fail:
30871 return NULL;
30872}
30873
30874
30875SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30876 PyObject *resultobj = 0;
30877 wxImageList *arg1 = (wxImageList *) 0 ;
30878 int arg2 ;
30879 SwigValueWrapper<wxBitmap > result;
30880 void *argp1 = 0 ;
30881 int res1 = 0 ;
30882 int val2 ;
30883 int ecode2 = 0 ;
30884 PyObject * obj0 = 0 ;
30885 PyObject * obj1 = 0 ;
30886 char * kwnames[] = {
30887 (char *) "self",(char *) "index", NULL
30888 };
30889
30890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
30891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30892 if (!SWIG_IsOK(res1)) {
30893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
30894 }
30895 arg1 = reinterpret_cast< wxImageList * >(argp1);
30896 ecode2 = SWIG_AsVal_int(obj1, &val2);
30897 if (!SWIG_IsOK(ecode2)) {
30898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
30899 }
30900 arg2 = static_cast< int >(val2);
30901 {
30902 PyThreadState* __tstate = wxPyBeginAllowThreads();
30903 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
30904 wxPyEndAllowThreads(__tstate);
30905 if (PyErr_Occurred()) SWIG_fail;
30906 }
30907 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
30908 return resultobj;
30909fail:
30910 return NULL;
30911}
30912
30913
30914SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30915 PyObject *resultobj = 0;
30916 wxImageList *arg1 = (wxImageList *) 0 ;
30917 int arg2 ;
30918 wxIcon result;
30919 void *argp1 = 0 ;
30920 int res1 = 0 ;
30921 int val2 ;
30922 int ecode2 = 0 ;
30923 PyObject * obj0 = 0 ;
30924 PyObject * obj1 = 0 ;
30925 char * kwnames[] = {
30926 (char *) "self",(char *) "index", NULL
30927 };
30928
30929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
30933 }
30934 arg1 = reinterpret_cast< wxImageList * >(argp1);
30935 ecode2 = SWIG_AsVal_int(obj1, &val2);
30936 if (!SWIG_IsOK(ecode2)) {
30937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
30938 }
30939 arg2 = static_cast< int >(val2);
30940 {
30941 PyThreadState* __tstate = wxPyBeginAllowThreads();
30942 result = ((wxImageList const *)arg1)->GetIcon(arg2);
30943 wxPyEndAllowThreads(__tstate);
30944 if (PyErr_Occurred()) SWIG_fail;
30945 }
30946 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
30947 return resultobj;
30948fail:
30949 return NULL;
30950}
30951
30952
30953SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30954 PyObject *resultobj = 0;
30955 wxImageList *arg1 = (wxImageList *) 0 ;
30956 int arg2 ;
30957 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
30958 wxBitmap const &arg4_defvalue = wxNullBitmap ;
30959 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
30960 bool result;
30961 void *argp1 = 0 ;
30962 int res1 = 0 ;
30963 int val2 ;
30964 int ecode2 = 0 ;
30965 void *argp3 = 0 ;
30966 int res3 = 0 ;
01f6b6d3
RD
30967 void *argp4 = 0 ;
30968 int res4 = 0 ;
0085ce49
RD
30969 PyObject * obj0 = 0 ;
30970 PyObject * obj1 = 0 ;
30971 PyObject * obj2 = 0 ;
01f6b6d3 30972 PyObject * obj3 = 0 ;
0085ce49 30973 char * kwnames[] = {
01f6b6d3 30974 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
30975 };
30976
01f6b6d3 30977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
30978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30979 if (!SWIG_IsOK(res1)) {
30980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
30981 }
30982 arg1 = reinterpret_cast< wxImageList * >(argp1);
30983 ecode2 = SWIG_AsVal_int(obj1, &val2);
30984 if (!SWIG_IsOK(ecode2)) {
30985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
30986 }
30987 arg2 = static_cast< int >(val2);
30988 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30989 if (!SWIG_IsOK(res3)) {
30990 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30991 }
30992 if (!argp3) {
30993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30994 }
30995 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
30996 if (obj3) {
30997 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
30998 if (!SWIG_IsOK(res4)) {
30999 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31000 }
31001 if (!argp4) {
31002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31003 }
31004 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31005 }
0085ce49
RD
31006 {
31007 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 31008 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
31009 wxPyEndAllowThreads(__tstate);
31010 if (PyErr_Occurred()) SWIG_fail;
31011 }
31012 {
31013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31014 }
31015 return resultobj;
31016fail:
31017 return NULL;
31018}
31019
31020
31021SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31022 PyObject *resultobj = 0;
31023 wxImageList *arg1 = (wxImageList *) 0 ;
31024 int arg2 ;
31025 wxDC *arg3 = 0 ;
31026 int arg4 ;
31027 int arg5 ;
31028 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31029 bool arg7 = (bool) (bool)false ;
31030 bool result;
31031 void *argp1 = 0 ;
31032 int res1 = 0 ;
31033 int val2 ;
31034 int ecode2 = 0 ;
31035 void *argp3 = 0 ;
31036 int res3 = 0 ;
31037 int val4 ;
31038 int ecode4 = 0 ;
31039 int val5 ;
31040 int ecode5 = 0 ;
31041 int val6 ;
31042 int ecode6 = 0 ;
31043 bool val7 ;
31044 int ecode7 = 0 ;
31045 PyObject * obj0 = 0 ;
31046 PyObject * obj1 = 0 ;
31047 PyObject * obj2 = 0 ;
31048 PyObject * obj3 = 0 ;
31049 PyObject * obj4 = 0 ;
31050 PyObject * obj5 = 0 ;
31051 PyObject * obj6 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31060 }
31061 arg1 = reinterpret_cast< wxImageList * >(argp1);
31062 ecode2 = SWIG_AsVal_int(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31065 }
31066 arg2 = static_cast< int >(val2);
31067 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31068 if (!SWIG_IsOK(res3)) {
31069 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31070 }
31071 if (!argp3) {
31072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31073 }
31074 arg3 = reinterpret_cast< wxDC * >(argp3);
31075 ecode4 = SWIG_AsVal_int(obj3, &val4);
31076 if (!SWIG_IsOK(ecode4)) {
31077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31078 }
31079 arg4 = static_cast< int >(val4);
31080 ecode5 = SWIG_AsVal_int(obj4, &val5);
31081 if (!SWIG_IsOK(ecode5)) {
31082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31083 }
31084 arg5 = static_cast< int >(val5);
31085 if (obj5) {
31086 ecode6 = SWIG_AsVal_int(obj5, &val6);
31087 if (!SWIG_IsOK(ecode6)) {
31088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31089 }
31090 arg6 = static_cast< int >(val6);
31091 }
31092 if (obj6) {
31093 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31094 if (!SWIG_IsOK(ecode7)) {
31095 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31096 }
31097 arg7 = static_cast< bool >(val7);
31098 }
31099 {
31100 PyThreadState* __tstate = wxPyBeginAllowThreads();
31101 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31102 wxPyEndAllowThreads(__tstate);
31103 if (PyErr_Occurred()) SWIG_fail;
31104 }
31105 {
31106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31107 }
31108 return resultobj;
31109fail:
31110 return NULL;
31111}
31112
31113
31114SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31115 PyObject *resultobj = 0;
31116 wxImageList *arg1 = (wxImageList *) 0 ;
31117 int result;
31118 void *argp1 = 0 ;
31119 int res1 = 0 ;
31120 PyObject *swig_obj[1] ;
31121
31122 if (!args) SWIG_fail;
31123 swig_obj[0] = args;
31124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31125 if (!SWIG_IsOK(res1)) {
31126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31127 }
31128 arg1 = reinterpret_cast< wxImageList * >(argp1);
31129 {
31130 PyThreadState* __tstate = wxPyBeginAllowThreads();
31131 result = (int)(arg1)->GetImageCount();
31132 wxPyEndAllowThreads(__tstate);
31133 if (PyErr_Occurred()) SWIG_fail;
31134 }
31135 resultobj = SWIG_From_int(static_cast< int >(result));
31136 return resultobj;
31137fail:
31138 return NULL;
31139}
31140
31141
31142SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31143 PyObject *resultobj = 0;
31144 wxImageList *arg1 = (wxImageList *) 0 ;
31145 int arg2 ;
31146 bool result;
31147 void *argp1 = 0 ;
31148 int res1 = 0 ;
31149 int val2 ;
31150 int ecode2 = 0 ;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 char * kwnames[] = {
31154 (char *) "self",(char *) "index", NULL
31155 };
31156
31157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31159 if (!SWIG_IsOK(res1)) {
31160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31161 }
31162 arg1 = reinterpret_cast< wxImageList * >(argp1);
31163 ecode2 = SWIG_AsVal_int(obj1, &val2);
31164 if (!SWIG_IsOK(ecode2)) {
31165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31166 }
31167 arg2 = static_cast< int >(val2);
31168 {
31169 PyThreadState* __tstate = wxPyBeginAllowThreads();
31170 result = (bool)(arg1)->Remove(arg2);
31171 wxPyEndAllowThreads(__tstate);
31172 if (PyErr_Occurred()) SWIG_fail;
31173 }
31174 {
31175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31176 }
31177 return resultobj;
31178fail:
31179 return NULL;
31180}
31181
31182
31183SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31184 PyObject *resultobj = 0;
31185 wxImageList *arg1 = (wxImageList *) 0 ;
31186 bool result;
31187 void *argp1 = 0 ;
31188 int res1 = 0 ;
31189 PyObject *swig_obj[1] ;
31190
31191 if (!args) SWIG_fail;
31192 swig_obj[0] = args;
31193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31196 }
31197 arg1 = reinterpret_cast< wxImageList * >(argp1);
31198 {
31199 PyThreadState* __tstate = wxPyBeginAllowThreads();
31200 result = (bool)(arg1)->RemoveAll();
31201 wxPyEndAllowThreads(__tstate);
31202 if (PyErr_Occurred()) SWIG_fail;
31203 }
31204 {
31205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31206 }
31207 return resultobj;
31208fail:
31209 return NULL;
31210}
31211
31212
31213SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31214 PyObject *resultobj = 0;
31215 wxImageList *arg1 = (wxImageList *) 0 ;
31216 int arg2 ;
31217 int *arg3 = 0 ;
31218 int *arg4 = 0 ;
31219 void *argp1 = 0 ;
31220 int res1 = 0 ;
31221 int val2 ;
31222 int ecode2 = 0 ;
31223 int temp3 ;
31224 int res3 = SWIG_TMPOBJ ;
31225 int temp4 ;
31226 int res4 = SWIG_TMPOBJ ;
31227 PyObject * obj0 = 0 ;
31228 PyObject * obj1 = 0 ;
31229 char * kwnames[] = {
31230 (char *) "self",(char *) "index", NULL
31231 };
31232
31233 arg3 = &temp3;
31234 arg4 = &temp4;
31235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31237 if (!SWIG_IsOK(res1)) {
31238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31239 }
31240 arg1 = reinterpret_cast< wxImageList * >(argp1);
31241 ecode2 = SWIG_AsVal_int(obj1, &val2);
31242 if (!SWIG_IsOK(ecode2)) {
31243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31244 }
31245 arg2 = static_cast< int >(val2);
31246 {
31247 PyThreadState* __tstate = wxPyBeginAllowThreads();
31248 (arg1)->GetSize(arg2,*arg3,*arg4);
31249 wxPyEndAllowThreads(__tstate);
31250 if (PyErr_Occurred()) SWIG_fail;
31251 }
31252 resultobj = SWIG_Py_Void();
31253 if (SWIG_IsTmpObj(res3)) {
31254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31255 } else {
31256 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31258 }
31259 if (SWIG_IsTmpObj(res4)) {
31260 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31261 } else {
31262 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31263 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31264 }
31265 return resultobj;
31266fail:
31267 return NULL;
31268}
31269
31270
31271SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31272 PyObject *obj;
31273 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31274 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31275 return SWIG_Py_Void();
31276}
31277
31278SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31279 return SWIG_Python_InitShadowInstance(args);
31280}
31281
50efceee
RD
31282SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31283 PyObject *resultobj = 0;
31284 wxStockGDI *result = 0 ;
0085ce49 31285
50efceee
RD
31286 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31287 {
31288 PyThreadState* __tstate = wxPyBeginAllowThreads();
31289 result = (wxStockGDI *)new wxStockGDI();
31290 wxPyEndAllowThreads(__tstate);
31291 if (PyErr_Occurred()) SWIG_fail;
31292 }
31293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31294 return resultobj;
31295fail:
31296 return NULL;
0085ce49
RD
31297}
31298
31299
50efceee
RD
31300SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31301 PyObject *resultobj = 0;
31302 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31303 void *argp1 = 0 ;
31304 int res1 = 0 ;
31305 PyObject *swig_obj[1] ;
0085ce49 31306
50efceee
RD
31307 if (!args) SWIG_fail;
31308 swig_obj[0] = args;
31309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31310 if (!SWIG_IsOK(res1)) {
31311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31312 }
31313 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31314 {
31315 PyThreadState* __tstate = wxPyBeginAllowThreads();
31316 delete arg1;
31317
31318 wxPyEndAllowThreads(__tstate);
31319 if (PyErr_Occurred()) SWIG_fail;
31320 }
31321 resultobj = SWIG_Py_Void();
31322 return resultobj;
31323fail:
31324 return NULL;
0085ce49
RD
31325}
31326
31327
50efceee
RD
31328SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31329 PyObject *resultobj = 0;
0085ce49 31330
50efceee
RD
31331 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31332 {
31333 PyThreadState* __tstate = wxPyBeginAllowThreads();
31334 wxStockGDI::DeleteAll();
31335 wxPyEndAllowThreads(__tstate);
31336 if (PyErr_Occurred()) SWIG_fail;
31337 }
31338 resultobj = SWIG_Py_Void();
31339 return resultobj;
31340fail:
31341 return NULL;
0085ce49
RD
31342}
31343
31344
50efceee
RD
31345SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31346 PyObject *resultobj = 0;
31347 wxStockGDI *result = 0 ;
0085ce49 31348
50efceee
RD
31349 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31350 {
31351 PyThreadState* __tstate = wxPyBeginAllowThreads();
31352 {
31353 wxStockGDI &_result_ref = wxStockGDI::instance();
31354 result = (wxStockGDI *) &_result_ref;
31355 }
31356 wxPyEndAllowThreads(__tstate);
31357 if (PyErr_Occurred()) SWIG_fail;
31358 }
31359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31360 return resultobj;
31361fail:
31362 return NULL;
0085ce49
RD
31363}
31364
31365
50efceee
RD
31366SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31367 PyObject *resultobj = 0;
31368 wxStockGDI::Item arg1 ;
31369 wxBrush *result = 0 ;
31370 int val1 ;
31371 int ecode1 = 0 ;
31372 PyObject * obj0 = 0 ;
31373 char * kwnames[] = {
31374 (char *) "item", NULL
31375 };
31376
31377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31378 ecode1 = SWIG_AsVal_int(obj0, &val1);
31379 if (!SWIG_IsOK(ecode1)) {
31380 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31381 }
31382 arg1 = static_cast< wxStockGDI::Item >(val1);
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31390 return resultobj;
31391fail:
31392 return NULL;
0085ce49
RD
31393}
31394
31395
50efceee
RD
31396SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31397 PyObject *resultobj = 0;
31398 wxStockGDI::Item arg1 ;
31399 wxColour *result = 0 ;
31400 int val1 ;
31401 int ecode1 = 0 ;
31402 PyObject * obj0 = 0 ;
31403 char * kwnames[] = {
31404 (char *) "item", NULL
31405 };
0085ce49 31406
50efceee
RD
31407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31408 ecode1 = SWIG_AsVal_int(obj0, &val1);
31409 if (!SWIG_IsOK(ecode1)) {
31410 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31411 }
31412 arg1 = static_cast< wxStockGDI::Item >(val1);
31413 {
31414 PyThreadState* __tstate = wxPyBeginAllowThreads();
31415 result = (wxColour *)wxStockGDI::GetColour(arg1);
31416 wxPyEndAllowThreads(__tstate);
31417 if (PyErr_Occurred()) SWIG_fail;
31418 }
31419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31420 return resultobj;
31421fail:
31422 return NULL;
0085ce49
RD
31423}
31424
31425
50efceee
RD
31426SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31427 PyObject *resultobj = 0;
31428 wxStockGDI::Item arg1 ;
31429 wxCursor *result = 0 ;
31430 int val1 ;
31431 int ecode1 = 0 ;
31432 PyObject * obj0 = 0 ;
31433 char * kwnames[] = {
31434 (char *) "item", NULL
31435 };
31436
31437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31438 ecode1 = SWIG_AsVal_int(obj0, &val1);
31439 if (!SWIG_IsOK(ecode1)) {
31440 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31441 }
31442 arg1 = static_cast< wxStockGDI::Item >(val1);
31443 {
31444 PyThreadState* __tstate = wxPyBeginAllowThreads();
31445 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31446 wxPyEndAllowThreads(__tstate);
31447 if (PyErr_Occurred()) SWIG_fail;
31448 }
31449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31450 return resultobj;
31451fail:
31452 return NULL;
0085ce49
RD
31453}
31454
31455
50efceee
RD
31456SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31457 PyObject *resultobj = 0;
31458 wxStockGDI::Item arg1 ;
31459 wxPen *result = 0 ;
31460 int val1 ;
31461 int ecode1 = 0 ;
31462 PyObject * obj0 = 0 ;
31463 char * kwnames[] = {
31464 (char *) "item", NULL
31465 };
31466
31467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31468 ecode1 = SWIG_AsVal_int(obj0, &val1);
31469 if (!SWIG_IsOK(ecode1)) {
31470 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31471 }
31472 arg1 = static_cast< wxStockGDI::Item >(val1);
31473 {
31474 PyThreadState* __tstate = wxPyBeginAllowThreads();
31475 result = (wxPen *)wxStockGDI::GetPen(arg1);
31476 wxPyEndAllowThreads(__tstate);
31477 if (PyErr_Occurred()) SWIG_fail;
31478 }
31479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31480 return resultobj;
31481fail:
31482 return NULL;
0085ce49
RD
31483}
31484
31485
50efceee
RD
31486SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31487 PyObject *resultobj = 0;
31488 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31489 wxStockGDI::Item arg2 ;
31490 wxFont *result = 0 ;
31491 void *argp1 = 0 ;
31492 int res1 = 0 ;
31493 int val2 ;
31494 int ecode2 = 0 ;
31495 PyObject * obj0 = 0 ;
31496 PyObject * obj1 = 0 ;
31497 char * kwnames[] = {
31498 (char *) "self",(char *) "item", NULL
31499 };
0085ce49 31500
50efceee
RD
31501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31503 if (!SWIG_IsOK(res1)) {
31504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31505 }
31506 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31507 ecode2 = SWIG_AsVal_int(obj1, &val2);
31508 if (!SWIG_IsOK(ecode2)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31510 }
31511 arg2 = static_cast< wxStockGDI::Item >(val2);
31512 {
31513 PyThreadState* __tstate = wxPyBeginAllowThreads();
31514 result = (wxFont *)(arg1)->GetFont(arg2);
31515 wxPyEndAllowThreads(__tstate);
31516 if (PyErr_Occurred()) SWIG_fail;
31517 }
31518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31519 return resultobj;
31520fail:
31521 return NULL;
0085ce49
RD
31522}
31523
31524
50efceee
RD
31525SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31526 PyObject *obj;
31527 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31528 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31529 return SWIG_Py_Void();
0085ce49
RD
31530}
31531
50efceee
RD
31532SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31533 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
31534}
31535
0085ce49
RD
31536SWIGINTERN int NullBitmap_set(PyObject *) {
31537 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31538 return 1;
31539}
31540
31541
31542SWIGINTERN PyObject *NullBitmap_get(void) {
31543 PyObject *pyobj = 0;
31544
31545 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31546 return pyobj;
31547}
31548
31549
31550SWIGINTERN int NullIcon_set(PyObject *) {
31551 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31552 return 1;
31553}
31554
31555
31556SWIGINTERN PyObject *NullIcon_get(void) {
31557 PyObject *pyobj = 0;
31558
31559 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31560 return pyobj;
31561}
31562
31563
31564SWIGINTERN int NullCursor_set(PyObject *) {
31565 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31566 return 1;
31567}
31568
31569
31570SWIGINTERN PyObject *NullCursor_get(void) {
31571 PyObject *pyobj = 0;
31572
31573 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31574 return pyobj;
31575}
31576
31577
31578SWIGINTERN int NullPen_set(PyObject *) {
31579 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31580 return 1;
31581}
31582
31583
31584SWIGINTERN PyObject *NullPen_get(void) {
31585 PyObject *pyobj = 0;
31586
31587 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31588 return pyobj;
31589}
31590
31591
31592SWIGINTERN int NullBrush_set(PyObject *) {
31593 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31594 return 1;
31595}
31596
31597
31598SWIGINTERN PyObject *NullBrush_get(void) {
31599 PyObject *pyobj = 0;
31600
31601 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31602 return pyobj;
31603}
31604
31605
31606SWIGINTERN int NullPalette_set(PyObject *) {
31607 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31608 return 1;
31609}
31610
31611
31612SWIGINTERN PyObject *NullPalette_get(void) {
31613 PyObject *pyobj = 0;
31614
31615 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31616 return pyobj;
31617}
31618
31619
31620SWIGINTERN int NullFont_set(PyObject *) {
31621 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31622 return 1;
31623}
31624
31625
31626SWIGINTERN PyObject *NullFont_get(void) {
31627 PyObject *pyobj = 0;
31628
31629 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31630 return pyobj;
31631}
31632
31633
31634SWIGINTERN int NullColour_set(PyObject *) {
31635 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31636 return 1;
31637}
31638
31639
31640SWIGINTERN PyObject *NullColour_get(void) {
31641 PyObject *pyobj = 0;
31642
31643 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31644 return pyobj;
31645}
31646
31647
50efceee 31648SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 31649 PyObject *resultobj = 0;
50efceee
RD
31650 wxGDIObjListBase *result = 0 ;
31651
31652 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31653 {
31654 PyThreadState* __tstate = wxPyBeginAllowThreads();
31655 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31656 wxPyEndAllowThreads(__tstate);
31657 if (PyErr_Occurred()) SWIG_fail;
31658 }
31659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31660 return resultobj;
31661fail:
31662 return NULL;
31663}
31664
31665
31666SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31667 PyObject *resultobj = 0;
31668 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
31669 void *argp1 = 0 ;
31670 int res1 = 0 ;
50efceee 31671 PyObject *swig_obj[1] ;
0085ce49 31672
50efceee
RD
31673 if (!args) SWIG_fail;
31674 swig_obj[0] = args;
31675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 31676 if (!SWIG_IsOK(res1)) {
50efceee 31677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 31678 }
50efceee 31679 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
31680 {
31681 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
31682 delete arg1;
31683
0085ce49
RD
31684 wxPyEndAllowThreads(__tstate);
31685 if (PyErr_Occurred()) SWIG_fail;
31686 }
31687 resultobj = SWIG_Py_Void();
31688 return resultobj;
31689fail:
31690 return NULL;
31691}
31692
31693
50efceee
RD
31694SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31695 PyObject *obj;
31696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31697 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31698 return SWIG_Py_Void();
31699}
31700
31701SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31702 return SWIG_Python_InitShadowInstance(args);
31703}
31704
0085ce49
RD
31705SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31706 PyObject *resultobj = 0;
31707 wxPenList *arg1 = (wxPenList *) 0 ;
31708 wxColour *arg2 = 0 ;
31709 int arg3 ;
31710 int arg4 ;
31711 wxPen *result = 0 ;
31712 void *argp1 = 0 ;
31713 int res1 = 0 ;
31714 wxColour temp2 ;
31715 int val3 ;
31716 int ecode3 = 0 ;
31717 int val4 ;
31718 int ecode4 = 0 ;
31719 PyObject * obj0 = 0 ;
31720 PyObject * obj1 = 0 ;
31721 PyObject * obj2 = 0 ;
31722 PyObject * obj3 = 0 ;
31723 char * kwnames[] = {
31724 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31725 };
31726
31727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31729 if (!SWIG_IsOK(res1)) {
31730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31731 }
31732 arg1 = reinterpret_cast< wxPenList * >(argp1);
31733 {
31734 arg2 = &temp2;
31735 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31736 }
31737 ecode3 = SWIG_AsVal_int(obj2, &val3);
31738 if (!SWIG_IsOK(ecode3)) {
31739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31740 }
31741 arg3 = static_cast< int >(val3);
31742 ecode4 = SWIG_AsVal_int(obj3, &val4);
31743 if (!SWIG_IsOK(ecode4)) {
31744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31745 }
31746 arg4 = static_cast< int >(val4);
31747 {
31748 PyThreadState* __tstate = wxPyBeginAllowThreads();
31749 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31750 wxPyEndAllowThreads(__tstate);
31751 if (PyErr_Occurred()) SWIG_fail;
31752 }
31753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31754 return resultobj;
31755fail:
31756 return NULL;
31757}
31758
31759
50efceee 31760SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31761 PyObject *resultobj = 0;
31762 wxPenList *arg1 = (wxPenList *) 0 ;
31763 wxPen *arg2 = (wxPen *) 0 ;
31764 void *argp1 = 0 ;
31765 int res1 = 0 ;
31766 void *argp2 = 0 ;
31767 int res2 = 0 ;
31768 PyObject * obj0 = 0 ;
31769 PyObject * obj1 = 0 ;
31770 char * kwnames[] = {
31771 (char *) "self",(char *) "pen", NULL
31772 };
31773
50efceee 31774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
31775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31776 if (!SWIG_IsOK(res1)) {
50efceee 31777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31778 }
31779 arg1 = reinterpret_cast< wxPenList * >(argp1);
31780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31781 if (!SWIG_IsOK(res2)) {
50efceee 31782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
31783 }
31784 arg2 = reinterpret_cast< wxPen * >(argp2);
31785 {
31786 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31787 (arg1)->AddPen(arg2);
0085ce49
RD
31788 wxPyEndAllowThreads(__tstate);
31789 if (PyErr_Occurred()) SWIG_fail;
31790 }
31791 resultobj = SWIG_Py_Void();
31792 return resultobj;
31793fail:
31794 return NULL;
31795}
31796
31797
50efceee 31798SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31799 PyObject *resultobj = 0;
31800 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 31801 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
31802 void *argp1 = 0 ;
31803 int res1 = 0 ;
50efceee
RD
31804 void *argp2 = 0 ;
31805 int res2 = 0 ;
31806 PyObject * obj0 = 0 ;
31807 PyObject * obj1 = 0 ;
31808 char * kwnames[] = {
31809 (char *) "self",(char *) "pen", NULL
31810 };
0085ce49 31811
50efceee
RD
31812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 31814 if (!SWIG_IsOK(res1)) {
50efceee 31815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31816 }
31817 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
31818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31819 if (!SWIG_IsOK(res2)) {
31820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31821 }
31822 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
31823 {
31824 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31825 (arg1)->RemovePen(arg2);
0085ce49
RD
31826 wxPyEndAllowThreads(__tstate);
31827 if (PyErr_Occurred()) SWIG_fail;
31828 }
50efceee 31829 resultobj = SWIG_Py_Void();
0085ce49
RD
31830 return resultobj;
31831fail:
31832 return NULL;
31833}
31834
31835
31836SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31837 PyObject *obj;
31838 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31839 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31840 return SWIG_Py_Void();
31841}
31842
50efceee
RD
31843SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31844 PyObject *resultobj = 0;
31845 wxBrushList *arg1 = (wxBrushList *) 0 ;
31846 wxColour *arg2 = 0 ;
31847 int arg3 = (int) wxSOLID ;
31848 wxBrush *result = 0 ;
31849 void *argp1 = 0 ;
31850 int res1 = 0 ;
31851 wxColour temp2 ;
31852 int val3 ;
31853 int ecode3 = 0 ;
31854 PyObject * obj0 = 0 ;
31855 PyObject * obj1 = 0 ;
31856 PyObject * obj2 = 0 ;
31857 char * kwnames[] = {
31858 (char *) "self",(char *) "colour",(char *) "style", NULL
31859 };
31860
31861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31863 if (!SWIG_IsOK(res1)) {
31864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31865 }
31866 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31867 {
31868 arg2 = &temp2;
31869 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31870 }
31871 if (obj2) {
31872 ecode3 = SWIG_AsVal_int(obj2, &val3);
31873 if (!SWIG_IsOK(ecode3)) {
31874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31875 }
31876 arg3 = static_cast< int >(val3);
31877 }
31878 {
31879 PyThreadState* __tstate = wxPyBeginAllowThreads();
31880 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31881 wxPyEndAllowThreads(__tstate);
31882 if (PyErr_Occurred()) SWIG_fail;
31883 }
31884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31885 return resultobj;
31886fail:
31887 return NULL;
31888}
31889
31890
0085ce49
RD
31891SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31892 PyObject *resultobj = 0;
31893 wxBrushList *arg1 = (wxBrushList *) 0 ;
31894 wxBrush *arg2 = (wxBrush *) 0 ;
31895 void *argp1 = 0 ;
31896 int res1 = 0 ;
31897 void *argp2 = 0 ;
31898 int res2 = 0 ;
31899 PyObject * obj0 = 0 ;
31900 PyObject * obj1 = 0 ;
31901 char * kwnames[] = {
31902 (char *) "self",(char *) "brush", NULL
31903 };
31904
31905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31907 if (!SWIG_IsOK(res1)) {
31908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31909 }
31910 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31912 if (!SWIG_IsOK(res2)) {
31913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31914 }
31915 arg2 = reinterpret_cast< wxBrush * >(argp2);
31916 {
31917 PyThreadState* __tstate = wxPyBeginAllowThreads();
31918 (arg1)->AddBrush(arg2);
31919 wxPyEndAllowThreads(__tstate);
31920 if (PyErr_Occurred()) SWIG_fail;
31921 }
31922 resultobj = SWIG_Py_Void();
31923 return resultobj;
31924fail:
31925 return NULL;
31926}
31927
31928
50efceee 31929SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31930 PyObject *resultobj = 0;
31931 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 31932 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
31933 void *argp1 = 0 ;
31934 int res1 = 0 ;
50efceee
RD
31935 void *argp2 = 0 ;
31936 int res2 = 0 ;
31937 PyObject * obj0 = 0 ;
31938 PyObject * obj1 = 0 ;
31939 char * kwnames[] = {
31940 (char *) "self",(char *) "brush", NULL
31941 };
31942
31943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31945 if (!SWIG_IsOK(res1)) {
31946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31947 }
31948 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31949 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31950 if (!SWIG_IsOK(res2)) {
31951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31952 }
31953 arg2 = reinterpret_cast< wxBrush * >(argp2);
31954 {
31955 PyThreadState* __tstate = wxPyBeginAllowThreads();
31956 (arg1)->RemoveBrush(arg2);
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 resultobj = SWIG_Py_Void();
31961 return resultobj;
31962fail:
31963 return NULL;
31964}
31965
31966
31967SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31968 PyObject *obj;
31969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31970 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
31971 return SWIG_Py_Void();
31972}
31973
31974SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31975 PyObject *resultobj = 0;
31976 wxFontList *arg1 = (wxFontList *) 0 ;
31977 int arg2 ;
31978 int arg3 ;
31979 int arg4 ;
31980 int arg5 ;
31981 bool arg6 = (bool) false ;
31982 wxString const &arg7_defvalue = wxPyEmptyString ;
31983 wxString *arg7 = (wxString *) &arg7_defvalue ;
31984 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
31985 wxFont *result = 0 ;
31986 void *argp1 = 0 ;
31987 int res1 = 0 ;
31988 int val2 ;
31989 int ecode2 = 0 ;
0085ce49
RD
31990 int val3 ;
31991 int ecode3 = 0 ;
50efceee
RD
31992 int val4 ;
31993 int ecode4 = 0 ;
31994 int val5 ;
31995 int ecode5 = 0 ;
31996 bool val6 ;
31997 int ecode6 = 0 ;
31998 bool temp7 = false ;
31999 int val8 ;
32000 int ecode8 = 0 ;
0085ce49
RD
32001 PyObject * obj0 = 0 ;
32002 PyObject * obj1 = 0 ;
32003 PyObject * obj2 = 0 ;
50efceee
RD
32004 PyObject * obj3 = 0 ;
32005 PyObject * obj4 = 0 ;
32006 PyObject * obj5 = 0 ;
32007 PyObject * obj6 = 0 ;
32008 PyObject * obj7 = 0 ;
0085ce49 32009 char * kwnames[] = {
50efceee 32010 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
32011 };
32012
50efceee
RD
32013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32015 if (!SWIG_IsOK(res1)) {
50efceee 32016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32017 }
50efceee
RD
32018 arg1 = reinterpret_cast< wxFontList * >(argp1);
32019 ecode2 = SWIG_AsVal_int(obj1, &val2);
32020 if (!SWIG_IsOK(ecode2)) {
32021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32022 }
32023 arg2 = static_cast< int >(val2);
32024 ecode3 = SWIG_AsVal_int(obj2, &val3);
32025 if (!SWIG_IsOK(ecode3)) {
32026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32027 }
32028 arg3 = static_cast< int >(val3);
32029 ecode4 = SWIG_AsVal_int(obj3, &val4);
32030 if (!SWIG_IsOK(ecode4)) {
32031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32032 }
32033 arg4 = static_cast< int >(val4);
32034 ecode5 = SWIG_AsVal_int(obj4, &val5);
32035 if (!SWIG_IsOK(ecode5)) {
32036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32037 }
32038 arg5 = static_cast< int >(val5);
32039 if (obj5) {
32040 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32041 if (!SWIG_IsOK(ecode6)) {
32042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32043 }
32044 arg6 = static_cast< bool >(val6);
0085ce49 32045 }
50efceee
RD
32046 if (obj6) {
32047 {
32048 arg7 = wxString_in_helper(obj6);
32049 if (arg7 == NULL) SWIG_fail;
32050 temp7 = true;
32051 }
32052 }
32053 if (obj7) {
32054 ecode8 = SWIG_AsVal_int(obj7, &val8);
32055 if (!SWIG_IsOK(ecode8)) {
32056 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 32057 }
50efceee 32058 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
32059 }
32060 {
32061 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32062 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
32063 wxPyEndAllowThreads(__tstate);
32064 if (PyErr_Occurred()) SWIG_fail;
32065 }
50efceee
RD
32066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32067 {
32068 if (temp7)
32069 delete arg7;
32070 }
0085ce49
RD
32071 return resultobj;
32072fail:
50efceee
RD
32073 {
32074 if (temp7)
32075 delete arg7;
32076 }
0085ce49
RD
32077 return NULL;
32078}
32079
32080
50efceee 32081SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32082 PyObject *resultobj = 0;
50efceee
RD
32083 wxFontList *arg1 = (wxFontList *) 0 ;
32084 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32085 void *argp1 = 0 ;
32086 int res1 = 0 ;
32087 void *argp2 = 0 ;
32088 int res2 = 0 ;
32089 PyObject * obj0 = 0 ;
32090 PyObject * obj1 = 0 ;
32091 char * kwnames[] = {
50efceee 32092 (char *) "self",(char *) "font", NULL
0085ce49
RD
32093 };
32094
50efceee
RD
32095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32097 if (!SWIG_IsOK(res1)) {
50efceee 32098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32099 }
50efceee
RD
32100 arg1 = reinterpret_cast< wxFontList * >(argp1);
32101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 32102 if (!SWIG_IsOK(res2)) {
50efceee 32103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 32104 }
50efceee 32105 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32106 {
32107 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32108 (arg1)->AddFont(arg2);
0085ce49
RD
32109 wxPyEndAllowThreads(__tstate);
32110 if (PyErr_Occurred()) SWIG_fail;
32111 }
32112 resultobj = SWIG_Py_Void();
32113 return resultobj;
32114fail:
32115 return NULL;
32116}
32117
32118
50efceee 32119SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32120 PyObject *resultobj = 0;
50efceee
RD
32121 wxFontList *arg1 = (wxFontList *) 0 ;
32122 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32123 void *argp1 = 0 ;
32124 int res1 = 0 ;
50efceee
RD
32125 void *argp2 = 0 ;
32126 int res2 = 0 ;
32127 PyObject * obj0 = 0 ;
32128 PyObject * obj1 = 0 ;
32129 char * kwnames[] = {
32130 (char *) "self",(char *) "font", NULL
32131 };
0085ce49 32132
50efceee
RD
32133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32135 if (!SWIG_IsOK(res1)) {
50efceee 32136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32137 }
50efceee
RD
32138 arg1 = reinterpret_cast< wxFontList * >(argp1);
32139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32140 if (!SWIG_IsOK(res2)) {
32141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32142 }
32143 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32144 {
32145 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32146 (arg1)->RemoveFont(arg2);
0085ce49
RD
32147 wxPyEndAllowThreads(__tstate);
32148 if (PyErr_Occurred()) SWIG_fail;
32149 }
50efceee 32150 resultobj = SWIG_Py_Void();
0085ce49
RD
32151 return resultobj;
32152fail:
32153 return NULL;
32154}
32155
32156
50efceee 32157SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
32158 PyObject *obj;
32159 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32160 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
32161 return SWIG_Py_Void();
32162}
32163
32164SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32165 PyObject *resultobj = 0;
32166 wxColourDatabase *result = 0 ;
32167
32168 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32169 {
32170 if (!wxPyCheckForApp()) SWIG_fail;
32171 PyThreadState* __tstate = wxPyBeginAllowThreads();
32172 result = (wxColourDatabase *)new wxColourDatabase();
32173 wxPyEndAllowThreads(__tstate);
32174 if (PyErr_Occurred()) SWIG_fail;
32175 }
32176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32177 return resultobj;
32178fail:
32179 return NULL;
32180}
32181
32182
32183SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32184 PyObject *resultobj = 0;
32185 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32186 void *argp1 = 0 ;
32187 int res1 = 0 ;
32188 PyObject *swig_obj[1] ;
32189
32190 if (!args) SWIG_fail;
32191 swig_obj[0] = args;
32192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32193 if (!SWIG_IsOK(res1)) {
32194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32195 }
32196 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32197 {
32198 PyThreadState* __tstate = wxPyBeginAllowThreads();
32199 delete arg1;
32200
32201 wxPyEndAllowThreads(__tstate);
32202 if (PyErr_Occurred()) SWIG_fail;
32203 }
32204 resultobj = SWIG_Py_Void();
32205 return resultobj;
32206fail:
32207 return NULL;
32208}
32209
32210
32211SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32212 PyObject *resultobj = 0;
32213 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32214 wxString *arg2 = 0 ;
32215 wxColour result;
32216 void *argp1 = 0 ;
32217 int res1 = 0 ;
32218 bool temp2 = false ;
32219 PyObject * obj0 = 0 ;
32220 PyObject * obj1 = 0 ;
32221 char * kwnames[] = {
32222 (char *) "self",(char *) "name", NULL
32223 };
32224
32225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32227 if (!SWIG_IsOK(res1)) {
32228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32229 }
32230 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32231 {
32232 arg2 = wxString_in_helper(obj1);
32233 if (arg2 == NULL) SWIG_fail;
32234 temp2 = true;
32235 }
32236 {
32237 PyThreadState* __tstate = wxPyBeginAllowThreads();
32238 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32239 wxPyEndAllowThreads(__tstate);
32240 if (PyErr_Occurred()) SWIG_fail;
32241 }
32242 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32243 {
32244 if (temp2)
32245 delete arg2;
32246 }
32247 return resultobj;
32248fail:
32249 {
32250 if (temp2)
32251 delete arg2;
32252 }
32253 return NULL;
32254}
32255
32256
32257SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32258 PyObject *resultobj = 0;
32259 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32260 wxColour *arg2 = 0 ;
32261 wxString result;
32262 void *argp1 = 0 ;
32263 int res1 = 0 ;
32264 wxColour temp2 ;
32265 PyObject * obj0 = 0 ;
32266 PyObject * obj1 = 0 ;
32267 char * kwnames[] = {
32268 (char *) "self",(char *) "colour", NULL
32269 };
32270
32271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32273 if (!SWIG_IsOK(res1)) {
32274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32275 }
32276 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32277 {
32278 arg2 = &temp2;
32279 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32280 }
32281 {
32282 PyThreadState* __tstate = wxPyBeginAllowThreads();
32283 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32284 wxPyEndAllowThreads(__tstate);
32285 if (PyErr_Occurred()) SWIG_fail;
32286 }
32287 {
32288#if wxUSE_UNICODE
32289 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32290#else
32291 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32292#endif
32293 }
32294 return resultobj;
32295fail:
32296 return NULL;
32297}
32298
32299
32300SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32301 PyObject *resultobj = 0;
32302 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32303 wxString *arg2 = 0 ;
32304 wxColour *arg3 = 0 ;
32305 void *argp1 = 0 ;
32306 int res1 = 0 ;
32307 bool temp2 = false ;
32308 wxColour temp3 ;
32309 PyObject * obj0 = 0 ;
32310 PyObject * obj1 = 0 ;
32311 PyObject * obj2 = 0 ;
32312 char * kwnames[] = {
32313 (char *) "self",(char *) "name",(char *) "colour", NULL
32314 };
32315
32316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32318 if (!SWIG_IsOK(res1)) {
32319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32320 }
32321 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32322 {
32323 arg2 = wxString_in_helper(obj1);
32324 if (arg2 == NULL) SWIG_fail;
32325 temp2 = true;
32326 }
32327 {
32328 arg3 = &temp3;
32329 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32330 }
32331 {
32332 PyThreadState* __tstate = wxPyBeginAllowThreads();
32333 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32334 wxPyEndAllowThreads(__tstate);
32335 if (PyErr_Occurred()) SWIG_fail;
32336 }
32337 resultobj = SWIG_Py_Void();
32338 {
32339 if (temp2)
32340 delete arg2;
32341 }
32342 return resultobj;
32343fail:
32344 {
32345 if (temp2)
32346 delete arg2;
32347 }
32348 return NULL;
32349}
32350
32351
32352SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32353 PyObject *resultobj = 0;
32354 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32355 wxString *arg2 = 0 ;
32356 int arg3 ;
32357 int arg4 ;
32358 int arg5 ;
32359 void *argp1 = 0 ;
32360 int res1 = 0 ;
32361 bool temp2 = false ;
32362 int val3 ;
32363 int ecode3 = 0 ;
32364 int val4 ;
32365 int ecode4 = 0 ;
50efceee
RD
32366 int val5 ;
32367 int ecode5 = 0 ;
0085ce49
RD
32368 PyObject * obj0 = 0 ;
32369 PyObject * obj1 = 0 ;
32370 PyObject * obj2 = 0 ;
32371 PyObject * obj3 = 0 ;
32372 PyObject * obj4 = 0 ;
0085ce49 32373 char * kwnames[] = {
50efceee 32374 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
32375 };
32376
50efceee
RD
32377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 32379 if (!SWIG_IsOK(res1)) {
50efceee
RD
32380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32381 }
32382 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32383 {
32384 arg2 = wxString_in_helper(obj1);
32385 if (arg2 == NULL) SWIG_fail;
32386 temp2 = true;
0085ce49 32387 }
0085ce49
RD
32388 ecode3 = SWIG_AsVal_int(obj2, &val3);
32389 if (!SWIG_IsOK(ecode3)) {
50efceee 32390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
32391 }
32392 arg3 = static_cast< int >(val3);
32393 ecode4 = SWIG_AsVal_int(obj3, &val4);
32394 if (!SWIG_IsOK(ecode4)) {
50efceee 32395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
32396 }
32397 arg4 = static_cast< int >(val4);
32398 ecode5 = SWIG_AsVal_int(obj4, &val5);
32399 if (!SWIG_IsOK(ecode5)) {
50efceee 32400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
32401 }
32402 arg5 = static_cast< int >(val5);
0085ce49
RD
32403 {
32404 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32405 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
50efceee 32409 resultobj = SWIG_Py_Void();
0085ce49 32410 {
50efceee
RD
32411 if (temp2)
32412 delete arg2;
0085ce49
RD
32413 }
32414 return resultobj;
32415fail:
32416 {
50efceee
RD
32417 if (temp2)
32418 delete arg2;
0085ce49
RD
32419 }
32420 return NULL;
32421}
32422
32423
50efceee
RD
32424SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32425 PyObject *obj;
32426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32427 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32428 return SWIG_Py_Void();
32429}
32430
32431SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32432 return SWIG_Python_InitShadowInstance(args);
32433}
32434
32435SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32436 PyObject *resultobj = 0;
50efceee 32437 wxFontList *result = 0 ;
0085ce49 32438
50efceee 32439 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
32440 {
32441 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32442 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
32443 wxPyEndAllowThreads(__tstate);
32444 if (PyErr_Occurred()) SWIG_fail;
32445 }
50efceee 32446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
32447 return resultobj;
32448fail:
32449 return NULL;
32450}
32451
32452
50efceee 32453SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32454 PyObject *resultobj = 0;
50efceee 32455 wxPenList *result = 0 ;
0085ce49 32456
50efceee 32457 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32460 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
50efceee 32464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
32465 return resultobj;
32466fail:
32467 return NULL;
32468}
32469
32470
50efceee
RD
32471SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32472 PyObject *resultobj = 0;
32473 wxBrushList *result = 0 ;
0085ce49 32474
50efceee
RD
32475 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32476 {
32477 PyThreadState* __tstate = wxPyBeginAllowThreads();
32478 result = (wxBrushList *)_wxPyInitTheBrushList();
32479 wxPyEndAllowThreads(__tstate);
32480 if (PyErr_Occurred()) SWIG_fail;
32481 }
32482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32483 return resultobj;
32484fail:
32485 return NULL;
0085ce49
RD
32486}
32487
32488
50efceee
RD
32489SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32490 PyObject *resultobj = 0;
32491 wxColourDatabase *result = 0 ;
0085ce49 32492
50efceee
RD
32493 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32494 {
32495 PyThreadState* __tstate = wxPyBeginAllowThreads();
32496 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32497 wxPyEndAllowThreads(__tstate);
32498 if (PyErr_Occurred()) SWIG_fail;
32499 }
32500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32501 return resultobj;
32502fail:
32503 return NULL;
0085ce49
RD
32504}
32505
32506
32507SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32508 PyObject *resultobj = 0;
32509 wxEffects *result = 0 ;
32510
32511 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32512 {
32513 PyThreadState* __tstate = wxPyBeginAllowThreads();
32514 result = (wxEffects *)new wxEffects();
32515 wxPyEndAllowThreads(__tstate);
32516 if (PyErr_Occurred()) SWIG_fail;
32517 }
32518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32519 return resultobj;
32520fail:
32521 return NULL;
32522}
32523
32524
32525SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32526 PyObject *resultobj = 0;
32527 wxEffects *arg1 = (wxEffects *) 0 ;
32528 wxColour result;
32529 void *argp1 = 0 ;
32530 int res1 = 0 ;
32531 PyObject *swig_obj[1] ;
32532
32533 if (!args) SWIG_fail;
32534 swig_obj[0] = args;
32535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32536 if (!SWIG_IsOK(res1)) {
32537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32538 }
32539 arg1 = reinterpret_cast< wxEffects * >(argp1);
32540 {
32541 PyThreadState* __tstate = wxPyBeginAllowThreads();
32542 result = ((wxEffects const *)arg1)->GetHighlightColour();
32543 wxPyEndAllowThreads(__tstate);
32544 if (PyErr_Occurred()) SWIG_fail;
32545 }
32546 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32547 return resultobj;
32548fail:
32549 return NULL;
32550}
32551
32552
32553SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32554 PyObject *resultobj = 0;
32555 wxEffects *arg1 = (wxEffects *) 0 ;
32556 wxColour result;
32557 void *argp1 = 0 ;
32558 int res1 = 0 ;
32559 PyObject *swig_obj[1] ;
32560
32561 if (!args) SWIG_fail;
32562 swig_obj[0] = args;
32563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32564 if (!SWIG_IsOK(res1)) {
32565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32566 }
32567 arg1 = reinterpret_cast< wxEffects * >(argp1);
32568 {
32569 PyThreadState* __tstate = wxPyBeginAllowThreads();
32570 result = ((wxEffects const *)arg1)->GetLightShadow();
32571 wxPyEndAllowThreads(__tstate);
32572 if (PyErr_Occurred()) SWIG_fail;
32573 }
32574 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32575 return resultobj;
32576fail:
32577 return NULL;
32578}
32579
32580
32581SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32582 PyObject *resultobj = 0;
32583 wxEffects *arg1 = (wxEffects *) 0 ;
32584 wxColour result;
32585 void *argp1 = 0 ;
32586 int res1 = 0 ;
32587 PyObject *swig_obj[1] ;
32588
32589 if (!args) SWIG_fail;
32590 swig_obj[0] = args;
32591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32592 if (!SWIG_IsOK(res1)) {
32593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32594 }
32595 arg1 = reinterpret_cast< wxEffects * >(argp1);
32596 {
32597 PyThreadState* __tstate = wxPyBeginAllowThreads();
32598 result = ((wxEffects const *)arg1)->GetFaceColour();
32599 wxPyEndAllowThreads(__tstate);
32600 if (PyErr_Occurred()) SWIG_fail;
32601 }
32602 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32603 return resultobj;
32604fail:
32605 return NULL;
32606}
32607
32608
32609SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32610 PyObject *resultobj = 0;
32611 wxEffects *arg1 = (wxEffects *) 0 ;
32612 wxColour result;
32613 void *argp1 = 0 ;
32614 int res1 = 0 ;
32615 PyObject *swig_obj[1] ;
32616
32617 if (!args) SWIG_fail;
32618 swig_obj[0] = args;
32619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32620 if (!SWIG_IsOK(res1)) {
32621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32622 }
32623 arg1 = reinterpret_cast< wxEffects * >(argp1);
32624 {
32625 PyThreadState* __tstate = wxPyBeginAllowThreads();
32626 result = ((wxEffects const *)arg1)->GetMediumShadow();
32627 wxPyEndAllowThreads(__tstate);
32628 if (PyErr_Occurred()) SWIG_fail;
32629 }
32630 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32631 return resultobj;
32632fail:
32633 return NULL;
32634}
32635
32636
32637SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32638 PyObject *resultobj = 0;
32639 wxEffects *arg1 = (wxEffects *) 0 ;
32640 wxColour result;
32641 void *argp1 = 0 ;
32642 int res1 = 0 ;
32643 PyObject *swig_obj[1] ;
32644
32645 if (!args) SWIG_fail;
32646 swig_obj[0] = args;
32647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32648 if (!SWIG_IsOK(res1)) {
32649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32650 }
32651 arg1 = reinterpret_cast< wxEffects * >(argp1);
32652 {
32653 PyThreadState* __tstate = wxPyBeginAllowThreads();
32654 result = ((wxEffects const *)arg1)->GetDarkShadow();
32655 wxPyEndAllowThreads(__tstate);
32656 if (PyErr_Occurred()) SWIG_fail;
32657 }
32658 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32659 return resultobj;
32660fail:
32661 return NULL;
32662}
32663
32664
32665SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32666 PyObject *resultobj = 0;
32667 wxEffects *arg1 = (wxEffects *) 0 ;
32668 wxColour *arg2 = 0 ;
32669 void *argp1 = 0 ;
32670 int res1 = 0 ;
32671 wxColour temp2 ;
32672 PyObject * obj0 = 0 ;
32673 PyObject * obj1 = 0 ;
32674 char * kwnames[] = {
32675 (char *) "self",(char *) "c", NULL
32676 };
32677
32678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32680 if (!SWIG_IsOK(res1)) {
32681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32682 }
32683 arg1 = reinterpret_cast< wxEffects * >(argp1);
32684 {
32685 arg2 = &temp2;
32686 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32687 }
32688 {
32689 PyThreadState* __tstate = wxPyBeginAllowThreads();
32690 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32691 wxPyEndAllowThreads(__tstate);
32692 if (PyErr_Occurred()) SWIG_fail;
32693 }
32694 resultobj = SWIG_Py_Void();
32695 return resultobj;
32696fail:
32697 return NULL;
32698}
32699
32700
32701SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32702 PyObject *resultobj = 0;
32703 wxEffects *arg1 = (wxEffects *) 0 ;
32704 wxColour *arg2 = 0 ;
32705 void *argp1 = 0 ;
32706 int res1 = 0 ;
32707 wxColour temp2 ;
32708 PyObject * obj0 = 0 ;
32709 PyObject * obj1 = 0 ;
32710 char * kwnames[] = {
32711 (char *) "self",(char *) "c", NULL
32712 };
32713
32714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32716 if (!SWIG_IsOK(res1)) {
32717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32718 }
32719 arg1 = reinterpret_cast< wxEffects * >(argp1);
32720 {
32721 arg2 = &temp2;
32722 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32723 }
32724 {
32725 PyThreadState* __tstate = wxPyBeginAllowThreads();
32726 (arg1)->SetLightShadow((wxColour const &)*arg2);
32727 wxPyEndAllowThreads(__tstate);
32728 if (PyErr_Occurred()) SWIG_fail;
32729 }
32730 resultobj = SWIG_Py_Void();
32731 return resultobj;
32732fail:
32733 return NULL;
32734}
32735
32736
32737SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32738 PyObject *resultobj = 0;
32739 wxEffects *arg1 = (wxEffects *) 0 ;
32740 wxColour *arg2 = 0 ;
32741 void *argp1 = 0 ;
32742 int res1 = 0 ;
32743 wxColour temp2 ;
32744 PyObject * obj0 = 0 ;
32745 PyObject * obj1 = 0 ;
32746 char * kwnames[] = {
32747 (char *) "self",(char *) "c", NULL
32748 };
32749
32750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32752 if (!SWIG_IsOK(res1)) {
32753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32754 }
32755 arg1 = reinterpret_cast< wxEffects * >(argp1);
32756 {
32757 arg2 = &temp2;
32758 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32759 }
32760 {
32761 PyThreadState* __tstate = wxPyBeginAllowThreads();
32762 (arg1)->SetFaceColour((wxColour const &)*arg2);
32763 wxPyEndAllowThreads(__tstate);
32764 if (PyErr_Occurred()) SWIG_fail;
32765 }
32766 resultobj = SWIG_Py_Void();
32767 return resultobj;
32768fail:
32769 return NULL;
32770}
32771
32772
32773SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32774 PyObject *resultobj = 0;
32775 wxEffects *arg1 = (wxEffects *) 0 ;
32776 wxColour *arg2 = 0 ;
32777 void *argp1 = 0 ;
32778 int res1 = 0 ;
32779 wxColour temp2 ;
32780 PyObject * obj0 = 0 ;
32781 PyObject * obj1 = 0 ;
32782 char * kwnames[] = {
32783 (char *) "self",(char *) "c", NULL
32784 };
32785
32786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32788 if (!SWIG_IsOK(res1)) {
32789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32790 }
32791 arg1 = reinterpret_cast< wxEffects * >(argp1);
32792 {
32793 arg2 = &temp2;
32794 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32795 }
32796 {
32797 PyThreadState* __tstate = wxPyBeginAllowThreads();
32798 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32799 wxPyEndAllowThreads(__tstate);
32800 if (PyErr_Occurred()) SWIG_fail;
32801 }
32802 resultobj = SWIG_Py_Void();
32803 return resultobj;
32804fail:
32805 return NULL;
32806}
32807
32808
32809SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32810 PyObject *resultobj = 0;
32811 wxEffects *arg1 = (wxEffects *) 0 ;
32812 wxColour *arg2 = 0 ;
32813 void *argp1 = 0 ;
32814 int res1 = 0 ;
32815 wxColour temp2 ;
32816 PyObject * obj0 = 0 ;
32817 PyObject * obj1 = 0 ;
32818 char * kwnames[] = {
32819 (char *) "self",(char *) "c", NULL
32820 };
32821
32822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32824 if (!SWIG_IsOK(res1)) {
32825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32826 }
32827 arg1 = reinterpret_cast< wxEffects * >(argp1);
32828 {
32829 arg2 = &temp2;
32830 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32831 }
32832 {
32833 PyThreadState* __tstate = wxPyBeginAllowThreads();
32834 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32835 wxPyEndAllowThreads(__tstate);
32836 if (PyErr_Occurred()) SWIG_fail;
32837 }
32838 resultobj = SWIG_Py_Void();
32839 return resultobj;
32840fail:
32841 return NULL;
32842}
32843
32844
32845SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32846 PyObject *resultobj = 0;
32847 wxEffects *arg1 = (wxEffects *) 0 ;
32848 wxColour *arg2 = 0 ;
32849 wxColour *arg3 = 0 ;
32850 wxColour *arg4 = 0 ;
32851 wxColour *arg5 = 0 ;
32852 wxColour *arg6 = 0 ;
32853 void *argp1 = 0 ;
32854 int res1 = 0 ;
32855 wxColour temp2 ;
32856 wxColour temp3 ;
32857 wxColour temp4 ;
32858 wxColour temp5 ;
32859 wxColour temp6 ;
32860 PyObject * obj0 = 0 ;
32861 PyObject * obj1 = 0 ;
32862 PyObject * obj2 = 0 ;
32863 PyObject * obj3 = 0 ;
32864 PyObject * obj4 = 0 ;
32865 PyObject * obj5 = 0 ;
32866 char * kwnames[] = {
32867 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32868 };
32869
32870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32872 if (!SWIG_IsOK(res1)) {
32873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32874 }
32875 arg1 = reinterpret_cast< wxEffects * >(argp1);
32876 {
32877 arg2 = &temp2;
32878 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32879 }
32880 {
32881 arg3 = &temp3;
32882 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32883 }
32884 {
32885 arg4 = &temp4;
32886 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32887 }
32888 {
32889 arg5 = &temp5;
32890 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
32891 }
32892 {
32893 arg6 = &temp6;
32894 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
32895 }
32896 {
32897 PyThreadState* __tstate = wxPyBeginAllowThreads();
32898 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 resultobj = SWIG_Py_Void();
32903 return resultobj;
32904fail:
32905 return NULL;
32906}
32907
32908
32909SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32910 PyObject *resultobj = 0;
32911 wxEffects *arg1 = (wxEffects *) 0 ;
32912 wxDC *arg2 = 0 ;
32913 wxRect *arg3 = 0 ;
32914 int arg4 = (int) 1 ;
32915 void *argp1 = 0 ;
32916 int res1 = 0 ;
32917 void *argp2 = 0 ;
32918 int res2 = 0 ;
32919 wxRect temp3 ;
32920 int val4 ;
32921 int ecode4 = 0 ;
32922 PyObject * obj0 = 0 ;
32923 PyObject * obj1 = 0 ;
32924 PyObject * obj2 = 0 ;
32925 PyObject * obj3 = 0 ;
32926 char * kwnames[] = {
32927 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
32928 };
32929
32930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32932 if (!SWIG_IsOK(res1)) {
32933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
32934 }
32935 arg1 = reinterpret_cast< wxEffects * >(argp1);
32936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
32937 if (!SWIG_IsOK(res2)) {
32938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32939 }
32940 if (!argp2) {
32941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32942 }
32943 arg2 = reinterpret_cast< wxDC * >(argp2);
32944 {
32945 arg3 = &temp3;
32946 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32947 }
32948 if (obj3) {
32949 ecode4 = SWIG_AsVal_int(obj3, &val4);
32950 if (!SWIG_IsOK(ecode4)) {
32951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
32952 }
32953 arg4 = static_cast< int >(val4);
32954 }
32955 {
32956 PyThreadState* __tstate = wxPyBeginAllowThreads();
32957 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
32958 wxPyEndAllowThreads(__tstate);
32959 if (PyErr_Occurred()) SWIG_fail;
32960 }
32961 resultobj = SWIG_Py_Void();
32962 return resultobj;
32963fail:
32964 return NULL;
32965}
32966
32967
32968SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32969 PyObject *resultobj = 0;
32970 wxEffects *arg1 = (wxEffects *) 0 ;
32971 wxRect *arg2 = 0 ;
32972 wxDC *arg3 = 0 ;
32973 wxBitmap *arg4 = 0 ;
32974 bool result;
32975 void *argp1 = 0 ;
32976 int res1 = 0 ;
32977 wxRect temp2 ;
32978 void *argp3 = 0 ;
32979 int res3 = 0 ;
32980 void *argp4 = 0 ;
32981 int res4 = 0 ;
32982 PyObject * obj0 = 0 ;
32983 PyObject * obj1 = 0 ;
32984 PyObject * obj2 = 0 ;
32985 PyObject * obj3 = 0 ;
32986 char * kwnames[] = {
32987 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
32988 };
32989
32990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32992 if (!SWIG_IsOK(res1)) {
32993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
32994 }
32995 arg1 = reinterpret_cast< wxEffects * >(argp1);
32996 {
32997 arg2 = &temp2;
32998 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32999 }
33000 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33001 if (!SWIG_IsOK(res3)) {
33002 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33003 }
33004 if (!argp3) {
33005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33006 }
33007 arg3 = reinterpret_cast< wxDC * >(argp3);
33008 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33009 if (!SWIG_IsOK(res4)) {
33010 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33011 }
33012 if (!argp4) {
33013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33014 }
33015 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33016 {
33017 PyThreadState* __tstate = wxPyBeginAllowThreads();
33018 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33019 wxPyEndAllowThreads(__tstate);
33020 if (PyErr_Occurred()) SWIG_fail;
33021 }
33022 {
33023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33024 }
33025 return resultobj;
33026fail:
33027 return NULL;
33028}
33029
33030
33031SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33032 PyObject *obj;
33033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33034 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33035 return SWIG_Py_Void();
33036}
33037
33038SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33039 return SWIG_Python_InitShadowInstance(args);
33040}
33041
33042SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33043 PyObject *resultobj = 0;
33044 int arg1 ;
33045 int arg2 ;
33046 bool arg3 ;
33047 wxSplitterRenderParams *result = 0 ;
33048 int val1 ;
33049 int ecode1 = 0 ;
33050 int val2 ;
33051 int ecode2 = 0 ;
33052 bool val3 ;
33053 int ecode3 = 0 ;
33054 PyObject * obj0 = 0 ;
33055 PyObject * obj1 = 0 ;
33056 PyObject * obj2 = 0 ;
33057 char * kwnames[] = {
33058 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33059 };
33060
33061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33062 ecode1 = SWIG_AsVal_int(obj0, &val1);
33063 if (!SWIG_IsOK(ecode1)) {
33064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33065 }
33066 arg1 = static_cast< int >(val1);
33067 ecode2 = SWIG_AsVal_int(obj1, &val2);
33068 if (!SWIG_IsOK(ecode2)) {
33069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33070 }
33071 arg2 = static_cast< int >(val2);
33072 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33073 if (!SWIG_IsOK(ecode3)) {
33074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33075 }
33076 arg3 = static_cast< bool >(val3);
33077 {
33078 PyThreadState* __tstate = wxPyBeginAllowThreads();
33079 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33080 wxPyEndAllowThreads(__tstate);
33081 if (PyErr_Occurred()) SWIG_fail;
33082 }
33083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33084 return resultobj;
33085fail:
33086 return NULL;
33087}
33088
33089
33090SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33091 PyObject *resultobj = 0;
33092 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33093 void *argp1 = 0 ;
33094 int res1 = 0 ;
33095 PyObject *swig_obj[1] ;
33096
33097 if (!args) SWIG_fail;
33098 swig_obj[0] = args;
33099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33100 if (!SWIG_IsOK(res1)) {
33101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33102 }
33103 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33104 {
33105 PyThreadState* __tstate = wxPyBeginAllowThreads();
33106 delete arg1;
33107
33108 wxPyEndAllowThreads(__tstate);
33109 if (PyErr_Occurred()) SWIG_fail;
33110 }
33111 resultobj = SWIG_Py_Void();
33112 return resultobj;
33113fail:
33114 return NULL;
33115}
33116
33117
33118SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33119 PyObject *resultobj = 0;
33120 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33121 int result;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 PyObject *swig_obj[1] ;
33125
33126 if (!args) SWIG_fail;
33127 swig_obj[0] = args;
33128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33129 if (!SWIG_IsOK(res1)) {
33130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33131 }
33132 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33133 result = (int)(int) ((arg1)->widthSash);
33134 resultobj = SWIG_From_int(static_cast< int >(result));
33135 return resultobj;
33136fail:
33137 return NULL;
33138}
33139
33140
33141SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33142 PyObject *resultobj = 0;
33143 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33144 int result;
33145 void *argp1 = 0 ;
33146 int res1 = 0 ;
33147 PyObject *swig_obj[1] ;
33148
33149 if (!args) SWIG_fail;
33150 swig_obj[0] = args;
33151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33152 if (!SWIG_IsOK(res1)) {
33153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33154 }
33155 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33156 result = (int)(int) ((arg1)->border);
33157 resultobj = SWIG_From_int(static_cast< int >(result));
33158 return resultobj;
33159fail:
33160 return NULL;
33161}
33162
33163
33164SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33165 PyObject *resultobj = 0;
33166 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33167 bool result;
33168 void *argp1 = 0 ;
33169 int res1 = 0 ;
33170 PyObject *swig_obj[1] ;
33171
33172 if (!args) SWIG_fail;
33173 swig_obj[0] = args;
33174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33175 if (!SWIG_IsOK(res1)) {
33176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33177 }
33178 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33179 result = (bool)(bool) ((arg1)->isHotSensitive);
33180 resultobj = SWIG_From_bool(static_cast< bool >(result));
33181 return resultobj;
33182fail:
33183 return NULL;
33184}
33185
33186
33187SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33188 PyObject *obj;
33189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33190 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33191 return SWIG_Py_Void();
33192}
33193
33194SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33195 return SWIG_Python_InitShadowInstance(args);
33196}
33197
33d6fd3b
RD
33198SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33199 PyObject *resultobj = 0;
33200 wxHeaderButtonParams *result = 0 ;
33201
33202 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33203 {
33204 PyThreadState* __tstate = wxPyBeginAllowThreads();
33205 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33206 wxPyEndAllowThreads(__tstate);
33207 if (PyErr_Occurred()) SWIG_fail;
33208 }
33209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33210 return resultobj;
33211fail:
33212 return NULL;
33213}
33214
33215
33216SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33217 PyObject *resultobj = 0;
33218 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33219 void *argp1 = 0 ;
33220 int res1 = 0 ;
33221 PyObject *swig_obj[1] ;
33222
33223 if (!args) SWIG_fail;
33224 swig_obj[0] = args;
33225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33226 if (!SWIG_IsOK(res1)) {
33227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33228 }
33229 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33230 {
33231 PyThreadState* __tstate = wxPyBeginAllowThreads();
33232 delete arg1;
33233
33234 wxPyEndAllowThreads(__tstate);
33235 if (PyErr_Occurred()) SWIG_fail;
33236 }
33237 resultobj = SWIG_Py_Void();
33238 return resultobj;
33239fail:
33240 return NULL;
33241}
33242
33243
33244SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33245 PyObject *resultobj = 0;
33246 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33247 wxColour *arg2 = (wxColour *) 0 ;
33248 void *argp1 = 0 ;
33249 int res1 = 0 ;
33250 wxColour temp2 ;
33251 PyObject *swig_obj[2] ;
33252
33253 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33255 if (!SWIG_IsOK(res1)) {
33256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33257 }
33258 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33259 {
33260 arg2 = &temp2;
33261 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33262 }
33263 if (arg1) (arg1)->m_arrowColour = *arg2;
33264
33265 resultobj = SWIG_Py_Void();
33266 return resultobj;
33267fail:
33268 return NULL;
33269}
33270
33271
33272SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33273 PyObject *resultobj = 0;
33274 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33275 wxColour *result = 0 ;
33276 void *argp1 = 0 ;
33277 int res1 = 0 ;
33278 PyObject *swig_obj[1] ;
33279
33280 if (!args) SWIG_fail;
33281 swig_obj[0] = args;
33282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33283 if (!SWIG_IsOK(res1)) {
33284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33285 }
33286 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33287 result = (wxColour *)& ((arg1)->m_arrowColour);
33288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33289 return resultobj;
33290fail:
33291 return NULL;
33292}
33293
33294
33295SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33296 PyObject *resultobj = 0;
33297 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33298 wxColour *arg2 = (wxColour *) 0 ;
33299 void *argp1 = 0 ;
33300 int res1 = 0 ;
33301 wxColour temp2 ;
33302 PyObject *swig_obj[2] ;
33303
33304 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33306 if (!SWIG_IsOK(res1)) {
33307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33308 }
33309 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33310 {
33311 arg2 = &temp2;
33312 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33313 }
33314 if (arg1) (arg1)->m_selectionColour = *arg2;
33315
33316 resultobj = SWIG_Py_Void();
33317 return resultobj;
33318fail:
33319 return NULL;
33320}
33321
33322
33323SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33324 PyObject *resultobj = 0;
33325 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33326 wxColour *result = 0 ;
33327 void *argp1 = 0 ;
33328 int res1 = 0 ;
33329 PyObject *swig_obj[1] ;
33330
33331 if (!args) SWIG_fail;
33332 swig_obj[0] = args;
33333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33334 if (!SWIG_IsOK(res1)) {
33335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33336 }
33337 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33338 result = (wxColour *)& ((arg1)->m_selectionColour);
33339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33340 return resultobj;
33341fail:
33342 return NULL;
33343}
33344
33345
33346SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33347 PyObject *resultobj = 0;
33348 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33349 wxString *arg2 = (wxString *) 0 ;
33350 void *argp1 = 0 ;
33351 int res1 = 0 ;
33352 bool temp2 = false ;
33353 PyObject *swig_obj[2] ;
33354
33355 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33357 if (!SWIG_IsOK(res1)) {
33358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33359 }
33360 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33361 {
33362 arg2 = wxString_in_helper(swig_obj[1]);
33363 if (arg2 == NULL) SWIG_fail;
33364 temp2 = true;
33365 }
33366 if (arg1) (arg1)->m_labelText = *arg2;
33367
33368 resultobj = SWIG_Py_Void();
33369 {
33370 if (temp2)
33371 delete arg2;
33372 }
33373 return resultobj;
33374fail:
33375 {
33376 if (temp2)
33377 delete arg2;
33378 }
33379 return NULL;
33380}
33381
33382
33383SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33384 PyObject *resultobj = 0;
33385 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33386 wxString *result = 0 ;
33387 void *argp1 = 0 ;
33388 int res1 = 0 ;
33389 PyObject *swig_obj[1] ;
33390
33391 if (!args) SWIG_fail;
33392 swig_obj[0] = args;
33393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33394 if (!SWIG_IsOK(res1)) {
33395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33396 }
33397 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33398 result = (wxString *)& ((arg1)->m_labelText);
33399 {
33400#if wxUSE_UNICODE
33401 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33402#else
33403 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33404#endif
33405 }
33406 return resultobj;
33407fail:
33408 return NULL;
33409}
33410
33411
33412SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33413 PyObject *resultobj = 0;
33414 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33415 wxFont *arg2 = (wxFont *) 0 ;
33416 void *argp1 = 0 ;
33417 int res1 = 0 ;
33418 void *argp2 = 0 ;
33419 int res2 = 0 ;
33420 PyObject *swig_obj[2] ;
33421
33422 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33426 }
33427 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33428 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33429 if (!SWIG_IsOK(res2)) {
33430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33431 }
33432 arg2 = reinterpret_cast< wxFont * >(argp2);
33433 if (arg1) (arg1)->m_labelFont = *arg2;
33434
33435 resultobj = SWIG_Py_Void();
33436 return resultobj;
33437fail:
33438 return NULL;
33439}
33440
33441
33442SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33443 PyObject *resultobj = 0;
33444 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33445 wxFont *result = 0 ;
33446 void *argp1 = 0 ;
33447 int res1 = 0 ;
33448 PyObject *swig_obj[1] ;
33449
33450 if (!args) SWIG_fail;
33451 swig_obj[0] = args;
33452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33453 if (!SWIG_IsOK(res1)) {
33454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33455 }
33456 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33457 result = (wxFont *)& ((arg1)->m_labelFont);
33458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33459 return resultobj;
33460fail:
33461 return NULL;
33462}
33463
33464
33465SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33466 PyObject *resultobj = 0;
33467 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33468 wxColour *arg2 = (wxColour *) 0 ;
33469 void *argp1 = 0 ;
33470 int res1 = 0 ;
33471 wxColour temp2 ;
33472 PyObject *swig_obj[2] ;
33473
33474 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33476 if (!SWIG_IsOK(res1)) {
33477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33478 }
33479 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33480 {
33481 arg2 = &temp2;
33482 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33483 }
33484 if (arg1) (arg1)->m_labelColour = *arg2;
33485
33486 resultobj = SWIG_Py_Void();
33487 return resultobj;
33488fail:
33489 return NULL;
33490}
33491
33492
33493SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33494 PyObject *resultobj = 0;
33495 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33496 wxColour *result = 0 ;
33497 void *argp1 = 0 ;
33498 int res1 = 0 ;
33499 PyObject *swig_obj[1] ;
33500
33501 if (!args) SWIG_fail;
33502 swig_obj[0] = args;
33503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33504 if (!SWIG_IsOK(res1)) {
33505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33506 }
33507 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33508 result = (wxColour *)& ((arg1)->m_labelColour);
33509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33510 return resultobj;
33511fail:
33512 return NULL;
33513}
33514
33515
33516SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33517 PyObject *resultobj = 0;
33518 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33519 wxBitmap *arg2 = (wxBitmap *) 0 ;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 void *argp2 = 0 ;
33523 int res2 = 0 ;
33524 PyObject *swig_obj[2] ;
33525
33526 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33528 if (!SWIG_IsOK(res1)) {
33529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33530 }
33531 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33532 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33533 if (!SWIG_IsOK(res2)) {
33534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33535 }
33536 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33537 if (arg1) (arg1)->m_labelBitmap = *arg2;
33538
33539 resultobj = SWIG_Py_Void();
33540 return resultobj;
33541fail:
33542 return NULL;
33543}
33544
33545
33546SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33547 PyObject *resultobj = 0;
33548 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33549 wxBitmap *result = 0 ;
33550 void *argp1 = 0 ;
33551 int res1 = 0 ;
33552 PyObject *swig_obj[1] ;
33553
33554 if (!args) SWIG_fail;
33555 swig_obj[0] = args;
33556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33557 if (!SWIG_IsOK(res1)) {
33558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33559 }
33560 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33561 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33563 return resultobj;
33564fail:
33565 return NULL;
33566}
33567
33568
33569SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33570 PyObject *resultobj = 0;
33571 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33572 int arg2 ;
33573 void *argp1 = 0 ;
33574 int res1 = 0 ;
33575 int val2 ;
33576 int ecode2 = 0 ;
33577 PyObject *swig_obj[2] ;
33578
33579 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33581 if (!SWIG_IsOK(res1)) {
33582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33583 }
33584 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33585 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33586 if (!SWIG_IsOK(ecode2)) {
33587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33588 }
33589 arg2 = static_cast< int >(val2);
33590 if (arg1) (arg1)->m_labelAlignment = arg2;
33591
33592 resultobj = SWIG_Py_Void();
33593 return resultobj;
33594fail:
33595 return NULL;
33596}
33597
33598
33599SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33600 PyObject *resultobj = 0;
33601 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33602 int result;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 PyObject *swig_obj[1] ;
33606
33607 if (!args) SWIG_fail;
33608 swig_obj[0] = args;
33609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33610 if (!SWIG_IsOK(res1)) {
33611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33612 }
33613 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33614 result = (int) ((arg1)->m_labelAlignment);
33615 resultobj = SWIG_From_int(static_cast< int >(result));
33616 return resultobj;
33617fail:
33618 return NULL;
33619}
33620
33621
33622SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33623 PyObject *obj;
33624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33625 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33626 return SWIG_Py_Void();
33627}
33628
33629SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33630 return SWIG_Python_InitShadowInstance(args);
33631}
33632
0085ce49
RD
33633SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33634 PyObject *resultobj = 0;
33635 int arg1 ;
33636 int arg2 ;
33637 wxRendererVersion *result = 0 ;
33638 int val1 ;
33639 int ecode1 = 0 ;
33640 int val2 ;
33641 int ecode2 = 0 ;
33642 PyObject * obj0 = 0 ;
33643 PyObject * obj1 = 0 ;
33644 char * kwnames[] = {
33645 (char *) "version_",(char *) "age_", NULL
33646 };
33647
33648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33649 ecode1 = SWIG_AsVal_int(obj0, &val1);
33650 if (!SWIG_IsOK(ecode1)) {
33651 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33652 }
33653 arg1 = static_cast< int >(val1);
33654 ecode2 = SWIG_AsVal_int(obj1, &val2);
33655 if (!SWIG_IsOK(ecode2)) {
33656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33657 }
33658 arg2 = static_cast< int >(val2);
33659 {
33660 PyThreadState* __tstate = wxPyBeginAllowThreads();
33661 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33662 wxPyEndAllowThreads(__tstate);
33663 if (PyErr_Occurred()) SWIG_fail;
33664 }
33665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33666 return resultobj;
33667fail:
33668 return NULL;
33669}
33670
33671
33672SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33673 PyObject *resultobj = 0;
33674 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33675 void *argp1 = 0 ;
33676 int res1 = 0 ;
33677 PyObject *swig_obj[1] ;
33678
33679 if (!args) SWIG_fail;
33680 swig_obj[0] = args;
33681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33682 if (!SWIG_IsOK(res1)) {
33683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33684 }
33685 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33686 {
33687 PyThreadState* __tstate = wxPyBeginAllowThreads();
33688 delete arg1;
33689
33690 wxPyEndAllowThreads(__tstate);
33691 if (PyErr_Occurred()) SWIG_fail;
33692 }
33693 resultobj = SWIG_Py_Void();
33694 return resultobj;
33695fail:
33696 return NULL;
33697}
33698
33699
33700SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33701 PyObject *resultobj = 0;
33702 wxRendererVersion *arg1 = 0 ;
33703 bool result;
33704 void *argp1 = 0 ;
33705 int res1 = 0 ;
33706 PyObject * obj0 = 0 ;
33707 char * kwnames[] = {
33708 (char *) "ver", NULL
33709 };
33710
33711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33712 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33713 if (!SWIG_IsOK(res1)) {
33714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33715 }
33716 if (!argp1) {
33717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33718 }
33719 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33720 {
33721 PyThreadState* __tstate = wxPyBeginAllowThreads();
33722 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33723 wxPyEndAllowThreads(__tstate);
33724 if (PyErr_Occurred()) SWIG_fail;
33725 }
33726 {
33727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33728 }
33729 return resultobj;
33730fail:
33731 return NULL;
33732}
33733
33734
33735SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33736 PyObject *resultobj = 0;
33737 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33738 int result;
33739 void *argp1 = 0 ;
33740 int res1 = 0 ;
33741 PyObject *swig_obj[1] ;
33742
33743 if (!args) SWIG_fail;
33744 swig_obj[0] = args;
33745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33746 if (!SWIG_IsOK(res1)) {
33747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33748 }
33749 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33750 result = (int)(int) ((arg1)->version);
33751 resultobj = SWIG_From_int(static_cast< int >(result));
33752 return resultobj;
33753fail:
33754 return NULL;
33755}
33756
33757
33758SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33759 PyObject *resultobj = 0;
33760 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33761 int result;
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 PyObject *swig_obj[1] ;
33765
33766 if (!args) SWIG_fail;
33767 swig_obj[0] = args;
33768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33769 if (!SWIG_IsOK(res1)) {
33770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33771 }
33772 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33773 result = (int)(int) ((arg1)->age);
33774 resultobj = SWIG_From_int(static_cast< int >(result));
33775 return resultobj;
33776fail:
33777 return NULL;
33778}
33779
33780
33781SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33782 PyObject *obj;
33783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33784 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33785 return SWIG_Py_Void();
33786}
33787
33788SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33789 return SWIG_Python_InitShadowInstance(args);
33790}
33791
33792SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33793 PyObject *resultobj = 0;
33794 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33795 wxWindow *arg2 = (wxWindow *) 0 ;
33796 wxDC *arg3 = 0 ;
33797 wxRect *arg4 = 0 ;
33798 int arg5 = (int) 0 ;
33d6fd3b
RD
33799 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33800 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
33801 void *argp1 = 0 ;
33802 int res1 = 0 ;
33803 void *argp2 = 0 ;
33804 int res2 = 0 ;
33805 void *argp3 = 0 ;
33806 int res3 = 0 ;
33807 wxRect temp4 ;
33808 int val5 ;
33809 int ecode5 = 0 ;
33d6fd3b
RD
33810 int val6 ;
33811 int ecode6 = 0 ;
33812 void *argp7 = 0 ;
33813 int res7 = 0 ;
0085ce49
RD
33814 PyObject * obj0 = 0 ;
33815 PyObject * obj1 = 0 ;
33816 PyObject * obj2 = 0 ;
33817 PyObject * obj3 = 0 ;
33818 PyObject * obj4 = 0 ;
33d6fd3b
RD
33819 PyObject * obj5 = 0 ;
33820 PyObject * obj6 = 0 ;
0085ce49 33821 char * kwnames[] = {
33d6fd3b 33822 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
33823 };
33824
33d6fd3b 33825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
33826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33827 if (!SWIG_IsOK(res1)) {
33828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33829 }
33830 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33831 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33832 if (!SWIG_IsOK(res2)) {
33833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33834 }
33835 arg2 = reinterpret_cast< wxWindow * >(argp2);
33836 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33837 if (!SWIG_IsOK(res3)) {
33838 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33839 }
33840 if (!argp3) {
33841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33842 }
33843 arg3 = reinterpret_cast< wxDC * >(argp3);
33844 {
33845 arg4 = &temp4;
33846 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33847 }
33848 if (obj4) {
33849 ecode5 = SWIG_AsVal_int(obj4, &val5);
33850 if (!SWIG_IsOK(ecode5)) {
33851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33852 }
33853 arg5 = static_cast< int >(val5);
33854 }
33d6fd3b
RD
33855 if (obj5) {
33856 ecode6 = SWIG_AsVal_int(obj5, &val6);
33857 if (!SWIG_IsOK(ecode6)) {
33858 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33859 }
33860 arg6 = static_cast< wxHeaderSortIconType >(val6);
33861 }
33862 if (obj6) {
33863 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33864 if (!SWIG_IsOK(res7)) {
33865 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33866 }
33867 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33868 }
33869 {
33870 PyThreadState* __tstate = wxPyBeginAllowThreads();
33871 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33872 wxPyEndAllowThreads(__tstate);
33873 if (PyErr_Occurred()) SWIG_fail;
33874 }
33875 resultobj = SWIG_Py_Void();
33876 return resultobj;
33877fail:
33878 return NULL;
33879}
33880
33881
33882SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33883 PyObject *resultobj = 0;
33884 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33885 wxWindow *arg2 = (wxWindow *) 0 ;
33886 wxDC *arg3 = 0 ;
33887 wxRect *arg4 = 0 ;
33888 int arg5 = (int) 0 ;
33889 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33890 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33891 void *argp1 = 0 ;
33892 int res1 = 0 ;
33893 void *argp2 = 0 ;
33894 int res2 = 0 ;
33895 void *argp3 = 0 ;
33896 int res3 = 0 ;
33897 wxRect temp4 ;
33898 int val5 ;
33899 int ecode5 = 0 ;
33900 int val6 ;
33901 int ecode6 = 0 ;
33902 void *argp7 = 0 ;
33903 int res7 = 0 ;
33904 PyObject * obj0 = 0 ;
33905 PyObject * obj1 = 0 ;
33906 PyObject * obj2 = 0 ;
33907 PyObject * obj3 = 0 ;
33908 PyObject * obj4 = 0 ;
33909 PyObject * obj5 = 0 ;
33910 PyObject * obj6 = 0 ;
33911 char * kwnames[] = {
33912 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33913 };
33914
33915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33917 if (!SWIG_IsOK(res1)) {
33918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33919 }
33920 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33922 if (!SWIG_IsOK(res2)) {
33923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
33924 }
33925 arg2 = reinterpret_cast< wxWindow * >(argp2);
33926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33927 if (!SWIG_IsOK(res3)) {
33928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33929 }
33930 if (!argp3) {
33931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33932 }
33933 arg3 = reinterpret_cast< wxDC * >(argp3);
33934 {
33935 arg4 = &temp4;
33936 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33937 }
33938 if (obj4) {
33939 ecode5 = SWIG_AsVal_int(obj4, &val5);
33940 if (!SWIG_IsOK(ecode5)) {
33941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
33942 }
33943 arg5 = static_cast< int >(val5);
33944 }
33945 if (obj5) {
33946 ecode6 = SWIG_AsVal_int(obj5, &val6);
33947 if (!SWIG_IsOK(ecode6)) {
33948 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33949 }
33950 arg6 = static_cast< wxHeaderSortIconType >(val6);
33951 }
33952 if (obj6) {
33953 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33954 if (!SWIG_IsOK(res7)) {
33955 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33956 }
33957 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33958 }
0085ce49
RD
33959 {
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 33961 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_Py_Void();
33966 return resultobj;
33967fail:
33968 return NULL;
33969}
33970
33971
33d6fd3b
RD
33972SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33973 PyObject *resultobj = 0;
33974 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33975 wxWindow *arg2 = (wxWindow *) 0 ;
33976 int result;
33977 void *argp1 = 0 ;
33978 int res1 = 0 ;
33979 void *argp2 = 0 ;
33980 int res2 = 0 ;
33981 PyObject * obj0 = 0 ;
33982 PyObject * obj1 = 0 ;
33983 char * kwnames[] = {
33984 (char *) "self",(char *) "win", NULL
33985 };
33986
33987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
33988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33989 if (!SWIG_IsOK(res1)) {
33990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33991 }
33992 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33994 if (!SWIG_IsOK(res2)) {
33995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
33996 }
33997 arg2 = reinterpret_cast< wxWindow * >(argp2);
33998 {
33999 PyThreadState* __tstate = wxPyBeginAllowThreads();
34000 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34001 wxPyEndAllowThreads(__tstate);
34002 if (PyErr_Occurred()) SWIG_fail;
34003 }
34004 resultobj = SWIG_From_int(static_cast< int >(result));
34005 return resultobj;
34006fail:
34007 return NULL;
34008}
34009
34010
0085ce49
RD
34011SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34012 PyObject *resultobj = 0;
34013 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34014 wxWindow *arg2 = (wxWindow *) 0 ;
34015 wxDC *arg3 = 0 ;
34016 wxRect *arg4 = 0 ;
34017 int arg5 = (int) 0 ;
34018 void *argp1 = 0 ;
34019 int res1 = 0 ;
34020 void *argp2 = 0 ;
34021 int res2 = 0 ;
34022 void *argp3 = 0 ;
34023 int res3 = 0 ;
34024 wxRect temp4 ;
34025 int val5 ;
34026 int ecode5 = 0 ;
34027 PyObject * obj0 = 0 ;
34028 PyObject * obj1 = 0 ;
34029 PyObject * obj2 = 0 ;
34030 PyObject * obj3 = 0 ;
34031 PyObject * obj4 = 0 ;
34032 char * kwnames[] = {
34033 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34034 };
34035
34036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34038 if (!SWIG_IsOK(res1)) {
34039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34040 }
34041 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34043 if (!SWIG_IsOK(res2)) {
34044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34045 }
34046 arg2 = reinterpret_cast< wxWindow * >(argp2);
34047 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34048 if (!SWIG_IsOK(res3)) {
34049 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34050 }
34051 if (!argp3) {
34052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34053 }
34054 arg3 = reinterpret_cast< wxDC * >(argp3);
34055 {
34056 arg4 = &temp4;
34057 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34058 }
34059 if (obj4) {
34060 ecode5 = SWIG_AsVal_int(obj4, &val5);
34061 if (!SWIG_IsOK(ecode5)) {
34062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34063 }
34064 arg5 = static_cast< int >(val5);
34065 }
34066 {
34067 PyThreadState* __tstate = wxPyBeginAllowThreads();
34068 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34069 wxPyEndAllowThreads(__tstate);
34070 if (PyErr_Occurred()) SWIG_fail;
34071 }
34072 resultobj = SWIG_Py_Void();
34073 return resultobj;
34074fail:
34075 return NULL;
34076}
34077
34078
34079SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34080 PyObject *resultobj = 0;
34081 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34082 wxWindow *arg2 = (wxWindow *) 0 ;
34083 wxDC *arg3 = 0 ;
34084 wxRect *arg4 = 0 ;
34085 int arg5 = (int) 0 ;
34086 void *argp1 = 0 ;
34087 int res1 = 0 ;
34088 void *argp2 = 0 ;
34089 int res2 = 0 ;
34090 void *argp3 = 0 ;
34091 int res3 = 0 ;
34092 wxRect temp4 ;
34093 int val5 ;
34094 int ecode5 = 0 ;
34095 PyObject * obj0 = 0 ;
34096 PyObject * obj1 = 0 ;
34097 PyObject * obj2 = 0 ;
34098 PyObject * obj3 = 0 ;
34099 PyObject * obj4 = 0 ;
34100 char * kwnames[] = {
34101 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34102 };
34103
34104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34106 if (!SWIG_IsOK(res1)) {
34107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34108 }
34109 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34111 if (!SWIG_IsOK(res2)) {
34112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34113 }
34114 arg2 = reinterpret_cast< wxWindow * >(argp2);
34115 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34116 if (!SWIG_IsOK(res3)) {
34117 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34118 }
34119 if (!argp3) {
34120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34121 }
34122 arg3 = reinterpret_cast< wxDC * >(argp3);
34123 {
34124 arg4 = &temp4;
34125 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34126 }
34127 if (obj4) {
34128 ecode5 = SWIG_AsVal_int(obj4, &val5);
34129 if (!SWIG_IsOK(ecode5)) {
34130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34131 }
34132 arg5 = static_cast< int >(val5);
34133 }
34134 {
34135 PyThreadState* __tstate = wxPyBeginAllowThreads();
34136 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34137 wxPyEndAllowThreads(__tstate);
34138 if (PyErr_Occurred()) SWIG_fail;
34139 }
34140 resultobj = SWIG_Py_Void();
34141 return resultobj;
34142fail:
34143 return NULL;
34144}
34145
34146
34147SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34148 PyObject *resultobj = 0;
34149 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34150 wxWindow *arg2 = (wxWindow *) 0 ;
34151 wxDC *arg3 = 0 ;
34152 wxSize *arg4 = 0 ;
34153 int arg5 ;
34154 wxOrientation arg6 ;
34155 int arg7 = (int) 0 ;
34156 void *argp1 = 0 ;
34157 int res1 = 0 ;
34158 void *argp2 = 0 ;
34159 int res2 = 0 ;
34160 void *argp3 = 0 ;
34161 int res3 = 0 ;
34162 wxSize temp4 ;
34163 int val5 ;
34164 int ecode5 = 0 ;
34165 int val6 ;
34166 int ecode6 = 0 ;
34167 int val7 ;
34168 int ecode7 = 0 ;
34169 PyObject * obj0 = 0 ;
34170 PyObject * obj1 = 0 ;
34171 PyObject * obj2 = 0 ;
34172 PyObject * obj3 = 0 ;
34173 PyObject * obj4 = 0 ;
34174 PyObject * obj5 = 0 ;
34175 PyObject * obj6 = 0 ;
34176 char * kwnames[] = {
34177 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34178 };
34179
34180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34182 if (!SWIG_IsOK(res1)) {
34183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34184 }
34185 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34187 if (!SWIG_IsOK(res2)) {
34188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34189 }
34190 arg2 = reinterpret_cast< wxWindow * >(argp2);
34191 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34192 if (!SWIG_IsOK(res3)) {
34193 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34194 }
34195 if (!argp3) {
34196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34197 }
34198 arg3 = reinterpret_cast< wxDC * >(argp3);
34199 {
34200 arg4 = &temp4;
34201 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34202 }
34203 ecode5 = SWIG_AsVal_int(obj4, &val5);
34204 if (!SWIG_IsOK(ecode5)) {
34205 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34206 }
34207 arg5 = static_cast< int >(val5);
34208 ecode6 = SWIG_AsVal_int(obj5, &val6);
34209 if (!SWIG_IsOK(ecode6)) {
34210 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34211 }
34212 arg6 = static_cast< wxOrientation >(val6);
34213 if (obj6) {
34214 ecode7 = SWIG_AsVal_int(obj6, &val7);
34215 if (!SWIG_IsOK(ecode7)) {
34216 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34217 }
34218 arg7 = static_cast< int >(val7);
34219 }
34220 {
34221 PyThreadState* __tstate = wxPyBeginAllowThreads();
34222 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 resultobj = SWIG_Py_Void();
34227 return resultobj;
34228fail:
34229 return NULL;
34230}
34231
34232
34233SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34234 PyObject *resultobj = 0;
34235 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34236 wxWindow *arg2 = (wxWindow *) 0 ;
34237 wxDC *arg3 = 0 ;
34238 wxRect *arg4 = 0 ;
34239 int arg5 = (int) 0 ;
34240 void *argp1 = 0 ;
34241 int res1 = 0 ;
34242 void *argp2 = 0 ;
34243 int res2 = 0 ;
34244 void *argp3 = 0 ;
34245 int res3 = 0 ;
34246 wxRect temp4 ;
34247 int val5 ;
34248 int ecode5 = 0 ;
34249 PyObject * obj0 = 0 ;
34250 PyObject * obj1 = 0 ;
34251 PyObject * obj2 = 0 ;
34252 PyObject * obj3 = 0 ;
34253 PyObject * obj4 = 0 ;
34254 char * kwnames[] = {
34255 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34256 };
34257
34258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34260 if (!SWIG_IsOK(res1)) {
34261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34262 }
34263 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34265 if (!SWIG_IsOK(res2)) {
34266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34267 }
34268 arg2 = reinterpret_cast< wxWindow * >(argp2);
34269 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34270 if (!SWIG_IsOK(res3)) {
34271 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34272 }
34273 if (!argp3) {
34274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34275 }
34276 arg3 = reinterpret_cast< wxDC * >(argp3);
34277 {
34278 arg4 = &temp4;
34279 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34280 }
34281 if (obj4) {
34282 ecode5 = SWIG_AsVal_int(obj4, &val5);
34283 if (!SWIG_IsOK(ecode5)) {
34284 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34285 }
34286 arg5 = static_cast< int >(val5);
34287 }
34288 {
34289 PyThreadState* __tstate = wxPyBeginAllowThreads();
34290 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34291 wxPyEndAllowThreads(__tstate);
34292 if (PyErr_Occurred()) SWIG_fail;
34293 }
34294 resultobj = SWIG_Py_Void();
34295 return resultobj;
34296fail:
34297 return NULL;
34298}
34299
34300
34301SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34302 PyObject *resultobj = 0;
34303 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34304 wxWindow *arg2 = (wxWindow *) 0 ;
34305 wxDC *arg3 = 0 ;
34306 wxRect *arg4 = 0 ;
34307 int arg5 = (int) 0 ;
34308 void *argp1 = 0 ;
34309 int res1 = 0 ;
34310 void *argp2 = 0 ;
34311 int res2 = 0 ;
34312 void *argp3 = 0 ;
34313 int res3 = 0 ;
34314 wxRect temp4 ;
34315 int val5 ;
34316 int ecode5 = 0 ;
34317 PyObject * obj0 = 0 ;
34318 PyObject * obj1 = 0 ;
34319 PyObject * obj2 = 0 ;
34320 PyObject * obj3 = 0 ;
34321 PyObject * obj4 = 0 ;
34322 char * kwnames[] = {
34323 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34324 };
34325
34326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34328 if (!SWIG_IsOK(res1)) {
34329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34330 }
34331 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34332 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34333 if (!SWIG_IsOK(res2)) {
34334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34335 }
34336 arg2 = reinterpret_cast< wxWindow * >(argp2);
34337 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34338 if (!SWIG_IsOK(res3)) {
34339 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34340 }
34341 if (!argp3) {
34342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34343 }
34344 arg3 = reinterpret_cast< wxDC * >(argp3);
34345 {
34346 arg4 = &temp4;
34347 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34348 }
34349 if (obj4) {
34350 ecode5 = SWIG_AsVal_int(obj4, &val5);
34351 if (!SWIG_IsOK(ecode5)) {
34352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34353 }
34354 arg5 = static_cast< int >(val5);
34355 }
34356 {
34357 PyThreadState* __tstate = wxPyBeginAllowThreads();
34358 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34359 wxPyEndAllowThreads(__tstate);
34360 if (PyErr_Occurred()) SWIG_fail;
34361 }
34362 resultobj = SWIG_Py_Void();
34363 return resultobj;
34364fail:
34365 return NULL;
34366}
34367
34368
01f6b6d3
RD
34369SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34370 PyObject *resultobj = 0;
34371 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34372 wxWindow *arg2 = (wxWindow *) 0 ;
34373 wxDC *arg3 = 0 ;
34374 wxRect *arg4 = 0 ;
34375 int arg5 = (int) 0 ;
34376 void *argp1 = 0 ;
34377 int res1 = 0 ;
34378 void *argp2 = 0 ;
34379 int res2 = 0 ;
34380 void *argp3 = 0 ;
34381 int res3 = 0 ;
34382 wxRect temp4 ;
34383 int val5 ;
34384 int ecode5 = 0 ;
34385 PyObject * obj0 = 0 ;
34386 PyObject * obj1 = 0 ;
34387 PyObject * obj2 = 0 ;
34388 PyObject * obj3 = 0 ;
34389 PyObject * obj4 = 0 ;
34390 char * kwnames[] = {
34391 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34392 };
34393
34394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34396 if (!SWIG_IsOK(res1)) {
34397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34398 }
34399 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34401 if (!SWIG_IsOK(res2)) {
34402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34403 }
34404 arg2 = reinterpret_cast< wxWindow * >(argp2);
34405 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34406 if (!SWIG_IsOK(res3)) {
34407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34408 }
34409 if (!argp3) {
34410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34411 }
34412 arg3 = reinterpret_cast< wxDC * >(argp3);
34413 {
34414 arg4 = &temp4;
34415 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34416 }
34417 if (obj4) {
34418 ecode5 = SWIG_AsVal_int(obj4, &val5);
34419 if (!SWIG_IsOK(ecode5)) {
34420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34421 }
34422 arg5 = static_cast< int >(val5);
34423 }
34424 {
34425 PyThreadState* __tstate = wxPyBeginAllowThreads();
34426 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34427 wxPyEndAllowThreads(__tstate);
34428 if (PyErr_Occurred()) SWIG_fail;
34429 }
34430 resultobj = SWIG_Py_Void();
34431 return resultobj;
34432fail:
34433 return NULL;
34434}
34435
34436
34437SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34438 PyObject *resultobj = 0;
34439 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34440 wxWindow *arg2 = (wxWindow *) 0 ;
34441 wxDC *arg3 = 0 ;
34442 wxRect *arg4 = 0 ;
34443 int arg5 = (int) 0 ;
34444 void *argp1 = 0 ;
34445 int res1 = 0 ;
34446 void *argp2 = 0 ;
34447 int res2 = 0 ;
34448 void *argp3 = 0 ;
34449 int res3 = 0 ;
34450 wxRect temp4 ;
34451 int val5 ;
34452 int ecode5 = 0 ;
34453 PyObject * obj0 = 0 ;
34454 PyObject * obj1 = 0 ;
34455 PyObject * obj2 = 0 ;
34456 PyObject * obj3 = 0 ;
34457 PyObject * obj4 = 0 ;
34458 char * kwnames[] = {
34459 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34460 };
34461
34462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34464 if (!SWIG_IsOK(res1)) {
34465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34466 }
34467 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34468 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34469 if (!SWIG_IsOK(res2)) {
34470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34471 }
34472 arg2 = reinterpret_cast< wxWindow * >(argp2);
34473 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34474 if (!SWIG_IsOK(res3)) {
34475 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34476 }
34477 if (!argp3) {
34478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34479 }
34480 arg3 = reinterpret_cast< wxDC * >(argp3);
34481 {
34482 arg4 = &temp4;
34483 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34484 }
34485 if (obj4) {
34486 ecode5 = SWIG_AsVal_int(obj4, &val5);
34487 if (!SWIG_IsOK(ecode5)) {
34488 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34489 }
34490 arg5 = static_cast< int >(val5);
34491 }
34492 {
34493 PyThreadState* __tstate = wxPyBeginAllowThreads();
34494 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34495 wxPyEndAllowThreads(__tstate);
34496 if (PyErr_Occurred()) SWIG_fail;
34497 }
34498 resultobj = SWIG_Py_Void();
34499 return resultobj;
34500fail:
34501 return NULL;
34502}
34503
34504
34505SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
34506 PyObject *resultobj = 0;
34507 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34508 wxWindow *arg2 = (wxWindow *) 0 ;
34509 wxDC *arg3 = 0 ;
34510 wxRect *arg4 = 0 ;
34511 int arg5 = (int) 0 ;
34512 void *argp1 = 0 ;
34513 int res1 = 0 ;
34514 void *argp2 = 0 ;
34515 int res2 = 0 ;
34516 void *argp3 = 0 ;
34517 int res3 = 0 ;
34518 wxRect temp4 ;
34519 int val5 ;
34520 int ecode5 = 0 ;
34521 PyObject * obj0 = 0 ;
34522 PyObject * obj1 = 0 ;
34523 PyObject * obj2 = 0 ;
34524 PyObject * obj3 = 0 ;
34525 PyObject * obj4 = 0 ;
34526 char * kwnames[] = {
34527 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34528 };
34529
01f6b6d3 34530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
34531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34532 if (!SWIG_IsOK(res1)) {
01f6b6d3 34533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
34534 }
34535 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34537 if (!SWIG_IsOK(res2)) {
01f6b6d3 34538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
34539 }
34540 arg2 = reinterpret_cast< wxWindow * >(argp2);
34541 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34542 if (!SWIG_IsOK(res3)) {
01f6b6d3 34543 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34544 }
34545 if (!argp3) {
01f6b6d3 34546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34547 }
34548 arg3 = reinterpret_cast< wxDC * >(argp3);
34549 {
34550 arg4 = &temp4;
34551 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34552 }
34553 if (obj4) {
34554 ecode5 = SWIG_AsVal_int(obj4, &val5);
34555 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 34556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
34557 }
34558 arg5 = static_cast< int >(val5);
34559 }
34560 {
34561 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 34562 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
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
0085ce49
RD
34573SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34574 PyObject *resultobj = 0;
34575 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34576 wxWindow *arg2 = (wxWindow *) 0 ;
34577 SwigValueWrapper<wxSplitterRenderParams > result;
34578 void *argp1 = 0 ;
34579 int res1 = 0 ;
34580 void *argp2 = 0 ;
34581 int res2 = 0 ;
34582 PyObject * obj0 = 0 ;
34583 PyObject * obj1 = 0 ;
34584 char * kwnames[] = {
34585 (char *) "self",(char *) "win", NULL
34586 };
34587
34588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34590 if (!SWIG_IsOK(res1)) {
34591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34592 }
34593 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34595 if (!SWIG_IsOK(res2)) {
34596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34597 }
34598 arg2 = reinterpret_cast< wxWindow * >(argp2);
34599 {
34600 PyThreadState* __tstate = wxPyBeginAllowThreads();
34601 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34602 wxPyEndAllowThreads(__tstate);
34603 if (PyErr_Occurred()) SWIG_fail;
34604 }
34605 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34606 return resultobj;
34607fail:
34608 return NULL;
34609}
34610
34611
34612SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34613 PyObject *resultobj = 0;
34614 wxRendererNative *result = 0 ;
34615
34616 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34617 {
704eda0c 34618 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34619 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 34620 {
0085ce49
RD
34621 wxRendererNative &_result_ref = wxRendererNative::Get();
34622 result = (wxRendererNative *) &_result_ref;
093d3ff1 34623 }
0085ce49
RD
34624 wxPyEndAllowThreads(__tstate);
34625 if (PyErr_Occurred()) SWIG_fail;
34626 }
34627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34628 return resultobj;
34629fail:
34630 return NULL;
34631}
34632
34633
34634SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34635 PyObject *resultobj = 0;
34636 wxRendererNative *result = 0 ;
34637
34638 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34639 {
704eda0c 34640 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34642 {
0085ce49
RD
34643 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34644 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34645 }
0085ce49
RD
34646 wxPyEndAllowThreads(__tstate);
34647 if (PyErr_Occurred()) SWIG_fail;
34648 }
34649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34650 return resultobj;
34651fail:
34652 return NULL;
34653}
34654
34655
34656SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34657 PyObject *resultobj = 0;
34658 wxRendererNative *result = 0 ;
34659
34660 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34661 {
704eda0c 34662 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34663 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34664 {
0085ce49
RD
34665 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34666 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34667 }
0085ce49
RD
34668 wxPyEndAllowThreads(__tstate);
34669 if (PyErr_Occurred()) SWIG_fail;
34670 }
34671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34672 return resultobj;
34673fail:
34674 return NULL;
34675}
34676
34677
34678SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34679 PyObject *resultobj = 0;
34680 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34681 wxRendererNative *result = 0 ;
34682 void *argp1 = 0 ;
34683 int res1 = 0 ;
34684 PyObject * obj0 = 0 ;
34685 char * kwnames[] = {
34686 (char *) "renderer", NULL
34687 };
34688
34689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34691 if (!SWIG_IsOK(res1)) {
34692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34693 }
34694 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34695 {
704eda0c 34696 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
34697 PyThreadState* __tstate = wxPyBeginAllowThreads();
34698 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34699 wxPyEndAllowThreads(__tstate);
34700 if (PyErr_Occurred()) SWIG_fail;
34701 }
34702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34703 return resultobj;
34704fail:
34705 return NULL;
34706}
34707
34708
34709SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34710 PyObject *resultobj = 0;
34711 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34712 SwigValueWrapper<wxRendererVersion > result;
34713 void *argp1 = 0 ;
34714 int res1 = 0 ;
34715 PyObject *swig_obj[1] ;
34716
34717 if (!args) SWIG_fail;
34718 swig_obj[0] = args;
34719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34722 }
34723 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34724 {
34725 PyThreadState* __tstate = wxPyBeginAllowThreads();
34726 result = ((wxRendererNative const *)arg1)->GetVersion();
34727 wxPyEndAllowThreads(__tstate);
34728 if (PyErr_Occurred()) SWIG_fail;
34729 }
34730 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34731 return resultobj;
34732fail:
34733 return NULL;
34734}
34735
34736
34737SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34738 PyObject *obj;
34739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34740 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34741 return SWIG_Py_Void();
34742}
34743
27e45892
RD
34744SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34745 PyObject *resultobj = 0;
34746 wxPseudoDC *result = 0 ;
34747
34748 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34749 {
34750 PyThreadState* __tstate = wxPyBeginAllowThreads();
34751 result = (wxPseudoDC *)new wxPseudoDC();
34752 wxPyEndAllowThreads(__tstate);
34753 if (PyErr_Occurred()) SWIG_fail;
34754 }
34755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34756 return resultobj;
34757fail:
34758 return NULL;
34759}
34760
34761
34762SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34763 PyObject *resultobj = 0;
34764 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34765 void *argp1 = 0 ;
34766 int res1 = 0 ;
34767 PyObject *swig_obj[1] ;
34768
34769 if (!args) SWIG_fail;
34770 swig_obj[0] = args;
34771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34772 if (!SWIG_IsOK(res1)) {
34773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34774 }
34775 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34776 {
34777 PyThreadState* __tstate = wxPyBeginAllowThreads();
34778 (arg1)->BeginDrawing();
34779 wxPyEndAllowThreads(__tstate);
34780 if (PyErr_Occurred()) SWIG_fail;
34781 }
34782 resultobj = SWIG_Py_Void();
34783 return resultobj;
34784fail:
34785 return NULL;
34786}
34787
34788
34789SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34790 PyObject *resultobj = 0;
34791 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34792 void *argp1 = 0 ;
34793 int res1 = 0 ;
34794 PyObject *swig_obj[1] ;
34795
34796 if (!args) SWIG_fail;
34797 swig_obj[0] = args;
34798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34799 if (!SWIG_IsOK(res1)) {
34800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34801 }
34802 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34803 {
34804 PyThreadState* __tstate = wxPyBeginAllowThreads();
34805 (arg1)->EndDrawing();
34806 wxPyEndAllowThreads(__tstate);
34807 if (PyErr_Occurred()) SWIG_fail;
34808 }
34809 resultobj = SWIG_Py_Void();
34810 return resultobj;
34811fail:
34812 return NULL;
34813}
34814
34815
34816SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34817 PyObject *resultobj = 0;
34818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 PyObject *swig_obj[1] ;
34822
34823 if (!args) SWIG_fail;
34824 swig_obj[0] = args;
34825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34826 if (!SWIG_IsOK(res1)) {
34827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34828 }
34829 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34830 {
34831 PyThreadState* __tstate = wxPyBeginAllowThreads();
34832 delete arg1;
34833
34834 wxPyEndAllowThreads(__tstate);
34835 if (PyErr_Occurred()) SWIG_fail;
34836 }
34837 resultobj = SWIG_Py_Void();
34838 return resultobj;
34839fail:
34840 return NULL;
34841}
34842
34843
34844SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34845 PyObject *resultobj = 0;
34846 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34847 void *argp1 = 0 ;
34848 int res1 = 0 ;
34849 PyObject *swig_obj[1] ;
34850
34851 if (!args) SWIG_fail;
34852 swig_obj[0] = args;
34853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34854 if (!SWIG_IsOK(res1)) {
34855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34856 }
34857 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34858 {
34859 PyThreadState* __tstate = wxPyBeginAllowThreads();
34860 (arg1)->RemoveAll();
34861 wxPyEndAllowThreads(__tstate);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 resultobj = SWIG_Py_Void();
34865 return resultobj;
34866fail:
34867 return NULL;
34868}
34869
34870
34871SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34872 PyObject *resultobj = 0;
34873 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34874 int result;
34875 void *argp1 = 0 ;
34876 int res1 = 0 ;
34877 PyObject *swig_obj[1] ;
34878
34879 if (!args) SWIG_fail;
34880 swig_obj[0] = args;
34881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34882 if (!SWIG_IsOK(res1)) {
34883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34884 }
34885 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34886 {
34887 PyThreadState* __tstate = wxPyBeginAllowThreads();
34888 result = (int)(arg1)->GetLen();
34889 wxPyEndAllowThreads(__tstate);
34890 if (PyErr_Occurred()) SWIG_fail;
34891 }
34892 resultobj = SWIG_From_int(static_cast< int >(result));
34893 return resultobj;
34894fail:
34895 return NULL;
34896}
34897
34898
34899SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34900 PyObject *resultobj = 0;
34901 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34902 int arg2 ;
34903 void *argp1 = 0 ;
34904 int res1 = 0 ;
34905 int val2 ;
34906 int ecode2 = 0 ;
34907 PyObject * obj0 = 0 ;
34908 PyObject * obj1 = 0 ;
34909 char * kwnames[] = {
34910 (char *) "self",(char *) "id", NULL
34911 };
34912
34913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
34914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34915 if (!SWIG_IsOK(res1)) {
34916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34917 }
34918 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34919 ecode2 = SWIG_AsVal_int(obj1, &val2);
34920 if (!SWIG_IsOK(ecode2)) {
34921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
34922 }
34923 arg2 = static_cast< int >(val2);
34924 {
34925 PyThreadState* __tstate = wxPyBeginAllowThreads();
34926 (arg1)->SetId(arg2);
34927 wxPyEndAllowThreads(__tstate);
34928 if (PyErr_Occurred()) SWIG_fail;
34929 }
34930 resultobj = SWIG_Py_Void();
34931 return resultobj;
34932fail:
34933 return NULL;
34934}
34935
34936
34937SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34938 PyObject *resultobj = 0;
34939 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34940 int arg2 ;
34941 void *argp1 = 0 ;
34942 int res1 = 0 ;
34943 int val2 ;
34944 int ecode2 = 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34947 char * kwnames[] = {
34948 (char *) "self",(char *) "id", NULL
34949 };
34950
34951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
34952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34953 if (!SWIG_IsOK(res1)) {
34954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34955 }
34956 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34957 ecode2 = SWIG_AsVal_int(obj1, &val2);
34958 if (!SWIG_IsOK(ecode2)) {
34959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
34960 }
34961 arg2 = static_cast< int >(val2);
34962 {
34963 PyThreadState* __tstate = wxPyBeginAllowThreads();
34964 (arg1)->ClearId(arg2);
34965 wxPyEndAllowThreads(__tstate);
34966 if (PyErr_Occurred()) SWIG_fail;
34967 }
34968 resultobj = SWIG_Py_Void();
34969 return resultobj;
34970fail:
34971 return NULL;
34972}
34973
34974
34975SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34976 PyObject *resultobj = 0;
34977 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34978 int arg2 ;
34979 void *argp1 = 0 ;
34980 int res1 = 0 ;
34981 int val2 ;
34982 int ecode2 = 0 ;
34983 PyObject * obj0 = 0 ;
34984 PyObject * obj1 = 0 ;
34985 char * kwnames[] = {
34986 (char *) "self",(char *) "id", NULL
34987 };
34988
34989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
34990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34991 if (!SWIG_IsOK(res1)) {
34992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34993 }
34994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34995 ecode2 = SWIG_AsVal_int(obj1, &val2);
34996 if (!SWIG_IsOK(ecode2)) {
34997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
34998 }
34999 arg2 = static_cast< int >(val2);
35000 {
35001 PyThreadState* __tstate = wxPyBeginAllowThreads();
35002 (arg1)->RemoveId(arg2);
35003 wxPyEndAllowThreads(__tstate);
35004 if (PyErr_Occurred()) SWIG_fail;
35005 }
35006 resultobj = SWIG_Py_Void();
35007 return resultobj;
35008fail:
35009 return NULL;
35010}
35011
35012
35013SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35014 PyObject *resultobj = 0;
35015 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35016 int arg2 ;
35017 int arg3 ;
35018 int arg4 ;
35019 void *argp1 = 0 ;
35020 int res1 = 0 ;
35021 int val2 ;
35022 int ecode2 = 0 ;
35023 int val3 ;
35024 int ecode3 = 0 ;
35025 int val4 ;
35026 int ecode4 = 0 ;
35027 PyObject * obj0 = 0 ;
35028 PyObject * obj1 = 0 ;
35029 PyObject * obj2 = 0 ;
35030 PyObject * obj3 = 0 ;
35031 char * kwnames[] = {
35032 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35033 };
35034
35035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35037 if (!SWIG_IsOK(res1)) {
35038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35039 }
35040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35041 ecode2 = SWIG_AsVal_int(obj1, &val2);
35042 if (!SWIG_IsOK(ecode2)) {
35043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35044 }
35045 arg2 = static_cast< int >(val2);
35046 ecode3 = SWIG_AsVal_int(obj2, &val3);
35047 if (!SWIG_IsOK(ecode3)) {
35048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35049 }
35050 arg3 = static_cast< int >(val3);
35051 ecode4 = SWIG_AsVal_int(obj3, &val4);
35052 if (!SWIG_IsOK(ecode4)) {
35053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35054 }
35055 arg4 = static_cast< int >(val4);
35056 {
35057 PyThreadState* __tstate = wxPyBeginAllowThreads();
35058 (arg1)->TranslateId(arg2,arg3,arg4);
35059 wxPyEndAllowThreads(__tstate);
35060 if (PyErr_Occurred()) SWIG_fail;
35061 }
35062 resultobj = SWIG_Py_Void();
35063 return resultobj;
35064fail:
35065 return NULL;
35066}
35067
35068
72ef6efb
RD
35069SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35070 PyObject *resultobj = 0;
35071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35072 int arg2 ;
35073 bool arg3 = (bool) true ;
35074 void *argp1 = 0 ;
35075 int res1 = 0 ;
35076 int val2 ;
35077 int ecode2 = 0 ;
35078 bool val3 ;
35079 int ecode3 = 0 ;
35080 PyObject * obj0 = 0 ;
35081 PyObject * obj1 = 0 ;
35082 PyObject * obj2 = 0 ;
35083 char * kwnames[] = {
35084 (char *) "self",(char *) "id",(char *) "greyout", NULL
35085 };
35086
35087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35089 if (!SWIG_IsOK(res1)) {
35090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35091 }
35092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35093 ecode2 = SWIG_AsVal_int(obj1, &val2);
35094 if (!SWIG_IsOK(ecode2)) {
35095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35096 }
35097 arg2 = static_cast< int >(val2);
35098 if (obj2) {
35099 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35100 if (!SWIG_IsOK(ecode3)) {
35101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35102 }
35103 arg3 = static_cast< bool >(val3);
35104 }
35105 {
35106 PyThreadState* __tstate = wxPyBeginAllowThreads();
35107 (arg1)->SetIdGreyedOut(arg2,arg3);
35108 wxPyEndAllowThreads(__tstate);
35109 if (PyErr_Occurred()) SWIG_fail;
35110 }
35111 resultobj = SWIG_Py_Void();
35112 return resultobj;
35113fail:
35114 return NULL;
35115}
35116
35117
35118SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35119 PyObject *resultobj = 0;
35120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35121 int arg2 ;
35122 bool result;
35123 void *argp1 = 0 ;
35124 int res1 = 0 ;
35125 int val2 ;
35126 int ecode2 = 0 ;
35127 PyObject * obj0 = 0 ;
35128 PyObject * obj1 = 0 ;
35129 char * kwnames[] = {
35130 (char *) "self",(char *) "id", NULL
35131 };
35132
35133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35135 if (!SWIG_IsOK(res1)) {
35136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35137 }
35138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35139 ecode2 = SWIG_AsVal_int(obj1, &val2);
35140 if (!SWIG_IsOK(ecode2)) {
35141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35142 }
35143 arg2 = static_cast< int >(val2);
35144 {
35145 PyThreadState* __tstate = wxPyBeginAllowThreads();
35146 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35147 wxPyEndAllowThreads(__tstate);
35148 if (PyErr_Occurred()) SWIG_fail;
35149 }
35150 {
35151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35152 }
35153 return resultobj;
35154fail:
35155 return NULL;
35156}
35157
35158
35159SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35160 PyObject *resultobj = 0;
35161 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35162 int arg2 ;
35163 int arg3 ;
35164 int arg4 = (int) 1 ;
35165 wxColor const &arg5_defvalue = *wxWHITE ;
35166 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35167 PyObject *result = 0 ;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 int val2 ;
35171 int ecode2 = 0 ;
35172 int val3 ;
35173 int ecode3 = 0 ;
35174 int val4 ;
35175 int ecode4 = 0 ;
35176 void *argp5 = 0 ;
35177 int res5 = 0 ;
35178 PyObject * obj0 = 0 ;
35179 PyObject * obj1 = 0 ;
35180 PyObject * obj2 = 0 ;
35181 PyObject * obj3 = 0 ;
35182 PyObject * obj4 = 0 ;
35183 char * kwnames[] = {
35184 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35185 };
35186
35187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35189 if (!SWIG_IsOK(res1)) {
35190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35191 }
35192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35193 ecode2 = SWIG_AsVal_int(obj1, &val2);
35194 if (!SWIG_IsOK(ecode2)) {
35195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35196 }
35197 arg2 = static_cast< int >(val2);
35198 ecode3 = SWIG_AsVal_int(obj2, &val3);
35199 if (!SWIG_IsOK(ecode3)) {
35200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35201 }
35202 arg3 = static_cast< int >(val3);
35203 if (obj3) {
35204 ecode4 = SWIG_AsVal_int(obj3, &val4);
35205 if (!SWIG_IsOK(ecode4)) {
35206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35207 }
35208 arg4 = static_cast< int >(val4);
35209 }
35210 if (obj4) {
35211 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35212 if (!SWIG_IsOK(res5)) {
35213 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35214 }
35215 if (!argp5) {
35216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35217 }
35218 arg5 = reinterpret_cast< wxColor * >(argp5);
35219 }
35220 {
35221 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35222 if (PyErr_Occurred()) SWIG_fail;
35223 }
35224 resultobj = result;
35225 return resultobj;
35226fail:
35227 return NULL;
35228}
35229
35230
35231SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35232 PyObject *resultobj = 0;
35233 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35234 int arg2 ;
35235 int arg3 ;
35236 PyObject *result = 0 ;
35237 void *argp1 = 0 ;
35238 int res1 = 0 ;
35239 int val2 ;
35240 int ecode2 = 0 ;
35241 int val3 ;
35242 int ecode3 = 0 ;
35243 PyObject * obj0 = 0 ;
35244 PyObject * obj1 = 0 ;
35245 PyObject * obj2 = 0 ;
35246 char * kwnames[] = {
35247 (char *) "self",(char *) "x",(char *) "y", NULL
35248 };
35249
35250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35252 if (!SWIG_IsOK(res1)) {
35253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35254 }
35255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35256 ecode2 = SWIG_AsVal_int(obj1, &val2);
35257 if (!SWIG_IsOK(ecode2)) {
35258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35259 }
35260 arg2 = static_cast< int >(val2);
35261 ecode3 = SWIG_AsVal_int(obj2, &val3);
35262 if (!SWIG_IsOK(ecode3)) {
35263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35264 }
35265 arg3 = static_cast< int >(val3);
35266 {
35267 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = result;
35271 return resultobj;
35272fail:
35273 return NULL;
35274}
35275
35276
27e45892
RD
35277SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35280 int arg2 ;
35281 wxDC *arg3 = (wxDC *) 0 ;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 int val2 ;
35285 int ecode2 = 0 ;
35286 void *argp3 = 0 ;
35287 int res3 = 0 ;
35288 PyObject * obj0 = 0 ;
35289 PyObject * obj1 = 0 ;
35290 PyObject * obj2 = 0 ;
35291 char * kwnames[] = {
35292 (char *) "self",(char *) "id",(char *) "dc", NULL
35293 };
35294
35295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35297 if (!SWIG_IsOK(res1)) {
35298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35299 }
35300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35301 ecode2 = SWIG_AsVal_int(obj1, &val2);
35302 if (!SWIG_IsOK(ecode2)) {
35303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35304 }
35305 arg2 = static_cast< int >(val2);
35306 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35307 if (!SWIG_IsOK(res3)) {
35308 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35309 }
35310 arg3 = reinterpret_cast< wxDC * >(argp3);
35311 {
35312 PyThreadState* __tstate = wxPyBeginAllowThreads();
35313 (arg1)->DrawIdToDC(arg2,arg3);
35314 wxPyEndAllowThreads(__tstate);
35315 if (PyErr_Occurred()) SWIG_fail;
35316 }
35317 resultobj = SWIG_Py_Void();
35318 return resultobj;
35319fail:
35320 return NULL;
35321}
35322
35323
35324SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35325 PyObject *resultobj = 0;
35326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35327 int arg2 ;
35328 wxRect *arg3 = 0 ;
35329 void *argp1 = 0 ;
35330 int res1 = 0 ;
35331 int val2 ;
35332 int ecode2 = 0 ;
35333 wxRect temp3 ;
35334 PyObject * obj0 = 0 ;
35335 PyObject * obj1 = 0 ;
35336 PyObject * obj2 = 0 ;
35337 char * kwnames[] = {
35338 (char *) "self",(char *) "id",(char *) "rect", NULL
35339 };
35340
35341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35343 if (!SWIG_IsOK(res1)) {
35344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35345 }
35346 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35347 ecode2 = SWIG_AsVal_int(obj1, &val2);
35348 if (!SWIG_IsOK(ecode2)) {
35349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35350 }
35351 arg2 = static_cast< int >(val2);
35352 {
35353 arg3 = &temp3;
35354 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35355 }
35356 {
35357 PyThreadState* __tstate = wxPyBeginAllowThreads();
35358 (arg1)->SetIdBounds(arg2,*arg3);
35359 wxPyEndAllowThreads(__tstate);
35360 if (PyErr_Occurred()) SWIG_fail;
35361 }
35362 resultobj = SWIG_Py_Void();
35363 return resultobj;
35364fail:
35365 return NULL;
35366}
35367
35368
35369SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35370 PyObject *resultobj = 0;
35371 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35372 int arg2 ;
35373 wxRect result;
35374 void *argp1 = 0 ;
35375 int res1 = 0 ;
35376 int val2 ;
35377 int ecode2 = 0 ;
35378 PyObject * obj0 = 0 ;
35379 PyObject * obj1 = 0 ;
35380 char * kwnames[] = {
35381 (char *) "self",(char *) "id", NULL
35382 };
35383
35384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35386 if (!SWIG_IsOK(res1)) {
35387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35388 }
35389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35390 ecode2 = SWIG_AsVal_int(obj1, &val2);
35391 if (!SWIG_IsOK(ecode2)) {
35392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35393 }
35394 arg2 = static_cast< int >(val2);
35395 {
35396 PyThreadState* __tstate = wxPyBeginAllowThreads();
35397 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35398 wxPyEndAllowThreads(__tstate);
35399 if (PyErr_Occurred()) SWIG_fail;
35400 }
35401 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35402 return resultobj;
35403fail:
35404 return NULL;
35405}
35406
35407
35408SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35409 PyObject *resultobj = 0;
35410 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35411 wxDC *arg2 = (wxDC *) 0 ;
35412 wxRect *arg3 = 0 ;
35413 void *argp1 = 0 ;
35414 int res1 = 0 ;
35415 void *argp2 = 0 ;
35416 int res2 = 0 ;
35417 wxRect temp3 ;
35418 PyObject * obj0 = 0 ;
35419 PyObject * obj1 = 0 ;
35420 PyObject * obj2 = 0 ;
35421 char * kwnames[] = {
35422 (char *) "self",(char *) "dc",(char *) "rect", NULL
35423 };
35424
35425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35427 if (!SWIG_IsOK(res1)) {
35428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35429 }
35430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35431 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35432 if (!SWIG_IsOK(res2)) {
35433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35434 }
35435 arg2 = reinterpret_cast< wxDC * >(argp2);
35436 {
35437 arg3 = &temp3;
35438 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35439 }
35440 {
35441 PyThreadState* __tstate = wxPyBeginAllowThreads();
35442 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35443 wxPyEndAllowThreads(__tstate);
35444 if (PyErr_Occurred()) SWIG_fail;
35445 }
35446 resultobj = SWIG_Py_Void();
35447 return resultobj;
35448fail:
35449 return NULL;
35450}
35451
35452
35453SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35454 PyObject *resultobj = 0;
35455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35456 wxDC *arg2 = (wxDC *) 0 ;
35457 wxRegion *arg3 = 0 ;
35458 void *argp1 = 0 ;
35459 int res1 = 0 ;
35460 void *argp2 = 0 ;
35461 int res2 = 0 ;
35462 void *argp3 = 0 ;
35463 int res3 = 0 ;
35464 PyObject * obj0 = 0 ;
35465 PyObject * obj1 = 0 ;
35466 PyObject * obj2 = 0 ;
35467 char * kwnames[] = {
35468 (char *) "self",(char *) "dc",(char *) "region", NULL
35469 };
35470
35471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35473 if (!SWIG_IsOK(res1)) {
35474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35475 }
35476 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35477 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35478 if (!SWIG_IsOK(res2)) {
35479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35480 }
35481 arg2 = reinterpret_cast< wxDC * >(argp2);
35482 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35483 if (!SWIG_IsOK(res3)) {
35484 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35485 }
35486 if (!argp3) {
35487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35488 }
35489 arg3 = reinterpret_cast< wxRegion * >(argp3);
35490 {
35491 PyThreadState* __tstate = wxPyBeginAllowThreads();
35492 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35493 wxPyEndAllowThreads(__tstate);
35494 if (PyErr_Occurred()) SWIG_fail;
35495 }
35496 resultobj = SWIG_Py_Void();
35497 return resultobj;
35498fail:
35499 return NULL;
35500}
35501
35502
35503SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35504 PyObject *resultobj = 0;
35505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35506 wxDC *arg2 = (wxDC *) 0 ;
35507 void *argp1 = 0 ;
35508 int res1 = 0 ;
35509 void *argp2 = 0 ;
35510 int res2 = 0 ;
35511 PyObject * obj0 = 0 ;
35512 PyObject * obj1 = 0 ;
35513 char * kwnames[] = {
35514 (char *) "self",(char *) "dc", NULL
35515 };
35516
35517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35519 if (!SWIG_IsOK(res1)) {
35520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35521 }
35522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35524 if (!SWIG_IsOK(res2)) {
35525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35526 }
35527 arg2 = reinterpret_cast< wxDC * >(argp2);
35528 {
35529 PyThreadState* __tstate = wxPyBeginAllowThreads();
35530 (arg1)->DrawToDC(arg2);
35531 wxPyEndAllowThreads(__tstate);
35532 if (PyErr_Occurred()) SWIG_fail;
35533 }
35534 resultobj = SWIG_Py_Void();
35535 return resultobj;
35536fail:
35537 return NULL;
35538}
35539
35540
35541SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35542 PyObject *resultobj = 0;
35543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35544 int arg2 ;
35545 int arg3 ;
35546 wxColour *arg4 = 0 ;
35547 int arg5 = (int) wxFLOOD_SURFACE ;
35548 void *argp1 = 0 ;
35549 int res1 = 0 ;
35550 int val2 ;
35551 int ecode2 = 0 ;
35552 int val3 ;
35553 int ecode3 = 0 ;
35554 wxColour temp4 ;
35555 int val5 ;
35556 int ecode5 = 0 ;
35557 PyObject * obj0 = 0 ;
35558 PyObject * obj1 = 0 ;
35559 PyObject * obj2 = 0 ;
35560 PyObject * obj3 = 0 ;
35561 PyObject * obj4 = 0 ;
35562 char * kwnames[] = {
35563 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35564 };
35565
35566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35568 if (!SWIG_IsOK(res1)) {
35569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35570 }
35571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35572 ecode2 = SWIG_AsVal_int(obj1, &val2);
35573 if (!SWIG_IsOK(ecode2)) {
35574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35575 }
35576 arg2 = static_cast< int >(val2);
35577 ecode3 = SWIG_AsVal_int(obj2, &val3);
35578 if (!SWIG_IsOK(ecode3)) {
35579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35580 }
35581 arg3 = static_cast< int >(val3);
35582 {
35583 arg4 = &temp4;
35584 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35585 }
35586 if (obj4) {
35587 ecode5 = SWIG_AsVal_int(obj4, &val5);
35588 if (!SWIG_IsOK(ecode5)) {
35589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35590 }
35591 arg5 = static_cast< int >(val5);
35592 }
35593 {
35594 PyThreadState* __tstate = wxPyBeginAllowThreads();
35595 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35596 wxPyEndAllowThreads(__tstate);
35597 if (PyErr_Occurred()) SWIG_fail;
35598 }
35599 resultobj = SWIG_Py_Void();
35600 return resultobj;
35601fail:
35602 return NULL;
35603}
35604
35605
35606SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35607 PyObject *resultobj = 0;
35608 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35609 wxPoint *arg2 = 0 ;
35610 wxColour *arg3 = 0 ;
35611 int arg4 = (int) wxFLOOD_SURFACE ;
35612 void *argp1 = 0 ;
35613 int res1 = 0 ;
35614 wxPoint temp2 ;
35615 wxColour temp3 ;
35616 int val4 ;
35617 int ecode4 = 0 ;
35618 PyObject * obj0 = 0 ;
35619 PyObject * obj1 = 0 ;
35620 PyObject * obj2 = 0 ;
35621 PyObject * obj3 = 0 ;
35622 char * kwnames[] = {
35623 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35624 };
35625
35626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35628 if (!SWIG_IsOK(res1)) {
35629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35630 }
35631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35632 {
35633 arg2 = &temp2;
35634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35635 }
35636 {
35637 arg3 = &temp3;
35638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35639 }
35640 if (obj3) {
35641 ecode4 = SWIG_AsVal_int(obj3, &val4);
35642 if (!SWIG_IsOK(ecode4)) {
35643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35644 }
35645 arg4 = static_cast< int >(val4);
35646 }
35647 {
35648 PyThreadState* __tstate = wxPyBeginAllowThreads();
35649 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35650 wxPyEndAllowThreads(__tstate);
35651 if (PyErr_Occurred()) SWIG_fail;
35652 }
35653 resultobj = SWIG_Py_Void();
35654 return resultobj;
35655fail:
35656 return NULL;
35657}
35658
35659
35660SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35661 PyObject *resultobj = 0;
35662 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35663 int arg2 ;
35664 int arg3 ;
35665 int arg4 ;
35666 int arg5 ;
35667 void *argp1 = 0 ;
35668 int res1 = 0 ;
35669 int val2 ;
35670 int ecode2 = 0 ;
35671 int val3 ;
35672 int ecode3 = 0 ;
35673 int val4 ;
35674 int ecode4 = 0 ;
35675 int val5 ;
35676 int ecode5 = 0 ;
35677 PyObject * obj0 = 0 ;
35678 PyObject * obj1 = 0 ;
35679 PyObject * obj2 = 0 ;
35680 PyObject * obj3 = 0 ;
35681 PyObject * obj4 = 0 ;
35682 char * kwnames[] = {
35683 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35684 };
35685
35686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35688 if (!SWIG_IsOK(res1)) {
35689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35690 }
35691 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35692 ecode2 = SWIG_AsVal_int(obj1, &val2);
35693 if (!SWIG_IsOK(ecode2)) {
35694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35695 }
35696 arg2 = static_cast< int >(val2);
35697 ecode3 = SWIG_AsVal_int(obj2, &val3);
35698 if (!SWIG_IsOK(ecode3)) {
35699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35700 }
35701 arg3 = static_cast< int >(val3);
35702 ecode4 = SWIG_AsVal_int(obj3, &val4);
35703 if (!SWIG_IsOK(ecode4)) {
35704 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35705 }
35706 arg4 = static_cast< int >(val4);
35707 ecode5 = SWIG_AsVal_int(obj4, &val5);
35708 if (!SWIG_IsOK(ecode5)) {
35709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35710 }
35711 arg5 = static_cast< int >(val5);
35712 {
35713 PyThreadState* __tstate = wxPyBeginAllowThreads();
35714 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35715 wxPyEndAllowThreads(__tstate);
35716 if (PyErr_Occurred()) SWIG_fail;
35717 }
35718 resultobj = SWIG_Py_Void();
35719 return resultobj;
35720fail:
35721 return NULL;
35722}
35723
35724
35725SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35726 PyObject *resultobj = 0;
35727 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35728 wxPoint *arg2 = 0 ;
35729 wxPoint *arg3 = 0 ;
35730 void *argp1 = 0 ;
35731 int res1 = 0 ;
35732 wxPoint temp2 ;
35733 wxPoint temp3 ;
35734 PyObject * obj0 = 0 ;
35735 PyObject * obj1 = 0 ;
35736 PyObject * obj2 = 0 ;
35737 char * kwnames[] = {
35738 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35739 };
35740
35741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35743 if (!SWIG_IsOK(res1)) {
35744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35745 }
35746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35747 {
35748 arg2 = &temp2;
35749 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35750 }
35751 {
35752 arg3 = &temp3;
35753 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35754 }
35755 {
35756 PyThreadState* __tstate = wxPyBeginAllowThreads();
35757 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35758 wxPyEndAllowThreads(__tstate);
35759 if (PyErr_Occurred()) SWIG_fail;
35760 }
35761 resultobj = SWIG_Py_Void();
35762 return resultobj;
35763fail:
35764 return NULL;
35765}
35766
35767
35768SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35769 PyObject *resultobj = 0;
35770 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35771 int arg2 ;
35772 int arg3 ;
35773 void *argp1 = 0 ;
35774 int res1 = 0 ;
35775 int val2 ;
35776 int ecode2 = 0 ;
35777 int val3 ;
35778 int ecode3 = 0 ;
35779 PyObject * obj0 = 0 ;
35780 PyObject * obj1 = 0 ;
35781 PyObject * obj2 = 0 ;
35782 char * kwnames[] = {
35783 (char *) "self",(char *) "x",(char *) "y", NULL
35784 };
35785
35786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35788 if (!SWIG_IsOK(res1)) {
35789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35790 }
35791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35792 ecode2 = SWIG_AsVal_int(obj1, &val2);
35793 if (!SWIG_IsOK(ecode2)) {
35794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35795 }
35796 arg2 = static_cast< int >(val2);
35797 ecode3 = SWIG_AsVal_int(obj2, &val3);
35798 if (!SWIG_IsOK(ecode3)) {
35799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35800 }
35801 arg3 = static_cast< int >(val3);
35802 {
35803 PyThreadState* __tstate = wxPyBeginAllowThreads();
35804 (arg1)->CrossHair(arg2,arg3);
35805 wxPyEndAllowThreads(__tstate);
35806 if (PyErr_Occurred()) SWIG_fail;
35807 }
35808 resultobj = SWIG_Py_Void();
35809 return resultobj;
35810fail:
35811 return NULL;
35812}
35813
35814
35815SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35816 PyObject *resultobj = 0;
35817 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35818 wxPoint *arg2 = 0 ;
35819 void *argp1 = 0 ;
35820 int res1 = 0 ;
35821 wxPoint temp2 ;
35822 PyObject * obj0 = 0 ;
35823 PyObject * obj1 = 0 ;
35824 char * kwnames[] = {
35825 (char *) "self",(char *) "pt", NULL
35826 };
35827
35828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35830 if (!SWIG_IsOK(res1)) {
35831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35832 }
35833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35834 {
35835 arg2 = &temp2;
35836 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35837 }
35838 {
35839 PyThreadState* __tstate = wxPyBeginAllowThreads();
35840 (arg1)->CrossHair((wxPoint const &)*arg2);
35841 wxPyEndAllowThreads(__tstate);
35842 if (PyErr_Occurred()) SWIG_fail;
35843 }
35844 resultobj = SWIG_Py_Void();
35845 return resultobj;
35846fail:
35847 return NULL;
35848}
35849
35850
35851SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35852 PyObject *resultobj = 0;
35853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35854 int arg2 ;
35855 int arg3 ;
35856 int arg4 ;
35857 int arg5 ;
35858 int arg6 ;
35859 int arg7 ;
35860 void *argp1 = 0 ;
35861 int res1 = 0 ;
35862 int val2 ;
35863 int ecode2 = 0 ;
35864 int val3 ;
35865 int ecode3 = 0 ;
35866 int val4 ;
35867 int ecode4 = 0 ;
35868 int val5 ;
35869 int ecode5 = 0 ;
35870 int val6 ;
35871 int ecode6 = 0 ;
35872 int val7 ;
35873 int ecode7 = 0 ;
35874 PyObject * obj0 = 0 ;
35875 PyObject * obj1 = 0 ;
35876 PyObject * obj2 = 0 ;
35877 PyObject * obj3 = 0 ;
35878 PyObject * obj4 = 0 ;
35879 PyObject * obj5 = 0 ;
35880 PyObject * obj6 = 0 ;
35881 char * kwnames[] = {
35882 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35883 };
35884
35885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35887 if (!SWIG_IsOK(res1)) {
35888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35889 }
35890 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35891 ecode2 = SWIG_AsVal_int(obj1, &val2);
35892 if (!SWIG_IsOK(ecode2)) {
35893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
35894 }
35895 arg2 = static_cast< int >(val2);
35896 ecode3 = SWIG_AsVal_int(obj2, &val3);
35897 if (!SWIG_IsOK(ecode3)) {
35898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
35899 }
35900 arg3 = static_cast< int >(val3);
35901 ecode4 = SWIG_AsVal_int(obj3, &val4);
35902 if (!SWIG_IsOK(ecode4)) {
35903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
35904 }
35905 arg4 = static_cast< int >(val4);
35906 ecode5 = SWIG_AsVal_int(obj4, &val5);
35907 if (!SWIG_IsOK(ecode5)) {
35908 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
35909 }
35910 arg5 = static_cast< int >(val5);
35911 ecode6 = SWIG_AsVal_int(obj5, &val6);
35912 if (!SWIG_IsOK(ecode6)) {
35913 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
35914 }
35915 arg6 = static_cast< int >(val6);
35916 ecode7 = SWIG_AsVal_int(obj6, &val7);
35917 if (!SWIG_IsOK(ecode7)) {
35918 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
35919 }
35920 arg7 = static_cast< int >(val7);
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 resultobj = SWIG_Py_Void();
35928 return resultobj;
35929fail:
35930 return NULL;
35931}
35932
35933
35934SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj = 0;
35936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35937 wxPoint *arg2 = 0 ;
35938 wxPoint *arg3 = 0 ;
35939 wxPoint *arg4 = 0 ;
35940 void *argp1 = 0 ;
35941 int res1 = 0 ;
35942 wxPoint temp2 ;
35943 wxPoint temp3 ;
35944 wxPoint temp4 ;
35945 PyObject * obj0 = 0 ;
35946 PyObject * obj1 = 0 ;
35947 PyObject * obj2 = 0 ;
35948 PyObject * obj3 = 0 ;
35949 char * kwnames[] = {
35950 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
35951 };
35952
35953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35955 if (!SWIG_IsOK(res1)) {
35956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35957 }
35958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35959 {
35960 arg2 = &temp2;
35961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35962 }
35963 {
35964 arg3 = &temp3;
35965 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35966 }
35967 {
35968 arg4 = &temp4;
35969 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
35970 }
35971 {
35972 PyThreadState* __tstate = wxPyBeginAllowThreads();
35973 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
35974 wxPyEndAllowThreads(__tstate);
35975 if (PyErr_Occurred()) SWIG_fail;
35976 }
35977 resultobj = SWIG_Py_Void();
35978 return resultobj;
35979fail:
35980 return NULL;
35981}
35982
35983
35984SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35985 PyObject *resultobj = 0;
35986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35987 int arg2 ;
35988 int arg3 ;
35989 int arg4 ;
35990 int arg5 ;
35991 void *argp1 = 0 ;
35992 int res1 = 0 ;
35993 int val2 ;
35994 int ecode2 = 0 ;
35995 int val3 ;
35996 int ecode3 = 0 ;
35997 int val4 ;
35998 int ecode4 = 0 ;
35999 int val5 ;
36000 int ecode5 = 0 ;
36001 PyObject * obj0 = 0 ;
36002 PyObject * obj1 = 0 ;
36003 PyObject * obj2 = 0 ;
36004 PyObject * obj3 = 0 ;
36005 PyObject * obj4 = 0 ;
36006 char * kwnames[] = {
36007 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36008 };
36009
36010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36012 if (!SWIG_IsOK(res1)) {
36013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36014 }
36015 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36016 ecode2 = SWIG_AsVal_int(obj1, &val2);
36017 if (!SWIG_IsOK(ecode2)) {
36018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36019 }
36020 arg2 = static_cast< int >(val2);
36021 ecode3 = SWIG_AsVal_int(obj2, &val3);
36022 if (!SWIG_IsOK(ecode3)) {
36023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36024 }
36025 arg3 = static_cast< int >(val3);
36026 ecode4 = SWIG_AsVal_int(obj3, &val4);
36027 if (!SWIG_IsOK(ecode4)) {
36028 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36029 }
36030 arg4 = static_cast< int >(val4);
36031 ecode5 = SWIG_AsVal_int(obj4, &val5);
36032 if (!SWIG_IsOK(ecode5)) {
36033 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36034 }
36035 arg5 = static_cast< int >(val5);
36036 {
36037 PyThreadState* __tstate = wxPyBeginAllowThreads();
36038 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36039 wxPyEndAllowThreads(__tstate);
36040 if (PyErr_Occurred()) SWIG_fail;
36041 }
36042 resultobj = SWIG_Py_Void();
36043 return resultobj;
36044fail:
36045 return NULL;
36046}
36047
36048
36049SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36050 PyObject *resultobj = 0;
36051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36052 wxRect *arg2 = 0 ;
36053 void *argp1 = 0 ;
36054 int res1 = 0 ;
36055 wxRect temp2 ;
36056 PyObject * obj0 = 0 ;
36057 PyObject * obj1 = 0 ;
36058 char * kwnames[] = {
36059 (char *) "self",(char *) "rect", NULL
36060 };
36061
36062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36064 if (!SWIG_IsOK(res1)) {
36065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36066 }
36067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36068 {
36069 arg2 = &temp2;
36070 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36071 }
36072 {
36073 PyThreadState* __tstate = wxPyBeginAllowThreads();
36074 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36075 wxPyEndAllowThreads(__tstate);
36076 if (PyErr_Occurred()) SWIG_fail;
36077 }
36078 resultobj = SWIG_Py_Void();
36079 return resultobj;
36080fail:
36081 return NULL;
36082}
36083
36084
36085SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36086 PyObject *resultobj = 0;
36087 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36088 int arg2 ;
36089 int arg3 ;
36090 int arg4 ;
36091 int arg5 ;
36092 double arg6 ;
36093 double arg7 ;
36094 void *argp1 = 0 ;
36095 int res1 = 0 ;
36096 int val2 ;
36097 int ecode2 = 0 ;
36098 int val3 ;
36099 int ecode3 = 0 ;
36100 int val4 ;
36101 int ecode4 = 0 ;
36102 int val5 ;
36103 int ecode5 = 0 ;
36104 double val6 ;
36105 int ecode6 = 0 ;
36106 double val7 ;
36107 int ecode7 = 0 ;
36108 PyObject * obj0 = 0 ;
36109 PyObject * obj1 = 0 ;
36110 PyObject * obj2 = 0 ;
36111 PyObject * obj3 = 0 ;
36112 PyObject * obj4 = 0 ;
36113 PyObject * obj5 = 0 ;
36114 PyObject * obj6 = 0 ;
36115 char * kwnames[] = {
36116 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36117 };
36118
36119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36121 if (!SWIG_IsOK(res1)) {
36122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36125 ecode2 = SWIG_AsVal_int(obj1, &val2);
36126 if (!SWIG_IsOK(ecode2)) {
36127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36128 }
36129 arg2 = static_cast< int >(val2);
36130 ecode3 = SWIG_AsVal_int(obj2, &val3);
36131 if (!SWIG_IsOK(ecode3)) {
36132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36133 }
36134 arg3 = static_cast< int >(val3);
36135 ecode4 = SWIG_AsVal_int(obj3, &val4);
36136 if (!SWIG_IsOK(ecode4)) {
36137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36138 }
36139 arg4 = static_cast< int >(val4);
36140 ecode5 = SWIG_AsVal_int(obj4, &val5);
36141 if (!SWIG_IsOK(ecode5)) {
36142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36143 }
36144 arg5 = static_cast< int >(val5);
36145 ecode6 = SWIG_AsVal_double(obj5, &val6);
36146 if (!SWIG_IsOK(ecode6)) {
36147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36148 }
36149 arg6 = static_cast< double >(val6);
36150 ecode7 = SWIG_AsVal_double(obj6, &val7);
36151 if (!SWIG_IsOK(ecode7)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36153 }
36154 arg7 = static_cast< double >(val7);
36155 {
36156 PyThreadState* __tstate = wxPyBeginAllowThreads();
36157 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36158 wxPyEndAllowThreads(__tstate);
36159 if (PyErr_Occurred()) SWIG_fail;
36160 }
36161 resultobj = SWIG_Py_Void();
36162 return resultobj;
36163fail:
36164 return NULL;
36165}
36166
36167
36168SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36169 PyObject *resultobj = 0;
36170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36171 wxPoint *arg2 = 0 ;
36172 wxSize *arg3 = 0 ;
36173 double arg4 ;
36174 double arg5 ;
36175 void *argp1 = 0 ;
36176 int res1 = 0 ;
36177 wxPoint temp2 ;
36178 wxSize temp3 ;
36179 double val4 ;
36180 int ecode4 = 0 ;
36181 double val5 ;
36182 int ecode5 = 0 ;
36183 PyObject * obj0 = 0 ;
36184 PyObject * obj1 = 0 ;
36185 PyObject * obj2 = 0 ;
36186 PyObject * obj3 = 0 ;
36187 PyObject * obj4 = 0 ;
36188 char * kwnames[] = {
36189 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36190 };
36191
36192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36194 if (!SWIG_IsOK(res1)) {
36195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36196 }
36197 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36198 {
36199 arg2 = &temp2;
36200 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36201 }
36202 {
36203 arg3 = &temp3;
36204 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36205 }
36206 ecode4 = SWIG_AsVal_double(obj3, &val4);
36207 if (!SWIG_IsOK(ecode4)) {
36208 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36209 }
36210 arg4 = static_cast< double >(val4);
36211 ecode5 = SWIG_AsVal_double(obj4, &val5);
36212 if (!SWIG_IsOK(ecode5)) {
36213 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36214 }
36215 arg5 = static_cast< double >(val5);
36216 {
36217 PyThreadState* __tstate = wxPyBeginAllowThreads();
36218 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36219 wxPyEndAllowThreads(__tstate);
36220 if (PyErr_Occurred()) SWIG_fail;
36221 }
36222 resultobj = SWIG_Py_Void();
36223 return resultobj;
36224fail:
36225 return NULL;
36226}
36227
36228
36229SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36230 PyObject *resultobj = 0;
36231 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36232 int arg2 ;
36233 int arg3 ;
36234 void *argp1 = 0 ;
36235 int res1 = 0 ;
36236 int val2 ;
36237 int ecode2 = 0 ;
36238 int val3 ;
36239 int ecode3 = 0 ;
36240 PyObject * obj0 = 0 ;
36241 PyObject * obj1 = 0 ;
36242 PyObject * obj2 = 0 ;
36243 char * kwnames[] = {
36244 (char *) "self",(char *) "x",(char *) "y", NULL
36245 };
36246
36247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36249 if (!SWIG_IsOK(res1)) {
36250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36251 }
36252 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36253 ecode2 = SWIG_AsVal_int(obj1, &val2);
36254 if (!SWIG_IsOK(ecode2)) {
36255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36256 }
36257 arg2 = static_cast< int >(val2);
36258 ecode3 = SWIG_AsVal_int(obj2, &val3);
36259 if (!SWIG_IsOK(ecode3)) {
36260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36261 }
36262 arg3 = static_cast< int >(val3);
36263 {
36264 PyThreadState* __tstate = wxPyBeginAllowThreads();
36265 (arg1)->DrawPoint(arg2,arg3);
36266 wxPyEndAllowThreads(__tstate);
36267 if (PyErr_Occurred()) SWIG_fail;
36268 }
36269 resultobj = SWIG_Py_Void();
36270 return resultobj;
36271fail:
36272 return NULL;
36273}
36274
36275
36276SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36277 PyObject *resultobj = 0;
36278 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36279 wxPoint *arg2 = 0 ;
36280 void *argp1 = 0 ;
36281 int res1 = 0 ;
36282 wxPoint temp2 ;
36283 PyObject * obj0 = 0 ;
36284 PyObject * obj1 = 0 ;
36285 char * kwnames[] = {
36286 (char *) "self",(char *) "pt", NULL
36287 };
36288
36289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36291 if (!SWIG_IsOK(res1)) {
36292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36293 }
36294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36295 {
36296 arg2 = &temp2;
36297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36298 }
36299 {
36300 PyThreadState* __tstate = wxPyBeginAllowThreads();
36301 (arg1)->DrawPoint((wxPoint const &)*arg2);
36302 wxPyEndAllowThreads(__tstate);
36303 if (PyErr_Occurred()) SWIG_fail;
36304 }
36305 resultobj = SWIG_Py_Void();
36306 return resultobj;
36307fail:
36308 return NULL;
36309}
36310
36311
36312SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36313 PyObject *resultobj = 0;
36314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36315 int arg2 ;
36316 int arg3 ;
36317 int arg4 ;
36318 int arg5 ;
36319 void *argp1 = 0 ;
36320 int res1 = 0 ;
36321 int val2 ;
36322 int ecode2 = 0 ;
36323 int val3 ;
36324 int ecode3 = 0 ;
36325 int val4 ;
36326 int ecode4 = 0 ;
36327 int val5 ;
36328 int ecode5 = 0 ;
36329 PyObject * obj0 = 0 ;
36330 PyObject * obj1 = 0 ;
36331 PyObject * obj2 = 0 ;
36332 PyObject * obj3 = 0 ;
36333 PyObject * obj4 = 0 ;
36334 char * kwnames[] = {
36335 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36336 };
36337
36338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36340 if (!SWIG_IsOK(res1)) {
36341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36342 }
36343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36344 ecode2 = SWIG_AsVal_int(obj1, &val2);
36345 if (!SWIG_IsOK(ecode2)) {
36346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36347 }
36348 arg2 = static_cast< int >(val2);
36349 ecode3 = SWIG_AsVal_int(obj2, &val3);
36350 if (!SWIG_IsOK(ecode3)) {
36351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36352 }
36353 arg3 = static_cast< int >(val3);
36354 ecode4 = SWIG_AsVal_int(obj3, &val4);
36355 if (!SWIG_IsOK(ecode4)) {
36356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36357 }
36358 arg4 = static_cast< int >(val4);
36359 ecode5 = SWIG_AsVal_int(obj4, &val5);
36360 if (!SWIG_IsOK(ecode5)) {
36361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36362 }
36363 arg5 = static_cast< int >(val5);
36364 {
36365 PyThreadState* __tstate = wxPyBeginAllowThreads();
36366 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36367 wxPyEndAllowThreads(__tstate);
36368 if (PyErr_Occurred()) SWIG_fail;
36369 }
36370 resultobj = SWIG_Py_Void();
36371 return resultobj;
36372fail:
36373 return NULL;
36374}
36375
36376
36377SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36378 PyObject *resultobj = 0;
36379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36380 wxRect *arg2 = 0 ;
36381 void *argp1 = 0 ;
36382 int res1 = 0 ;
36383 wxRect temp2 ;
36384 PyObject * obj0 = 0 ;
36385 PyObject * obj1 = 0 ;
36386 char * kwnames[] = {
36387 (char *) "self",(char *) "rect", NULL
36388 };
36389
36390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36392 if (!SWIG_IsOK(res1)) {
36393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36394 }
36395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36396 {
36397 arg2 = &temp2;
36398 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36399 }
36400 {
36401 PyThreadState* __tstate = wxPyBeginAllowThreads();
36402 (arg1)->DrawRectangle((wxRect const &)*arg2);
36403 wxPyEndAllowThreads(__tstate);
36404 if (PyErr_Occurred()) SWIG_fail;
36405 }
36406 resultobj = SWIG_Py_Void();
36407 return resultobj;
36408fail:
36409 return NULL;
36410}
36411
36412
36413SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36414 PyObject *resultobj = 0;
36415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36416 wxPoint *arg2 = 0 ;
36417 wxSize *arg3 = 0 ;
36418 void *argp1 = 0 ;
36419 int res1 = 0 ;
36420 wxPoint temp2 ;
36421 wxSize temp3 ;
36422 PyObject * obj0 = 0 ;
36423 PyObject * obj1 = 0 ;
36424 PyObject * obj2 = 0 ;
36425 char * kwnames[] = {
36426 (char *) "self",(char *) "pt",(char *) "sz", NULL
36427 };
36428
36429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36431 if (!SWIG_IsOK(res1)) {
36432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36433 }
36434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36435 {
36436 arg2 = &temp2;
36437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36438 }
36439 {
36440 arg3 = &temp3;
36441 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36442 }
36443 {
36444 PyThreadState* __tstate = wxPyBeginAllowThreads();
36445 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36446 wxPyEndAllowThreads(__tstate);
36447 if (PyErr_Occurred()) SWIG_fail;
36448 }
36449 resultobj = SWIG_Py_Void();
36450 return resultobj;
36451fail:
36452 return NULL;
36453}
36454
36455
36456SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36457 PyObject *resultobj = 0;
36458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36459 int arg2 ;
36460 int arg3 ;
36461 int arg4 ;
36462 int arg5 ;
36463 double arg6 ;
36464 void *argp1 = 0 ;
36465 int res1 = 0 ;
36466 int val2 ;
36467 int ecode2 = 0 ;
36468 int val3 ;
36469 int ecode3 = 0 ;
36470 int val4 ;
36471 int ecode4 = 0 ;
36472 int val5 ;
36473 int ecode5 = 0 ;
36474 double val6 ;
36475 int ecode6 = 0 ;
36476 PyObject * obj0 = 0 ;
36477 PyObject * obj1 = 0 ;
36478 PyObject * obj2 = 0 ;
36479 PyObject * obj3 = 0 ;
36480 PyObject * obj4 = 0 ;
36481 PyObject * obj5 = 0 ;
36482 char * kwnames[] = {
36483 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36484 };
36485
36486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36488 if (!SWIG_IsOK(res1)) {
36489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36490 }
36491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36492 ecode2 = SWIG_AsVal_int(obj1, &val2);
36493 if (!SWIG_IsOK(ecode2)) {
36494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36495 }
36496 arg2 = static_cast< int >(val2);
36497 ecode3 = SWIG_AsVal_int(obj2, &val3);
36498 if (!SWIG_IsOK(ecode3)) {
36499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36500 }
36501 arg3 = static_cast< int >(val3);
36502 ecode4 = SWIG_AsVal_int(obj3, &val4);
36503 if (!SWIG_IsOK(ecode4)) {
36504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36505 }
36506 arg4 = static_cast< int >(val4);
36507 ecode5 = SWIG_AsVal_int(obj4, &val5);
36508 if (!SWIG_IsOK(ecode5)) {
36509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36510 }
36511 arg5 = static_cast< int >(val5);
36512 ecode6 = SWIG_AsVal_double(obj5, &val6);
36513 if (!SWIG_IsOK(ecode6)) {
36514 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36515 }
36516 arg6 = static_cast< double >(val6);
36517 {
36518 PyThreadState* __tstate = wxPyBeginAllowThreads();
36519 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36520 wxPyEndAllowThreads(__tstate);
36521 if (PyErr_Occurred()) SWIG_fail;
36522 }
36523 resultobj = SWIG_Py_Void();
36524 return resultobj;
36525fail:
36526 return NULL;
36527}
36528
36529
36530SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36531 PyObject *resultobj = 0;
36532 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36533 wxRect *arg2 = 0 ;
36534 double arg3 ;
36535 void *argp1 = 0 ;
36536 int res1 = 0 ;
36537 wxRect temp2 ;
36538 double val3 ;
36539 int ecode3 = 0 ;
36540 PyObject * obj0 = 0 ;
36541 PyObject * obj1 = 0 ;
36542 PyObject * obj2 = 0 ;
36543 char * kwnames[] = {
36544 (char *) "self",(char *) "r",(char *) "radius", NULL
36545 };
36546
36547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36549 if (!SWIG_IsOK(res1)) {
36550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36551 }
36552 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36553 {
36554 arg2 = &temp2;
36555 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36556 }
36557 ecode3 = SWIG_AsVal_double(obj2, &val3);
36558 if (!SWIG_IsOK(ecode3)) {
36559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36560 }
36561 arg3 = static_cast< double >(val3);
36562 {
36563 PyThreadState* __tstate = wxPyBeginAllowThreads();
36564 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36565 wxPyEndAllowThreads(__tstate);
36566 if (PyErr_Occurred()) SWIG_fail;
36567 }
36568 resultobj = SWIG_Py_Void();
36569 return resultobj;
36570fail:
36571 return NULL;
36572}
36573
36574
36575SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36576 PyObject *resultobj = 0;
36577 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36578 wxPoint *arg2 = 0 ;
36579 wxSize *arg3 = 0 ;
36580 double arg4 ;
36581 void *argp1 = 0 ;
36582 int res1 = 0 ;
36583 wxPoint temp2 ;
36584 wxSize temp3 ;
36585 double val4 ;
36586 int ecode4 = 0 ;
36587 PyObject * obj0 = 0 ;
36588 PyObject * obj1 = 0 ;
36589 PyObject * obj2 = 0 ;
36590 PyObject * obj3 = 0 ;
36591 char * kwnames[] = {
36592 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36593 };
36594
36595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36597 if (!SWIG_IsOK(res1)) {
36598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36599 }
36600 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36601 {
36602 arg2 = &temp2;
36603 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36604 }
36605 {
36606 arg3 = &temp3;
36607 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36608 }
36609 ecode4 = SWIG_AsVal_double(obj3, &val4);
36610 if (!SWIG_IsOK(ecode4)) {
36611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36612 }
36613 arg4 = static_cast< double >(val4);
36614 {
36615 PyThreadState* __tstate = wxPyBeginAllowThreads();
36616 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36617 wxPyEndAllowThreads(__tstate);
36618 if (PyErr_Occurred()) SWIG_fail;
36619 }
36620 resultobj = SWIG_Py_Void();
36621 return resultobj;
36622fail:
36623 return NULL;
36624}
36625
36626
36627SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36628 PyObject *resultobj = 0;
36629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36630 int arg2 ;
36631 int arg3 ;
36632 int arg4 ;
36633 void *argp1 = 0 ;
36634 int res1 = 0 ;
36635 int val2 ;
36636 int ecode2 = 0 ;
36637 int val3 ;
36638 int ecode3 = 0 ;
36639 int val4 ;
36640 int ecode4 = 0 ;
36641 PyObject * obj0 = 0 ;
36642 PyObject * obj1 = 0 ;
36643 PyObject * obj2 = 0 ;
36644 PyObject * obj3 = 0 ;
36645 char * kwnames[] = {
36646 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36647 };
36648
36649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36651 if (!SWIG_IsOK(res1)) {
36652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36653 }
36654 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36655 ecode2 = SWIG_AsVal_int(obj1, &val2);
36656 if (!SWIG_IsOK(ecode2)) {
36657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36658 }
36659 arg2 = static_cast< int >(val2);
36660 ecode3 = SWIG_AsVal_int(obj2, &val3);
36661 if (!SWIG_IsOK(ecode3)) {
36662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36663 }
36664 arg3 = static_cast< int >(val3);
36665 ecode4 = SWIG_AsVal_int(obj3, &val4);
36666 if (!SWIG_IsOK(ecode4)) {
36667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36668 }
36669 arg4 = static_cast< int >(val4);
36670 {
36671 PyThreadState* __tstate = wxPyBeginAllowThreads();
36672 (arg1)->DrawCircle(arg2,arg3,arg4);
36673 wxPyEndAllowThreads(__tstate);
36674 if (PyErr_Occurred()) SWIG_fail;
36675 }
36676 resultobj = SWIG_Py_Void();
36677 return resultobj;
36678fail:
36679 return NULL;
36680}
36681
36682
36683SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36684 PyObject *resultobj = 0;
36685 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36686 wxPoint *arg2 = 0 ;
36687 int arg3 ;
36688 void *argp1 = 0 ;
36689 int res1 = 0 ;
36690 wxPoint temp2 ;
36691 int val3 ;
36692 int ecode3 = 0 ;
36693 PyObject * obj0 = 0 ;
36694 PyObject * obj1 = 0 ;
36695 PyObject * obj2 = 0 ;
36696 char * kwnames[] = {
36697 (char *) "self",(char *) "pt",(char *) "radius", NULL
36698 };
36699
36700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36702 if (!SWIG_IsOK(res1)) {
36703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36704 }
36705 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36706 {
36707 arg2 = &temp2;
36708 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36709 }
36710 ecode3 = SWIG_AsVal_int(obj2, &val3);
36711 if (!SWIG_IsOK(ecode3)) {
36712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36713 }
36714 arg3 = static_cast< int >(val3);
36715 {
36716 PyThreadState* __tstate = wxPyBeginAllowThreads();
36717 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36718 wxPyEndAllowThreads(__tstate);
36719 if (PyErr_Occurred()) SWIG_fail;
36720 }
36721 resultobj = SWIG_Py_Void();
36722 return resultobj;
36723fail:
36724 return NULL;
36725}
36726
36727
36728SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36729 PyObject *resultobj = 0;
36730 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36731 int arg2 ;
36732 int arg3 ;
36733 int arg4 ;
36734 int arg5 ;
36735 void *argp1 = 0 ;
36736 int res1 = 0 ;
36737 int val2 ;
36738 int ecode2 = 0 ;
36739 int val3 ;
36740 int ecode3 = 0 ;
36741 int val4 ;
36742 int ecode4 = 0 ;
36743 int val5 ;
36744 int ecode5 = 0 ;
36745 PyObject * obj0 = 0 ;
36746 PyObject * obj1 = 0 ;
36747 PyObject * obj2 = 0 ;
36748 PyObject * obj3 = 0 ;
36749 PyObject * obj4 = 0 ;
36750 char * kwnames[] = {
36751 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36752 };
36753
36754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36756 if (!SWIG_IsOK(res1)) {
36757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36758 }
36759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36760 ecode2 = SWIG_AsVal_int(obj1, &val2);
36761 if (!SWIG_IsOK(ecode2)) {
36762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36763 }
36764 arg2 = static_cast< int >(val2);
36765 ecode3 = SWIG_AsVal_int(obj2, &val3);
36766 if (!SWIG_IsOK(ecode3)) {
36767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36768 }
36769 arg3 = static_cast< int >(val3);
36770 ecode4 = SWIG_AsVal_int(obj3, &val4);
36771 if (!SWIG_IsOK(ecode4)) {
36772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36773 }
36774 arg4 = static_cast< int >(val4);
36775 ecode5 = SWIG_AsVal_int(obj4, &val5);
36776 if (!SWIG_IsOK(ecode5)) {
36777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36778 }
36779 arg5 = static_cast< int >(val5);
36780 {
36781 PyThreadState* __tstate = wxPyBeginAllowThreads();
36782 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36783 wxPyEndAllowThreads(__tstate);
36784 if (PyErr_Occurred()) SWIG_fail;
36785 }
36786 resultobj = SWIG_Py_Void();
36787 return resultobj;
36788fail:
36789 return NULL;
36790}
36791
36792
36793SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36794 PyObject *resultobj = 0;
36795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36796 wxRect *arg2 = 0 ;
36797 void *argp1 = 0 ;
36798 int res1 = 0 ;
36799 wxRect temp2 ;
36800 PyObject * obj0 = 0 ;
36801 PyObject * obj1 = 0 ;
36802 char * kwnames[] = {
36803 (char *) "self",(char *) "rect", NULL
36804 };
36805
36806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36808 if (!SWIG_IsOK(res1)) {
36809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36810 }
36811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36812 {
36813 arg2 = &temp2;
36814 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36815 }
36816 {
36817 PyThreadState* __tstate = wxPyBeginAllowThreads();
36818 (arg1)->DrawEllipse((wxRect const &)*arg2);
36819 wxPyEndAllowThreads(__tstate);
36820 if (PyErr_Occurred()) SWIG_fail;
36821 }
36822 resultobj = SWIG_Py_Void();
36823 return resultobj;
36824fail:
36825 return NULL;
36826}
36827
36828
36829SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36830 PyObject *resultobj = 0;
36831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36832 wxPoint *arg2 = 0 ;
36833 wxSize *arg3 = 0 ;
36834 void *argp1 = 0 ;
36835 int res1 = 0 ;
36836 wxPoint temp2 ;
36837 wxSize temp3 ;
36838 PyObject * obj0 = 0 ;
36839 PyObject * obj1 = 0 ;
36840 PyObject * obj2 = 0 ;
36841 char * kwnames[] = {
36842 (char *) "self",(char *) "pt",(char *) "sz", NULL
36843 };
36844
36845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36847 if (!SWIG_IsOK(res1)) {
36848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36849 }
36850 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36851 {
36852 arg2 = &temp2;
36853 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36854 }
36855 {
36856 arg3 = &temp3;
36857 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36858 }
36859 {
36860 PyThreadState* __tstate = wxPyBeginAllowThreads();
36861 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36862 wxPyEndAllowThreads(__tstate);
36863 if (PyErr_Occurred()) SWIG_fail;
36864 }
36865 resultobj = SWIG_Py_Void();
36866 return resultobj;
36867fail:
36868 return NULL;
36869}
36870
36871
36872SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36873 PyObject *resultobj = 0;
36874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36875 wxIcon *arg2 = 0 ;
36876 int arg3 ;
36877 int arg4 ;
36878 void *argp1 = 0 ;
36879 int res1 = 0 ;
36880 void *argp2 = 0 ;
36881 int res2 = 0 ;
36882 int val3 ;
36883 int ecode3 = 0 ;
36884 int val4 ;
36885 int ecode4 = 0 ;
36886 PyObject * obj0 = 0 ;
36887 PyObject * obj1 = 0 ;
36888 PyObject * obj2 = 0 ;
36889 PyObject * obj3 = 0 ;
36890 char * kwnames[] = {
36891 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
36892 };
36893
36894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36896 if (!SWIG_IsOK(res1)) {
36897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36898 }
36899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36901 if (!SWIG_IsOK(res2)) {
36902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36903 }
36904 if (!argp2) {
36905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36906 }
36907 arg2 = reinterpret_cast< wxIcon * >(argp2);
36908 ecode3 = SWIG_AsVal_int(obj2, &val3);
36909 if (!SWIG_IsOK(ecode3)) {
36910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
36911 }
36912 arg3 = static_cast< int >(val3);
36913 ecode4 = SWIG_AsVal_int(obj3, &val4);
36914 if (!SWIG_IsOK(ecode4)) {
36915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
36916 }
36917 arg4 = static_cast< int >(val4);
36918 {
36919 PyThreadState* __tstate = wxPyBeginAllowThreads();
36920 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
36921 wxPyEndAllowThreads(__tstate);
36922 if (PyErr_Occurred()) SWIG_fail;
36923 }
36924 resultobj = SWIG_Py_Void();
36925 return resultobj;
36926fail:
36927 return NULL;
36928}
36929
36930
36931SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36932 PyObject *resultobj = 0;
36933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36934 wxIcon *arg2 = 0 ;
36935 wxPoint *arg3 = 0 ;
36936 void *argp1 = 0 ;
36937 int res1 = 0 ;
36938 void *argp2 = 0 ;
36939 int res2 = 0 ;
36940 wxPoint temp3 ;
36941 PyObject * obj0 = 0 ;
36942 PyObject * obj1 = 0 ;
36943 PyObject * obj2 = 0 ;
36944 char * kwnames[] = {
36945 (char *) "self",(char *) "icon",(char *) "pt", NULL
36946 };
36947
36948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36950 if (!SWIG_IsOK(res1)) {
36951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36952 }
36953 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36955 if (!SWIG_IsOK(res2)) {
36956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36957 }
36958 if (!argp2) {
36959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36960 }
36961 arg2 = reinterpret_cast< wxIcon * >(argp2);
36962 {
36963 arg3 = &temp3;
36964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36965 }
36966 {
36967 PyThreadState* __tstate = wxPyBeginAllowThreads();
36968 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
36969 wxPyEndAllowThreads(__tstate);
36970 if (PyErr_Occurred()) SWIG_fail;
36971 }
36972 resultobj = SWIG_Py_Void();
36973 return resultobj;
36974fail:
36975 return NULL;
36976}
36977
36978
36979SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36980 PyObject *resultobj = 0;
36981 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36982 wxBitmap *arg2 = 0 ;
36983 int arg3 ;
36984 int arg4 ;
36985 bool arg5 = (bool) false ;
36986 void *argp1 = 0 ;
36987 int res1 = 0 ;
36988 void *argp2 = 0 ;
36989 int res2 = 0 ;
36990 int val3 ;
36991 int ecode3 = 0 ;
36992 int val4 ;
36993 int ecode4 = 0 ;
36994 bool val5 ;
36995 int ecode5 = 0 ;
36996 PyObject * obj0 = 0 ;
36997 PyObject * obj1 = 0 ;
36998 PyObject * obj2 = 0 ;
36999 PyObject * obj3 = 0 ;
37000 PyObject * obj4 = 0 ;
37001 char * kwnames[] = {
37002 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37003 };
37004
37005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37007 if (!SWIG_IsOK(res1)) {
37008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37009 }
37010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37012 if (!SWIG_IsOK(res2)) {
37013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37014 }
37015 if (!argp2) {
37016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37017 }
37018 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37019 ecode3 = SWIG_AsVal_int(obj2, &val3);
37020 if (!SWIG_IsOK(ecode3)) {
37021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37022 }
37023 arg3 = static_cast< int >(val3);
37024 ecode4 = SWIG_AsVal_int(obj3, &val4);
37025 if (!SWIG_IsOK(ecode4)) {
37026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37027 }
37028 arg4 = static_cast< int >(val4);
37029 if (obj4) {
37030 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37031 if (!SWIG_IsOK(ecode5)) {
37032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37033 }
37034 arg5 = static_cast< bool >(val5);
37035 }
37036 {
37037 PyThreadState* __tstate = wxPyBeginAllowThreads();
37038 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37039 wxPyEndAllowThreads(__tstate);
37040 if (PyErr_Occurred()) SWIG_fail;
37041 }
37042 resultobj = SWIG_Py_Void();
37043 return resultobj;
37044fail:
37045 return NULL;
37046}
37047
37048
37049SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37050 PyObject *resultobj = 0;
37051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37052 wxBitmap *arg2 = 0 ;
37053 wxPoint *arg3 = 0 ;
37054 bool arg4 = (bool) false ;
37055 void *argp1 = 0 ;
37056 int res1 = 0 ;
37057 void *argp2 = 0 ;
37058 int res2 = 0 ;
37059 wxPoint temp3 ;
37060 bool val4 ;
37061 int ecode4 = 0 ;
37062 PyObject * obj0 = 0 ;
37063 PyObject * obj1 = 0 ;
37064 PyObject * obj2 = 0 ;
37065 PyObject * obj3 = 0 ;
37066 char * kwnames[] = {
37067 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37068 };
37069
37070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37072 if (!SWIG_IsOK(res1)) {
37073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37074 }
37075 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37077 if (!SWIG_IsOK(res2)) {
37078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37079 }
37080 if (!argp2) {
37081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37082 }
37083 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37084 {
37085 arg3 = &temp3;
37086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37087 }
37088 if (obj3) {
37089 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37090 if (!SWIG_IsOK(ecode4)) {
37091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37092 }
37093 arg4 = static_cast< bool >(val4);
37094 }
37095 {
37096 PyThreadState* __tstate = wxPyBeginAllowThreads();
37097 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37098 wxPyEndAllowThreads(__tstate);
37099 if (PyErr_Occurred()) SWIG_fail;
37100 }
37101 resultobj = SWIG_Py_Void();
37102 return resultobj;
37103fail:
37104 return NULL;
37105}
37106
37107
37108SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37109 PyObject *resultobj = 0;
37110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37111 wxString *arg2 = 0 ;
37112 int arg3 ;
37113 int arg4 ;
37114 void *argp1 = 0 ;
37115 int res1 = 0 ;
37116 bool temp2 = false ;
37117 int val3 ;
37118 int ecode3 = 0 ;
37119 int val4 ;
37120 int ecode4 = 0 ;
37121 PyObject * obj0 = 0 ;
37122 PyObject * obj1 = 0 ;
37123 PyObject * obj2 = 0 ;
37124 PyObject * obj3 = 0 ;
37125 char * kwnames[] = {
37126 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37127 };
37128
37129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37131 if (!SWIG_IsOK(res1)) {
37132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37133 }
37134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37135 {
37136 arg2 = wxString_in_helper(obj1);
37137 if (arg2 == NULL) SWIG_fail;
37138 temp2 = true;
37139 }
37140 ecode3 = SWIG_AsVal_int(obj2, &val3);
37141 if (!SWIG_IsOK(ecode3)) {
37142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37143 }
37144 arg3 = static_cast< int >(val3);
37145 ecode4 = SWIG_AsVal_int(obj3, &val4);
37146 if (!SWIG_IsOK(ecode4)) {
37147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37148 }
37149 arg4 = static_cast< int >(val4);
37150 {
37151 PyThreadState* __tstate = wxPyBeginAllowThreads();
37152 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37153 wxPyEndAllowThreads(__tstate);
37154 if (PyErr_Occurred()) SWIG_fail;
37155 }
37156 resultobj = SWIG_Py_Void();
37157 {
37158 if (temp2)
37159 delete arg2;
37160 }
37161 return resultobj;
37162fail:
37163 {
37164 if (temp2)
37165 delete arg2;
37166 }
37167 return NULL;
37168}
37169
37170
37171SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37172 PyObject *resultobj = 0;
37173 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37174 wxString *arg2 = 0 ;
37175 wxPoint *arg3 = 0 ;
37176 void *argp1 = 0 ;
37177 int res1 = 0 ;
37178 bool temp2 = false ;
37179 wxPoint temp3 ;
37180 PyObject * obj0 = 0 ;
37181 PyObject * obj1 = 0 ;
37182 PyObject * obj2 = 0 ;
37183 char * kwnames[] = {
37184 (char *) "self",(char *) "text",(char *) "pt", NULL
37185 };
37186
37187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37189 if (!SWIG_IsOK(res1)) {
37190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37191 }
37192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37193 {
37194 arg2 = wxString_in_helper(obj1);
37195 if (arg2 == NULL) SWIG_fail;
37196 temp2 = true;
37197 }
37198 {
37199 arg3 = &temp3;
37200 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37201 }
37202 {
37203 PyThreadState* __tstate = wxPyBeginAllowThreads();
37204 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37205 wxPyEndAllowThreads(__tstate);
37206 if (PyErr_Occurred()) SWIG_fail;
37207 }
37208 resultobj = SWIG_Py_Void();
37209 {
37210 if (temp2)
37211 delete arg2;
37212 }
37213 return resultobj;
37214fail:
37215 {
37216 if (temp2)
37217 delete arg2;
37218 }
37219 return NULL;
37220}
37221
37222
37223SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37224 PyObject *resultobj = 0;
37225 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37226 wxString *arg2 = 0 ;
37227 int arg3 ;
37228 int arg4 ;
37229 double arg5 ;
37230 void *argp1 = 0 ;
37231 int res1 = 0 ;
37232 bool temp2 = false ;
37233 int val3 ;
37234 int ecode3 = 0 ;
37235 int val4 ;
37236 int ecode4 = 0 ;
37237 double val5 ;
37238 int ecode5 = 0 ;
37239 PyObject * obj0 = 0 ;
37240 PyObject * obj1 = 0 ;
37241 PyObject * obj2 = 0 ;
37242 PyObject * obj3 = 0 ;
37243 PyObject * obj4 = 0 ;
37244 char * kwnames[] = {
37245 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37246 };
37247
37248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37250 if (!SWIG_IsOK(res1)) {
37251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37252 }
37253 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37254 {
37255 arg2 = wxString_in_helper(obj1);
37256 if (arg2 == NULL) SWIG_fail;
37257 temp2 = true;
37258 }
37259 ecode3 = SWIG_AsVal_int(obj2, &val3);
37260 if (!SWIG_IsOK(ecode3)) {
37261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37262 }
37263 arg3 = static_cast< int >(val3);
37264 ecode4 = SWIG_AsVal_int(obj3, &val4);
37265 if (!SWIG_IsOK(ecode4)) {
37266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37267 }
37268 arg4 = static_cast< int >(val4);
37269 ecode5 = SWIG_AsVal_double(obj4, &val5);
37270 if (!SWIG_IsOK(ecode5)) {
37271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37272 }
37273 arg5 = static_cast< double >(val5);
37274 {
37275 PyThreadState* __tstate = wxPyBeginAllowThreads();
37276 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37277 wxPyEndAllowThreads(__tstate);
37278 if (PyErr_Occurred()) SWIG_fail;
37279 }
37280 resultobj = SWIG_Py_Void();
37281 {
37282 if (temp2)
37283 delete arg2;
37284 }
37285 return resultobj;
37286fail:
37287 {
37288 if (temp2)
37289 delete arg2;
37290 }
37291 return NULL;
37292}
37293
37294
37295SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37296 PyObject *resultobj = 0;
37297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37298 wxString *arg2 = 0 ;
37299 wxPoint *arg3 = 0 ;
37300 double arg4 ;
37301 void *argp1 = 0 ;
37302 int res1 = 0 ;
37303 bool temp2 = false ;
37304 wxPoint temp3 ;
37305 double val4 ;
37306 int ecode4 = 0 ;
37307 PyObject * obj0 = 0 ;
37308 PyObject * obj1 = 0 ;
37309 PyObject * obj2 = 0 ;
37310 PyObject * obj3 = 0 ;
37311 char * kwnames[] = {
37312 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37313 };
37314
37315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37317 if (!SWIG_IsOK(res1)) {
37318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37319 }
37320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37321 {
37322 arg2 = wxString_in_helper(obj1);
37323 if (arg2 == NULL) SWIG_fail;
37324 temp2 = true;
37325 }
37326 {
37327 arg3 = &temp3;
37328 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37329 }
37330 ecode4 = SWIG_AsVal_double(obj3, &val4);
37331 if (!SWIG_IsOK(ecode4)) {
37332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37333 }
37334 arg4 = static_cast< double >(val4);
37335 {
37336 PyThreadState* __tstate = wxPyBeginAllowThreads();
37337 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37338 wxPyEndAllowThreads(__tstate);
37339 if (PyErr_Occurred()) SWIG_fail;
37340 }
37341 resultobj = SWIG_Py_Void();
37342 {
37343 if (temp2)
37344 delete arg2;
37345 }
37346 return resultobj;
37347fail:
37348 {
37349 if (temp2)
37350 delete arg2;
37351 }
37352 return NULL;
37353}
37354
37355
37356SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37357 PyObject *resultobj = 0;
37358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37359 int arg2 ;
37360 wxPoint *arg3 = (wxPoint *) 0 ;
37361 int arg4 = (int) 0 ;
37362 int arg5 = (int) 0 ;
37363 void *argp1 = 0 ;
37364 int res1 = 0 ;
37365 int val4 ;
37366 int ecode4 = 0 ;
37367 int val5 ;
37368 int ecode5 = 0 ;
37369 PyObject * obj0 = 0 ;
37370 PyObject * obj1 = 0 ;
37371 PyObject * obj2 = 0 ;
37372 PyObject * obj3 = 0 ;
37373 char * kwnames[] = {
37374 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37375 };
37376
37377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37379 if (!SWIG_IsOK(res1)) {
37380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37381 }
37382 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37383 {
37384 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37385 if (arg3 == NULL) SWIG_fail;
37386 }
37387 if (obj2) {
37388 ecode4 = SWIG_AsVal_int(obj2, &val4);
37389 if (!SWIG_IsOK(ecode4)) {
37390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37391 }
37392 arg4 = static_cast< int >(val4);
37393 }
37394 if (obj3) {
37395 ecode5 = SWIG_AsVal_int(obj3, &val5);
37396 if (!SWIG_IsOK(ecode5)) {
37397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37398 }
37399 arg5 = static_cast< int >(val5);
37400 }
37401 {
37402 PyThreadState* __tstate = wxPyBeginAllowThreads();
37403 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37404 wxPyEndAllowThreads(__tstate);
37405 if (PyErr_Occurred()) SWIG_fail;
37406 }
37407 resultobj = SWIG_Py_Void();
37408 {
37409 if (arg3) delete [] arg3;
37410 }
37411 return resultobj;
37412fail:
37413 {
37414 if (arg3) delete [] arg3;
37415 }
37416 return NULL;
37417}
37418
37419
37420SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37421 PyObject *resultobj = 0;
37422 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37423 int arg2 ;
37424 wxPoint *arg3 = (wxPoint *) 0 ;
37425 int arg4 = (int) 0 ;
37426 int arg5 = (int) 0 ;
37427 int arg6 = (int) wxODDEVEN_RULE ;
37428 void *argp1 = 0 ;
37429 int res1 = 0 ;
37430 int val4 ;
37431 int ecode4 = 0 ;
37432 int val5 ;
37433 int ecode5 = 0 ;
37434 int val6 ;
37435 int ecode6 = 0 ;
37436 PyObject * obj0 = 0 ;
37437 PyObject * obj1 = 0 ;
37438 PyObject * obj2 = 0 ;
37439 PyObject * obj3 = 0 ;
37440 PyObject * obj4 = 0 ;
37441 char * kwnames[] = {
37442 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37443 };
37444
37445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37447 if (!SWIG_IsOK(res1)) {
37448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37449 }
37450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37451 {
37452 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37453 if (arg3 == NULL) SWIG_fail;
37454 }
37455 if (obj2) {
37456 ecode4 = SWIG_AsVal_int(obj2, &val4);
37457 if (!SWIG_IsOK(ecode4)) {
37458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37459 }
37460 arg4 = static_cast< int >(val4);
37461 }
37462 if (obj3) {
37463 ecode5 = SWIG_AsVal_int(obj3, &val5);
37464 if (!SWIG_IsOK(ecode5)) {
37465 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37466 }
37467 arg5 = static_cast< int >(val5);
37468 }
37469 if (obj4) {
37470 ecode6 = SWIG_AsVal_int(obj4, &val6);
37471 if (!SWIG_IsOK(ecode6)) {
37472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37473 }
37474 arg6 = static_cast< int >(val6);
37475 }
37476 {
37477 PyThreadState* __tstate = wxPyBeginAllowThreads();
37478 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37479 wxPyEndAllowThreads(__tstate);
37480 if (PyErr_Occurred()) SWIG_fail;
37481 }
37482 resultobj = SWIG_Py_Void();
37483 {
37484 if (arg3) delete [] arg3;
37485 }
37486 return resultobj;
37487fail:
37488 {
37489 if (arg3) delete [] arg3;
37490 }
37491 return NULL;
37492}
37493
37494
37495SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37496 PyObject *resultobj = 0;
37497 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37498 wxString *arg2 = 0 ;
37499 wxRect *arg3 = 0 ;
37500 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37501 int arg5 = (int) -1 ;
37502 void *argp1 = 0 ;
37503 int res1 = 0 ;
37504 bool temp2 = false ;
37505 wxRect temp3 ;
37506 int val4 ;
37507 int ecode4 = 0 ;
37508 int val5 ;
37509 int ecode5 = 0 ;
37510 PyObject * obj0 = 0 ;
37511 PyObject * obj1 = 0 ;
37512 PyObject * obj2 = 0 ;
37513 PyObject * obj3 = 0 ;
37514 PyObject * obj4 = 0 ;
37515 char * kwnames[] = {
37516 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37517 };
37518
37519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37521 if (!SWIG_IsOK(res1)) {
37522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37523 }
37524 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37525 {
37526 arg2 = wxString_in_helper(obj1);
37527 if (arg2 == NULL) SWIG_fail;
37528 temp2 = true;
37529 }
37530 {
37531 arg3 = &temp3;
37532 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37533 }
37534 if (obj3) {
37535 ecode4 = SWIG_AsVal_int(obj3, &val4);
37536 if (!SWIG_IsOK(ecode4)) {
37537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37538 }
37539 arg4 = static_cast< int >(val4);
37540 }
37541 if (obj4) {
37542 ecode5 = SWIG_AsVal_int(obj4, &val5);
37543 if (!SWIG_IsOK(ecode5)) {
37544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37545 }
37546 arg5 = static_cast< int >(val5);
37547 }
37548 {
37549 PyThreadState* __tstate = wxPyBeginAllowThreads();
37550 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37551 wxPyEndAllowThreads(__tstate);
37552 if (PyErr_Occurred()) SWIG_fail;
37553 }
37554 resultobj = SWIG_Py_Void();
37555 {
37556 if (temp2)
37557 delete arg2;
37558 }
37559 return resultobj;
37560fail:
37561 {
37562 if (temp2)
37563 delete arg2;
37564 }
37565 return NULL;
37566}
37567
37568
37569SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37570 PyObject *resultobj = 0;
37571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37572 wxString *arg2 = 0 ;
37573 wxBitmap *arg3 = 0 ;
37574 wxRect *arg4 = 0 ;
37575 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37576 int arg6 = (int) -1 ;
37577 void *argp1 = 0 ;
37578 int res1 = 0 ;
37579 bool temp2 = false ;
37580 void *argp3 = 0 ;
37581 int res3 = 0 ;
37582 wxRect temp4 ;
37583 int val5 ;
37584 int ecode5 = 0 ;
37585 int val6 ;
37586 int ecode6 = 0 ;
37587 PyObject * obj0 = 0 ;
37588 PyObject * obj1 = 0 ;
37589 PyObject * obj2 = 0 ;
37590 PyObject * obj3 = 0 ;
37591 PyObject * obj4 = 0 ;
37592 PyObject * obj5 = 0 ;
37593 char * kwnames[] = {
37594 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37595 };
37596
37597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37599 if (!SWIG_IsOK(res1)) {
37600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37601 }
37602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37603 {
37604 arg2 = wxString_in_helper(obj1);
37605 if (arg2 == NULL) SWIG_fail;
37606 temp2 = true;
37607 }
37608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37609 if (!SWIG_IsOK(res3)) {
37610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37611 }
37612 if (!argp3) {
37613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37614 }
37615 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37616 {
37617 arg4 = &temp4;
37618 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37619 }
37620 if (obj4) {
37621 ecode5 = SWIG_AsVal_int(obj4, &val5);
37622 if (!SWIG_IsOK(ecode5)) {
37623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37624 }
37625 arg5 = static_cast< int >(val5);
37626 }
37627 if (obj5) {
37628 ecode6 = SWIG_AsVal_int(obj5, &val6);
37629 if (!SWIG_IsOK(ecode6)) {
37630 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37631 }
37632 arg6 = static_cast< int >(val6);
37633 }
37634 {
37635 PyThreadState* __tstate = wxPyBeginAllowThreads();
37636 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37637 wxPyEndAllowThreads(__tstate);
37638 if (PyErr_Occurred()) SWIG_fail;
37639 }
37640 resultobj = SWIG_Py_Void();
37641 {
37642 if (temp2)
37643 delete arg2;
37644 }
37645 return resultobj;
37646fail:
37647 {
37648 if (temp2)
37649 delete arg2;
37650 }
37651 return NULL;
37652}
37653
37654
37655SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37656 PyObject *resultobj = 0;
37657 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37658 int arg2 ;
37659 wxPoint *arg3 = (wxPoint *) 0 ;
37660 void *argp1 = 0 ;
37661 int res1 = 0 ;
37662 PyObject * obj0 = 0 ;
37663 PyObject * obj1 = 0 ;
37664 char * kwnames[] = {
37665 (char *) "self",(char *) "points", NULL
37666 };
37667
37668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37670 if (!SWIG_IsOK(res1)) {
37671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37672 }
37673 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37674 {
37675 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37676 if (arg3 == NULL) SWIG_fail;
37677 }
37678 {
37679 PyThreadState* __tstate = wxPyBeginAllowThreads();
37680 (arg1)->DrawSpline(arg2,arg3);
37681 wxPyEndAllowThreads(__tstate);
37682 if (PyErr_Occurred()) SWIG_fail;
37683 }
37684 resultobj = SWIG_Py_Void();
37685 {
37686 if (arg3) delete [] arg3;
37687 }
37688 return resultobj;
37689fail:
37690 {
37691 if (arg3) delete [] arg3;
37692 }
37693 return NULL;
37694}
37695
37696
37697SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37698 PyObject *resultobj = 0;
37699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37700 void *argp1 = 0 ;
37701 int res1 = 0 ;
37702 PyObject *swig_obj[1] ;
37703
37704 if (!args) SWIG_fail;
37705 swig_obj[0] = args;
37706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37707 if (!SWIG_IsOK(res1)) {
37708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37709 }
37710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37711 {
37712 PyThreadState* __tstate = wxPyBeginAllowThreads();
37713 (arg1)->Clear();
37714 wxPyEndAllowThreads(__tstate);
37715 if (PyErr_Occurred()) SWIG_fail;
37716 }
37717 resultobj = SWIG_Py_Void();
37718 return resultobj;
37719fail:
37720 return NULL;
37721}
37722
37723
37724SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37725 PyObject *resultobj = 0;
37726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37727 wxFont *arg2 = 0 ;
37728 void *argp1 = 0 ;
37729 int res1 = 0 ;
37730 void *argp2 = 0 ;
37731 int res2 = 0 ;
37732 PyObject * obj0 = 0 ;
37733 PyObject * obj1 = 0 ;
37734 char * kwnames[] = {
37735 (char *) "self",(char *) "font", NULL
37736 };
37737
37738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37740 if (!SWIG_IsOK(res1)) {
37741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37742 }
37743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37745 if (!SWIG_IsOK(res2)) {
37746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37747 }
37748 if (!argp2) {
37749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37750 }
37751 arg2 = reinterpret_cast< wxFont * >(argp2);
37752 {
37753 PyThreadState* __tstate = wxPyBeginAllowThreads();
37754 (arg1)->SetFont((wxFont const &)*arg2);
37755 wxPyEndAllowThreads(__tstate);
37756 if (PyErr_Occurred()) SWIG_fail;
37757 }
37758 resultobj = SWIG_Py_Void();
37759 return resultobj;
37760fail:
37761 return NULL;
37762}
37763
37764
37765SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37766 PyObject *resultobj = 0;
37767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37768 wxPen *arg2 = 0 ;
37769 void *argp1 = 0 ;
37770 int res1 = 0 ;
37771 void *argp2 = 0 ;
37772 int res2 = 0 ;
37773 PyObject * obj0 = 0 ;
37774 PyObject * obj1 = 0 ;
37775 char * kwnames[] = {
37776 (char *) "self",(char *) "pen", NULL
37777 };
37778
37779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37781 if (!SWIG_IsOK(res1)) {
37782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37783 }
37784 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37786 if (!SWIG_IsOK(res2)) {
37787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37788 }
37789 if (!argp2) {
37790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37791 }
37792 arg2 = reinterpret_cast< wxPen * >(argp2);
37793 {
37794 PyThreadState* __tstate = wxPyBeginAllowThreads();
37795 (arg1)->SetPen((wxPen const &)*arg2);
37796 wxPyEndAllowThreads(__tstate);
37797 if (PyErr_Occurred()) SWIG_fail;
37798 }
37799 resultobj = SWIG_Py_Void();
37800 return resultobj;
37801fail:
37802 return NULL;
37803}
37804
37805
37806SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37807 PyObject *resultobj = 0;
37808 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37809 wxBrush *arg2 = 0 ;
37810 void *argp1 = 0 ;
37811 int res1 = 0 ;
37812 void *argp2 = 0 ;
37813 int res2 = 0 ;
37814 PyObject * obj0 = 0 ;
37815 PyObject * obj1 = 0 ;
37816 char * kwnames[] = {
37817 (char *) "self",(char *) "brush", NULL
37818 };
37819
37820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37822 if (!SWIG_IsOK(res1)) {
37823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37824 }
37825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37827 if (!SWIG_IsOK(res2)) {
37828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37829 }
37830 if (!argp2) {
37831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37832 }
37833 arg2 = reinterpret_cast< wxBrush * >(argp2);
37834 {
37835 PyThreadState* __tstate = wxPyBeginAllowThreads();
37836 (arg1)->SetBrush((wxBrush const &)*arg2);
37837 wxPyEndAllowThreads(__tstate);
37838 if (PyErr_Occurred()) SWIG_fail;
37839 }
37840 resultobj = SWIG_Py_Void();
37841 return resultobj;
37842fail:
37843 return NULL;
37844}
37845
37846
37847SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37848 PyObject *resultobj = 0;
37849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37850 wxBrush *arg2 = 0 ;
37851 void *argp1 = 0 ;
37852 int res1 = 0 ;
37853 void *argp2 = 0 ;
37854 int res2 = 0 ;
37855 PyObject * obj0 = 0 ;
37856 PyObject * obj1 = 0 ;
37857 char * kwnames[] = {
37858 (char *) "self",(char *) "brush", NULL
37859 };
37860
37861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37863 if (!SWIG_IsOK(res1)) {
37864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37865 }
37866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37868 if (!SWIG_IsOK(res2)) {
37869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37870 }
37871 if (!argp2) {
37872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37873 }
37874 arg2 = reinterpret_cast< wxBrush * >(argp2);
37875 {
37876 PyThreadState* __tstate = wxPyBeginAllowThreads();
37877 (arg1)->SetBackground((wxBrush const &)*arg2);
37878 wxPyEndAllowThreads(__tstate);
37879 if (PyErr_Occurred()) SWIG_fail;
37880 }
37881 resultobj = SWIG_Py_Void();
37882 return resultobj;
37883fail:
37884 return NULL;
37885}
37886
37887
37888SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37889 PyObject *resultobj = 0;
37890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37891 int arg2 ;
37892 void *argp1 = 0 ;
37893 int res1 = 0 ;
37894 int val2 ;
37895 int ecode2 = 0 ;
37896 PyObject * obj0 = 0 ;
37897 PyObject * obj1 = 0 ;
37898 char * kwnames[] = {
37899 (char *) "self",(char *) "mode", NULL
37900 };
37901
37902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
37903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37904 if (!SWIG_IsOK(res1)) {
37905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37906 }
37907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37908 ecode2 = SWIG_AsVal_int(obj1, &val2);
37909 if (!SWIG_IsOK(ecode2)) {
37910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
37911 }
37912 arg2 = static_cast< int >(val2);
37913 {
37914 PyThreadState* __tstate = wxPyBeginAllowThreads();
37915 (arg1)->SetBackgroundMode(arg2);
37916 wxPyEndAllowThreads(__tstate);
37917 if (PyErr_Occurred()) SWIG_fail;
37918 }
37919 resultobj = SWIG_Py_Void();
37920 return resultobj;
37921fail:
37922 return NULL;
37923}
37924
37925
37926SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37927 PyObject *resultobj = 0;
37928 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37929 wxPalette *arg2 = 0 ;
37930 void *argp1 = 0 ;
37931 int res1 = 0 ;
37932 void *argp2 = 0 ;
37933 int res2 = 0 ;
37934 PyObject * obj0 = 0 ;
37935 PyObject * obj1 = 0 ;
37936 char * kwnames[] = {
37937 (char *) "self",(char *) "palette", NULL
37938 };
37939
37940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
37941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37942 if (!SWIG_IsOK(res1)) {
37943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37944 }
37945 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
37947 if (!SWIG_IsOK(res2)) {
37948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37949 }
37950 if (!argp2) {
37951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37952 }
37953 arg2 = reinterpret_cast< wxPalette * >(argp2);
37954 {
37955 PyThreadState* __tstate = wxPyBeginAllowThreads();
37956 (arg1)->SetPalette((wxPalette const &)*arg2);
37957 wxPyEndAllowThreads(__tstate);
37958 if (PyErr_Occurred()) SWIG_fail;
37959 }
37960 resultobj = SWIG_Py_Void();
37961 return resultobj;
37962fail:
37963 return NULL;
37964}
37965
37966
37967SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37968 PyObject *resultobj = 0;
37969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37970 wxColour *arg2 = 0 ;
37971 void *argp1 = 0 ;
37972 int res1 = 0 ;
37973 wxColour temp2 ;
37974 PyObject * obj0 = 0 ;
37975 PyObject * obj1 = 0 ;
37976 char * kwnames[] = {
37977 (char *) "self",(char *) "colour", NULL
37978 };
37979
37980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
37981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37982 if (!SWIG_IsOK(res1)) {
37983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37984 }
37985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37986 {
37987 arg2 = &temp2;
37988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37989 }
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 (arg1)->SetTextForeground((wxColour const &)*arg2);
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 resultobj = SWIG_Py_Void();
37997 return resultobj;
37998fail:
37999 return NULL;
38000}
38001
38002
38003SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38004 PyObject *resultobj = 0;
38005 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38006 wxColour *arg2 = 0 ;
38007 void *argp1 = 0 ;
38008 int res1 = 0 ;
38009 wxColour temp2 ;
38010 PyObject * obj0 = 0 ;
38011 PyObject * obj1 = 0 ;
38012 char * kwnames[] = {
38013 (char *) "self",(char *) "colour", NULL
38014 };
38015
38016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38018 if (!SWIG_IsOK(res1)) {
38019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38020 }
38021 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38022 {
38023 arg2 = &temp2;
38024 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38025 }
38026 {
38027 PyThreadState* __tstate = wxPyBeginAllowThreads();
38028 (arg1)->SetTextBackground((wxColour const &)*arg2);
38029 wxPyEndAllowThreads(__tstate);
38030 if (PyErr_Occurred()) SWIG_fail;
38031 }
38032 resultobj = SWIG_Py_Void();
38033 return resultobj;
38034fail:
38035 return NULL;
38036}
38037
38038
38039SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38040 PyObject *resultobj = 0;
38041 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38042 int arg2 ;
38043 void *argp1 = 0 ;
38044 int res1 = 0 ;
38045 int val2 ;
38046 int ecode2 = 0 ;
38047 PyObject * obj0 = 0 ;
38048 PyObject * obj1 = 0 ;
38049 char * kwnames[] = {
38050 (char *) "self",(char *) "function", NULL
38051 };
38052
38053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38055 if (!SWIG_IsOK(res1)) {
38056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38057 }
38058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38059 ecode2 = SWIG_AsVal_int(obj1, &val2);
38060 if (!SWIG_IsOK(ecode2)) {
38061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38062 }
38063 arg2 = static_cast< int >(val2);
38064 {
38065 PyThreadState* __tstate = wxPyBeginAllowThreads();
38066 (arg1)->SetLogicalFunction(arg2);
38067 wxPyEndAllowThreads(__tstate);
38068 if (PyErr_Occurred()) SWIG_fail;
38069 }
38070 resultobj = SWIG_Py_Void();
38071 return resultobj;
38072fail:
38073 return NULL;
38074}
38075
38076
38077SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38078 PyObject *obj;
38079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38080 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38081 return SWIG_Py_Void();
38082}
38083
38084SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38085 return SWIG_Python_InitShadowInstance(args);
38086}
38087
38088static PyMethodDef SwigMethods[] = {
38089 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38090 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38091 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38092 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38093 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38094 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38095 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38096 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38097 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38098 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38099 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38100 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38101 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38102 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38103 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38104 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38105 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38106 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38107 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38108 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38109 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38110 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38111 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38112 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38113 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38114 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38115 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38116 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38117 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38118 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38119 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38120 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38121 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38122 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38123 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38124 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38125 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38126 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38127 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38128 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38129 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38130 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38131 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38132 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38133 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38134 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38135 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38136 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38137 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38138 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38139 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38140 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38141 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38142 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38143 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38144 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38145 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38146 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38147 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38148 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38149 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38150 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38151 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38152 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38153 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38154 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38155 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38156 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38157 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38158 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38159 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38160 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38161 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38162 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38163 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38164 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38165 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38166 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38167 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38168 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38169 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38170 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38171 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38172 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38173 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38174 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38175 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38176 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38177 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38178 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38179 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38180 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38181 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38182 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38183 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38184 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38185 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38186 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38187 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38188 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38189 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38190 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38191 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38192 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38193 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38194 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38195 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38196 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38197 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38198 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38199 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38200 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38201 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38202 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38203 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38204 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38205 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38206 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38207 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38208 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38209 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38210 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38211 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38212 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38213 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38214 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38215 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38216 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38217 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38218 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38219 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38220 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38221 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38222 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38223 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38224 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38225 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38226 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38227 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38228 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38229 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38230 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38231 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38232 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38233 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38234 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38235 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38236 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38237 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38238 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38239 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38240 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38241 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38242 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38243 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38244 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38245 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38246 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38247 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38248 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38249 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38250 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38251 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38252 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38253 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38254 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38255 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38256 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38257 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38258 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38259 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38260 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38261 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38262 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38263 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38264 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38265 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38266 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38267 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38268 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38269 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38270 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38271 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38272 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38273 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38274 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38275 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38276 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38277 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38278 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38279 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38280 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38281 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38282 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38283 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38285 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38286 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38287 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38288 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38289 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38290 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38291 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38292 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38294 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38295 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38296 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38297 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38298 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38299 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38300 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38301 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38302 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38303 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38305 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38306 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38307 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38308 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38309 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38310 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38311 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38312 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38313 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38314 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38315 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38316 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38317 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38318 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38319 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38320 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38321 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38322 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38323 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38324 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38325 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38326 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38327 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38328 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38329 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38330 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38331 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38332 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38333 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38334 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38335 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38336 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38337 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38338 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38339 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38342 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38345 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38347 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38348 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38349 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38351 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38352 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38353 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38354 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38355 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38356 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38357 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38358 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38359 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38360 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38361 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38362 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38363 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38365 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38366 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38367 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38368 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38371 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38374 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38375 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38376 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38377 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38379 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38382 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38383 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38384 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38385 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38386 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38387 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38388 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38390 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38391 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38392 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38393 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38394 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38395 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38396 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38397 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38398 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38399 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38400 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38401 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38402 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38403 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38404 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38405 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38406 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38416 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38417 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38418 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38419 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38420 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38421 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38422 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38423 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38425 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38426 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38427 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38428 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38429 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38430 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38431 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38432 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38433 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38434 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38435 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38436 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38437 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38438 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38439 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38440 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38441 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38442 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38443 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38445 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38448 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38449 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38450 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38451 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38452 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38453 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38454 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38455 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38457 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38458 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38464 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38465 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38466 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38467 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38468 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38469 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38470 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38473 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38474 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38475 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38476 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38477 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38478 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38484 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38485 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38486 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38520 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38524 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38525 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38526 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38527 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38536 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38538 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38539 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38540 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38543 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38547 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38548 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38549 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38550 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38551 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38556 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38557 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38558 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38559 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38568 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38569 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38570 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38571 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
38572 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38573 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38574 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38575 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38576 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38577 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38578 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38579 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38582 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38584 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38586 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38588 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38589 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38592 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38593 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38597 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38599 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38602 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38603 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38604 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38605 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38606 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38607 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38608 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38609 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38614 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38616 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38618 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38619 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38620 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38622 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38623 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38624 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38626 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38627 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38628 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38629 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38630 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38631 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 38632 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38633 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38635 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38636 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38637 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38638 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38639 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38642 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38643 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38644 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38646 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38647 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38649 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38650 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38652 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38653 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38654 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38655 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38656 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38657 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38658 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38660 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38661 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38663 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38664 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38665 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38667 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38668 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38670 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38673 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38674 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38675 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38677 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38678 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38680 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38681 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38683 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38684 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38686 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38687 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38688 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38689 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38690 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38691 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38692 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38693 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38694 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38695 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38696 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38697 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38698 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38699 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38700 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38701 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38702 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38703 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38704 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38708 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38710 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38716 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38717 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38718 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38719 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38720 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38721 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38722 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38723 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38724 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38725 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38726 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38727 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38731 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38734 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38737 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38738 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38739 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38740 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38741 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38742 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38743 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38744 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38745 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38751 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38752 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38753 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38754 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38755 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38756 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38757 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38760 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38763 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38764 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38765 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38766 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38769 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38771 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38772 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38777 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38778 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38779 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38783 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38784 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38785 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38786 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38787 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38788 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38791 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
38798 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
38800 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38801 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38802 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38803 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
38804 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38805 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38806 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38807 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38808 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38809 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38810 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38811 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38812 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38813 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38814 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38816 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38824 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38826 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38828 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
38829 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38830 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38831 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38832 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38833 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38839 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38840 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38841 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38842 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38843 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 38844 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 38845 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38846 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38847 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 38848 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 38849 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38850 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38851 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
38852 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
38856 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38857 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38858 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38863 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
38864 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38865 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38866 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38867 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
38868 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38869 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38870 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38871 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38872 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38873 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38874 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38883 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38884 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38886 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38887 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
38888 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
38889 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
38890 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
38891 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
38892 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
38893 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
38894 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
38895 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
38896 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
38897 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
38898 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
38899 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
38900 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
38901 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
38902 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
38903 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
38904 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
38905 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
38906 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
38907 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
38908 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38909 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
38911 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
38913 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
38914 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
38915 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
38916 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
38917 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38919 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
38924 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38927 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
38929 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
38930 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
38931 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
38933 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
38934 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
38935 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
38936 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
38937 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
38938 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
38939 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
38940 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38944 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38948 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
38993 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39002 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39003 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39004 { NULL, NULL, 0, NULL }
39005};
39006
39007
39008/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39009
72ef6efb
RD
39010static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39011 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39012}
8e99bda9
RD
39013static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39014 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39015}
39016static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39017 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39018}
72ef6efb
RD
39019static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39020 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39021}
39022static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39023 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39024}
fc46b7f3
RD
39025static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39026 return (void *)((wxLocale *) ((wxPyLocale *) x));
39027}
70d7cb34
RD
39028static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39029 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39030}
39031static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39032 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39033}
39034static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39035 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39036}
39037static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39038 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39039}
39040static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39041 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39042}
39043static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39044 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39045}
0085ce49
RD
39046static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39047 return (void *)((wxGDIObject *) ((wxIcon *) x));
39048}
39049static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39050 return (void *)((wxGDIObject *) ((wxPalette *) x));
39051}
39052static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39053 return (void *)((wxGDIObject *) ((wxPen *) x));
39054}
39055static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39056 return (void *)((wxGDIObject *) ((wxFont *) x));
39057}
39058static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39059 return (void *)((wxGDIObject *) ((wxCursor *) x));
39060}
39061static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39062 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39063}
39064static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39065 return (void *)((wxGDIObject *) ((wxRegion *) x));
39066}
39067static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39068 return (void *)((wxGDIObject *) ((wxBrush *) x));
39069}
72ef6efb
RD
39070static void *_p_wxGCDCTo_p_wxDC(void *x) {
39071 return (void *)((wxDC *) ((wxGCDC *) x));
39072}
0085ce49
RD
39073static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39074 return (void *)((wxDC *) ((wxScreenDC *) x));
39075}
24f6c4e8
RD
39076static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39077 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39078}
0085ce49
RD
39079static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39080 return (void *)((wxDC *) ((wxMirrorDC *) x));
39081}
39082static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39083 return (void *)((wxDC *) ((wxMemoryDC *) x));
39084}
39085static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39086 return (void *)((wxDC *) ((wxWindowDC *) x));
39087}
39088static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39089 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39090}
0085ce49 39091static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39092 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39093}
39094static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39095 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49 39096}
24f6c4e8
RD
39097static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39098 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39099}
39100static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39101 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39102}
0085ce49
RD
39103static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39104 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39105}
39106static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39107 return (void *)((wxDC *) ((wxPrinterDC *) x));
39108}
50efceee
RD
39109static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39110 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39111}
39112static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39113 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39114}
39115static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39116 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39117}
0085ce49
RD
39118static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39119 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39120}
39121static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39122 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39123}
39124static void *_p_wxPenTo_p_wxObject(void *x) {
39125 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39126}
39127static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39128 return (void *)((wxObject *) ((wxRegionIterator *) x));
39129}
0085ce49
RD
39130static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39131 return (void *)((wxObject *) ((wxSizerItem *) x));
39132}
34e0a3bb
RD
39133static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39134 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39135}
0085ce49
RD
39136static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39137 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39138}
39139static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39140 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39141}
39142static void *_p_wxIconTo_p_wxObject(void *x) {
39143 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39144}
39145static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39146 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39147}
39148static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39149 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39150}
39151static void *_p_wxSizerTo_p_wxObject(void *x) {
39152 return (void *)((wxObject *) ((wxSizer *) x));
39153}
39154static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39155 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39156}
39157static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39158 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39159}
0085ce49
RD
39160static void *_p_wxEventTo_p_wxObject(void *x) {
39161 return (void *)((wxObject *) ((wxEvent *) x));
39162}
39163static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39164 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39165}
39166static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39167 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39168}
39169static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39170 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39171}
27e45892
RD
39172static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39173 return (void *)((wxObject *) ((wxPseudoDC *) x));
39174}
2131d850
RD
39175static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39176 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39177}
0085ce49
RD
39178static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39179 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39180}
39181static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39182 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39183}
39184static void *_p_wxDCTo_p_wxObject(void *x) {
39185 return (void *)((wxObject *) ((wxDC *) x));
39186}
39187static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39188 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39189}
39190static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39191 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39192}
39193static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39194 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39195}
39196static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39197 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39198}
39199static void *_p_wxControlTo_p_wxObject(void *x) {
39200 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39201}
70d7cb34
RD
39202static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39203 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39204}
0085ce49
RD
39205static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39206 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39207}
39208static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39209 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39210}
39211static void *_p_wxFSFileTo_p_wxObject(void *x) {
39212 return (void *)((wxObject *) ((wxFSFile *) x));
39213}
39214static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39215 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39216}
39217static void *_p_wxRegionTo_p_wxObject(void *x) {
39218 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39219}
39220static void *_p_wxPySizerTo_p_wxObject(void *x) {
39221 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39222}
39223static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39224 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39225}
39226static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39227 return (void *)((wxObject *) ((wxGDIObject *) x));
39228}
70d7cb34
RD
39229static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39230 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39231}
39232static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39233 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39234}
0085ce49
RD
39235static void *_p_wxEffectsTo_p_wxObject(void *x) {
39236 return (void *)((wxObject *) ((wxEffects *) x));
39237}
39238static void *_p_wxPyEventTo_p_wxObject(void *x) {
39239 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39240}
39241static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39242 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39243}
39244static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39245 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39246}
70d7cb34
RD
39247static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39248 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39249}
0085ce49
RD
39250static void *_p_wxShowEventTo_p_wxObject(void *x) {
39251 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39252}
39253static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39254 return (void *)((wxObject *) ((wxMenuItem *) x));
39255}
39256static void *_p_wxDateEventTo_p_wxObject(void *x) {
39257 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39258}
39259static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39260 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39261}
39262static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39263 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39264}
39265static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39266 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39267}
39268static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39269 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39270}
39271static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39272 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39273}
39274static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39275 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39276}
39277static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39278 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39279}
39280static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39281 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39282}
39283static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39284 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39285}
39286static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39287 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39288}
39289static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39290 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39291}
39292static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39293 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39294}
39295static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39296 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39297}
39298static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39299 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39300}
39301static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39302 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39303}
39304static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39305 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39306}
39307static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39308 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39309}
39310static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39311 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39312}
39313static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39314 return (void *)((wxObject *) ((wxImageHandler *) x));
39315}
39316static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39317 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39318}
39319static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39320 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39321}
580080c5
RD
39322static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39323 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39324}
0085ce49
RD
39325static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39326 return (void *)((wxObject *) ((wxEvtHandler *) x));
39327}
34e0a3bb
RD
39328static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39329 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39330}
24f6c4e8
RD
39331static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39332 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39333}
0085ce49 39334static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39335 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49 39336}
24f6c4e8
RD
39337static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39338 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
0085ce49
RD
39339}
39340static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39341 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39342}
39343static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39344 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39345}
0085ce49
RD
39346static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39347 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39348}
580080c5
RD
39349static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39350 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39351}
0085ce49
RD
39352static void *_p_wxImageTo_p_wxObject(void *x) {
39353 return (void *)((wxObject *) ((wxImage *) x));
39354}
39355static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39356 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39357}
70d7cb34
RD
39358static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39359 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39360}
39361static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39362 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39363}
0085ce49
RD
39364static void *_p_wxPaletteTo_p_wxObject(void *x) {
39365 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39366}
39367static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39368 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
39369}
39370static void *_p_wxImageListTo_p_wxObject(void *x) {
39371 return (void *)((wxObject *) ((wxImageList *) x));
39372}
72ef6efb
RD
39373static void *_p_wxGCDCTo_p_wxObject(void *x) {
39374 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39375}
0085ce49
RD
39376static void *_p_wxCursorTo_p_wxObject(void *x) {
39377 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39378}
39379static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39380 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39381}
39382static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39383 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39384}
70d7cb34
RD
39385static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39386 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39387}
0085ce49
RD
39388static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39389 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39390}
39391static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39392 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39393}
39394static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39395 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39396}
39397static void *_p_wxWindowTo_p_wxObject(void *x) {
39398 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39399}
39400static void *_p_wxMenuTo_p_wxObject(void *x) {
39401 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39402}
39403static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39404 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39405}
39406static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39407 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39408}
0085ce49
RD
39409static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39410 return (void *)((wxObject *) ((wxFileSystem *) x));
39411}
39412static void *_p_wxBitmapTo_p_wxObject(void *x) {
39413 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39414}
39415static void *_p_wxMaskTo_p_wxObject(void *x) {
39416 return (void *)((wxObject *) ((wxMask *) x));
39417}
70d7cb34
RD
39418static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39419 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39420}
0085ce49
RD
39421static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39423}
39424static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39425 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39426}
39427static void *_p_wxPyAppTo_p_wxObject(void *x) {
39428 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39429}
39430static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39431 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39432}
39433static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39434 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39435}
39436static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39437 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39438}
39439static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39441}
39442static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39443 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39444}
39445static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39446 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39447}
39448static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39449 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39450}
39451static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39452 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39453}
39454static void *_p_wxFontTo_p_wxObject(void *x) {
39455 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39456}
39457static void *_p_wxBrushTo_p_wxObject(void *x) {
39458 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39459}
39460static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39461 return (void *)((wxObject *) ((wxMetaFile *) x));
39462}
39463static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39464 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39465}
39466static void *_p_wxColourTo_p_wxObject(void *x) {
39467 return (void *)((wxObject *) ((wxColour *) x));
39468}
0085ce49
RD
39469static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39470 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39471}
39472static void *_p_wxValidatorTo_p_wxObject(void *x) {
39473 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39474}
39475static void *_p_wxControlTo_p_wxWindow(void *x) {
39476 return (void *)((wxWindow *) ((wxControl *) x));
39477}
39478static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39479 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39480}
39481static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39482 return (void *)((wxWindow *) ((wxMenuBar *) x));
39483}
fc46b7f3
RD
39484static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39485 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39486}
39487static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39488 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39489}
39490static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 39491static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39492static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39493static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39494static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39495static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39496static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39497static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39498static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39499static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39500static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39501static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
0085ce49
RD
39502static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39503static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39504static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39505static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39506static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39507static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 39508static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39509static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
39510static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39511static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39512static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39513static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39514static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39515static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39516static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39517static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39518static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
0085ce49
RD
39519static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39520static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39521static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39522static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39523static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39524static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39525static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39526static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 39527static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 39528static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39529static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39530static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39531static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39532static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39533static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39534static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39535static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39536static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39537static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
39538static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39539static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39540static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39541static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39542static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39543static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39544static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39545static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39546static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39547static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39548static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39549static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39550static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39551static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39552static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39553static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
39554static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39555static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 39556static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39557static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
39558static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39559static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39560static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39561static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39562static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39563static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39564static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39565static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39566static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39567static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39568static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39569static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39570static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
39571static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39572static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39573static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39574static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39575static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39576static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39577static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39578static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39579static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39580static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39581static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39582static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39583static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39584static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39585static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39586static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39587static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39588static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39589static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39590static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39591static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39592static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39593static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49 39594static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39595static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39596static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39597static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39598static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39599static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39600static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39601static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39602static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39603static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39604static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39605static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
39606static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39607static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39608static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39609static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49 39610static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39611static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
39612static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39613static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39614static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39615static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39616static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39617static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39618static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39619static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39620static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39621static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39622static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39623static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39624static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39625static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39626static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39627static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39628static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39629static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39630static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39631static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39632static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
39633static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39634static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39635static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39636static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39637static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39638static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 39639static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39640static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39641static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39642static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39643static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39644static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39645static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 39646static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39647static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49 39648static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39649static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39650static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39651static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39652static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39653static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39654static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39655static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39656static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 39657static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
39658static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39659static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39660static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39661
39662static swig_type_info *swig_type_initial[] = {
fc46b7f3 39663 &_swigt__p_buffer,
0085ce49
RD
39664 &_swigt__p_char,
39665 &_swigt__p_double,
39666 &_swigt__p_form_ops_t,
39667 &_swigt__p_int,
39668 &_swigt__p_unsigned_char,
39669 &_swigt__p_unsigned_int,
39670 &_swigt__p_unsigned_long,
0a27f394 39671 &_swigt__p_void,
0085ce49
RD
39672 &_swigt__p_wxANIHandler,
39673 &_swigt__p_wxAcceleratorTable,
39674 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39675 &_swigt__p_wxAlphaPixelData,
39676 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39677 &_swigt__p_wxAutoBufferedPaintDC,
0085ce49
RD
39678 &_swigt__p_wxBMPHandler,
39679 &_swigt__p_wxBitmap,
39680 &_swigt__p_wxBoxSizer,
39681 &_swigt__p_wxBrush,
39682 &_swigt__p_wxBrushList,
39683 &_swigt__p_wxBufferedDC,
39684 &_swigt__p_wxBufferedPaintDC,
39685 &_swigt__p_wxCURHandler,
fc46b7f3 39686 &_swigt__p_wxChar,
0085ce49
RD
39687 &_swigt__p_wxChildFocusEvent,
39688 &_swigt__p_wxClientDC,
2131d850 39689 &_swigt__p_wxClipboardTextEvent,
0085ce49 39690 &_swigt__p_wxCloseEvent,
72ef6efb 39691 &_swigt__p_wxColor,
0085ce49
RD
39692 &_swigt__p_wxColour,
39693 &_swigt__p_wxColourDatabase,
39694 &_swigt__p_wxCommandEvent,
39695 &_swigt__p_wxContextMenuEvent,
39696 &_swigt__p_wxControl,
39697 &_swigt__p_wxControlWithItems,
39698 &_swigt__p_wxCursor,
39699 &_swigt__p_wxDC,
70d7cb34
RD
39700 &_swigt__p_wxDCBrushChanger,
39701 &_swigt__p_wxDCClipper,
b39fe951 39702 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39703 &_swigt__p_wxDCPenChanger,
39704 &_swigt__p_wxDCTextColourChanger,
0085ce49
RD
39705 &_swigt__p_wxDash,
39706 &_swigt__p_wxDateEvent,
39707 &_swigt__p_wxDisplayChangedEvent,
39708 &_swigt__p_wxDropFilesEvent,
39709 &_swigt__p_wxDuplexMode,
39710 &_swigt__p_wxEffects,
39711 &_swigt__p_wxEncodingConverter,
39712 &_swigt__p_wxEraseEvent,
39713 &_swigt__p_wxEvent,
39714 &_swigt__p_wxEvtHandler,
39715 &_swigt__p_wxFSFile,
39716 &_swigt__p_wxFileSystem,
39717 &_swigt__p_wxFlexGridSizer,
39718 &_swigt__p_wxFocusEvent,
39719 &_swigt__p_wxFont,
39720 &_swigt__p_wxFontList,
39721 &_swigt__p_wxFontMapper,
39722 &_swigt__p_wxGBSizerItem,
72ef6efb 39723 &_swigt__p_wxGCDC,
50efceee 39724 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
39725 &_swigt__p_wxGDIObject,
39726 &_swigt__p_wxGIFHandler,
70d7cb34 39727 &_swigt__p_wxGraphicsBrush,
72ef6efb 39728 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39729 &_swigt__p_wxGraphicsFont,
39730 &_swigt__p_wxGraphicsMatrix,
39731 &_swigt__p_wxGraphicsObject,
72ef6efb 39732 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39733 &_swigt__p_wxGraphicsPen,
39734 &_swigt__p_wxGraphicsRenderer,
0085ce49
RD
39735 &_swigt__p_wxGridBagSizer,
39736 &_swigt__p_wxGridSizer,
33d6fd3b 39737 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
39738 &_swigt__p_wxICOHandler,
39739 &_swigt__p_wxIcon,
39740 &_swigt__p_wxIconBundle,
39741 &_swigt__p_wxIconLocation,
39742 &_swigt__p_wxIconizeEvent,
39743 &_swigt__p_wxIdleEvent,
39744 &_swigt__p_wxImage,
39745 &_swigt__p_wxImageHandler,
39746 &_swigt__p_wxImageList,
39747 &_swigt__p_wxIndividualLayoutConstraint,
39748 &_swigt__p_wxInitDialogEvent,
39749 &_swigt__p_wxJPEGHandler,
39750 &_swigt__p_wxKeyEvent,
39751 &_swigt__p_wxLanguageInfo,
39752 &_swigt__p_wxLayoutConstraints,
39753 &_swigt__p_wxLocale,
39754 &_swigt__p_wxMask,
39755 &_swigt__p_wxMaximizeEvent,
39756 &_swigt__p_wxMemoryDC,
39757 &_swigt__p_wxMenu,
39758 &_swigt__p_wxMenuBar,
39759 &_swigt__p_wxMenuEvent,
39760 &_swigt__p_wxMenuItem,
39761 &_swigt__p_wxMetaFile,
39762 &_swigt__p_wxMetaFileDC,
39763 &_swigt__p_wxMirrorDC,
39764 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39765 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
39766 &_swigt__p_wxMouseEvent,
39767 &_swigt__p_wxMoveEvent,
39768 &_swigt__p_wxNativeEncodingInfo,
39769 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39770 &_swigt__p_wxNativePixelData,
39771 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
39772 &_swigt__p_wxNavigationKeyEvent,
39773 &_swigt__p_wxNcPaintEvent,
39774 &_swigt__p_wxNotifyEvent,
39775 &_swigt__p_wxObject,
b39fe951 39776 &_swigt__p_wxOverlay,
0085ce49
RD
39777 &_swigt__p_wxPCXHandler,
39778 &_swigt__p_wxPNGHandler,
39779 &_swigt__p_wxPNMHandler,
39780 &_swigt__p_wxPaintDC,
39781 &_swigt__p_wxPaintEvent,
39782 &_swigt__p_wxPalette,
39783 &_swigt__p_wxPaletteChangedEvent,
39784 &_swigt__p_wxPaperSize,
39785 &_swigt__p_wxPen,
39786 &_swigt__p_wxPenList,
fc46b7f3 39787 &_swigt__p_wxPixelDataBase,
0085ce49 39788 &_swigt__p_wxPoint,
72ef6efb 39789 &_swigt__p_wxPoint2D,
70d7cb34 39790 &_swigt__p_wxPoint2DDouble,
0085ce49
RD
39791 &_swigt__p_wxPostScriptDC,
39792 &_swigt__p_wxPrintData,
39793 &_swigt__p_wxPrinterDC,
27e45892 39794 &_swigt__p_wxPseudoDC,
0085ce49
RD
39795 &_swigt__p_wxPyApp,
39796 &_swigt__p_wxPyCommandEvent,
39797 &_swigt__p_wxPyEvent,
39798 &_swigt__p_wxPyFontEnumerator,
39799 &_swigt__p_wxPyImageHandler,
fc46b7f3 39800 &_swigt__p_wxPyLocale,
0085ce49
RD
39801 &_swigt__p_wxPySizer,
39802 &_swigt__p_wxPyValidator,
39803 &_swigt__p_wxQueryNewPaletteEvent,
39804 &_swigt__p_wxRect,
70d7cb34 39805 &_swigt__p_wxRect2DDouble,
0085ce49
RD
39806 &_swigt__p_wxRegion,
39807 &_swigt__p_wxRegionIterator,
39808 &_swigt__p_wxRendererNative,
39809 &_swigt__p_wxRendererVersion,
39810 &_swigt__p_wxScreenDC,
39811 &_swigt__p_wxScrollEvent,
39812 &_swigt__p_wxScrollWinEvent,
39813 &_swigt__p_wxSetCursorEvent,
39814 &_swigt__p_wxShowEvent,
39815 &_swigt__p_wxSize,
39816 &_swigt__p_wxSizeEvent,
39817 &_swigt__p_wxSizer,
39818 &_swigt__p_wxSizerItem,
39819 &_swigt__p_wxSplitterRenderParams,
39820 &_swigt__p_wxStaticBoxSizer,
39821 &_swigt__p_wxStdDialogButtonSizer,
50efceee 39822 &_swigt__p_wxStockGDI,
0085ce49
RD
39823 &_swigt__p_wxString,
39824 &_swigt__p_wxSysColourChangedEvent,
580080c5 39825 &_swigt__p_wxTGAHandler,
0085ce49
RD
39826 &_swigt__p_wxTIFFHandler,
39827 &_swigt__p_wxUpdateUIEvent,
39828 &_swigt__p_wxValidator,
39829 &_swigt__p_wxWindow,
39830 &_swigt__p_wxWindowCreateEvent,
39831 &_swigt__p_wxWindowDC,
39832 &_swigt__p_wxWindowDestroyEvent,
39833 &_swigt__p_wxXPMHandler,
39834};
39835
fc46b7f3 39836static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39837static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39838static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39839static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39840static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39841static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39842static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39843static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 39844static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39845static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39846static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39847static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39848static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39849static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39850static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39851static 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}};
39852static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39853static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
39854static 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}};
39855static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39856static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39857static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39858static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39859static 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
39860static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39861static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 39862static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39863static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39864static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39865static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39866static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39867static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39868static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39869static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39870static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39871static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39872static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 39873static 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 39874static 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 39875static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39876static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39877static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39878static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
39879static 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 39880static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39881static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
39882static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 39883static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39884static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
39885static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
39886static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
39887static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
39888static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
39889static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39890static 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 39891static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 39892static 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
39893static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
39894static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
39895static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
39896static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
39897static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39898static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
39899static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39900static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39901static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39902static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39903static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
39904static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
39905static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39906static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39907static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
39908static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
39909static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
39910static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
39911static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
39912static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39913static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39914static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39915static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39916static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39917static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39918static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39919static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39920static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39921static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39922static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
39923static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
39924static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
39925static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
39926static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
39927static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
39928static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
39929static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
39930static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
39931static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
39932static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
39933static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
39934static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39935static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39936static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39937static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
39938static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39939static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 39940static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39941static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
39942static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
39943static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39944static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39945static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
39946static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39947static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39948static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 39949static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39950static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39951static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
39952static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
39953static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39954static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39955static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 39956static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39957static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
39958static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
39959static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39960static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39961static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
39962static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
39963static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39964static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39965static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
39966static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
39967static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
39968static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
39969static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39970static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39971static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
39972static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39973static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39974static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
39975static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
39976static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 39977static 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 39978static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39979static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39980static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
39981static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
39982static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
39983static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39984static 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 39985static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39986static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39987static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39988static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
39989static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
39990static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 39991static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39992static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39993static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39994static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39995static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39996static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
39997static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
39998static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
39999static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40000static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40001static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40002static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40003static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40004static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40005static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 40006static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40007
40008static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40009 _swigc__p_buffer,
0085ce49
RD
40010 _swigc__p_char,
40011 _swigc__p_double,
40012 _swigc__p_form_ops_t,
40013 _swigc__p_int,
40014 _swigc__p_unsigned_char,
40015 _swigc__p_unsigned_int,
40016 _swigc__p_unsigned_long,
0a27f394 40017 _swigc__p_void,
0085ce49
RD
40018 _swigc__p_wxANIHandler,
40019 _swigc__p_wxAcceleratorTable,
40020 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40021 _swigc__p_wxAlphaPixelData,
40022 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40023 _swigc__p_wxAutoBufferedPaintDC,
0085ce49
RD
40024 _swigc__p_wxBMPHandler,
40025 _swigc__p_wxBitmap,
40026 _swigc__p_wxBoxSizer,
40027 _swigc__p_wxBrush,
40028 _swigc__p_wxBrushList,
40029 _swigc__p_wxBufferedDC,
40030 _swigc__p_wxBufferedPaintDC,
40031 _swigc__p_wxCURHandler,
fc46b7f3 40032 _swigc__p_wxChar,
0085ce49
RD
40033 _swigc__p_wxChildFocusEvent,
40034 _swigc__p_wxClientDC,
2131d850 40035 _swigc__p_wxClipboardTextEvent,
0085ce49 40036 _swigc__p_wxCloseEvent,
72ef6efb 40037 _swigc__p_wxColor,
0085ce49
RD
40038 _swigc__p_wxColour,
40039 _swigc__p_wxColourDatabase,
40040 _swigc__p_wxCommandEvent,
40041 _swigc__p_wxContextMenuEvent,
40042 _swigc__p_wxControl,
40043 _swigc__p_wxControlWithItems,
40044 _swigc__p_wxCursor,
40045 _swigc__p_wxDC,
70d7cb34
RD
40046 _swigc__p_wxDCBrushChanger,
40047 _swigc__p_wxDCClipper,
b39fe951 40048 _swigc__p_wxDCOverlay,
70d7cb34
RD
40049 _swigc__p_wxDCPenChanger,
40050 _swigc__p_wxDCTextColourChanger,
0085ce49
RD
40051 _swigc__p_wxDash,
40052 _swigc__p_wxDateEvent,
40053 _swigc__p_wxDisplayChangedEvent,
40054 _swigc__p_wxDropFilesEvent,
40055 _swigc__p_wxDuplexMode,
40056 _swigc__p_wxEffects,
40057 _swigc__p_wxEncodingConverter,
40058 _swigc__p_wxEraseEvent,
40059 _swigc__p_wxEvent,
40060 _swigc__p_wxEvtHandler,
40061 _swigc__p_wxFSFile,
40062 _swigc__p_wxFileSystem,
40063 _swigc__p_wxFlexGridSizer,
40064 _swigc__p_wxFocusEvent,
40065 _swigc__p_wxFont,
40066 _swigc__p_wxFontList,
40067 _swigc__p_wxFontMapper,
40068 _swigc__p_wxGBSizerItem,
72ef6efb 40069 _swigc__p_wxGCDC,
50efceee 40070 _swigc__p_wxGDIObjListBase,
0085ce49
RD
40071 _swigc__p_wxGDIObject,
40072 _swigc__p_wxGIFHandler,
70d7cb34 40073 _swigc__p_wxGraphicsBrush,
72ef6efb 40074 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40075 _swigc__p_wxGraphicsFont,
40076 _swigc__p_wxGraphicsMatrix,
40077 _swigc__p_wxGraphicsObject,
72ef6efb 40078 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40079 _swigc__p_wxGraphicsPen,
40080 _swigc__p_wxGraphicsRenderer,
0085ce49
RD
40081 _swigc__p_wxGridBagSizer,
40082 _swigc__p_wxGridSizer,
33d6fd3b 40083 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
40084 _swigc__p_wxICOHandler,
40085 _swigc__p_wxIcon,
40086 _swigc__p_wxIconBundle,
40087 _swigc__p_wxIconLocation,
40088 _swigc__p_wxIconizeEvent,
40089 _swigc__p_wxIdleEvent,
40090 _swigc__p_wxImage,
40091 _swigc__p_wxImageHandler,
40092 _swigc__p_wxImageList,
40093 _swigc__p_wxIndividualLayoutConstraint,
40094 _swigc__p_wxInitDialogEvent,
40095 _swigc__p_wxJPEGHandler,
40096 _swigc__p_wxKeyEvent,
40097 _swigc__p_wxLanguageInfo,
40098 _swigc__p_wxLayoutConstraints,
40099 _swigc__p_wxLocale,
40100 _swigc__p_wxMask,
40101 _swigc__p_wxMaximizeEvent,
40102 _swigc__p_wxMemoryDC,
40103 _swigc__p_wxMenu,
40104 _swigc__p_wxMenuBar,
40105 _swigc__p_wxMenuEvent,
40106 _swigc__p_wxMenuItem,
40107 _swigc__p_wxMetaFile,
40108 _swigc__p_wxMetaFileDC,
40109 _swigc__p_wxMirrorDC,
40110 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40111 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
40112 _swigc__p_wxMouseEvent,
40113 _swigc__p_wxMoveEvent,
40114 _swigc__p_wxNativeEncodingInfo,
40115 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40116 _swigc__p_wxNativePixelData,
40117 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
40118 _swigc__p_wxNavigationKeyEvent,
40119 _swigc__p_wxNcPaintEvent,
40120 _swigc__p_wxNotifyEvent,
40121 _swigc__p_wxObject,
b39fe951 40122 _swigc__p_wxOverlay,
0085ce49
RD
40123 _swigc__p_wxPCXHandler,
40124 _swigc__p_wxPNGHandler,
40125 _swigc__p_wxPNMHandler,
40126 _swigc__p_wxPaintDC,
40127 _swigc__p_wxPaintEvent,
40128 _swigc__p_wxPalette,
40129 _swigc__p_wxPaletteChangedEvent,
40130 _swigc__p_wxPaperSize,
40131 _swigc__p_wxPen,
40132 _swigc__p_wxPenList,
fc46b7f3 40133 _swigc__p_wxPixelDataBase,
0085ce49 40134 _swigc__p_wxPoint,
72ef6efb 40135 _swigc__p_wxPoint2D,
70d7cb34 40136 _swigc__p_wxPoint2DDouble,
0085ce49
RD
40137 _swigc__p_wxPostScriptDC,
40138 _swigc__p_wxPrintData,
40139 _swigc__p_wxPrinterDC,
27e45892 40140 _swigc__p_wxPseudoDC,
0085ce49
RD
40141 _swigc__p_wxPyApp,
40142 _swigc__p_wxPyCommandEvent,
40143 _swigc__p_wxPyEvent,
40144 _swigc__p_wxPyFontEnumerator,
40145 _swigc__p_wxPyImageHandler,
fc46b7f3 40146 _swigc__p_wxPyLocale,
0085ce49
RD
40147 _swigc__p_wxPySizer,
40148 _swigc__p_wxPyValidator,
40149 _swigc__p_wxQueryNewPaletteEvent,
40150 _swigc__p_wxRect,
70d7cb34 40151 _swigc__p_wxRect2DDouble,
0085ce49
RD
40152 _swigc__p_wxRegion,
40153 _swigc__p_wxRegionIterator,
40154 _swigc__p_wxRendererNative,
40155 _swigc__p_wxRendererVersion,
40156 _swigc__p_wxScreenDC,
40157 _swigc__p_wxScrollEvent,
40158 _swigc__p_wxScrollWinEvent,
40159 _swigc__p_wxSetCursorEvent,
40160 _swigc__p_wxShowEvent,
40161 _swigc__p_wxSize,
40162 _swigc__p_wxSizeEvent,
40163 _swigc__p_wxSizer,
40164 _swigc__p_wxSizerItem,
40165 _swigc__p_wxSplitterRenderParams,
40166 _swigc__p_wxStaticBoxSizer,
40167 _swigc__p_wxStdDialogButtonSizer,
50efceee 40168 _swigc__p_wxStockGDI,
0085ce49
RD
40169 _swigc__p_wxString,
40170 _swigc__p_wxSysColourChangedEvent,
580080c5 40171 _swigc__p_wxTGAHandler,
0085ce49
RD
40172 _swigc__p_wxTIFFHandler,
40173 _swigc__p_wxUpdateUIEvent,
40174 _swigc__p_wxValidator,
40175 _swigc__p_wxWindow,
40176 _swigc__p_wxWindowCreateEvent,
40177 _swigc__p_wxWindowDC,
40178 _swigc__p_wxWindowDestroyEvent,
40179 _swigc__p_wxXPMHandler,
40180};
40181
40182
40183/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40184
40185static swig_const_info swig_const_table[] = {
40186{0, 0, 0, 0.0, 0, 0}};
40187
40188#ifdef __cplusplus
40189}
40190#endif
40191/* -----------------------------------------------------------------------------
40192 * Type initialization:
40193 * This problem is tough by the requirement that no dynamic
40194 * memory is used. Also, since swig_type_info structures store pointers to
40195 * swig_cast_info structures and swig_cast_info structures store pointers back
40196 * to swig_type_info structures, we need some lookup code at initialization.
40197 * The idea is that swig generates all the structures that are needed.
40198 * The runtime then collects these partially filled structures.
40199 * The SWIG_InitializeModule function takes these initial arrays out of
40200 * swig_module, and does all the lookup, filling in the swig_module.types
40201 * array with the correct data and linking the correct swig_cast_info
40202 * structures together.
40203 *
40204 * The generated swig_type_info structures are assigned staticly to an initial
40205 * array. We just loop though that array, and handle each type individually.
40206 * First we lookup if this type has been already loaded, and if so, use the
40207 * loaded structure instead of the generated one. Then we have to fill in the
40208 * cast linked list. The cast data is initially stored in something like a
40209 * two-dimensional array. Each row corresponds to a type (there are the same
40210 * number of rows as there are in the swig_type_initial array). Each entry in
40211 * a column is one of the swig_cast_info structures for that type.
40212 * The cast_initial array is actually an array of arrays, because each row has
40213 * a variable number of columns. So to actually build the cast linked list,
40214 * we find the array of casts associated with the type, and loop through it
40215 * adding the casts to the list. The one last trick we need to do is making
40216 * sure the type pointer in the swig_cast_info struct is correct.
40217 *
40218 * First off, we lookup the cast->type name to see if it is already loaded.
40219 * There are three cases to handle:
40220 * 1) If the cast->type has already been loaded AND the type we are adding
40221 * casting info to has not been loaded (it is in this module), THEN we
40222 * replace the cast->type pointer with the type pointer that has already
40223 * been loaded.
40224 * 2) If BOTH types (the one we are adding casting info to, and the
40225 * cast->type) are loaded, THEN the cast info has already been loaded by
40226 * the previous module so we just ignore it.
40227 * 3) Finally, if cast->type has not already been loaded, then we add that
40228 * swig_cast_info to the linked list (because the cast->type) pointer will
40229 * be correct.
40230 * ----------------------------------------------------------------------------- */
40231
40232#ifdef __cplusplus
40233extern "C" {
40234#if 0
40235} /* c-mode */
40236#endif
40237#endif
40238
40239#if 0
40240#define SWIGRUNTIME_DEBUG
40241#endif
40242
40243SWIGRUNTIME void
40244SWIG_InitializeModule(void *clientdata) {
40245 size_t i;
40246 swig_module_info *module_head;
40247 static int init_run = 0;
40248
40249 clientdata = clientdata;
40250
40251 if (init_run) return;
40252 init_run = 1;
40253
40254 /* Initialize the swig_module */
40255 swig_module.type_initial = swig_type_initial;
40256 swig_module.cast_initial = swig_cast_initial;
40257
40258 /* Try and load any already created modules */
40259 module_head = SWIG_GetModule(clientdata);
40260 if (module_head) {
40261 swig_module.next = module_head->next;
40262 module_head->next = &swig_module;
40263 } else {
40264 /* This is the first module loaded */
40265 swig_module.next = &swig_module;
40266 SWIG_SetModule(clientdata, &swig_module);
40267 }
40268
40269 /* Now work on filling in swig_module.types */
40270#ifdef SWIGRUNTIME_DEBUG
40271 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40272#endif
40273 for (i = 0; i < swig_module.size; ++i) {
40274 swig_type_info *type = 0;
40275 swig_type_info *ret;
40276 swig_cast_info *cast;
40277
40278#ifdef SWIGRUNTIME_DEBUG
40279 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40280#endif
40281
40282 /* if there is another module already loaded */
40283 if (swig_module.next != &swig_module) {
40284 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 40285 }
0085ce49
RD
40286 if (type) {
40287 /* Overwrite clientdata field */
40288#ifdef SWIGRUNTIME_DEBUG
40289 printf("SWIG_InitializeModule: found type %s\n", type->name);
40290#endif
40291 if (swig_module.type_initial[i]->clientdata) {
40292 type->clientdata = swig_module.type_initial[i]->clientdata;
40293#ifdef SWIGRUNTIME_DEBUG
40294 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40295#endif
40296 }
40297 } else {
40298 type = swig_module.type_initial[i];
8d38bd1d 40299 }
0085ce49
RD
40300
40301 /* Insert casting types */
40302 cast = swig_module.cast_initial[i];
40303 while (cast->type) {
40304 /* Don't need to add information already in the list */
40305 ret = 0;
40306#ifdef SWIGRUNTIME_DEBUG
40307 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40308#endif
40309 if (swig_module.next != &swig_module) {
40310 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40311#ifdef SWIGRUNTIME_DEBUG
40312 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40313#endif
40314 }
40315 if (ret) {
40316 if (type == swig_module.type_initial[i]) {
40317#ifdef SWIGRUNTIME_DEBUG
40318 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40319#endif
40320 cast->type = ret;
40321 ret = 0;
40322 } else {
40323 /* Check for casting already in the list */
40324 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40325#ifdef SWIGRUNTIME_DEBUG
40326 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40327#endif
40328 if (!ocast) ret = 0;
40329 }
40330 }
40331
40332 if (!ret) {
40333#ifdef SWIGRUNTIME_DEBUG
40334 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40335#endif
40336 if (type->cast) {
40337 type->cast->prev = cast;
40338 cast->next = type->cast;
40339 }
40340 type->cast = cast;
40341 }
40342 cast++;
8d38bd1d 40343 }
0085ce49
RD
40344 /* Set entry in modules->types array equal to the type */
40345 swig_module.types[i] = type;
40346 }
40347 swig_module.types[i] = 0;
40348
40349#ifdef SWIGRUNTIME_DEBUG
40350 printf("**** SWIG_InitializeModule: Cast List ******\n");
40351 for (i = 0; i < swig_module.size; ++i) {
40352 int j = 0;
40353 swig_cast_info *cast = swig_module.cast_initial[i];
40354 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40355 while (cast->type) {
40356 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40357 cast++;
40358 ++j;
40359 }
40360 printf("---- Total casts: %d\n",j);
40361 }
40362 printf("**** SWIG_InitializeModule: Cast List ******\n");
40363#endif
40364}
40365
40366/* This function will propagate the clientdata field of type to
40367* any new swig_type_info structures that have been added into the list
40368* of equivalent types. It is like calling
40369* SWIG_TypeClientData(type, clientdata) a second time.
40370*/
40371SWIGRUNTIME void
40372SWIG_PropagateClientData(void) {
40373 size_t i;
40374 swig_cast_info *equiv;
40375 static int init_run = 0;
40376
40377 if (init_run) return;
40378 init_run = 1;
40379
40380 for (i = 0; i < swig_module.size; i++) {
40381 if (swig_module.types[i]->clientdata) {
40382 equiv = swig_module.types[i]->cast;
40383 while (equiv) {
40384 if (!equiv->converter) {
40385 if (equiv->type && !equiv->type->clientdata)
40386 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40387 }
40388 equiv = equiv->next;
40389 }
8d38bd1d 40390 }
0085ce49
RD
40391 }
40392}
40393
40394#ifdef __cplusplus
40395#if 0
40396{
40397 /* c-mode */
40398#endif
40399}
40400#endif
40401
40402
40403
40404#ifdef __cplusplus
40405extern "C" {
40406#endif
40407
40408 /* Python-specific SWIG API */
40409#define SWIG_newvarlink() SWIG_Python_newvarlink()
40410#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40411#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40412
40413 /* -----------------------------------------------------------------------------
40414 * global variable support code.
40415 * ----------------------------------------------------------------------------- */
40416
40417 typedef struct swig_globalvar {
40418 char *name; /* Name of global variable */
40419 PyObject *(*get_attr)(void); /* Return the current value */
40420 int (*set_attr)(PyObject *); /* Set the value */
40421 struct swig_globalvar *next;
40422 } swig_globalvar;
40423
40424 typedef struct swig_varlinkobject {
40425 PyObject_HEAD
40426 swig_globalvar *vars;
40427 } swig_varlinkobject;
40428
40429 SWIGINTERN PyObject *
40430 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40431 return PyString_FromString("<Swig global variables>");
40432 }
40433
40434 SWIGINTERN PyObject *
40435 swig_varlink_str(swig_varlinkobject *v) {
40436 PyObject *str = PyString_FromString("(");
40437 swig_globalvar *var;
40438 for (var = v->vars; var; var=var->next) {
40439 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40440 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40441 }
40442 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40443 return str;
40444 }
40445
40446 SWIGINTERN int
40447 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40448 PyObject *str = swig_varlink_str(v);
40449 fprintf(fp,"Swig global variables ");
40450 fprintf(fp,"%s\n", PyString_AsString(str));
40451 Py_DECREF(str);
40452 return 0;
40453 }
40454
40455 SWIGINTERN void
40456 swig_varlink_dealloc(swig_varlinkobject *v) {
40457 swig_globalvar *var = v->vars;
40458 while (var) {
40459 swig_globalvar *n = var->next;
40460 free(var->name);
40461 free(var);
40462 var = n;
8d38bd1d 40463 }
0085ce49
RD
40464 }
40465
40466 SWIGINTERN PyObject *
40467 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40468 PyObject *res = NULL;
40469 swig_globalvar *var = v->vars;
40470 while (var) {
40471 if (strcmp(var->name,n) == 0) {
40472 res = (*var->get_attr)();
40473 break;
40474 }
40475 var = var->next;
8d38bd1d 40476 }
0085ce49
RD
40477 if (res == NULL && !PyErr_Occurred()) {
40478 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40479 }
0085ce49
RD
40480 return res;
40481 }
40482
40483 SWIGINTERN int
40484 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40485 int res = 1;
40486 swig_globalvar *var = v->vars;
40487 while (var) {
40488 if (strcmp(var->name,n) == 0) {
40489 res = (*var->set_attr)(p);
40490 break;
40491 }
40492 var = var->next;
8d38bd1d 40493 }
0085ce49
RD
40494 if (res == 1 && !PyErr_Occurred()) {
40495 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40496 }
0085ce49
RD
40497 return res;
40498 }
40499
40500 SWIGINTERN PyTypeObject*
40501 swig_varlink_type(void) {
40502 static char varlink__doc__[] = "Swig var link object";
40503 static PyTypeObject varlink_type;
40504 static int type_init = 0;
40505 if (!type_init) {
40506 const PyTypeObject tmp
40507 = {
40508 PyObject_HEAD_INIT(NULL)
40509 0, /* Number of items in variable part (ob_size) */
40510 (char *)"swigvarlink", /* Type name (tp_name) */
40511 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40512 0, /* Itemsize (tp_itemsize) */
40513 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40514 (printfunc) swig_varlink_print, /* Print (tp_print) */
40515 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40516 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40517 0, /* tp_compare */
40518 (reprfunc) swig_varlink_repr, /* tp_repr */
40519 0, /* tp_as_number */
40520 0, /* tp_as_sequence */
40521 0, /* tp_as_mapping */
40522 0, /* tp_hash */
40523 0, /* tp_call */
40524 (reprfunc)swig_varlink_str, /* tp_str */
40525 0, /* tp_getattro */
40526 0, /* tp_setattro */
40527 0, /* tp_as_buffer */
40528 0, /* tp_flags */
40529 varlink__doc__, /* tp_doc */
40530 0, /* tp_traverse */
40531 0, /* tp_clear */
40532 0, /* tp_richcompare */
40533 0, /* tp_weaklistoffset */
40534#if PY_VERSION_HEX >= 0x02020000
40535 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40536#endif
40537#if PY_VERSION_HEX >= 0x02030000
40538 0, /* tp_del */
40539#endif
40540#ifdef COUNT_ALLOCS
40541 0,0,0,0 /* tp_alloc -> tp_next */
40542#endif
40543 };
40544 varlink_type = tmp;
40545 varlink_type.ob_type = &PyType_Type;
40546 type_init = 1;
8d38bd1d 40547 }
0085ce49
RD
40548 return &varlink_type;
40549 }
40550
40551 /* Create a variable linking object for use later */
40552 SWIGINTERN PyObject *
40553 SWIG_Python_newvarlink(void) {
40554 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40555 if (result) {
40556 result->vars = 0;
40557 }
40558 return ((PyObject*) result);
40559 }
40560
40561 SWIGINTERN void
40562 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40563 swig_varlinkobject *v = (swig_varlinkobject *) p;
40564 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40565 if (gv) {
40566 size_t size = strlen(name)+1;
40567 gv->name = (char *)malloc(size);
40568 if (gv->name) {
40569 strncpy(gv->name,name,size);
40570 gv->get_attr = get_attr;
40571 gv->set_attr = set_attr;
40572 gv->next = v->vars;
40573 }
8d38bd1d 40574 }
0085ce49
RD
40575 v->vars = gv;
40576 }
40577
40578 SWIGINTERN PyObject *
40579 SWIG_globals() {
40580 static PyObject *_SWIG_globals = 0;
40581 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40582 return _SWIG_globals;
40583 }
40584
40585 /* -----------------------------------------------------------------------------
40586 * constants/methods manipulation
40587 * ----------------------------------------------------------------------------- */
40588
40589 /* Install Constants */
40590 SWIGINTERN void
40591 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40592 PyObject *obj = 0;
40593 size_t i;
40594 for (i = 0; constants[i].type; ++i) {
40595 switch(constants[i].type) {
40596 case SWIG_PY_POINTER:
40597 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40598 break;
40599 case SWIG_PY_BINARY:
40600 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40601 break;
40602 default:
40603 obj = 0;
40604 break;
40605 }
40606 if (obj) {
40607 PyDict_SetItemString(d, constants[i].name, obj);
40608 Py_DECREF(obj);
40609 }
8d38bd1d 40610 }
0085ce49
RD
40611 }
40612
40613 /* -----------------------------------------------------------------------------*/
40614 /* Fix SwigMethods to carry the callback ptrs when needed */
40615 /* -----------------------------------------------------------------------------*/
40616
40617 SWIGINTERN void
40618 SWIG_Python_FixMethods(PyMethodDef *methods,
40619 swig_const_info *const_table,
40620 swig_type_info **types,
40621 swig_type_info **types_initial) {
40622 size_t i;
40623 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 40624 const char *c = methods[i].ml_doc;
0085ce49
RD
40625 if (c && (c = strstr(c, "swig_ptr: "))) {
40626 int j;
40627 swig_const_info *ci = 0;
453fb36b 40628 const char *name = c + 10;
0085ce49
RD
40629 for (j = 0; const_table[j].type; ++j) {
40630 if (strncmp(const_table[j].name, name,
40631 strlen(const_table[j].name)) == 0) {
40632 ci = &(const_table[j]);
40633 break;
40634 }
40635 }
40636 if (ci) {
40637 size_t shift = (ci->ptype) - types;
40638 swig_type_info *ty = types_initial[shift];
40639 size_t ldoc = (c - methods[i].ml_doc);
40640 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40641 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40642 if (ndoc) {
40643 char *buff = ndoc;
40644 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40645 if (ptr) {
40646 strncpy(buff, methods[i].ml_doc, ldoc);
40647 buff += ldoc;
40648 strncpy(buff, "swig_ptr: ", 10);
40649 buff += 10;
40650 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40651 methods[i].ml_doc = ndoc;
40652 }
40653 }
40654 }
40655 }
8d38bd1d 40656 }
0085ce49
RD
40657 }
40658
40659#ifdef __cplusplus
40660}
40661#endif
40662
40663/* -----------------------------------------------------------------------------*
40664 * Partial Init method
40665 * -----------------------------------------------------------------------------*/
40666
40667#ifdef __cplusplus
40668extern "C"
40669#endif
40670SWIGEXPORT void SWIG_init(void) {
40671 PyObject *m, *d;
40672
40673 /* Fix SwigMethods to carry the callback ptrs when needed */
40674 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40675
40676 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40677 d = PyModule_GetDict(m);
40678
40679 SWIG_InitializeModule(0);
40680 SWIG_InstallConstants(d,swig_const_table);
40681
40682
01f6b6d3
RD
40683 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40684 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40685 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40686 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40687 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
40688 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40689 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40690 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40691 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40692 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40693 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40694 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40695 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40696 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40697 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40698 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40699 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40700 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40701 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40702 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40703 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40704 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40705 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40706 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40707 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40708 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40709 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40710 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40711 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40712 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40713 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40714 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40715 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40716 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40717 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40718 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40719 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40720 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40721 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40722 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40723 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40724 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40725 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40726 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40727 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40728 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40729 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40730 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40731 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40732 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40733 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40734 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40735 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40736 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40737 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40738 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40739 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40740 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40741 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40742 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40743 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40744 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40745 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40746 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40747 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40748 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40749 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40750 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40751 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40752 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40753 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40754 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40755 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40756 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40757 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40758 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40759 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40760 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40761 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40762 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40763 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40764 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40765 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40766 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40767 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40768 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40769 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40770 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40771 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40772 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40773 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40774 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40775 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40776 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40777 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40778 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40779 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40780 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40781 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40782 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40783 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40784 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40785 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40786 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40787 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40788 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40789 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40790 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40791 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40792 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40793 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40794 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40795 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40796 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40797 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40798 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40799 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40800 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40801 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40802 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40803 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40804 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40805 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40806 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40807 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40808 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40809 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40810 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40811 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40812 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40813 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40814 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40815
40816 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40817
40818 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40819 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40820 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40821 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40822 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40823 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40824 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40825 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40826 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40827 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40828 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40829 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40830 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40831 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40832 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40833 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40834 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40835 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40836 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40837 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40838 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40839 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40840 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40841 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40842 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40843 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40844 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40845 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40846 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40847 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40848 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40849 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40850 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40851 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40852 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40853 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40854 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40855 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40856 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40857 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40858 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40859 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40860 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40861 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40862 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40863 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40864 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40865 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40866 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40867 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40868 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40869 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40870 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40871 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40872 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40873 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40874 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40875 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40876 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40877 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40878 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
40879 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
40880 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
40881 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
40882 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
40883 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
40884 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
40885 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
40886 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
40887 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
40888 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
40889 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
40890 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
40891 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
40892 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
40893 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
40894 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
40895 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
40896 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
40897 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
40898 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
40899 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
40900 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
40901 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
40902 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
40903 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
40904 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
40905 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
40906 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
40907 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
40908 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
40909 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
40910 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
40911 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
40912 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
40913 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
40914 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
40915 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
40916 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
40917 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
40918 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
40919 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
40920 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
40921 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
40922 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
40923 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
40924 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
40925 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
40926 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
40927 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
40928 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
40929 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
40930 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
40931 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
40932 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
40933 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
40934 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
40935 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
40936 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
40937 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
40938 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
40939 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
40940 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
40941 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
40942 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
40943 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
40944 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
40945 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
40946 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
40947 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
40948 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
40949 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
40950 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
40951 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
40952 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
40953 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
40954 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
40955 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
40956 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
40957 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
40958 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
40959 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
40960 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
40961 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
40962 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
40963 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
40964 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
40965 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
40966 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
40967 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
40968 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
40969 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
40970 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
40971 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
40972 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
40973 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
40974 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
40975 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
40976 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
40977 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
40978 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
40979 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
40980 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
40981 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
40982 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
40983 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
40984 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
40985 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
40986 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
40987 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
40988 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
40989 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
40990 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
40991 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
40992 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
40993 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
40994 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
40995 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
40996 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
40997 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
40998 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
40999 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41000 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41001 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41002 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41003 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41004 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41005 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41006 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41007 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41008 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41009 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41010 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41011 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41012 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41013 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41014 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41015 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41016 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41017 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41018 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41019 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41049 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41050 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41051 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41052 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41053 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41054 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41055 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41056 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41057 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41058 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41059 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41060 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41061 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41062 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41063 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41064 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41065 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41066 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41067 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41068 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41069 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41070 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41071 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
0085ce49
RD
41072 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41073 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41074 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41075 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41076 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41077 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41078 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41079 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41080 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41081 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41082 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41083 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41084 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41085 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41086 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41087 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41088 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41089 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41090 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41091 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41092 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41093 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41094 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41095 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41096 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41097 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41098 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41099 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41100 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41101 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41102 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41103 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41104 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41105 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41106 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41107 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41108 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41109 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41110 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41111 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41112 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41113 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49
RD
41114 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41115 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41116 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41117 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41118 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41119 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41120 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41121 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
41122 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41123 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41124 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41125 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
41126 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41127 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41128 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41129 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
41130 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41131 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41132 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41133 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41134 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41135 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41136 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41137 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41138 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41139 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
41140 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41141 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41142
41143 // Work around a chicken/egg problem in drawlist.cpp
41144 wxPyDrawList_SetAPIPtr();
41145
d14a1e28
RD
41146}
41147