]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
GetTextExtent --> (width height)
[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]
2503#define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504#define SWIGTYPE_p_wxDash swig_types[38]
2505#define SWIGTYPE_p_wxDateEvent swig_types[39]
2506#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507#define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508#define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509#define SWIGTYPE_p_wxEffects swig_types[43]
2510#define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511#define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512#define SWIGTYPE_p_wxEvent swig_types[46]
2513#define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514#define SWIGTYPE_p_wxFSFile swig_types[48]
2515#define SWIGTYPE_p_wxFileSystem swig_types[49]
2516#define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517#define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518#define SWIGTYPE_p_wxFont swig_types[52]
2519#define SWIGTYPE_p_wxFontList swig_types[53]
2520#define SWIGTYPE_p_wxFontMapper swig_types[54]
2521#define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522#define SWIGTYPE_p_wxGCDC swig_types[56]
2523#define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524#define SWIGTYPE_p_wxGDIObject swig_types[58]
2525#define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526#define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527#define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528#define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529#define SWIGTYPE_p_wxGridSizer swig_types[63]
2530#define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531#define SWIGTYPE_p_wxICOHandler swig_types[65]
2532#define SWIGTYPE_p_wxIcon swig_types[66]
2533#define SWIGTYPE_p_wxIconBundle swig_types[67]
2534#define SWIGTYPE_p_wxIconLocation swig_types[68]
2535#define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536#define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537#define SWIGTYPE_p_wxImage swig_types[71]
2538#define SWIGTYPE_p_wxImageHandler swig_types[72]
2539#define SWIGTYPE_p_wxImageList swig_types[73]
2540#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541#define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542#define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543#define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544#define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545#define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546#define SWIGTYPE_p_wxLocale swig_types[80]
2547#define SWIGTYPE_p_wxMask swig_types[81]
2548#define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549#define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550#define SWIGTYPE_p_wxMenu swig_types[84]
2551#define SWIGTYPE_p_wxMenuBar swig_types[85]
2552#define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553#define SWIGTYPE_p_wxMenuItem swig_types[87]
2554#define SWIGTYPE_p_wxMetaFile swig_types[88]
2555#define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556#define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559#define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560#define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562#define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563#define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566#define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567#define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568#define SWIGTYPE_p_wxObject swig_types[102]
2569#define SWIGTYPE_p_wxOverlay swig_types[103]
2570#define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571#define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572#define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573#define SWIGTYPE_p_wxPaintDC swig_types[107]
2574#define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575#define SWIGTYPE_p_wxPalette swig_types[109]
2576#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577#define SWIGTYPE_p_wxPaperSize swig_types[111]
2578#define SWIGTYPE_p_wxPen swig_types[112]
2579#define SWIGTYPE_p_wxPenList swig_types[113]
2580#define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581#define SWIGTYPE_p_wxPoint swig_types[115]
2582#define SWIGTYPE_p_wxPoint2D swig_types[116]
2583#define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584#define SWIGTYPE_p_wxPrintData swig_types[118]
2585#define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586#define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587#define SWIGTYPE_p_wxPyApp swig_types[121]
2588#define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyEvent swig_types[123]
2590#define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591#define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592#define SWIGTYPE_p_wxPyLocale swig_types[126]
2593#define SWIGTYPE_p_wxPySizer swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxRegion swig_types[131]
2598#define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599#define SWIGTYPE_p_wxRendererNative swig_types[133]
2600#define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601#define SWIGTYPE_p_wxScreenDC swig_types[135]
2602#define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603#define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604#define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605#define SWIGTYPE_p_wxShowEvent swig_types[139]
2606#define SWIGTYPE_p_wxSize swig_types[140]
2607#define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608#define SWIGTYPE_p_wxSizer swig_types[142]
2609#define SWIGTYPE_p_wxSizerItem swig_types[143]
2610#define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611#define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613#define SWIGTYPE_p_wxStockGDI swig_types[147]
2614#define SWIGTYPE_p_wxString swig_types[148]
2615#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616#define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617#define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618#define SWIGTYPE_p_wxValidator swig_types[152]
2619#define SWIGTYPE_p_wxWindow swig_types[153]
2620#define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621#define SWIGTYPE_p_wxWindowDC swig_types[155]
2622#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623#define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624static swig_type_info *swig_types[159];
2625static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
32fe5131
RD
2626#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2628
093d3ff1 2629/* -------- TYPES TABLE (END) -------- */
d14a1e28 2630
0085ce49
RD
2631#if (PY_VERSION_HEX <= 0x02000000)
2632# if !defined(SWIG_PYTHON_CLASSIC)
2633# error "This python version requires to use swig with the '-classic' option"
2634# endif
2635#endif
2636#if (PY_VERSION_HEX <= 0x02020000)
2637# error "This python version requires to use swig with the '-nomodern' option"
2638#endif
2639#if (PY_VERSION_HEX <= 0x02020000)
2640# error "This python version requires to use swig with the '-nomodernargs' option"
2641#endif
2642#ifndef METH_O
2643# error "This python version requires to use swig with the '-nofastunpack' option"
2644#endif
d14a1e28 2645
093d3ff1
RD
2646/*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649#define SWIG_init init_gdi_
d14a1e28 2650
093d3ff1 2651#define SWIG_name "_gdi_"
d14a1e28 2652
0085ce49 2653#define SWIGVERSION 0x010329
d14a1e28 2654
d14a1e28 2655
0085ce49
RD
2656#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2658
2659
0085ce49
RD
2660#include <stdexcept>
2661
2662
2663namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
093d3ff1 2671 }
0085ce49
RD
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
093d3ff1 2676 }
0085ce49
RD
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
093d3ff1 2706}
d14a1e28 2707
994141e6 2708
0085ce49
RD
2709namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
69223c70 2718 }
0085ce49 2719 };
15afbcd0
RD
2720}
2721
2722
0085ce49
RD
2723#include "wx/wxPython/wxPython.h"
2724#include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
01f6b6d3
RD
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732SWIGINTERNINLINE PyObject *
2733SWIG_From_int (int value)
2734{
2735 return SWIG_From_long (value);
2736}
2737
2738
0085ce49
RD
2739#include <limits.h>
2740#ifndef LLONG_MIN
2741# define LLONG_MIN LONG_LONG_MIN
2742#endif
2743#ifndef LLONG_MAX
2744# define LLONG_MAX LONG_LONG_MAX
2745#endif
2746#ifndef ULLONG_MAX
2747# define ULLONG_MAX ULONG_LONG_MAX
2748#endif
b88bce5f 2749
b88bce5f 2750
50efceee
RD
2751SWIGINTERN int
2752SWIG_AsVal_long (PyObject* obj, long* val)
2753{
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759}
2760
2761
093d3ff1 2762SWIGINTERN int
0085ce49 2763SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2764{
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2767 return SWIG_TypeError;
093d3ff1
RD
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
0085ce49 2771 return SWIG_OK;
093d3ff1 2772}
d14a1e28
RD
2773
2774
093d3ff1 2775SWIGINTERN int
0085ce49
RD
2776SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777{
093d3ff1 2778 unsigned long v;
0085ce49
RD
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
093d3ff1 2783 } else {
0085ce49 2784 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2785 }
0085ce49
RD
2786 }
2787 return res;
093d3ff1 2788}
33b885b9 2789
d14a1e28 2790
0085ce49
RD
2791SWIGINTERNINLINE PyObject*
2792SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2793{
0085ce49
RD
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2796}
d14a1e28 2797
d14a1e28 2798
0085ce49
RD
2799SWIGINTERNINLINE PyObject *
2800SWIG_From_unsigned_SS_char (unsigned char value)
2801{
2802 return SWIG_From_unsigned_SS_long (value);
2803}
d14a1e28 2804
e9d6f3a4
RD
2805SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
fc46b7f3
RD
2823
2824SWIGINTERN int
2825SWIG_AsVal_bool (PyObject *obj, bool *val)
2826{
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839}
2840
2841SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
fc46b7f3 2846 int alpha = wxALPHA_OPAQUE;
b39fe951 2847 if (self->IsOk()) {
093d3ff1
RD
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
fc46b7f3 2851 alpha = self->Alpha();
093d3ff1
RD
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2858 return rv;
2859 }
0085ce49 2860SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
d14a1e28 2863
0085ce49
RD
2864SWIGINTERN int
2865SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2866{
0085ce49
RD
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
d14a1e28
RD
2877}
2878
0085ce49 2879SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
5a446332 2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
0085ce49 2892SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2896
093d3ff1
RD
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
0085ce49
RD
2911SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2913
fc46b7f3
RD
2914#include <wx/rawbmp.h>
2915
2916
093d3ff1 2917#include <wx/image.h>
b88bce5f 2918
093d3ff1
RD
2919 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2920 char** cArray = NULL;
2921 int count;
2922
2923 if (!PyList_Check(listOfStrings)) {
2924 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2925 return NULL;
2926 }
2927 count = PyList_Size(listOfStrings);
2928 cArray = new char*[count];
2929
2930 for(int x=0; x<count; x++) {
2931 // TODO: Need some validation and error checking here
2932 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2933 }
2934 return cArray;
b88bce5f 2935 }
b88bce5f
RD
2936
2937
0085ce49 2938SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2939 char** cArray = NULL;
2940 wxBitmap* bmp;
2941
2942 cArray = ConvertListOfStrings(listOfStrings);
2943 if (! cArray)
2944 return NULL;
2945 bmp = new wxBitmap(cArray);
2946 delete [] cArray;
2947 return bmp;
2948 }
0085ce49 2949SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2950 char* buf;
2951 Py_ssize_t length;
2952 PyString_AsStringAndSize(bits, &buf, &length);
2953 return new wxBitmap(buf, width, height, depth);
2954 }
0085ce49 2955SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2956 wxSize size(self->GetWidth(), self->GetHeight());
2957 return size;
2958 }
0085ce49 2959SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2960 wxMask *mask = new wxMask(*self, colour);
2961 self->SetMask(mask);
2962 }
0085ce49 2963SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2964 self->SetWidth(size.x);
2965 self->SetHeight(size.y);
2966 }
0085ce49
RD
2967SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2968SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2969
2970// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2971// appears to me that the other platforms are already doing it, so I'll just
2972// automatically do it for wxMSW here.
2973#ifdef __WXMSW__
195a89b4
RD
2974#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2975#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2976#else
2977#define wxPy_premultiply(p, a) (p)
2978#define wxPy_unpremultiply(p, a) (p)
2979#endif
2980
2981
2982 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2983 buffer data, int DATASIZE,
2984 buffer alpha, int ALPHASIZE)
2985 {
2986 if (DATASIZE != width*height*3) {
2987 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2988 return NULL;
2989 }
2990
2991 if (ALPHASIZE != width*height) {
2992 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2993 return NULL;
2994 }
2995
2996 wxBitmap* bmp = new wxBitmap(width, height, 32);
2997 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2998 if (! pixData) {
2999 // raise an exception...
3000 wxPyErr_SetString(PyExc_RuntimeError,
3001 "Failed to gain raw access to bitmap data.");
3002 return NULL;
3003 }
3004
3005 pixData.UseAlpha();
3006 wxAlphaPixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxAlphaPixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 byte a = *(alpha++);
3011 p.Red() = wxPy_premultiply(*(data++), a);
3012 p.Green() = wxPy_premultiply(*(data++), a);
3013 p.Blue() = wxPy_premultiply(*(data++), a);
3014 p.Alpha() = a;
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 return bmp;
3021 }
3022
3023 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3024 {
3025 if (DATASIZE != width*height*3) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 return NULL;
3028 }
3029
3030 wxBitmap* bmp = new wxBitmap(width, height, 24);
3031 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3032 if (! pixData) {
3033 // raise an exception...
3034 wxPyErr_SetString(PyExc_RuntimeError,
3035 "Failed to gain raw access to bitmap data.");
3036 return NULL;
3037 }
3038
3039 wxNativePixelData::Iterator p(pixData);
3040 for (int y=0; y<height; y++) {
3041 wxNativePixelData::Iterator rowStart = p;
3042 for (int x=0; x<width; x++) {
3043 p.Red() = *(data++);
3044 p.Green() = *(data++);
3045 p.Blue() = *(data++);
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 return bmp;
3052 }
3053
3054
3055 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3056 {
3057 if (DATASIZE != width*height*4) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 wxBitmap* bmp = new wxBitmap(width, height, 32);
3063 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3064 if (! pixData) {
3065 // raise an exception...
3066 wxPyErr_SetString(PyExc_RuntimeError,
3067 "Failed to gain raw access to bitmap data.");
3068 return NULL;
3069 }
3070
3071 pixData.UseAlpha();
3072 wxAlphaPixelData::Iterator p(pixData);
3073 for (int y=0; y<height; y++) {
3074 wxAlphaPixelData::Iterator rowStart = p;
3075 for (int x=0; x<width; x++) {
3076 byte a = data[3];
3077 p.Red() = wxPy_premultiply(*(data++), a);
3078 p.Green() = wxPy_premultiply(*(data++), a);
3079 p.Blue() = wxPy_premultiply(*(data++), a);
3080 p.Alpha() = a; data++;
3081 ++p;
3082 }
3083 p = rowStart;
3084 p.OffsetY(pixData, 1);
3085 }
3086 return bmp;
3087 }
3088
3089
3090 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3091
3092SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3093SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3094SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3095 self->Red() = red;
3096 self->Green() = green;
3097 self->Blue() = blue;
3098 }
3099SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3100 PyObject* rv = PyTuple_New(3);
3101 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3102 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3103 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3104 return rv;
3105 }
3106
3107 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3108
3109SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3110SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3111SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3112 self->Red() = wxPy_premultiply(red, alpha);
3113 self->Green() = wxPy_premultiply(green, alpha);
3114 self->Blue() = wxPy_premultiply(blue, alpha);
3115 self->Alpha() = alpha;
3116 }
3117SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3118 PyObject* rv = PyTuple_New(4);
3119 int red = self->Red();
3120 int green = self->Green();
3121 int blue = self->Blue();
3122 int alpha = self->Alpha();
3123
3124 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3125 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3126 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3127 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3128 return rv;
3129 }
0085ce49 3130SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3131 if ( !colour.IsOk() )
093d3ff1
RD
3132 return new wxMask(bitmap, *wxBLACK);
3133 else
3134 return new wxMask(bitmap, colour);
3135 }
d14a1e28 3136
093d3ff1 3137#include <wx/iconbndl.h>
d14a1e28 3138
0085ce49 3139SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3140 wxIcon* icon = new wxIcon();
3141 icon->CopyFromBitmap(bmp);
3142 return icon;
3143 }
0085ce49 3144SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3145 char** cArray = NULL;
3146 wxIcon* icon;
d14a1e28 3147
093d3ff1
RD
3148 cArray = ConvertListOfStrings(listOfStrings);
3149 if (! cArray)
3150 return NULL;
3151 icon = new wxIcon(cArray);
3152 delete [] cArray;
3153 return icon;
3154 }
0085ce49 3155SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3156
3157
d14a1e28 3158
093d3ff1 3159 return new wxIconLocation(*filename);
d14a1e28 3160
093d3ff1 3161 }
0085ce49 3162SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3163
3164
d14a1e28 3165
093d3ff1 3166 // do nothing
d14a1e28 3167
093d3ff1 3168 }
0085ce49 3169SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3170
3171
093d3ff1
RD
3172
3173 return -1;
3174
3175 }
0085ce49 3176SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3177#ifdef __WXGTK__
7557b9b5
RD
3178 wxImage img(cursorName, type);
3179 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3180 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3181 return new wxCursor(img);
093d3ff1 3182#else
7557b9b5 3183 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3184#endif
3185 }
3186
3187
0085ce49 3188SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3189 (*self) ++;
3190 }
0085ce49 3191SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3192 return self->operator bool();
3193 }
3194
3195#include <wx/fontutil.h>
3196#include <wx/fontmap.h>
3197#include <wx/fontenum.h>
3198
0085ce49 3199SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3200 return self->ToString();
3201 }
3202
3203 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3204 static wxNativeEncodingInfo info;
3205 if ( wxGetNativeFontEncoding(encoding, &info) )
3206 return &info;
3207 else
3208 return NULL;
3209 }
3210
0085ce49
RD
3211
3212SWIGINTERNINLINE PyObject *
3213SWIG_From_size_t (size_t value)
3214{
3215 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3216}
3217
3218
3219SWIGINTERNINLINE int
3220SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3221{
3222 unsigned long v;
3223 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3224 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3225 return res;
3226}
3227
3228SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3229 wxFontEncoding alt_enc;
3230 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3231 return PyInt_FromLong(alt_enc);
3232 else {
3233 Py_INCREF(Py_None);
3234 return Py_None;
3235 }
3236 }
0085ce49 3237SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3238 wxNativeFontInfo nfi;
3239 nfi.FromString(info);
3240 return new wxFont(nfi);
3241 }
0085ce49 3242SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3243 return wxFont::New(pointSize, family, flags, face, encoding);
3244 }
0085ce49 3245SWIGINTERN 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
3246 return wxFontBase::New(pixelSize, family,
3247 style, weight, underlined,
3248 face, encoding);
3249 }
0085ce49 3250SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3251 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3252 }
0085ce49
RD
3253SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3254SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3255
3256class wxPyFontEnumerator : public wxFontEnumerator {
3257public:
3258 wxPyFontEnumerator() {}
3259 ~wxPyFontEnumerator() {}
3260
3261 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3262 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3263
3264 PYPRIVATE;
3265};
3266
3267IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3268IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3269
3270
704eda0c 3271SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3272 PyObject* ret;
704eda0c 3273 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3274 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3275 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3276 wxPyEndBlockThreads(blocked);
3277 return ret;
093d3ff1 3278 }
704eda0c 3279SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3280 PyObject* ret;
704eda0c 3281 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3282 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3283 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3284 wxPyEndBlockThreads(blocked);
3285 return ret;
093d3ff1
RD
3286 }
3287
3288#include <locale.h>
3289
0085ce49 3290SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3291 wxLocale* loc;
3292 if (language == -1)
3293 loc = new wxLocale();
3294 else
3295 loc = new wxLocale(language, flags);
3296 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3297 // for the floating point conversions and such to work right.
3298#if PY_VERSION_HEX < 0x02040000
3299 setlocale(LC_NUMERIC, "C");
3300#endif
3301 return loc;
3302 }
0085ce49 3303SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3304 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3305 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3306 // for the floating point conversions and such to work right.
3307#if PY_VERSION_HEX < 0x02040000
3308 setlocale(LC_NUMERIC, "C");
3309#endif
3310 return rc;
3311 }
0085ce49 3312SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3313 bool rc = self->Init(language, flags);
3314 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3315 // for the floating point conversions and such to work right.
3316#if PY_VERSION_HEX < 0x02040000
3317 setlocale(LC_NUMERIC, "C");
3318#endif
3319 return rc;
3320 }
3321
fc46b7f3
RD
3322class wxPyLocale : public wxLocale
3323{
3324public:
3325 wxPyLocale();
3326
3327 wxPyLocale(const wxChar *szName, // name (for messages)
3328 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3329 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3330 bool bLoadDefault = true, // preload wxstd.mo?
3331 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3332
3333 wxPyLocale(int language, // wxLanguage id or custom language
3334 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3335
3336 ~wxPyLocale();
3337
3338 virtual const wxChar *GetString(const wxChar *szOrigString,
3339 const wxChar *szDomain = NULL) const;
3340 virtual const wxChar *GetString(const wxChar *szOrigString,
3341 const wxChar *szOrigString2, size_t n,
3342 const wxChar *szDomain = NULL) const;
3343
3344 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3345 const wxChar *szDomain = NULL) const;
3346 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3347 const wxChar *szOrigString2, size_t n,
3348 const wxChar *szDomain = NULL) const;
3349
3350 PYPRIVATE;
3351private:
3352 DECLARE_NO_COPY_CLASS(wxPyLocale)
3353};
3354
3355wxPyLocale::wxPyLocale() : wxLocale()
3356{
3357}
3358
3359wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3360 const wxChar *szShort, // dir prefix (for msg files)
3361 const wxChar *szLocale, // locale (for setlocale)
3362 bool bLoadDefault, // preload wxstd.mo?
3363 bool bConvertEncoding) // convert Win<->Unix if necessary?
3364 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3365{
3366}
3367
3368wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3369 int flags) : wxLocale(language, flags)
3370{
3371}
3372
3373wxPyLocale::~wxPyLocale()
3374{
3375}
3376
3377const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3378 const wxChar *szDomain) const
3379{
3380 wxChar *str = GetSingularString(szOrigString, szDomain);
3381 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3382}
3383
3384const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3385 const wxChar *szOrigString2, size_t n,
3386 const wxChar *szDomain) const
3387{
3388 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3389 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3390}
3391
3392wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3393 const wxChar *szDomain) const
3394{
3395 bool found;
3396 static wxString str;
3397 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.
3398 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3399 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3400 PyObject* param1 = wx2PyString(szOrigString);
3401 PyObject* param2 = wx2PyString(szDomain);
3402 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3403 Py_DECREF(param1);
3404 Py_DECREF(param2);
3405 if (ret) {
3406 str = Py2wxString(ret);
3407 Py_DECREF(ret);
3408 }
3409 }
3410 wxPyEndBlockThreads(blocked);
3411 return (found ? (wxChar*)str.c_str() : NULL);
3412}
3413
3414wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3415 const wxChar *szOrigString2, size_t n,
3416 const wxChar *szDomain) const
3417{
3418 bool found;
3419 static wxString str;
3420 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.
3421 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3422 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3423 PyObject* param1 = wx2PyString(szOrigString);
3424 PyObject* param2 = wx2PyString(szOrigString2);
3425 PyObject* param4 = wx2PyString(szDomain);
3426 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3427 Py_DECREF(param1);
3428 Py_DECREF(param2);
3429 Py_DECREF(param4);
3430 if( ret) {
3431 str = Py2wxString(ret);
3432 Py_DECREF(ret);
3433 }
3434 }
3435 wxPyEndBlockThreads(blocked);
3436 return (found ? (wxChar*)str.c_str() : NULL);
3437}
3438
3439SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3440 wxPyLocale* loc;
3441 if (language == -1)
3442 loc = new wxPyLocale();
3443 else
3444 loc = new wxPyLocale(language, flags);
3445 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3446 // for the floating point conversions and such to work right.
3447#if PY_VERSION_HEX < 0x02040000
3448 setlocale(LC_NUMERIC, "C");
3449#endif
3450 return loc;
3451 }
3452
093d3ff1
RD
3453#include "wx/wxPython/pydrawxxx.h"
3454
0085ce49 3455SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3456 wxColour col;
3457 self->GetPixel(x, y, &col);
3458 return col;
3459 }
0085ce49 3460SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3461 wxColour col;
3462 self->GetPixel(pt, &col);
3463 return col;
3464 }
3465
3466SWIGINTERN int
0085ce49 3467SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3468{
3469 if (PyNumber_Check(obj)) {
3470 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3471 return SWIG_OK;
093d3ff1 3472 }
0085ce49 3473 return SWIG_TypeError;
093d3ff1
RD
3474}
3475
0085ce49 3476SWIGINTERN 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
3477 wxRect rv;
3478 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3479 return rv;
3480 }
0085ce49 3481SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3482 wxRect rect;
3483 self->GetClippingBox(rect);
3484 return rect;
3485 }
0085ce49 3486SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3487 wxArrayInt widths;
3488 self->GetPartialTextExtents(text, widths);
3489 return widths;
3490 }
3491
0085ce49 3492 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3493
0085ce49 3494SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3495 self->SetLogicalOrigin(point.x, point.y);
3496 }
0085ce49 3497SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3498 self->SetDeviceOrigin(point.x, point.y);
3499 }
0085ce49 3500SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3501 self->CalcBoundingBox(point.x, point.y);
3502 }
0085ce49 3503SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3505 }
0085ce49 3506SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3508 }
0085ce49 3509SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3510 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3511 }
0085ce49 3512SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3513 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3514 }
0085ce49 3515SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3516 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3517 }
0085ce49 3518SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3519 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3520 }
3521
3522static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3523 *x1 = dc->MinX();
3524 *y1 = dc->MinY();
3525 *x2 = dc->MaxX();
3526 *y2 = dc->MaxY();
3527}
3528
3529
3530#include <wx/dcbuffer.h>
3531
3532
3533#include <wx/dcps.h>
3534
3535
3536class wxMetaFile : public wxObject {
3537public:
3538 wxMetaFile(const wxString&)
3539 { wxPyRaiseNotImplemented(); }
3540};
3541
3542class wxMetaFileDC : public wxClientDC {
3543public:
3544 wxMetaFileDC(const wxString&, int, int, const wxString&)
3545 { wxPyRaiseNotImplemented(); }
3546};
3547
3548
3549
3550class wxPrinterDC : public wxClientDC {
3551public:
3552 wxPrinterDC(const wxPrintData&)
3553 { wxPyRaiseNotImplemented(); }
3554
3555};
3556
3557
72ef6efb
RD
3558#include <wx/graphics.h>
3559
3560
3561#if !wxUSE_GRAPHICS_CONTEXT
3562// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3563
3564class wxGraphicsPath
3565{
3566public :
3567 wxGraphicsPath() {
3568 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3569 PyErr_SetString(PyExc_NotImplementedError,
3570 "wxGraphicsPath is not available on this platform.");
3571 wxPyEndBlockThreads(blocked);
3572 }
3573 virtual ~wxGraphicsPath() {}
3574
3575 void MoveToPoint( wxDouble, wxDouble ) {}
3576 void AddLineToPoint( wxDouble, wxDouble ) {}
3577 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3578 void CloseSubpath() {}
3579 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3580 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3581
3582 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3583 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3584 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3585 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3586
3587 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3588 void MoveToPoint( const wxPoint2DDouble& ) {}
3589 void AddLineToPoint( const wxPoint2DDouble&) {}
3590 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3591 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3592};
3593
3594
3595class wxGraphicsContext
3596{
3597public:
3598 wxGraphicsContext() {
3599 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3600 PyErr_SetString(PyExc_NotImplementedError,
3601 "wxGraphicsContext is not available on this platform.");
3602 wxPyEndBlockThreads(blocked);
3603 }
3604 virtual ~wxGraphicsContext() {}
3605
3606 static wxGraphicsContext* Create( const wxWindowDC&) {
3607 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3608 PyErr_SetString(PyExc_NotImplementedError,
3609 "wxGraphicsPath is not available on this platform.");
3610 wxPyEndBlockThreads(blocked);
3611 return NULL;
3612 }
b876c1e4
RD
3613
3614 static wxGraphicsContext* CreateFromNative( void * ) {
3615 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3616 PyErr_SetString(PyExc_NotImplementedError,
3617 "wxGraphicsContext is not available on this platform.");
3618 wxPyEndBlockThreads(blocked);
3619 return NULL;
3620 }
3621
72ef6efb
RD
3622 wxGraphicsPath * CreatePath() { return NULL; }
3623 void PushState() {}
3624 void PopState() {}
3625 void Clip( const wxRegion & ) {}
b876c1e4
RD
3626 void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3627 void ResetClip() {}
3628 void * GetNativeContext() { return NULL; }
72ef6efb
RD
3629 void Translate( wxDouble , wxDouble ) {}
3630 void Scale( wxDouble , wxDouble ) {}
3631 void Rotate( wxDouble ) {}
3632 void SetPen( const wxPen & ) {}
3633 void SetBrush( const wxBrush & ) {}
3634 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3635 const wxColour&, const wxColour&) {}
3636 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3637 const wxColour &, const wxColour &) {}
3638 void SetFont( const wxFont & ) {}
3639 void SetTextColor( const wxColour & ) {}
3640 void StrokePath( const wxGraphicsPath * ) {}
3641 void FillPath( const wxGraphicsPath *, int ) {}
3642 void DrawPath( const wxGraphicsPath *, int ) {}
3643 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3644 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3645 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3646 wxDouble *, wxDouble * ) const {}
3647 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3648 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3649 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3650 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3651 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3652 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3653 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3654 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3655 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3656 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3657};
3658
3659
3660class wxGCDC: public wxWindowDC
3661{
3662public:
3663 wxGCDC(const wxWindowDC&) {
3664 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3665 PyErr_SetString(PyExc_NotImplementedError,
3666 "wxGCDC is not available on this platform.");
3667 wxPyEndBlockThreads(blocked);
3668 }
3669
3670 wxGCDC() {
3671 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3672 PyErr_SetString(PyExc_NotImplementedError,
3673 "wxGCDC is not available on this platform.");
3674 wxPyEndBlockThreads(blocked);
3675 }
3676
3677 virtual ~wxGCDC() {}
3678
b876c1e4
RD
3679 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3680 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3681};
3682
3683#endif
3684
b39fe951
RD
3685SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3686 wxArrayDouble widths;
3687 self->GetPartialTextExtents(text, widths);
3688 return widths;
3689 }
f8eb59b9 3690SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3691 size_t c1, c2, count;
3692 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3693 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3694
3695 if ( beginP != NULL && endP != NULL )
3696 {
3697 count = wxMin(c1, c2);
3698 self->StrokeLines(count, beginP, endP);
3699 }
3700 delete [] beginP;
3701 delete [] endP;
3702 }
72ef6efb 3703
0a27f394
RD
3704#include "wx/dcgraph.h"
3705
3706
66493fc7
RD
3707#include <wx/overlay.h>
3708
3709
093d3ff1 3710
0085ce49 3711SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3712 self->AddColour(name, wxColour(red, green, blue));
3713 }
3714
50efceee
RD
3715 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3716 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3717 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3718 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3719
3720
093d3ff1
RD
3721#include <wx/effects.h>
3722
8d38bd1d
RD
3723
3724#include "wx/renderer.h"
3725
3726
32fe5131 3727SWIGINTERNINLINE PyObject*
0085ce49 3728 SWIG_From_bool (bool value)
8d38bd1d 3729{
0085ce49 3730 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3731}
3732
27e45892
RD
3733
3734#include "wx/wxPython/pseudodc.h"
3735
3736SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3737 wxRect rect;
3738 self->GetIdBounds(id, rect);
3739 return rect;
3740 }
093d3ff1
RD
3741#ifdef __cplusplus
3742extern "C" {
3743#endif
0085ce49
RD
3744SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3745 PyObject *resultobj = 0;
3746 wxGDIObject *result = 0 ;
3747
3748 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3749 {
3750 if (!wxPyCheckForApp()) SWIG_fail;
3751 PyThreadState* __tstate = wxPyBeginAllowThreads();
3752 result = (wxGDIObject *)new wxGDIObject();
3753 wxPyEndAllowThreads(__tstate);
3754 if (PyErr_Occurred()) SWIG_fail;
3755 }
3756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3757 return resultobj;
3758fail:
3759 return NULL;
093d3ff1
RD
3760}
3761
3762
0085ce49
RD
3763SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3764 PyObject *resultobj = 0;
3765 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3766 void *argp1 = 0 ;
3767 int res1 = 0 ;
3768 PyObject *swig_obj[1] ;
3769
3770 if (!args) SWIG_fail;
3771 swig_obj[0] = args;
3772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3773 if (!SWIG_IsOK(res1)) {
3774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3775 }
3776 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3777 {
3778 PyThreadState* __tstate = wxPyBeginAllowThreads();
3779 delete arg1;
093d3ff1 3780
0085ce49
RD
3781 wxPyEndAllowThreads(__tstate);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
3784 resultobj = SWIG_Py_Void();
3785 return resultobj;
3786fail:
3787 return NULL;
d14a1e28
RD
3788}
3789
3790
0085ce49
RD
3791SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3792 PyObject *resultobj = 0;
3793 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3794 bool result;
3795 void *argp1 = 0 ;
3796 int res1 = 0 ;
3797 PyObject *swig_obj[1] ;
3798
3799 if (!args) SWIG_fail;
3800 swig_obj[0] = args;
3801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3802 if (!SWIG_IsOK(res1)) {
3803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3804 }
3805 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3806 {
3807 PyThreadState* __tstate = wxPyBeginAllowThreads();
3808 result = (bool)(arg1)->IsNull();
3809 wxPyEndAllowThreads(__tstate);
3810 if (PyErr_Occurred()) SWIG_fail;
3811 }
3812 {
3813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3814 }
3815 return resultobj;
3816fail:
3817 return NULL;
3818}
3819
3820
3821SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3822 PyObject *obj;
3823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3824 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3825 return SWIG_Py_Void();
3826}
3827
3828SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3829 return SWIG_Python_InitShadowInstance(args);
3830}
3831
3832SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3833 PyObject *resultobj = 0;
3834 byte arg1 = (byte) 0 ;
3835 byte arg2 = (byte) 0 ;
3836 byte arg3 = (byte) 0 ;
fc46b7f3 3837 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
3838 wxColour *result = 0 ;
3839 unsigned char val1 ;
3840 int ecode1 = 0 ;
3841 unsigned char val2 ;
3842 int ecode2 = 0 ;
3843 unsigned char val3 ;
3844 int ecode3 = 0 ;
fc46b7f3
RD
3845 unsigned char val4 ;
3846 int ecode4 = 0 ;
0085ce49
RD
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849 PyObject * obj2 = 0 ;
fc46b7f3 3850 PyObject * obj3 = 0 ;
0085ce49 3851 char * kwnames[] = {
fc46b7f3 3852 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
3853 };
3854
fc46b7f3 3855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
3856 if (obj0) {
3857 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3858 if (!SWIG_IsOK(ecode1)) {
3859 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3860 }
3861 arg1 = static_cast< byte >(val1);
3862 }
3863 if (obj1) {
3864 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3865 if (!SWIG_IsOK(ecode2)) {
3866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3867 }
3868 arg2 = static_cast< byte >(val2);
3869 }
3870 if (obj2) {
3871 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3872 if (!SWIG_IsOK(ecode3)) {
3873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3874 }
3875 arg3 = static_cast< byte >(val3);
3876 }
fc46b7f3
RD
3877 if (obj3) {
3878 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3879 if (!SWIG_IsOK(ecode4)) {
3880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3881 }
3882 arg4 = static_cast< byte >(val4);
3883 }
0085ce49
RD
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3886 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3891 return resultobj;
3892fail:
3893 return NULL;
d14a1e28
RD
3894}
3895
3896
0085ce49
RD
3897SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj = 0;
3899 wxString *arg1 = 0 ;
3900 wxColour *result = 0 ;
3901 bool temp1 = false ;
3902 PyObject * obj0 = 0 ;
3903 char * kwnames[] = {
3904 (char *) "colorName", NULL
3905 };
3906
3907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3908 {
3909 arg1 = wxString_in_helper(obj0);
3910 if (arg1 == NULL) SWIG_fail;
3911 temp1 = true;
3912 }
3913 {
3914 if (!wxPyCheckForApp()) SWIG_fail;
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (wxColour *)new wxColour((wxString const &)*arg1);
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3921 {
3922 if (temp1)
3923 delete arg1;
3924 }
3925 return resultobj;
3926fail:
3927 {
3928 if (temp1)
3929 delete arg1;
3930 }
3931 return NULL;
d14a1e28
RD
3932}
3933
3934
0085ce49
RD
3935SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3936 PyObject *resultobj = 0;
3937 unsigned long arg1 ;
3938 wxColour *result = 0 ;
3939 unsigned long val1 ;
3940 int ecode1 = 0 ;
3941 PyObject * obj0 = 0 ;
3942 char * kwnames[] = {
3943 (char *) "colRGB", NULL
3944 };
3945
3946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3947 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3948 if (!SWIG_IsOK(ecode1)) {
3949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3950 }
3951 arg1 = static_cast< unsigned long >(val1);
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (wxColour *)new wxColour(arg1);
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3959 return resultobj;
3960fail:
3961 return NULL;
d14a1e28
RD
3962}
3963
3964
0085ce49
RD
3965SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3966 PyObject *resultobj = 0;
3967 wxColour *arg1 = (wxColour *) 0 ;
3968 void *argp1 = 0 ;
3969 int res1 = 0 ;
3970 PyObject *swig_obj[1] ;
3971
3972 if (!args) SWIG_fail;
3973 swig_obj[0] = args;
3974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3975 if (!SWIG_IsOK(res1)) {
3976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3977 }
3978 arg1 = reinterpret_cast< wxColour * >(argp1);
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 delete arg1;
d14a1e28 3982
0085ce49
RD
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 resultobj = SWIG_Py_Void();
3987 return resultobj;
3988fail:
3989 return NULL;
d14a1e28
RD
3990}
3991
3992
0085ce49
RD
3993SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3994 PyObject *resultobj = 0;
3995 wxColour *arg1 = (wxColour *) 0 ;
3996 byte result;
3997 void *argp1 = 0 ;
3998 int res1 = 0 ;
3999 PyObject *swig_obj[1] ;
4000
4001 if (!args) SWIG_fail;
4002 swig_obj[0] = args;
4003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4004 if (!SWIG_IsOK(res1)) {
4005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4006 }
4007 arg1 = reinterpret_cast< wxColour * >(argp1);
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 result = (byte)(arg1)->Red();
4011 wxPyEndAllowThreads(__tstate);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4015 return resultobj;
4016fail:
4017 return NULL;
d14a1e28
RD
4018}
4019
4020
0085ce49
RD
4021SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxColour *arg1 = (wxColour *) 0 ;
4024 byte result;
4025 void *argp1 = 0 ;
4026 int res1 = 0 ;
4027 PyObject *swig_obj[1] ;
4028
4029 if (!args) SWIG_fail;
4030 swig_obj[0] = args;
4031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4034 }
4035 arg1 = reinterpret_cast< wxColour * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 result = (byte)(arg1)->Green();
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4043 return resultobj;
4044fail:
4045 return NULL;
5cbf236d
RD
4046}
4047
4048
0085ce49
RD
4049SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4050 PyObject *resultobj = 0;
4051 wxColour *arg1 = (wxColour *) 0 ;
4052 byte result;
4053 void *argp1 = 0 ;
4054 int res1 = 0 ;
4055 PyObject *swig_obj[1] ;
4056
4057 if (!args) SWIG_fail;
4058 swig_obj[0] = args;
4059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4060 if (!SWIG_IsOK(res1)) {
4061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4062 }
4063 arg1 = reinterpret_cast< wxColour * >(argp1);
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 result = (byte)(arg1)->Blue();
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4071 return resultobj;
4072fail:
4073 return NULL;
d14a1e28
RD
4074}
4075
4076
fc46b7f3
RD
4077SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4078 PyObject *resultobj = 0;
4079 wxColour *arg1 = (wxColour *) 0 ;
4080 byte result;
4081 void *argp1 = 0 ;
4082 int res1 = 0 ;
4083 PyObject *swig_obj[1] ;
4084
4085 if (!args) SWIG_fail;
4086 swig_obj[0] = args;
4087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4088 if (!SWIG_IsOK(res1)) {
4089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4090 }
4091 arg1 = reinterpret_cast< wxColour * >(argp1);
4092 {
4093 PyThreadState* __tstate = wxPyBeginAllowThreads();
4094 result = (byte)(arg1)->Alpha();
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4099 return resultobj;
4100fail:
4101 return NULL;
4102}
4103
4104
b39fe951 4105SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4106 PyObject *resultobj = 0;
4107 wxColour *arg1 = (wxColour *) 0 ;
4108 bool result;
4109 void *argp1 = 0 ;
4110 int res1 = 0 ;
4111 PyObject *swig_obj[1] ;
4112
4113 if (!args) SWIG_fail;
4114 swig_obj[0] = args;
4115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4116 if (!SWIG_IsOK(res1)) {
b39fe951 4117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4118 }
4119 arg1 = reinterpret_cast< wxColour * >(argp1);
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4122 result = (bool)(arg1)->IsOk();
0085ce49
RD
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 {
4127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4128 }
4129 return resultobj;
4130fail:
4131 return NULL;
4132}
4133
4134
4135SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4136 PyObject *resultobj = 0;
4137 wxColour *arg1 = (wxColour *) 0 ;
4138 byte arg2 ;
4139 byte arg3 ;
4140 byte arg4 ;
fc46b7f3 4141 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4142 void *argp1 = 0 ;
4143 int res1 = 0 ;
4144 unsigned char val2 ;
4145 int ecode2 = 0 ;
4146 unsigned char val3 ;
4147 int ecode3 = 0 ;
4148 unsigned char val4 ;
4149 int ecode4 = 0 ;
fc46b7f3
RD
4150 unsigned char val5 ;
4151 int ecode5 = 0 ;
0085ce49
RD
4152 PyObject * obj0 = 0 ;
4153 PyObject * obj1 = 0 ;
4154 PyObject * obj2 = 0 ;
4155 PyObject * obj3 = 0 ;
fc46b7f3 4156 PyObject * obj4 = 0 ;
0085ce49 4157 char * kwnames[] = {
fc46b7f3 4158 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4159 };
4160
fc46b7f3 4161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4165 }
4166 arg1 = reinterpret_cast< wxColour * >(argp1);
4167 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4168 if (!SWIG_IsOK(ecode2)) {
4169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4170 }
4171 arg2 = static_cast< byte >(val2);
4172 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4173 if (!SWIG_IsOK(ecode3)) {
4174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4175 }
4176 arg3 = static_cast< byte >(val3);
4177 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4178 if (!SWIG_IsOK(ecode4)) {
4179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4180 }
4181 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4182 if (obj4) {
4183 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4184 if (!SWIG_IsOK(ecode5)) {
4185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4186 }
4187 arg5 = static_cast< byte >(val5);
4188 }
0085ce49
RD
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4191 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_Py_Void();
4196 return resultobj;
4197fail:
4198 return NULL;
4199}
4200
4201
4202SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxColour *arg1 = (wxColour *) 0 ;
4205 unsigned long arg2 ;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 unsigned long val2 ;
4209 int ecode2 = 0 ;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char * kwnames[] = {
4213 (char *) "self",(char *) "colRGB", NULL
4214 };
4215
4216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4220 }
4221 arg1 = reinterpret_cast< wxColour * >(argp1);
4222 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4223 if (!SWIG_IsOK(ecode2)) {
4224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4225 }
4226 arg2 = static_cast< unsigned long >(val2);
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 (arg1)->Set(arg2);
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 resultobj = SWIG_Py_Void();
4234 return resultobj;
4235fail:
4236 return NULL;
4237}
4238
4239
4240SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj = 0;
4242 wxColour *arg1 = (wxColour *) 0 ;
4243 wxString *arg2 = 0 ;
4244 void *argp1 = 0 ;
4245 int res1 = 0 ;
4246 bool temp2 = false ;
4247 PyObject * obj0 = 0 ;
4248 PyObject * obj1 = 0 ;
4249 char * kwnames[] = {
4250 (char *) "self",(char *) "colourName", NULL
4251 };
4252
4253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4255 if (!SWIG_IsOK(res1)) {
4256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4257 }
4258 arg1 = reinterpret_cast< wxColour * >(argp1);
4259 {
4260 arg2 = wxString_in_helper(obj1);
4261 if (arg2 == NULL) SWIG_fail;
4262 temp2 = true;
4263 }
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4266 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4267 wxPyEndAllowThreads(__tstate);
4268 if (PyErr_Occurred()) SWIG_fail;
4269 }
4270 resultobj = SWIG_Py_Void();
4271 {
4272 if (temp2)
4273 delete arg2;
4274 }
4275 return resultobj;
4276fail:
4277 {
4278 if (temp2)
4279 delete arg2;
4280 }
4281 return NULL;
d14a1e28
RD
4282}
4283
4284
01f6b6d3
RD
4285SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj = 0;
4287 wxColour *arg1 = (wxColour *) 0 ;
4288 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4289 wxString result;
4290 void *argp1 = 0 ;
4291 int res1 = 0 ;
4292 long val2 ;
4293 int ecode2 = 0 ;
4294 PyObject * obj0 = 0 ;
4295 PyObject * obj1 = 0 ;
4296 char * kwnames[] = {
4297 (char *) "self",(char *) "flags", NULL
4298 };
4299
4300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4302 if (!SWIG_IsOK(res1)) {
4303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4304 }
4305 arg1 = reinterpret_cast< wxColour * >(argp1);
4306 if (obj1) {
4307 ecode2 = SWIG_AsVal_long(obj1, &val2);
4308 if (!SWIG_IsOK(ecode2)) {
4309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4310 }
4311 arg2 = static_cast< long >(val2);
4312 }
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 result = ((wxColour const *)arg1)->GetAsString(arg2);
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 {
4320#if wxUSE_UNICODE
4321 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4322#else
4323 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4324#endif
4325 }
4326 return resultobj;
4327fail:
4328 return NULL;
4329}
4330
4331
0085ce49
RD
4332SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4333 PyObject *resultobj = 0;
4334 wxColour *arg1 = (wxColour *) 0 ;
4335 long result;
4336 void *argp1 = 0 ;
4337 int res1 = 0 ;
4338 PyObject *swig_obj[1] ;
4339
4340 if (!args) SWIG_fail;
4341 swig_obj[0] = args;
4342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4343 if (!SWIG_IsOK(res1)) {
4344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4345 }
4346 arg1 = reinterpret_cast< wxColour * >(argp1);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = (long)((wxColour const *)arg1)->GetPixel();
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_From_long(static_cast< long >(result));
4354 return resultobj;
4355fail:
4356 return NULL;
4357}
4358
4359
4360SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4363 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4364 bool result;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
0085ce49
RD
4367 PyObject * obj0 = 0 ;
4368 PyObject * obj1 = 0 ;
4369 char * kwnames[] = {
e9d6f3a4 4370 (char *) "self",(char *) "other", NULL
0085ce49
RD
4371 };
4372
4373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4377 }
4378 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4379 arg2 = obj1;
0085ce49 4380 {
e9d6f3a4 4381 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 {
4385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4386 }
4387 return resultobj;
4388fail:
4389 return NULL;
4390}
4391
4392
4393SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4394 PyObject *resultobj = 0;
4395 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4396 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4397 bool result;
4398 void *argp1 = 0 ;
4399 int res1 = 0 ;
0085ce49
RD
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 char * kwnames[] = {
e9d6f3a4 4403 (char *) "self",(char *) "other", NULL
0085ce49
RD
4404 };
4405
4406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4408 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4410 }
4411 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4412 arg2 = obj1;
0085ce49 4413 {
e9d6f3a4 4414 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 {
4418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4419 }
4420 return resultobj;
4421fail:
4422 return NULL;
d14a1e28
RD
4423}
4424
4425
fc46b7f3 4426SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4427 PyObject *resultobj = 0;
4428 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4429 bool arg2 = (bool) false ;
0085ce49
RD
4430 PyObject *result = 0 ;
4431 void *argp1 = 0 ;
4432 int res1 = 0 ;
fc46b7f3
RD
4433 bool val2 ;
4434 int ecode2 = 0 ;
4435 PyObject * obj0 = 0 ;
4436 PyObject * obj1 = 0 ;
4437 char * kwnames[] = {
4438 (char *) "self",(char *) "includeAlpha", NULL
4439 };
0085ce49 4440
fc46b7f3
RD
4441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4443 if (!SWIG_IsOK(res1)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4445 }
4446 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4447 if (obj1) {
4448 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4449 if (!SWIG_IsOK(ecode2)) {
4450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4451 }
4452 arg2 = static_cast< bool >(val2);
4453 }
0085ce49 4454 {
fc46b7f3 4455 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = result;
4459 return resultobj;
4460fail:
4461 return NULL;
d14a1e28
RD
4462}
4463
4464
0085ce49
RD
4465SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 PyObject *resultobj = 0;
4467 wxColour *arg1 = (wxColour *) 0 ;
4468 unsigned long result;
4469 void *argp1 = 0 ;
4470 int res1 = 0 ;
4471 PyObject *swig_obj[1] ;
4472
4473 if (!args) SWIG_fail;
4474 swig_obj[0] = args;
4475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4476 if (!SWIG_IsOK(res1)) {
4477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4478 }
4479 arg1 = reinterpret_cast< wxColour * >(argp1);
4480 {
0085ce49 4481 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4485 return resultobj;
4486fail:
4487 return NULL;
4488}
4489
4490
4491SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4492 PyObject *obj;
4493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4494 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4495 return SWIG_Py_Void();
4496}
4497
4498SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4499 return SWIG_Python_InitShadowInstance(args);
4500}
4501
4502SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4503 PyObject *resultobj = 0;
4504 int arg1 ;
4505 unsigned char *arg2 = (unsigned char *) 0 ;
4506 unsigned char *arg3 = (unsigned char *) 0 ;
4507 unsigned char *arg4 = (unsigned char *) 0 ;
4508 wxPalette *result = 0 ;
4509 int val1 ;
4510 int ecode1 = 0 ;
4511 void *argp2 = 0 ;
4512 int res2 = 0 ;
4513 void *argp3 = 0 ;
4514 int res3 = 0 ;
4515 void *argp4 = 0 ;
4516 int res4 = 0 ;
4517 PyObject * obj0 = 0 ;
4518 PyObject * obj1 = 0 ;
4519 PyObject * obj2 = 0 ;
4520 PyObject * obj3 = 0 ;
4521 char * kwnames[] = {
4522 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4523 };
4524
4525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4526 ecode1 = SWIG_AsVal_int(obj0, &val1);
4527 if (!SWIG_IsOK(ecode1)) {
4528 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4529 }
4530 arg1 = static_cast< int >(val1);
4531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4532 if (!SWIG_IsOK(res2)) {
4533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4534 }
4535 arg2 = reinterpret_cast< unsigned char * >(argp2);
4536 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4537 if (!SWIG_IsOK(res3)) {
4538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4539 }
4540 arg3 = reinterpret_cast< unsigned char * >(argp3);
4541 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4542 if (!SWIG_IsOK(res4)) {
4543 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4544 }
4545 arg4 = reinterpret_cast< unsigned char * >(argp4);
4546 {
4547 if (!wxPyCheckForApp()) SWIG_fail;
4548 PyThreadState* __tstate = wxPyBeginAllowThreads();
4549 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4550 wxPyEndAllowThreads(__tstate);
4551 if (PyErr_Occurred()) SWIG_fail;
4552 }
4553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4554 return resultobj;
4555fail:
4556 return NULL;
d14a1e28
RD
4557}
4558
4559
0085ce49
RD
4560SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4561 PyObject *resultobj = 0;
4562 wxPalette *arg1 = (wxPalette *) 0 ;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 PyObject *swig_obj[1] ;
4566
4567 if (!args) SWIG_fail;
4568 swig_obj[0] = args;
4569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4570 if (!SWIG_IsOK(res1)) {
4571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4572 }
4573 arg1 = reinterpret_cast< wxPalette * >(argp1);
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 delete arg1;
d14a1e28 4577
0085ce49
RD
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 resultobj = SWIG_Py_Void();
4582 return resultobj;
4583fail:
4584 return NULL;
4585}
4586
4587
4588SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4589 PyObject *resultobj = 0;
4590 wxPalette *arg1 = (wxPalette *) 0 ;
4591 byte arg2 ;
4592 byte arg3 ;
4593 byte arg4 ;
4594 int result;
4595 void *argp1 = 0 ;
4596 int res1 = 0 ;
4597 unsigned char val2 ;
4598 int ecode2 = 0 ;
4599 unsigned char val3 ;
4600 int ecode3 = 0 ;
4601 unsigned char val4 ;
4602 int ecode4 = 0 ;
4603 PyObject * obj0 = 0 ;
4604 PyObject * obj1 = 0 ;
4605 PyObject * obj2 = 0 ;
4606 PyObject * obj3 = 0 ;
4607 char * kwnames[] = {
4608 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4609 };
4610
4611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4613 if (!SWIG_IsOK(res1)) {
4614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4615 }
4616 arg1 = reinterpret_cast< wxPalette * >(argp1);
4617 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4618 if (!SWIG_IsOK(ecode2)) {
4619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4620 }
4621 arg2 = static_cast< byte >(val2);
4622 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4623 if (!SWIG_IsOK(ecode3)) {
4624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4625 }
4626 arg3 = static_cast< byte >(val3);
4627 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4628 if (!SWIG_IsOK(ecode4)) {
4629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4630 }
4631 arg4 = static_cast< byte >(val4);
4632 {
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_From_int(static_cast< int >(result));
4639 return resultobj;
4640fail:
4641 return NULL;
4642}
4643
4644
4645SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj = 0;
4647 wxPalette *arg1 = (wxPalette *) 0 ;
4648 int arg2 ;
4649 byte *arg3 = (byte *) 0 ;
4650 byte *arg4 = (byte *) 0 ;
4651 byte *arg5 = (byte *) 0 ;
4652 bool result;
4653 void *argp1 = 0 ;
4654 int res1 = 0 ;
4655 int val2 ;
4656 int ecode2 = 0 ;
4657 byte temp3 ;
4658 int res3 = SWIG_TMPOBJ ;
4659 byte temp4 ;
4660 int res4 = SWIG_TMPOBJ ;
4661 byte temp5 ;
4662 int res5 = SWIG_TMPOBJ ;
4663 PyObject * obj0 = 0 ;
4664 PyObject * obj1 = 0 ;
4665 char * kwnames[] = {
4666 (char *) "self",(char *) "pixel", NULL
4667 };
4668
4669 arg3 = &temp3;
4670 arg4 = &temp4;
4671 arg5 = &temp5;
4672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4674 if (!SWIG_IsOK(res1)) {
4675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4676 }
4677 arg1 = reinterpret_cast< wxPalette * >(argp1);
4678 ecode2 = SWIG_AsVal_int(obj1, &val2);
4679 if (!SWIG_IsOK(ecode2)) {
4680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4681 }
4682 arg2 = static_cast< int >(val2);
4683 {
4684 PyThreadState* __tstate = wxPyBeginAllowThreads();
4685 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4686 wxPyEndAllowThreads(__tstate);
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 {
4690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4691 }
4692 if (SWIG_IsTmpObj(res3)) {
4693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4694 } else {
4695 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4697 }
4698 if (SWIG_IsTmpObj(res4)) {
4699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4700 } else {
4701 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4703 }
4704 if (SWIG_IsTmpObj(res5)) {
4705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4706 } else {
4707 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4709 }
4710 return resultobj;
4711fail:
4712 return NULL;
d14a1e28
RD
4713}
4714
4715
0085ce49
RD
4716SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4717 PyObject *resultobj = 0;
4718 wxPalette *arg1 = (wxPalette *) 0 ;
4719 int result;
4720 void *argp1 = 0 ;
4721 int res1 = 0 ;
4722 PyObject *swig_obj[1] ;
4723
4724 if (!args) SWIG_fail;
4725 swig_obj[0] = args;
4726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4727 if (!SWIG_IsOK(res1)) {
4728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4729 }
4730 arg1 = reinterpret_cast< wxPalette * >(argp1);
4731 {
4732 PyThreadState* __tstate = wxPyBeginAllowThreads();
4733 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 resultobj = SWIG_From_int(static_cast< int >(result));
4738 return resultobj;
4739fail:
4740 return NULL;
d14a1e28
RD
4741}
4742
4743
b39fe951 4744SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4745 PyObject *resultobj = 0;
4746 wxPalette *arg1 = (wxPalette *) 0 ;
4747 bool result;
4748 void *argp1 = 0 ;
4749 int res1 = 0 ;
4750 PyObject *swig_obj[1] ;
4751
4752 if (!args) SWIG_fail;
4753 swig_obj[0] = args;
4754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4755 if (!SWIG_IsOK(res1)) {
b39fe951 4756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
4757 }
4758 arg1 = reinterpret_cast< wxPalette * >(argp1);
4759 {
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4761 result = (bool)(arg1)->IsOk();
0085ce49
RD
4762 wxPyEndAllowThreads(__tstate);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 {
4766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4767 }
4768 return resultobj;
4769fail:
4770 return NULL;
4771}
4772
4773
4774SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *obj;
4776 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4777 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4778 return SWIG_Py_Void();
4779}
4780
4781SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4782 return SWIG_Python_InitShadowInstance(args);
4783}
4784
4785SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4786 PyObject *resultobj = 0;
4787 wxColour *arg1 = 0 ;
4788 int arg2 = (int) 1 ;
4789 int arg3 = (int) wxSOLID ;
4790 wxPen *result = 0 ;
4791 wxColour temp1 ;
4792 int val2 ;
4793 int ecode2 = 0 ;
4794 int val3 ;
4795 int ecode3 = 0 ;
4796 PyObject * obj0 = 0 ;
4797 PyObject * obj1 = 0 ;
4798 PyObject * obj2 = 0 ;
4799 char * kwnames[] = {
4800 (char *) "colour",(char *) "width",(char *) "style", NULL
4801 };
4802
4803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4804 {
4805 arg1 = &temp1;
4806 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4807 }
4808 if (obj1) {
4809 ecode2 = SWIG_AsVal_int(obj1, &val2);
4810 if (!SWIG_IsOK(ecode2)) {
4811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4812 }
4813 arg2 = static_cast< int >(val2);
4814 }
4815 if (obj2) {
4816 ecode3 = SWIG_AsVal_int(obj2, &val3);
4817 if (!SWIG_IsOK(ecode3)) {
4818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4819 }
4820 arg3 = static_cast< int >(val3);
4821 }
4822 {
4823 if (!wxPyCheckForApp()) SWIG_fail;
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4830 return resultobj;
4831fail:
4832 return NULL;
d14a1e28
RD
4833}
4834
4835
0085ce49
RD
4836SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4837 PyObject *resultobj = 0;
4838 wxPen *arg1 = (wxPen *) 0 ;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 PyObject *swig_obj[1] ;
4842
4843 if (!args) SWIG_fail;
4844 swig_obj[0] = args;
4845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4848 }
4849 arg1 = reinterpret_cast< wxPen * >(argp1);
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 delete arg1;
d14a1e28 4853
0085ce49
RD
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = SWIG_Py_Void();
4858 return resultobj;
4859fail:
4860 return NULL;
d14a1e28
RD
4861}
4862
4863
0085ce49
RD
4864SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4865 PyObject *resultobj = 0;
4866 wxPen *arg1 = (wxPen *) 0 ;
4867 int result;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 PyObject *swig_obj[1] ;
4871
4872 if (!args) SWIG_fail;
4873 swig_obj[0] = args;
4874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4875 if (!SWIG_IsOK(res1)) {
4876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4877 }
4878 arg1 = reinterpret_cast< wxPen * >(argp1);
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 result = (int)(arg1)->GetCap();
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 resultobj = SWIG_From_int(static_cast< int >(result));
4886 return resultobj;
4887fail:
4888 return NULL;
d14a1e28
RD
4889}
4890
4891
0085ce49
RD
4892SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4893 PyObject *resultobj = 0;
4894 wxPen *arg1 = (wxPen *) 0 ;
4895 wxColour result;
4896 void *argp1 = 0 ;
4897 int res1 = 0 ;
4898 PyObject *swig_obj[1] ;
4899
4900 if (!args) SWIG_fail;
4901 swig_obj[0] = args;
4902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4903 if (!SWIG_IsOK(res1)) {
4904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4905 }
4906 arg1 = reinterpret_cast< wxPen * >(argp1);
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 result = (arg1)->GetColour();
4910 wxPyEndAllowThreads(__tstate);
4911 if (PyErr_Occurred()) SWIG_fail;
4912 }
4913 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4914 return resultobj;
4915fail:
4916 return NULL;
d14a1e28
RD
4917}
4918
4919
0085ce49
RD
4920SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4921 PyObject *resultobj = 0;
4922 wxPen *arg1 = (wxPen *) 0 ;
4923 int result;
4924 void *argp1 = 0 ;
4925 int res1 = 0 ;
4926 PyObject *swig_obj[1] ;
4927
4928 if (!args) SWIG_fail;
4929 swig_obj[0] = args;
4930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4931 if (!SWIG_IsOK(res1)) {
4932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4933 }
4934 arg1 = reinterpret_cast< wxPen * >(argp1);
4935 {
4936 PyThreadState* __tstate = wxPyBeginAllowThreads();
4937 result = (int)(arg1)->GetJoin();
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 resultobj = SWIG_From_int(static_cast< int >(result));
4942 return resultobj;
4943fail:
4944 return NULL;
d14a1e28
RD
4945}
4946
4947
0085ce49
RD
4948SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4949 PyObject *resultobj = 0;
4950 wxPen *arg1 = (wxPen *) 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_wxPen, 0 | 0 );
4959 if (!SWIG_IsOK(res1)) {
4960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4961 }
4962 arg1 = reinterpret_cast< wxPen * >(argp1);
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 result = (int)(arg1)->GetStyle();
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;
3adfb63b
RD
4973}
4974
4975
0085ce49
RD
4976SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4977 PyObject *resultobj = 0;
4978 wxPen *arg1 = (wxPen *) 0 ;
4979 int 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_wxPen, 0 | 0 );
4987 if (!SWIG_IsOK(res1)) {
4988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4989 }
4990 arg1 = reinterpret_cast< wxPen * >(argp1);
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 result = (int)(arg1)->GetWidth();
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 resultobj = SWIG_From_int(static_cast< int >(result));
4998 return resultobj;
4999fail:
5000 return NULL;
d14a1e28
RD
5001}
5002
5003
b39fe951 5004SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5005 PyObject *resultobj = 0;
5006 wxPen *arg1 = (wxPen *) 0 ;
5007 bool result;
5008 void *argp1 = 0 ;
5009 int res1 = 0 ;
5010 PyObject *swig_obj[1] ;
5011
5012 if (!args) SWIG_fail;
5013 swig_obj[0] = args;
5014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5015 if (!SWIG_IsOK(res1)) {
b39fe951 5016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
5017 }
5018 arg1 = reinterpret_cast< wxPen * >(argp1);
5019 {
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5021 result = (bool)(arg1)->IsOk();
0085ce49
RD
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 {
5026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5027 }
5028 return resultobj;
5029fail:
5030 return NULL;
5031}
5032
5033
5034SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj = 0;
5036 wxPen *arg1 = (wxPen *) 0 ;
5037 int arg2 ;
5038 void *argp1 = 0 ;
5039 int res1 = 0 ;
5040 int val2 ;
5041 int ecode2 = 0 ;
5042 PyObject * obj0 = 0 ;
5043 PyObject * obj1 = 0 ;
5044 char * kwnames[] = {
5045 (char *) "self",(char *) "cap_style", NULL
5046 };
5047
5048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5050 if (!SWIG_IsOK(res1)) {
5051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5052 }
5053 arg1 = reinterpret_cast< wxPen * >(argp1);
5054 ecode2 = SWIG_AsVal_int(obj1, &val2);
5055 if (!SWIG_IsOK(ecode2)) {
5056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5057 }
5058 arg2 = static_cast< int >(val2);
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 (arg1)->SetCap(arg2);
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 resultobj = SWIG_Py_Void();
5066 return resultobj;
5067fail:
5068 return NULL;
5069}
5070
5071
5072SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj = 0;
5074 wxPen *arg1 = (wxPen *) 0 ;
5075 wxColour *arg2 = 0 ;
5076 void *argp1 = 0 ;
5077 int res1 = 0 ;
5078 wxColour temp2 ;
5079 PyObject * obj0 = 0 ;
5080 PyObject * obj1 = 0 ;
5081 char * kwnames[] = {
5082 (char *) "self",(char *) "colour", NULL
5083 };
5084
5085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5087 if (!SWIG_IsOK(res1)) {
5088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5089 }
5090 arg1 = reinterpret_cast< wxPen * >(argp1);
5091 {
5092 arg2 = &temp2;
5093 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5094 }
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 (arg1)->SetColour(*arg2);
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_Py_Void();
5102 return resultobj;
5103fail:
5104 return NULL;
5105}
5106
5107
5108SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5109 PyObject *resultobj = 0;
5110 wxPen *arg1 = (wxPen *) 0 ;
5111 int arg2 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 int val2 ;
5115 int ecode2 = 0 ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 char * kwnames[] = {
5119 (char *) "self",(char *) "join_style", NULL
5120 };
5121
5122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5124 if (!SWIG_IsOK(res1)) {
5125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5126 }
5127 arg1 = reinterpret_cast< wxPen * >(argp1);
5128 ecode2 = SWIG_AsVal_int(obj1, &val2);
5129 if (!SWIG_IsOK(ecode2)) {
5130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5131 }
5132 arg2 = static_cast< int >(val2);
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 (arg1)->SetJoin(arg2);
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 resultobj = SWIG_Py_Void();
5140 return resultobj;
5141fail:
5142 return NULL;
5143}
5144
5145
5146SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5147 PyObject *resultobj = 0;
5148 wxPen *arg1 = (wxPen *) 0 ;
5149 int arg2 ;
5150 void *argp1 = 0 ;
5151 int res1 = 0 ;
5152 int val2 ;
5153 int ecode2 = 0 ;
5154 PyObject * obj0 = 0 ;
5155 PyObject * obj1 = 0 ;
5156 char * kwnames[] = {
5157 (char *) "self",(char *) "style", NULL
5158 };
5159
5160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5162 if (!SWIG_IsOK(res1)) {
5163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5164 }
5165 arg1 = reinterpret_cast< wxPen * >(argp1);
5166 ecode2 = SWIG_AsVal_int(obj1, &val2);
5167 if (!SWIG_IsOK(ecode2)) {
5168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5169 }
5170 arg2 = static_cast< int >(val2);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 (arg1)->SetStyle(arg2);
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_Py_Void();
5178 return resultobj;
5179fail:
5180 return NULL;
5181}
5182
5183
5184SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5185 PyObject *resultobj = 0;
5186 wxPen *arg1 = (wxPen *) 0 ;
5187 int arg2 ;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 int val2 ;
5191 int ecode2 = 0 ;
5192 PyObject * obj0 = 0 ;
5193 PyObject * obj1 = 0 ;
5194 char * kwnames[] = {
5195 (char *) "self",(char *) "width", NULL
5196 };
5197
5198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5202 }
5203 arg1 = reinterpret_cast< wxPen * >(argp1);
5204 ecode2 = SWIG_AsVal_int(obj1, &val2);
5205 if (!SWIG_IsOK(ecode2)) {
5206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5207 }
5208 arg2 = static_cast< int >(val2);
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 (arg1)->SetWidth(arg2);
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 resultobj = SWIG_Py_Void();
5216 return resultobj;
5217fail:
5218 return NULL;
5219}
5220
5221
5222SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5223 PyObject *resultobj = 0;
5224 wxPen *arg1 = (wxPen *) 0 ;
5225 int arg2 ;
5226 wxDash *arg3 = (wxDash *) 0 ;
5227 void *argp1 = 0 ;
5228 int res1 = 0 ;
5229 PyObject * obj0 = 0 ;
5230 PyObject * obj1 = 0 ;
5231 char * kwnames[] = {
5232 (char *) "self",(char *) "dashes", NULL
5233 };
5234
5235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5237 if (!SWIG_IsOK(res1)) {
5238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5239 }
5240 arg1 = reinterpret_cast< wxPen * >(argp1);
5241 {
5242 arg2 = PyList_Size(obj1);
5243 arg3 = (wxDash*)byte_LIST_helper(obj1);
5244 if (arg3 == NULL) SWIG_fail;
5245 }
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 (arg1)->SetDashes(arg2,arg3);
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 resultobj = SWIG_Py_Void();
5253 {
5254 if (arg3) delete [] arg3;
5255 }
5256 return resultobj;
5257fail:
5258 {
5259 if (arg3) delete [] arg3;
5260 }
5261 return NULL;
d14a1e28
RD
5262}
5263
5264
0085ce49
RD
5265SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5266 PyObject *resultobj = 0;
5267 wxPen *arg1 = (wxPen *) 0 ;
5268 PyObject *result = 0 ;
5269 void *argp1 = 0 ;
5270 int res1 = 0 ;
5271 PyObject *swig_obj[1] ;
5272
5273 if (!args) SWIG_fail;
5274 swig_obj[0] = args;
5275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5276 if (!SWIG_IsOK(res1)) {
5277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5278 }
5279 arg1 = reinterpret_cast< wxPen * >(argp1);
5280 {
5281 PyThreadState* __tstate = wxPyBeginAllowThreads();
5282 result = (PyObject *)wxPen_GetDashes(arg1);
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 resultobj = result;
5287 return resultobj;
5288fail:
5289 return NULL;
5290}
5291
5292
5293SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj = 0;
5295 wxPen *arg1 = (wxPen *) 0 ;
5296 PyObject *arg2 = (PyObject *) 0 ;
5297 PyObject *arg3 = (PyObject *) 0 ;
5298 void *argp1 = 0 ;
5299 int res1 = 0 ;
5300 PyObject * obj0 = 0 ;
5301 PyObject * obj1 = 0 ;
5302 PyObject * obj2 = 0 ;
5303 char * kwnames[] = {
5304 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5305 };
5306
5307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5309 if (!SWIG_IsOK(res1)) {
5310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5311 }
5312 arg1 = reinterpret_cast< wxPen * >(argp1);
5313 arg2 = obj1;
5314 arg3 = obj2;
5315 {
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 wxPen__SetDashes(arg1,arg2,arg3);
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 resultobj = SWIG_Py_Void();
5322 return resultobj;
5323fail:
5324 return NULL;
d14a1e28
RD
5325}
5326
5327
0085ce49
RD
5328SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5329 PyObject *resultobj = 0;
5330 wxPen *arg1 = (wxPen *) 0 ;
5331 int result;
5332 void *argp1 = 0 ;
5333 int res1 = 0 ;
5334 PyObject *swig_obj[1] ;
5335
5336 if (!args) SWIG_fail;
5337 swig_obj[0] = args;
5338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5339 if (!SWIG_IsOK(res1)) {
5340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5341 }
5342 arg1 = reinterpret_cast< wxPen * >(argp1);
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 result = (int)((wxPen const *)arg1)->GetDashCount();
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 resultobj = SWIG_From_int(static_cast< int >(result));
5350 return resultobj;
5351fail:
5352 return NULL;
5353}
5354
5355
5356SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj = 0;
5358 wxPen *arg1 = (wxPen *) 0 ;
5359 wxPen *arg2 = (wxPen *) 0 ;
5360 bool result;
5361 void *argp1 = 0 ;
5362 int res1 = 0 ;
5363 void *argp2 = 0 ;
5364 int res2 = 0 ;
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 char * kwnames[] = {
5368 (char *) "self",(char *) "other", NULL
5369 };
5370
5371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5373 if (!SWIG_IsOK(res1)) {
5374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5375 }
5376 arg1 = reinterpret_cast< wxPen * >(argp1);
5377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5378 if (!SWIG_IsOK(res2)) {
5379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5380 }
5381 arg2 = reinterpret_cast< wxPen * >(argp2);
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 }
5388 {
5389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5390 }
5391 return resultobj;
5392fail:
5393 return NULL;
5394}
5395
5396
5397SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj = 0;
5399 wxPen *arg1 = (wxPen *) 0 ;
5400 wxPen *arg2 = (wxPen *) 0 ;
5401 bool result;
5402 void *argp1 = 0 ;
5403 int res1 = 0 ;
5404 void *argp2 = 0 ;
5405 int res2 = 0 ;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 char * kwnames[] = {
5409 (char *) "self",(char *) "other", NULL
5410 };
5411
5412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5414 if (!SWIG_IsOK(res1)) {
5415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5416 }
5417 arg1 = reinterpret_cast< wxPen * >(argp1);
5418 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5419 if (!SWIG_IsOK(res2)) {
5420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5421 }
5422 arg2 = reinterpret_cast< wxPen * >(argp2);
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 {
5430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5431 }
5432 return resultobj;
5433fail:
5434 return NULL;
d14a1e28
RD
5435}
5436
5437
0085ce49
RD
5438SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5439 PyObject *obj;
5440 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5441 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5442 return SWIG_Py_Void();
d14a1e28
RD
5443}
5444
0085ce49
RD
5445SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5446 return SWIG_Python_InitShadowInstance(args);
5447}
d14a1e28 5448
0085ce49
RD
5449SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5450 PyObject *resultobj = 0;
5451 wxColour *arg1 = 0 ;
5452 int arg2 = (int) wxSOLID ;
5453 wxBrush *result = 0 ;
5454 wxColour temp1 ;
5455 int val2 ;
5456 int ecode2 = 0 ;
5457 PyObject * obj0 = 0 ;
5458 PyObject * obj1 = 0 ;
5459 char * kwnames[] = {
5460 (char *) "colour",(char *) "style", NULL
5461 };
5462
5463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5464 {
5465 arg1 = &temp1;
5466 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5467 }
5468 if (obj1) {
5469 ecode2 = SWIG_AsVal_int(obj1, &val2);
5470 if (!SWIG_IsOK(ecode2)) {
5471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5472 }
5473 arg2 = static_cast< int >(val2);
5474 }
5475 {
5476 if (!wxPyCheckForApp()) SWIG_fail;
5477 PyThreadState* __tstate = wxPyBeginAllowThreads();
5478 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5483 return resultobj;
5484fail:
5485 return NULL;
5486}
5487
5488
5489SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5490 PyObject *resultobj = 0;
5491 wxBitmap *arg1 = 0 ;
5492 wxBrush *result = 0 ;
5493 void *argp1 = 0 ;
5494 int res1 = 0 ;
5495 PyObject * obj0 = 0 ;
5496 char * kwnames[] = {
5497 (char *) "stippleBitmap", NULL
5498 };
5499
5500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5501 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5502 if (!SWIG_IsOK(res1)) {
5503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5504 }
5505 if (!argp1) {
5506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5507 }
5508 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5509 {
5510 if (!wxPyCheckForApp()) SWIG_fail;
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5513 wxPyEndAllowThreads(__tstate);
5514 if (PyErr_Occurred()) SWIG_fail;
5515 }
5516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5517 return resultobj;
5518fail:
5519 return NULL;
d14a1e28
RD
5520}
5521
5522
0085ce49
RD
5523SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5524 PyObject *resultobj = 0;
5525 wxBrush *arg1 = (wxBrush *) 0 ;
5526 void *argp1 = 0 ;
5527 int res1 = 0 ;
5528 PyObject *swig_obj[1] ;
5529
5530 if (!args) SWIG_fail;
5531 swig_obj[0] = args;
5532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5533 if (!SWIG_IsOK(res1)) {
5534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5535 }
5536 arg1 = reinterpret_cast< wxBrush * >(argp1);
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 delete arg1;
d14a1e28 5540
0085ce49
RD
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 resultobj = SWIG_Py_Void();
5545 return resultobj;
5546fail:
5547 return NULL;
5548}
5549
5550
5551SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj = 0;
5553 wxBrush *arg1 = (wxBrush *) 0 ;
5554 wxColour *arg2 = 0 ;
5555 void *argp1 = 0 ;
5556 int res1 = 0 ;
5557 wxColour temp2 ;
5558 PyObject * obj0 = 0 ;
5559 PyObject * obj1 = 0 ;
5560 char * kwnames[] = {
5561 (char *) "self",(char *) "col", NULL
5562 };
5563
5564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5566 if (!SWIG_IsOK(res1)) {
5567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5568 }
5569 arg1 = reinterpret_cast< wxBrush * >(argp1);
5570 {
5571 arg2 = &temp2;
5572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5573 }
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 (arg1)->SetColour((wxColour const &)*arg2);
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 resultobj = SWIG_Py_Void();
5581 return resultobj;
5582fail:
5583 return NULL;
5584}
5585
5586
5587SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5588 PyObject *resultobj = 0;
5589 wxBrush *arg1 = (wxBrush *) 0 ;
5590 int arg2 ;
5591 void *argp1 = 0 ;
5592 int res1 = 0 ;
5593 int val2 ;
5594 int ecode2 = 0 ;
5595 PyObject * obj0 = 0 ;
5596 PyObject * obj1 = 0 ;
5597 char * kwnames[] = {
5598 (char *) "self",(char *) "style", NULL
5599 };
5600
5601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5603 if (!SWIG_IsOK(res1)) {
5604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5605 }
5606 arg1 = reinterpret_cast< wxBrush * >(argp1);
5607 ecode2 = SWIG_AsVal_int(obj1, &val2);
5608 if (!SWIG_IsOK(ecode2)) {
5609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5610 }
5611 arg2 = static_cast< int >(val2);
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 (arg1)->SetStyle(arg2);
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_Py_Void();
5619 return resultobj;
5620fail:
5621 return NULL;
5622}
5623
5624
5625SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj = 0;
5627 wxBrush *arg1 = (wxBrush *) 0 ;
5628 wxBitmap *arg2 = 0 ;
5629 void *argp1 = 0 ;
5630 int res1 = 0 ;
5631 void *argp2 = 0 ;
5632 int res2 = 0 ;
5633 PyObject * obj0 = 0 ;
5634 PyObject * obj1 = 0 ;
5635 char * kwnames[] = {
5636 (char *) "self",(char *) "stipple", NULL
5637 };
5638
5639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5641 if (!SWIG_IsOK(res1)) {
5642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5643 }
5644 arg1 = reinterpret_cast< wxBrush * >(argp1);
5645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5646 if (!SWIG_IsOK(res2)) {
5647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5648 }
5649 if (!argp2) {
5650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5651 }
5652 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 (arg1)->SetStipple((wxBitmap const &)*arg2);
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 resultobj = SWIG_Py_Void();
5660 return resultobj;
5661fail:
5662 return NULL;
d14a1e28
RD
5663}
5664
5665
0085ce49
RD
5666SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5667 PyObject *resultobj = 0;
5668 wxBrush *arg1 = (wxBrush *) 0 ;
5669 wxColour result;
5670 void *argp1 = 0 ;
5671 int res1 = 0 ;
5672 PyObject *swig_obj[1] ;
5673
5674 if (!args) SWIG_fail;
5675 swig_obj[0] = args;
5676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5677 if (!SWIG_IsOK(res1)) {
5678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5679 }
5680 arg1 = reinterpret_cast< wxBrush * >(argp1);
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = ((wxBrush const *)arg1)->GetColour();
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 }
5687 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5688 return resultobj;
5689fail:
5690 return NULL;
d14a1e28
RD
5691}
5692
5693
0085ce49
RD
5694SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 PyObject *resultobj = 0;
5696 wxBrush *arg1 = (wxBrush *) 0 ;
5697 int result;
5698 void *argp1 = 0 ;
5699 int res1 = 0 ;
5700 PyObject *swig_obj[1] ;
5701
5702 if (!args) SWIG_fail;
5703 swig_obj[0] = args;
5704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5705 if (!SWIG_IsOK(res1)) {
5706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5707 }
5708 arg1 = reinterpret_cast< wxBrush * >(argp1);
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 result = (int)((wxBrush const *)arg1)->GetStyle();
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 resultobj = SWIG_From_int(static_cast< int >(result));
5716 return resultobj;
5717fail:
5718 return NULL;
d14a1e28
RD
5719}
5720
5721
0085ce49
RD
5722SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5723 PyObject *resultobj = 0;
5724 wxBrush *arg1 = (wxBrush *) 0 ;
5725 wxBitmap *result = 0 ;
5726 void *argp1 = 0 ;
5727 int res1 = 0 ;
5728 PyObject *swig_obj[1] ;
5729
5730 if (!args) SWIG_fail;
5731 swig_obj[0] = args;
5732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5733 if (!SWIG_IsOK(res1)) {
5734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5735 }
5736 arg1 = reinterpret_cast< wxBrush * >(argp1);
5737 {
5738 PyThreadState* __tstate = wxPyBeginAllowThreads();
5739 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5740 wxPyEndAllowThreads(__tstate);
5741 if (PyErr_Occurred()) SWIG_fail;
5742 }
5743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5744 return resultobj;
5745fail:
5746 return NULL;
d14a1e28
RD
5747}
5748
5749
0085ce49
RD
5750SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5751 PyObject *resultobj = 0;
5752 wxBrush *arg1 = (wxBrush *) 0 ;
5753 bool result;
5754 void *argp1 = 0 ;
5755 int res1 = 0 ;
5756 PyObject *swig_obj[1] ;
5757
5758 if (!args) SWIG_fail;
5759 swig_obj[0] = args;
5760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5761 if (!SWIG_IsOK(res1)) {
5762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5763 }
5764 arg1 = reinterpret_cast< wxBrush * >(argp1);
5765 {
5766 PyThreadState* __tstate = wxPyBeginAllowThreads();
5767 result = (bool)((wxBrush const *)arg1)->IsHatch();
5768 wxPyEndAllowThreads(__tstate);
5769 if (PyErr_Occurred()) SWIG_fail;
5770 }
5771 {
5772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5773 }
5774 return resultobj;
5775fail:
5776 return NULL;
f78cc896
RD
5777}
5778
5779
b39fe951 5780SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5781 PyObject *resultobj = 0;
5782 wxBrush *arg1 = (wxBrush *) 0 ;
5783 bool result;
5784 void *argp1 = 0 ;
5785 int res1 = 0 ;
5786 PyObject *swig_obj[1] ;
5787
5788 if (!args) SWIG_fail;
5789 swig_obj[0] = args;
5790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5791 if (!SWIG_IsOK(res1)) {
b39fe951 5792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
5793 }
5794 arg1 = reinterpret_cast< wxBrush * >(argp1);
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5797 result = (bool)(arg1)->IsOk();
0085ce49
RD
5798 wxPyEndAllowThreads(__tstate);
5799 if (PyErr_Occurred()) SWIG_fail;
5800 }
5801 {
5802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5803 }
5804 return resultobj;
5805fail:
5806 return NULL;
d14a1e28
RD
5807}
5808
5809
0085ce49
RD
5810SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5811 PyObject *obj;
5812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5813 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5814 return SWIG_Py_Void();
d14a1e28
RD
5815}
5816
0085ce49
RD
5817SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5818 return SWIG_Python_InitShadowInstance(args);
5819}
d14a1e28 5820
0085ce49
RD
5821SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5822 PyObject *resultobj = 0;
5823 wxString *arg1 = 0 ;
5824 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5825 wxBitmap *result = 0 ;
5826 bool temp1 = false ;
5827 int val2 ;
5828 int ecode2 = 0 ;
5829 PyObject * obj0 = 0 ;
5830 PyObject * obj1 = 0 ;
5831 char * kwnames[] = {
5832 (char *) "name",(char *) "type", NULL
5833 };
5834
5835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5836 {
5837 arg1 = wxString_in_helper(obj0);
5838 if (arg1 == NULL) SWIG_fail;
5839 temp1 = true;
5840 }
5841 if (obj1) {
5842 ecode2 = SWIG_AsVal_int(obj1, &val2);
5843 if (!SWIG_IsOK(ecode2)) {
5844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5845 }
5846 arg2 = static_cast< wxBitmapType >(val2);
5847 }
5848 {
5849 if (!wxPyCheckForApp()) SWIG_fail;
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5856 {
5857 if (temp1)
5858 delete arg1;
5859 }
5860 return resultobj;
5861fail:
5862 {
5863 if (temp1)
5864 delete arg1;
5865 }
5866 return NULL;
d14a1e28
RD
5867}
5868
5869
0085ce49
RD
5870SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5871 PyObject *resultobj = 0;
5872 wxBitmap *arg1 = (wxBitmap *) 0 ;
5873 void *argp1 = 0 ;
5874 int res1 = 0 ;
5875 PyObject *swig_obj[1] ;
5876
5877 if (!args) SWIG_fail;
5878 swig_obj[0] = args;
5879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5880 if (!SWIG_IsOK(res1)) {
5881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5882 }
5883 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5884 {
0085ce49 5885 delete arg1;
66c033b4 5886
0085ce49
RD
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 resultobj = SWIG_Py_Void();
5890 return resultobj;
5891fail:
5892 return NULL;
5893}
5894
5895
5896SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5897 PyObject *resultobj = 0;
5898 int arg1 ;
5899 int arg2 ;
5900 int arg3 = (int) -1 ;
5901 wxBitmap *result = 0 ;
5902 int val1 ;
5903 int ecode1 = 0 ;
5904 int val2 ;
5905 int ecode2 = 0 ;
5906 int val3 ;
5907 int ecode3 = 0 ;
5908 PyObject * obj0 = 0 ;
5909 PyObject * obj1 = 0 ;
5910 PyObject * obj2 = 0 ;
5911 char * kwnames[] = {
5912 (char *) "width",(char *) "height",(char *) "depth", NULL
5913 };
5914
5915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5916 ecode1 = SWIG_AsVal_int(obj0, &val1);
5917 if (!SWIG_IsOK(ecode1)) {
5918 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5919 }
5920 arg1 = static_cast< int >(val1);
5921 ecode2 = SWIG_AsVal_int(obj1, &val2);
5922 if (!SWIG_IsOK(ecode2)) {
5923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5924 }
5925 arg2 = static_cast< int >(val2);
5926 if (obj2) {
5927 ecode3 = SWIG_AsVal_int(obj2, &val3);
5928 if (!SWIG_IsOK(ecode3)) {
5929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5930 }
5931 arg3 = static_cast< int >(val3);
5932 }
5933 {
5934 if (!wxPyCheckForApp()) SWIG_fail;
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5941 return resultobj;
5942fail:
5943 return NULL;
5944}
5945
5946
5947SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj = 0;
5949 wxIcon *arg1 = 0 ;
5950 wxBitmap *result = 0 ;
5951 void *argp1 = 0 ;
5952 int res1 = 0 ;
5953 PyObject * obj0 = 0 ;
5954 char * kwnames[] = {
5955 (char *) "icon", NULL
5956 };
5957
5958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5959 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5962 }
5963 if (!argp1) {
5964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5965 }
5966 arg1 = reinterpret_cast< wxIcon * >(argp1);
5967 {
5968 if (!wxPyCheckForApp()) SWIG_fail;
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5975 return resultobj;
5976fail:
5977 return NULL;
5978}
5979
5980
5981SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxImage *arg1 = 0 ;
5984 int arg2 = (int) -1 ;
5985 wxBitmap *result = 0 ;
5986 void *argp1 = 0 ;
5987 int res1 = 0 ;
5988 int val2 ;
5989 int ecode2 = 0 ;
5990 PyObject * obj0 = 0 ;
5991 PyObject * obj1 = 0 ;
5992 char * kwnames[] = {
5993 (char *) "image",(char *) "depth", NULL
5994 };
5995
5996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5997 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5998 if (!SWIG_IsOK(res1)) {
5999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6000 }
6001 if (!argp1) {
6002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6003 }
6004 arg1 = reinterpret_cast< wxImage * >(argp1);
6005 if (obj1) {
6006 ecode2 = SWIG_AsVal_int(obj1, &val2);
6007 if (!SWIG_IsOK(ecode2)) {
6008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6009 }
6010 arg2 = static_cast< int >(val2);
6011 }
6012 {
6013 if (!wxPyCheckForApp()) SWIG_fail;
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6020 return resultobj;
6021fail:
6022 return NULL;
66c033b4
RD
6023}
6024
6025
0085ce49
RD
6026SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6027 PyObject *resultobj = 0;
6028 PyObject *arg1 = (PyObject *) 0 ;
6029 wxBitmap *result = 0 ;
6030 PyObject * obj0 = 0 ;
6031 char * kwnames[] = {
6032 (char *) "listOfStrings", NULL
6033 };
6034
6035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6036 arg1 = obj0;
6037 {
6038 if (!wxPyCheckForApp()) SWIG_fail;
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (wxBitmap *)new_wxBitmap(arg1);
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6045 return resultobj;
6046fail:
6047 return NULL;
6048}
6049
6050
6051SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj = 0;
6053 PyObject *arg1 = (PyObject *) 0 ;
6054 int arg2 ;
6055 int arg3 ;
6056 int arg4 = (int) 1 ;
6057 wxBitmap *result = 0 ;
6058 int val2 ;
6059 int ecode2 = 0 ;
6060 int val3 ;
6061 int ecode3 = 0 ;
6062 int val4 ;
6063 int ecode4 = 0 ;
6064 PyObject * obj0 = 0 ;
6065 PyObject * obj1 = 0 ;
6066 PyObject * obj2 = 0 ;
6067 PyObject * obj3 = 0 ;
6068 char * kwnames[] = {
6069 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6070 };
6071
6072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6073 arg1 = obj0;
6074 ecode2 = SWIG_AsVal_int(obj1, &val2);
6075 if (!SWIG_IsOK(ecode2)) {
6076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6077 }
6078 arg2 = static_cast< int >(val2);
6079 ecode3 = SWIG_AsVal_int(obj2, &val3);
6080 if (!SWIG_IsOK(ecode3)) {
6081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6082 }
6083 arg3 = static_cast< int >(val3);
6084 if (obj3) {
6085 ecode4 = SWIG_AsVal_int(obj3, &val4);
6086 if (!SWIG_IsOK(ecode4)) {
6087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6088 }
6089 arg4 = static_cast< int >(val4);
6090 }
6091 {
6092 if (!wxPyCheckForApp()) SWIG_fail;
6093 PyThreadState* __tstate = wxPyBeginAllowThreads();
6094 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6095 wxPyEndAllowThreads(__tstate);
6096 if (PyErr_Occurred()) SWIG_fail;
6097 }
6098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6099 return resultobj;
6100fail:
6101 return NULL;
d14a1e28
RD
6102}
6103
6104
b39fe951 6105SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6106 PyObject *resultobj = 0;
6107 wxBitmap *arg1 = (wxBitmap *) 0 ;
6108 bool result;
6109 void *argp1 = 0 ;
6110 int res1 = 0 ;
6111 PyObject *swig_obj[1] ;
6112
6113 if (!args) SWIG_fail;
6114 swig_obj[0] = args;
6115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6116 if (!SWIG_IsOK(res1)) {
b39fe951 6117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6118 }
6119 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6120 {
b39fe951 6121 result = (bool)(arg1)->IsOk();
0085ce49
RD
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 {
6125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6126 }
6127 return resultobj;
6128fail:
6129 return NULL;
d14a1e28
RD
6130}
6131
6132
0085ce49
RD
6133SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6134 PyObject *resultobj = 0;
6135 wxBitmap *arg1 = (wxBitmap *) 0 ;
6136 int result;
6137 void *argp1 = 0 ;
6138 int res1 = 0 ;
6139 PyObject *swig_obj[1] ;
6140
6141 if (!args) SWIG_fail;
6142 swig_obj[0] = args;
6143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6144 if (!SWIG_IsOK(res1)) {
6145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6146 }
6147 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6148 {
0085ce49 6149 result = (int)(arg1)->GetWidth();
0085ce49
RD
6150 if (PyErr_Occurred()) SWIG_fail;
6151 }
6152 resultobj = SWIG_From_int(static_cast< int >(result));
6153 return resultobj;
6154fail:
6155 return NULL;
d14a1e28
RD
6156}
6157
6158
0085ce49
RD
6159SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6160 PyObject *resultobj = 0;
6161 wxBitmap *arg1 = (wxBitmap *) 0 ;
6162 int result;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 PyObject *swig_obj[1] ;
6166
6167 if (!args) SWIG_fail;
6168 swig_obj[0] = args;
6169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6170 if (!SWIG_IsOK(res1)) {
6171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6172 }
6173 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6174 {
0085ce49 6175 result = (int)(arg1)->GetHeight();
0085ce49
RD
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_From_int(static_cast< int >(result));
6179 return resultobj;
6180fail:
6181 return NULL;
d14a1e28
RD
6182}
6183
6184
0085ce49
RD
6185SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxBitmap *arg1 = (wxBitmap *) 0 ;
6188 int result;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 PyObject *swig_obj[1] ;
6192
6193 if (!args) SWIG_fail;
6194 swig_obj[0] = args;
6195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6196 if (!SWIG_IsOK(res1)) {
6197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6198 }
6199 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6200 {
0085ce49 6201 result = (int)(arg1)->GetDepth();
0085ce49
RD
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_From_int(static_cast< int >(result));
6205 return resultobj;
6206fail:
6207 return NULL;
d14a1e28
RD
6208}
6209
6210
0085ce49
RD
6211SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6212 PyObject *resultobj = 0;
6213 wxBitmap *arg1 = (wxBitmap *) 0 ;
6214 wxSize result;
6215 void *argp1 = 0 ;
6216 int res1 = 0 ;
6217 PyObject *swig_obj[1] ;
6218
6219 if (!args) SWIG_fail;
6220 swig_obj[0] = args;
6221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6222 if (!SWIG_IsOK(res1)) {
6223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6224 }
6225 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6226 {
0085ce49 6227 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6231 return resultobj;
6232fail:
6233 return NULL;
d14a1e28
RD
6234}
6235
6236
0085ce49
RD
6237SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6238 PyObject *resultobj = 0;
6239 wxBitmap *arg1 = (wxBitmap *) 0 ;
6240 SwigValueWrapper<wxImage > result;
6241 void *argp1 = 0 ;
6242 int res1 = 0 ;
6243 PyObject *swig_obj[1] ;
6244
6245 if (!args) SWIG_fail;
6246 swig_obj[0] = args;
6247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6248 if (!SWIG_IsOK(res1)) {
6249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6250 }
6251 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6252 {
0085ce49 6253 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6257 return resultobj;
6258fail:
6259 return NULL;
d14a1e28
RD
6260}
6261
6262
0085ce49
RD
6263SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6264 PyObject *resultobj = 0;
6265 wxBitmap *arg1 = (wxBitmap *) 0 ;
6266 wxMask *result = 0 ;
6267 void *argp1 = 0 ;
6268 int res1 = 0 ;
6269 PyObject *swig_obj[1] ;
6270
6271 if (!args) SWIG_fail;
6272 swig_obj[0] = args;
6273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6274 if (!SWIG_IsOK(res1)) {
6275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6276 }
6277 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6278 {
0085ce49 6279 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6280 if (PyErr_Occurred()) SWIG_fail;
6281 }
6282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6283 return resultobj;
6284fail:
6285 return NULL;
6286}
6287
6288
6289SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6290 PyObject *resultobj = 0;
6291 wxBitmap *arg1 = (wxBitmap *) 0 ;
6292 wxMask *arg2 = (wxMask *) 0 ;
6293 void *argp1 = 0 ;
6294 int res1 = 0 ;
6295 int res2 = 0 ;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 char * kwnames[] = {
6299 (char *) "self",(char *) "mask", NULL
6300 };
6301
6302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6304 if (!SWIG_IsOK(res1)) {
6305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6306 }
6307 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6308 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6309 if (!SWIG_IsOK(res2)) {
6310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6311 }
6312 {
0085ce49 6313 (arg1)->SetMask(arg2);
0085ce49
RD
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 resultobj = SWIG_Py_Void();
6317 return resultobj;
6318fail:
6319 return NULL;
6320}
6321
6322
6323SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6324 PyObject *resultobj = 0;
6325 wxBitmap *arg1 = (wxBitmap *) 0 ;
6326 wxColour *arg2 = 0 ;
6327 void *argp1 = 0 ;
6328 int res1 = 0 ;
6329 wxColour temp2 ;
6330 PyObject * obj0 = 0 ;
6331 PyObject * obj1 = 0 ;
6332 char * kwnames[] = {
6333 (char *) "self",(char *) "colour", NULL
6334 };
6335
6336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6338 if (!SWIG_IsOK(res1)) {
6339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6340 }
6341 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6342 {
6343 arg2 = &temp2;
6344 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6345 }
6346 {
0085ce49 6347 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_Py_Void();
6351 return resultobj;
6352fail:
6353 return NULL;
6354}
6355
6356
6357SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj = 0;
6359 wxBitmap *arg1 = (wxBitmap *) 0 ;
6360 wxRect *arg2 = 0 ;
6361 SwigValueWrapper<wxBitmap > result;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 wxRect temp2 ;
6365 PyObject * obj0 = 0 ;
6366 PyObject * obj1 = 0 ;
6367 char * kwnames[] = {
6368 (char *) "self",(char *) "rect", NULL
6369 };
6370
6371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6373 if (!SWIG_IsOK(res1)) {
6374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6375 }
6376 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6377 {
6378 arg2 = &temp2;
6379 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6380 }
6381 {
0085ce49 6382 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6383 if (PyErr_Occurred()) SWIG_fail;
6384 }
6385 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6386 return resultobj;
6387fail:
6388 return NULL;
6389}
6390
6391
6392SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6393 PyObject *resultobj = 0;
6394 wxBitmap *arg1 = (wxBitmap *) 0 ;
6395 wxString *arg2 = 0 ;
6396 wxBitmapType arg3 ;
6397 wxPalette *arg4 = (wxPalette *) NULL ;
6398 bool result;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 bool temp2 = false ;
6402 int val3 ;
6403 int ecode3 = 0 ;
6404 void *argp4 = 0 ;
6405 int res4 = 0 ;
6406 PyObject * obj0 = 0 ;
6407 PyObject * obj1 = 0 ;
6408 PyObject * obj2 = 0 ;
6409 PyObject * obj3 = 0 ;
6410 char * kwnames[] = {
6411 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6412 };
6413
6414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6416 if (!SWIG_IsOK(res1)) {
6417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6418 }
6419 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6420 {
6421 arg2 = wxString_in_helper(obj1);
6422 if (arg2 == NULL) SWIG_fail;
6423 temp2 = true;
6424 }
6425 ecode3 = SWIG_AsVal_int(obj2, &val3);
6426 if (!SWIG_IsOK(ecode3)) {
6427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6428 }
6429 arg3 = static_cast< wxBitmapType >(val3);
6430 if (obj3) {
6431 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6432 if (!SWIG_IsOK(res4)) {
6433 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6434 }
0085ce49
RD
6435 arg4 = reinterpret_cast< wxPalette * >(argp4);
6436 }
6437 {
0085ce49 6438 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 {
6442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6443 }
6444 {
6445 if (temp2)
6446 delete arg2;
6447 }
6448 return resultobj;
6449fail:
6450 {
6451 if (temp2)
6452 delete arg2;
6453 }
6454 return NULL;
6455}
6456
6457
6458SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6459 PyObject *resultobj = 0;
6460 wxBitmap *arg1 = (wxBitmap *) 0 ;
6461 wxString *arg2 = 0 ;
6462 wxBitmapType arg3 ;
6463 bool result;
6464 void *argp1 = 0 ;
6465 int res1 = 0 ;
6466 bool temp2 = false ;
6467 int val3 ;
6468 int ecode3 = 0 ;
6469 PyObject * obj0 = 0 ;
6470 PyObject * obj1 = 0 ;
6471 PyObject * obj2 = 0 ;
6472 char * kwnames[] = {
6473 (char *) "self",(char *) "name",(char *) "type", NULL
6474 };
6475
6476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6478 if (!SWIG_IsOK(res1)) {
6479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6480 }
6481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6482 {
6483 arg2 = wxString_in_helper(obj1);
6484 if (arg2 == NULL) SWIG_fail;
6485 temp2 = true;
6486 }
6487 ecode3 = SWIG_AsVal_int(obj2, &val3);
6488 if (!SWIG_IsOK(ecode3)) {
6489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6490 }
6491 arg3 = static_cast< wxBitmapType >(val3);
6492 {
0085ce49 6493 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 {
6497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6498 }
6499 {
6500 if (temp2)
6501 delete arg2;
6502 }
6503 return resultobj;
6504fail:
6505 {
6506 if (temp2)
6507 delete arg2;
6508 }
6509 return NULL;
d04418a7
RD
6510}
6511
6512
0085ce49
RD
6513SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6514 PyObject *resultobj = 0;
6515 wxBitmap *arg1 = (wxBitmap *) 0 ;
6516 wxPalette *result = 0 ;
6517 void *argp1 = 0 ;
6518 int res1 = 0 ;
6519 PyObject *swig_obj[1] ;
6520
6521 if (!args) SWIG_fail;
6522 swig_obj[0] = args;
6523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6524 if (!SWIG_IsOK(res1)) {
6525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6526 }
6527 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6528 {
0085ce49 6529 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6533 return resultobj;
6534fail:
6535 return NULL;
6536}
6537
6538
6539SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj = 0;
6541 wxBitmap *arg1 = (wxBitmap *) 0 ;
6542 wxIcon *arg2 = 0 ;
6543 bool result;
6544 void *argp1 = 0 ;
6545 int res1 = 0 ;
6546 void *argp2 = 0 ;
6547 int res2 = 0 ;
6548 PyObject * obj0 = 0 ;
6549 PyObject * obj1 = 0 ;
6550 char * kwnames[] = {
6551 (char *) "self",(char *) "icon", NULL
6552 };
6553
6554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6556 if (!SWIG_IsOK(res1)) {
6557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6558 }
6559 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6561 if (!SWIG_IsOK(res2)) {
6562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6563 }
6564 if (!argp2) {
6565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6566 }
6567 arg2 = reinterpret_cast< wxIcon * >(argp2);
6568 {
0085ce49 6569 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 {
6573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6574 }
6575 return resultobj;
6576fail:
6577 return NULL;
6578}
6579
6580
6581SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6582 PyObject *resultobj = 0;
6583 wxBitmap *arg1 = (wxBitmap *) 0 ;
6584 int arg2 ;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 int val2 ;
6588 int ecode2 = 0 ;
6589 PyObject * obj0 = 0 ;
6590 PyObject * obj1 = 0 ;
6591 char * kwnames[] = {
6592 (char *) "self",(char *) "height", NULL
6593 };
6594
6595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6597 if (!SWIG_IsOK(res1)) {
6598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6599 }
6600 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6601 ecode2 = SWIG_AsVal_int(obj1, &val2);
6602 if (!SWIG_IsOK(ecode2)) {
6603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6604 }
6605 arg2 = static_cast< int >(val2);
6606 {
0085ce49 6607 (arg1)->SetHeight(arg2);
0085ce49
RD
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 resultobj = SWIG_Py_Void();
6611 return resultobj;
6612fail:
6613 return NULL;
6614}
6615
6616
6617SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj = 0;
6619 wxBitmap *arg1 = (wxBitmap *) 0 ;
6620 int arg2 ;
6621 void *argp1 = 0 ;
6622 int res1 = 0 ;
6623 int val2 ;
6624 int ecode2 = 0 ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char * kwnames[] = {
6628 (char *) "self",(char *) "width", NULL
6629 };
6630
6631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6633 if (!SWIG_IsOK(res1)) {
6634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6635 }
6636 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6637 ecode2 = SWIG_AsVal_int(obj1, &val2);
6638 if (!SWIG_IsOK(ecode2)) {
6639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6640 }
6641 arg2 = static_cast< int >(val2);
6642 {
0085ce49 6643 (arg1)->SetWidth(arg2);
0085ce49
RD
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 resultobj = SWIG_Py_Void();
6647 return resultobj;
6648fail:
6649 return NULL;
6650}
6651
6652
6653SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6654 PyObject *resultobj = 0;
6655 wxBitmap *arg1 = (wxBitmap *) 0 ;
6656 int arg2 ;
6657 void *argp1 = 0 ;
6658 int res1 = 0 ;
6659 int val2 ;
6660 int ecode2 = 0 ;
6661 PyObject * obj0 = 0 ;
6662 PyObject * obj1 = 0 ;
6663 char * kwnames[] = {
6664 (char *) "self",(char *) "depth", NULL
6665 };
6666
6667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6669 if (!SWIG_IsOK(res1)) {
6670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6671 }
6672 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6673 ecode2 = SWIG_AsVal_int(obj1, &val2);
6674 if (!SWIG_IsOK(ecode2)) {
6675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6676 }
6677 arg2 = static_cast< int >(val2);
6678 {
0085ce49 6679 (arg1)->SetDepth(arg2);
0085ce49
RD
6680 if (PyErr_Occurred()) SWIG_fail;
6681 }
6682 resultobj = SWIG_Py_Void();
6683 return resultobj;
6684fail:
6685 return NULL;
6686}
6687
6688
6689SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6690 PyObject *resultobj = 0;
6691 wxBitmap *arg1 = (wxBitmap *) 0 ;
6692 wxSize *arg2 = 0 ;
6693 void *argp1 = 0 ;
6694 int res1 = 0 ;
6695 wxSize temp2 ;
6696 PyObject * obj0 = 0 ;
6697 PyObject * obj1 = 0 ;
6698 char * kwnames[] = {
6699 (char *) "self",(char *) "size", NULL
6700 };
6701
6702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6704 if (!SWIG_IsOK(res1)) {
6705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6706 }
6707 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6708 {
6709 arg2 = &temp2;
6710 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6711 }
6712 {
0085ce49 6713 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = SWIG_Py_Void();
6717 return resultobj;
6718fail:
6719 return NULL;
6720}
6721
6722
6723SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6724 PyObject *resultobj = 0;
6725 wxBitmap *arg1 = (wxBitmap *) 0 ;
6726 wxBitmap *arg2 = (wxBitmap *) 0 ;
6727 bool result;
6728 void *argp1 = 0 ;
6729 int res1 = 0 ;
6730 void *argp2 = 0 ;
6731 int res2 = 0 ;
6732 PyObject * obj0 = 0 ;
6733 PyObject * obj1 = 0 ;
6734 char * kwnames[] = {
6735 (char *) "self",(char *) "other", NULL
6736 };
6737
6738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6740 if (!SWIG_IsOK(res1)) {
6741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6742 }
6743 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6745 if (!SWIG_IsOK(res2)) {
6746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6747 }
6748 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6749 {
0085ce49 6750 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
fc46b7f3
RD
6754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6755 }
6756 return resultobj;
6757fail:
6758 return NULL;
6759}
6760
6761
6762SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj = 0;
6764 wxBitmap *arg1 = (wxBitmap *) 0 ;
6765 wxBitmap *arg2 = (wxBitmap *) 0 ;
6766 bool result;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 void *argp2 = 0 ;
6770 int res2 = 0 ;
6771 PyObject * obj0 = 0 ;
6772 PyObject * obj1 = 0 ;
6773 char * kwnames[] = {
6774 (char *) "self",(char *) "other", NULL
6775 };
6776
6777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6779 if (!SWIG_IsOK(res1)) {
6780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6781 }
6782 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6784 if (!SWIG_IsOK(res2)) {
6785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6786 }
6787 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6788 {
6789 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 {
6793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6794 }
6795 return resultobj;
6796fail:
6797 return NULL;
6798}
6799
6800
6801SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6802 PyObject *obj;
6803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6804 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6805 return SWIG_Py_Void();
6806}
6807
6808SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6809 return SWIG_Python_InitShadowInstance(args);
6810}
6811
6812SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj = 0;
6814 int arg1 ;
6815 int arg2 ;
6816 buffer arg3 ;
6817 int arg4 ;
6818 buffer arg5 ;
6819 int arg6 ;
6820 wxBitmap *result = 0 ;
6821 int val1 ;
6822 int ecode1 = 0 ;
6823 int val2 ;
6824 int ecode2 = 0 ;
c79fdf86
RD
6825 Py_ssize_t temp3 ;
6826 Py_ssize_t temp5 ;
fc46b7f3
RD
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6836 ecode1 = SWIG_AsVal_int(obj0, &val1);
6837 if (!SWIG_IsOK(ecode1)) {
6838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6839 }
6840 arg1 = static_cast< int >(val1);
6841 ecode2 = SWIG_AsVal_int(obj1, &val2);
6842 if (!SWIG_IsOK(ecode2)) {
6843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6844 }
6845 arg2 = static_cast< int >(val2);
6846 {
c79fdf86
RD
6847 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6848 arg4 = (int)temp3;
fc46b7f3
RD
6849 }
6850 {
6851 if (obj3 != Py_None) {
c79fdf86
RD
6852 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6853 arg6 = (int)temp5;
fc46b7f3
RD
6854 }
6855 }
6856 {
6857 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6861 return resultobj;
6862fail:
6863 return NULL;
6864}
6865
6866
6867SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6868 PyObject *resultobj = 0;
6869 int arg1 ;
6870 int arg2 ;
6871 buffer arg3 ;
6872 int arg4 ;
6873 wxBitmap *result = 0 ;
6874 int val1 ;
6875 int ecode1 = 0 ;
6876 int val2 ;
6877 int ecode2 = 0 ;
c79fdf86 6878 Py_ssize_t temp3 ;
fc46b7f3
RD
6879 PyObject * obj0 = 0 ;
6880 PyObject * obj1 = 0 ;
6881 PyObject * obj2 = 0 ;
6882 char * kwnames[] = {
6883 (char *) "width",(char *) "height",(char *) "data", NULL
6884 };
6885
6886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6887 ecode1 = SWIG_AsVal_int(obj0, &val1);
6888 if (!SWIG_IsOK(ecode1)) {
6889 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6890 }
6891 arg1 = static_cast< int >(val1);
6892 ecode2 = SWIG_AsVal_int(obj1, &val2);
6893 if (!SWIG_IsOK(ecode2)) {
6894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6895 }
6896 arg2 = static_cast< int >(val2);
6897 {
c79fdf86
RD
6898 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6899 arg4 = (int)temp3;
fc46b7f3
RD
6900 }
6901 {
6902 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6906 return resultobj;
6907fail:
6908 return NULL;
6909}
6910
6911
6912SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj = 0;
6914 int arg1 ;
6915 int arg2 ;
6916 buffer arg3 ;
6917 int arg4 ;
6918 wxBitmap *result = 0 ;
6919 int val1 ;
6920 int ecode1 = 0 ;
6921 int val2 ;
6922 int ecode2 = 0 ;
c79fdf86 6923 Py_ssize_t temp3 ;
fc46b7f3
RD
6924 PyObject * obj0 = 0 ;
6925 PyObject * obj1 = 0 ;
6926 PyObject * obj2 = 0 ;
6927 char * kwnames[] = {
6928 (char *) "width",(char *) "height",(char *) "data", NULL
6929 };
6930
6931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6932 ecode1 = SWIG_AsVal_int(obj0, &val1);
6933 if (!SWIG_IsOK(ecode1)) {
6934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6935 }
6936 arg1 = static_cast< int >(val1);
6937 ecode2 = SWIG_AsVal_int(obj1, &val2);
6938 if (!SWIG_IsOK(ecode2)) {
6939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6940 }
6941 arg2 = static_cast< int >(val2);
6942 {
c79fdf86
RD
6943 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6944 arg4 = (int)temp3;
fc46b7f3
RD
6945 }
6946 {
6947 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 }
6950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6951 return resultobj;
6952fail:
6953 return NULL;
6954}
6955
6956
6957SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6958 PyObject *resultobj = 0;
6959 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6960 wxPoint result;
6961 void *argp1 = 0 ;
6962 int res1 = 0 ;
6963 PyObject *swig_obj[1] ;
6964
6965 if (!args) SWIG_fail;
6966 swig_obj[0] = args;
6967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6968 if (!SWIG_IsOK(res1)) {
6969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6970 }
6971 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6972 {
6973 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6974 if (PyErr_Occurred()) SWIG_fail;
6975 }
6976 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6977 return resultobj;
6978fail:
6979 return NULL;
6980}
6981
6982
6983SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6984 PyObject *resultobj = 0;
6985 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6986 int result;
6987 void *argp1 = 0 ;
6988 int res1 = 0 ;
6989 PyObject *swig_obj[1] ;
6990
6991 if (!args) SWIG_fail;
6992 swig_obj[0] = args;
6993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6994 if (!SWIG_IsOK(res1)) {
6995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6996 }
6997 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6998 {
6999 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 resultobj = SWIG_From_int(static_cast< int >(result));
7003 return resultobj;
7004fail:
7005 return NULL;
7006}
7007
7008
7009SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7010 PyObject *resultobj = 0;
7011 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7012 int result;
7013 void *argp1 = 0 ;
7014 int res1 = 0 ;
7015 PyObject *swig_obj[1] ;
7016
7017 if (!args) SWIG_fail;
7018 swig_obj[0] = args;
7019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7020 if (!SWIG_IsOK(res1)) {
7021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7022 }
7023 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7024 {
7025 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_From_int(static_cast< int >(result));
7029 return resultobj;
7030fail:
7031 return NULL;
7032}
7033
7034
7035SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7036 PyObject *resultobj = 0;
7037 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7038 wxSize result;
7039 void *argp1 = 0 ;
7040 int res1 = 0 ;
7041 PyObject *swig_obj[1] ;
7042
7043 if (!args) SWIG_fail;
7044 swig_obj[0] = args;
7045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7046 if (!SWIG_IsOK(res1)) {
7047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7048 }
7049 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7050 {
7051 result = ((wxPixelDataBase const *)arg1)->GetSize();
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7055 return resultobj;
7056fail:
7057 return NULL;
7058}
7059
7060
7061SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7062 PyObject *resultobj = 0;
7063 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7064 int result;
7065 void *argp1 = 0 ;
7066 int res1 = 0 ;
7067 PyObject *swig_obj[1] ;
7068
7069 if (!args) SWIG_fail;
7070 swig_obj[0] = args;
7071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7072 if (!SWIG_IsOK(res1)) {
7073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7074 }
7075 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7076 {
7077 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7078 if (PyErr_Occurred()) SWIG_fail;
7079 }
7080 resultobj = SWIG_From_int(static_cast< int >(result));
7081 return resultobj;
7082fail:
7083 return NULL;
7084}
7085
7086
7087SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7088 PyObject *obj;
7089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7090 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7091 return SWIG_Py_Void();
7092}
7093
7094SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7095 PyObject *resultobj = 0;
7096 wxBitmap *arg1 = 0 ;
7097 wxNativePixelData *result = 0 ;
7098 void *argp1 = 0 ;
7099 int res1 = 0 ;
7100
7101 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7103 if (!SWIG_IsOK(res1)) {
7104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7105 }
7106 if (!argp1) {
7107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7108 }
7109 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7110 {
7111 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7115 return resultobj;
7116fail:
7117 return NULL;
7118}
7119
7120
7121SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7122 PyObject *resultobj = 0;
7123 wxBitmap *arg1 = 0 ;
7124 wxRect *arg2 = 0 ;
7125 wxNativePixelData *result = 0 ;
7126 void *argp1 = 0 ;
7127 int res1 = 0 ;
7128 wxRect temp2 ;
7129
7130 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7132 if (!SWIG_IsOK(res1)) {
7133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7134 }
7135 if (!argp1) {
7136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7137 }
7138 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7139 {
7140 arg2 = &temp2;
7141 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7142 }
7143 {
7144 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7148 return resultobj;
7149fail:
7150 return NULL;
7151}
7152
7153
7154SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7155 PyObject *resultobj = 0;
7156 wxBitmap *arg1 = 0 ;
7157 wxPoint *arg2 = 0 ;
7158 wxSize *arg3 = 0 ;
7159 wxNativePixelData *result = 0 ;
7160 void *argp1 = 0 ;
7161 int res1 = 0 ;
7162 wxPoint temp2 ;
7163 wxSize temp3 ;
7164
7165 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7167 if (!SWIG_IsOK(res1)) {
7168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7169 }
7170 if (!argp1) {
7171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7172 }
7173 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7174 {
7175 arg2 = &temp2;
7176 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7177 }
7178 {
7179 arg3 = &temp3;
7180 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7181 }
7182 {
7183 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7187 return resultobj;
7188fail:
7189 return NULL;
7190}
7191
7192
7193SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7194 int argc;
7195 PyObject *argv[4];
7196
7197 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7198 --argc;
7199 if (argc == 1) {
7200 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7201 }
7202 if (argc == 2) {
7203 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7204 }
7205 if (argc == 3) {
7206 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7207 }
7208
7209fail:
7210 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7211 return NULL;
7212}
7213
7214
7215SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7216 PyObject *resultobj = 0;
7217 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7218 void *argp1 = 0 ;
7219 int res1 = 0 ;
7220 PyObject *swig_obj[1] ;
7221
7222 if (!args) SWIG_fail;
7223 swig_obj[0] = args;
7224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7225 if (!SWIG_IsOK(res1)) {
7226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7227 }
7228 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7229 {
7230 delete arg1;
7231
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 resultobj = SWIG_Py_Void();
7235 return resultobj;
7236fail:
7237 return NULL;
7238}
7239
7240
7241SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7242 PyObject *resultobj = 0;
7243 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7244 wxNativePixelData_Accessor result;
7245 void *argp1 = 0 ;
7246 int res1 = 0 ;
7247 PyObject *swig_obj[1] ;
7248
7249 if (!args) SWIG_fail;
7250 swig_obj[0] = args;
7251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7252 if (!SWIG_IsOK(res1)) {
7253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7254 }
7255 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7256 {
7257 result = ((wxNativePixelData const *)arg1)->GetPixels();
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
7260 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7261 return resultobj;
7262fail:
7263 return NULL;
7264}
7265
7266
7267SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7268 PyObject *resultobj = 0;
7269 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7270 void *argp1 = 0 ;
7271 int res1 = 0 ;
7272 PyObject *swig_obj[1] ;
7273
7274 if (!args) SWIG_fail;
7275 swig_obj[0] = args;
7276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7279 }
7280 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7281 {
7282 (arg1)->UseAlpha();
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_Py_Void();
7286 return resultobj;
7287fail:
7288 return NULL;
7289}
7290
7291
7292SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7293 PyObject *resultobj = 0;
7294 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7295 bool result;
7296 void *argp1 = 0 ;
7297 int res1 = 0 ;
7298 PyObject *swig_obj[1] ;
7299
7300 if (!args) SWIG_fail;
7301 swig_obj[0] = args;
7302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7303 if (!SWIG_IsOK(res1)) {
7304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7305 }
7306 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7307 {
7308 result = (bool)wxNativePixelData___nonzero__(arg1);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 {
7312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7313 }
7314 return resultobj;
7315fail:
7316 return NULL;
7317}
7318
7319
7320SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7321 PyObject *obj;
7322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7323 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7324 return SWIG_Py_Void();
7325}
7326
7327SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 return SWIG_Python_InitShadowInstance(args);
7329}
7330
7331SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7332 PyObject *resultobj = 0;
7333 wxNativePixelData *arg1 = 0 ;
7334 wxNativePixelData_Accessor *result = 0 ;
7335 void *argp1 = 0 ;
7336 int res1 = 0 ;
7337
7338 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7342 }
7343 if (!argp1) {
7344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7345 }
7346 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7347 {
7348 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7349 if (PyErr_Occurred()) SWIG_fail;
7350 }
7351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7352 return resultobj;
7353fail:
7354 return NULL;
7355}
7356
7357
7358SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7359 PyObject *resultobj = 0;
7360 wxBitmap *arg1 = 0 ;
7361 wxNativePixelData *arg2 = 0 ;
7362 wxNativePixelData_Accessor *result = 0 ;
7363 void *argp1 = 0 ;
7364 int res1 = 0 ;
7365 void *argp2 = 0 ;
7366 int res2 = 0 ;
7367
7368 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7370 if (!SWIG_IsOK(res1)) {
7371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7372 }
7373 if (!argp1) {
7374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7375 }
7376 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7377 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7378 if (!SWIG_IsOK(res2)) {
7379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7380 }
7381 if (!argp2) {
7382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7383 }
7384 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7385 {
7386 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7390 return resultobj;
7391fail:
7392 return NULL;
7393}
7394
7395
7396SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7397 PyObject *resultobj = 0;
7398 wxNativePixelData_Accessor *result = 0 ;
7399
7400 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7401 {
7402 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7403 if (PyErr_Occurred()) SWIG_fail;
7404 }
7405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7406 return resultobj;
7407fail:
7408 return NULL;
7409}
7410
7411
7412SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7413 int argc;
7414 PyObject *argv[3];
7415
7416 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7417 --argc;
7418 if (argc == 0) {
7419 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7420 }
7421 if (argc == 1) {
7422 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7423 }
7424 if (argc == 2) {
7425 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7426 }
7427
7428fail:
7429 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7430 return NULL;
7431}
7432
7433
7434SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7435 PyObject *resultobj = 0;
7436 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439 PyObject *swig_obj[1] ;
7440
7441 if (!args) SWIG_fail;
7442 swig_obj[0] = args;
7443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7444 if (!SWIG_IsOK(res1)) {
7445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7446 }
7447 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7448 {
7449 delete arg1;
7450
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_Py_Void();
7454 return resultobj;
7455fail:
7456 return NULL;
7457}
7458
7459
7460SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj = 0;
7462 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7463 wxNativePixelData *arg2 = 0 ;
7464 void *argp1 = 0 ;
7465 int res1 = 0 ;
7466 void *argp2 = 0 ;
7467 int res2 = 0 ;
7468 PyObject * obj0 = 0 ;
7469 PyObject * obj1 = 0 ;
7470 char * kwnames[] = {
7471 (char *) "self",(char *) "data", NULL
7472 };
7473
7474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7478 }
7479 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7481 if (!SWIG_IsOK(res2)) {
7482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7483 }
7484 if (!argp2) {
7485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7486 }
7487 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7488 {
7489 (arg1)->Reset((wxNativePixelData const &)*arg2);
7490 if (PyErr_Occurred()) SWIG_fail;
7491 }
7492 resultobj = SWIG_Py_Void();
7493 return resultobj;
7494fail:
7495 return NULL;
7496}
7497
7498
7499SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7500 PyObject *resultobj = 0;
7501 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7502 bool result;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 PyObject *swig_obj[1] ;
7506
7507 if (!args) SWIG_fail;
7508 swig_obj[0] = args;
7509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7512 }
7513 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7514 {
7515 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 {
7519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7520 }
7521 return resultobj;
7522fail:
7523 return NULL;
7524}
7525
7526
7527SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7528 PyObject *resultobj = 0;
7529 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7530 void *argp1 = 0 ;
7531 int res1 = 0 ;
7532 PyObject *swig_obj[1] ;
7533
7534 if (!args) SWIG_fail;
7535 swig_obj[0] = args;
7536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7537 if (!SWIG_IsOK(res1)) {
7538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7539 }
7540 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7541 {
7542 wxNativePixelData_Accessor_nextPixel(arg1);
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 resultobj = SWIG_Py_Void();
7546 return resultobj;
7547fail:
7548 return NULL;
7549}
7550
7551
7552SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7553 PyObject *resultobj = 0;
7554 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7555 wxNativePixelData *arg2 = 0 ;
7556 int arg3 ;
7557 int arg4 ;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 void *argp2 = 0 ;
7561 int res2 = 0 ;
7562 int val3 ;
7563 int ecode3 = 0 ;
7564 int val4 ;
7565 int ecode4 = 0 ;
7566 PyObject * obj0 = 0 ;
7567 PyObject * obj1 = 0 ;
7568 PyObject * obj2 = 0 ;
7569 PyObject * obj3 = 0 ;
7570 char * kwnames[] = {
7571 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7572 };
7573
7574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7576 if (!SWIG_IsOK(res1)) {
7577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7578 }
7579 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7581 if (!SWIG_IsOK(res2)) {
7582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7583 }
7584 if (!argp2) {
7585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7586 }
7587 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7588 ecode3 = SWIG_AsVal_int(obj2, &val3);
7589 if (!SWIG_IsOK(ecode3)) {
7590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7591 }
7592 arg3 = static_cast< int >(val3);
7593 ecode4 = SWIG_AsVal_int(obj3, &val4);
7594 if (!SWIG_IsOK(ecode4)) {
7595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7596 }
7597 arg4 = static_cast< int >(val4);
7598 {
7599 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 resultobj = SWIG_Py_Void();
7603 return resultobj;
7604fail:
7605 return NULL;
7606}
7607
7608
7609SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7610 PyObject *resultobj = 0;
7611 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7612 wxNativePixelData *arg2 = 0 ;
7613 int arg3 ;
7614 void *argp1 = 0 ;
7615 int res1 = 0 ;
7616 void *argp2 = 0 ;
7617 int res2 = 0 ;
7618 int val3 ;
7619 int ecode3 = 0 ;
7620 PyObject * obj0 = 0 ;
7621 PyObject * obj1 = 0 ;
7622 PyObject * obj2 = 0 ;
7623 char * kwnames[] = {
7624 (char *) "self",(char *) "data",(char *) "x", NULL
7625 };
7626
7627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7631 }
7632 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7634 if (!SWIG_IsOK(res2)) {
7635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7636 }
7637 if (!argp2) {
7638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7639 }
7640 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7641 ecode3 = SWIG_AsVal_int(obj2, &val3);
7642 if (!SWIG_IsOK(ecode3)) {
7643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7644 }
7645 arg3 = static_cast< int >(val3);
7646 {
7647 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 }
7650 resultobj = SWIG_Py_Void();
7651 return resultobj;
7652fail:
7653 return NULL;
7654}
7655
7656
7657SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7658 PyObject *resultobj = 0;
7659 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7660 wxNativePixelData *arg2 = 0 ;
7661 int arg3 ;
7662 void *argp1 = 0 ;
7663 int res1 = 0 ;
7664 void *argp2 = 0 ;
7665 int res2 = 0 ;
7666 int val3 ;
7667 int ecode3 = 0 ;
7668 PyObject * obj0 = 0 ;
7669 PyObject * obj1 = 0 ;
7670 PyObject * obj2 = 0 ;
7671 char * kwnames[] = {
7672 (char *) "self",(char *) "data",(char *) "y", NULL
7673 };
7674
7675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7677 if (!SWIG_IsOK(res1)) {
7678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7679 }
7680 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7682 if (!SWIG_IsOK(res2)) {
7683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7684 }
7685 if (!argp2) {
7686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7687 }
7688 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7689 ecode3 = SWIG_AsVal_int(obj2, &val3);
7690 if (!SWIG_IsOK(ecode3)) {
7691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7692 }
7693 arg3 = static_cast< int >(val3);
7694 {
7695 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 resultobj = SWIG_Py_Void();
7699 return resultobj;
7700fail:
7701 return NULL;
7702}
7703
7704
7705SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7706 PyObject *resultobj = 0;
7707 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7708 wxNativePixelData *arg2 = 0 ;
7709 int arg3 ;
7710 int arg4 ;
7711 void *argp1 = 0 ;
7712 int res1 = 0 ;
7713 void *argp2 = 0 ;
7714 int res2 = 0 ;
7715 int val3 ;
7716 int ecode3 = 0 ;
7717 int val4 ;
7718 int ecode4 = 0 ;
7719 PyObject * obj0 = 0 ;
7720 PyObject * obj1 = 0 ;
7721 PyObject * obj2 = 0 ;
7722 PyObject * obj3 = 0 ;
7723 char * kwnames[] = {
7724 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7725 };
7726
7727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7729 if (!SWIG_IsOK(res1)) {
7730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7731 }
7732 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7734 if (!SWIG_IsOK(res2)) {
7735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7736 }
7737 if (!argp2) {
7738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7739 }
7740 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7741 ecode3 = SWIG_AsVal_int(obj2, &val3);
7742 if (!SWIG_IsOK(ecode3)) {
7743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7744 }
7745 arg3 = static_cast< int >(val3);
7746 ecode4 = SWIG_AsVal_int(obj3, &val4);
7747 if (!SWIG_IsOK(ecode4)) {
7748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7749 }
7750 arg4 = static_cast< int >(val4);
7751 {
7752 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7763 PyObject *resultobj = 0;
7764 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7765 byte arg2 ;
7766 byte arg3 ;
7767 byte arg4 ;
7768 void *argp1 = 0 ;
7769 int res1 = 0 ;
7770 unsigned char val2 ;
7771 int ecode2 = 0 ;
7772 unsigned char val3 ;
7773 int ecode3 = 0 ;
7774 unsigned char val4 ;
7775 int ecode4 = 0 ;
7776 PyObject * obj0 = 0 ;
7777 PyObject * obj1 = 0 ;
7778 PyObject * obj2 = 0 ;
7779 PyObject * obj3 = 0 ;
7780 char * kwnames[] = {
7781 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7782 };
7783
7784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7786 if (!SWIG_IsOK(res1)) {
7787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7788 }
7789 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7790 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7791 if (!SWIG_IsOK(ecode2)) {
7792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7793 }
7794 arg2 = static_cast< byte >(val2);
7795 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7796 if (!SWIG_IsOK(ecode3)) {
7797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7798 }
7799 arg3 = static_cast< byte >(val3);
7800 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7801 if (!SWIG_IsOK(ecode4)) {
7802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7803 }
7804 arg4 = static_cast< byte >(val4);
7805 {
7806 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7807 if (PyErr_Occurred()) SWIG_fail;
7808 }
7809 resultobj = SWIG_Py_Void();
7810 return resultobj;
7811fail:
7812 return NULL;
7813}
7814
7815
7816SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7817 PyObject *resultobj = 0;
7818 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7819 PyObject *result = 0 ;
7820 void *argp1 = 0 ;
7821 int res1 = 0 ;
7822 PyObject *swig_obj[1] ;
7823
7824 if (!args) SWIG_fail;
7825 swig_obj[0] = args;
7826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7827 if (!SWIG_IsOK(res1)) {
7828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7829 }
7830 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7831 {
7832 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = result;
7836 return resultobj;
7837fail:
7838 return NULL;
7839}
7840
7841
7842SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7843 PyObject *obj;
7844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7845 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7846 return SWIG_Py_Void();
7847}
7848
7849SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 return SWIG_Python_InitShadowInstance(args);
7851}
7852
7853SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7854 PyObject *resultobj = 0;
7855 wxBitmap *arg1 = 0 ;
7856 wxAlphaPixelData *result = 0 ;
7857 void *argp1 = 0 ;
7858 int res1 = 0 ;
7859
7860 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7862 if (!SWIG_IsOK(res1)) {
7863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7864 }
7865 if (!argp1) {
7866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7867 }
7868 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7869 {
7870 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7871 if (PyErr_Occurred()) SWIG_fail;
7872 }
7873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7874 return resultobj;
7875fail:
7876 return NULL;
7877}
7878
7879
7880SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7881 PyObject *resultobj = 0;
7882 wxBitmap *arg1 = 0 ;
7883 wxRect *arg2 = 0 ;
7884 wxAlphaPixelData *result = 0 ;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 wxRect temp2 ;
7888
7889 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7891 if (!SWIG_IsOK(res1)) {
7892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7893 }
7894 if (!argp1) {
7895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7896 }
7897 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7898 {
7899 arg2 = &temp2;
7900 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7901 }
7902 {
7903 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7907 return resultobj;
7908fail:
7909 return NULL;
7910}
7911
7912
7913SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7914 PyObject *resultobj = 0;
7915 wxBitmap *arg1 = 0 ;
7916 wxPoint *arg2 = 0 ;
7917 wxSize *arg3 = 0 ;
7918 wxAlphaPixelData *result = 0 ;
7919 void *argp1 = 0 ;
7920 int res1 = 0 ;
7921 wxPoint temp2 ;
7922 wxSize temp3 ;
7923
7924 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7926 if (!SWIG_IsOK(res1)) {
7927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7928 }
7929 if (!argp1) {
7930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7931 }
7932 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7933 {
7934 arg2 = &temp2;
7935 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7936 }
7937 {
7938 arg3 = &temp3;
7939 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7940 }
7941 {
7942 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7946 return resultobj;
7947fail:
7948 return NULL;
7949}
7950
7951
7952SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7953 int argc;
7954 PyObject *argv[4];
7955
7956 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7957 --argc;
7958 if (argc == 1) {
7959 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7960 }
7961 if (argc == 2) {
7962 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7963 }
7964 if (argc == 3) {
7965 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7966 }
7967
7968fail:
7969 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7970 return NULL;
7971}
7972
7973
7974SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7975 PyObject *resultobj = 0;
7976 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7977 void *argp1 = 0 ;
7978 int res1 = 0 ;
7979 PyObject *swig_obj[1] ;
7980
7981 if (!args) SWIG_fail;
7982 swig_obj[0] = args;
7983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7984 if (!SWIG_IsOK(res1)) {
7985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7986 }
7987 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7988 {
7989 delete arg1;
7990
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 resultobj = SWIG_Py_Void();
7994 return resultobj;
7995fail:
7996 return NULL;
7997}
7998
7999
8000SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8003 wxAlphaPixelData_Accessor result;
8004 void *argp1 = 0 ;
8005 int res1 = 0 ;
8006 PyObject *swig_obj[1] ;
8007
8008 if (!args) SWIG_fail;
8009 swig_obj[0] = args;
8010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8013 }
8014 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8015 {
8016 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8017 if (PyErr_Occurred()) SWIG_fail;
8018 }
8019 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8020 return resultobj;
8021fail:
8022 return NULL;
8023}
8024
8025
8026SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8027 PyObject *resultobj = 0;
8028 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8029 void *argp1 = 0 ;
8030 int res1 = 0 ;
8031 PyObject *swig_obj[1] ;
8032
8033 if (!args) SWIG_fail;
8034 swig_obj[0] = args;
8035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8036 if (!SWIG_IsOK(res1)) {
8037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8038 }
8039 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8040 {
8041 (arg1)->UseAlpha();
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 resultobj = SWIG_Py_Void();
8045 return resultobj;
8046fail:
8047 return NULL;
8048}
8049
8050
8051SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8052 PyObject *resultobj = 0;
8053 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8054 bool result;
8055 void *argp1 = 0 ;
8056 int res1 = 0 ;
8057 PyObject *swig_obj[1] ;
8058
8059 if (!args) SWIG_fail;
8060 swig_obj[0] = args;
8061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8062 if (!SWIG_IsOK(res1)) {
8063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8064 }
8065 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8066 {
8067 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 {
8071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8072 }
8073 return resultobj;
8074fail:
8075 return NULL;
8076}
8077
8078
8079SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8080 PyObject *obj;
8081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8082 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8083 return SWIG_Py_Void();
8084}
8085
8086SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8087 return SWIG_Python_InitShadowInstance(args);
8088}
8089
8090SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8091 PyObject *resultobj = 0;
8092 wxAlphaPixelData *arg1 = 0 ;
8093 wxAlphaPixelData_Accessor *result = 0 ;
8094 void *argp1 = 0 ;
8095 int res1 = 0 ;
8096
8097 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8099 if (!SWIG_IsOK(res1)) {
8100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8101 }
8102 if (!argp1) {
8103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8104 }
8105 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8106 {
8107 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8111 return resultobj;
8112fail:
8113 return NULL;
8114}
8115
8116
8117SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8118 PyObject *resultobj = 0;
8119 wxBitmap *arg1 = 0 ;
8120 wxAlphaPixelData *arg2 = 0 ;
8121 wxAlphaPixelData_Accessor *result = 0 ;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 void *argp2 = 0 ;
8125 int res2 = 0 ;
8126
8127 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8131 }
8132 if (!argp1) {
8133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8134 }
8135 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8136 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8137 if (!SWIG_IsOK(res2)) {
8138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8139 }
8140 if (!argp2) {
8141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8142 }
8143 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8144 {
8145 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8149 return resultobj;
8150fail:
8151 return NULL;
8152}
8153
8154
8155SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8156 PyObject *resultobj = 0;
8157 wxAlphaPixelData_Accessor *result = 0 ;
8158
8159 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8160 {
8161 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8165 return resultobj;
8166fail:
8167 return NULL;
8168}
8169
8170
8171SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8172 int argc;
8173 PyObject *argv[3];
8174
8175 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8176 --argc;
8177 if (argc == 0) {
8178 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8179 }
8180 if (argc == 1) {
8181 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8182 }
8183 if (argc == 2) {
8184 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8185 }
8186
8187fail:
8188 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8189 return NULL;
8190}
8191
8192
8193SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8194 PyObject *resultobj = 0;
8195 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8196 void *argp1 = 0 ;
8197 int res1 = 0 ;
8198 PyObject *swig_obj[1] ;
8199
8200 if (!args) SWIG_fail;
8201 swig_obj[0] = args;
8202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8203 if (!SWIG_IsOK(res1)) {
8204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8205 }
8206 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8207 {
8208 delete arg1;
8209
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_Py_Void();
8213 return resultobj;
8214fail:
8215 return NULL;
8216}
8217
8218
8219SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8220 PyObject *resultobj = 0;
8221 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8222 wxAlphaPixelData *arg2 = 0 ;
8223 void *argp1 = 0 ;
8224 int res1 = 0 ;
8225 void *argp2 = 0 ;
8226 int res2 = 0 ;
8227 PyObject * obj0 = 0 ;
8228 PyObject * obj1 = 0 ;
8229 char * kwnames[] = {
8230 (char *) "self",(char *) "data", NULL
8231 };
8232
8233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8235 if (!SWIG_IsOK(res1)) {
8236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8237 }
8238 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8240 if (!SWIG_IsOK(res2)) {
8241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8242 }
8243 if (!argp2) {
8244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8245 }
8246 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8247 {
8248 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_Py_Void();
8252 return resultobj;
8253fail:
8254 return NULL;
8255}
8256
8257
8258SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8259 PyObject *resultobj = 0;
8260 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8261 bool result;
8262 void *argp1 = 0 ;
8263 int res1 = 0 ;
8264 PyObject *swig_obj[1] ;
8265
8266 if (!args) SWIG_fail;
8267 swig_obj[0] = args;
8268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8269 if (!SWIG_IsOK(res1)) {
8270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8271 }
8272 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8273 {
8274 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 {
8278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8279 }
8280 return resultobj;
8281fail:
8282 return NULL;
8283}
8284
8285
8286SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8287 PyObject *resultobj = 0;
8288 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8289 void *argp1 = 0 ;
8290 int res1 = 0 ;
8291 PyObject *swig_obj[1] ;
8292
8293 if (!args) SWIG_fail;
8294 swig_obj[0] = args;
8295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8296 if (!SWIG_IsOK(res1)) {
8297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8298 }
8299 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8300 {
8301 wxAlphaPixelData_Accessor_nextPixel(arg1);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_Py_Void();
8305 return resultobj;
8306fail:
8307 return NULL;
8308}
8309
8310
8311SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj = 0;
8313 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8314 wxAlphaPixelData *arg2 = 0 ;
8315 int arg3 ;
8316 int arg4 ;
8317 void *argp1 = 0 ;
8318 int res1 = 0 ;
8319 void *argp2 = 0 ;
8320 int res2 = 0 ;
8321 int val3 ;
8322 int ecode3 = 0 ;
8323 int val4 ;
8324 int ecode4 = 0 ;
8325 PyObject * obj0 = 0 ;
8326 PyObject * obj1 = 0 ;
8327 PyObject * obj2 = 0 ;
8328 PyObject * obj3 = 0 ;
8329 char * kwnames[] = {
8330 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8331 };
8332
8333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8335 if (!SWIG_IsOK(res1)) {
8336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8337 }
8338 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8340 if (!SWIG_IsOK(res2)) {
8341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8342 }
8343 if (!argp2) {
8344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8345 }
8346 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8347 ecode3 = SWIG_AsVal_int(obj2, &val3);
8348 if (!SWIG_IsOK(ecode3)) {
8349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8350 }
8351 arg3 = static_cast< int >(val3);
8352 ecode4 = SWIG_AsVal_int(obj3, &val4);
8353 if (!SWIG_IsOK(ecode4)) {
8354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8355 }
8356 arg4 = static_cast< int >(val4);
8357 {
8358 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 resultobj = SWIG_Py_Void();
8362 return resultobj;
8363fail:
8364 return NULL;
8365}
8366
8367
8368SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj = 0;
8370 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8371 wxAlphaPixelData *arg2 = 0 ;
8372 int arg3 ;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 void *argp2 = 0 ;
8376 int res2 = 0 ;
8377 int val3 ;
8378 int ecode3 = 0 ;
8379 PyObject * obj0 = 0 ;
8380 PyObject * obj1 = 0 ;
8381 PyObject * obj2 = 0 ;
8382 char * kwnames[] = {
8383 (char *) "self",(char *) "data",(char *) "x", NULL
8384 };
8385
8386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8388 if (!SWIG_IsOK(res1)) {
8389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8390 }
8391 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8393 if (!SWIG_IsOK(res2)) {
8394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8395 }
8396 if (!argp2) {
8397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8398 }
8399 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8400 ecode3 = SWIG_AsVal_int(obj2, &val3);
8401 if (!SWIG_IsOK(ecode3)) {
8402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8403 }
8404 arg3 = static_cast< int >(val3);
8405 {
8406 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 resultobj = SWIG_Py_Void();
8410 return resultobj;
8411fail:
8412 return NULL;
8413}
8414
8415
8416SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8417 PyObject *resultobj = 0;
8418 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8419 wxAlphaPixelData *arg2 = 0 ;
8420 int arg3 ;
8421 void *argp1 = 0 ;
8422 int res1 = 0 ;
8423 void *argp2 = 0 ;
8424 int res2 = 0 ;
8425 int val3 ;
8426 int ecode3 = 0 ;
8427 PyObject * obj0 = 0 ;
8428 PyObject * obj1 = 0 ;
8429 PyObject * obj2 = 0 ;
8430 char * kwnames[] = {
8431 (char *) "self",(char *) "data",(char *) "y", NULL
8432 };
8433
8434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8436 if (!SWIG_IsOK(res1)) {
8437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8438 }
8439 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8441 if (!SWIG_IsOK(res2)) {
8442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8443 }
8444 if (!argp2) {
8445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8446 }
8447 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8448 ecode3 = SWIG_AsVal_int(obj2, &val3);
8449 if (!SWIG_IsOK(ecode3)) {
8450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8451 }
8452 arg3 = static_cast< int >(val3);
8453 {
8454 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8455 if (PyErr_Occurred()) SWIG_fail;
8456 }
8457 resultobj = SWIG_Py_Void();
8458 return resultobj;
8459fail:
8460 return NULL;
8461}
8462
8463
8464SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8465 PyObject *resultobj = 0;
8466 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8467 wxAlphaPixelData *arg2 = 0 ;
8468 int arg3 ;
8469 int arg4 ;
8470 void *argp1 = 0 ;
8471 int res1 = 0 ;
8472 void *argp2 = 0 ;
8473 int res2 = 0 ;
8474 int val3 ;
8475 int ecode3 = 0 ;
8476 int val4 ;
8477 int ecode4 = 0 ;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 PyObject * obj2 = 0 ;
8481 PyObject * obj3 = 0 ;
8482 char * kwnames[] = {
8483 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8484 };
8485
8486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8488 if (!SWIG_IsOK(res1)) {
8489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8490 }
8491 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8493 if (!SWIG_IsOK(res2)) {
8494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8495 }
8496 if (!argp2) {
8497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8498 }
8499 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8500 ecode3 = SWIG_AsVal_int(obj2, &val3);
8501 if (!SWIG_IsOK(ecode3)) {
8502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8503 }
8504 arg3 = static_cast< int >(val3);
8505 ecode4 = SWIG_AsVal_int(obj3, &val4);
8506 if (!SWIG_IsOK(ecode4)) {
8507 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8508 }
8509 arg4 = static_cast< int >(val4);
8510 {
8511 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj = 0;
8523 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8524 byte arg2 ;
8525 byte arg3 ;
8526 byte arg4 ;
8527 byte arg5 ;
8528 void *argp1 = 0 ;
8529 int res1 = 0 ;
8530 unsigned char val2 ;
8531 int ecode2 = 0 ;
8532 unsigned char val3 ;
8533 int ecode3 = 0 ;
8534 unsigned char val4 ;
8535 int ecode4 = 0 ;
8536 unsigned char val5 ;
8537 int ecode5 = 0 ;
8538 PyObject * obj0 = 0 ;
8539 PyObject * obj1 = 0 ;
8540 PyObject * obj2 = 0 ;
8541 PyObject * obj3 = 0 ;
8542 PyObject * obj4 = 0 ;
8543 char * kwnames[] = {
8544 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8545 };
8546
8547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8549 if (!SWIG_IsOK(res1)) {
8550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8551 }
8552 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8553 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8554 if (!SWIG_IsOK(ecode2)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8556 }
8557 arg2 = static_cast< byte >(val2);
8558 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8559 if (!SWIG_IsOK(ecode3)) {
8560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8561 }
8562 arg3 = static_cast< byte >(val3);
8563 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8564 if (!SWIG_IsOK(ecode4)) {
8565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8566 }
8567 arg4 = static_cast< byte >(val4);
8568 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8569 if (!SWIG_IsOK(ecode5)) {
8570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8571 }
8572 arg5 = static_cast< byte >(val5);
8573 {
8574 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8575 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8576 }
fc46b7f3 8577 resultobj = SWIG_Py_Void();
0085ce49
RD
8578 return resultobj;
8579fail:
8580 return NULL;
8581}
8582
8583
fc46b7f3 8584SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8585 PyObject *resultobj = 0;
fc46b7f3
RD
8586 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8587 PyObject *result = 0 ;
0085ce49
RD
8588 void *argp1 = 0 ;
8589 int res1 = 0 ;
fc46b7f3 8590 PyObject *swig_obj[1] ;
0085ce49 8591
fc46b7f3
RD
8592 if (!args) SWIG_fail;
8593 swig_obj[0] = args;
8594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8595 if (!SWIG_IsOK(res1)) {
fc46b7f3 8596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8597 }
fc46b7f3 8598 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8599 {
fc46b7f3 8600 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
fc46b7f3 8603 resultobj = result;
0085ce49
RD
8604 return resultobj;
8605fail:
8606 return NULL;
d14a1e28
RD
8607}
8608
8609
fc46b7f3 8610SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8611 PyObject *obj;
8612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8613 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8614 return SWIG_Py_Void();
b2df227b
RD
8615}
8616
fc46b7f3 8617SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8618 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8619}
8620
0085ce49
RD
8621SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8622 PyObject *resultobj = 0;
8623 wxBitmap *arg1 = 0 ;
8624 wxColour const &arg2_defvalue = wxNullColour ;
8625 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8626 wxMask *result = 0 ;
8627 void *argp1 = 0 ;
8628 int res1 = 0 ;
8629 wxColour temp2 ;
8630 PyObject * obj0 = 0 ;
8631 PyObject * obj1 = 0 ;
8632 char * kwnames[] = {
8633 (char *) "bitmap",(char *) "colour", NULL
8634 };
8635
8636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8637 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8638 if (!SWIG_IsOK(res1)) {
8639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8640 }
8641 if (!argp1) {
8642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8643 }
8644 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8645 if (obj1) {
d14a1e28 8646 {
0085ce49
RD
8647 arg2 = &temp2;
8648 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8649 }
0085ce49
RD
8650 }
8651 {
8652 if (!wxPyCheckForApp()) SWIG_fail;
8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
8654 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8659 return resultobj;
8660fail:
8661 return NULL;
d14a1e28
RD
8662}
8663
8664
0085ce49
RD
8665SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8666 PyObject *resultobj = 0;
8667 wxMask *arg1 = (wxMask *) 0 ;
8668 void *argp1 = 0 ;
8669 int res1 = 0 ;
8670 PyObject *swig_obj[1] ;
8671
8672 if (!args) SWIG_fail;
8673 swig_obj[0] = args;
8674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8675 if (!SWIG_IsOK(res1)) {
8676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8677 }
8678 arg1 = reinterpret_cast< wxMask * >(argp1);
8679 {
0085ce49 8680 delete arg1;
d14a1e28 8681
0085ce49
RD
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 resultobj = SWIG_Py_Void();
8685 return resultobj;
8686fail:
8687 return NULL;
8688}
8689
8690
8691SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8692 PyObject *obj;
8693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8694 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8695 return SWIG_Py_Void();
8696}
8697
8698SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8699 return SWIG_Python_InitShadowInstance(args);
8700}
8701
8702SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8703 PyObject *resultobj = 0;
8704 wxString *arg1 = 0 ;
8705 wxBitmapType arg2 ;
8706 int arg3 = (int) -1 ;
8707 int arg4 = (int) -1 ;
8708 wxIcon *result = 0 ;
8709 bool temp1 = false ;
8710 int val2 ;
8711 int ecode2 = 0 ;
8712 int val3 ;
8713 int ecode3 = 0 ;
8714 int val4 ;
8715 int ecode4 = 0 ;
8716 PyObject * obj0 = 0 ;
8717 PyObject * obj1 = 0 ;
8718 PyObject * obj2 = 0 ;
8719 PyObject * obj3 = 0 ;
8720 char * kwnames[] = {
8721 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8722 };
8723
8724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8725 {
8726 arg1 = wxString_in_helper(obj0);
8727 if (arg1 == NULL) SWIG_fail;
8728 temp1 = true;
8729 }
8730 ecode2 = SWIG_AsVal_int(obj1, &val2);
8731 if (!SWIG_IsOK(ecode2)) {
8732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8733 }
8734 arg2 = static_cast< wxBitmapType >(val2);
8735 if (obj2) {
8736 ecode3 = SWIG_AsVal_int(obj2, &val3);
8737 if (!SWIG_IsOK(ecode3)) {
8738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8739 }
8740 arg3 = static_cast< int >(val3);
8741 }
8742 if (obj3) {
8743 ecode4 = SWIG_AsVal_int(obj3, &val4);
8744 if (!SWIG_IsOK(ecode4)) {
8745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8746 }
8747 arg4 = static_cast< int >(val4);
8748 }
8749 {
8750 if (!wxPyCheckForApp()) SWIG_fail;
8751 PyThreadState* __tstate = wxPyBeginAllowThreads();
8752 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8753 wxPyEndAllowThreads(__tstate);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8757 {
8758 if (temp1)
8759 delete arg1;
8760 }
8761 return resultobj;
8762fail:
8763 {
8764 if (temp1)
8765 delete arg1;
8766 }
8767 return NULL;
d14a1e28
RD
8768}
8769
8770
0085ce49
RD
8771SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8772 PyObject *resultobj = 0;
8773 wxIcon *arg1 = (wxIcon *) 0 ;
8774 void *argp1 = 0 ;
8775 int res1 = 0 ;
8776 PyObject *swig_obj[1] ;
8777
8778 if (!args) SWIG_fail;
8779 swig_obj[0] = args;
8780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8781 if (!SWIG_IsOK(res1)) {
8782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8783 }
8784 arg1 = reinterpret_cast< wxIcon * >(argp1);
8785 {
8786 PyThreadState* __tstate = wxPyBeginAllowThreads();
8787 delete arg1;
d14a1e28 8788
0085ce49
RD
8789 wxPyEndAllowThreads(__tstate);
8790 if (PyErr_Occurred()) SWIG_fail;
8791 }
8792 resultobj = SWIG_Py_Void();
8793 return resultobj;
8794fail:
8795 return NULL;
d14a1e28
RD
8796}
8797
8798
0085ce49
RD
8799SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8800 PyObject *resultobj = 0;
8801 wxIcon *result = 0 ;
8802
8803 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8804 {
8805 if (!wxPyCheckForApp()) SWIG_fail;
8806 PyThreadState* __tstate = wxPyBeginAllowThreads();
8807 result = (wxIcon *)new wxIcon();
8808 wxPyEndAllowThreads(__tstate);
8809 if (PyErr_Occurred()) SWIG_fail;
8810 }
8811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8812 return resultobj;
8813fail:
8814 return NULL;
8815}
8816
8817
8818SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8819 PyObject *resultobj = 0;
8820 wxIconLocation *arg1 = 0 ;
8821 wxIcon *result = 0 ;
8822 void *argp1 = 0 ;
8823 int res1 = 0 ;
8824 PyObject * obj0 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "loc", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8833 }
8834 if (!argp1) {
8835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8836 }
8837 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8838 {
8839 if (!wxPyCheckForApp()) SWIG_fail;
8840 PyThreadState* __tstate = wxPyBeginAllowThreads();
8841 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8842 wxPyEndAllowThreads(__tstate);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8846 return resultobj;
8847fail:
8848 return NULL;
8849}
8850
8851
8852SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8853 PyObject *resultobj = 0;
8854 wxBitmap *arg1 = 0 ;
8855 wxIcon *result = 0 ;
8856 void *argp1 = 0 ;
8857 int res1 = 0 ;
8858 PyObject * obj0 = 0 ;
8859 char * kwnames[] = {
8860 (char *) "bmp", NULL
8861 };
8862
8863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8864 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8865 if (!SWIG_IsOK(res1)) {
8866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8867 }
8868 if (!argp1) {
8869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8870 }
8871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8872 {
8873 if (!wxPyCheckForApp()) SWIG_fail;
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
8875 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8876 wxPyEndAllowThreads(__tstate);
8877 if (PyErr_Occurred()) SWIG_fail;
8878 }
8879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8880 return resultobj;
8881fail:
8882 return NULL;
d14a1e28
RD
8883}
8884
8885
0085ce49
RD
8886SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8887 PyObject *resultobj = 0;
8888 PyObject *arg1 = (PyObject *) 0 ;
8889 wxIcon *result = 0 ;
8890 PyObject * obj0 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "listOfStrings", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8896 arg1 = obj0;
8897 {
8898 if (!wxPyCheckForApp()) SWIG_fail;
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (wxIcon *)new_wxIcon(arg1);
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8905 return resultobj;
8906fail:
8907 return NULL;
8908}
8909
8910
8911SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8912 PyObject *resultobj = 0;
8913 wxIcon *arg1 = (wxIcon *) 0 ;
8914 wxString *arg2 = 0 ;
8915 wxBitmapType arg3 ;
8916 bool result;
8917 void *argp1 = 0 ;
8918 int res1 = 0 ;
8919 bool temp2 = false ;
8920 int val3 ;
8921 int ecode3 = 0 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 PyObject * obj2 = 0 ;
8925 char * kwnames[] = {
8926 (char *) "self",(char *) "name",(char *) "type", NULL
8927 };
8928
8929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8931 if (!SWIG_IsOK(res1)) {
8932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8933 }
8934 arg1 = reinterpret_cast< wxIcon * >(argp1);
8935 {
8936 arg2 = wxString_in_helper(obj1);
8937 if (arg2 == NULL) SWIG_fail;
8938 temp2 = true;
8939 }
8940 ecode3 = SWIG_AsVal_int(obj2, &val3);
8941 if (!SWIG_IsOK(ecode3)) {
8942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8943 }
8944 arg3 = static_cast< wxBitmapType >(val3);
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8948 wxPyEndAllowThreads(__tstate);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 }
8951 {
8952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8953 }
8954 {
8955 if (temp2)
8956 delete arg2;
8957 }
8958 return resultobj;
8959fail:
8960 {
8961 if (temp2)
8962 delete arg2;
8963 }
8964 return NULL;
d14a1e28
RD
8965}
8966
8967
b39fe951 8968SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8969 PyObject *resultobj = 0;
8970 wxIcon *arg1 = (wxIcon *) 0 ;
8971 bool result;
8972 void *argp1 = 0 ;
8973 int res1 = 0 ;
8974 PyObject *swig_obj[1] ;
8975
8976 if (!args) SWIG_fail;
8977 swig_obj[0] = args;
8978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8979 if (!SWIG_IsOK(res1)) {
b39fe951 8980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
8981 }
8982 arg1 = reinterpret_cast< wxIcon * >(argp1);
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 8985 result = (bool)(arg1)->IsOk();
0085ce49
RD
8986 wxPyEndAllowThreads(__tstate);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 }
8989 {
8990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8991 }
8992 return resultobj;
8993fail:
8994 return NULL;
d14a1e28
RD
8995}
8996
8997
0085ce49
RD
8998SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8999 PyObject *resultobj = 0;
9000 wxIcon *arg1 = (wxIcon *) 0 ;
9001 int result;
9002 void *argp1 = 0 ;
9003 int res1 = 0 ;
9004 PyObject *swig_obj[1] ;
9005
9006 if (!args) SWIG_fail;
9007 swig_obj[0] = args;
9008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9009 if (!SWIG_IsOK(res1)) {
9010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9011 }
9012 arg1 = reinterpret_cast< wxIcon * >(argp1);
9013 {
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 result = (int)(arg1)->GetWidth();
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 resultobj = SWIG_From_int(static_cast< int >(result));
9020 return resultobj;
9021fail:
9022 return NULL;
d3b6e4ff
RD
9023}
9024
9025
0085ce49
RD
9026SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9027 PyObject *resultobj = 0;
9028 wxIcon *arg1 = (wxIcon *) 0 ;
9029 int result;
9030 void *argp1 = 0 ;
9031 int res1 = 0 ;
9032 PyObject *swig_obj[1] ;
9033
9034 if (!args) SWIG_fail;
9035 swig_obj[0] = args;
9036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9037 if (!SWIG_IsOK(res1)) {
9038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9039 }
9040 arg1 = reinterpret_cast< wxIcon * >(argp1);
9041 {
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 result = (int)(arg1)->GetHeight();
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 resultobj = SWIG_From_int(static_cast< int >(result));
9048 return resultobj;
9049fail:
9050 return NULL;
d14a1e28
RD
9051}
9052
9053
0085ce49
RD
9054SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9055 PyObject *resultobj = 0;
9056 wxIcon *arg1 = (wxIcon *) 0 ;
9057 int result;
9058 void *argp1 = 0 ;
9059 int res1 = 0 ;
9060 PyObject *swig_obj[1] ;
9061
9062 if (!args) SWIG_fail;
9063 swig_obj[0] = args;
9064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9065 if (!SWIG_IsOK(res1)) {
9066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9067 }
9068 arg1 = reinterpret_cast< wxIcon * >(argp1);
9069 {
9070 PyThreadState* __tstate = wxPyBeginAllowThreads();
9071 result = (int)(arg1)->GetDepth();
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) SWIG_fail;
9074 }
9075 resultobj = SWIG_From_int(static_cast< int >(result));
9076 return resultobj;
9077fail:
9078 return NULL;
9079}
9080
9081
9082SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj = 0;
9084 wxIcon *arg1 = (wxIcon *) 0 ;
9085 int arg2 ;
9086 void *argp1 = 0 ;
9087 int res1 = 0 ;
9088 int val2 ;
9089 int ecode2 = 0 ;
9090 PyObject * obj0 = 0 ;
9091 PyObject * obj1 = 0 ;
9092 char * kwnames[] = {
9093 (char *) "self",(char *) "w", NULL
9094 };
9095
9096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9098 if (!SWIG_IsOK(res1)) {
9099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9100 }
9101 arg1 = reinterpret_cast< wxIcon * >(argp1);
9102 ecode2 = SWIG_AsVal_int(obj1, &val2);
9103 if (!SWIG_IsOK(ecode2)) {
9104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9105 }
9106 arg2 = static_cast< int >(val2);
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 (arg1)->SetWidth(arg2);
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = SWIG_Py_Void();
9114 return resultobj;
9115fail:
9116 return NULL;
9117}
9118
9119
9120SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj = 0;
9122 wxIcon *arg1 = (wxIcon *) 0 ;
9123 int arg2 ;
9124 void *argp1 = 0 ;
9125 int res1 = 0 ;
9126 int val2 ;
9127 int ecode2 = 0 ;
9128 PyObject * obj0 = 0 ;
9129 PyObject * obj1 = 0 ;
9130 char * kwnames[] = {
9131 (char *) "self",(char *) "h", NULL
9132 };
9133
9134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9136 if (!SWIG_IsOK(res1)) {
9137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9138 }
9139 arg1 = reinterpret_cast< wxIcon * >(argp1);
9140 ecode2 = SWIG_AsVal_int(obj1, &val2);
9141 if (!SWIG_IsOK(ecode2)) {
9142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9143 }
9144 arg2 = static_cast< int >(val2);
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 (arg1)->SetHeight(arg2);
9148 wxPyEndAllowThreads(__tstate);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 resultobj = SWIG_Py_Void();
9152 return resultobj;
9153fail:
9154 return NULL;
9155}
9156
9157
9158SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9159 PyObject *resultobj = 0;
9160 wxIcon *arg1 = (wxIcon *) 0 ;
9161 int arg2 ;
9162 void *argp1 = 0 ;
9163 int res1 = 0 ;
9164 int val2 ;
9165 int ecode2 = 0 ;
9166 PyObject * obj0 = 0 ;
9167 PyObject * obj1 = 0 ;
9168 char * kwnames[] = {
9169 (char *) "self",(char *) "d", NULL
9170 };
9171
9172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9174 if (!SWIG_IsOK(res1)) {
9175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9176 }
9177 arg1 = reinterpret_cast< wxIcon * >(argp1);
9178 ecode2 = SWIG_AsVal_int(obj1, &val2);
9179 if (!SWIG_IsOK(ecode2)) {
9180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9181 }
9182 arg2 = static_cast< int >(val2);
9183 {
9184 PyThreadState* __tstate = wxPyBeginAllowThreads();
9185 (arg1)->SetDepth(arg2);
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) SWIG_fail;
9188 }
9189 resultobj = SWIG_Py_Void();
9190 return resultobj;
9191fail:
9192 return NULL;
9193}
9194
9195
9196SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj = 0;
9198 wxIcon *arg1 = (wxIcon *) 0 ;
9199 wxBitmap *arg2 = 0 ;
9200 void *argp1 = 0 ;
9201 int res1 = 0 ;
9202 void *argp2 = 0 ;
9203 int res2 = 0 ;
9204 PyObject * obj0 = 0 ;
9205 PyObject * obj1 = 0 ;
9206 char * kwnames[] = {
9207 (char *) "self",(char *) "bmp", NULL
9208 };
9209
9210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9212 if (!SWIG_IsOK(res1)) {
9213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9214 }
9215 arg1 = reinterpret_cast< wxIcon * >(argp1);
9216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9217 if (!SWIG_IsOK(res2)) {
9218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9219 }
9220 if (!argp2) {
9221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9222 }
9223 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9224 {
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 resultobj = SWIG_Py_Void();
9231 return resultobj;
9232fail:
9233 return NULL;
d14a1e28
RD
9234}
9235
9236
0085ce49
RD
9237SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9238 PyObject *obj;
9239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9240 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9241 return SWIG_Py_Void();
d14a1e28
RD
9242}
9243
0085ce49
RD
9244SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9245 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9246}
9247
0085ce49
RD
9248SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9249 PyObject *resultobj = 0;
9250 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9251 int arg2 = (int) 0 ;
9252 wxIconLocation *result = 0 ;
9253 bool temp1 = false ;
9254 int val2 ;
9255 int ecode2 = 0 ;
9256 PyObject * obj0 = 0 ;
9257 PyObject * obj1 = 0 ;
9258 char * kwnames[] = {
9259 (char *) "filename",(char *) "num", NULL
9260 };
9261
9262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9263 if (obj0) {
b2df227b 9264 {
0085ce49
RD
9265 arg1 = wxString_in_helper(obj0);
9266 if (arg1 == NULL) SWIG_fail;
9267 temp1 = true;
b2df227b 9268 }
0085ce49
RD
9269 }
9270 if (obj1) {
9271 ecode2 = SWIG_AsVal_int(obj1, &val2);
9272 if (!SWIG_IsOK(ecode2)) {
9273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9274 }
9275 arg2 = static_cast< int >(val2);
9276 }
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9280 wxPyEndAllowThreads(__tstate);
9281 if (PyErr_Occurred()) SWIG_fail;
9282 }
9283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9284 {
9285 if (temp1)
9286 delete arg1;
9287 }
9288 return resultobj;
9289fail:
9290 {
9291 if (temp1)
9292 delete arg1;
9293 }
9294 return NULL;
b2df227b
RD
9295}
9296
9297
0085ce49
RD
9298SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9299 PyObject *resultobj = 0;
9300 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9301 void *argp1 = 0 ;
9302 int res1 = 0 ;
9303 PyObject *swig_obj[1] ;
9304
9305 if (!args) SWIG_fail;
9306 swig_obj[0] = args;
9307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9310 }
9311 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 delete arg1;
4276dc52 9315
0085ce49
RD
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 resultobj = SWIG_Py_Void();
9320 return resultobj;
9321fail:
9322 return NULL;
4276dc52
RD
9323}
9324
9325
0085ce49
RD
9326SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9327 PyObject *resultobj = 0;
9328 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9329 bool result;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 PyObject *swig_obj[1] ;
9333
9334 if (!args) SWIG_fail;
9335 swig_obj[0] = args;
9336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9339 }
9340 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 {
9348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9349 }
9350 return resultobj;
9351fail:
9352 return NULL;
9353}
9354
9355
9356SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9357 PyObject *resultobj = 0;
9358 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9359 wxString *arg2 = 0 ;
9360 void *argp1 = 0 ;
9361 int res1 = 0 ;
9362 bool temp2 = false ;
9363 PyObject * obj0 = 0 ;
9364 PyObject * obj1 = 0 ;
9365 char * kwnames[] = {
9366 (char *) "self",(char *) "filename", NULL
9367 };
9368
9369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9371 if (!SWIG_IsOK(res1)) {
9372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9373 }
9374 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9375 {
9376 arg2 = wxString_in_helper(obj1);
9377 if (arg2 == NULL) SWIG_fail;
9378 temp2 = true;
9379 }
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 (arg1)->SetFileName((wxString const &)*arg2);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_Py_Void();
9387 {
9388 if (temp2)
9389 delete arg2;
9390 }
9391 return resultobj;
9392fail:
9393 {
9394 if (temp2)
9395 delete arg2;
9396 }
9397 return NULL;
4276dc52
RD
9398}
9399
9400
0085ce49
RD
9401SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9402 PyObject *resultobj = 0;
9403 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9404 wxString *result = 0 ;
9405 void *argp1 = 0 ;
9406 int res1 = 0 ;
9407 PyObject *swig_obj[1] ;
9408
9409 if (!args) SWIG_fail;
9410 swig_obj[0] = args;
9411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9412 if (!SWIG_IsOK(res1)) {
9413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9414 }
9415 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9416 {
9417 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9418 {
0085ce49
RD
9419 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9420 result = (wxString *) &_result_ref;
093d3ff1 9421 }
0085ce49
RD
9422 wxPyEndAllowThreads(__tstate);
9423 if (PyErr_Occurred()) SWIG_fail;
9424 }
9425 {
9426#if wxUSE_UNICODE
9427 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9428#else
9429 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9430#endif
9431 }
9432 return resultobj;
9433fail:
9434 return NULL;
9435}
9436
9437
9438SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj = 0;
9440 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9441 int arg2 ;
9442 void *argp1 = 0 ;
9443 int res1 = 0 ;
9444 int val2 ;
9445 int ecode2 = 0 ;
9446 PyObject * obj0 = 0 ;
9447 PyObject * obj1 = 0 ;
9448 char * kwnames[] = {
9449 (char *) "self",(char *) "num", NULL
9450 };
9451
9452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9454 if (!SWIG_IsOK(res1)) {
9455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9456 }
9457 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 wxIconLocation_SetIndex(arg1,arg2);
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 resultobj = SWIG_Py_Void();
9470 return resultobj;
9471fail:
9472 return NULL;
d14a1e28
RD
9473}
9474
9475
0085ce49
RD
9476SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9477 PyObject *resultobj = 0;
9478 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9479 int result;
9480 void *argp1 = 0 ;
9481 int res1 = 0 ;
9482 PyObject *swig_obj[1] ;
9483
9484 if (!args) SWIG_fail;
9485 swig_obj[0] = args;
9486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9487 if (!SWIG_IsOK(res1)) {
9488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9489 }
9490 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9491 {
9492 PyThreadState* __tstate = wxPyBeginAllowThreads();
9493 result = (int)wxIconLocation_GetIndex(arg1);
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 resultobj = SWIG_From_int(static_cast< int >(result));
9498 return resultobj;
9499fail:
9500 return NULL;
d14a1e28
RD
9501}
9502
9503
0085ce49
RD
9504SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9505 PyObject *obj;
9506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9507 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9508 return SWIG_Py_Void();
d14a1e28
RD
9509}
9510
0085ce49
RD
9511SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9512 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9513}
9514
0085ce49
RD
9515SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9516 PyObject *resultobj = 0;
9517 wxIconBundle *result = 0 ;
9518
9519 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (wxIconBundle *)new wxIconBundle();
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9527 return resultobj;
9528fail:
9529 return NULL;
9530}
9531
9532
9533SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj = 0;
9535 wxString *arg1 = 0 ;
9536 long arg2 ;
9537 wxIconBundle *result = 0 ;
9538 bool temp1 = false ;
9539 long val2 ;
9540 int ecode2 = 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 char * kwnames[] = {
9544 (char *) "file",(char *) "type", NULL
9545 };
9546
9547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9548 {
9549 arg1 = wxString_in_helper(obj0);
9550 if (arg1 == NULL) SWIG_fail;
9551 temp1 = true;
9552 }
9553 ecode2 = SWIG_AsVal_long(obj1, &val2);
9554 if (!SWIG_IsOK(ecode2)) {
9555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9556 }
9557 arg2 = static_cast< long >(val2);
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9565 {
9566 if (temp1)
9567 delete arg1;
9568 }
9569 return resultobj;
9570fail:
9571 {
9572 if (temp1)
9573 delete arg1;
9574 }
9575 return NULL;
d14a1e28
RD
9576}
9577
9578
0085ce49
RD
9579SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9580 PyObject *resultobj = 0;
9581 wxIcon *arg1 = 0 ;
9582 wxIconBundle *result = 0 ;
9583 void *argp1 = 0 ;
9584 int res1 = 0 ;
9585 PyObject * obj0 = 0 ;
9586 char * kwnames[] = {
9587 (char *) "icon", NULL
9588 };
9589
9590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9591 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9592 if (!SWIG_IsOK(res1)) {
9593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9594 }
9595 if (!argp1) {
9596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9597 }
9598 arg1 = reinterpret_cast< wxIcon * >(argp1);
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9606 return resultobj;
9607fail:
9608 return NULL;
d14a1e28
RD
9609}
9610
9611
0085ce49
RD
9612SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9613 PyObject *resultobj = 0;
9614 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9615 void *argp1 = 0 ;
9616 int res1 = 0 ;
9617 PyObject *swig_obj[1] ;
9618
9619 if (!args) SWIG_fail;
9620 swig_obj[0] = args;
9621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9622 if (!SWIG_IsOK(res1)) {
9623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9624 }
9625 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 delete arg1;
d14a1e28 9629
0085ce49
RD
9630 wxPyEndAllowThreads(__tstate);
9631 if (PyErr_Occurred()) SWIG_fail;
9632 }
9633 resultobj = SWIG_Py_Void();
9634 return resultobj;
9635fail:
9636 return NULL;
9637}
9638
9639
9640SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9641 PyObject *resultobj = 0;
9642 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9643 wxIcon *arg2 = 0 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 void *argp2 = 0 ;
9647 int res2 = 0 ;
9648 PyObject * obj0 = 0 ;
9649 PyObject * obj1 = 0 ;
9650 char * kwnames[] = {
9651 (char *) "self",(char *) "icon", NULL
9652 };
9653
9654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9656 if (!SWIG_IsOK(res1)) {
9657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9658 }
9659 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9661 if (!SWIG_IsOK(res2)) {
9662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9663 }
9664 if (!argp2) {
9665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9666 }
9667 arg2 = reinterpret_cast< wxIcon * >(argp2);
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 (arg1)->AddIcon((wxIcon const &)*arg2);
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 resultobj = SWIG_Py_Void();
9675 return resultobj;
9676fail:
9677 return NULL;
9678}
9679
9680
9681SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj = 0;
9683 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9684 wxString *arg2 = 0 ;
9685 long arg3 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 bool temp2 = false ;
9689 long val3 ;
9690 int ecode3 = 0 ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 PyObject * obj2 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "file",(char *) "type", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9702 }
9703 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9704 {
9705 arg2 = wxString_in_helper(obj1);
9706 if (arg2 == NULL) SWIG_fail;
9707 temp2 = true;
9708 }
9709 ecode3 = SWIG_AsVal_long(obj2, &val3);
9710 if (!SWIG_IsOK(ecode3)) {
9711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9712 }
9713 arg3 = static_cast< long >(val3);
9714 {
9715 PyThreadState* __tstate = wxPyBeginAllowThreads();
9716 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 resultobj = SWIG_Py_Void();
9721 {
9722 if (temp2)
9723 delete arg2;
9724 }
9725 return resultobj;
9726fail:
9727 {
9728 if (temp2)
9729 delete arg2;
9730 }
9731 return NULL;
9732}
9733
9734
9735SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9738 wxSize *arg2 = 0 ;
9739 wxIcon *result = 0 ;
9740 void *argp1 = 0 ;
9741 int res1 = 0 ;
9742 wxSize temp2 ;
9743 PyObject * obj0 = 0 ;
9744 PyObject * obj1 = 0 ;
9745 char * kwnames[] = {
9746 (char *) "self",(char *) "size", NULL
9747 };
9748
9749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9751 if (!SWIG_IsOK(res1)) {
9752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9753 }
9754 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9755 {
9756 arg2 = &temp2;
9757 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9758 }
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 9761 {
0085ce49
RD
9762 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9763 result = (wxIcon *) &_result_ref;
d14a1e28 9764 }
0085ce49
RD
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 {
9769 wxIcon* resultptr = new wxIcon(*result);
9770 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9771 }
9772 return resultobj;
9773fail:
9774 return NULL;
9775}
9776
9777
9778SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9779 PyObject *obj;
9780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9781 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9782 return SWIG_Py_Void();
9783}
9784
9785SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9786 return SWIG_Python_InitShadowInstance(args);
9787}
9788
9789SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9790 PyObject *resultobj = 0;
9791 wxString *arg1 = 0 ;
9792 long arg2 ;
9793 int arg3 = (int) 0 ;
9794 int arg4 = (int) 0 ;
9795 wxCursor *result = 0 ;
9796 bool temp1 = false ;
9797 long val2 ;
9798 int ecode2 = 0 ;
9799 int val3 ;
9800 int ecode3 = 0 ;
9801 int val4 ;
9802 int ecode4 = 0 ;
9803 PyObject * obj0 = 0 ;
9804 PyObject * obj1 = 0 ;
9805 PyObject * obj2 = 0 ;
9806 PyObject * obj3 = 0 ;
9807 char * kwnames[] = {
9808 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9809 };
9810
9811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9812 {
9813 arg1 = wxString_in_helper(obj0);
9814 if (arg1 == NULL) SWIG_fail;
9815 temp1 = true;
9816 }
9817 ecode2 = SWIG_AsVal_long(obj1, &val2);
9818 if (!SWIG_IsOK(ecode2)) {
9819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9820 }
9821 arg2 = static_cast< long >(val2);
9822 if (obj2) {
9823 ecode3 = SWIG_AsVal_int(obj2, &val3);
9824 if (!SWIG_IsOK(ecode3)) {
9825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9826 }
9827 arg3 = static_cast< int >(val3);
9828 }
9829 if (obj3) {
9830 ecode4 = SWIG_AsVal_int(obj3, &val4);
9831 if (!SWIG_IsOK(ecode4)) {
9832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9833 }
9834 arg4 = static_cast< int >(val4);
9835 }
9836 {
9837 if (!wxPyCheckForApp()) SWIG_fail;
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9844 {
9845 if (temp1)
9846 delete arg1;
9847 }
9848 return resultobj;
9849fail:
9850 {
9851 if (temp1)
9852 delete arg1;
9853 }
9854 return NULL;
d14a1e28
RD
9855}
9856
9857
0085ce49
RD
9858SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9859 PyObject *resultobj = 0;
9860 wxCursor *arg1 = (wxCursor *) 0 ;
9861 void *argp1 = 0 ;
9862 int res1 = 0 ;
9863 PyObject *swig_obj[1] ;
9864
9865 if (!args) SWIG_fail;
9866 swig_obj[0] = args;
9867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9868 if (!SWIG_IsOK(res1)) {
9869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9870 }
9871 arg1 = reinterpret_cast< wxCursor * >(argp1);
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 delete arg1;
093d3ff1 9875
0085ce49
RD
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 resultobj = SWIG_Py_Void();
9880 return resultobj;
9881fail:
9882 return NULL;
9883}
9884
9885
9886SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj = 0;
9888 int arg1 ;
9889 wxCursor *result = 0 ;
9890 int val1 ;
9891 int ecode1 = 0 ;
9892 PyObject * obj0 = 0 ;
9893 char * kwnames[] = {
9894 (char *) "id", NULL
9895 };
9896
9897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9898 ecode1 = SWIG_AsVal_int(obj0, &val1);
9899 if (!SWIG_IsOK(ecode1)) {
9900 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9901 }
9902 arg1 = static_cast< int >(val1);
9903 {
9904 if (!wxPyCheckForApp()) SWIG_fail;
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = (wxCursor *)new wxCursor(arg1);
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9911 return resultobj;
9912fail:
9913 return NULL;
9914}
9915
9916
9917SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj = 0;
9919 wxImage *arg1 = 0 ;
9920 wxCursor *result = 0 ;
9921 void *argp1 = 0 ;
9922 int res1 = 0 ;
9923 PyObject * obj0 = 0 ;
9924 char * kwnames[] = {
9925 (char *) "image", NULL
9926 };
9927
9928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9929 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9930 if (!SWIG_IsOK(res1)) {
9931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9932 }
9933 if (!argp1) {
9934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9935 }
9936 arg1 = reinterpret_cast< wxImage * >(argp1);
9937 {
9938 if (!wxPyCheckForApp()) SWIG_fail;
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9945 return resultobj;
9946fail:
9947 return NULL;
093d3ff1
RD
9948}
9949
9950
b39fe951 9951SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9952 PyObject *resultobj = 0;
9953 wxCursor *arg1 = (wxCursor *) 0 ;
9954 bool result;
9955 void *argp1 = 0 ;
9956 int res1 = 0 ;
9957 PyObject *swig_obj[1] ;
9958
9959 if (!args) SWIG_fail;
9960 swig_obj[0] = args;
9961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9962 if (!SWIG_IsOK(res1)) {
b39fe951 9963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
9964 }
9965 arg1 = reinterpret_cast< wxCursor * >(argp1);
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9968 result = (bool)(arg1)->IsOk();
0085ce49
RD
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 {
9973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9974 }
9975 return resultobj;
9976fail:
9977 return NULL;
9978}
9979
9980
9981SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9982 PyObject *obj;
9983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9984 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9985 return SWIG_Py_Void();
9986}
9987
9988SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9989 return SWIG_Python_InitShadowInstance(args);
9990}
9991
9992SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj = 0;
9994 int arg1 = (int) 0 ;
9995 int arg2 = (int) 0 ;
9996 int arg3 = (int) 0 ;
9997 int arg4 = (int) 0 ;
9998 wxRegion *result = 0 ;
9999 int val1 ;
10000 int ecode1 = 0 ;
10001 int val2 ;
10002 int ecode2 = 0 ;
10003 int val3 ;
10004 int ecode3 = 0 ;
10005 int val4 ;
10006 int ecode4 = 0 ;
10007 PyObject * obj0 = 0 ;
10008 PyObject * obj1 = 0 ;
10009 PyObject * obj2 = 0 ;
10010 PyObject * obj3 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10016 if (obj0) {
10017 ecode1 = SWIG_AsVal_int(obj0, &val1);
10018 if (!SWIG_IsOK(ecode1)) {
10019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10020 }
10021 arg1 = static_cast< int >(val1);
10022 }
10023 if (obj1) {
10024 ecode2 = SWIG_AsVal_int(obj1, &val2);
10025 if (!SWIG_IsOK(ecode2)) {
10026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10027 }
10028 arg2 = static_cast< int >(val2);
10029 }
10030 if (obj2) {
10031 ecode3 = SWIG_AsVal_int(obj2, &val3);
10032 if (!SWIG_IsOK(ecode3)) {
10033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10034 }
10035 arg3 = static_cast< int >(val3);
10036 }
10037 if (obj3) {
10038 ecode4 = SWIG_AsVal_int(obj3, &val4);
10039 if (!SWIG_IsOK(ecode4)) {
10040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10041 }
10042 arg4 = static_cast< int >(val4);
10043 }
10044 {
10045 if (!wxPyCheckForApp()) SWIG_fail;
10046 PyThreadState* __tstate = wxPyBeginAllowThreads();
10047 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10052 return resultobj;
10053fail:
10054 return NULL;
10055}
10056
10057
10058SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj = 0;
10060 wxBitmap *arg1 = 0 ;
10061 wxRegion *result = 0 ;
10062 void *argp1 = 0 ;
10063 int res1 = 0 ;
10064 PyObject * obj0 = 0 ;
10065 char * kwnames[] = {
10066 (char *) "bmp", NULL
10067 };
10068
10069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10070 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10071 if (!SWIG_IsOK(res1)) {
10072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10073 }
10074 if (!argp1) {
10075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10076 }
10077 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10078 {
10079 if (!wxPyCheckForApp()) SWIG_fail;
10080 PyThreadState* __tstate = wxPyBeginAllowThreads();
10081 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 }
10085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10086 return resultobj;
10087fail:
10088 return NULL;
10089}
10090
10091
10092SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj = 0;
10094 wxBitmap *arg1 = 0 ;
10095 wxColour *arg2 = 0 ;
10096 int arg3 = (int) 0 ;
10097 wxRegion *result = 0 ;
10098 void *argp1 = 0 ;
10099 int res1 = 0 ;
10100 wxColour temp2 ;
10101 int val3 ;
10102 int ecode3 = 0 ;
10103 PyObject * obj0 = 0 ;
10104 PyObject * obj1 = 0 ;
10105 PyObject * obj2 = 0 ;
10106 char * kwnames[] = {
10107 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10108 };
10109
10110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10111 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10112 if (!SWIG_IsOK(res1)) {
10113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10114 }
10115 if (!argp1) {
10116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10117 }
10118 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10119 {
10120 arg2 = &temp2;
10121 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10122 }
10123 if (obj2) {
10124 ecode3 = SWIG_AsVal_int(obj2, &val3);
10125 if (!SWIG_IsOK(ecode3)) {
10126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10127 }
10128 arg3 = static_cast< int >(val3);
10129 }
10130 {
10131 if (!wxPyCheckForApp()) SWIG_fail;
10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
10133 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10138 return resultobj;
10139fail:
10140 return NULL;
10141}
10142
10143
10144SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10145 PyObject *resultobj = 0;
10146 int arg1 ;
10147 wxPoint *arg2 = (wxPoint *) 0 ;
10148 int arg3 = (int) wxWINDING_RULE ;
10149 wxRegion *result = 0 ;
10150 int val3 ;
10151 int ecode3 = 0 ;
10152 PyObject * obj0 = 0 ;
10153 PyObject * obj1 = 0 ;
10154 char * kwnames[] = {
10155 (char *) "points",(char *) "fillStyle", NULL
10156 };
10157
10158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10159 {
10160 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10161 if (arg2 == NULL) SWIG_fail;
10162 }
10163 if (obj1) {
10164 ecode3 = SWIG_AsVal_int(obj1, &val3);
10165 if (!SWIG_IsOK(ecode3)) {
10166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10167 }
10168 arg3 = static_cast< int >(val3);
10169 }
10170 {
10171 if (!wxPyCheckForApp()) SWIG_fail;
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10174 wxPyEndAllowThreads(__tstate);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
10177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10178 {
10179 if (arg2) delete [] arg2;
10180 }
10181 return resultobj;
10182fail:
10183 {
10184 if (arg2) delete [] arg2;
10185 }
10186 return NULL;
d14a1e28
RD
10187}
10188
10189
0085ce49
RD
10190SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10191 PyObject *resultobj = 0;
10192 wxRegion *arg1 = (wxRegion *) 0 ;
10193 void *argp1 = 0 ;
10194 int res1 = 0 ;
10195 PyObject *swig_obj[1] ;
10196
10197 if (!args) SWIG_fail;
10198 swig_obj[0] = args;
10199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10200 if (!SWIG_IsOK(res1)) {
10201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10202 }
10203 arg1 = reinterpret_cast< wxRegion * >(argp1);
10204 {
10205 PyThreadState* __tstate = wxPyBeginAllowThreads();
10206 delete arg1;
d14a1e28 10207
0085ce49
RD
10208 wxPyEndAllowThreads(__tstate);
10209 if (PyErr_Occurred()) SWIG_fail;
10210 }
10211 resultobj = SWIG_Py_Void();
10212 return resultobj;
10213fail:
10214 return NULL;
d14a1e28
RD
10215}
10216
10217
0085ce49
RD
10218SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10219 PyObject *resultobj = 0;
10220 wxRegion *arg1 = (wxRegion *) 0 ;
10221 void *argp1 = 0 ;
10222 int res1 = 0 ;
10223 PyObject *swig_obj[1] ;
10224
10225 if (!args) SWIG_fail;
10226 swig_obj[0] = args;
10227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10228 if (!SWIG_IsOK(res1)) {
10229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10230 }
10231 arg1 = reinterpret_cast< wxRegion * >(argp1);
10232 {
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 (arg1)->Clear();
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 resultobj = SWIG_Py_Void();
10239 return resultobj;
10240fail:
10241 return NULL;
10242}
10243
10244
10245SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj = 0;
10247 wxRegion *arg1 = (wxRegion *) 0 ;
10248 int arg2 ;
10249 int arg3 ;
10250 bool result;
10251 void *argp1 = 0 ;
10252 int res1 = 0 ;
10253 int val2 ;
10254 int ecode2 = 0 ;
10255 int val3 ;
10256 int ecode3 = 0 ;
10257 PyObject * obj0 = 0 ;
10258 PyObject * obj1 = 0 ;
10259 PyObject * obj2 = 0 ;
10260 char * kwnames[] = {
10261 (char *) "self",(char *) "x",(char *) "y", NULL
10262 };
10263
10264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10266 if (!SWIG_IsOK(res1)) {
10267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10268 }
10269 arg1 = reinterpret_cast< wxRegion * >(argp1);
10270 ecode2 = SWIG_AsVal_int(obj1, &val2);
10271 if (!SWIG_IsOK(ecode2)) {
10272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10273 }
10274 arg2 = static_cast< int >(val2);
10275 ecode3 = SWIG_AsVal_int(obj2, &val3);
10276 if (!SWIG_IsOK(ecode3)) {
10277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10278 }
10279 arg3 = static_cast< int >(val3);
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = (bool)(arg1)->Offset(arg2,arg3);
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 {
10287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10288 }
10289 return resultobj;
10290fail:
10291 return NULL;
10292}
10293
10294
10295SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj = 0;
10297 wxRegion *arg1 = (wxRegion *) 0 ;
10298 int arg2 ;
10299 int arg3 ;
10300 wxRegionContain result;
10301 void *argp1 = 0 ;
10302 int res1 = 0 ;
10303 int val2 ;
10304 int ecode2 = 0 ;
10305 int val3 ;
10306 int ecode3 = 0 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 PyObject * obj2 = 0 ;
10310 char * kwnames[] = {
10311 (char *) "self",(char *) "x",(char *) "y", NULL
10312 };
10313
10314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10316 if (!SWIG_IsOK(res1)) {
10317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10318 }
10319 arg1 = reinterpret_cast< wxRegion * >(argp1);
10320 ecode2 = SWIG_AsVal_int(obj1, &val2);
10321 if (!SWIG_IsOK(ecode2)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10323 }
10324 arg2 = static_cast< int >(val2);
10325 ecode3 = SWIG_AsVal_int(obj2, &val3);
10326 if (!SWIG_IsOK(ecode3)) {
10327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10328 }
10329 arg3 = static_cast< int >(val3);
10330 {
10331 PyThreadState* __tstate = wxPyBeginAllowThreads();
10332 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) SWIG_fail;
10335 }
10336 resultobj = SWIG_From_int(static_cast< int >(result));
10337 return resultobj;
10338fail:
10339 return NULL;
10340}
10341
10342
10343SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10344 PyObject *resultobj = 0;
10345 wxRegion *arg1 = (wxRegion *) 0 ;
10346 wxPoint *arg2 = 0 ;
10347 wxRegionContain result;
10348 void *argp1 = 0 ;
10349 int res1 = 0 ;
10350 wxPoint temp2 ;
10351 PyObject * obj0 = 0 ;
10352 PyObject * obj1 = 0 ;
10353 char * kwnames[] = {
10354 (char *) "self",(char *) "pt", NULL
10355 };
10356
10357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10359 if (!SWIG_IsOK(res1)) {
10360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10361 }
10362 arg1 = reinterpret_cast< wxRegion * >(argp1);
10363 {
10364 arg2 = &temp2;
10365 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10366 }
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 resultobj = SWIG_From_int(static_cast< int >(result));
10374 return resultobj;
10375fail:
10376 return NULL;
10377}
10378
10379
10380SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10381 PyObject *resultobj = 0;
10382 wxRegion *arg1 = (wxRegion *) 0 ;
10383 wxRect *arg2 = 0 ;
10384 wxRegionContain result;
10385 void *argp1 = 0 ;
10386 int res1 = 0 ;
10387 wxRect temp2 ;
10388 PyObject * obj0 = 0 ;
10389 PyObject * obj1 = 0 ;
10390 char * kwnames[] = {
10391 (char *) "self",(char *) "rect", NULL
10392 };
10393
10394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10396 if (!SWIG_IsOK(res1)) {
10397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10398 }
10399 arg1 = reinterpret_cast< wxRegion * >(argp1);
10400 {
10401 arg2 = &temp2;
10402 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10403 }
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 resultobj = SWIG_From_int(static_cast< int >(result));
10411 return resultobj;
10412fail:
10413 return NULL;
10414}
10415
10416
10417SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj = 0;
10419 wxRegion *arg1 = (wxRegion *) 0 ;
10420 int arg2 ;
10421 int arg3 ;
10422 int arg4 ;
10423 int arg5 ;
10424 wxRegionContain result;
10425 void *argp1 = 0 ;
10426 int res1 = 0 ;
10427 int val2 ;
10428 int ecode2 = 0 ;
10429 int val3 ;
10430 int ecode3 = 0 ;
10431 int val4 ;
10432 int ecode4 = 0 ;
10433 int val5 ;
10434 int ecode5 = 0 ;
10435 PyObject * obj0 = 0 ;
10436 PyObject * obj1 = 0 ;
10437 PyObject * obj2 = 0 ;
10438 PyObject * obj3 = 0 ;
10439 PyObject * obj4 = 0 ;
10440 char * kwnames[] = {
10441 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10442 };
10443
10444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10446 if (!SWIG_IsOK(res1)) {
10447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10448 }
10449 arg1 = reinterpret_cast< wxRegion * >(argp1);
10450 ecode2 = SWIG_AsVal_int(obj1, &val2);
10451 if (!SWIG_IsOK(ecode2)) {
10452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10453 }
10454 arg2 = static_cast< int >(val2);
10455 ecode3 = SWIG_AsVal_int(obj2, &val3);
10456 if (!SWIG_IsOK(ecode3)) {
10457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10458 }
10459 arg3 = static_cast< int >(val3);
10460 ecode4 = SWIG_AsVal_int(obj3, &val4);
10461 if (!SWIG_IsOK(ecode4)) {
10462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10463 }
10464 arg4 = static_cast< int >(val4);
10465 ecode5 = SWIG_AsVal_int(obj4, &val5);
10466 if (!SWIG_IsOK(ecode5)) {
10467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10468 }
10469 arg5 = static_cast< int >(val5);
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_From_int(static_cast< int >(result));
10477 return resultobj;
10478fail:
10479 return NULL;
d14a1e28
RD
10480}
10481
10482
0085ce49
RD
10483SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10484 PyObject *resultobj = 0;
10485 wxRegion *arg1 = (wxRegion *) 0 ;
10486 wxRect result;
10487 void *argp1 = 0 ;
10488 int res1 = 0 ;
10489 PyObject *swig_obj[1] ;
10490
10491 if (!args) SWIG_fail;
10492 swig_obj[0] = args;
10493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10494 if (!SWIG_IsOK(res1)) {
10495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10496 }
10497 arg1 = reinterpret_cast< wxRegion * >(argp1);
10498 {
10499 PyThreadState* __tstate = wxPyBeginAllowThreads();
10500 result = (arg1)->GetBox();
10501 wxPyEndAllowThreads(__tstate);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 }
10504 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10505 return resultobj;
10506fail:
10507 return NULL;
10508}
10509
10510
10511SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10512 PyObject *resultobj = 0;
10513 wxRegion *arg1 = (wxRegion *) 0 ;
10514 int arg2 ;
10515 int arg3 ;
10516 int arg4 ;
10517 int arg5 ;
10518 bool result;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 int val2 ;
10522 int ecode2 = 0 ;
10523 int val3 ;
10524 int ecode3 = 0 ;
10525 int val4 ;
10526 int ecode4 = 0 ;
10527 int val5 ;
10528 int ecode5 = 0 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 PyObject * obj2 = 0 ;
10532 PyObject * obj3 = 0 ;
10533 PyObject * obj4 = 0 ;
10534 char * kwnames[] = {
10535 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10536 };
10537
10538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10540 if (!SWIG_IsOK(res1)) {
10541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10542 }
10543 arg1 = reinterpret_cast< wxRegion * >(argp1);
10544 ecode2 = SWIG_AsVal_int(obj1, &val2);
10545 if (!SWIG_IsOK(ecode2)) {
10546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10547 }
10548 arg2 = static_cast< int >(val2);
10549 ecode3 = SWIG_AsVal_int(obj2, &val3);
10550 if (!SWIG_IsOK(ecode3)) {
10551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10552 }
10553 arg3 = static_cast< int >(val3);
10554 ecode4 = SWIG_AsVal_int(obj3, &val4);
10555 if (!SWIG_IsOK(ecode4)) {
10556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10557 }
10558 arg4 = static_cast< int >(val4);
10559 ecode5 = SWIG_AsVal_int(obj4, &val5);
10560 if (!SWIG_IsOK(ecode5)) {
10561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10562 }
10563 arg5 = static_cast< int >(val5);
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 {
10571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10572 }
10573 return resultobj;
10574fail:
10575 return NULL;
10576}
10577
10578
10579SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 wxRegion *arg1 = (wxRegion *) 0 ;
10582 wxRect *arg2 = 0 ;
10583 bool result;
10584 void *argp1 = 0 ;
10585 int res1 = 0 ;
10586 wxRect temp2 ;
10587 PyObject * obj0 = 0 ;
10588 PyObject * obj1 = 0 ;
10589 char * kwnames[] = {
10590 (char *) "self",(char *) "rect", NULL
10591 };
10592
10593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10595 if (!SWIG_IsOK(res1)) {
10596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10597 }
10598 arg1 = reinterpret_cast< wxRegion * >(argp1);
10599 {
10600 arg2 = &temp2;
10601 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10602 }
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 {
10610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10611 }
10612 return resultobj;
10613fail:
10614 return NULL;
10615}
10616
10617
10618SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxRegion *arg1 = (wxRegion *) 0 ;
10621 wxRegion *arg2 = 0 ;
10622 bool result;
10623 void *argp1 = 0 ;
10624 int res1 = 0 ;
10625 void *argp2 = 0 ;
10626 int res2 = 0 ;
10627 PyObject * obj0 = 0 ;
10628 PyObject * obj1 = 0 ;
10629 char * kwnames[] = {
10630 (char *) "self",(char *) "region", NULL
10631 };
10632
10633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10635 if (!SWIG_IsOK(res1)) {
10636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10637 }
10638 arg1 = reinterpret_cast< wxRegion * >(argp1);
10639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10640 if (!SWIG_IsOK(res2)) {
10641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10642 }
10643 if (!argp2) {
10644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10645 }
10646 arg2 = reinterpret_cast< wxRegion * >(argp2);
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 {
10654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10655 }
10656 return resultobj;
10657fail:
10658 return NULL;
d14a1e28
RD
10659}
10660
10661
0085ce49
RD
10662SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10663 PyObject *resultobj = 0;
10664 wxRegion *arg1 = (wxRegion *) 0 ;
10665 bool result;
10666 void *argp1 = 0 ;
10667 int res1 = 0 ;
10668 PyObject *swig_obj[1] ;
10669
10670 if (!args) SWIG_fail;
10671 swig_obj[0] = args;
10672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10673 if (!SWIG_IsOK(res1)) {
10674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10675 }
10676 arg1 = reinterpret_cast< wxRegion * >(argp1);
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 result = (bool)(arg1)->IsEmpty();
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 {
10684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10685 }
10686 return resultobj;
10687fail:
10688 return NULL;
10689}
10690
10691
f5263701
RD
10692SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10693 PyObject *resultobj = 0;
10694 wxRegion *arg1 = (wxRegion *) 0 ;
10695 wxRegion *arg2 = 0 ;
10696 bool result;
10697 void *argp1 = 0 ;
10698 int res1 = 0 ;
10699 void *argp2 = 0 ;
10700 int res2 = 0 ;
10701 PyObject * obj0 = 0 ;
10702 PyObject * obj1 = 0 ;
10703 char * kwnames[] = {
10704 (char *) "self",(char *) "region", NULL
10705 };
10706
10707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10709 if (!SWIG_IsOK(res1)) {
10710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10711 }
10712 arg1 = reinterpret_cast< wxRegion * >(argp1);
10713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10714 if (!SWIG_IsOK(res2)) {
10715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10716 }
10717 if (!argp2) {
10718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10719 }
10720 arg2 = reinterpret_cast< wxRegion * >(argp2);
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10724 wxPyEndAllowThreads(__tstate);
10725 if (PyErr_Occurred()) SWIG_fail;
10726 }
10727 {
10728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10729 }
10730 return resultobj;
10731fail:
10732 return NULL;
10733}
10734
10735
0085ce49
RD
10736SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxRegion *arg1 = (wxRegion *) 0 ;
10739 int arg2 ;
10740 int arg3 ;
10741 int arg4 ;
10742 int arg5 ;
10743 bool result;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 int val2 ;
10747 int ecode2 = 0 ;
10748 int val3 ;
10749 int ecode3 = 0 ;
10750 int val4 ;
10751 int ecode4 = 0 ;
10752 int val5 ;
10753 int ecode5 = 0 ;
10754 PyObject * obj0 = 0 ;
10755 PyObject * obj1 = 0 ;
10756 PyObject * obj2 = 0 ;
10757 PyObject * obj3 = 0 ;
10758 PyObject * obj4 = 0 ;
10759 char * kwnames[] = {
10760 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10761 };
10762
10763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10765 if (!SWIG_IsOK(res1)) {
10766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10767 }
10768 arg1 = reinterpret_cast< wxRegion * >(argp1);
10769 ecode2 = SWIG_AsVal_int(obj1, &val2);
10770 if (!SWIG_IsOK(ecode2)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10772 }
10773 arg2 = static_cast< int >(val2);
10774 ecode3 = SWIG_AsVal_int(obj2, &val3);
10775 if (!SWIG_IsOK(ecode3)) {
10776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10777 }
10778 arg3 = static_cast< int >(val3);
10779 ecode4 = SWIG_AsVal_int(obj3, &val4);
10780 if (!SWIG_IsOK(ecode4)) {
10781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10782 }
10783 arg4 = static_cast< int >(val4);
10784 ecode5 = SWIG_AsVal_int(obj4, &val5);
10785 if (!SWIG_IsOK(ecode5)) {
10786 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10787 }
10788 arg5 = static_cast< int >(val5);
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 {
10796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10797 }
10798 return resultobj;
10799fail:
10800 return NULL;
10801}
10802
10803
10804SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj = 0;
10806 wxRegion *arg1 = (wxRegion *) 0 ;
10807 wxRect *arg2 = 0 ;
10808 bool result;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 wxRect temp2 ;
10812 PyObject * obj0 = 0 ;
10813 PyObject * obj1 = 0 ;
10814 char * kwnames[] = {
10815 (char *) "self",(char *) "rect", NULL
10816 };
10817
10818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10820 if (!SWIG_IsOK(res1)) {
10821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10822 }
10823 arg1 = reinterpret_cast< wxRegion * >(argp1);
10824 {
10825 arg2 = &temp2;
10826 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10827 }
10828 {
10829 PyThreadState* __tstate = wxPyBeginAllowThreads();
10830 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 {
10835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10836 }
10837 return resultobj;
10838fail:
10839 return NULL;
10840}
10841
10842
10843SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj = 0;
10845 wxRegion *arg1 = (wxRegion *) 0 ;
10846 wxRegion *arg2 = 0 ;
10847 bool result;
10848 void *argp1 = 0 ;
10849 int res1 = 0 ;
10850 void *argp2 = 0 ;
10851 int res2 = 0 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 char * kwnames[] = {
10855 (char *) "self",(char *) "region", NULL
10856 };
10857
10858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10860 if (!SWIG_IsOK(res1)) {
10861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10862 }
10863 arg1 = reinterpret_cast< wxRegion * >(argp1);
10864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10865 if (!SWIG_IsOK(res2)) {
10866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10867 }
10868 if (!argp2) {
10869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10870 }
10871 arg2 = reinterpret_cast< wxRegion * >(argp2);
10872 {
10873 PyThreadState* __tstate = wxPyBeginAllowThreads();
10874 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10875 wxPyEndAllowThreads(__tstate);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 }
10878 {
10879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10880 }
10881 return resultobj;
10882fail:
10883 return NULL;
10884}
10885
10886
10887SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj = 0;
10889 wxRegion *arg1 = (wxRegion *) 0 ;
10890 int arg2 ;
10891 int arg3 ;
10892 int arg4 ;
10893 int arg5 ;
10894 bool result;
10895 void *argp1 = 0 ;
10896 int res1 = 0 ;
10897 int val2 ;
10898 int ecode2 = 0 ;
10899 int val3 ;
10900 int ecode3 = 0 ;
10901 int val4 ;
10902 int ecode4 = 0 ;
10903 int val5 ;
10904 int ecode5 = 0 ;
10905 PyObject * obj0 = 0 ;
10906 PyObject * obj1 = 0 ;
10907 PyObject * obj2 = 0 ;
10908 PyObject * obj3 = 0 ;
10909 PyObject * obj4 = 0 ;
10910 char * kwnames[] = {
10911 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10912 };
10913
10914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10916 if (!SWIG_IsOK(res1)) {
10917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10918 }
10919 arg1 = reinterpret_cast< wxRegion * >(argp1);
10920 ecode2 = SWIG_AsVal_int(obj1, &val2);
10921 if (!SWIG_IsOK(ecode2)) {
10922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10923 }
10924 arg2 = static_cast< int >(val2);
10925 ecode3 = SWIG_AsVal_int(obj2, &val3);
10926 if (!SWIG_IsOK(ecode3)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10928 }
10929 arg3 = static_cast< int >(val3);
10930 ecode4 = SWIG_AsVal_int(obj3, &val4);
10931 if (!SWIG_IsOK(ecode4)) {
10932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10933 }
10934 arg4 = static_cast< int >(val4);
10935 ecode5 = SWIG_AsVal_int(obj4, &val5);
10936 if (!SWIG_IsOK(ecode5)) {
10937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10938 }
10939 arg5 = static_cast< int >(val5);
10940 {
10941 PyThreadState* __tstate = wxPyBeginAllowThreads();
10942 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 {
10947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10948 }
10949 return resultobj;
10950fail:
10951 return NULL;
10952}
10953
10954
10955SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj = 0;
10957 wxRegion *arg1 = (wxRegion *) 0 ;
10958 wxRect *arg2 = 0 ;
10959 bool result;
10960 void *argp1 = 0 ;
10961 int res1 = 0 ;
10962 wxRect temp2 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char * kwnames[] = {
10966 (char *) "self",(char *) "rect", NULL
10967 };
10968
10969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10971 if (!SWIG_IsOK(res1)) {
10972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10973 }
10974 arg1 = reinterpret_cast< wxRegion * >(argp1);
10975 {
10976 arg2 = &temp2;
10977 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10978 }
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
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
10994SWIGINTERN PyObject *_wrap_Region_SubtractRegion(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_SubtractRegion",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_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
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_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11018 }
11019 if (!argp2) {
11020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11021 }
11022 arg2 = reinterpret_cast< wxRegion * >(argp2);
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)(arg1)->Subtract((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
11038SWIGINTERN PyObject *_wrap_Region_Xor(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_Xor",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_Xor" "', 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_Xor" "', 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_Xor" "', 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_Xor" "', 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_Xor" "', expected argument " "5"" of type '" "int""'");
11089 }
11090 arg5 = static_cast< int >(val5);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)(arg1)->Xor(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_XorRect(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_XorRect",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_XorRect" "', 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)->Xor((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_XorRegion(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_XorRegion",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_XorRegion" "', 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_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11169 }
11170 if (!argp2) {
11171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11172 }
11173 arg2 = reinterpret_cast< wxRegion * >(argp2);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (bool)(arg1)->Xor((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;
d14a1e28
RD
11186}
11187
11188
0085ce49
RD
11189SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11190 PyObject *resultobj = 0;
11191 wxRegion *arg1 = (wxRegion *) 0 ;
11192 SwigValueWrapper<wxBitmap > result;
11193 void *argp1 = 0 ;
11194 int res1 = 0 ;
11195 PyObject *swig_obj[1] ;
11196
11197 if (!args) SWIG_fail;
11198 swig_obj[0] = args;
11199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11200 if (!SWIG_IsOK(res1)) {
11201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11202 }
11203 arg1 = reinterpret_cast< wxRegion * >(argp1);
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 result = (arg1)->ConvertToBitmap();
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11211 return resultobj;
11212fail:
11213 return NULL;
11214}
11215
11216
11217SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11218 PyObject *resultobj = 0;
11219 wxRegion *arg1 = (wxRegion *) 0 ;
11220 wxBitmap *arg2 = 0 ;
11221 bool result;
11222 void *argp1 = 0 ;
11223 int res1 = 0 ;
11224 void *argp2 = 0 ;
11225 int res2 = 0 ;
11226 PyObject * obj0 = 0 ;
11227 PyObject * obj1 = 0 ;
11228 char * kwnames[] = {
11229 (char *) "self",(char *) "bmp", NULL
11230 };
11231
11232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11234 if (!SWIG_IsOK(res1)) {
11235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11236 }
11237 arg1 = reinterpret_cast< wxRegion * >(argp1);
11238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11239 if (!SWIG_IsOK(res2)) {
11240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11241 }
11242 if (!argp2) {
11243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11244 }
11245 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 {
11253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11254 }
11255 return resultobj;
11256fail:
11257 return NULL;
11258}
11259
11260
11261SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11262 PyObject *resultobj = 0;
11263 wxRegion *arg1 = (wxRegion *) 0 ;
11264 wxBitmap *arg2 = 0 ;
11265 wxColour *arg3 = 0 ;
11266 int arg4 = (int) 0 ;
11267 bool result;
11268 void *argp1 = 0 ;
11269 int res1 = 0 ;
11270 void *argp2 = 0 ;
11271 int res2 = 0 ;
11272 wxColour temp3 ;
11273 int val4 ;
11274 int ecode4 = 0 ;
11275 PyObject * obj0 = 0 ;
11276 PyObject * obj1 = 0 ;
11277 PyObject * obj2 = 0 ;
11278 PyObject * obj3 = 0 ;
11279 char * kwnames[] = {
11280 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11281 };
11282
11283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11285 if (!SWIG_IsOK(res1)) {
11286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11287 }
11288 arg1 = reinterpret_cast< wxRegion * >(argp1);
11289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11290 if (!SWIG_IsOK(res2)) {
11291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11292 }
11293 if (!argp2) {
11294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11295 }
11296 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11297 {
11298 arg3 = &temp3;
11299 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11300 }
11301 if (obj3) {
11302 ecode4 = SWIG_AsVal_int(obj3, &val4);
11303 if (!SWIG_IsOK(ecode4)) {
11304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11305 }
11306 arg4 = static_cast< int >(val4);
11307 }
11308 {
11309 PyThreadState* __tstate = wxPyBeginAllowThreads();
11310 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11311 wxPyEndAllowThreads(__tstate);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 }
11314 {
11315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11316 }
11317 return resultobj;
11318fail:
11319 return NULL;
d14a1e28
RD
11320}
11321
11322
0085ce49
RD
11323SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11324 PyObject *obj;
11325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11326 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11327 return SWIG_Py_Void();
d14a1e28
RD
11328}
11329
0085ce49
RD
11330SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11331 return SWIG_Python_InitShadowInstance(args);
11332}
d14a1e28 11333
0085ce49
RD
11334SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj = 0;
11336 wxRegion *arg1 = 0 ;
11337 wxRegionIterator *result = 0 ;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 PyObject * obj0 = 0 ;
11341 char * kwnames[] = {
11342 (char *) "region", NULL
11343 };
11344
11345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11346 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11347 if (!SWIG_IsOK(res1)) {
11348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11349 }
11350 if (!argp1) {
11351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11352 }
11353 arg1 = reinterpret_cast< wxRegion * >(argp1);
11354 {
11355 if (!wxPyCheckForApp()) SWIG_fail;
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11358 wxPyEndAllowThreads(__tstate);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 }
11361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11362 return resultobj;
11363fail:
11364 return NULL;
d14a1e28
RD
11365}
11366
11367
0085ce49
RD
11368SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11369 PyObject *resultobj = 0;
11370 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11371 void *argp1 = 0 ;
11372 int res1 = 0 ;
11373 PyObject *swig_obj[1] ;
11374
11375 if (!args) SWIG_fail;
11376 swig_obj[0] = args;
11377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11378 if (!SWIG_IsOK(res1)) {
11379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11380 }
11381 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 delete arg1;
d14a1e28 11385
0085ce49
RD
11386 wxPyEndAllowThreads(__tstate);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 resultobj = SWIG_Py_Void();
11390 return resultobj;
11391fail:
11392 return NULL;
d14a1e28
RD
11393}
11394
11395
0085ce49
RD
11396SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11397 PyObject *resultobj = 0;
11398 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11399 int result;
11400 void *argp1 = 0 ;
11401 int res1 = 0 ;
11402 PyObject *swig_obj[1] ;
11403
11404 if (!args) SWIG_fail;
11405 swig_obj[0] = args;
11406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11407 if (!SWIG_IsOK(res1)) {
11408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11409 }
11410 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11411 {
11412 PyThreadState* __tstate = wxPyBeginAllowThreads();
11413 result = (int)(arg1)->GetX();
11414 wxPyEndAllowThreads(__tstate);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 resultobj = SWIG_From_int(static_cast< int >(result));
11418 return resultobj;
11419fail:
11420 return NULL;
d14a1e28
RD
11421}
11422
11423
0085ce49
RD
11424SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11425 PyObject *resultobj = 0;
11426 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11427 int result;
11428 void *argp1 = 0 ;
11429 int res1 = 0 ;
11430 PyObject *swig_obj[1] ;
11431
11432 if (!args) SWIG_fail;
11433 swig_obj[0] = args;
11434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11435 if (!SWIG_IsOK(res1)) {
11436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11437 }
11438 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 result = (int)(arg1)->GetY();
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 resultobj = SWIG_From_int(static_cast< int >(result));
11446 return resultobj;
11447fail:
11448 return NULL;
d14a1e28
RD
11449}
11450
11451
0085ce49
RD
11452SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11453 PyObject *resultobj = 0;
11454 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11455 int result;
11456 void *argp1 = 0 ;
11457 int res1 = 0 ;
11458 PyObject *swig_obj[1] ;
11459
11460 if (!args) SWIG_fail;
11461 swig_obj[0] = args;
11462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11463 if (!SWIG_IsOK(res1)) {
11464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11465 }
11466 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11467 {
11468 PyThreadState* __tstate = wxPyBeginAllowThreads();
11469 result = (int)(arg1)->GetW();
11470 wxPyEndAllowThreads(__tstate);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 resultobj = SWIG_From_int(static_cast< int >(result));
11474 return resultobj;
11475fail:
11476 return NULL;
d14a1e28
RD
11477}
11478
11479
0085ce49
RD
11480SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11481 PyObject *resultobj = 0;
11482 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11483 int result;
11484 void *argp1 = 0 ;
11485 int res1 = 0 ;
11486 PyObject *swig_obj[1] ;
11487
11488 if (!args) SWIG_fail;
11489 swig_obj[0] = args;
11490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11491 if (!SWIG_IsOK(res1)) {
11492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11493 }
11494 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 result = (int)(arg1)->GetWidth();
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 resultobj = SWIG_From_int(static_cast< int >(result));
11502 return resultobj;
11503fail:
11504 return NULL;
093d3ff1
RD
11505}
11506
11507
0085ce49
RD
11508SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11509 PyObject *resultobj = 0;
11510 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11511 int result;
11512 void *argp1 = 0 ;
11513 int res1 = 0 ;
11514 PyObject *swig_obj[1] ;
11515
11516 if (!args) SWIG_fail;
11517 swig_obj[0] = args;
11518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11519 if (!SWIG_IsOK(res1)) {
11520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11521 }
11522 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 result = (int)(arg1)->GetH();
11526 wxPyEndAllowThreads(__tstate);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 resultobj = SWIG_From_int(static_cast< int >(result));
11530 return resultobj;
11531fail:
11532 return NULL;
d14a1e28
RD
11533}
11534
11535
0085ce49
RD
11536SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11537 PyObject *resultobj = 0;
11538 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11539 int result;
11540 void *argp1 = 0 ;
11541 int res1 = 0 ;
11542 PyObject *swig_obj[1] ;
11543
11544 if (!args) SWIG_fail;
11545 swig_obj[0] = args;
11546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11547 if (!SWIG_IsOK(res1)) {
11548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11549 }
11550 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 result = (int)(arg1)->GetHeight();
11554 wxPyEndAllowThreads(__tstate);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 resultobj = SWIG_From_int(static_cast< int >(result));
11558 return resultobj;
11559fail:
11560 return NULL;
093d3ff1
RD
11561}
11562
11563
0085ce49
RD
11564SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11565 PyObject *resultobj = 0;
11566 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11567 wxRect result;
11568 void *argp1 = 0 ;
11569 int res1 = 0 ;
11570 PyObject *swig_obj[1] ;
11571
11572 if (!args) SWIG_fail;
11573 swig_obj[0] = args;
11574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11575 if (!SWIG_IsOK(res1)) {
11576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11577 }
11578 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11579 {
11580 PyThreadState* __tstate = wxPyBeginAllowThreads();
11581 result = (arg1)->GetRect();
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11586 return resultobj;
11587fail:
11588 return NULL;
d14a1e28
RD
11589}
11590
11591
0085ce49
RD
11592SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11593 PyObject *resultobj = 0;
11594 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11595 bool result;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 PyObject *swig_obj[1] ;
11599
11600 if (!args) SWIG_fail;
11601 swig_obj[0] = args;
11602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11603 if (!SWIG_IsOK(res1)) {
11604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11605 }
11606 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11607 {
11608 PyThreadState* __tstate = wxPyBeginAllowThreads();
11609 result = (bool)(arg1)->HaveRects();
11610 wxPyEndAllowThreads(__tstate);
11611 if (PyErr_Occurred()) SWIG_fail;
11612 }
11613 {
11614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11615 }
11616 return resultobj;
11617fail:
11618 return NULL;
093d3ff1
RD
11619}
11620
11621
0085ce49
RD
11622SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11623 PyObject *resultobj = 0;
11624 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11625 void *argp1 = 0 ;
11626 int res1 = 0 ;
11627 PyObject *swig_obj[1] ;
11628
11629 if (!args) SWIG_fail;
11630 swig_obj[0] = args;
11631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11632 if (!SWIG_IsOK(res1)) {
11633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11634 }
11635 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 (arg1)->Reset();
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 resultobj = SWIG_Py_Void();
11643 return resultobj;
11644fail:
11645 return NULL;
d14a1e28
RD
11646}
11647
11648
0085ce49
RD
11649SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11650 PyObject *resultobj = 0;
11651 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11652 void *argp1 = 0 ;
11653 int res1 = 0 ;
11654 PyObject *swig_obj[1] ;
11655
11656 if (!args) SWIG_fail;
11657 swig_obj[0] = args;
11658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11659 if (!SWIG_IsOK(res1)) {
11660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11661 }
11662 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11663 {
11664 PyThreadState* __tstate = wxPyBeginAllowThreads();
11665 wxRegionIterator_Next(arg1);
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 resultobj = SWIG_Py_Void();
11670 return resultobj;
11671fail:
11672 return NULL;
d14a1e28
RD
11673}
11674
11675
0085ce49
RD
11676SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11677 PyObject *resultobj = 0;
11678 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11679 bool result;
11680 void *argp1 = 0 ;
11681 int res1 = 0 ;
11682 PyObject *swig_obj[1] ;
11683
11684 if (!args) SWIG_fail;
11685 swig_obj[0] = args;
11686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11687 if (!SWIG_IsOK(res1)) {
11688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11689 }
11690 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 result = (bool)wxRegionIterator___nonzero__(arg1);
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 {
11698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11699 }
11700 return resultobj;
11701fail:
11702 return NULL;
d14a1e28
RD
11703}
11704
11705
0085ce49
RD
11706SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11707 PyObject *obj;
11708 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11709 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11710 return SWIG_Py_Void();
d14a1e28
RD
11711}
11712
0085ce49
RD
11713SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11714 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
11715}
11716
0085ce49
RD
11717SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11718 PyObject *resultobj = 0;
11719 wxNativeFontInfo *result = 0 ;
11720
11721 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11729 return resultobj;
11730fail:
11731 return NULL;
d14a1e28
RD
11732}
11733
11734
0085ce49
RD
11735SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11736 PyObject *resultobj = 0;
11737 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11738 void *argp1 = 0 ;
11739 int res1 = 0 ;
11740 PyObject *swig_obj[1] ;
11741
11742 if (!args) SWIG_fail;
11743 swig_obj[0] = args;
11744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11745 if (!SWIG_IsOK(res1)) {
11746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11747 }
11748 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11749 {
11750 PyThreadState* __tstate = wxPyBeginAllowThreads();
11751 delete arg1;
d14a1e28 11752
0085ce49
RD
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_Py_Void();
11757 return resultobj;
11758fail:
11759 return NULL;
d14a1e28
RD
11760}
11761
11762
0085ce49
RD
11763SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11766 void *argp1 = 0 ;
11767 int res1 = 0 ;
11768 PyObject *swig_obj[1] ;
11769
11770 if (!args) SWIG_fail;
11771 swig_obj[0] = args;
11772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11773 if (!SWIG_IsOK(res1)) {
11774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11775 }
11776 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
11779 (arg1)->Init();
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 resultobj = SWIG_Py_Void();
11784 return resultobj;
11785fail:
11786 return NULL;
11787}
11788
11789
11790SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11791 PyObject *resultobj = 0;
11792 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11793 wxFont *arg2 = 0 ;
11794 void *argp1 = 0 ;
11795 int res1 = 0 ;
11796 void *argp2 = 0 ;
11797 int res2 = 0 ;
11798 PyObject * obj0 = 0 ;
11799 PyObject * obj1 = 0 ;
11800 char * kwnames[] = {
11801 (char *) "self",(char *) "font", NULL
11802 };
11803
11804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11806 if (!SWIG_IsOK(res1)) {
11807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11808 }
11809 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11811 if (!SWIG_IsOK(res2)) {
11812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11813 }
11814 if (!argp2) {
11815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11816 }
11817 arg2 = reinterpret_cast< wxFont * >(argp2);
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 (arg1)->InitFromFont((wxFont const &)*arg2);
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 resultobj = SWIG_Py_Void();
11825 return resultobj;
11826fail:
11827 return NULL;
e6ffcedd
RD
11828}
11829
11830
0085ce49
RD
11831SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11832 PyObject *resultobj = 0;
11833 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11834 int result;
11835 void *argp1 = 0 ;
11836 int res1 = 0 ;
11837 PyObject *swig_obj[1] ;
11838
11839 if (!args) SWIG_fail;
11840 swig_obj[0] = args;
11841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11844 }
11845 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 resultobj = SWIG_From_int(static_cast< int >(result));
11853 return resultobj;
11854fail:
11855 return NULL;
d14a1e28
RD
11856}
11857
11858
0085ce49
RD
11859SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11860 PyObject *resultobj = 0;
11861 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11862 wxFontStyle result;
11863 void *argp1 = 0 ;
11864 int res1 = 0 ;
11865 PyObject *swig_obj[1] ;
11866
11867 if (!args) SWIG_fail;
11868 swig_obj[0] = args;
11869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11870 if (!SWIG_IsOK(res1)) {
11871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11872 }
11873 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 resultobj = SWIG_From_int(static_cast< int >(result));
11881 return resultobj;
11882fail:
11883 return NULL;
d14a1e28
RD
11884}
11885
11886
0085ce49
RD
11887SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11888 PyObject *resultobj = 0;
11889 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11890 wxFontWeight result;
11891 void *argp1 = 0 ;
11892 int res1 = 0 ;
11893 PyObject *swig_obj[1] ;
11894
11895 if (!args) SWIG_fail;
11896 swig_obj[0] = args;
11897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11898 if (!SWIG_IsOK(res1)) {
11899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11900 }
11901 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11902 {
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 resultobj = SWIG_From_int(static_cast< int >(result));
11909 return resultobj;
11910fail:
11911 return NULL;
d14a1e28
RD
11912}
11913
11914
0085ce49
RD
11915SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11916 PyObject *resultobj = 0;
11917 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11918 bool result;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject *swig_obj[1] ;
11922
11923 if (!args) SWIG_fail;
11924 swig_obj[0] = args;
11925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11926 if (!SWIG_IsOK(res1)) {
11927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11928 }
11929 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 {
11937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11938 }
11939 return resultobj;
11940fail:
11941 return NULL;
d14a1e28
RD
11942}
11943
11944
0085ce49
RD
11945SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11946 PyObject *resultobj = 0;
11947 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11948 wxString result;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 PyObject *swig_obj[1] ;
11952
11953 if (!args) SWIG_fail;
11954 swig_obj[0] = args;
11955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11956 if (!SWIG_IsOK(res1)) {
11957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11958 }
11959 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 {
11967#if wxUSE_UNICODE
11968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11969#else
11970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11971#endif
11972 }
11973 return resultobj;
11974fail:
11975 return NULL;
d14a1e28
RD
11976}
11977
11978
0085ce49
RD
11979SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11980 PyObject *resultobj = 0;
11981 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11982 wxFontFamily result;
11983 void *argp1 = 0 ;
11984 int res1 = 0 ;
11985 PyObject *swig_obj[1] ;
11986
11987 if (!args) SWIG_fail;
11988 swig_obj[0] = args;
11989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11990 if (!SWIG_IsOK(res1)) {
11991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11992 }
11993 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 resultobj = SWIG_From_int(static_cast< int >(result));
12001 return resultobj;
12002fail:
12003 return NULL;
d14a1e28
RD
12004}
12005
12006
0085ce49
RD
12007SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12008 PyObject *resultobj = 0;
12009 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12010 wxFontEncoding result;
12011 void *argp1 = 0 ;
12012 int res1 = 0 ;
12013 PyObject *swig_obj[1] ;
12014
12015 if (!args) SWIG_fail;
12016 swig_obj[0] = args;
12017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12018 if (!SWIG_IsOK(res1)) {
12019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12020 }
12021 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 resultobj = SWIG_From_int(static_cast< int >(result));
12029 return resultobj;
12030fail:
12031 return NULL;
12032}
12033
12034
12035SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12036 PyObject *resultobj = 0;
12037 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12038 int arg2 ;
12039 void *argp1 = 0 ;
12040 int res1 = 0 ;
12041 int val2 ;
12042 int ecode2 = 0 ;
12043 PyObject * obj0 = 0 ;
12044 PyObject * obj1 = 0 ;
12045 char * kwnames[] = {
12046 (char *) "self",(char *) "pointsize", NULL
12047 };
12048
12049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12051 if (!SWIG_IsOK(res1)) {
12052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12053 }
12054 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12055 ecode2 = SWIG_AsVal_int(obj1, &val2);
12056 if (!SWIG_IsOK(ecode2)) {
12057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12058 }
12059 arg2 = static_cast< int >(val2);
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 (arg1)->SetPointSize(arg2);
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 resultobj = SWIG_Py_Void();
12067 return resultobj;
12068fail:
12069 return NULL;
12070}
12071
12072
12073SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12074 PyObject *resultobj = 0;
12075 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12076 wxFontStyle arg2 ;
12077 void *argp1 = 0 ;
12078 int res1 = 0 ;
12079 int val2 ;
12080 int ecode2 = 0 ;
12081 PyObject * obj0 = 0 ;
12082 PyObject * obj1 = 0 ;
12083 char * kwnames[] = {
12084 (char *) "self",(char *) "style", NULL
12085 };
12086
12087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12089 if (!SWIG_IsOK(res1)) {
12090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12091 }
12092 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12093 ecode2 = SWIG_AsVal_int(obj1, &val2);
12094 if (!SWIG_IsOK(ecode2)) {
12095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12096 }
12097 arg2 = static_cast< wxFontStyle >(val2);
12098 {
12099 PyThreadState* __tstate = wxPyBeginAllowThreads();
12100 (arg1)->SetStyle(arg2);
12101 wxPyEndAllowThreads(__tstate);
12102 if (PyErr_Occurred()) SWIG_fail;
12103 }
12104 resultobj = SWIG_Py_Void();
12105 return resultobj;
12106fail:
12107 return NULL;
12108}
12109
12110
12111SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12112 PyObject *resultobj = 0;
12113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12114 wxFontWeight arg2 ;
12115 void *argp1 = 0 ;
12116 int res1 = 0 ;
12117 int val2 ;
12118 int ecode2 = 0 ;
12119 PyObject * obj0 = 0 ;
12120 PyObject * obj1 = 0 ;
12121 char * kwnames[] = {
12122 (char *) "self",(char *) "weight", NULL
12123 };
12124
12125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12129 }
12130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12131 ecode2 = SWIG_AsVal_int(obj1, &val2);
12132 if (!SWIG_IsOK(ecode2)) {
12133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12134 }
12135 arg2 = static_cast< wxFontWeight >(val2);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 (arg1)->SetWeight(arg2);
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_Py_Void();
12143 return resultobj;
12144fail:
12145 return NULL;
12146}
12147
12148
12149SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj = 0;
12151 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12152 bool arg2 ;
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 bool val2 ;
12156 int ecode2 = 0 ;
12157 PyObject * obj0 = 0 ;
12158 PyObject * obj1 = 0 ;
12159 char * kwnames[] = {
12160 (char *) "self",(char *) "underlined", NULL
12161 };
12162
12163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12165 if (!SWIG_IsOK(res1)) {
12166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12167 }
12168 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12169 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12170 if (!SWIG_IsOK(ecode2)) {
12171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12172 }
12173 arg2 = static_cast< bool >(val2);
12174 {
12175 PyThreadState* __tstate = wxPyBeginAllowThreads();
12176 (arg1)->SetUnderlined(arg2);
12177 wxPyEndAllowThreads(__tstate);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 resultobj = SWIG_Py_Void();
12181 return resultobj;
12182fail:
12183 return NULL;
12184}
12185
12186
12187SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12188 PyObject *resultobj = 0;
12189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12190 wxString arg2 ;
704eda0c 12191 bool result;
0085ce49
RD
12192 void *argp1 = 0 ;
12193 int res1 = 0 ;
12194 PyObject * obj0 = 0 ;
12195 PyObject * obj1 = 0 ;
12196 char * kwnames[] = {
12197 (char *) "self",(char *) "facename", NULL
12198 };
12199
12200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12202 if (!SWIG_IsOK(res1)) {
12203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12204 }
12205 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12206 {
12207 wxString* sptr = wxString_in_helper(obj1);
12208 if (sptr == NULL) SWIG_fail;
12209 arg2 = *sptr;
12210 delete sptr;
12211 }
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12214 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
704eda0c
RD
12218 {
12219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12220 }
0085ce49
RD
12221 return resultobj;
12222fail:
12223 return NULL;
12224}
12225
12226
12227SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12228 PyObject *resultobj = 0;
12229 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12230 wxFontFamily arg2 ;
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 int val2 ;
12234 int ecode2 = 0 ;
12235 PyObject * obj0 = 0 ;
12236 PyObject * obj1 = 0 ;
12237 char * kwnames[] = {
12238 (char *) "self",(char *) "family", NULL
12239 };
12240
12241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12243 if (!SWIG_IsOK(res1)) {
12244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12245 }
12246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12247 ecode2 = SWIG_AsVal_int(obj1, &val2);
12248 if (!SWIG_IsOK(ecode2)) {
12249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12250 }
12251 arg2 = static_cast< wxFontFamily >(val2);
12252 {
12253 PyThreadState* __tstate = wxPyBeginAllowThreads();
12254 (arg1)->SetFamily(arg2);
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 resultobj = SWIG_Py_Void();
12259 return resultobj;
12260fail:
12261 return NULL;
12262}
12263
12264
12265SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12266 PyObject *resultobj = 0;
12267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12268 wxFontEncoding arg2 ;
12269 void *argp1 = 0 ;
12270 int res1 = 0 ;
12271 int val2 ;
12272 int ecode2 = 0 ;
12273 PyObject * obj0 = 0 ;
12274 PyObject * obj1 = 0 ;
12275 char * kwnames[] = {
12276 (char *) "self",(char *) "encoding", NULL
12277 };
12278
12279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12281 if (!SWIG_IsOK(res1)) {
12282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12283 }
12284 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12285 ecode2 = SWIG_AsVal_int(obj1, &val2);
12286 if (!SWIG_IsOK(ecode2)) {
12287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12288 }
12289 arg2 = static_cast< wxFontEncoding >(val2);
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 (arg1)->SetEncoding(arg2);
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 resultobj = SWIG_Py_Void();
12297 return resultobj;
12298fail:
12299 return NULL;
12300}
12301
12302
12303SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12304 PyObject *resultobj = 0;
12305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12306 wxString *arg2 = 0 ;
12307 bool result;
12308 void *argp1 = 0 ;
12309 int res1 = 0 ;
12310 bool temp2 = false ;
12311 PyObject * obj0 = 0 ;
12312 PyObject * obj1 = 0 ;
12313 char * kwnames[] = {
12314 (char *) "self",(char *) "s", NULL
12315 };
12316
12317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12319 if (!SWIG_IsOK(res1)) {
12320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12321 }
12322 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12323 {
12324 arg2 = wxString_in_helper(obj1);
12325 if (arg2 == NULL) SWIG_fail;
12326 temp2 = true;
12327 }
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 {
12335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12336 }
12337 {
12338 if (temp2)
12339 delete arg2;
12340 }
12341 return resultobj;
12342fail:
12343 {
12344 if (temp2)
12345 delete arg2;
12346 }
12347 return NULL;
d14a1e28
RD
12348}
12349
12350
0085ce49
RD
12351SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12352 PyObject *resultobj = 0;
12353 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12354 wxString result;
12355 void *argp1 = 0 ;
12356 int res1 = 0 ;
12357 PyObject *swig_obj[1] ;
12358
12359 if (!args) SWIG_fail;
12360 swig_obj[0] = args;
12361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12364 }
12365 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 result = ((wxNativeFontInfo const *)arg1)->ToString();
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 {
12373#if wxUSE_UNICODE
12374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12375#else
12376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12377#endif
12378 }
12379 return resultobj;
12380fail:
12381 return NULL;
d14a1e28
RD
12382}
12383
12384
0085ce49
RD
12385SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12386 PyObject *resultobj = 0;
12387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12388 wxString result;
12389 void *argp1 = 0 ;
12390 int res1 = 0 ;
12391 PyObject *swig_obj[1] ;
12392
12393 if (!args) SWIG_fail;
12394 swig_obj[0] = args;
12395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12396 if (!SWIG_IsOK(res1)) {
12397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12398 }
12399 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 result = wxNativeFontInfo___str__(arg1);
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 {
12407#if wxUSE_UNICODE
12408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12409#else
12410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12411#endif
12412 }
12413 return resultobj;
12414fail:
12415 return NULL;
12416}
12417
12418
12419SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12420 PyObject *resultobj = 0;
12421 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12422 wxString *arg2 = 0 ;
12423 bool result;
12424 void *argp1 = 0 ;
12425 int res1 = 0 ;
12426 bool temp2 = false ;
12427 PyObject * obj0 = 0 ;
12428 PyObject * obj1 = 0 ;
12429 char * kwnames[] = {
12430 (char *) "self",(char *) "s", NULL
12431 };
12432
12433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12435 if (!SWIG_IsOK(res1)) {
12436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12437 }
12438 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12439 {
12440 arg2 = wxString_in_helper(obj1);
12441 if (arg2 == NULL) SWIG_fail;
12442 temp2 = true;
12443 }
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 {
12451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12452 }
12453 {
12454 if (temp2)
12455 delete arg2;
12456 }
12457 return resultobj;
12458fail:
12459 {
12460 if (temp2)
12461 delete arg2;
12462 }
12463 return NULL;
d14a1e28
RD
12464}
12465
12466
0085ce49
RD
12467SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12468 PyObject *resultobj = 0;
12469 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12470 wxString result;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 PyObject *swig_obj[1] ;
12474
12475 if (!args) SWIG_fail;
12476 swig_obj[0] = args;
12477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12478 if (!SWIG_IsOK(res1)) {
12479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12480 }
12481 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 {
12489#if wxUSE_UNICODE
12490 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12491#else
12492 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12493#endif
12494 }
12495 return resultobj;
12496fail:
12497 return NULL;
d14a1e28
RD
12498}
12499
12500
0085ce49
RD
12501SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12502 PyObject *obj;
12503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12504 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12505 return SWIG_Py_Void();
d14a1e28
RD
12506}
12507
0085ce49
RD
12508SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12509 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12510}
12511
0085ce49
RD
12512SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12513 PyObject *resultobj = 0;
12514 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12515 wxString *arg2 = (wxString *) 0 ;
12516 void *argp1 = 0 ;
12517 int res1 = 0 ;
12518 bool temp2 = false ;
12519 PyObject *swig_obj[2] ;
12520
12521 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12523 if (!SWIG_IsOK(res1)) {
12524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12525 }
12526 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12527 {
12528 arg2 = wxString_in_helper(swig_obj[1]);
12529 if (arg2 == NULL) SWIG_fail;
12530 temp2 = true;
12531 }
12532 if (arg1) (arg1)->facename = *arg2;
12533
12534 resultobj = SWIG_Py_Void();
12535 {
12536 if (temp2)
12537 delete arg2;
12538 }
12539 return resultobj;
12540fail:
12541 {
12542 if (temp2)
12543 delete arg2;
12544 }
12545 return NULL;
d14a1e28
RD
12546}
12547
12548
0085ce49
RD
12549SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12550 PyObject *resultobj = 0;
12551 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12552 wxString *result = 0 ;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12562 }
12563 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12564 result = (wxString *)& ((arg1)->facename);
12565 {
12566#if wxUSE_UNICODE
12567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12568#else
12569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12570#endif
12571 }
12572 return resultobj;
12573fail:
12574 return NULL;
d14a1e28
RD
12575}
12576
12577
0085ce49
RD
12578SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12579 PyObject *resultobj = 0;
12580 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12581 wxFontEncoding arg2 ;
12582 void *argp1 = 0 ;
12583 int res1 = 0 ;
12584 int val2 ;
12585 int ecode2 = 0 ;
12586 PyObject *swig_obj[2] ;
12587
12588 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12590 if (!SWIG_IsOK(res1)) {
12591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12592 }
12593 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12594 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12595 if (!SWIG_IsOK(ecode2)) {
12596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12597 }
12598 arg2 = static_cast< wxFontEncoding >(val2);
12599 if (arg1) (arg1)->encoding = arg2;
12600
12601 resultobj = SWIG_Py_Void();
12602 return resultobj;
12603fail:
12604 return NULL;
d14a1e28
RD
12605}
12606
12607
0085ce49
RD
12608SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12609 PyObject *resultobj = 0;
12610 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12611 wxFontEncoding result;
12612 void *argp1 = 0 ;
12613 int res1 = 0 ;
12614 PyObject *swig_obj[1] ;
12615
12616 if (!args) SWIG_fail;
12617 swig_obj[0] = args;
12618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12619 if (!SWIG_IsOK(res1)) {
12620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12621 }
12622 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12623 result = (wxFontEncoding) ((arg1)->encoding);
12624 resultobj = SWIG_From_int(static_cast< int >(result));
12625 return resultobj;
12626fail:
12627 return NULL;
d14a1e28
RD
12628}
12629
12630
0085ce49
RD
12631SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12632 PyObject *resultobj = 0;
12633 wxNativeEncodingInfo *result = 0 ;
12634
12635 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12643 return resultobj;
12644fail:
12645 return NULL;
d14a1e28
RD
12646}
12647
12648
0085ce49
RD
12649SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12650 PyObject *resultobj = 0;
12651 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12652 void *argp1 = 0 ;
12653 int res1 = 0 ;
12654 PyObject *swig_obj[1] ;
12655
12656 if (!args) SWIG_fail;
12657 swig_obj[0] = args;
12658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12659 if (!SWIG_IsOK(res1)) {
12660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12661 }
12662 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 delete arg1;
d14a1e28 12666
0085ce49
RD
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 resultobj = SWIG_Py_Void();
12671 return resultobj;
12672fail:
12673 return NULL;
12674}
12675
12676
12677SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj = 0;
12679 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12680 wxString *arg2 = 0 ;
12681 bool result;
12682 void *argp1 = 0 ;
12683 int res1 = 0 ;
12684 bool temp2 = false ;
12685 PyObject * obj0 = 0 ;
12686 PyObject * obj1 = 0 ;
12687 char * kwnames[] = {
12688 (char *) "self",(char *) "s", NULL
12689 };
12690
12691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12693 if (!SWIG_IsOK(res1)) {
12694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12695 }
12696 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12697 {
12698 arg2 = wxString_in_helper(obj1);
12699 if (arg2 == NULL) SWIG_fail;
12700 temp2 = true;
12701 }
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 {
12709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12710 }
12711 {
12712 if (temp2)
12713 delete arg2;
12714 }
12715 return resultobj;
12716fail:
12717 {
12718 if (temp2)
12719 delete arg2;
12720 }
12721 return NULL;
d14a1e28
RD
12722}
12723
12724
0085ce49
RD
12725SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12726 PyObject *resultobj = 0;
12727 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12728 wxString result;
12729 void *argp1 = 0 ;
12730 int res1 = 0 ;
12731 PyObject *swig_obj[1] ;
12732
12733 if (!args) SWIG_fail;
12734 swig_obj[0] = args;
12735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12736 if (!SWIG_IsOK(res1)) {
12737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12738 }
12739 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 {
12747#if wxUSE_UNICODE
12748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12749#else
12750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12751#endif
12752 }
12753 return resultobj;
12754fail:
12755 return NULL;
d14a1e28
RD
12756}
12757
12758
0085ce49
RD
12759SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12760 PyObject *obj;
12761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12762 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12763 return SWIG_Py_Void();
d14a1e28
RD
12764}
12765
0085ce49
RD
12766SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12767 return SWIG_Python_InitShadowInstance(args);
12768}
d14a1e28 12769
0085ce49
RD
12770SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12771 PyObject *resultobj = 0;
12772 wxFontEncoding arg1 ;
12773 wxNativeEncodingInfo *result = 0 ;
12774 int val1 ;
12775 int ecode1 = 0 ;
12776 PyObject * obj0 = 0 ;
12777 char * kwnames[] = {
12778 (char *) "encoding", NULL
12779 };
12780
12781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12782 ecode1 = SWIG_AsVal_int(obj0, &val1);
12783 if (!SWIG_IsOK(ecode1)) {
12784 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12785 }
12786 arg1 = static_cast< wxFontEncoding >(val1);
12787 {
12788 PyThreadState* __tstate = wxPyBeginAllowThreads();
12789 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12794 return resultobj;
12795fail:
12796 return NULL;
12797}
12798
12799
12800SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12801 PyObject *resultobj = 0;
12802 wxNativeEncodingInfo *arg1 = 0 ;
12803 bool result;
12804 void *argp1 = 0 ;
12805 int res1 = 0 ;
12806 PyObject * obj0 = 0 ;
12807 char * kwnames[] = {
12808 (char *) "info", NULL
12809 };
12810
12811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12812 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12813 if (!SWIG_IsOK(res1)) {
12814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12815 }
12816 if (!argp1) {
12817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12818 }
12819 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 {
12827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12828 }
12829 return resultobj;
12830fail:
12831 return NULL;
d14a1e28
RD
12832}
12833
12834
0085ce49
RD
12835SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12836 PyObject *resultobj = 0;
12837 wxFontMapper *result = 0 ;
12838
12839 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12840 {
12841 PyThreadState* __tstate = wxPyBeginAllowThreads();
12842 result = (wxFontMapper *)new wxFontMapper();
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12847 return resultobj;
12848fail:
12849 return NULL;
d14a1e28
RD
12850}
12851
12852
0085ce49
RD
12853SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12854 PyObject *resultobj = 0;
12855 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12856 void *argp1 = 0 ;
12857 int res1 = 0 ;
12858 PyObject *swig_obj[1] ;
12859
12860 if (!args) SWIG_fail;
12861 swig_obj[0] = args;
12862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12863 if (!SWIG_IsOK(res1)) {
12864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12865 }
12866 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 delete arg1;
d14a1e28 12870
0085ce49
RD
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 resultobj = SWIG_Py_Void();
12875 return resultobj;
12876fail:
12877 return NULL;
d14a1e28
RD
12878}
12879
12880
0085ce49
RD
12881SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12882 PyObject *resultobj = 0;
12883 wxFontMapper *result = 0 ;
12884
12885 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = (wxFontMapper *)wxFontMapper::Get();
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12893 return resultobj;
12894fail:
12895 return NULL;
12896}
12897
12898
12899SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj = 0;
12901 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12902 wxFontMapper *result = 0 ;
12903 void *argp1 = 0 ;
12904 int res1 = 0 ;
12905 PyObject * obj0 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "mapper", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12914 }
12915 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12916 {
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
12918 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12919 wxPyEndAllowThreads(__tstate);
12920 if (PyErr_Occurred()) SWIG_fail;
12921 }
12922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12923 return resultobj;
12924fail:
12925 return NULL;
12926}
12927
12928
12929SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj = 0;
12931 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12932 wxString *arg2 = 0 ;
12933 bool arg3 = (bool) true ;
12934 wxFontEncoding result;
12935 void *argp1 = 0 ;
12936 int res1 = 0 ;
12937 bool temp2 = false ;
12938 bool val3 ;
12939 int ecode3 = 0 ;
12940 PyObject * obj0 = 0 ;
12941 PyObject * obj1 = 0 ;
12942 PyObject * obj2 = 0 ;
12943 char * kwnames[] = {
12944 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12945 };
12946
12947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12949 if (!SWIG_IsOK(res1)) {
12950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12951 }
12952 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12953 {
12954 arg2 = wxString_in_helper(obj1);
12955 if (arg2 == NULL) SWIG_fail;
12956 temp2 = true;
12957 }
12958 if (obj2) {
12959 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12960 if (!SWIG_IsOK(ecode3)) {
12961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12962 }
12963 arg3 = static_cast< bool >(val3);
12964 }
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12968 wxPyEndAllowThreads(__tstate);
12969 if (PyErr_Occurred()) SWIG_fail;
12970 }
12971 resultobj = SWIG_From_int(static_cast< int >(result));
12972 {
12973 if (temp2)
12974 delete arg2;
12975 }
12976 return resultobj;
12977fail:
12978 {
12979 if (temp2)
12980 delete arg2;
12981 }
12982 return NULL;
e6ffcedd
RD
12983}
12984
12985
0085ce49
RD
12986SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12987 PyObject *resultobj = 0;
12988 size_t result;
12989
12990 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12998 return resultobj;
12999fail:
13000 return NULL;
13001}
13002
13003
13004SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj = 0;
13006 size_t arg1 ;
13007 wxFontEncoding result;
13008 size_t val1 ;
13009 int ecode1 = 0 ;
13010 PyObject * obj0 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "n", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13016 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13017 if (!SWIG_IsOK(ecode1)) {
13018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13019 }
13020 arg1 = static_cast< size_t >(val1);
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 resultobj = SWIG_From_int(static_cast< int >(result));
13028 return resultobj;
13029fail:
13030 return NULL;
13031}
13032
13033
13034SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13035 PyObject *resultobj = 0;
13036 wxFontEncoding arg1 ;
13037 wxString result;
13038 int val1 ;
13039 int ecode1 = 0 ;
13040 PyObject * obj0 = 0 ;
13041 char * kwnames[] = {
13042 (char *) "encoding", NULL
13043 };
13044
13045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13046 ecode1 = SWIG_AsVal_int(obj0, &val1);
13047 if (!SWIG_IsOK(ecode1)) {
13048 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13049 }
13050 arg1 = static_cast< wxFontEncoding >(val1);
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 result = wxFontMapper::GetEncodingName(arg1);
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 {
13058#if wxUSE_UNICODE
13059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13060#else
13061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13062#endif
13063 }
13064 return resultobj;
13065fail:
13066 return NULL;
d14a1e28
RD
13067}
13068
13069
0085ce49
RD
13070SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13071 PyObject *resultobj = 0;
13072 wxFontEncoding arg1 ;
13073 wxString result;
13074 int val1 ;
13075 int ecode1 = 0 ;
13076 PyObject * obj0 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "encoding", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13082 ecode1 = SWIG_AsVal_int(obj0, &val1);
13083 if (!SWIG_IsOK(ecode1)) {
13084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13085 }
13086 arg1 = static_cast< wxFontEncoding >(val1);
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = wxFontMapper::GetEncodingDescription(arg1);
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 {
13094#if wxUSE_UNICODE
13095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13096#else
13097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13098#endif
13099 }
13100 return resultobj;
13101fail:
13102 return NULL;
d14a1e28
RD
13103}
13104
13105
0085ce49
RD
13106SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13107 PyObject *resultobj = 0;
13108 wxString *arg1 = 0 ;
13109 wxFontEncoding result;
13110 bool temp1 = false ;
13111 PyObject * obj0 = 0 ;
13112 char * kwnames[] = {
13113 (char *) "name", NULL
13114 };
13115
13116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13117 {
13118 arg1 = wxString_in_helper(obj0);
13119 if (arg1 == NULL) SWIG_fail;
13120 temp1 = true;
13121 }
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 resultobj = SWIG_From_int(static_cast< int >(result));
13129 {
13130 if (temp1)
13131 delete arg1;
13132 }
13133 return resultobj;
13134fail:
13135 {
13136 if (temp1)
13137 delete arg1;
13138 }
13139 return NULL;
d14a1e28
RD
13140}
13141
13142
0085ce49
RD
13143SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj = 0;
13145 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13146 wxString *arg2 = 0 ;
13147 void *argp1 = 0 ;
13148 int res1 = 0 ;
13149 bool temp2 = false ;
13150 PyObject * obj0 = 0 ;
13151 PyObject * obj1 = 0 ;
13152 char * kwnames[] = {
13153 (char *) "self",(char *) "prefix", NULL
13154 };
13155
13156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13158 if (!SWIG_IsOK(res1)) {
13159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13160 }
13161 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13162 {
13163 arg2 = wxString_in_helper(obj1);
13164 if (arg2 == NULL) SWIG_fail;
13165 temp2 = true;
13166 }
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 (arg1)->SetConfigPath((wxString const &)*arg2);
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 resultobj = SWIG_Py_Void();
13174 {
13175 if (temp2)
13176 delete arg2;
13177 }
13178 return resultobj;
13179fail:
13180 {
13181 if (temp2)
13182 delete arg2;
13183 }
13184 return NULL;
d14a1e28
RD
13185}
13186
13187
0085ce49
RD
13188SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13189 PyObject *resultobj = 0;
13190 wxString result;
13191
13192 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 result = wxFontMapper::GetDefaultConfigPath();
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 {
13200#if wxUSE_UNICODE
13201 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13202#else
13203 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13204#endif
13205 }
13206 return resultobj;
13207fail:
13208 return NULL;
13209}
13210
13211
13212SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13213 PyObject *resultobj = 0;
13214 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13215 wxFontEncoding arg2 ;
13216 wxString const &arg3_defvalue = wxPyEmptyString ;
13217 wxString *arg3 = (wxString *) &arg3_defvalue ;
13218 bool arg4 = (bool) true ;
13219 PyObject *result = 0 ;
13220 void *argp1 = 0 ;
13221 int res1 = 0 ;
13222 int val2 ;
13223 int ecode2 = 0 ;
13224 bool temp3 = false ;
13225 bool val4 ;
13226 int ecode4 = 0 ;
13227 PyObject * obj0 = 0 ;
13228 PyObject * obj1 = 0 ;
13229 PyObject * obj2 = 0 ;
13230 PyObject * obj3 = 0 ;
13231 char * kwnames[] = {
13232 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13233 };
13234
13235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13237 if (!SWIG_IsOK(res1)) {
13238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13239 }
13240 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13241 ecode2 = SWIG_AsVal_int(obj1, &val2);
13242 if (!SWIG_IsOK(ecode2)) {
13243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13244 }
13245 arg2 = static_cast< wxFontEncoding >(val2);
13246 if (obj2) {
093d3ff1 13247 {
0085ce49
RD
13248 arg3 = wxString_in_helper(obj2);
13249 if (arg3 == NULL) SWIG_fail;
13250 temp3 = true;
093d3ff1 13251 }
0085ce49
RD
13252 }
13253 if (obj3) {
13254 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13255 if (!SWIG_IsOK(ecode4)) {
13256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13257 }
13258 arg4 = static_cast< bool >(val4);
13259 }
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13263 wxPyEndAllowThreads(__tstate);
13264 if (PyErr_Occurred()) SWIG_fail;
13265 }
13266 resultobj = result;
13267 {
13268 if (temp3)
13269 delete arg3;
13270 }
13271 return resultobj;
13272fail:
13273 {
13274 if (temp3)
13275 delete arg3;
13276 }
13277 return NULL;
13278}
13279
13280
13281SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13282 PyObject *resultobj = 0;
13283 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13284 wxFontEncoding arg2 ;
13285 wxString const &arg3_defvalue = wxPyEmptyString ;
13286 wxString *arg3 = (wxString *) &arg3_defvalue ;
13287 bool result;
13288 void *argp1 = 0 ;
13289 int res1 = 0 ;
13290 int val2 ;
13291 int ecode2 = 0 ;
13292 bool temp3 = false ;
13293 PyObject * obj0 = 0 ;
13294 PyObject * obj1 = 0 ;
13295 PyObject * obj2 = 0 ;
13296 char * kwnames[] = {
13297 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13298 };
13299
13300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13302 if (!SWIG_IsOK(res1)) {
13303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13304 }
13305 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13306 ecode2 = SWIG_AsVal_int(obj1, &val2);
13307 if (!SWIG_IsOK(ecode2)) {
13308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13309 }
13310 arg2 = static_cast< wxFontEncoding >(val2);
13311 if (obj2) {
d14a1e28 13312 {
0085ce49
RD
13313 arg3 = wxString_in_helper(obj2);
13314 if (arg3 == NULL) SWIG_fail;
13315 temp3 = true;
d14a1e28 13316 }
0085ce49
RD
13317 }
13318 {
13319 PyThreadState* __tstate = wxPyBeginAllowThreads();
13320 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 {
13325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13326 }
13327 {
13328 if (temp3)
13329 delete arg3;
13330 }
13331 return resultobj;
13332fail:
13333 {
13334 if (temp3)
13335 delete arg3;
13336 }
13337 return NULL;
13338}
13339
13340
13341SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj = 0;
13343 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13344 wxWindow *arg2 = (wxWindow *) 0 ;
13345 void *argp1 = 0 ;
13346 int res1 = 0 ;
13347 void *argp2 = 0 ;
13348 int res2 = 0 ;
13349 PyObject * obj0 = 0 ;
13350 PyObject * obj1 = 0 ;
13351 char * kwnames[] = {
13352 (char *) "self",(char *) "parent", NULL
13353 };
13354
13355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13357 if (!SWIG_IsOK(res1)) {
13358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13359 }
13360 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13361 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13362 if (!SWIG_IsOK(res2)) {
13363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13364 }
13365 arg2 = reinterpret_cast< wxWindow * >(argp2);
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 (arg1)->SetDialogParent(arg2);
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 resultobj = SWIG_Py_Void();
13373 return resultobj;
13374fail:
13375 return NULL;
13376}
13377
13378
13379SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13380 PyObject *resultobj = 0;
13381 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13382 wxString *arg2 = 0 ;
13383 void *argp1 = 0 ;
13384 int res1 = 0 ;
13385 bool temp2 = false ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 char * kwnames[] = {
13389 (char *) "self",(char *) "title", NULL
13390 };
13391
13392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13394 if (!SWIG_IsOK(res1)) {
13395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13396 }
13397 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13398 {
13399 arg2 = wxString_in_helper(obj1);
13400 if (arg2 == NULL) SWIG_fail;
13401 temp2 = true;
13402 }
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 (arg1)->SetDialogTitle((wxString const &)*arg2);
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 resultobj = SWIG_Py_Void();
13410 {
13411 if (temp2)
13412 delete arg2;
13413 }
13414 return resultobj;
13415fail:
13416 {
13417 if (temp2)
13418 delete arg2;
13419 }
13420 return NULL;
13421}
13422
13423
13424SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425 PyObject *obj;
13426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13427 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13428 return SWIG_Py_Void();
13429}
13430
13431SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13432 return SWIG_Python_InitShadowInstance(args);
13433}
13434
13435SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13436 PyObject *resultobj = 0;
13437 int arg1 ;
13438 int arg2 ;
13439 int arg3 ;
13440 int arg4 ;
13441 bool arg5 = (bool) false ;
13442 wxString const &arg6_defvalue = wxPyEmptyString ;
13443 wxString *arg6 = (wxString *) &arg6_defvalue ;
13444 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13445 wxFont *result = 0 ;
13446 int val1 ;
13447 int ecode1 = 0 ;
13448 int val2 ;
13449 int ecode2 = 0 ;
13450 int val3 ;
13451 int ecode3 = 0 ;
13452 int val4 ;
13453 int ecode4 = 0 ;
13454 bool val5 ;
13455 int ecode5 = 0 ;
13456 bool temp6 = false ;
13457 int val7 ;
13458 int ecode7 = 0 ;
13459 PyObject * obj0 = 0 ;
13460 PyObject * obj1 = 0 ;
13461 PyObject * obj2 = 0 ;
13462 PyObject * obj3 = 0 ;
13463 PyObject * obj4 = 0 ;
13464 PyObject * obj5 = 0 ;
13465 PyObject * obj6 = 0 ;
13466 char * kwnames[] = {
13467 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13468 };
13469
13470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13471 ecode1 = SWIG_AsVal_int(obj0, &val1);
13472 if (!SWIG_IsOK(ecode1)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13474 }
13475 arg1 = static_cast< int >(val1);
13476 ecode2 = SWIG_AsVal_int(obj1, &val2);
13477 if (!SWIG_IsOK(ecode2)) {
13478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13479 }
13480 arg2 = static_cast< int >(val2);
13481 ecode3 = SWIG_AsVal_int(obj2, &val3);
13482 if (!SWIG_IsOK(ecode3)) {
13483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13484 }
13485 arg3 = static_cast< int >(val3);
13486 ecode4 = SWIG_AsVal_int(obj3, &val4);
13487 if (!SWIG_IsOK(ecode4)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13489 }
13490 arg4 = static_cast< int >(val4);
13491 if (obj4) {
13492 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13493 if (!SWIG_IsOK(ecode5)) {
13494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13495 }
13496 arg5 = static_cast< bool >(val5);
13497 }
13498 if (obj5) {
093d3ff1 13499 {
0085ce49
RD
13500 arg6 = wxString_in_helper(obj5);
13501 if (arg6 == NULL) SWIG_fail;
13502 temp6 = true;
093d3ff1 13503 }
0085ce49
RD
13504 }
13505 if (obj6) {
13506 ecode7 = SWIG_AsVal_int(obj6, &val7);
13507 if (!SWIG_IsOK(ecode7)) {
13508 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13509 }
13510 arg7 = static_cast< wxFontEncoding >(val7);
13511 }
13512 {
13513 if (!wxPyCheckForApp()) SWIG_fail;
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13520 {
13521 if (temp6)
13522 delete arg6;
13523 }
13524 return resultobj;
13525fail:
13526 {
13527 if (temp6)
13528 delete arg6;
13529 }
13530 return NULL;
d14a1e28
RD
13531}
13532
13533
0085ce49
RD
13534SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13535 PyObject *resultobj = 0;
13536 wxFont *arg1 = (wxFont *) 0 ;
13537 void *argp1 = 0 ;
13538 int res1 = 0 ;
13539 PyObject *swig_obj[1] ;
13540
13541 if (!args) SWIG_fail;
13542 swig_obj[0] = args;
13543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13544 if (!SWIG_IsOK(res1)) {
13545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13546 }
13547 arg1 = reinterpret_cast< wxFont * >(argp1);
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 delete arg1;
d14a1e28 13551
0085ce49
RD
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_Py_Void();
13556 return resultobj;
13557fail:
13558 return NULL;
13559}
13560
13561
13562SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj = 0;
13564 wxNativeFontInfo *arg1 = 0 ;
13565 wxFont *result = 0 ;
13566 void *argp1 = 0 ;
13567 int res1 = 0 ;
13568 PyObject * obj0 = 0 ;
13569 char * kwnames[] = {
13570 (char *) "info", NULL
13571 };
13572
13573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13574 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13575 if (!SWIG_IsOK(res1)) {
13576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13577 }
13578 if (!argp1) {
13579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13580 }
13581 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13582 {
13583 if (!wxPyCheckForApp()) SWIG_fail;
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13586 wxPyEndAllowThreads(__tstate);
13587 if (PyErr_Occurred()) SWIG_fail;
13588 }
13589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13590 return resultobj;
13591fail:
13592 return NULL;
d14a1e28
RD
13593}
13594
13595
0085ce49
RD
13596SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13597 PyObject *resultobj = 0;
13598 wxString *arg1 = 0 ;
13599 wxFont *result = 0 ;
13600 bool temp1 = false ;
13601 PyObject * obj0 = 0 ;
13602 char * kwnames[] = {
13603 (char *) "info", NULL
13604 };
13605
13606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13607 {
13608 arg1 = wxString_in_helper(obj0);
13609 if (arg1 == NULL) SWIG_fail;
13610 temp1 = true;
13611 }
13612 {
13613 if (!wxPyCheckForApp()) SWIG_fail;
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13620 {
13621 if (temp1)
13622 delete arg1;
13623 }
13624 return resultobj;
13625fail:
13626 {
13627 if (temp1)
13628 delete arg1;
13629 }
13630 return NULL;
13631}
13632
13633
13634SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13635 PyObject *resultobj = 0;
13636 int arg1 ;
13637 wxFontFamily arg2 ;
13638 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13639 wxString const &arg4_defvalue = wxPyEmptyString ;
13640 wxString *arg4 = (wxString *) &arg4_defvalue ;
13641 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13642 wxFont *result = 0 ;
13643 int val1 ;
13644 int ecode1 = 0 ;
13645 int val2 ;
13646 int ecode2 = 0 ;
13647 int val3 ;
13648 int ecode3 = 0 ;
13649 bool temp4 = false ;
13650 int val5 ;
13651 int ecode5 = 0 ;
13652 PyObject * obj0 = 0 ;
13653 PyObject * obj1 = 0 ;
13654 PyObject * obj2 = 0 ;
13655 PyObject * obj3 = 0 ;
13656 PyObject * obj4 = 0 ;
13657 char * kwnames[] = {
13658 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13659 };
13660
13661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13662 ecode1 = SWIG_AsVal_int(obj0, &val1);
13663 if (!SWIG_IsOK(ecode1)) {
13664 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13665 }
13666 arg1 = static_cast< int >(val1);
13667 ecode2 = SWIG_AsVal_int(obj1, &val2);
13668 if (!SWIG_IsOK(ecode2)) {
13669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13670 }
13671 arg2 = static_cast< wxFontFamily >(val2);
13672 if (obj2) {
13673 ecode3 = SWIG_AsVal_int(obj2, &val3);
13674 if (!SWIG_IsOK(ecode3)) {
13675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13676 }
13677 arg3 = static_cast< int >(val3);
13678 }
13679 if (obj3) {
093d3ff1 13680 {
0085ce49
RD
13681 arg4 = wxString_in_helper(obj3);
13682 if (arg4 == NULL) SWIG_fail;
13683 temp4 = true;
093d3ff1 13684 }
0085ce49
RD
13685 }
13686 if (obj4) {
13687 ecode5 = SWIG_AsVal_int(obj4, &val5);
13688 if (!SWIG_IsOK(ecode5)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13690 }
13691 arg5 = static_cast< wxFontEncoding >(val5);
13692 }
13693 {
13694 if (!wxPyCheckForApp()) SWIG_fail;
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13701 {
13702 if (temp4)
13703 delete arg4;
13704 }
13705 return resultobj;
13706fail:
13707 {
13708 if (temp4)
13709 delete arg4;
13710 }
13711 return NULL;
13712}
13713
13714
13715SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxSize *arg1 = 0 ;
13718 int arg2 ;
13719 int arg3 ;
13720 int arg4 ;
13721 bool arg5 = (bool) false ;
13722 wxString const &arg6_defvalue = wxEmptyString ;
13723 wxString *arg6 = (wxString *) &arg6_defvalue ;
13724 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13725 wxFont *result = 0 ;
13726 wxSize temp1 ;
13727 int val2 ;
13728 int ecode2 = 0 ;
13729 int val3 ;
13730 int ecode3 = 0 ;
13731 int val4 ;
13732 int ecode4 = 0 ;
13733 bool val5 ;
13734 int ecode5 = 0 ;
13735 bool temp6 = false ;
13736 int val7 ;
13737 int ecode7 = 0 ;
13738 PyObject * obj0 = 0 ;
13739 PyObject * obj1 = 0 ;
13740 PyObject * obj2 = 0 ;
13741 PyObject * obj3 = 0 ;
13742 PyObject * obj4 = 0 ;
13743 PyObject * obj5 = 0 ;
13744 PyObject * obj6 = 0 ;
13745 char * kwnames[] = {
13746 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13747 };
13748
13749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13750 {
13751 arg1 = &temp1;
13752 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13753 }
13754 ecode2 = SWIG_AsVal_int(obj1, &val2);
13755 if (!SWIG_IsOK(ecode2)) {
13756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13757 }
13758 arg2 = static_cast< int >(val2);
13759 ecode3 = SWIG_AsVal_int(obj2, &val3);
13760 if (!SWIG_IsOK(ecode3)) {
13761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13762 }
13763 arg3 = static_cast< int >(val3);
13764 ecode4 = SWIG_AsVal_int(obj3, &val4);
13765 if (!SWIG_IsOK(ecode4)) {
13766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13767 }
13768 arg4 = static_cast< int >(val4);
13769 if (obj4) {
13770 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13771 if (!SWIG_IsOK(ecode5)) {
13772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13773 }
13774 arg5 = static_cast< bool >(val5);
13775 }
13776 if (obj5) {
d14a1e28 13777 {
0085ce49
RD
13778 arg6 = wxString_in_helper(obj5);
13779 if (arg6 == NULL) SWIG_fail;
13780 temp6 = true;
d14a1e28 13781 }
0085ce49
RD
13782 }
13783 if (obj6) {
13784 ecode7 = SWIG_AsVal_int(obj6, &val7);
13785 if (!SWIG_IsOK(ecode7)) {
13786 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13787 }
13788 arg7 = static_cast< wxFontEncoding >(val7);
13789 }
13790 {
13791 if (!wxPyCheckForApp()) SWIG_fail;
13792 PyThreadState* __tstate = wxPyBeginAllowThreads();
13793 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13794 wxPyEndAllowThreads(__tstate);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13798 {
13799 if (temp6)
13800 delete arg6;
13801 }
13802 return resultobj;
13803fail:
13804 {
13805 if (temp6)
13806 delete arg6;
13807 }
13808 return NULL;
13809}
13810
13811
13812SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj = 0;
13814 wxSize *arg1 = 0 ;
13815 wxFontFamily arg2 ;
13816 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13817 wxString const &arg4_defvalue = wxEmptyString ;
13818 wxString *arg4 = (wxString *) &arg4_defvalue ;
13819 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13820 wxFont *result = 0 ;
13821 wxSize temp1 ;
13822 int val2 ;
13823 int ecode2 = 0 ;
13824 int val3 ;
13825 int ecode3 = 0 ;
13826 bool temp4 = false ;
13827 int val5 ;
13828 int ecode5 = 0 ;
13829 PyObject * obj0 = 0 ;
13830 PyObject * obj1 = 0 ;
13831 PyObject * obj2 = 0 ;
13832 PyObject * obj3 = 0 ;
13833 PyObject * obj4 = 0 ;
13834 char * kwnames[] = {
13835 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13836 };
13837
13838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13839 {
13840 arg1 = &temp1;
13841 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13842 }
13843 ecode2 = SWIG_AsVal_int(obj1, &val2);
13844 if (!SWIG_IsOK(ecode2)) {
13845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13846 }
13847 arg2 = static_cast< wxFontFamily >(val2);
13848 if (obj2) {
13849 ecode3 = SWIG_AsVal_int(obj2, &val3);
13850 if (!SWIG_IsOK(ecode3)) {
13851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13852 }
13853 arg3 = static_cast< int >(val3);
13854 }
13855 if (obj3) {
093d3ff1 13856 {
0085ce49
RD
13857 arg4 = wxString_in_helper(obj3);
13858 if (arg4 == NULL) SWIG_fail;
13859 temp4 = true;
093d3ff1 13860 }
0085ce49
RD
13861 }
13862 if (obj4) {
13863 ecode5 = SWIG_AsVal_int(obj4, &val5);
13864 if (!SWIG_IsOK(ecode5)) {
13865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13866 }
13867 arg5 = static_cast< wxFontEncoding >(val5);
13868 }
13869 {
13870 if (!wxPyCheckForApp()) SWIG_fail;
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13877 {
13878 if (temp4)
13879 delete arg4;
13880 }
13881 return resultobj;
13882fail:
13883 {
13884 if (temp4)
13885 delete arg4;
13886 }
13887 return NULL;
d14a1e28
RD
13888}
13889
13890
b39fe951 13891SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
13892 PyObject *resultobj = 0;
13893 wxFont *arg1 = (wxFont *) 0 ;
13894 bool result;
13895 void *argp1 = 0 ;
13896 int res1 = 0 ;
13897 PyObject *swig_obj[1] ;
13898
13899 if (!args) SWIG_fail;
13900 swig_obj[0] = args;
13901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13902 if (!SWIG_IsOK(res1)) {
b39fe951 13903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
13904 }
13905 arg1 = reinterpret_cast< wxFont * >(argp1);
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 13908 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
13909 wxPyEndAllowThreads(__tstate);
13910 if (PyErr_Occurred()) SWIG_fail;
13911 }
13912 {
13913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13914 }
13915 return resultobj;
13916fail:
13917 return NULL;
13918}
13919
13920
13921SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 wxFont *arg1 = (wxFont *) 0 ;
13924 wxFont *arg2 = (wxFont *) 0 ;
13925 bool result;
13926 void *argp1 = 0 ;
13927 int res1 = 0 ;
13928 void *argp2 = 0 ;
13929 int res2 = 0 ;
13930 PyObject * obj0 = 0 ;
13931 PyObject * obj1 = 0 ;
13932 char * kwnames[] = {
13933 (char *) "self",(char *) "other", NULL
13934 };
13935
13936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13938 if (!SWIG_IsOK(res1)) {
13939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13940 }
13941 arg1 = reinterpret_cast< wxFont * >(argp1);
13942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13943 if (!SWIG_IsOK(res2)) {
13944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13945 }
13946 arg2 = reinterpret_cast< wxFont * >(argp2);
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13950 wxPyEndAllowThreads(__tstate);
13951 if (PyErr_Occurred()) SWIG_fail;
13952 }
13953 {
13954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13955 }
13956 return resultobj;
13957fail:
13958 return NULL;
13959}
13960
13961
13962SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj = 0;
13964 wxFont *arg1 = (wxFont *) 0 ;
13965 wxFont *arg2 = (wxFont *) 0 ;
13966 bool result;
13967 void *argp1 = 0 ;
13968 int res1 = 0 ;
13969 void *argp2 = 0 ;
13970 int res2 = 0 ;
13971 PyObject * obj0 = 0 ;
13972 PyObject * obj1 = 0 ;
13973 char * kwnames[] = {
13974 (char *) "self",(char *) "other", NULL
13975 };
13976
13977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13979 if (!SWIG_IsOK(res1)) {
13980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13981 }
13982 arg1 = reinterpret_cast< wxFont * >(argp1);
13983 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13984 if (!SWIG_IsOK(res2)) {
13985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13986 }
13987 arg2 = reinterpret_cast< wxFont * >(argp2);
13988 {
13989 PyThreadState* __tstate = wxPyBeginAllowThreads();
13990 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13991 wxPyEndAllowThreads(__tstate);
13992 if (PyErr_Occurred()) SWIG_fail;
13993 }
13994 {
13995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13996 }
13997 return resultobj;
13998fail:
13999 return NULL;
d14a1e28
RD
14000}
14001
14002
0085ce49
RD
14003SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14004 PyObject *resultobj = 0;
14005 wxFont *arg1 = (wxFont *) 0 ;
14006 int result;
14007 void *argp1 = 0 ;
14008 int res1 = 0 ;
14009 PyObject *swig_obj[1] ;
14010
14011 if (!args) SWIG_fail;
14012 swig_obj[0] = args;
14013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14014 if (!SWIG_IsOK(res1)) {
14015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14016 }
14017 arg1 = reinterpret_cast< wxFont * >(argp1);
14018 {
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 result = (int)((wxFont const *)arg1)->GetPointSize();
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 resultobj = SWIG_From_int(static_cast< int >(result));
14025 return resultobj;
14026fail:
14027 return NULL;
d14a1e28
RD
14028}
14029
14030
0085ce49
RD
14031SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14032 PyObject *resultobj = 0;
14033 wxFont *arg1 = (wxFont *) 0 ;
14034 wxSize result;
14035 void *argp1 = 0 ;
14036 int res1 = 0 ;
14037 PyObject *swig_obj[1] ;
14038
14039 if (!args) SWIG_fail;
14040 swig_obj[0] = args;
14041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14042 if (!SWIG_IsOK(res1)) {
14043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14044 }
14045 arg1 = reinterpret_cast< wxFont * >(argp1);
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = ((wxFont const *)arg1)->GetPixelSize();
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14053 return resultobj;
14054fail:
14055 return NULL;
d14a1e28
RD
14056}
14057
14058
0085ce49
RD
14059SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14060 PyObject *resultobj = 0;
14061 wxFont *arg1 = (wxFont *) 0 ;
14062 bool result;
14063 void *argp1 = 0 ;
14064 int res1 = 0 ;
14065 PyObject *swig_obj[1] ;
14066
14067 if (!args) SWIG_fail;
14068 swig_obj[0] = args;
14069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14070 if (!SWIG_IsOK(res1)) {
14071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14072 }
14073 arg1 = reinterpret_cast< wxFont * >(argp1);
14074 {
14075 PyThreadState* __tstate = wxPyBeginAllowThreads();
14076 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 {
14081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14082 }
14083 return resultobj;
14084fail:
14085 return NULL;
d14a1e28
RD
14086}
14087
14088
0085ce49
RD
14089SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14090 PyObject *resultobj = 0;
14091 wxFont *arg1 = (wxFont *) 0 ;
14092 int result;
14093 void *argp1 = 0 ;
14094 int res1 = 0 ;
14095 PyObject *swig_obj[1] ;
14096
14097 if (!args) SWIG_fail;
14098 swig_obj[0] = args;
14099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14100 if (!SWIG_IsOK(res1)) {
14101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14102 }
14103 arg1 = reinterpret_cast< wxFont * >(argp1);
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 result = (int)((wxFont const *)arg1)->GetFamily();
14107 wxPyEndAllowThreads(__tstate);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 }
14110 resultobj = SWIG_From_int(static_cast< int >(result));
14111 return resultobj;
14112fail:
14113 return NULL;
d14a1e28
RD
14114}
14115
14116
0085ce49
RD
14117SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14118 PyObject *resultobj = 0;
14119 wxFont *arg1 = (wxFont *) 0 ;
14120 int result;
14121 void *argp1 = 0 ;
14122 int res1 = 0 ;
14123 PyObject *swig_obj[1] ;
14124
14125 if (!args) SWIG_fail;
14126 swig_obj[0] = args;
14127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14128 if (!SWIG_IsOK(res1)) {
14129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14130 }
14131 arg1 = reinterpret_cast< wxFont * >(argp1);
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = (int)((wxFont const *)arg1)->GetStyle();
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_From_int(static_cast< int >(result));
14139 return resultobj;
14140fail:
14141 return NULL;
d14a1e28
RD
14142}
14143
14144
0085ce49
RD
14145SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14146 PyObject *resultobj = 0;
14147 wxFont *arg1 = (wxFont *) 0 ;
14148 int result;
14149 void *argp1 = 0 ;
14150 int res1 = 0 ;
14151 PyObject *swig_obj[1] ;
14152
14153 if (!args) SWIG_fail;
14154 swig_obj[0] = args;
14155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14156 if (!SWIG_IsOK(res1)) {
14157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14158 }
14159 arg1 = reinterpret_cast< wxFont * >(argp1);
14160 {
14161 PyThreadState* __tstate = wxPyBeginAllowThreads();
14162 result = (int)((wxFont const *)arg1)->GetWeight();
14163 wxPyEndAllowThreads(__tstate);
14164 if (PyErr_Occurred()) SWIG_fail;
14165 }
14166 resultobj = SWIG_From_int(static_cast< int >(result));
14167 return resultobj;
14168fail:
14169 return NULL;
d14a1e28
RD
14170}
14171
14172
0085ce49
RD
14173SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14174 PyObject *resultobj = 0;
14175 wxFont *arg1 = (wxFont *) 0 ;
14176 bool result;
14177 void *argp1 = 0 ;
14178 int res1 = 0 ;
14179 PyObject *swig_obj[1] ;
14180
14181 if (!args) SWIG_fail;
14182 swig_obj[0] = args;
14183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14184 if (!SWIG_IsOK(res1)) {
14185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14186 }
14187 arg1 = reinterpret_cast< wxFont * >(argp1);
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14191 wxPyEndAllowThreads(__tstate);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 }
14194 {
14195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14196 }
14197 return resultobj;
14198fail:
14199 return NULL;
d14a1e28
RD
14200}
14201
14202
0085ce49
RD
14203SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14204 PyObject *resultobj = 0;
14205 wxFont *arg1 = (wxFont *) 0 ;
14206 wxString result;
14207 void *argp1 = 0 ;
14208 int res1 = 0 ;
14209 PyObject *swig_obj[1] ;
14210
14211 if (!args) SWIG_fail;
14212 swig_obj[0] = args;
14213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14214 if (!SWIG_IsOK(res1)) {
14215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14216 }
14217 arg1 = reinterpret_cast< wxFont * >(argp1);
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = ((wxFont const *)arg1)->GetFaceName();
14221 wxPyEndAllowThreads(__tstate);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
14224 {
14225#if wxUSE_UNICODE
14226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14227#else
14228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14229#endif
14230 }
14231 return resultobj;
14232fail:
14233 return NULL;
d14a1e28
RD
14234}
14235
14236
0085ce49
RD
14237SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14238 PyObject *resultobj = 0;
14239 wxFont *arg1 = (wxFont *) 0 ;
14240 wxFontEncoding result;
14241 void *argp1 = 0 ;
14242 int res1 = 0 ;
14243 PyObject *swig_obj[1] ;
14244
14245 if (!args) SWIG_fail;
14246 swig_obj[0] = args;
14247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14248 if (!SWIG_IsOK(res1)) {
14249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14250 }
14251 arg1 = reinterpret_cast< wxFont * >(argp1);
14252 {
14253 PyThreadState* __tstate = wxPyBeginAllowThreads();
14254 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14255 wxPyEndAllowThreads(__tstate);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 resultobj = SWIG_From_int(static_cast< int >(result));
14259 return resultobj;
14260fail:
14261 return NULL;
d14a1e28
RD
14262}
14263
14264
0085ce49
RD
14265SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14266 PyObject *resultobj = 0;
14267 wxFont *arg1 = (wxFont *) 0 ;
14268 wxNativeFontInfo *result = 0 ;
14269 void *argp1 = 0 ;
14270 int res1 = 0 ;
14271 PyObject *swig_obj[1] ;
14272
14273 if (!args) SWIG_fail;
14274 swig_obj[0] = args;
14275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14276 if (!SWIG_IsOK(res1)) {
14277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14278 }
14279 arg1 = reinterpret_cast< wxFont * >(argp1);
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14287 return resultobj;
14288fail:
14289 return NULL;
d14a1e28
RD
14290}
14291
14292
0085ce49
RD
14293SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14294 PyObject *resultobj = 0;
14295 wxFont *arg1 = (wxFont *) 0 ;
14296 bool result;
14297 void *argp1 = 0 ;
14298 int res1 = 0 ;
14299 PyObject *swig_obj[1] ;
14300
14301 if (!args) SWIG_fail;
14302 swig_obj[0] = args;
14303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14304 if (!SWIG_IsOK(res1)) {
14305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14306 }
14307 arg1 = reinterpret_cast< wxFont * >(argp1);
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14316 }
14317 return resultobj;
14318fail:
14319 return NULL;
d14a1e28
RD
14320}
14321
14322
0085ce49
RD
14323SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14324 PyObject *resultobj = 0;
14325 wxFont *arg1 = (wxFont *) 0 ;
14326 wxString result;
14327 void *argp1 = 0 ;
14328 int res1 = 0 ;
14329 PyObject *swig_obj[1] ;
14330
14331 if (!args) SWIG_fail;
14332 swig_obj[0] = args;
14333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14334 if (!SWIG_IsOK(res1)) {
14335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14336 }
14337 arg1 = reinterpret_cast< wxFont * >(argp1);
14338 {
14339 PyThreadState* __tstate = wxPyBeginAllowThreads();
14340 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 {
14345#if wxUSE_UNICODE
14346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14347#else
14348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14349#endif
14350 }
14351 return resultobj;
14352fail:
14353 return NULL;
d14a1e28
RD
14354}
14355
14356
0085ce49
RD
14357SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14358 PyObject *resultobj = 0;
14359 wxFont *arg1 = (wxFont *) 0 ;
14360 wxString result;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 PyObject *swig_obj[1] ;
14364
14365 if (!args) SWIG_fail;
14366 swig_obj[0] = args;
14367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14368 if (!SWIG_IsOK(res1)) {
14369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14370 }
14371 arg1 = reinterpret_cast< wxFont * >(argp1);
14372 {
14373 PyThreadState* __tstate = wxPyBeginAllowThreads();
14374 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 {
14379#if wxUSE_UNICODE
14380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14381#else
14382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14383#endif
14384 }
14385 return resultobj;
14386fail:
14387 return NULL;
14388}
14389
14390
14391SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14392 PyObject *resultobj = 0;
14393 wxFont *arg1 = (wxFont *) 0 ;
14394 int arg2 ;
14395 void *argp1 = 0 ;
14396 int res1 = 0 ;
14397 int val2 ;
14398 int ecode2 = 0 ;
14399 PyObject * obj0 = 0 ;
14400 PyObject * obj1 = 0 ;
14401 char * kwnames[] = {
14402 (char *) "self",(char *) "pointSize", NULL
14403 };
14404
14405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14407 if (!SWIG_IsOK(res1)) {
14408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14409 }
14410 arg1 = reinterpret_cast< wxFont * >(argp1);
14411 ecode2 = SWIG_AsVal_int(obj1, &val2);
14412 if (!SWIG_IsOK(ecode2)) {
14413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14414 }
14415 arg2 = static_cast< int >(val2);
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 (arg1)->SetPointSize(arg2);
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 resultobj = SWIG_Py_Void();
14423 return resultobj;
14424fail:
14425 return NULL;
14426}
14427
14428
14429SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14430 PyObject *resultobj = 0;
14431 wxFont *arg1 = (wxFont *) 0 ;
14432 wxSize *arg2 = 0 ;
14433 void *argp1 = 0 ;
14434 int res1 = 0 ;
14435 wxSize temp2 ;
14436 PyObject * obj0 = 0 ;
14437 PyObject * obj1 = 0 ;
14438 char * kwnames[] = {
14439 (char *) "self",(char *) "pixelSize", NULL
14440 };
14441
14442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14444 if (!SWIG_IsOK(res1)) {
14445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14446 }
14447 arg1 = reinterpret_cast< wxFont * >(argp1);
14448 {
14449 arg2 = &temp2;
14450 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14451 }
14452 {
14453 PyThreadState* __tstate = wxPyBeginAllowThreads();
14454 (arg1)->SetPixelSize((wxSize const &)*arg2);
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 resultobj = SWIG_Py_Void();
14459 return resultobj;
14460fail:
14461 return NULL;
14462}
14463
14464
14465SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14466 PyObject *resultobj = 0;
14467 wxFont *arg1 = (wxFont *) 0 ;
14468 int arg2 ;
14469 void *argp1 = 0 ;
14470 int res1 = 0 ;
14471 int val2 ;
14472 int ecode2 = 0 ;
14473 PyObject * obj0 = 0 ;
14474 PyObject * obj1 = 0 ;
14475 char * kwnames[] = {
14476 (char *) "self",(char *) "family", NULL
14477 };
14478
14479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14481 if (!SWIG_IsOK(res1)) {
14482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14483 }
14484 arg1 = reinterpret_cast< wxFont * >(argp1);
14485 ecode2 = SWIG_AsVal_int(obj1, &val2);
14486 if (!SWIG_IsOK(ecode2)) {
14487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14488 }
14489 arg2 = static_cast< int >(val2);
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 (arg1)->SetFamily(arg2);
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 resultobj = SWIG_Py_Void();
14497 return resultobj;
14498fail:
14499 return NULL;
14500}
14501
14502
14503SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj = 0;
14505 wxFont *arg1 = (wxFont *) 0 ;
14506 int arg2 ;
14507 void *argp1 = 0 ;
14508 int res1 = 0 ;
14509 int val2 ;
14510 int ecode2 = 0 ;
14511 PyObject * obj0 = 0 ;
14512 PyObject * obj1 = 0 ;
14513 char * kwnames[] = {
14514 (char *) "self",(char *) "style", NULL
14515 };
14516
14517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14519 if (!SWIG_IsOK(res1)) {
14520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14521 }
14522 arg1 = reinterpret_cast< wxFont * >(argp1);
14523 ecode2 = SWIG_AsVal_int(obj1, &val2);
14524 if (!SWIG_IsOK(ecode2)) {
14525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14526 }
14527 arg2 = static_cast< int >(val2);
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 (arg1)->SetStyle(arg2);
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 resultobj = SWIG_Py_Void();
14535 return resultobj;
14536fail:
14537 return NULL;
14538}
14539
14540
14541SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14542 PyObject *resultobj = 0;
14543 wxFont *arg1 = (wxFont *) 0 ;
14544 int arg2 ;
14545 void *argp1 = 0 ;
14546 int res1 = 0 ;
14547 int val2 ;
14548 int ecode2 = 0 ;
14549 PyObject * obj0 = 0 ;
14550 PyObject * obj1 = 0 ;
14551 char * kwnames[] = {
14552 (char *) "self",(char *) "weight", NULL
14553 };
14554
14555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14557 if (!SWIG_IsOK(res1)) {
14558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14559 }
14560 arg1 = reinterpret_cast< wxFont * >(argp1);
14561 ecode2 = SWIG_AsVal_int(obj1, &val2);
14562 if (!SWIG_IsOK(ecode2)) {
14563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14564 }
14565 arg2 = static_cast< int >(val2);
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 (arg1)->SetWeight(arg2);
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 resultobj = SWIG_Py_Void();
14573 return resultobj;
14574fail:
14575 return NULL;
14576}
14577
14578
14579SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14580 PyObject *resultobj = 0;
14581 wxFont *arg1 = (wxFont *) 0 ;
14582 wxString *arg2 = 0 ;
704eda0c 14583 bool result;
0085ce49
RD
14584 void *argp1 = 0 ;
14585 int res1 = 0 ;
14586 bool temp2 = false ;
14587 PyObject * obj0 = 0 ;
14588 PyObject * obj1 = 0 ;
14589 char * kwnames[] = {
14590 (char *) "self",(char *) "faceName", NULL
14591 };
14592
14593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14595 if (!SWIG_IsOK(res1)) {
14596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14597 }
14598 arg1 = reinterpret_cast< wxFont * >(argp1);
14599 {
14600 arg2 = wxString_in_helper(obj1);
14601 if (arg2 == NULL) SWIG_fail;
14602 temp2 = true;
14603 }
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14606 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
704eda0c
RD
14610 {
14611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14612 }
0085ce49
RD
14613 {
14614 if (temp2)
14615 delete arg2;
14616 }
14617 return resultobj;
14618fail:
14619 {
14620 if (temp2)
14621 delete arg2;
14622 }
14623 return NULL;
14624}
14625
14626
14627SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14628 PyObject *resultobj = 0;
14629 wxFont *arg1 = (wxFont *) 0 ;
14630 bool arg2 ;
14631 void *argp1 = 0 ;
14632 int res1 = 0 ;
14633 bool val2 ;
14634 int ecode2 = 0 ;
14635 PyObject * obj0 = 0 ;
14636 PyObject * obj1 = 0 ;
14637 char * kwnames[] = {
14638 (char *) "self",(char *) "underlined", NULL
14639 };
14640
14641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14643 if (!SWIG_IsOK(res1)) {
14644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14645 }
14646 arg1 = reinterpret_cast< wxFont * >(argp1);
14647 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14648 if (!SWIG_IsOK(ecode2)) {
14649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14650 }
14651 arg2 = static_cast< bool >(val2);
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 (arg1)->SetUnderlined(arg2);
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 resultobj = SWIG_Py_Void();
14659 return resultobj;
14660fail:
14661 return NULL;
14662}
14663
14664
14665SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj = 0;
14667 wxFont *arg1 = (wxFont *) 0 ;
14668 wxFontEncoding arg2 ;
14669 void *argp1 = 0 ;
14670 int res1 = 0 ;
14671 int val2 ;
14672 int ecode2 = 0 ;
14673 PyObject * obj0 = 0 ;
14674 PyObject * obj1 = 0 ;
14675 char * kwnames[] = {
14676 (char *) "self",(char *) "encoding", NULL
14677 };
14678
14679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14681 if (!SWIG_IsOK(res1)) {
14682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14683 }
14684 arg1 = reinterpret_cast< wxFont * >(argp1);
14685 ecode2 = SWIG_AsVal_int(obj1, &val2);
14686 if (!SWIG_IsOK(ecode2)) {
14687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14688 }
14689 arg2 = static_cast< wxFontEncoding >(val2);
14690 {
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 (arg1)->SetEncoding(arg2);
14693 wxPyEndAllowThreads(__tstate);
14694 if (PyErr_Occurred()) SWIG_fail;
14695 }
14696 resultobj = SWIG_Py_Void();
14697 return resultobj;
14698fail:
14699 return NULL;
14700}
14701
14702
14703SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14704 PyObject *resultobj = 0;
14705 wxFont *arg1 = (wxFont *) 0 ;
14706 wxNativeFontInfo *arg2 = 0 ;
14707 void *argp1 = 0 ;
14708 int res1 = 0 ;
14709 void *argp2 = 0 ;
14710 int res2 = 0 ;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 char * kwnames[] = {
14714 (char *) "self",(char *) "info", NULL
14715 };
14716
14717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14719 if (!SWIG_IsOK(res1)) {
14720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14721 }
14722 arg1 = reinterpret_cast< wxFont * >(argp1);
14723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14724 if (!SWIG_IsOK(res2)) {
14725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14726 }
14727 if (!argp2) {
14728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14729 }
14730 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14731 {
14732 PyThreadState* __tstate = wxPyBeginAllowThreads();
14733 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 resultobj = SWIG_Py_Void();
14738 return resultobj;
14739fail:
14740 return NULL;
14741}
14742
14743
14744SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14745 PyObject *resultobj = 0;
14746 wxFont *arg1 = (wxFont *) 0 ;
14747 wxString *arg2 = 0 ;
704eda0c 14748 bool result;
0085ce49
RD
14749 void *argp1 = 0 ;
14750 int res1 = 0 ;
14751 bool temp2 = false ;
14752 PyObject * obj0 = 0 ;
14753 PyObject * obj1 = 0 ;
14754 char * kwnames[] = {
14755 (char *) "self",(char *) "info", NULL
14756 };
14757
14758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14760 if (!SWIG_IsOK(res1)) {
14761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14762 }
14763 arg1 = reinterpret_cast< wxFont * >(argp1);
14764 {
14765 arg2 = wxString_in_helper(obj1);
14766 if (arg2 == NULL) SWIG_fail;
14767 temp2 = true;
14768 }
14769 {
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14771 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
704eda0c
RD
14775 {
14776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14777 }
0085ce49
RD
14778 {
14779 if (temp2)
14780 delete arg2;
14781 }
14782 return resultobj;
14783fail:
14784 {
14785 if (temp2)
14786 delete arg2;
14787 }
14788 return NULL;
d14a1e28
RD
14789}
14790
14791
0085ce49
RD
14792SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj = 0;
14794 wxFont *arg1 = (wxFont *) 0 ;
14795 wxString *arg2 = 0 ;
704eda0c 14796 bool result;
0085ce49
RD
14797 void *argp1 = 0 ;
14798 int res1 = 0 ;
14799 bool temp2 = false ;
14800 PyObject * obj0 = 0 ;
14801 PyObject * obj1 = 0 ;
14802 char * kwnames[] = {
14803 (char *) "self",(char *) "info", NULL
14804 };
14805
14806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14808 if (!SWIG_IsOK(res1)) {
14809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14810 }
14811 arg1 = reinterpret_cast< wxFont * >(argp1);
14812 {
14813 arg2 = wxString_in_helper(obj1);
14814 if (arg2 == NULL) SWIG_fail;
14815 temp2 = true;
14816 }
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14819 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
704eda0c
RD
14823 {
14824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14825 }
0085ce49
RD
14826 {
14827 if (temp2)
14828 delete arg2;
14829 }
14830 return resultobj;
14831fail:
14832 {
14833 if (temp2)
14834 delete arg2;
14835 }
14836 return NULL;
d14a1e28
RD
14837}
14838
14839
0085ce49
RD
14840SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14841 PyObject *resultobj = 0;
14842 wxFont *arg1 = (wxFont *) 0 ;
14843 wxString result;
14844 void *argp1 = 0 ;
14845 int res1 = 0 ;
14846 PyObject *swig_obj[1] ;
14847
14848 if (!args) SWIG_fail;
14849 swig_obj[0] = args;
14850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14851 if (!SWIG_IsOK(res1)) {
14852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14853 }
14854 arg1 = reinterpret_cast< wxFont * >(argp1);
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = ((wxFont const *)arg1)->GetFamilyString();
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 {
14862#if wxUSE_UNICODE
14863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14864#else
14865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14866#endif
14867 }
14868 return resultobj;
14869fail:
14870 return NULL;
d14a1e28
RD
14871}
14872
14873
0085ce49
RD
14874SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14875 PyObject *resultobj = 0;
14876 wxFont *arg1 = (wxFont *) 0 ;
14877 wxString result;
14878 void *argp1 = 0 ;
14879 int res1 = 0 ;
14880 PyObject *swig_obj[1] ;
14881
14882 if (!args) SWIG_fail;
14883 swig_obj[0] = args;
14884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14887 }
14888 arg1 = reinterpret_cast< wxFont * >(argp1);
14889 {
14890 PyThreadState* __tstate = wxPyBeginAllowThreads();
14891 result = ((wxFont const *)arg1)->GetStyleString();
14892 wxPyEndAllowThreads(__tstate);
14893 if (PyErr_Occurred()) SWIG_fail;
14894 }
14895 {
14896#if wxUSE_UNICODE
14897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14898#else
14899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14900#endif
14901 }
14902 return resultobj;
14903fail:
14904 return NULL;
d14a1e28
RD
14905}
14906
14907
0085ce49
RD
14908SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14909 PyObject *resultobj = 0;
14910 wxFont *arg1 = (wxFont *) 0 ;
14911 wxString result;
14912 void *argp1 = 0 ;
14913 int res1 = 0 ;
14914 PyObject *swig_obj[1] ;
14915
14916 if (!args) SWIG_fail;
14917 swig_obj[0] = args;
14918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14921 }
14922 arg1 = reinterpret_cast< wxFont * >(argp1);
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 result = ((wxFont const *)arg1)->GetWeightString();
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 {
d14a1e28 14930#if wxUSE_UNICODE
0085ce49 14931 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 14932#else
0085ce49 14933 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 14934#endif
0085ce49
RD
14935 }
14936 return resultobj;
14937fail:
14938 return NULL;
14939}
14940
14941
14942SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj = 0;
14944 wxFont *arg1 = (wxFont *) 0 ;
14945 bool arg2 = (bool) true ;
14946 void *argp1 = 0 ;
14947 int res1 = 0 ;
14948 bool val2 ;
14949 int ecode2 = 0 ;
14950 PyObject * obj0 = 0 ;
14951 PyObject * obj1 = 0 ;
14952 char * kwnames[] = {
14953 (char *) "self",(char *) "no", NULL
14954 };
14955
14956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14958 if (!SWIG_IsOK(res1)) {
14959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14960 }
14961 arg1 = reinterpret_cast< wxFont * >(argp1);
14962 if (obj1) {
14963 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14964 if (!SWIG_IsOK(ecode2)) {
14965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14966 }
14967 arg2 = static_cast< bool >(val2);
14968 }
14969 {
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 (arg1)->SetNoAntiAliasing(arg2);
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 resultobj = SWIG_Py_Void();
14976 return resultobj;
14977fail:
14978 return NULL;
d14a1e28
RD
14979}
14980
14981
0085ce49
RD
14982SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14983 PyObject *resultobj = 0;
14984 wxFont *arg1 = (wxFont *) 0 ;
14985 bool result;
14986 void *argp1 = 0 ;
14987 int res1 = 0 ;
14988 PyObject *swig_obj[1] ;
14989
14990 if (!args) SWIG_fail;
14991 swig_obj[0] = args;
14992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14993 if (!SWIG_IsOK(res1)) {
14994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14995 }
14996 arg1 = reinterpret_cast< wxFont * >(argp1);
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15000 wxPyEndAllowThreads(__tstate);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 }
15003 {
15004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15005 }
15006 return resultobj;
15007fail:
15008 return NULL;
d14a1e28
RD
15009}
15010
15011
0085ce49
RD
15012SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15013 PyObject *resultobj = 0;
15014 wxFontEncoding result;
15015
15016 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15017 {
15018 if (!wxPyCheckForApp()) SWIG_fail;
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_From_int(static_cast< int >(result));
15025 return resultobj;
15026fail:
15027 return NULL;
d14a1e28
RD
15028}
15029
15030
0085ce49
RD
15031SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFontEncoding arg1 ;
15034 int val1 ;
15035 int ecode1 = 0 ;
15036 PyObject * obj0 = 0 ;
15037 char * kwnames[] = {
15038 (char *) "encoding", NULL
15039 };
15040
15041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15042 ecode1 = SWIG_AsVal_int(obj0, &val1);
15043 if (!SWIG_IsOK(ecode1)) {
15044 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15045 }
15046 arg1 = static_cast< wxFontEncoding >(val1);
15047 {
15048 if (!wxPyCheckForApp()) SWIG_fail;
15049 PyThreadState* __tstate = wxPyBeginAllowThreads();
15050 wxFont::SetDefaultEncoding(arg1);
15051 wxPyEndAllowThreads(__tstate);
15052 if (PyErr_Occurred()) SWIG_fail;
15053 }
15054 resultobj = SWIG_Py_Void();
15055 return resultobj;
15056fail:
15057 return NULL;
d14a1e28
RD
15058}
15059
15060
0085ce49
RD
15061SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15062 PyObject *obj;
15063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15064 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15065 return SWIG_Py_Void();
d14a1e28
RD
15066}
15067
0085ce49
RD
15068SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15069 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15070}
15071
0085ce49
RD
15072SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15073 PyObject *resultobj = 0;
15074 wxPyFontEnumerator *result = 0 ;
15075
15076 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15077 {
15078 if (!wxPyCheckForApp()) SWIG_fail;
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15085 return resultobj;
15086fail:
15087 return NULL;
d14a1e28
RD
15088}
15089
15090
0085ce49
RD
15091SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15092 PyObject *resultobj = 0;
15093 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15094 void *argp1 = 0 ;
15095 int res1 = 0 ;
15096 PyObject *swig_obj[1] ;
15097
15098 if (!args) SWIG_fail;
15099 swig_obj[0] = args;
15100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15101 if (!SWIG_IsOK(res1)) {
15102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15103 }
15104 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 delete arg1;
d14a1e28 15108
0085ce49
RD
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = SWIG_Py_Void();
15113 return resultobj;
15114fail:
15115 return NULL;
15116}
15117
15118
15119SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj = 0;
15121 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15122 PyObject *arg2 = (PyObject *) 0 ;
15123 PyObject *arg3 = (PyObject *) 0 ;
15124 bool arg4 ;
15125 void *argp1 = 0 ;
15126 int res1 = 0 ;
15127 bool val4 ;
15128 int ecode4 = 0 ;
15129 PyObject * obj0 = 0 ;
15130 PyObject * obj1 = 0 ;
15131 PyObject * obj2 = 0 ;
15132 PyObject * obj3 = 0 ;
15133 char * kwnames[] = {
15134 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15135 };
15136
15137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15139 if (!SWIG_IsOK(res1)) {
15140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15141 }
15142 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15143 arg2 = obj1;
15144 arg3 = obj2;
15145 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15146 if (!SWIG_IsOK(ecode4)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15148 }
15149 arg4 = static_cast< bool >(val4);
15150 {
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15153 wxPyEndAllowThreads(__tstate);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 }
15156 resultobj = SWIG_Py_Void();
15157 return resultobj;
15158fail:
15159 return NULL;
15160}
15161
15162
15163SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15164 PyObject *resultobj = 0;
15165 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15166 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15167 bool arg3 = (bool) false ;
15168 bool result;
15169 void *argp1 = 0 ;
15170 int res1 = 0 ;
15171 int val2 ;
15172 int ecode2 = 0 ;
15173 bool val3 ;
15174 int ecode3 = 0 ;
15175 PyObject * obj0 = 0 ;
15176 PyObject * obj1 = 0 ;
15177 PyObject * obj2 = 0 ;
15178 char * kwnames[] = {
15179 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15180 };
15181
15182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15184 if (!SWIG_IsOK(res1)) {
15185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15186 }
15187 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15188 if (obj1) {
15189 ecode2 = SWIG_AsVal_int(obj1, &val2);
15190 if (!SWIG_IsOK(ecode2)) {
15191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15192 }
15193 arg2 = static_cast< wxFontEncoding >(val2);
15194 }
15195 if (obj2) {
15196 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15197 if (!SWIG_IsOK(ecode3)) {
15198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15199 }
15200 arg3 = static_cast< bool >(val3);
15201 }
15202 {
15203 PyThreadState* __tstate = wxPyBeginAllowThreads();
15204 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15205 wxPyEndAllowThreads(__tstate);
15206 if (PyErr_Occurred()) SWIG_fail;
15207 }
15208 {
15209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15210 }
15211 return resultobj;
15212fail:
15213 return NULL;
15214}
15215
15216
15217SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj = 0;
15219 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15220 wxString const &arg2_defvalue = wxPyEmptyString ;
15221 wxString *arg2 = (wxString *) &arg2_defvalue ;
15222 bool result;
15223 void *argp1 = 0 ;
15224 int res1 = 0 ;
15225 bool temp2 = false ;
15226 PyObject * obj0 = 0 ;
15227 PyObject * obj1 = 0 ;
15228 char * kwnames[] = {
15229 (char *) "self",(char *) "facename", NULL
15230 };
15231
15232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15234 if (!SWIG_IsOK(res1)) {
15235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15236 }
15237 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15238 if (obj1) {
d14a1e28 15239 {
0085ce49
RD
15240 arg2 = wxString_in_helper(obj1);
15241 if (arg2 == NULL) SWIG_fail;
15242 temp2 = true;
d14a1e28 15243 }
0085ce49
RD
15244 }
15245 {
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15248 wxPyEndAllowThreads(__tstate);
15249 if (PyErr_Occurred()) SWIG_fail;
15250 }
15251 {
15252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15253 }
15254 {
15255 if (temp2)
15256 delete arg2;
15257 }
15258 return resultobj;
15259fail:
15260 {
15261 if (temp2)
15262 delete arg2;
15263 }
15264 return NULL;
d14a1e28
RD
15265}
15266
15267
0085ce49
RD
15268SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15269 PyObject *resultobj = 0;
0085ce49 15270 PyObject *result = 0 ;
0085ce49 15271
704eda0c 15272 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15275 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 resultobj = result;
15280 return resultobj;
15281fail:
15282 return NULL;
d14a1e28
RD
15283}
15284
15285
0085ce49
RD
15286SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15287 PyObject *resultobj = 0;
0085ce49 15288 PyObject *result = 0 ;
0085ce49 15289
704eda0c 15290 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15291 {
15292 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15293 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15294 wxPyEndAllowThreads(__tstate);
15295 if (PyErr_Occurred()) SWIG_fail;
15296 }
15297 resultobj = result;
15298 return resultobj;
15299fail:
15300 return NULL;
d14a1e28
RD
15301}
15302
15303
704eda0c
RD
15304SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15305 PyObject *resultobj = 0;
15306 wxString *arg1 = 0 ;
15307 bool result;
15308 bool temp1 = false ;
15309 PyObject * obj0 = 0 ;
15310 char * kwnames[] = {
15311 (char *) "str", NULL
15312 };
15313
15314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15315 {
15316 arg1 = wxString_in_helper(obj0);
15317 if (arg1 == NULL) SWIG_fail;
15318 temp1 = true;
15319 }
15320 {
15321 PyThreadState* __tstate = wxPyBeginAllowThreads();
15322 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15323 wxPyEndAllowThreads(__tstate);
15324 if (PyErr_Occurred()) SWIG_fail;
15325 }
15326 {
15327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15328 }
15329 {
15330 if (temp1)
15331 delete arg1;
15332 }
15333 return resultobj;
15334fail:
15335 {
15336 if (temp1)
15337 delete arg1;
15338 }
15339 return NULL;
15340}
15341
15342
0085ce49
RD
15343SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15344 PyObject *obj;
15345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15346 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15347 return SWIG_Py_Void();
d14a1e28
RD
15348}
15349
0085ce49
RD
15350SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15351 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15352}
15353
0085ce49
RD
15354SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15355 PyObject *resultobj = 0;
15356 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15357 int arg2 ;
15358 void *argp1 = 0 ;
15359 int res1 = 0 ;
15360 int val2 ;
15361 int ecode2 = 0 ;
15362 PyObject *swig_obj[2] ;
15363
15364 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15366 if (!SWIG_IsOK(res1)) {
15367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15368 }
15369 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15370 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15371 if (!SWIG_IsOK(ecode2)) {
15372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15373 }
15374 arg2 = static_cast< int >(val2);
15375 if (arg1) (arg1)->Language = arg2;
15376
15377 resultobj = SWIG_Py_Void();
15378 return resultobj;
15379fail:
15380 return NULL;
d14a1e28
RD
15381}
15382
15383
0085ce49
RD
15384SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15385 PyObject *resultobj = 0;
15386 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15387 int result;
15388 void *argp1 = 0 ;
15389 int res1 = 0 ;
15390 PyObject *swig_obj[1] ;
15391
15392 if (!args) SWIG_fail;
15393 swig_obj[0] = args;
15394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15395 if (!SWIG_IsOK(res1)) {
15396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15397 }
15398 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15399 result = (int) ((arg1)->Language);
15400 resultobj = SWIG_From_int(static_cast< int >(result));
15401 return resultobj;
15402fail:
15403 return NULL;
15404}
15405
15406
15407SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15408 PyObject *resultobj = 0;
15409 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15410 wxString *arg2 = (wxString *) 0 ;
15411 void *argp1 = 0 ;
15412 int res1 = 0 ;
15413 bool temp2 = false ;
15414 PyObject *swig_obj[2] ;
15415
15416 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15418 if (!SWIG_IsOK(res1)) {
15419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15420 }
15421 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15422 {
15423 arg2 = wxString_in_helper(swig_obj[1]);
15424 if (arg2 == NULL) SWIG_fail;
15425 temp2 = true;
15426 }
15427 if (arg1) (arg1)->CanonicalName = *arg2;
15428
15429 resultobj = SWIG_Py_Void();
15430 {
15431 if (temp2)
15432 delete arg2;
15433 }
15434 return resultobj;
15435fail:
15436 {
15437 if (temp2)
15438 delete arg2;
15439 }
15440 return NULL;
d14a1e28
RD
15441}
15442
15443
0085ce49
RD
15444SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15445 PyObject *resultobj = 0;
15446 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15447 wxString *result = 0 ;
15448 void *argp1 = 0 ;
15449 int res1 = 0 ;
15450 PyObject *swig_obj[1] ;
15451
15452 if (!args) SWIG_fail;
15453 swig_obj[0] = args;
15454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15455 if (!SWIG_IsOK(res1)) {
15456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15457 }
15458 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15459 result = (wxString *)& ((arg1)->CanonicalName);
15460 {
093d3ff1 15461#if wxUSE_UNICODE
0085ce49 15462 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15463#else
0085ce49 15464 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15465#endif
0085ce49
RD
15466 }
15467 return resultobj;
15468fail:
15469 return NULL;
d14a1e28
RD
15470}
15471
15472
0085ce49
RD
15473SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15474 PyObject *resultobj = 0;
15475 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15476 wxString *arg2 = (wxString *) 0 ;
15477 void *argp1 = 0 ;
15478 int res1 = 0 ;
15479 bool temp2 = false ;
15480 PyObject *swig_obj[2] ;
15481
15482 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15486 }
15487 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15488 {
15489 arg2 = wxString_in_helper(swig_obj[1]);
15490 if (arg2 == NULL) SWIG_fail;
15491 temp2 = true;
15492 }
15493 if (arg1) (arg1)->Description = *arg2;
15494
15495 resultobj = SWIG_Py_Void();
15496 {
15497 if (temp2)
15498 delete arg2;
15499 }
15500 return resultobj;
15501fail:
15502 {
15503 if (temp2)
15504 delete arg2;
15505 }
15506 return NULL;
d14a1e28
RD
15507}
15508
15509
0085ce49
RD
15510SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15511 PyObject *resultobj = 0;
15512 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15513 wxString *result = 0 ;
15514 void *argp1 = 0 ;
15515 int res1 = 0 ;
15516 PyObject *swig_obj[1] ;
15517
15518 if (!args) SWIG_fail;
15519 swig_obj[0] = args;
15520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15521 if (!SWIG_IsOK(res1)) {
15522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15523 }
15524 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15525 result = (wxString *)& ((arg1)->Description);
15526 {
d14a1e28 15527#if wxUSE_UNICODE
0085ce49 15528 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15529#else
0085ce49 15530 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15531#endif
0085ce49
RD
15532 }
15533 return resultobj;
15534fail:
15535 return NULL;
15536}
15537
15538
15539SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15540 PyObject *obj;
15541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15542 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15543 return SWIG_Py_Void();
15544}
15545
15546SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15547 PyObject *resultobj = 0;
15548 int arg1 = (int) -1 ;
15549 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15550 wxLocale *result = 0 ;
15551 int val1 ;
15552 int ecode1 = 0 ;
15553 int val2 ;
15554 int ecode2 = 0 ;
15555 PyObject * obj0 = 0 ;
15556 PyObject * obj1 = 0 ;
15557 char * kwnames[] = {
15558 (char *) "language",(char *) "flags", NULL
15559 };
15560
15561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15562 if (obj0) {
15563 ecode1 = SWIG_AsVal_int(obj0, &val1);
15564 if (!SWIG_IsOK(ecode1)) {
15565 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15566 }
15567 arg1 = static_cast< int >(val1);
15568 }
15569 if (obj1) {
15570 ecode2 = SWIG_AsVal_int(obj1, &val2);
15571 if (!SWIG_IsOK(ecode2)) {
15572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15573 }
15574 arg2 = static_cast< int >(val2);
15575 }
15576 {
15577 PyThreadState* __tstate = wxPyBeginAllowThreads();
15578 result = (wxLocale *)new_wxLocale(arg1,arg2);
15579 wxPyEndAllowThreads(__tstate);
15580 if (PyErr_Occurred()) SWIG_fail;
15581 }
15582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15583 return resultobj;
15584fail:
15585 return NULL;
d14a1e28
RD
15586}
15587
15588
0085ce49
RD
15589SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15590 PyObject *resultobj = 0;
15591 wxLocale *arg1 = (wxLocale *) 0 ;
15592 void *argp1 = 0 ;
15593 int res1 = 0 ;
15594 PyObject *swig_obj[1] ;
15595
15596 if (!args) SWIG_fail;
15597 swig_obj[0] = args;
15598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15599 if (!SWIG_IsOK(res1)) {
15600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15601 }
15602 arg1 = reinterpret_cast< wxLocale * >(argp1);
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 delete arg1;
d14a1e28 15606
0085ce49
RD
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 resultobj = SWIG_Py_Void();
15611 return resultobj;
15612fail:
15613 return NULL;
15614}
15615
15616
15617SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15618 PyObject *resultobj = 0;
15619 wxLocale *arg1 = (wxLocale *) 0 ;
15620 wxString *arg2 = 0 ;
15621 wxString const &arg3_defvalue = wxPyEmptyString ;
15622 wxString *arg3 = (wxString *) &arg3_defvalue ;
15623 wxString const &arg4_defvalue = wxPyEmptyString ;
15624 wxString *arg4 = (wxString *) &arg4_defvalue ;
15625 bool arg5 = (bool) true ;
15626 bool arg6 = (bool) false ;
15627 bool result;
15628 void *argp1 = 0 ;
15629 int res1 = 0 ;
15630 bool temp2 = false ;
15631 bool temp3 = false ;
15632 bool temp4 = false ;
15633 bool val5 ;
15634 int ecode5 = 0 ;
15635 bool val6 ;
15636 int ecode6 = 0 ;
15637 PyObject * obj0 = 0 ;
15638 PyObject * obj1 = 0 ;
15639 PyObject * obj2 = 0 ;
15640 PyObject * obj3 = 0 ;
15641 PyObject * obj4 = 0 ;
15642 PyObject * obj5 = 0 ;
15643 char * kwnames[] = {
15644 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15645 };
15646
15647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15649 if (!SWIG_IsOK(res1)) {
15650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15651 }
15652 arg1 = reinterpret_cast< wxLocale * >(argp1);
15653 {
15654 arg2 = wxString_in_helper(obj1);
15655 if (arg2 == NULL) SWIG_fail;
15656 temp2 = true;
15657 }
15658 if (obj2) {
d14a1e28 15659 {
0085ce49
RD
15660 arg3 = wxString_in_helper(obj2);
15661 if (arg3 == NULL) SWIG_fail;
15662 temp3 = true;
d14a1e28 15663 }
0085ce49
RD
15664 }
15665 if (obj3) {
093d3ff1 15666 {
0085ce49
RD
15667 arg4 = wxString_in_helper(obj3);
15668 if (arg4 == NULL) SWIG_fail;
15669 temp4 = true;
093d3ff1 15670 }
0085ce49
RD
15671 }
15672 if (obj4) {
15673 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15674 if (!SWIG_IsOK(ecode5)) {
15675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15676 }
15677 arg5 = static_cast< bool >(val5);
15678 }
15679 if (obj5) {
15680 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15681 if (!SWIG_IsOK(ecode6)) {
15682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15683 }
15684 arg6 = static_cast< bool >(val6);
15685 }
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15692 {
15693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15694 }
15695 {
15696 if (temp2)
15697 delete arg2;
15698 }
15699 {
15700 if (temp3)
15701 delete arg3;
15702 }
15703 {
15704 if (temp4)
15705 delete arg4;
15706 }
15707 return resultobj;
15708fail:
15709 {
15710 if (temp2)
15711 delete arg2;
15712 }
15713 {
15714 if (temp3)
15715 delete arg3;
15716 }
15717 {
15718 if (temp4)
15719 delete arg4;
15720 }
15721 return NULL;
15722}
15723
15724
15725SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15726 PyObject *resultobj = 0;
15727 wxLocale *arg1 = (wxLocale *) 0 ;
15728 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15729 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15730 bool result;
15731 void *argp1 = 0 ;
15732 int res1 = 0 ;
15733 int val2 ;
15734 int ecode2 = 0 ;
15735 int val3 ;
15736 int ecode3 = 0 ;
15737 PyObject * obj0 = 0 ;
15738 PyObject * obj1 = 0 ;
15739 PyObject * obj2 = 0 ;
15740 char * kwnames[] = {
15741 (char *) "self",(char *) "language",(char *) "flags", NULL
15742 };
15743
15744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15748 }
15749 arg1 = reinterpret_cast< wxLocale * >(argp1);
15750 if (obj1) {
15751 ecode2 = SWIG_AsVal_int(obj1, &val2);
15752 if (!SWIG_IsOK(ecode2)) {
15753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15754 }
15755 arg2 = static_cast< int >(val2);
15756 }
15757 if (obj2) {
15758 ecode3 = SWIG_AsVal_int(obj2, &val3);
15759 if (!SWIG_IsOK(ecode3)) {
15760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15761 }
15762 arg3 = static_cast< int >(val3);
15763 }
15764 {
15765 PyThreadState* __tstate = wxPyBeginAllowThreads();
15766 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15767 wxPyEndAllowThreads(__tstate);
15768 if (PyErr_Occurred()) SWIG_fail;
15769 }
15770 {
15771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15772 }
15773 return resultobj;
15774fail:
15775 return NULL;
093d3ff1
RD
15776}
15777
15778
0085ce49
RD
15779SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15780 PyObject *resultobj = 0;
15781 int result;
15782
15783 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = (int)wxLocale::GetSystemLanguage();
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 resultobj = SWIG_From_int(static_cast< int >(result));
15791 return resultobj;
15792fail:
15793 return NULL;
d14a1e28
RD
15794}
15795
15796
0085ce49
RD
15797SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *resultobj = 0;
15799 wxFontEncoding result;
15800
15801 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15802 {
15803 PyThreadState* __tstate = wxPyBeginAllowThreads();
15804 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = SWIG_From_int(static_cast< int >(result));
15809 return resultobj;
15810fail:
15811 return NULL;
d14a1e28
RD
15812}
15813
15814
0085ce49
RD
15815SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15816 PyObject *resultobj = 0;
15817 wxString result;
15818
15819 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15820 {
15821 PyThreadState* __tstate = wxPyBeginAllowThreads();
15822 result = wxLocale::GetSystemEncodingName();
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 {
d14a1e28 15827#if wxUSE_UNICODE
0085ce49 15828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15829#else
0085ce49 15830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15831#endif
0085ce49
RD
15832 }
15833 return resultobj;
15834fail:
15835 return NULL;
d14a1e28
RD
15836}
15837
15838
0085ce49
RD
15839SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15840 PyObject *resultobj = 0;
15841 wxLocale *arg1 = (wxLocale *) 0 ;
15842 bool result;
15843 void *argp1 = 0 ;
15844 int res1 = 0 ;
15845 PyObject *swig_obj[1] ;
15846
15847 if (!args) SWIG_fail;
15848 swig_obj[0] = args;
15849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15850 if (!SWIG_IsOK(res1)) {
15851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15852 }
15853 arg1 = reinterpret_cast< wxLocale * >(argp1);
15854 {
15855 PyThreadState* __tstate = wxPyBeginAllowThreads();
15856 result = (bool)((wxLocale const *)arg1)->IsOk();
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15862 }
15863 return resultobj;
15864fail:
15865 return NULL;
093d3ff1 15866}
0085ce49
RD
15867
15868
15869SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 PyObject *resultobj = 0;
15871 wxLocale *arg1 = (wxLocale *) 0 ;
15872 wxString result;
15873 void *argp1 = 0 ;
15874 int res1 = 0 ;
15875 PyObject *swig_obj[1] ;
15876
15877 if (!args) SWIG_fail;
15878 swig_obj[0] = args;
15879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15882 }
15883 arg1 = reinterpret_cast< wxLocale * >(argp1);
15884 {
15885 PyThreadState* __tstate = wxPyBeginAllowThreads();
15886 result = ((wxLocale const *)arg1)->GetLocale();
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 {
15891#if wxUSE_UNICODE
15892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15893#else
15894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15895#endif
15896 }
15897 return resultobj;
15898fail:
15899 return NULL;
d14a1e28
RD
15900}
15901
15902
0085ce49
RD
15903SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15904 PyObject *resultobj = 0;
15905 wxLocale *arg1 = (wxLocale *) 0 ;
15906 int result;
15907 void *argp1 = 0 ;
15908 int res1 = 0 ;
15909 PyObject *swig_obj[1] ;
15910
15911 if (!args) SWIG_fail;
15912 swig_obj[0] = args;
15913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15914 if (!SWIG_IsOK(res1)) {
15915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15916 }
15917 arg1 = reinterpret_cast< wxLocale * >(argp1);
15918 {
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
15920 result = (int)((wxLocale const *)arg1)->GetLanguage();
15921 wxPyEndAllowThreads(__tstate);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 resultobj = SWIG_From_int(static_cast< int >(result));
15925 return resultobj;
15926fail:
15927 return NULL;
d14a1e28
RD
15928}
15929
15930
0085ce49
RD
15931SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15932 PyObject *resultobj = 0;
15933 wxLocale *arg1 = (wxLocale *) 0 ;
15934 wxString result;
15935 void *argp1 = 0 ;
15936 int res1 = 0 ;
15937 PyObject *swig_obj[1] ;
15938
15939 if (!args) SWIG_fail;
15940 swig_obj[0] = args;
15941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15942 if (!SWIG_IsOK(res1)) {
15943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15944 }
15945 arg1 = reinterpret_cast< wxLocale * >(argp1);
15946 {
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = ((wxLocale const *)arg1)->GetSysName();
15949 wxPyEndAllowThreads(__tstate);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 }
15952 {
15953#if wxUSE_UNICODE
15954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15955#else
15956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15957#endif
15958 }
15959 return resultobj;
15960fail:
15961 return NULL;
d14a1e28
RD
15962}
15963
15964
0085ce49
RD
15965SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15966 PyObject *resultobj = 0;
15967 wxLocale *arg1 = (wxLocale *) 0 ;
15968 wxString result;
15969 void *argp1 = 0 ;
15970 int res1 = 0 ;
15971 PyObject *swig_obj[1] ;
15972
15973 if (!args) SWIG_fail;
15974 swig_obj[0] = args;
15975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15976 if (!SWIG_IsOK(res1)) {
15977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15978 }
15979 arg1 = reinterpret_cast< wxLocale * >(argp1);
15980 {
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = ((wxLocale const *)arg1)->GetCanonicalName();
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 {
15987#if wxUSE_UNICODE
15988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15989#else
15990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15991#endif
15992 }
15993 return resultobj;
15994fail:
15995 return NULL;
d14a1e28
RD
15996}
15997
15998
0085ce49
RD
15999SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16000 PyObject *resultobj = 0;
16001 wxString *arg1 = 0 ;
16002 bool temp1 = false ;
16003 PyObject * obj0 = 0 ;
16004 char * kwnames[] = {
16005 (char *) "prefix", NULL
16006 };
16007
16008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16009 {
16010 arg1 = wxString_in_helper(obj0);
16011 if (arg1 == NULL) SWIG_fail;
16012 temp1 = true;
16013 }
16014 {
16015 PyThreadState* __tstate = wxPyBeginAllowThreads();
16016 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16017 wxPyEndAllowThreads(__tstate);
16018 if (PyErr_Occurred()) SWIG_fail;
16019 }
16020 resultobj = SWIG_Py_Void();
16021 {
16022 if (temp1)
16023 delete arg1;
16024 }
16025 return resultobj;
16026fail:
16027 {
16028 if (temp1)
16029 delete arg1;
16030 }
16031 return NULL;
16032}
16033
16034
16035SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj = 0;
16037 wxLocale *arg1 = (wxLocale *) 0 ;
16038 wxString *arg2 = 0 ;
16039 bool result;
16040 void *argp1 = 0 ;
16041 int res1 = 0 ;
16042 bool temp2 = false ;
16043 PyObject * obj0 = 0 ;
16044 PyObject * obj1 = 0 ;
16045 char * kwnames[] = {
16046 (char *) "self",(char *) "szDomain", NULL
16047 };
16048
16049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16051 if (!SWIG_IsOK(res1)) {
16052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16053 }
16054 arg1 = reinterpret_cast< wxLocale * >(argp1);
16055 {
16056 arg2 = wxString_in_helper(obj1);
16057 if (arg2 == NULL) SWIG_fail;
16058 temp2 = true;
16059 }
16060 {
16061 PyThreadState* __tstate = wxPyBeginAllowThreads();
16062 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16063 wxPyEndAllowThreads(__tstate);
16064 if (PyErr_Occurred()) SWIG_fail;
16065 }
16066 {
16067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16068 }
16069 {
16070 if (temp2)
16071 delete arg2;
16072 }
16073 return resultobj;
16074fail:
16075 {
16076 if (temp2)
16077 delete arg2;
16078 }
16079 return NULL;
16080}
16081
16082
33d6fd3b
RD
16083SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16084 PyObject *resultobj = 0;
16085 int arg1 ;
16086 bool result;
16087 int val1 ;
16088 int ecode1 = 0 ;
16089 PyObject * obj0 = 0 ;
16090 char * kwnames[] = {
16091 (char *) "lang", NULL
16092 };
16093
16094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16095 ecode1 = SWIG_AsVal_int(obj0, &val1);
16096 if (!SWIG_IsOK(ecode1)) {
16097 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16098 }
16099 arg1 = static_cast< int >(val1);
16100 {
16101 PyThreadState* __tstate = wxPyBeginAllowThreads();
16102 result = (bool)wxLocale::IsAvailable(arg1);
16103 wxPyEndAllowThreads(__tstate);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 }
16106 {
16107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16108 }
16109 return resultobj;
16110fail:
16111 return NULL;
16112}
16113
16114
0085ce49
RD
16115SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16116 PyObject *resultobj = 0;
16117 wxLocale *arg1 = (wxLocale *) 0 ;
16118 wxString *arg2 = 0 ;
16119 bool result;
16120 void *argp1 = 0 ;
16121 int res1 = 0 ;
16122 bool temp2 = false ;
16123 PyObject * obj0 = 0 ;
16124 PyObject * obj1 = 0 ;
16125 char * kwnames[] = {
16126 (char *) "self",(char *) "szDomain", NULL
16127 };
16128
16129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16131 if (!SWIG_IsOK(res1)) {
16132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16133 }
16134 arg1 = reinterpret_cast< wxLocale * >(argp1);
16135 {
16136 arg2 = wxString_in_helper(obj1);
16137 if (arg2 == NULL) SWIG_fail;
16138 temp2 = true;
16139 }
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 {
16147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16148 }
16149 {
16150 if (temp2)
16151 delete arg2;
16152 }
16153 return resultobj;
16154fail:
16155 {
16156 if (temp2)
16157 delete arg2;
16158 }
16159 return NULL;
d14a1e28
RD
16160}
16161
16162
0085ce49
RD
16163SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16164 PyObject *resultobj = 0;
16165 int arg1 ;
16166 wxLanguageInfo *result = 0 ;
16167 int val1 ;
16168 int ecode1 = 0 ;
16169 PyObject * obj0 = 0 ;
16170 char * kwnames[] = {
16171 (char *) "lang", NULL
16172 };
16173
16174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16175 ecode1 = SWIG_AsVal_int(obj0, &val1);
16176 if (!SWIG_IsOK(ecode1)) {
16177 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16178 }
16179 arg1 = static_cast< int >(val1);
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16187 return resultobj;
16188fail:
16189 return NULL;
16190}
16191
16192
16193SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16194 PyObject *resultobj = 0;
16195 int arg1 ;
16196 wxString result;
16197 int val1 ;
16198 int ecode1 = 0 ;
16199 PyObject * obj0 = 0 ;
16200 char * kwnames[] = {
16201 (char *) "lang", NULL
16202 };
16203
16204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16205 ecode1 = SWIG_AsVal_int(obj0, &val1);
16206 if (!SWIG_IsOK(ecode1)) {
16207 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16208 }
16209 arg1 = static_cast< int >(val1);
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 result = wxLocale::GetLanguageName(arg1);
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 {
16217#if wxUSE_UNICODE
16218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16219#else
16220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16221#endif
16222 }
16223 return resultobj;
16224fail:
16225 return NULL;
d14a1e28
RD
16226}
16227
16228
0085ce49
RD
16229SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16230 PyObject *resultobj = 0;
16231 wxString *arg1 = 0 ;
16232 wxLanguageInfo *result = 0 ;
16233 bool temp1 = false ;
16234 PyObject * obj0 = 0 ;
16235 char * kwnames[] = {
16236 (char *) "locale", NULL
16237 };
16238
16239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16240 {
16241 arg1 = wxString_in_helper(obj0);
16242 if (arg1 == NULL) SWIG_fail;
16243 temp1 = true;
16244 }
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16247 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16252 {
16253 if (temp1)
16254 delete arg1;
16255 }
16256 return resultobj;
16257fail:
16258 {
16259 if (temp1)
16260 delete arg1;
16261 }
16262 return NULL;
16263}
16264
16265
16266SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj = 0;
16268 wxLanguageInfo *arg1 = 0 ;
16269 void *argp1 = 0 ;
16270 int res1 = 0 ;
16271 PyObject * obj0 = 0 ;
16272 char * kwnames[] = {
16273 (char *) "info", NULL
16274 };
16275
16276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16277 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16280 }
16281 if (!argp1) {
16282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16283 }
16284 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16285 {
16286 PyThreadState* __tstate = wxPyBeginAllowThreads();
16287 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16288 wxPyEndAllowThreads(__tstate);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 }
16291 resultobj = SWIG_Py_Void();
16292 return resultobj;
16293fail:
16294 return NULL;
16295}
16296
16297
16298SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16299 PyObject *resultobj = 0;
16300 wxLocale *arg1 = (wxLocale *) 0 ;
16301 wxString *arg2 = 0 ;
16302 wxString const &arg3_defvalue = wxPyEmptyString ;
16303 wxString *arg3 = (wxString *) &arg3_defvalue ;
16304 wxString result;
16305 void *argp1 = 0 ;
16306 int res1 = 0 ;
16307 bool temp2 = false ;
16308 bool temp3 = false ;
16309 PyObject * obj0 = 0 ;
16310 PyObject * obj1 = 0 ;
16311 PyObject * obj2 = 0 ;
16312 char * kwnames[] = {
16313 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16314 };
16315
16316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16318 if (!SWIG_IsOK(res1)) {
16319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16320 }
16321 arg1 = reinterpret_cast< wxLocale * >(argp1);
16322 {
16323 arg2 = wxString_in_helper(obj1);
16324 if (arg2 == NULL) SWIG_fail;
16325 temp2 = true;
16326 }
16327 if (obj2) {
16328 {
16329 arg3 = wxString_in_helper(obj2);
16330 if (arg3 == NULL) SWIG_fail;
16331 temp3 = true;
16332 }
16333 }
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
16336 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 {
16341#if wxUSE_UNICODE
16342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16343#else
16344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16345#endif
16346 }
16347 {
16348 if (temp2)
16349 delete arg2;
16350 }
16351 {
16352 if (temp3)
16353 delete arg3;
16354 }
16355 return resultobj;
16356fail:
16357 {
16358 if (temp2)
16359 delete arg2;
16360 }
16361 {
16362 if (temp3)
16363 delete arg3;
16364 }
16365 return NULL;
16366}
16367
16368
16369SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16370 PyObject *resultobj = 0;
16371 wxLocale *arg1 = (wxLocale *) 0 ;
16372 wxString *result = 0 ;
16373 void *argp1 = 0 ;
16374 int res1 = 0 ;
16375 PyObject *swig_obj[1] ;
16376
16377 if (!args) SWIG_fail;
16378 swig_obj[0] = args;
16379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16380 if (!SWIG_IsOK(res1)) {
16381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16382 }
16383 arg1 = reinterpret_cast< wxLocale * >(argp1);
16384 {
16385 PyThreadState* __tstate = wxPyBeginAllowThreads();
16386 {
16387 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16388 result = (wxString *) &_result_ref;
16389 }
16390 wxPyEndAllowThreads(__tstate);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 {
16394#if wxUSE_UNICODE
16395 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16396#else
16397 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16398#endif
16399 }
16400 return resultobj;
16401fail:
16402 return NULL;
16403}
16404
16405
16406SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *obj;
16408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16409 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16410 return SWIG_Py_Void();
16411}
16412
16413SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16414 return SWIG_Python_InitShadowInstance(args);
16415}
16416
16417SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj = 0;
16419 int arg1 = (int) -1 ;
16420 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16421 wxPyLocale *result = 0 ;
16422 int val1 ;
16423 int ecode1 = 0 ;
16424 int val2 ;
16425 int ecode2 = 0 ;
16426 PyObject * obj0 = 0 ;
16427 PyObject * obj1 = 0 ;
16428 char * kwnames[] = {
16429 (char *) "language",(char *) "flags", NULL
16430 };
16431
16432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16433 if (obj0) {
16434 ecode1 = SWIG_AsVal_int(obj0, &val1);
16435 if (!SWIG_IsOK(ecode1)) {
16436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16437 }
16438 arg1 = static_cast< int >(val1);
16439 }
16440 if (obj1) {
16441 ecode2 = SWIG_AsVal_int(obj1, &val2);
16442 if (!SWIG_IsOK(ecode2)) {
16443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16444 }
16445 arg2 = static_cast< int >(val2);
16446 }
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16454 return resultobj;
16455fail:
16456 return NULL;
16457}
16458
16459
16460SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16461 PyObject *resultobj = 0;
16462 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16463 void *argp1 = 0 ;
16464 int res1 = 0 ;
16465 PyObject *swig_obj[1] ;
16466
16467 if (!args) SWIG_fail;
16468 swig_obj[0] = args;
16469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16470 if (!SWIG_IsOK(res1)) {
16471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16472 }
16473 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16474 {
16475 PyThreadState* __tstate = wxPyBeginAllowThreads();
16476 delete arg1;
16477
0085ce49
RD
16478 wxPyEndAllowThreads(__tstate);
16479 if (PyErr_Occurred()) SWIG_fail;
16480 }
fc46b7f3 16481 resultobj = SWIG_Py_Void();
0085ce49
RD
16482 return resultobj;
16483fail:
0085ce49 16484 return NULL;
d14a1e28
RD
16485}
16486
16487
fc46b7f3 16488SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16489 PyObject *resultobj = 0;
fc46b7f3
RD
16490 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16491 PyObject *arg2 = (PyObject *) 0 ;
16492 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16493 void *argp1 = 0 ;
16494 int res1 = 0 ;
16495 PyObject * obj0 = 0 ;
fc46b7f3
RD
16496 PyObject * obj1 = 0 ;
16497 PyObject * obj2 = 0 ;
0085ce49 16498 char * kwnames[] = {
fc46b7f3 16499 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16500 };
16501
fc46b7f3
RD
16502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16504 if (!SWIG_IsOK(res1)) {
fc46b7f3 16505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16506 }
fc46b7f3
RD
16507 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16508 arg2 = obj1;
16509 arg3 = obj2;
0085ce49
RD
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16512 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 resultobj = SWIG_Py_Void();
16517 return resultobj;
16518fail:
16519 return NULL;
16520}
16521
16522
fc46b7f3 16523SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16524 PyObject *resultobj = 0;
fc46b7f3
RD
16525 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16526 wxChar *arg2 = (wxChar *) 0 ;
16527 wxChar *arg3 = (wxChar *) NULL ;
16528 wxChar *result = 0 ;
0085ce49
RD
16529 void *argp1 = 0 ;
16530 int res1 = 0 ;
fc46b7f3
RD
16531 void *argp2 = 0 ;
16532 int res2 = 0 ;
16533 void *argp3 = 0 ;
16534 int res3 = 0 ;
0085ce49
RD
16535 PyObject * obj0 = 0 ;
16536 PyObject * obj1 = 0 ;
16537 PyObject * obj2 = 0 ;
16538 char * kwnames[] = {
16539 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16540 };
16541
fc46b7f3
RD
16542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16544 if (!SWIG_IsOK(res1)) {
fc46b7f3 16545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16546 }
fc46b7f3
RD
16547 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16549 if (!SWIG_IsOK(res2)) {
16550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16551 }
fc46b7f3 16552 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16553 if (obj2) {
fc46b7f3
RD
16554 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16555 if (!SWIG_IsOK(res3)) {
16556 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16557 }
fc46b7f3 16558 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16559 }
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16562 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16563 wxPyEndAllowThreads(__tstate);
16564 if (PyErr_Occurred()) SWIG_fail;
16565 }
fc46b7f3 16566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16567 return resultobj;
16568fail:
0085ce49 16569 return NULL;
b6294124
RD
16570}
16571
16572
fc46b7f3 16573SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16574 PyObject *resultobj = 0;
fc46b7f3
RD
16575 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16576 wxChar *arg2 = (wxChar *) 0 ;
16577 wxChar *arg3 = (wxChar *) 0 ;
16578 size_t arg4 ;
16579 wxChar *arg5 = (wxChar *) NULL ;
16580 wxChar *result = 0 ;
0085ce49
RD
16581 void *argp1 = 0 ;
16582 int res1 = 0 ;
fc46b7f3
RD
16583 void *argp2 = 0 ;
16584 int res2 = 0 ;
16585 void *argp3 = 0 ;
16586 int res3 = 0 ;
16587 size_t val4 ;
16588 int ecode4 = 0 ;
16589 void *argp5 = 0 ;
16590 int res5 = 0 ;
16591 PyObject * obj0 = 0 ;
16592 PyObject * obj1 = 0 ;
16593 PyObject * obj2 = 0 ;
16594 PyObject * obj3 = 0 ;
16595 PyObject * obj4 = 0 ;
16596 char * kwnames[] = {
16597 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16598 };
0085ce49 16599
fc46b7f3
RD
16600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16602 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16604 }
16605 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16607 if (!SWIG_IsOK(res2)) {
16608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16609 }
16610 arg2 = reinterpret_cast< wxChar * >(argp2);
16611 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16612 if (!SWIG_IsOK(res3)) {
16613 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16614 }
16615 arg3 = reinterpret_cast< wxChar * >(argp3);
16616 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16617 if (!SWIG_IsOK(ecode4)) {
16618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16619 }
16620 arg4 = static_cast< size_t >(val4);
16621 if (obj4) {
16622 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16623 if (!SWIG_IsOK(res5)) {
16624 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16625 }
16626 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16627 }
0085ce49
RD
16628 {
16629 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16630 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16631 wxPyEndAllowThreads(__tstate);
16632 if (PyErr_Occurred()) SWIG_fail;
16633 }
fc46b7f3 16634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16635 return resultobj;
16636fail:
16637 return NULL;
d14a1e28
RD
16638}
16639
16640
fc46b7f3 16641SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16642 PyObject *obj;
16643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16644 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16645 return SWIG_Py_Void();
d14a1e28
RD
16646}
16647
fc46b7f3 16648SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16649 return SWIG_Python_InitShadowInstance(args);
16650}
d14a1e28 16651
0085ce49
RD
16652SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16653 PyObject *resultobj = 0;
16654 wxLocale *result = 0 ;
16655
16656 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16657 {
16658 PyThreadState* __tstate = wxPyBeginAllowThreads();
16659 result = (wxLocale *)wxGetLocale();
16660 wxPyEndAllowThreads(__tstate);
16661 if (PyErr_Occurred()) SWIG_fail;
16662 }
16663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16664 return resultobj;
16665fail:
16666 return NULL;
d14a1e28
RD
16667}
16668
16669
0085ce49
RD
16670SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16671 PyObject *resultobj = 0;
16672 wxString *arg1 = 0 ;
16673 wxString result;
16674 bool temp1 = false ;
16675
16676 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16677 {
16678 arg1 = wxString_in_helper(swig_obj[0]);
16679 if (arg1 == NULL) SWIG_fail;
16680 temp1 = true;
16681 }
16682 {
16683 PyThreadState* __tstate = wxPyBeginAllowThreads();
16684 result = wxGetTranslation((wxString const &)*arg1);
16685 wxPyEndAllowThreads(__tstate);
16686 if (PyErr_Occurred()) SWIG_fail;
16687 }
16688 {
093d3ff1 16689#if wxUSE_UNICODE
0085ce49 16690 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16691#else
0085ce49 16692 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16693#endif
0085ce49
RD
16694 }
16695 {
16696 if (temp1)
16697 delete arg1;
16698 }
16699 return resultobj;
16700fail:
16701 {
16702 if (temp1)
16703 delete arg1;
16704 }
16705 return NULL;
b6294124
RD
16706}
16707
16708
0085ce49 16709SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16710 PyObject *resultobj = 0;
16711 wxString *arg1 = 0 ;
16712 wxString *arg2 = 0 ;
16713 wxString result;
16714 bool temp1 = false ;
16715 bool temp2 = false ;
16716
16717 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16718 {
16719 arg1 = wxString_in_helper(swig_obj[0]);
16720 if (arg1 == NULL) SWIG_fail;
16721 temp1 = true;
16722 }
16723 {
16724 arg2 = wxString_in_helper(swig_obj[1]);
16725 if (arg2 == NULL) SWIG_fail;
16726 temp2 = true;
16727 }
16728 {
16729 PyThreadState* __tstate = wxPyBeginAllowThreads();
16730 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16731 wxPyEndAllowThreads(__tstate);
16732 if (PyErr_Occurred()) SWIG_fail;
16733 }
16734 {
16735#if wxUSE_UNICODE
16736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16737#else
16738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16739#endif
16740 }
16741 {
16742 if (temp1)
16743 delete arg1;
16744 }
16745 {
16746 if (temp2)
16747 delete arg2;
16748 }
16749 return resultobj;
16750fail:
16751 {
16752 if (temp1)
16753 delete arg1;
16754 }
16755 {
16756 if (temp2)
16757 delete arg2;
16758 }
16759 return NULL;
16760}
16761
16762
16763SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
16764 PyObject *resultobj = 0;
16765 wxString *arg1 = 0 ;
16766 wxString *arg2 = 0 ;
16767 size_t arg3 ;
16768 wxString result;
16769 bool temp1 = false ;
16770 bool temp2 = false ;
16771 size_t val3 ;
16772 int ecode3 = 0 ;
16773
16774 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16775 {
16776 arg1 = wxString_in_helper(swig_obj[0]);
16777 if (arg1 == NULL) SWIG_fail;
16778 temp1 = true;
16779 }
16780 {
16781 arg2 = wxString_in_helper(swig_obj[1]);
16782 if (arg2 == NULL) SWIG_fail;
16783 temp2 = true;
16784 }
16785 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16786 if (!SWIG_IsOK(ecode3)) {
16787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16788 }
16789 arg3 = static_cast< size_t >(val3);
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16793 wxPyEndAllowThreads(__tstate);
16794 if (PyErr_Occurred()) SWIG_fail;
16795 }
16796 {
16797#if wxUSE_UNICODE
16798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16799#else
16800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16801#endif
16802 }
16803 {
16804 if (temp1)
16805 delete arg1;
16806 }
16807 {
16808 if (temp2)
16809 delete arg2;
16810 }
16811 return resultobj;
16812fail:
16813 {
16814 if (temp1)
16815 delete arg1;
16816 }
16817 {
16818 if (temp2)
16819 delete arg2;
16820 }
16821 return NULL;
d14a1e28
RD
16822}
16823
16824
fc46b7f3
RD
16825SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16826 PyObject *resultobj = 0;
16827 wxString *arg1 = 0 ;
16828 wxString *arg2 = 0 ;
16829 size_t arg3 ;
16830 wxString *arg4 = 0 ;
16831 wxString result;
16832 bool temp1 = false ;
16833 bool temp2 = false ;
16834 size_t val3 ;
16835 int ecode3 = 0 ;
16836 bool temp4 = false ;
16837
16838 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16839 {
16840 arg1 = wxString_in_helper(swig_obj[0]);
16841 if (arg1 == NULL) SWIG_fail;
16842 temp1 = true;
16843 }
16844 {
16845 arg2 = wxString_in_helper(swig_obj[1]);
16846 if (arg2 == NULL) SWIG_fail;
16847 temp2 = true;
16848 }
16849 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16850 if (!SWIG_IsOK(ecode3)) {
16851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16852 }
16853 arg3 = static_cast< size_t >(val3);
16854 {
16855 arg4 = wxString_in_helper(swig_obj[3]);
16856 if (arg4 == NULL) SWIG_fail;
16857 temp4 = true;
16858 }
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 {
16866#if wxUSE_UNICODE
16867 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16868#else
16869 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16870#endif
16871 }
16872 {
16873 if (temp1)
16874 delete arg1;
16875 }
16876 {
16877 if (temp2)
16878 delete arg2;
16879 }
16880 {
16881 if (temp4)
16882 delete arg4;
16883 }
16884 return resultobj;
16885fail:
16886 {
16887 if (temp1)
16888 delete arg1;
16889 }
16890 {
16891 if (temp2)
16892 delete arg2;
16893 }
16894 {
16895 if (temp4)
16896 delete arg4;
16897 }
16898 return NULL;
16899}
16900
16901
0085ce49
RD
16902SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16903 int argc;
fc46b7f3 16904 PyObject *argv[5];
0085ce49 16905
fc46b7f3 16906 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
16907 --argc;
16908 if (argc == 1) {
16909 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16910 }
fc46b7f3 16911 if (argc == 2) {
0085ce49
RD
16912 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16913 }
fc46b7f3
RD
16914 if (argc == 3) {
16915 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16916 }
16917 if (argc == 4) {
16918 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16919 }
0085ce49
RD
16920
16921fail:
16922 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16923 return NULL;
d14a1e28
RD
16924}
16925
16926
0085ce49
RD
16927SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16928 PyObject *resultobj = 0;
16929 wxEncodingConverter *result = 0 ;
16930
16931 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 result = (wxEncodingConverter *)new wxEncodingConverter();
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16939 return resultobj;
16940fail:
16941 return NULL;
d14a1e28
RD
16942}
16943
16944
0085ce49
RD
16945SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16946 PyObject *resultobj = 0;
16947 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16948 void *argp1 = 0 ;
16949 int res1 = 0 ;
16950 PyObject *swig_obj[1] ;
16951
16952 if (!args) SWIG_fail;
16953 swig_obj[0] = args;
16954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16955 if (!SWIG_IsOK(res1)) {
16956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16957 }
16958 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16959 {
16960 PyThreadState* __tstate = wxPyBeginAllowThreads();
16961 delete arg1;
d14a1e28 16962
0085ce49
RD
16963 wxPyEndAllowThreads(__tstate);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 resultobj = SWIG_Py_Void();
16967 return resultobj;
16968fail:
16969 return NULL;
16970}
16971
16972
16973SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16974 PyObject *resultobj = 0;
16975 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16976 wxFontEncoding arg2 ;
16977 wxFontEncoding arg3 ;
16978 int arg4 = (int) wxCONVERT_STRICT ;
16979 bool result;
16980 void *argp1 = 0 ;
16981 int res1 = 0 ;
16982 int val2 ;
16983 int ecode2 = 0 ;
16984 int val3 ;
16985 int ecode3 = 0 ;
16986 int val4 ;
16987 int ecode4 = 0 ;
16988 PyObject * obj0 = 0 ;
16989 PyObject * obj1 = 0 ;
16990 PyObject * obj2 = 0 ;
16991 PyObject * obj3 = 0 ;
16992 char * kwnames[] = {
16993 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16994 };
16995
16996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16998 if (!SWIG_IsOK(res1)) {
16999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17000 }
17001 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17002 ecode2 = SWIG_AsVal_int(obj1, &val2);
17003 if (!SWIG_IsOK(ecode2)) {
17004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17005 }
17006 arg2 = static_cast< wxFontEncoding >(val2);
17007 ecode3 = SWIG_AsVal_int(obj2, &val3);
17008 if (!SWIG_IsOK(ecode3)) {
17009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17010 }
17011 arg3 = static_cast< wxFontEncoding >(val3);
17012 if (obj3) {
17013 ecode4 = SWIG_AsVal_int(obj3, &val4);
17014 if (!SWIG_IsOK(ecode4)) {
17015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17016 }
17017 arg4 = static_cast< int >(val4);
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 {
17026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17027 }
17028 return resultobj;
17029fail:
17030 return NULL;
17031}
17032
17033
17034SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17035 PyObject *resultobj = 0;
17036 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17037 wxString *arg2 = 0 ;
17038 wxString result;
17039 void *argp1 = 0 ;
17040 int res1 = 0 ;
17041 bool temp2 = false ;
17042 PyObject * obj0 = 0 ;
17043 PyObject * obj1 = 0 ;
17044 char * kwnames[] = {
17045 (char *) "self",(char *) "input", NULL
17046 };
17047
17048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17050 if (!SWIG_IsOK(res1)) {
17051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17052 }
17053 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17054 {
17055 arg2 = wxString_in_helper(obj1);
17056 if (arg2 == NULL) SWIG_fail;
17057 temp2 = true;
17058 }
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (arg1)->Convert((wxString const &)*arg2);
17062 wxPyEndAllowThreads(__tstate);
17063 if (PyErr_Occurred()) SWIG_fail;
17064 }
17065 {
17066#if wxUSE_UNICODE
17067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17068#else
17069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17070#endif
17071 }
17072 {
17073 if (temp2)
17074 delete arg2;
17075 }
17076 return resultobj;
17077fail:
17078 {
17079 if (temp2)
17080 delete arg2;
17081 }
17082 return NULL;
17083}
17084
17085
17086SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17087 PyObject *resultobj = 0;
17088 wxFontEncoding arg1 ;
17089 int arg2 = (int) wxPLATFORM_CURRENT ;
17090 wxFontEncodingArray result;
17091 int val1 ;
17092 int ecode1 = 0 ;
17093 int val2 ;
17094 int ecode2 = 0 ;
17095 PyObject * obj0 = 0 ;
17096 PyObject * obj1 = 0 ;
17097 char * kwnames[] = {
17098 (char *) "enc",(char *) "platform", NULL
17099 };
17100
17101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17102 ecode1 = SWIG_AsVal_int(obj0, &val1);
17103 if (!SWIG_IsOK(ecode1)) {
17104 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17105 }
17106 arg1 = static_cast< wxFontEncoding >(val1);
17107 if (obj1) {
17108 ecode2 = SWIG_AsVal_int(obj1, &val2);
17109 if (!SWIG_IsOK(ecode2)) {
17110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17111 }
17112 arg2 = static_cast< int >(val2);
17113 }
17114 {
17115 PyThreadState* __tstate = wxPyBeginAllowThreads();
17116 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17117 wxPyEndAllowThreads(__tstate);
17118 if (PyErr_Occurred()) SWIG_fail;
17119 }
17120 {
17121 resultobj = PyList_New(0);
17122 for (size_t i=0; i < (&result)->GetCount(); i++) {
17123 PyObject* number = PyInt_FromLong((&result)->Item(i));
17124 PyList_Append(resultobj, number);
17125 Py_DECREF(number);
093d3ff1 17126 }
0085ce49
RD
17127 }
17128 return resultobj;
17129fail:
17130 return NULL;
d14a1e28
RD
17131}
17132
17133
0085ce49
RD
17134SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17135 PyObject *resultobj = 0;
17136 wxFontEncoding arg1 ;
17137 wxFontEncodingArray result;
17138 int val1 ;
17139 int ecode1 = 0 ;
17140 PyObject * obj0 = 0 ;
17141 char * kwnames[] = {
17142 (char *) "enc", NULL
17143 };
17144
17145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17146 ecode1 = SWIG_AsVal_int(obj0, &val1);
17147 if (!SWIG_IsOK(ecode1)) {
17148 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17149 }
17150 arg1 = static_cast< wxFontEncoding >(val1);
17151 {
17152 PyThreadState* __tstate = wxPyBeginAllowThreads();
17153 result = wxEncodingConverter::GetAllEquivalents(arg1);
17154 wxPyEndAllowThreads(__tstate);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 {
17158 resultobj = PyList_New(0);
17159 for (size_t i=0; i < (&result)->GetCount(); i++) {
17160 PyObject* number = PyInt_FromLong((&result)->Item(i));
17161 PyList_Append(resultobj, number);
17162 Py_DECREF(number);
093d3ff1 17163 }
0085ce49
RD
17164 }
17165 return resultobj;
17166fail:
17167 return NULL;
17168}
17169
17170
17171SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17172 PyObject *resultobj = 0;
17173 wxFontEncoding arg1 ;
17174 wxFontEncoding arg2 ;
17175 bool result;
17176 int val1 ;
17177 int ecode1 = 0 ;
17178 int val2 ;
17179 int ecode2 = 0 ;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 char * kwnames[] = {
17183 (char *) "encIn",(char *) "encOut", NULL
17184 };
17185
17186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17187 ecode1 = SWIG_AsVal_int(obj0, &val1);
17188 if (!SWIG_IsOK(ecode1)) {
17189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17190 }
17191 arg1 = static_cast< wxFontEncoding >(val1);
17192 ecode2 = SWIG_AsVal_int(obj1, &val2);
17193 if (!SWIG_IsOK(ecode2)) {
17194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17195 }
17196 arg2 = static_cast< wxFontEncoding >(val2);
17197 {
17198 PyThreadState* __tstate = wxPyBeginAllowThreads();
17199 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17200 wxPyEndAllowThreads(__tstate);
17201 if (PyErr_Occurred()) SWIG_fail;
17202 }
17203 {
17204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17205 }
17206 return resultobj;
17207fail:
17208 return NULL;
d14a1e28
RD
17209}
17210
17211
0085ce49
RD
17212SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17213 PyObject *obj;
17214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17215 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17216 return SWIG_Py_Void();
d14a1e28
RD
17217}
17218
0085ce49
RD
17219SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17220 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17221}
17222
0085ce49
RD
17223SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17224 PyObject *resultobj = 0;
17225 wxDC *arg1 = (wxDC *) 0 ;
17226 void *argp1 = 0 ;
17227 int res1 = 0 ;
17228 PyObject *swig_obj[1] ;
17229
17230 if (!args) SWIG_fail;
17231 swig_obj[0] = args;
17232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17233 if (!SWIG_IsOK(res1)) {
17234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17235 }
17236 arg1 = reinterpret_cast< wxDC * >(argp1);
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 delete arg1;
d14a1e28 17240
0085ce49
RD
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 resultobj = SWIG_Py_Void();
17245 return resultobj;
17246fail:
17247 return NULL;
17248}
17249
17250
17251SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17252 PyObject *resultobj = 0;
17253 wxDC *arg1 = (wxDC *) 0 ;
17254 int arg2 ;
17255 int arg3 ;
17256 wxColour *arg4 = 0 ;
17257 int arg5 = (int) wxFLOOD_SURFACE ;
17258 bool result;
17259 void *argp1 = 0 ;
17260 int res1 = 0 ;
17261 int val2 ;
17262 int ecode2 = 0 ;
17263 int val3 ;
17264 int ecode3 = 0 ;
17265 wxColour temp4 ;
17266 int val5 ;
17267 int ecode5 = 0 ;
17268 PyObject * obj0 = 0 ;
17269 PyObject * obj1 = 0 ;
17270 PyObject * obj2 = 0 ;
17271 PyObject * obj3 = 0 ;
17272 PyObject * obj4 = 0 ;
17273 char * kwnames[] = {
17274 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17275 };
17276
17277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17279 if (!SWIG_IsOK(res1)) {
17280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17281 }
17282 arg1 = reinterpret_cast< wxDC * >(argp1);
17283 ecode2 = SWIG_AsVal_int(obj1, &val2);
17284 if (!SWIG_IsOK(ecode2)) {
17285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17286 }
17287 arg2 = static_cast< int >(val2);
17288 ecode3 = SWIG_AsVal_int(obj2, &val3);
17289 if (!SWIG_IsOK(ecode3)) {
17290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17291 }
17292 arg3 = static_cast< int >(val3);
17293 {
17294 arg4 = &temp4;
17295 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17296 }
17297 if (obj4) {
17298 ecode5 = SWIG_AsVal_int(obj4, &val5);
17299 if (!SWIG_IsOK(ecode5)) {
17300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17301 }
17302 arg5 = static_cast< int >(val5);
17303 }
17304 {
17305 PyThreadState* __tstate = wxPyBeginAllowThreads();
17306 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17307 wxPyEndAllowThreads(__tstate);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 }
17310 {
17311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17312 }
17313 return resultobj;
17314fail:
17315 return NULL;
17316}
17317
17318
17319SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17320 PyObject *resultobj = 0;
17321 wxDC *arg1 = (wxDC *) 0 ;
17322 wxPoint *arg2 = 0 ;
17323 wxColour *arg3 = 0 ;
17324 int arg4 = (int) wxFLOOD_SURFACE ;
17325 bool result;
17326 void *argp1 = 0 ;
17327 int res1 = 0 ;
17328 wxPoint temp2 ;
17329 wxColour temp3 ;
17330 int val4 ;
17331 int ecode4 = 0 ;
17332 PyObject * obj0 = 0 ;
17333 PyObject * obj1 = 0 ;
17334 PyObject * obj2 = 0 ;
17335 PyObject * obj3 = 0 ;
17336 char * kwnames[] = {
17337 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17338 };
17339
17340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17342 if (!SWIG_IsOK(res1)) {
17343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17344 }
17345 arg1 = reinterpret_cast< wxDC * >(argp1);
17346 {
17347 arg2 = &temp2;
17348 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17349 }
17350 {
17351 arg3 = &temp3;
17352 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17353 }
17354 if (obj3) {
17355 ecode4 = SWIG_AsVal_int(obj3, &val4);
17356 if (!SWIG_IsOK(ecode4)) {
17357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17358 }
17359 arg4 = static_cast< int >(val4);
17360 }
17361 {
17362 PyThreadState* __tstate = wxPyBeginAllowThreads();
17363 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17364 wxPyEndAllowThreads(__tstate);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 {
17368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17369 }
17370 return resultobj;
17371fail:
17372 return NULL;
17373}
17374
17375
17376SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17377 PyObject *resultobj = 0;
17378 wxDC *arg1 = (wxDC *) 0 ;
17379 wxRect *arg2 = 0 ;
17380 wxColour *arg3 = 0 ;
17381 wxColour *arg4 = 0 ;
17382 wxPoint *arg5 = 0 ;
17383 void *argp1 = 0 ;
17384 int res1 = 0 ;
17385 wxRect temp2 ;
17386 wxColour temp3 ;
17387 wxColour temp4 ;
17388 wxPoint temp5 ;
17389 PyObject * obj0 = 0 ;
17390 PyObject * obj1 = 0 ;
17391 PyObject * obj2 = 0 ;
17392 PyObject * obj3 = 0 ;
17393 PyObject * obj4 = 0 ;
17394 char * kwnames[] = {
17395 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17396 };
17397
17398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17400 if (!SWIG_IsOK(res1)) {
17401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17402 }
17403 arg1 = reinterpret_cast< wxDC * >(argp1);
17404 {
17405 arg2 = &temp2;
17406 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17407 }
17408 {
17409 arg3 = &temp3;
17410 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17411 }
17412 {
17413 arg4 = &temp4;
17414 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17415 }
17416 {
17417 arg5 = &temp5;
17418 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17419 }
17420 {
17421 PyThreadState* __tstate = wxPyBeginAllowThreads();
17422 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17423 wxPyEndAllowThreads(__tstate);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 resultobj = SWIG_Py_Void();
17427 return resultobj;
17428fail:
17429 return NULL;
17430}
17431
17432
17433SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17434 PyObject *resultobj = 0;
17435 wxDC *arg1 = (wxDC *) 0 ;
17436 wxRect *arg2 = 0 ;
17437 wxColour *arg3 = 0 ;
17438 wxColour *arg4 = 0 ;
17439 wxDirection arg5 = (wxDirection) wxEAST ;
17440 void *argp1 = 0 ;
17441 int res1 = 0 ;
17442 wxRect temp2 ;
17443 wxColour temp3 ;
17444 wxColour temp4 ;
17445 int val5 ;
17446 int ecode5 = 0 ;
17447 PyObject * obj0 = 0 ;
17448 PyObject * obj1 = 0 ;
17449 PyObject * obj2 = 0 ;
17450 PyObject * obj3 = 0 ;
17451 PyObject * obj4 = 0 ;
17452 char * kwnames[] = {
17453 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17454 };
17455
17456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17458 if (!SWIG_IsOK(res1)) {
17459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17460 }
17461 arg1 = reinterpret_cast< wxDC * >(argp1);
17462 {
17463 arg2 = &temp2;
17464 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17465 }
17466 {
17467 arg3 = &temp3;
17468 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17469 }
17470 {
17471 arg4 = &temp4;
17472 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17473 }
17474 if (obj4) {
17475 ecode5 = SWIG_AsVal_int(obj4, &val5);
17476 if (!SWIG_IsOK(ecode5)) {
17477 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17478 }
17479 arg5 = static_cast< wxDirection >(val5);
17480 }
17481 {
17482 PyThreadState* __tstate = wxPyBeginAllowThreads();
17483 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 resultobj = SWIG_Py_Void();
17488 return resultobj;
17489fail:
17490 return NULL;
17491}
17492
17493
17494SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17495 PyObject *resultobj = 0;
17496 wxDC *arg1 = (wxDC *) 0 ;
17497 int arg2 ;
17498 int arg3 ;
17499 wxColour result;
17500 void *argp1 = 0 ;
17501 int res1 = 0 ;
17502 int val2 ;
17503 int ecode2 = 0 ;
17504 int val3 ;
17505 int ecode3 = 0 ;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 PyObject * obj2 = 0 ;
17509 char * kwnames[] = {
17510 (char *) "self",(char *) "x",(char *) "y", NULL
17511 };
17512
17513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17515 if (!SWIG_IsOK(res1)) {
17516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17517 }
17518 arg1 = reinterpret_cast< wxDC * >(argp1);
17519 ecode2 = SWIG_AsVal_int(obj1, &val2);
17520 if (!SWIG_IsOK(ecode2)) {
17521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17522 }
17523 arg2 = static_cast< int >(val2);
17524 ecode3 = SWIG_AsVal_int(obj2, &val3);
17525 if (!SWIG_IsOK(ecode3)) {
17526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17527 }
17528 arg3 = static_cast< int >(val3);
17529 {
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 result = wxDC_GetPixel(arg1,arg2,arg3);
17532 wxPyEndAllowThreads(__tstate);
17533 if (PyErr_Occurred()) SWIG_fail;
17534 }
17535 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17536 return resultobj;
17537fail:
17538 return NULL;
17539}
17540
17541
17542SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17543 PyObject *resultobj = 0;
17544 wxDC *arg1 = (wxDC *) 0 ;
17545 wxPoint *arg2 = 0 ;
17546 wxColour result;
17547 void *argp1 = 0 ;
17548 int res1 = 0 ;
17549 wxPoint temp2 ;
17550 PyObject * obj0 = 0 ;
17551 PyObject * obj1 = 0 ;
17552 char * kwnames[] = {
17553 (char *) "self",(char *) "pt", NULL
17554 };
17555
17556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17558 if (!SWIG_IsOK(res1)) {
17559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17560 }
17561 arg1 = reinterpret_cast< wxDC * >(argp1);
17562 {
17563 arg2 = &temp2;
17564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17565 }
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17569 wxPyEndAllowThreads(__tstate);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17573 return resultobj;
17574fail:
17575 return NULL;
17576}
17577
17578
17579SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17580 PyObject *resultobj = 0;
17581 wxDC *arg1 = (wxDC *) 0 ;
17582 int arg2 ;
17583 int arg3 ;
17584 int arg4 ;
17585 int arg5 ;
17586 void *argp1 = 0 ;
17587 int res1 = 0 ;
17588 int val2 ;
17589 int ecode2 = 0 ;
17590 int val3 ;
17591 int ecode3 = 0 ;
17592 int val4 ;
17593 int ecode4 = 0 ;
17594 int val5 ;
17595 int ecode5 = 0 ;
17596 PyObject * obj0 = 0 ;
17597 PyObject * obj1 = 0 ;
17598 PyObject * obj2 = 0 ;
17599 PyObject * obj3 = 0 ;
17600 PyObject * obj4 = 0 ;
17601 char * kwnames[] = {
17602 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17603 };
17604
17605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17607 if (!SWIG_IsOK(res1)) {
17608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17609 }
17610 arg1 = reinterpret_cast< wxDC * >(argp1);
17611 ecode2 = SWIG_AsVal_int(obj1, &val2);
17612 if (!SWIG_IsOK(ecode2)) {
17613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17614 }
17615 arg2 = static_cast< int >(val2);
17616 ecode3 = SWIG_AsVal_int(obj2, &val3);
17617 if (!SWIG_IsOK(ecode3)) {
17618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17619 }
17620 arg3 = static_cast< int >(val3);
17621 ecode4 = SWIG_AsVal_int(obj3, &val4);
17622 if (!SWIG_IsOK(ecode4)) {
17623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17624 }
17625 arg4 = static_cast< int >(val4);
17626 ecode5 = SWIG_AsVal_int(obj4, &val5);
17627 if (!SWIG_IsOK(ecode5)) {
17628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17629 }
17630 arg5 = static_cast< int >(val5);
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
17633 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17634 wxPyEndAllowThreads(__tstate);
17635 if (PyErr_Occurred()) SWIG_fail;
17636 }
17637 resultobj = SWIG_Py_Void();
17638 return resultobj;
17639fail:
17640 return NULL;
17641}
17642
17643
17644SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17645 PyObject *resultobj = 0;
17646 wxDC *arg1 = (wxDC *) 0 ;
17647 wxPoint *arg2 = 0 ;
17648 wxPoint *arg3 = 0 ;
17649 void *argp1 = 0 ;
17650 int res1 = 0 ;
17651 wxPoint temp2 ;
17652 wxPoint temp3 ;
17653 PyObject * obj0 = 0 ;
17654 PyObject * obj1 = 0 ;
17655 PyObject * obj2 = 0 ;
17656 char * kwnames[] = {
17657 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17658 };
17659
17660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17662 if (!SWIG_IsOK(res1)) {
17663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17664 }
17665 arg1 = reinterpret_cast< wxDC * >(argp1);
17666 {
17667 arg2 = &temp2;
17668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17669 }
17670 {
17671 arg3 = &temp3;
17672 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17673 }
17674 {
17675 PyThreadState* __tstate = wxPyBeginAllowThreads();
17676 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17677 wxPyEndAllowThreads(__tstate);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 resultobj = SWIG_Py_Void();
17681 return resultobj;
17682fail:
17683 return NULL;
17684}
17685
17686
17687SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj = 0;
17689 wxDC *arg1 = (wxDC *) 0 ;
17690 int arg2 ;
17691 int arg3 ;
17692 void *argp1 = 0 ;
17693 int res1 = 0 ;
17694 int val2 ;
17695 int ecode2 = 0 ;
17696 int val3 ;
17697 int ecode3 = 0 ;
17698 PyObject * obj0 = 0 ;
17699 PyObject * obj1 = 0 ;
17700 PyObject * obj2 = 0 ;
17701 char * kwnames[] = {
17702 (char *) "self",(char *) "x",(char *) "y", NULL
17703 };
17704
17705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17707 if (!SWIG_IsOK(res1)) {
17708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17709 }
17710 arg1 = reinterpret_cast< wxDC * >(argp1);
17711 ecode2 = SWIG_AsVal_int(obj1, &val2);
17712 if (!SWIG_IsOK(ecode2)) {
17713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17714 }
17715 arg2 = static_cast< int >(val2);
17716 ecode3 = SWIG_AsVal_int(obj2, &val3);
17717 if (!SWIG_IsOK(ecode3)) {
17718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17719 }
17720 arg3 = static_cast< int >(val3);
17721 {
17722 PyThreadState* __tstate = wxPyBeginAllowThreads();
17723 (arg1)->CrossHair(arg2,arg3);
17724 wxPyEndAllowThreads(__tstate);
17725 if (PyErr_Occurred()) SWIG_fail;
17726 }
17727 resultobj = SWIG_Py_Void();
17728 return resultobj;
17729fail:
17730 return NULL;
17731}
17732
17733
17734SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17735 PyObject *resultobj = 0;
17736 wxDC *arg1 = (wxDC *) 0 ;
17737 wxPoint *arg2 = 0 ;
17738 void *argp1 = 0 ;
17739 int res1 = 0 ;
17740 wxPoint temp2 ;
17741 PyObject * obj0 = 0 ;
17742 PyObject * obj1 = 0 ;
17743 char * kwnames[] = {
17744 (char *) "self",(char *) "pt", NULL
17745 };
17746
17747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17749 if (!SWIG_IsOK(res1)) {
17750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17751 }
17752 arg1 = reinterpret_cast< wxDC * >(argp1);
17753 {
17754 arg2 = &temp2;
17755 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17756 }
17757 {
17758 PyThreadState* __tstate = wxPyBeginAllowThreads();
17759 (arg1)->CrossHair((wxPoint const &)*arg2);
17760 wxPyEndAllowThreads(__tstate);
17761 if (PyErr_Occurred()) SWIG_fail;
17762 }
17763 resultobj = SWIG_Py_Void();
17764 return resultobj;
17765fail:
17766 return NULL;
17767}
17768
17769
17770SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17771 PyObject *resultobj = 0;
17772 wxDC *arg1 = (wxDC *) 0 ;
17773 int arg2 ;
17774 int arg3 ;
17775 int arg4 ;
17776 int arg5 ;
17777 int arg6 ;
17778 int arg7 ;
17779 void *argp1 = 0 ;
17780 int res1 = 0 ;
17781 int val2 ;
17782 int ecode2 = 0 ;
17783 int val3 ;
17784 int ecode3 = 0 ;
17785 int val4 ;
17786 int ecode4 = 0 ;
17787 int val5 ;
17788 int ecode5 = 0 ;
17789 int val6 ;
17790 int ecode6 = 0 ;
17791 int val7 ;
17792 int ecode7 = 0 ;
17793 PyObject * obj0 = 0 ;
17794 PyObject * obj1 = 0 ;
17795 PyObject * obj2 = 0 ;
17796 PyObject * obj3 = 0 ;
17797 PyObject * obj4 = 0 ;
17798 PyObject * obj5 = 0 ;
17799 PyObject * obj6 = 0 ;
17800 char * kwnames[] = {
17801 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17802 };
17803
17804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17806 if (!SWIG_IsOK(res1)) {
17807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17808 }
17809 arg1 = reinterpret_cast< wxDC * >(argp1);
17810 ecode2 = SWIG_AsVal_int(obj1, &val2);
17811 if (!SWIG_IsOK(ecode2)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17813 }
17814 arg2 = static_cast< int >(val2);
17815 ecode3 = SWIG_AsVal_int(obj2, &val3);
17816 if (!SWIG_IsOK(ecode3)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17818 }
17819 arg3 = static_cast< int >(val3);
17820 ecode4 = SWIG_AsVal_int(obj3, &val4);
17821 if (!SWIG_IsOK(ecode4)) {
17822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17823 }
17824 arg4 = static_cast< int >(val4);
17825 ecode5 = SWIG_AsVal_int(obj4, &val5);
17826 if (!SWIG_IsOK(ecode5)) {
17827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17828 }
17829 arg5 = static_cast< int >(val5);
17830 ecode6 = SWIG_AsVal_int(obj5, &val6);
17831 if (!SWIG_IsOK(ecode6)) {
17832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17833 }
17834 arg6 = static_cast< int >(val6);
17835 ecode7 = SWIG_AsVal_int(obj6, &val7);
17836 if (!SWIG_IsOK(ecode7)) {
17837 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17838 }
17839 arg7 = static_cast< int >(val7);
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_Py_Void();
17847 return resultobj;
17848fail:
17849 return NULL;
17850}
17851
17852
17853SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj = 0;
17855 wxDC *arg1 = (wxDC *) 0 ;
17856 wxPoint *arg2 = 0 ;
17857 wxPoint *arg3 = 0 ;
17858 wxPoint *arg4 = 0 ;
17859 void *argp1 = 0 ;
17860 int res1 = 0 ;
17861 wxPoint temp2 ;
17862 wxPoint temp3 ;
17863 wxPoint temp4 ;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17866 PyObject * obj2 = 0 ;
17867 PyObject * obj3 = 0 ;
17868 char * kwnames[] = {
17869 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17870 };
17871
17872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17874 if (!SWIG_IsOK(res1)) {
17875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17876 }
17877 arg1 = reinterpret_cast< wxDC * >(argp1);
17878 {
17879 arg2 = &temp2;
17880 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17881 }
17882 {
17883 arg3 = &temp3;
17884 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17885 }
17886 {
17887 arg4 = &temp4;
17888 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17889 }
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 resultobj = SWIG_Py_Void();
17897 return resultobj;
17898fail:
17899 return NULL;
17900}
17901
17902
17903SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17904 PyObject *resultobj = 0;
17905 wxDC *arg1 = (wxDC *) 0 ;
17906 int arg2 ;
17907 int arg3 ;
17908 int arg4 ;
17909 int arg5 ;
17910 void *argp1 = 0 ;
17911 int res1 = 0 ;
17912 int val2 ;
17913 int ecode2 = 0 ;
17914 int val3 ;
17915 int ecode3 = 0 ;
17916 int val4 ;
17917 int ecode4 = 0 ;
17918 int val5 ;
17919 int ecode5 = 0 ;
17920 PyObject * obj0 = 0 ;
17921 PyObject * obj1 = 0 ;
17922 PyObject * obj2 = 0 ;
17923 PyObject * obj3 = 0 ;
17924 PyObject * obj4 = 0 ;
17925 char * kwnames[] = {
17926 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17927 };
17928
17929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17931 if (!SWIG_IsOK(res1)) {
17932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17933 }
17934 arg1 = reinterpret_cast< wxDC * >(argp1);
17935 ecode2 = SWIG_AsVal_int(obj1, &val2);
17936 if (!SWIG_IsOK(ecode2)) {
17937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17938 }
17939 arg2 = static_cast< int >(val2);
17940 ecode3 = SWIG_AsVal_int(obj2, &val3);
17941 if (!SWIG_IsOK(ecode3)) {
17942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17943 }
17944 arg3 = static_cast< int >(val3);
17945 ecode4 = SWIG_AsVal_int(obj3, &val4);
17946 if (!SWIG_IsOK(ecode4)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17948 }
17949 arg4 = static_cast< int >(val4);
17950 ecode5 = SWIG_AsVal_int(obj4, &val5);
17951 if (!SWIG_IsOK(ecode5)) {
17952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17953 }
17954 arg5 = static_cast< int >(val5);
17955 {
17956 PyThreadState* __tstate = wxPyBeginAllowThreads();
17957 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17958 wxPyEndAllowThreads(__tstate);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 resultobj = SWIG_Py_Void();
17962 return resultobj;
17963fail:
17964 return NULL;
17965}
17966
17967
17968SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17969 PyObject *resultobj = 0;
17970 wxDC *arg1 = (wxDC *) 0 ;
17971 wxRect *arg2 = 0 ;
17972 void *argp1 = 0 ;
17973 int res1 = 0 ;
17974 wxRect temp2 ;
17975 PyObject * obj0 = 0 ;
17976 PyObject * obj1 = 0 ;
17977 char * kwnames[] = {
17978 (char *) "self",(char *) "rect", NULL
17979 };
17980
17981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17983 if (!SWIG_IsOK(res1)) {
17984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17985 }
17986 arg1 = reinterpret_cast< wxDC * >(argp1);
17987 {
17988 arg2 = &temp2;
17989 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17990 }
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 resultobj = SWIG_Py_Void();
17998 return resultobj;
17999fail:
18000 return NULL;
18001}
18002
18003
18004SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18005 PyObject *resultobj = 0;
18006 wxDC *arg1 = (wxDC *) 0 ;
18007 int arg2 ;
18008 int arg3 ;
18009 int arg4 ;
18010 int arg5 ;
18011 double arg6 ;
18012 double arg7 ;
18013 void *argp1 = 0 ;
18014 int res1 = 0 ;
18015 int val2 ;
18016 int ecode2 = 0 ;
18017 int val3 ;
18018 int ecode3 = 0 ;
18019 int val4 ;
18020 int ecode4 = 0 ;
18021 int val5 ;
18022 int ecode5 = 0 ;
18023 double val6 ;
18024 int ecode6 = 0 ;
18025 double val7 ;
18026 int ecode7 = 0 ;
18027 PyObject * obj0 = 0 ;
18028 PyObject * obj1 = 0 ;
18029 PyObject * obj2 = 0 ;
18030 PyObject * obj3 = 0 ;
18031 PyObject * obj4 = 0 ;
18032 PyObject * obj5 = 0 ;
18033 PyObject * obj6 = 0 ;
18034 char * kwnames[] = {
18035 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18036 };
18037
18038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18040 if (!SWIG_IsOK(res1)) {
18041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18042 }
18043 arg1 = reinterpret_cast< wxDC * >(argp1);
18044 ecode2 = SWIG_AsVal_int(obj1, &val2);
18045 if (!SWIG_IsOK(ecode2)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18047 }
18048 arg2 = static_cast< int >(val2);
18049 ecode3 = SWIG_AsVal_int(obj2, &val3);
18050 if (!SWIG_IsOK(ecode3)) {
18051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18052 }
18053 arg3 = static_cast< int >(val3);
18054 ecode4 = SWIG_AsVal_int(obj3, &val4);
18055 if (!SWIG_IsOK(ecode4)) {
18056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18057 }
18058 arg4 = static_cast< int >(val4);
18059 ecode5 = SWIG_AsVal_int(obj4, &val5);
18060 if (!SWIG_IsOK(ecode5)) {
18061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18062 }
18063 arg5 = static_cast< int >(val5);
18064 ecode6 = SWIG_AsVal_double(obj5, &val6);
18065 if (!SWIG_IsOK(ecode6)) {
18066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18067 }
18068 arg6 = static_cast< double >(val6);
18069 ecode7 = SWIG_AsVal_double(obj6, &val7);
18070 if (!SWIG_IsOK(ecode7)) {
18071 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18072 }
18073 arg7 = static_cast< double >(val7);
18074 {
18075 PyThreadState* __tstate = wxPyBeginAllowThreads();
18076 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18077 wxPyEndAllowThreads(__tstate);
18078 if (PyErr_Occurred()) SWIG_fail;
18079 }
18080 resultobj = SWIG_Py_Void();
18081 return resultobj;
18082fail:
18083 return NULL;
18084}
18085
18086
18087SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18088 PyObject *resultobj = 0;
18089 wxDC *arg1 = (wxDC *) 0 ;
18090 wxPoint *arg2 = 0 ;
18091 wxSize *arg3 = 0 ;
18092 double arg4 ;
18093 double arg5 ;
18094 void *argp1 = 0 ;
18095 int res1 = 0 ;
18096 wxPoint temp2 ;
18097 wxSize temp3 ;
18098 double val4 ;
18099 int ecode4 = 0 ;
18100 double val5 ;
18101 int ecode5 = 0 ;
18102 PyObject * obj0 = 0 ;
18103 PyObject * obj1 = 0 ;
18104 PyObject * obj2 = 0 ;
18105 PyObject * obj3 = 0 ;
18106 PyObject * obj4 = 0 ;
18107 char * kwnames[] = {
18108 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18109 };
18110
18111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18113 if (!SWIG_IsOK(res1)) {
18114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18115 }
18116 arg1 = reinterpret_cast< wxDC * >(argp1);
18117 {
18118 arg2 = &temp2;
18119 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18120 }
18121 {
18122 arg3 = &temp3;
18123 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18124 }
18125 ecode4 = SWIG_AsVal_double(obj3, &val4);
18126 if (!SWIG_IsOK(ecode4)) {
18127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18128 }
18129 arg4 = static_cast< double >(val4);
18130 ecode5 = SWIG_AsVal_double(obj4, &val5);
18131 if (!SWIG_IsOK(ecode5)) {
18132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18133 }
18134 arg5 = static_cast< double >(val5);
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 resultobj = SWIG_Py_Void();
18142 return resultobj;
18143fail:
18144 return NULL;
18145}
18146
18147
18148SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18149 PyObject *resultobj = 0;
18150 wxDC *arg1 = (wxDC *) 0 ;
18151 int arg2 ;
18152 int arg3 ;
18153 void *argp1 = 0 ;
18154 int res1 = 0 ;
18155 int val2 ;
18156 int ecode2 = 0 ;
18157 int val3 ;
18158 int ecode3 = 0 ;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 PyObject * obj2 = 0 ;
18162 char * kwnames[] = {
18163 (char *) "self",(char *) "x",(char *) "y", NULL
18164 };
18165
18166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18168 if (!SWIG_IsOK(res1)) {
18169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18170 }
18171 arg1 = reinterpret_cast< wxDC * >(argp1);
18172 ecode2 = SWIG_AsVal_int(obj1, &val2);
18173 if (!SWIG_IsOK(ecode2)) {
18174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18175 }
18176 arg2 = static_cast< int >(val2);
18177 ecode3 = SWIG_AsVal_int(obj2, &val3);
18178 if (!SWIG_IsOK(ecode3)) {
18179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18180 }
18181 arg3 = static_cast< int >(val3);
18182 {
18183 PyThreadState* __tstate = wxPyBeginAllowThreads();
18184 (arg1)->DrawPoint(arg2,arg3);
18185 wxPyEndAllowThreads(__tstate);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 }
18188 resultobj = SWIG_Py_Void();
18189 return resultobj;
18190fail:
18191 return NULL;
18192}
18193
18194
18195SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18196 PyObject *resultobj = 0;
18197 wxDC *arg1 = (wxDC *) 0 ;
18198 wxPoint *arg2 = 0 ;
18199 void *argp1 = 0 ;
18200 int res1 = 0 ;
18201 wxPoint temp2 ;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 char * kwnames[] = {
18205 (char *) "self",(char *) "pt", NULL
18206 };
18207
18208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18210 if (!SWIG_IsOK(res1)) {
18211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18212 }
18213 arg1 = reinterpret_cast< wxDC * >(argp1);
18214 {
18215 arg2 = &temp2;
18216 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18217 }
18218 {
18219 PyThreadState* __tstate = wxPyBeginAllowThreads();
18220 (arg1)->DrawPoint((wxPoint const &)*arg2);
18221 wxPyEndAllowThreads(__tstate);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 resultobj = SWIG_Py_Void();
18225 return resultobj;
18226fail:
18227 return NULL;
18228}
18229
18230
18231SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18232 PyObject *resultobj = 0;
18233 wxDC *arg1 = (wxDC *) 0 ;
18234 int arg2 ;
18235 int arg3 ;
18236 int arg4 ;
18237 int arg5 ;
18238 void *argp1 = 0 ;
18239 int res1 = 0 ;
18240 int val2 ;
18241 int ecode2 = 0 ;
18242 int val3 ;
18243 int ecode3 = 0 ;
18244 int val4 ;
18245 int ecode4 = 0 ;
18246 int val5 ;
18247 int ecode5 = 0 ;
18248 PyObject * obj0 = 0 ;
18249 PyObject * obj1 = 0 ;
18250 PyObject * obj2 = 0 ;
18251 PyObject * obj3 = 0 ;
18252 PyObject * obj4 = 0 ;
18253 char * kwnames[] = {
18254 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18255 };
18256
18257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18259 if (!SWIG_IsOK(res1)) {
18260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18261 }
18262 arg1 = reinterpret_cast< wxDC * >(argp1);
18263 ecode2 = SWIG_AsVal_int(obj1, &val2);
18264 if (!SWIG_IsOK(ecode2)) {
18265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18266 }
18267 arg2 = static_cast< int >(val2);
18268 ecode3 = SWIG_AsVal_int(obj2, &val3);
18269 if (!SWIG_IsOK(ecode3)) {
18270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18271 }
18272 arg3 = static_cast< int >(val3);
18273 ecode4 = SWIG_AsVal_int(obj3, &val4);
18274 if (!SWIG_IsOK(ecode4)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18276 }
18277 arg4 = static_cast< int >(val4);
18278 ecode5 = SWIG_AsVal_int(obj4, &val5);
18279 if (!SWIG_IsOK(ecode5)) {
18280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18281 }
18282 arg5 = static_cast< int >(val5);
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18286 wxPyEndAllowThreads(__tstate);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 resultobj = SWIG_Py_Void();
18290 return resultobj;
18291fail:
18292 return NULL;
18293}
18294
18295
18296SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18297 PyObject *resultobj = 0;
18298 wxDC *arg1 = (wxDC *) 0 ;
18299 wxRect *arg2 = 0 ;
18300 void *argp1 = 0 ;
18301 int res1 = 0 ;
18302 wxRect temp2 ;
18303 PyObject * obj0 = 0 ;
18304 PyObject * obj1 = 0 ;
18305 char * kwnames[] = {
18306 (char *) "self",(char *) "rect", NULL
18307 };
18308
18309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18311 if (!SWIG_IsOK(res1)) {
18312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18313 }
18314 arg1 = reinterpret_cast< wxDC * >(argp1);
18315 {
18316 arg2 = &temp2;
18317 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 (arg1)->DrawRectangle((wxRect const &)*arg2);
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_Py_Void();
18326 return resultobj;
18327fail:
18328 return NULL;
18329}
18330
18331
18332SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj = 0;
18334 wxDC *arg1 = (wxDC *) 0 ;
18335 wxPoint *arg2 = 0 ;
18336 wxSize *arg3 = 0 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 wxPoint temp2 ;
18340 wxSize temp3 ;
18341 PyObject * obj0 = 0 ;
18342 PyObject * obj1 = 0 ;
18343 PyObject * obj2 = 0 ;
18344 char * kwnames[] = {
18345 (char *) "self",(char *) "pt",(char *) "sz", NULL
18346 };
18347
18348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18350 if (!SWIG_IsOK(res1)) {
18351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18352 }
18353 arg1 = reinterpret_cast< wxDC * >(argp1);
18354 {
18355 arg2 = &temp2;
18356 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18357 }
18358 {
18359 arg3 = &temp3;
18360 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18361 }
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18365 wxPyEndAllowThreads(__tstate);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 }
18368 resultobj = SWIG_Py_Void();
18369 return resultobj;
18370fail:
18371 return NULL;
18372}
18373
18374
18375SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj = 0;
18377 wxDC *arg1 = (wxDC *) 0 ;
18378 int arg2 ;
18379 int arg3 ;
18380 int arg4 ;
18381 int arg5 ;
18382 double arg6 ;
18383 void *argp1 = 0 ;
18384 int res1 = 0 ;
18385 int val2 ;
18386 int ecode2 = 0 ;
18387 int val3 ;
18388 int ecode3 = 0 ;
18389 int val4 ;
18390 int ecode4 = 0 ;
18391 int val5 ;
18392 int ecode5 = 0 ;
18393 double val6 ;
18394 int ecode6 = 0 ;
18395 PyObject * obj0 = 0 ;
18396 PyObject * obj1 = 0 ;
18397 PyObject * obj2 = 0 ;
18398 PyObject * obj3 = 0 ;
18399 PyObject * obj4 = 0 ;
18400 PyObject * obj5 = 0 ;
18401 char * kwnames[] = {
18402 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18403 };
18404
18405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18407 if (!SWIG_IsOK(res1)) {
18408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18409 }
18410 arg1 = reinterpret_cast< wxDC * >(argp1);
18411 ecode2 = SWIG_AsVal_int(obj1, &val2);
18412 if (!SWIG_IsOK(ecode2)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18414 }
18415 arg2 = static_cast< int >(val2);
18416 ecode3 = SWIG_AsVal_int(obj2, &val3);
18417 if (!SWIG_IsOK(ecode3)) {
18418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18419 }
18420 arg3 = static_cast< int >(val3);
18421 ecode4 = SWIG_AsVal_int(obj3, &val4);
18422 if (!SWIG_IsOK(ecode4)) {
18423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18424 }
18425 arg4 = static_cast< int >(val4);
18426 ecode5 = SWIG_AsVal_int(obj4, &val5);
18427 if (!SWIG_IsOK(ecode5)) {
18428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18429 }
18430 arg5 = static_cast< int >(val5);
18431 ecode6 = SWIG_AsVal_double(obj5, &val6);
18432 if (!SWIG_IsOK(ecode6)) {
18433 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18434 }
18435 arg6 = static_cast< double >(val6);
18436 {
18437 PyThreadState* __tstate = wxPyBeginAllowThreads();
18438 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18439 wxPyEndAllowThreads(__tstate);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 }
18442 resultobj = SWIG_Py_Void();
18443 return resultobj;
18444fail:
18445 return NULL;
18446}
18447
18448
18449SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj = 0;
18451 wxDC *arg1 = (wxDC *) 0 ;
18452 wxRect *arg2 = 0 ;
18453 double arg3 ;
18454 void *argp1 = 0 ;
18455 int res1 = 0 ;
18456 wxRect temp2 ;
18457 double val3 ;
18458 int ecode3 = 0 ;
18459 PyObject * obj0 = 0 ;
18460 PyObject * obj1 = 0 ;
18461 PyObject * obj2 = 0 ;
18462 char * kwnames[] = {
18463 (char *) "self",(char *) "r",(char *) "radius", NULL
18464 };
18465
18466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18468 if (!SWIG_IsOK(res1)) {
18469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18470 }
18471 arg1 = reinterpret_cast< wxDC * >(argp1);
18472 {
18473 arg2 = &temp2;
18474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18475 }
18476 ecode3 = SWIG_AsVal_double(obj2, &val3);
18477 if (!SWIG_IsOK(ecode3)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18479 }
18480 arg3 = static_cast< double >(val3);
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_Py_Void();
18488 return resultobj;
18489fail:
18490 return NULL;
18491}
18492
18493
18494SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18495 PyObject *resultobj = 0;
18496 wxDC *arg1 = (wxDC *) 0 ;
18497 wxPoint *arg2 = 0 ;
18498 wxSize *arg3 = 0 ;
18499 double arg4 ;
18500 void *argp1 = 0 ;
18501 int res1 = 0 ;
18502 wxPoint temp2 ;
18503 wxSize temp3 ;
18504 double val4 ;
18505 int ecode4 = 0 ;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 PyObject * obj2 = 0 ;
18509 PyObject * obj3 = 0 ;
18510 char * kwnames[] = {
18511 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18512 };
18513
18514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18516 if (!SWIG_IsOK(res1)) {
18517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18518 }
18519 arg1 = reinterpret_cast< wxDC * >(argp1);
18520 {
18521 arg2 = &temp2;
18522 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18523 }
18524 {
18525 arg3 = &temp3;
18526 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18527 }
18528 ecode4 = SWIG_AsVal_double(obj3, &val4);
18529 if (!SWIG_IsOK(ecode4)) {
18530 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18531 }
18532 arg4 = static_cast< double >(val4);
18533 {
18534 PyThreadState* __tstate = wxPyBeginAllowThreads();
18535 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 resultobj = SWIG_Py_Void();
18540 return resultobj;
18541fail:
18542 return NULL;
18543}
18544
18545
18546SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18547 PyObject *resultobj = 0;
18548 wxDC *arg1 = (wxDC *) 0 ;
18549 int arg2 ;
18550 int arg3 ;
18551 int arg4 ;
18552 void *argp1 = 0 ;
18553 int res1 = 0 ;
18554 int val2 ;
18555 int ecode2 = 0 ;
18556 int val3 ;
18557 int ecode3 = 0 ;
18558 int val4 ;
18559 int ecode4 = 0 ;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 PyObject * obj3 = 0 ;
18564 char * kwnames[] = {
18565 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18566 };
18567
18568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18570 if (!SWIG_IsOK(res1)) {
18571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18572 }
18573 arg1 = reinterpret_cast< wxDC * >(argp1);
18574 ecode2 = SWIG_AsVal_int(obj1, &val2);
18575 if (!SWIG_IsOK(ecode2)) {
18576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18577 }
18578 arg2 = static_cast< int >(val2);
18579 ecode3 = SWIG_AsVal_int(obj2, &val3);
18580 if (!SWIG_IsOK(ecode3)) {
18581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18582 }
18583 arg3 = static_cast< int >(val3);
18584 ecode4 = SWIG_AsVal_int(obj3, &val4);
18585 if (!SWIG_IsOK(ecode4)) {
18586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18587 }
18588 arg4 = static_cast< int >(val4);
18589 {
18590 PyThreadState* __tstate = wxPyBeginAllowThreads();
18591 (arg1)->DrawCircle(arg2,arg3,arg4);
18592 wxPyEndAllowThreads(__tstate);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 resultobj = SWIG_Py_Void();
18596 return resultobj;
18597fail:
18598 return NULL;
18599}
18600
18601
18602SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj = 0;
18604 wxDC *arg1 = (wxDC *) 0 ;
18605 wxPoint *arg2 = 0 ;
18606 int arg3 ;
18607 void *argp1 = 0 ;
18608 int res1 = 0 ;
18609 wxPoint temp2 ;
18610 int val3 ;
18611 int ecode3 = 0 ;
18612 PyObject * obj0 = 0 ;
18613 PyObject * obj1 = 0 ;
18614 PyObject * obj2 = 0 ;
18615 char * kwnames[] = {
18616 (char *) "self",(char *) "pt",(char *) "radius", NULL
18617 };
18618
18619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18623 }
18624 arg1 = reinterpret_cast< wxDC * >(argp1);
18625 {
18626 arg2 = &temp2;
18627 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18628 }
18629 ecode3 = SWIG_AsVal_int(obj2, &val3);
18630 if (!SWIG_IsOK(ecode3)) {
18631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18632 }
18633 arg3 = static_cast< int >(val3);
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18637 wxPyEndAllowThreads(__tstate);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 resultobj = SWIG_Py_Void();
18641 return resultobj;
18642fail:
18643 return NULL;
18644}
18645
18646
18647SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18648 PyObject *resultobj = 0;
18649 wxDC *arg1 = (wxDC *) 0 ;
18650 int arg2 ;
18651 int arg3 ;
18652 int arg4 ;
18653 int arg5 ;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 int val2 ;
18657 int ecode2 = 0 ;
18658 int val3 ;
18659 int ecode3 = 0 ;
18660 int val4 ;
18661 int ecode4 = 0 ;
18662 int val5 ;
18663 int ecode5 = 0 ;
18664 PyObject * obj0 = 0 ;
18665 PyObject * obj1 = 0 ;
18666 PyObject * obj2 = 0 ;
18667 PyObject * obj3 = 0 ;
18668 PyObject * obj4 = 0 ;
18669 char * kwnames[] = {
18670 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18671 };
18672
18673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18675 if (!SWIG_IsOK(res1)) {
18676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18677 }
18678 arg1 = reinterpret_cast< wxDC * >(argp1);
18679 ecode2 = SWIG_AsVal_int(obj1, &val2);
18680 if (!SWIG_IsOK(ecode2)) {
18681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18682 }
18683 arg2 = static_cast< int >(val2);
18684 ecode3 = SWIG_AsVal_int(obj2, &val3);
18685 if (!SWIG_IsOK(ecode3)) {
18686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18687 }
18688 arg3 = static_cast< int >(val3);
18689 ecode4 = SWIG_AsVal_int(obj3, &val4);
18690 if (!SWIG_IsOK(ecode4)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18692 }
18693 arg4 = static_cast< int >(val4);
18694 ecode5 = SWIG_AsVal_int(obj4, &val5);
18695 if (!SWIG_IsOK(ecode5)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18697 }
18698 arg5 = static_cast< int >(val5);
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 resultobj = SWIG_Py_Void();
18706 return resultobj;
18707fail:
18708 return NULL;
18709}
18710
18711
18712SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18713 PyObject *resultobj = 0;
18714 wxDC *arg1 = (wxDC *) 0 ;
18715 wxRect *arg2 = 0 ;
18716 void *argp1 = 0 ;
18717 int res1 = 0 ;
18718 wxRect temp2 ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 char * kwnames[] = {
18722 (char *) "self",(char *) "rect", NULL
18723 };
18724
18725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18727 if (!SWIG_IsOK(res1)) {
18728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18729 }
18730 arg1 = reinterpret_cast< wxDC * >(argp1);
18731 {
18732 arg2 = &temp2;
18733 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18734 }
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->DrawEllipse((wxRect const &)*arg2);
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_Py_Void();
18742 return resultobj;
18743fail:
18744 return NULL;
18745}
18746
18747
18748SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj = 0;
18750 wxDC *arg1 = (wxDC *) 0 ;
18751 wxPoint *arg2 = 0 ;
18752 wxSize *arg3 = 0 ;
18753 void *argp1 = 0 ;
18754 int res1 = 0 ;
18755 wxPoint temp2 ;
18756 wxSize temp3 ;
18757 PyObject * obj0 = 0 ;
18758 PyObject * obj1 = 0 ;
18759 PyObject * obj2 = 0 ;
18760 char * kwnames[] = {
18761 (char *) "self",(char *) "pt",(char *) "sz", NULL
18762 };
18763
18764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18766 if (!SWIG_IsOK(res1)) {
18767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18768 }
18769 arg1 = reinterpret_cast< wxDC * >(argp1);
18770 {
18771 arg2 = &temp2;
18772 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18773 }
18774 {
18775 arg3 = &temp3;
18776 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18777 }
18778 {
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18781 wxPyEndAllowThreads(__tstate);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 resultobj = SWIG_Py_Void();
18785 return resultobj;
18786fail:
18787 return NULL;
18788}
18789
18790
18791SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18792 PyObject *resultobj = 0;
18793 wxDC *arg1 = (wxDC *) 0 ;
18794 wxIcon *arg2 = 0 ;
18795 int arg3 ;
18796 int arg4 ;
18797 void *argp1 = 0 ;
18798 int res1 = 0 ;
18799 void *argp2 = 0 ;
18800 int res2 = 0 ;
18801 int val3 ;
18802 int ecode3 = 0 ;
18803 int val4 ;
18804 int ecode4 = 0 ;
18805 PyObject * obj0 = 0 ;
18806 PyObject * obj1 = 0 ;
18807 PyObject * obj2 = 0 ;
18808 PyObject * obj3 = 0 ;
18809 char * kwnames[] = {
18810 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18811 };
18812
18813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18815 if (!SWIG_IsOK(res1)) {
18816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18817 }
18818 arg1 = reinterpret_cast< wxDC * >(argp1);
18819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18820 if (!SWIG_IsOK(res2)) {
18821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18822 }
18823 if (!argp2) {
18824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18825 }
18826 arg2 = reinterpret_cast< wxIcon * >(argp2);
18827 ecode3 = SWIG_AsVal_int(obj2, &val3);
18828 if (!SWIG_IsOK(ecode3)) {
18829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18830 }
18831 arg3 = static_cast< int >(val3);
18832 ecode4 = SWIG_AsVal_int(obj3, &val4);
18833 if (!SWIG_IsOK(ecode4)) {
18834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18835 }
18836 arg4 = static_cast< int >(val4);
18837 {
18838 PyThreadState* __tstate = wxPyBeginAllowThreads();
18839 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18840 wxPyEndAllowThreads(__tstate);
18841 if (PyErr_Occurred()) SWIG_fail;
18842 }
18843 resultobj = SWIG_Py_Void();
18844 return resultobj;
18845fail:
18846 return NULL;
18847}
18848
18849
18850SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18851 PyObject *resultobj = 0;
18852 wxDC *arg1 = (wxDC *) 0 ;
18853 wxIcon *arg2 = 0 ;
18854 wxPoint *arg3 = 0 ;
18855 void *argp1 = 0 ;
18856 int res1 = 0 ;
18857 void *argp2 = 0 ;
18858 int res2 = 0 ;
18859 wxPoint temp3 ;
18860 PyObject * obj0 = 0 ;
18861 PyObject * obj1 = 0 ;
18862 PyObject * obj2 = 0 ;
18863 char * kwnames[] = {
18864 (char *) "self",(char *) "icon",(char *) "pt", NULL
18865 };
18866
18867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18869 if (!SWIG_IsOK(res1)) {
18870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18871 }
18872 arg1 = reinterpret_cast< wxDC * >(argp1);
18873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18874 if (!SWIG_IsOK(res2)) {
18875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18876 }
18877 if (!argp2) {
18878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18879 }
18880 arg2 = reinterpret_cast< wxIcon * >(argp2);
18881 {
18882 arg3 = &temp3;
18883 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18884 }
18885 {
18886 PyThreadState* __tstate = wxPyBeginAllowThreads();
18887 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 resultobj = SWIG_Py_Void();
18892 return resultobj;
18893fail:
18894 return NULL;
18895}
18896
18897
18898SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj = 0;
18900 wxDC *arg1 = (wxDC *) 0 ;
18901 wxBitmap *arg2 = 0 ;
18902 int arg3 ;
18903 int arg4 ;
18904 bool arg5 = (bool) false ;
18905 void *argp1 = 0 ;
18906 int res1 = 0 ;
18907 void *argp2 = 0 ;
18908 int res2 = 0 ;
18909 int val3 ;
18910 int ecode3 = 0 ;
18911 int val4 ;
18912 int ecode4 = 0 ;
18913 bool val5 ;
18914 int ecode5 = 0 ;
18915 PyObject * obj0 = 0 ;
18916 PyObject * obj1 = 0 ;
18917 PyObject * obj2 = 0 ;
18918 PyObject * obj3 = 0 ;
18919 PyObject * obj4 = 0 ;
18920 char * kwnames[] = {
18921 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18922 };
18923
18924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18926 if (!SWIG_IsOK(res1)) {
18927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18928 }
18929 arg1 = reinterpret_cast< wxDC * >(argp1);
18930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18931 if (!SWIG_IsOK(res2)) {
18932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18933 }
18934 if (!argp2) {
18935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18936 }
18937 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18938 ecode3 = SWIG_AsVal_int(obj2, &val3);
18939 if (!SWIG_IsOK(ecode3)) {
18940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18941 }
18942 arg3 = static_cast< int >(val3);
18943 ecode4 = SWIG_AsVal_int(obj3, &val4);
18944 if (!SWIG_IsOK(ecode4)) {
18945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18946 }
18947 arg4 = static_cast< int >(val4);
18948 if (obj4) {
18949 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18950 if (!SWIG_IsOK(ecode5)) {
18951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18952 }
18953 arg5 = static_cast< bool >(val5);
18954 }
18955 {
18956 PyThreadState* __tstate = wxPyBeginAllowThreads();
18957 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18958 wxPyEndAllowThreads(__tstate);
18959 if (PyErr_Occurred()) SWIG_fail;
18960 }
18961 resultobj = SWIG_Py_Void();
18962 return resultobj;
18963fail:
18964 return NULL;
18965}
18966
18967
18968SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj = 0;
18970 wxDC *arg1 = (wxDC *) 0 ;
18971 wxBitmap *arg2 = 0 ;
18972 wxPoint *arg3 = 0 ;
18973 bool arg4 = (bool) false ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 void *argp2 = 0 ;
18977 int res2 = 0 ;
18978 wxPoint temp3 ;
18979 bool val4 ;
18980 int ecode4 = 0 ;
18981 PyObject * obj0 = 0 ;
18982 PyObject * obj1 = 0 ;
18983 PyObject * obj2 = 0 ;
18984 PyObject * obj3 = 0 ;
18985 char * kwnames[] = {
18986 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18987 };
18988
18989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18991 if (!SWIG_IsOK(res1)) {
18992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18993 }
18994 arg1 = reinterpret_cast< wxDC * >(argp1);
18995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18996 if (!SWIG_IsOK(res2)) {
18997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18998 }
18999 if (!argp2) {
19000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19001 }
19002 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19003 {
19004 arg3 = &temp3;
19005 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19006 }
19007 if (obj3) {
19008 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19009 if (!SWIG_IsOK(ecode4)) {
19010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19011 }
19012 arg4 = static_cast< bool >(val4);
19013 }
19014 {
19015 PyThreadState* __tstate = wxPyBeginAllowThreads();
19016 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 resultobj = SWIG_Py_Void();
19021 return resultobj;
19022fail:
19023 return NULL;
19024}
19025
19026
19027SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19028 PyObject *resultobj = 0;
19029 wxDC *arg1 = (wxDC *) 0 ;
19030 wxString *arg2 = 0 ;
19031 int arg3 ;
19032 int arg4 ;
19033 void *argp1 = 0 ;
19034 int res1 = 0 ;
19035 bool temp2 = false ;
19036 int val3 ;
19037 int ecode3 = 0 ;
19038 int val4 ;
19039 int ecode4 = 0 ;
19040 PyObject * obj0 = 0 ;
19041 PyObject * obj1 = 0 ;
19042 PyObject * obj2 = 0 ;
19043 PyObject * obj3 = 0 ;
19044 char * kwnames[] = {
19045 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19046 };
19047
19048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19050 if (!SWIG_IsOK(res1)) {
19051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19052 }
19053 arg1 = reinterpret_cast< wxDC * >(argp1);
19054 {
19055 arg2 = wxString_in_helper(obj1);
19056 if (arg2 == NULL) SWIG_fail;
19057 temp2 = true;
19058 }
19059 ecode3 = SWIG_AsVal_int(obj2, &val3);
19060 if (!SWIG_IsOK(ecode3)) {
19061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19062 }
19063 arg3 = static_cast< int >(val3);
19064 ecode4 = SWIG_AsVal_int(obj3, &val4);
19065 if (!SWIG_IsOK(ecode4)) {
19066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19067 }
19068 arg4 = static_cast< int >(val4);
19069 {
19070 PyThreadState* __tstate = wxPyBeginAllowThreads();
19071 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19072 wxPyEndAllowThreads(__tstate);
19073 if (PyErr_Occurred()) SWIG_fail;
19074 }
19075 resultobj = SWIG_Py_Void();
19076 {
19077 if (temp2)
19078 delete arg2;
19079 }
19080 return resultobj;
19081fail:
19082 {
19083 if (temp2)
19084 delete arg2;
19085 }
19086 return NULL;
19087}
19088
19089
19090SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = 0;
19092 wxDC *arg1 = (wxDC *) 0 ;
19093 wxString *arg2 = 0 ;
19094 wxPoint *arg3 = 0 ;
19095 void *argp1 = 0 ;
19096 int res1 = 0 ;
19097 bool temp2 = false ;
19098 wxPoint temp3 ;
19099 PyObject * obj0 = 0 ;
19100 PyObject * obj1 = 0 ;
19101 PyObject * obj2 = 0 ;
19102 char * kwnames[] = {
19103 (char *) "self",(char *) "text",(char *) "pt", NULL
19104 };
19105
19106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19110 }
19111 arg1 = reinterpret_cast< wxDC * >(argp1);
19112 {
19113 arg2 = wxString_in_helper(obj1);
19114 if (arg2 == NULL) SWIG_fail;
19115 temp2 = true;
19116 }
19117 {
19118 arg3 = &temp3;
19119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19120 }
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_Py_Void();
19128 {
19129 if (temp2)
19130 delete arg2;
19131 }
19132 return resultobj;
19133fail:
19134 {
19135 if (temp2)
19136 delete arg2;
19137 }
19138 return NULL;
19139}
19140
19141
19142SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19143 PyObject *resultobj = 0;
19144 wxDC *arg1 = (wxDC *) 0 ;
19145 wxString *arg2 = 0 ;
19146 int arg3 ;
19147 int arg4 ;
19148 double arg5 ;
19149 void *argp1 = 0 ;
19150 int res1 = 0 ;
19151 bool temp2 = false ;
19152 int val3 ;
19153 int ecode3 = 0 ;
19154 int val4 ;
19155 int ecode4 = 0 ;
19156 double val5 ;
19157 int ecode5 = 0 ;
19158 PyObject * obj0 = 0 ;
19159 PyObject * obj1 = 0 ;
19160 PyObject * obj2 = 0 ;
19161 PyObject * obj3 = 0 ;
19162 PyObject * obj4 = 0 ;
19163 char * kwnames[] = {
19164 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19165 };
19166
19167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19169 if (!SWIG_IsOK(res1)) {
19170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19171 }
19172 arg1 = reinterpret_cast< wxDC * >(argp1);
19173 {
19174 arg2 = wxString_in_helper(obj1);
19175 if (arg2 == NULL) SWIG_fail;
19176 temp2 = true;
19177 }
19178 ecode3 = SWIG_AsVal_int(obj2, &val3);
19179 if (!SWIG_IsOK(ecode3)) {
19180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19181 }
19182 arg3 = static_cast< int >(val3);
19183 ecode4 = SWIG_AsVal_int(obj3, &val4);
19184 if (!SWIG_IsOK(ecode4)) {
19185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19186 }
19187 arg4 = static_cast< int >(val4);
19188 ecode5 = SWIG_AsVal_double(obj4, &val5);
19189 if (!SWIG_IsOK(ecode5)) {
19190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19191 }
19192 arg5 = static_cast< double >(val5);
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 resultobj = SWIG_Py_Void();
19200 {
19201 if (temp2)
19202 delete arg2;
19203 }
19204 return resultobj;
19205fail:
19206 {
19207 if (temp2)
19208 delete arg2;
19209 }
19210 return NULL;
19211}
19212
19213
19214SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19215 PyObject *resultobj = 0;
19216 wxDC *arg1 = (wxDC *) 0 ;
19217 wxString *arg2 = 0 ;
19218 wxPoint *arg3 = 0 ;
19219 double arg4 ;
19220 void *argp1 = 0 ;
19221 int res1 = 0 ;
19222 bool temp2 = false ;
19223 wxPoint temp3 ;
19224 double val4 ;
19225 int ecode4 = 0 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 PyObject * obj2 = 0 ;
19229 PyObject * obj3 = 0 ;
19230 char * kwnames[] = {
19231 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19232 };
19233
19234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19236 if (!SWIG_IsOK(res1)) {
19237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19238 }
19239 arg1 = reinterpret_cast< wxDC * >(argp1);
19240 {
19241 arg2 = wxString_in_helper(obj1);
19242 if (arg2 == NULL) SWIG_fail;
19243 temp2 = true;
19244 }
19245 {
19246 arg3 = &temp3;
19247 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19248 }
19249 ecode4 = SWIG_AsVal_double(obj3, &val4);
19250 if (!SWIG_IsOK(ecode4)) {
19251 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19252 }
19253 arg4 = static_cast< double >(val4);
19254 {
19255 PyThreadState* __tstate = wxPyBeginAllowThreads();
19256 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19257 wxPyEndAllowThreads(__tstate);
19258 if (PyErr_Occurred()) SWIG_fail;
19259 }
19260 resultobj = SWIG_Py_Void();
19261 {
19262 if (temp2)
19263 delete arg2;
19264 }
19265 return resultobj;
19266fail:
19267 {
19268 if (temp2)
19269 delete arg2;
19270 }
19271 return NULL;
19272}
19273
19274
19275SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19276 PyObject *resultobj = 0;
19277 wxDC *arg1 = (wxDC *) 0 ;
19278 int arg2 ;
19279 int arg3 ;
19280 int arg4 ;
19281 int arg5 ;
19282 wxDC *arg6 = (wxDC *) 0 ;
19283 int arg7 ;
19284 int arg8 ;
19285 int arg9 = (int) wxCOPY ;
19286 bool arg10 = (bool) false ;
19287 int arg11 = (int) -1 ;
19288 int arg12 = (int) -1 ;
19289 bool result;
19290 void *argp1 = 0 ;
19291 int res1 = 0 ;
19292 int val2 ;
19293 int ecode2 = 0 ;
19294 int val3 ;
19295 int ecode3 = 0 ;
19296 int val4 ;
19297 int ecode4 = 0 ;
19298 int val5 ;
19299 int ecode5 = 0 ;
19300 void *argp6 = 0 ;
19301 int res6 = 0 ;
19302 int val7 ;
19303 int ecode7 = 0 ;
19304 int val8 ;
19305 int ecode8 = 0 ;
19306 int val9 ;
19307 int ecode9 = 0 ;
19308 bool val10 ;
19309 int ecode10 = 0 ;
19310 int val11 ;
19311 int ecode11 = 0 ;
19312 int val12 ;
19313 int ecode12 = 0 ;
19314 PyObject * obj0 = 0 ;
19315 PyObject * obj1 = 0 ;
19316 PyObject * obj2 = 0 ;
19317 PyObject * obj3 = 0 ;
19318 PyObject * obj4 = 0 ;
19319 PyObject * obj5 = 0 ;
19320 PyObject * obj6 = 0 ;
19321 PyObject * obj7 = 0 ;
19322 PyObject * obj8 = 0 ;
19323 PyObject * obj9 = 0 ;
19324 PyObject * obj10 = 0 ;
19325 PyObject * obj11 = 0 ;
19326 char * kwnames[] = {
19327 (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
19328 };
19329
19330 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;
19331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19332 if (!SWIG_IsOK(res1)) {
19333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19334 }
19335 arg1 = reinterpret_cast< wxDC * >(argp1);
19336 ecode2 = SWIG_AsVal_int(obj1, &val2);
19337 if (!SWIG_IsOK(ecode2)) {
19338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19339 }
19340 arg2 = static_cast< int >(val2);
19341 ecode3 = SWIG_AsVal_int(obj2, &val3);
19342 if (!SWIG_IsOK(ecode3)) {
19343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19344 }
19345 arg3 = static_cast< int >(val3);
19346 ecode4 = SWIG_AsVal_int(obj3, &val4);
19347 if (!SWIG_IsOK(ecode4)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19349 }
19350 arg4 = static_cast< int >(val4);
19351 ecode5 = SWIG_AsVal_int(obj4, &val5);
19352 if (!SWIG_IsOK(ecode5)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19354 }
19355 arg5 = static_cast< int >(val5);
19356 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19357 if (!SWIG_IsOK(res6)) {
19358 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19359 }
19360 arg6 = reinterpret_cast< wxDC * >(argp6);
19361 ecode7 = SWIG_AsVal_int(obj6, &val7);
19362 if (!SWIG_IsOK(ecode7)) {
19363 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19364 }
19365 arg7 = static_cast< int >(val7);
19366 ecode8 = SWIG_AsVal_int(obj7, &val8);
19367 if (!SWIG_IsOK(ecode8)) {
19368 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19369 }
19370 arg8 = static_cast< int >(val8);
19371 if (obj8) {
19372 ecode9 = SWIG_AsVal_int(obj8, &val9);
19373 if (!SWIG_IsOK(ecode9)) {
19374 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19375 }
19376 arg9 = static_cast< int >(val9);
19377 }
19378 if (obj9) {
19379 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19380 if (!SWIG_IsOK(ecode10)) {
19381 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19382 }
19383 arg10 = static_cast< bool >(val10);
19384 }
19385 if (obj10) {
19386 ecode11 = SWIG_AsVal_int(obj10, &val11);
19387 if (!SWIG_IsOK(ecode11)) {
19388 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19389 }
19390 arg11 = static_cast< int >(val11);
19391 }
19392 if (obj11) {
19393 ecode12 = SWIG_AsVal_int(obj11, &val12);
19394 if (!SWIG_IsOK(ecode12)) {
19395 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19396 }
19397 arg12 = static_cast< int >(val12);
19398 }
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19402 wxPyEndAllowThreads(__tstate);
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
19405 {
19406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19407 }
19408 return resultobj;
19409fail:
19410 return NULL;
19411}
19412
19413
19414SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj = 0;
19416 wxDC *arg1 = (wxDC *) 0 ;
19417 wxPoint *arg2 = 0 ;
19418 wxSize *arg3 = 0 ;
19419 wxDC *arg4 = (wxDC *) 0 ;
19420 wxPoint *arg5 = 0 ;
19421 int arg6 = (int) wxCOPY ;
19422 bool arg7 = (bool) false ;
19423 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19424 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19425 bool result;
19426 void *argp1 = 0 ;
19427 int res1 = 0 ;
19428 wxPoint temp2 ;
19429 wxSize temp3 ;
19430 void *argp4 = 0 ;
19431 int res4 = 0 ;
19432 wxPoint temp5 ;
19433 int val6 ;
19434 int ecode6 = 0 ;
19435 bool val7 ;
19436 int ecode7 = 0 ;
19437 wxPoint temp8 ;
19438 PyObject * obj0 = 0 ;
19439 PyObject * obj1 = 0 ;
19440 PyObject * obj2 = 0 ;
19441 PyObject * obj3 = 0 ;
19442 PyObject * obj4 = 0 ;
19443 PyObject * obj5 = 0 ;
19444 PyObject * obj6 = 0 ;
19445 PyObject * obj7 = 0 ;
19446 char * kwnames[] = {
19447 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19448 };
19449
19450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19452 if (!SWIG_IsOK(res1)) {
19453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19454 }
19455 arg1 = reinterpret_cast< wxDC * >(argp1);
19456 {
19457 arg2 = &temp2;
19458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19459 }
19460 {
19461 arg3 = &temp3;
19462 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19463 }
19464 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19465 if (!SWIG_IsOK(res4)) {
19466 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19467 }
19468 arg4 = reinterpret_cast< wxDC * >(argp4);
19469 {
19470 arg5 = &temp5;
19471 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19472 }
19473 if (obj5) {
19474 ecode6 = SWIG_AsVal_int(obj5, &val6);
19475 if (!SWIG_IsOK(ecode6)) {
19476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19477 }
19478 arg6 = static_cast< int >(val6);
19479 }
19480 if (obj6) {
19481 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19482 if (!SWIG_IsOK(ecode7)) {
19483 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19484 }
19485 arg7 = static_cast< bool >(val7);
19486 }
19487 if (obj7) {
093d3ff1 19488 {
0085ce49
RD
19489 arg8 = &temp8;
19490 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19491 }
0085ce49
RD
19492 }
19493 {
19494 PyThreadState* __tstate = wxPyBeginAllowThreads();
19495 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19496 wxPyEndAllowThreads(__tstate);
19497 if (PyErr_Occurred()) SWIG_fail;
19498 }
19499 {
19500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19501 }
19502 return resultobj;
19503fail:
19504 return NULL;
19505}
19506
19507
19508SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19509 PyObject *resultobj = 0;
19510 wxDC *arg1 = (wxDC *) 0 ;
19511 int arg2 ;
19512 int arg3 ;
19513 int arg4 ;
19514 int arg5 ;
19515 void *argp1 = 0 ;
19516 int res1 = 0 ;
19517 int val2 ;
19518 int ecode2 = 0 ;
19519 int val3 ;
19520 int ecode3 = 0 ;
19521 int val4 ;
19522 int ecode4 = 0 ;
19523 int val5 ;
19524 int ecode5 = 0 ;
19525 PyObject * obj0 = 0 ;
19526 PyObject * obj1 = 0 ;
19527 PyObject * obj2 = 0 ;
19528 PyObject * obj3 = 0 ;
19529 PyObject * obj4 = 0 ;
19530 char * kwnames[] = {
19531 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19532 };
19533
19534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19536 if (!SWIG_IsOK(res1)) {
19537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19538 }
19539 arg1 = reinterpret_cast< wxDC * >(argp1);
19540 ecode2 = SWIG_AsVal_int(obj1, &val2);
19541 if (!SWIG_IsOK(ecode2)) {
19542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19543 }
19544 arg2 = static_cast< int >(val2);
19545 ecode3 = SWIG_AsVal_int(obj2, &val3);
19546 if (!SWIG_IsOK(ecode3)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19548 }
19549 arg3 = static_cast< int >(val3);
19550 ecode4 = SWIG_AsVal_int(obj3, &val4);
19551 if (!SWIG_IsOK(ecode4)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19553 }
19554 arg4 = static_cast< int >(val4);
19555 ecode5 = SWIG_AsVal_int(obj4, &val5);
19556 if (!SWIG_IsOK(ecode5)) {
19557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19558 }
19559 arg5 = static_cast< int >(val5);
19560 {
19561 PyThreadState* __tstate = wxPyBeginAllowThreads();
19562 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19563 wxPyEndAllowThreads(__tstate);
19564 if (PyErr_Occurred()) SWIG_fail;
19565 }
19566 resultobj = SWIG_Py_Void();
19567 return resultobj;
19568fail:
19569 return NULL;
19570}
19571
19572
19573SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj = 0;
19575 wxDC *arg1 = (wxDC *) 0 ;
19576 wxPoint *arg2 = 0 ;
19577 wxSize *arg3 = 0 ;
19578 void *argp1 = 0 ;
19579 int res1 = 0 ;
19580 wxPoint temp2 ;
19581 wxSize temp3 ;
19582 PyObject * obj0 = 0 ;
19583 PyObject * obj1 = 0 ;
19584 PyObject * obj2 = 0 ;
19585 char * kwnames[] = {
19586 (char *) "self",(char *) "pt",(char *) "sz", NULL
19587 };
19588
19589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19591 if (!SWIG_IsOK(res1)) {
19592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19593 }
19594 arg1 = reinterpret_cast< wxDC * >(argp1);
19595 {
19596 arg2 = &temp2;
19597 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19598 }
19599 {
19600 arg3 = &temp3;
19601 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19602 }
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
19605 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19606 wxPyEndAllowThreads(__tstate);
19607 if (PyErr_Occurred()) SWIG_fail;
19608 }
19609 resultobj = SWIG_Py_Void();
19610 return resultobj;
19611fail:
19612 return NULL;
19613}
19614
19615
19616SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19617 PyObject *resultobj = 0;
19618 wxDC *arg1 = (wxDC *) 0 ;
19619 wxRegion *arg2 = 0 ;
19620 void *argp1 = 0 ;
19621 int res1 = 0 ;
19622 void *argp2 = 0 ;
19623 int res2 = 0 ;
19624 PyObject * obj0 = 0 ;
19625 PyObject * obj1 = 0 ;
19626 char * kwnames[] = {
19627 (char *) "self",(char *) "region", NULL
19628 };
19629
19630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19632 if (!SWIG_IsOK(res1)) {
19633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19634 }
19635 arg1 = reinterpret_cast< wxDC * >(argp1);
19636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19637 if (!SWIG_IsOK(res2)) {
19638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19639 }
19640 if (!argp2) {
19641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19642 }
19643 arg2 = reinterpret_cast< wxRegion * >(argp2);
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19647 wxPyEndAllowThreads(__tstate);
19648 if (PyErr_Occurred()) SWIG_fail;
19649 }
19650 resultobj = SWIG_Py_Void();
19651 return resultobj;
19652fail:
19653 return NULL;
19654}
19655
19656
19657SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19658 PyObject *resultobj = 0;
19659 wxDC *arg1 = (wxDC *) 0 ;
19660 wxRect *arg2 = 0 ;
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 wxRect temp2 ;
19664 PyObject * obj0 = 0 ;
19665 PyObject * obj1 = 0 ;
19666 char * kwnames[] = {
19667 (char *) "self",(char *) "rect", NULL
19668 };
19669
19670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19672 if (!SWIG_IsOK(res1)) {
19673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19674 }
19675 arg1 = reinterpret_cast< wxDC * >(argp1);
19676 {
19677 arg2 = &temp2;
19678 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19679 }
19680 {
19681 PyThreadState* __tstate = wxPyBeginAllowThreads();
19682 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 resultobj = SWIG_Py_Void();
19687 return resultobj;
19688fail:
19689 return NULL;
19690}
19691
19692
19693SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19694 PyObject *resultobj = 0;
19695 wxDC *arg1 = (wxDC *) 0 ;
19696 int arg2 ;
19697 wxPoint *arg3 = (wxPoint *) 0 ;
19698 int arg4 = (int) 0 ;
19699 int arg5 = (int) 0 ;
19700 void *argp1 = 0 ;
19701 int res1 = 0 ;
19702 int val4 ;
19703 int ecode4 = 0 ;
19704 int val5 ;
19705 int ecode5 = 0 ;
19706 PyObject * obj0 = 0 ;
19707 PyObject * obj1 = 0 ;
19708 PyObject * obj2 = 0 ;
19709 PyObject * obj3 = 0 ;
19710 char * kwnames[] = {
19711 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19712 };
19713
19714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19716 if (!SWIG_IsOK(res1)) {
19717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19718 }
19719 arg1 = reinterpret_cast< wxDC * >(argp1);
19720 {
19721 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19722 if (arg3 == NULL) SWIG_fail;
19723 }
19724 if (obj2) {
19725 ecode4 = SWIG_AsVal_int(obj2, &val4);
19726 if (!SWIG_IsOK(ecode4)) {
19727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19728 }
19729 arg4 = static_cast< int >(val4);
19730 }
19731 if (obj3) {
19732 ecode5 = SWIG_AsVal_int(obj3, &val5);
19733 if (!SWIG_IsOK(ecode5)) {
19734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19735 }
19736 arg5 = static_cast< int >(val5);
19737 }
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 resultobj = SWIG_Py_Void();
19745 {
19746 if (arg3) delete [] arg3;
19747 }
19748 return resultobj;
19749fail:
19750 {
19751 if (arg3) delete [] arg3;
19752 }
19753 return NULL;
19754}
19755
19756
19757SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19758 PyObject *resultobj = 0;
19759 wxDC *arg1 = (wxDC *) 0 ;
19760 int arg2 ;
19761 wxPoint *arg3 = (wxPoint *) 0 ;
19762 int arg4 = (int) 0 ;
19763 int arg5 = (int) 0 ;
19764 int arg6 = (int) wxODDEVEN_RULE ;
19765 void *argp1 = 0 ;
19766 int res1 = 0 ;
19767 int val4 ;
19768 int ecode4 = 0 ;
19769 int val5 ;
19770 int ecode5 = 0 ;
19771 int val6 ;
19772 int ecode6 = 0 ;
19773 PyObject * obj0 = 0 ;
19774 PyObject * obj1 = 0 ;
19775 PyObject * obj2 = 0 ;
19776 PyObject * obj3 = 0 ;
19777 PyObject * obj4 = 0 ;
19778 char * kwnames[] = {
19779 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19780 };
19781
19782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19784 if (!SWIG_IsOK(res1)) {
19785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19786 }
19787 arg1 = reinterpret_cast< wxDC * >(argp1);
19788 {
19789 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19790 if (arg3 == NULL) SWIG_fail;
19791 }
19792 if (obj2) {
19793 ecode4 = SWIG_AsVal_int(obj2, &val4);
19794 if (!SWIG_IsOK(ecode4)) {
19795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19796 }
19797 arg4 = static_cast< int >(val4);
19798 }
19799 if (obj3) {
19800 ecode5 = SWIG_AsVal_int(obj3, &val5);
19801 if (!SWIG_IsOK(ecode5)) {
19802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19803 }
19804 arg5 = static_cast< int >(val5);
19805 }
19806 if (obj4) {
19807 ecode6 = SWIG_AsVal_int(obj4, &val6);
19808 if (!SWIG_IsOK(ecode6)) {
19809 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19810 }
19811 arg6 = static_cast< int >(val6);
19812 }
19813 {
19814 PyThreadState* __tstate = wxPyBeginAllowThreads();
19815 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 resultobj = SWIG_Py_Void();
19820 {
19821 if (arg3) delete [] arg3;
19822 }
19823 return resultobj;
19824fail:
19825 {
19826 if (arg3) delete [] arg3;
19827 }
19828 return NULL;
19829}
19830
19831
19832SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19833 PyObject *resultobj = 0;
19834 wxDC *arg1 = (wxDC *) 0 ;
19835 wxString *arg2 = 0 ;
19836 wxRect *arg3 = 0 ;
19837 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19838 int arg5 = (int) -1 ;
19839 void *argp1 = 0 ;
19840 int res1 = 0 ;
19841 bool temp2 = false ;
19842 wxRect temp3 ;
19843 int val4 ;
19844 int ecode4 = 0 ;
19845 int val5 ;
19846 int ecode5 = 0 ;
19847 PyObject * obj0 = 0 ;
19848 PyObject * obj1 = 0 ;
19849 PyObject * obj2 = 0 ;
19850 PyObject * obj3 = 0 ;
19851 PyObject * obj4 = 0 ;
19852 char * kwnames[] = {
19853 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19854 };
19855
19856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19858 if (!SWIG_IsOK(res1)) {
19859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19860 }
19861 arg1 = reinterpret_cast< wxDC * >(argp1);
19862 {
19863 arg2 = wxString_in_helper(obj1);
19864 if (arg2 == NULL) SWIG_fail;
19865 temp2 = true;
19866 }
19867 {
19868 arg3 = &temp3;
19869 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19870 }
19871 if (obj3) {
19872 ecode4 = SWIG_AsVal_int(obj3, &val4);
19873 if (!SWIG_IsOK(ecode4)) {
19874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19875 }
19876 arg4 = static_cast< int >(val4);
19877 }
19878 if (obj4) {
19879 ecode5 = SWIG_AsVal_int(obj4, &val5);
19880 if (!SWIG_IsOK(ecode5)) {
19881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19882 }
19883 arg5 = static_cast< int >(val5);
19884 }
19885 {
19886 PyThreadState* __tstate = wxPyBeginAllowThreads();
19887 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19888 wxPyEndAllowThreads(__tstate);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 resultobj = SWIG_Py_Void();
19892 {
19893 if (temp2)
19894 delete arg2;
19895 }
19896 return resultobj;
19897fail:
19898 {
19899 if (temp2)
19900 delete arg2;
19901 }
19902 return NULL;
19903}
19904
19905
19906SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19907 PyObject *resultobj = 0;
19908 wxDC *arg1 = (wxDC *) 0 ;
19909 wxString *arg2 = 0 ;
19910 wxBitmap *arg3 = 0 ;
19911 wxRect *arg4 = 0 ;
19912 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19913 int arg6 = (int) -1 ;
19914 wxRect result;
19915 void *argp1 = 0 ;
19916 int res1 = 0 ;
19917 bool temp2 = false ;
19918 void *argp3 = 0 ;
19919 int res3 = 0 ;
19920 wxRect temp4 ;
19921 int val5 ;
19922 int ecode5 = 0 ;
19923 int val6 ;
19924 int ecode6 = 0 ;
19925 PyObject * obj0 = 0 ;
19926 PyObject * obj1 = 0 ;
19927 PyObject * obj2 = 0 ;
19928 PyObject * obj3 = 0 ;
19929 PyObject * obj4 = 0 ;
19930 PyObject * obj5 = 0 ;
19931 char * kwnames[] = {
19932 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19933 };
19934
19935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19937 if (!SWIG_IsOK(res1)) {
19938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19939 }
19940 arg1 = reinterpret_cast< wxDC * >(argp1);
19941 {
19942 arg2 = wxString_in_helper(obj1);
19943 if (arg2 == NULL) SWIG_fail;
19944 temp2 = true;
19945 }
19946 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19947 if (!SWIG_IsOK(res3)) {
19948 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19949 }
19950 if (!argp3) {
19951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19952 }
19953 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19954 {
19955 arg4 = &temp4;
19956 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19957 }
19958 if (obj4) {
19959 ecode5 = SWIG_AsVal_int(obj4, &val5);
19960 if (!SWIG_IsOK(ecode5)) {
19961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19962 }
19963 arg5 = static_cast< int >(val5);
19964 }
19965 if (obj5) {
19966 ecode6 = SWIG_AsVal_int(obj5, &val6);
19967 if (!SWIG_IsOK(ecode6)) {
19968 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19969 }
19970 arg6 = static_cast< int >(val6);
19971 }
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19979 {
19980 if (temp2)
19981 delete arg2;
19982 }
19983 return resultobj;
19984fail:
19985 {
19986 if (temp2)
19987 delete arg2;
19988 }
19989 return NULL;
19990}
19991
19992
19993SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19994 PyObject *resultobj = 0;
19995 wxDC *arg1 = (wxDC *) 0 ;
19996 int arg2 ;
19997 wxPoint *arg3 = (wxPoint *) 0 ;
19998 void *argp1 = 0 ;
19999 int res1 = 0 ;
20000 PyObject * obj0 = 0 ;
20001 PyObject * obj1 = 0 ;
20002 char * kwnames[] = {
20003 (char *) "self",(char *) "points", NULL
20004 };
20005
20006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20008 if (!SWIG_IsOK(res1)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20010 }
20011 arg1 = reinterpret_cast< wxDC * >(argp1);
20012 {
20013 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20014 if (arg3 == NULL) SWIG_fail;
20015 }
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 (arg1)->DrawSpline(arg2,arg3);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 resultobj = SWIG_Py_Void();
20023 {
20024 if (arg3) delete [] arg3;
20025 }
20026 return resultobj;
20027fail:
20028 {
20029 if (arg3) delete [] arg3;
20030 }
20031 return NULL;
20032}
20033
20034
20035SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20036 PyObject *resultobj = 0;
20037 wxDC *arg1 = (wxDC *) 0 ;
20038 void *argp1 = 0 ;
20039 int res1 = 0 ;
20040 PyObject *swig_obj[1] ;
20041
20042 if (!args) SWIG_fail;
20043 swig_obj[0] = args;
20044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20045 if (!SWIG_IsOK(res1)) {
20046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20047 }
20048 arg1 = reinterpret_cast< wxDC * >(argp1);
20049 {
20050 PyThreadState* __tstate = wxPyBeginAllowThreads();
20051 (arg1)->Clear();
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = SWIG_Py_Void();
20056 return resultobj;
20057fail:
20058 return NULL;
20059}
20060
20061
20062SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxDC *arg1 = (wxDC *) 0 ;
20065 wxString *arg2 = 0 ;
20066 bool result;
20067 void *argp1 = 0 ;
20068 int res1 = 0 ;
20069 bool temp2 = false ;
20070 PyObject * obj0 = 0 ;
20071 PyObject * obj1 = 0 ;
20072 char * kwnames[] = {
20073 (char *) "self",(char *) "message", NULL
20074 };
20075
20076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20078 if (!SWIG_IsOK(res1)) {
20079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20080 }
20081 arg1 = reinterpret_cast< wxDC * >(argp1);
20082 {
20083 arg2 = wxString_in_helper(obj1);
20084 if (arg2 == NULL) SWIG_fail;
20085 temp2 = true;
20086 }
20087 {
20088 PyThreadState* __tstate = wxPyBeginAllowThreads();
20089 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20090 wxPyEndAllowThreads(__tstate);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 }
20093 {
20094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20095 }
20096 {
20097 if (temp2)
20098 delete arg2;
20099 }
20100 return resultobj;
20101fail:
20102 {
20103 if (temp2)
20104 delete arg2;
20105 }
20106 return NULL;
20107}
20108
20109
20110SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20111 PyObject *resultobj = 0;
20112 wxDC *arg1 = (wxDC *) 0 ;
20113 void *argp1 = 0 ;
20114 int res1 = 0 ;
20115 PyObject *swig_obj[1] ;
20116
20117 if (!args) SWIG_fail;
20118 swig_obj[0] = args;
20119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20120 if (!SWIG_IsOK(res1)) {
20121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20122 }
20123 arg1 = reinterpret_cast< wxDC * >(argp1);
20124 {
20125 PyThreadState* __tstate = wxPyBeginAllowThreads();
20126 (arg1)->EndDoc();
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 resultobj = SWIG_Py_Void();
20131 return resultobj;
20132fail:
20133 return NULL;
20134}
20135
20136
20137SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20138 PyObject *resultobj = 0;
20139 wxDC *arg1 = (wxDC *) 0 ;
20140 void *argp1 = 0 ;
20141 int res1 = 0 ;
20142 PyObject *swig_obj[1] ;
20143
20144 if (!args) SWIG_fail;
20145 swig_obj[0] = args;
20146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20147 if (!SWIG_IsOK(res1)) {
20148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20149 }
20150 arg1 = reinterpret_cast< wxDC * >(argp1);
20151 {
20152 PyThreadState* __tstate = wxPyBeginAllowThreads();
20153 (arg1)->StartPage();
20154 wxPyEndAllowThreads(__tstate);
20155 if (PyErr_Occurred()) SWIG_fail;
20156 }
20157 resultobj = SWIG_Py_Void();
20158 return resultobj;
20159fail:
20160 return NULL;
20161}
20162
20163
20164SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20165 PyObject *resultobj = 0;
20166 wxDC *arg1 = (wxDC *) 0 ;
20167 void *argp1 = 0 ;
20168 int res1 = 0 ;
20169 PyObject *swig_obj[1] ;
20170
20171 if (!args) SWIG_fail;
20172 swig_obj[0] = args;
20173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20174 if (!SWIG_IsOK(res1)) {
20175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20176 }
20177 arg1 = reinterpret_cast< wxDC * >(argp1);
20178 {
20179 PyThreadState* __tstate = wxPyBeginAllowThreads();
20180 (arg1)->EndPage();
20181 wxPyEndAllowThreads(__tstate);
20182 if (PyErr_Occurred()) SWIG_fail;
20183 }
20184 resultobj = SWIG_Py_Void();
20185 return resultobj;
20186fail:
20187 return NULL;
20188}
20189
20190
20191SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20192 PyObject *resultobj = 0;
20193 wxDC *arg1 = (wxDC *) 0 ;
20194 wxFont *arg2 = 0 ;
20195 void *argp1 = 0 ;
20196 int res1 = 0 ;
20197 void *argp2 = 0 ;
20198 int res2 = 0 ;
20199 PyObject * obj0 = 0 ;
20200 PyObject * obj1 = 0 ;
20201 char * kwnames[] = {
20202 (char *) "self",(char *) "font", NULL
20203 };
20204
20205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20207 if (!SWIG_IsOK(res1)) {
20208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20209 }
20210 arg1 = reinterpret_cast< wxDC * >(argp1);
20211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20212 if (!SWIG_IsOK(res2)) {
20213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20214 }
20215 if (!argp2) {
20216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20217 }
20218 arg2 = reinterpret_cast< wxFont * >(argp2);
20219 {
20220 PyThreadState* __tstate = wxPyBeginAllowThreads();
20221 (arg1)->SetFont((wxFont const &)*arg2);
20222 wxPyEndAllowThreads(__tstate);
20223 if (PyErr_Occurred()) SWIG_fail;
20224 }
20225 resultobj = SWIG_Py_Void();
20226 return resultobj;
20227fail:
20228 return NULL;
20229}
20230
20231
20232SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj = 0;
20234 wxDC *arg1 = (wxDC *) 0 ;
20235 wxPen *arg2 = 0 ;
20236 void *argp1 = 0 ;
20237 int res1 = 0 ;
20238 void *argp2 = 0 ;
20239 int res2 = 0 ;
20240 PyObject * obj0 = 0 ;
20241 PyObject * obj1 = 0 ;
20242 char * kwnames[] = {
20243 (char *) "self",(char *) "pen", NULL
20244 };
20245
20246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20248 if (!SWIG_IsOK(res1)) {
20249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20250 }
20251 arg1 = reinterpret_cast< wxDC * >(argp1);
20252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20253 if (!SWIG_IsOK(res2)) {
20254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20255 }
20256 if (!argp2) {
20257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20258 }
20259 arg2 = reinterpret_cast< wxPen * >(argp2);
20260 {
20261 PyThreadState* __tstate = wxPyBeginAllowThreads();
20262 (arg1)->SetPen((wxPen const &)*arg2);
20263 wxPyEndAllowThreads(__tstate);
20264 if (PyErr_Occurred()) SWIG_fail;
20265 }
20266 resultobj = SWIG_Py_Void();
20267 return resultobj;
20268fail:
20269 return NULL;
20270}
20271
20272
20273SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20274 PyObject *resultobj = 0;
20275 wxDC *arg1 = (wxDC *) 0 ;
20276 wxBrush *arg2 = 0 ;
20277 void *argp1 = 0 ;
20278 int res1 = 0 ;
20279 void *argp2 = 0 ;
20280 int res2 = 0 ;
20281 PyObject * obj0 = 0 ;
20282 PyObject * obj1 = 0 ;
20283 char * kwnames[] = {
20284 (char *) "self",(char *) "brush", NULL
20285 };
20286
20287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20289 if (!SWIG_IsOK(res1)) {
20290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20291 }
20292 arg1 = reinterpret_cast< wxDC * >(argp1);
20293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20294 if (!SWIG_IsOK(res2)) {
20295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20296 }
20297 if (!argp2) {
20298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20299 }
20300 arg2 = reinterpret_cast< wxBrush * >(argp2);
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 (arg1)->SetBrush((wxBrush const &)*arg2);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_Py_Void();
20308 return resultobj;
20309fail:
20310 return NULL;
20311}
20312
20313
20314SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxDC *arg1 = (wxDC *) 0 ;
20317 wxBrush *arg2 = 0 ;
20318 void *argp1 = 0 ;
20319 int res1 = 0 ;
20320 void *argp2 = 0 ;
20321 int res2 = 0 ;
20322 PyObject * obj0 = 0 ;
20323 PyObject * obj1 = 0 ;
20324 char * kwnames[] = {
20325 (char *) "self",(char *) "brush", NULL
20326 };
20327
20328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20330 if (!SWIG_IsOK(res1)) {
20331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20332 }
20333 arg1 = reinterpret_cast< wxDC * >(argp1);
20334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20335 if (!SWIG_IsOK(res2)) {
20336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20337 }
20338 if (!argp2) {
20339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20340 }
20341 arg2 = reinterpret_cast< wxBrush * >(argp2);
20342 {
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 (arg1)->SetBackground((wxBrush const &)*arg2);
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 resultobj = SWIG_Py_Void();
20349 return resultobj;
20350fail:
20351 return NULL;
20352}
20353
20354
20355SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20356 PyObject *resultobj = 0;
20357 wxDC *arg1 = (wxDC *) 0 ;
20358 int arg2 ;
20359 void *argp1 = 0 ;
20360 int res1 = 0 ;
20361 int val2 ;
20362 int ecode2 = 0 ;
20363 PyObject * obj0 = 0 ;
20364 PyObject * obj1 = 0 ;
20365 char * kwnames[] = {
20366 (char *) "self",(char *) "mode", NULL
20367 };
20368
20369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20371 if (!SWIG_IsOK(res1)) {
20372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20373 }
20374 arg1 = reinterpret_cast< wxDC * >(argp1);
20375 ecode2 = SWIG_AsVal_int(obj1, &val2);
20376 if (!SWIG_IsOK(ecode2)) {
20377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20378 }
20379 arg2 = static_cast< int >(val2);
20380 {
20381 PyThreadState* __tstate = wxPyBeginAllowThreads();
20382 (arg1)->SetBackgroundMode(arg2);
20383 wxPyEndAllowThreads(__tstate);
20384 if (PyErr_Occurred()) SWIG_fail;
20385 }
20386 resultobj = SWIG_Py_Void();
20387 return resultobj;
20388fail:
20389 return NULL;
20390}
20391
20392
20393SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20394 PyObject *resultobj = 0;
20395 wxDC *arg1 = (wxDC *) 0 ;
20396 wxPalette *arg2 = 0 ;
20397 void *argp1 = 0 ;
20398 int res1 = 0 ;
20399 void *argp2 = 0 ;
20400 int res2 = 0 ;
20401 PyObject * obj0 = 0 ;
20402 PyObject * obj1 = 0 ;
20403 char * kwnames[] = {
20404 (char *) "self",(char *) "palette", NULL
20405 };
20406
20407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20409 if (!SWIG_IsOK(res1)) {
20410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20411 }
20412 arg1 = reinterpret_cast< wxDC * >(argp1);
20413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20414 if (!SWIG_IsOK(res2)) {
20415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20416 }
20417 if (!argp2) {
20418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20419 }
20420 arg2 = reinterpret_cast< wxPalette * >(argp2);
20421 {
20422 PyThreadState* __tstate = wxPyBeginAllowThreads();
20423 (arg1)->SetPalette((wxPalette const &)*arg2);
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 resultobj = SWIG_Py_Void();
20428 return resultobj;
20429fail:
20430 return NULL;
20431}
20432
20433
20434SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20435 PyObject *resultobj = 0;
20436 wxDC *arg1 = (wxDC *) 0 ;
20437 void *argp1 = 0 ;
20438 int res1 = 0 ;
20439 PyObject *swig_obj[1] ;
20440
20441 if (!args) SWIG_fail;
20442 swig_obj[0] = args;
20443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20444 if (!SWIG_IsOK(res1)) {
20445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20446 }
20447 arg1 = reinterpret_cast< wxDC * >(argp1);
20448 {
20449 PyThreadState* __tstate = wxPyBeginAllowThreads();
20450 (arg1)->DestroyClippingRegion();
20451 wxPyEndAllowThreads(__tstate);
20452 if (PyErr_Occurred()) SWIG_fail;
20453 }
20454 resultobj = SWIG_Py_Void();
20455 return resultobj;
20456fail:
20457 return NULL;
20458}
20459
20460
20461SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20462 PyObject *resultobj = 0;
20463 wxDC *arg1 = (wxDC *) 0 ;
20464 int *arg2 = (int *) 0 ;
20465 int *arg3 = (int *) 0 ;
20466 int *arg4 = (int *) 0 ;
20467 int *arg5 = (int *) 0 ;
20468 void *argp1 = 0 ;
20469 int res1 = 0 ;
20470 int temp2 ;
20471 int res2 = SWIG_TMPOBJ ;
20472 int temp3 ;
20473 int res3 = SWIG_TMPOBJ ;
20474 int temp4 ;
20475 int res4 = SWIG_TMPOBJ ;
20476 int temp5 ;
20477 int res5 = SWIG_TMPOBJ ;
20478 PyObject *swig_obj[1] ;
20479
20480 arg2 = &temp2;
20481 arg3 = &temp3;
20482 arg4 = &temp4;
20483 arg5 = &temp5;
20484 if (!args) SWIG_fail;
20485 swig_obj[0] = args;
20486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20489 }
20490 arg1 = reinterpret_cast< wxDC * >(argp1);
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20494 wxPyEndAllowThreads(__tstate);
20495 if (PyErr_Occurred()) SWIG_fail;
20496 }
20497 resultobj = SWIG_Py_Void();
20498 if (SWIG_IsTmpObj(res2)) {
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20500 } else {
20501 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20503 }
20504 if (SWIG_IsTmpObj(res3)) {
20505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20506 } else {
20507 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20509 }
20510 if (SWIG_IsTmpObj(res4)) {
20511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20512 } else {
20513 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20515 }
20516 if (SWIG_IsTmpObj(res5)) {
20517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20518 } else {
20519 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20521 }
20522 return resultobj;
20523fail:
20524 return NULL;
20525}
20526
20527
20528SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20529 PyObject *resultobj = 0;
20530 wxDC *arg1 = (wxDC *) 0 ;
20531 wxRect result;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 PyObject *swig_obj[1] ;
20535
20536 if (!args) SWIG_fail;
20537 swig_obj[0] = args;
20538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20539 if (!SWIG_IsOK(res1)) {
20540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20541 }
20542 arg1 = reinterpret_cast< wxDC * >(argp1);
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 result = wxDC_GetClippingRect(arg1);
20546 wxPyEndAllowThreads(__tstate);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 }
20549 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20550 return resultobj;
20551fail:
20552 return NULL;
20553}
20554
20555
20556SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20557 PyObject *resultobj = 0;
20558 wxDC *arg1 = (wxDC *) 0 ;
20559 int result;
20560 void *argp1 = 0 ;
20561 int res1 = 0 ;
20562 PyObject *swig_obj[1] ;
20563
20564 if (!args) SWIG_fail;
20565 swig_obj[0] = args;
20566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20567 if (!SWIG_IsOK(res1)) {
20568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20569 }
20570 arg1 = reinterpret_cast< wxDC * >(argp1);
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 result = (int)((wxDC const *)arg1)->GetCharHeight();
20574 wxPyEndAllowThreads(__tstate);
20575 if (PyErr_Occurred()) SWIG_fail;
20576 }
20577 resultobj = SWIG_From_int(static_cast< int >(result));
20578 return resultobj;
20579fail:
20580 return NULL;
20581}
20582
20583
20584SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20585 PyObject *resultobj = 0;
20586 wxDC *arg1 = (wxDC *) 0 ;
20587 int result;
20588 void *argp1 = 0 ;
20589 int res1 = 0 ;
20590 PyObject *swig_obj[1] ;
20591
20592 if (!args) SWIG_fail;
20593 swig_obj[0] = args;
20594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20595 if (!SWIG_IsOK(res1)) {
20596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20597 }
20598 arg1 = reinterpret_cast< wxDC * >(argp1);
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 result = (int)((wxDC const *)arg1)->GetCharWidth();
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 resultobj = SWIG_From_int(static_cast< int >(result));
20606 return resultobj;
20607fail:
20608 return NULL;
20609}
20610
20611
20612SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20613 PyObject *resultobj = 0;
20614 wxDC *arg1 = (wxDC *) 0 ;
20615 wxString *arg2 = 0 ;
20616 int *arg3 = (int *) 0 ;
20617 int *arg4 = (int *) 0 ;
20618 void *argp1 = 0 ;
20619 int res1 = 0 ;
20620 bool temp2 = false ;
20621 int temp3 ;
20622 int res3 = SWIG_TMPOBJ ;
20623 int temp4 ;
20624 int res4 = SWIG_TMPOBJ ;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 char * kwnames[] = {
20628 (char *) "self",(char *) "string", NULL
20629 };
20630
20631 arg3 = &temp3;
20632 arg4 = &temp4;
20633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20635 if (!SWIG_IsOK(res1)) {
20636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20637 }
20638 arg1 = reinterpret_cast< wxDC * >(argp1);
20639 {
20640 arg2 = wxString_in_helper(obj1);
20641 if (arg2 == NULL) SWIG_fail;
20642 temp2 = true;
20643 }
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_Py_Void();
20651 if (SWIG_IsTmpObj(res3)) {
20652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20653 } else {
20654 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20656 }
20657 if (SWIG_IsTmpObj(res4)) {
20658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20659 } else {
20660 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20662 }
20663 {
20664 if (temp2)
20665 delete arg2;
20666 }
20667 return resultobj;
20668fail:
20669 {
20670 if (temp2)
20671 delete arg2;
20672 }
20673 return NULL;
20674}
20675
20676
20677SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj = 0;
20679 wxDC *arg1 = (wxDC *) 0 ;
20680 wxString *arg2 = 0 ;
20681 int *arg3 = (int *) 0 ;
20682 int *arg4 = (int *) 0 ;
20683 int *arg5 = (int *) 0 ;
20684 int *arg6 = (int *) 0 ;
20685 wxFont *arg7 = (wxFont *) NULL ;
20686 void *argp1 = 0 ;
20687 int res1 = 0 ;
20688 bool temp2 = false ;
20689 int temp3 ;
20690 int res3 = SWIG_TMPOBJ ;
20691 int temp4 ;
20692 int res4 = SWIG_TMPOBJ ;
20693 int temp5 ;
20694 int res5 = SWIG_TMPOBJ ;
20695 int temp6 ;
20696 int res6 = SWIG_TMPOBJ ;
20697 void *argp7 = 0 ;
20698 int res7 = 0 ;
20699 PyObject * obj0 = 0 ;
20700 PyObject * obj1 = 0 ;
20701 PyObject * obj2 = 0 ;
20702 char * kwnames[] = {
20703 (char *) "self",(char *) "string",(char *) "font", NULL
20704 };
20705
20706 arg3 = &temp3;
20707 arg4 = &temp4;
20708 arg5 = &temp5;
20709 arg6 = &temp6;
20710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20712 if (!SWIG_IsOK(res1)) {
20713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20714 }
20715 arg1 = reinterpret_cast< wxDC * >(argp1);
20716 {
20717 arg2 = wxString_in_helper(obj1);
20718 if (arg2 == NULL) SWIG_fail;
20719 temp2 = true;
20720 }
20721 if (obj2) {
20722 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20723 if (!SWIG_IsOK(res7)) {
20724 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 20725 }
0085ce49
RD
20726 arg7 = reinterpret_cast< wxFont * >(argp7);
20727 }
20728 {
20729 PyThreadState* __tstate = wxPyBeginAllowThreads();
20730 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20731 wxPyEndAllowThreads(__tstate);
20732 if (PyErr_Occurred()) SWIG_fail;
20733 }
20734 resultobj = SWIG_Py_Void();
20735 if (SWIG_IsTmpObj(res3)) {
20736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20737 } else {
20738 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20740 }
20741 if (SWIG_IsTmpObj(res4)) {
20742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20743 } else {
20744 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20746 }
20747 if (SWIG_IsTmpObj(res5)) {
20748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20749 } else {
20750 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20752 }
20753 if (SWIG_IsTmpObj(res6)) {
20754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20755 } else {
20756 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20758 }
20759 {
20760 if (temp2)
20761 delete arg2;
20762 }
20763 return resultobj;
20764fail:
20765 {
20766 if (temp2)
20767 delete arg2;
20768 }
20769 return NULL;
20770}
20771
20772
20773SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20774 PyObject *resultobj = 0;
20775 wxDC *arg1 = (wxDC *) 0 ;
20776 wxString *arg2 = 0 ;
20777 int *arg3 = (int *) 0 ;
20778 int *arg4 = (int *) 0 ;
20779 int *arg5 = (int *) 0 ;
20780 wxFont *arg6 = (wxFont *) NULL ;
20781 void *argp1 = 0 ;
20782 int res1 = 0 ;
20783 bool temp2 = false ;
20784 int temp3 ;
20785 int res3 = SWIG_TMPOBJ ;
20786 int temp4 ;
20787 int res4 = SWIG_TMPOBJ ;
20788 int temp5 ;
20789 int res5 = SWIG_TMPOBJ ;
20790 void *argp6 = 0 ;
20791 int res6 = 0 ;
20792 PyObject * obj0 = 0 ;
20793 PyObject * obj1 = 0 ;
20794 PyObject * obj2 = 0 ;
20795 char * kwnames[] = {
20796 (char *) "self",(char *) "text",(char *) "font", NULL
20797 };
20798
20799 arg3 = &temp3;
20800 arg4 = &temp4;
20801 arg5 = &temp5;
20802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20804 if (!SWIG_IsOK(res1)) {
20805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20806 }
20807 arg1 = reinterpret_cast< wxDC * >(argp1);
20808 {
20809 arg2 = wxString_in_helper(obj1);
20810 if (arg2 == NULL) SWIG_fail;
20811 temp2 = true;
20812 }
20813 if (obj2) {
20814 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20815 if (!SWIG_IsOK(res6)) {
20816 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 20817 }
0085ce49
RD
20818 arg6 = reinterpret_cast< wxFont * >(argp6);
20819 }
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20823 wxPyEndAllowThreads(__tstate);
20824 if (PyErr_Occurred()) SWIG_fail;
20825 }
20826 resultobj = SWIG_Py_Void();
20827 if (SWIG_IsTmpObj(res3)) {
20828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20829 } else {
20830 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20832 }
20833 if (SWIG_IsTmpObj(res4)) {
20834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20835 } else {
20836 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20838 }
20839 if (SWIG_IsTmpObj(res5)) {
20840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20841 } else {
20842 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20844 }
20845 {
20846 if (temp2)
20847 delete arg2;
20848 }
20849 return resultobj;
20850fail:
20851 {
20852 if (temp2)
20853 delete arg2;
20854 }
20855 return NULL;
20856}
20857
20858
20859SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20860 PyObject *resultobj = 0;
20861 wxDC *arg1 = (wxDC *) 0 ;
20862 wxString *arg2 = 0 ;
20863 wxArrayInt result;
20864 void *argp1 = 0 ;
20865 int res1 = 0 ;
20866 bool temp2 = false ;
20867 PyObject * obj0 = 0 ;
20868 PyObject * obj1 = 0 ;
20869 char * kwnames[] = {
20870 (char *) "self",(char *) "text", NULL
20871 };
20872
20873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20875 if (!SWIG_IsOK(res1)) {
20876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20877 }
20878 arg1 = reinterpret_cast< wxDC * >(argp1);
20879 {
20880 arg2 = wxString_in_helper(obj1);
20881 if (arg2 == NULL) SWIG_fail;
20882 temp2 = true;
20883 }
20884 {
20885 PyThreadState* __tstate = wxPyBeginAllowThreads();
20886 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20887 wxPyEndAllowThreads(__tstate);
20888 if (PyErr_Occurred()) SWIG_fail;
20889 }
20890 {
b39fe951 20891 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
20892 }
20893 {
20894 if (temp2)
20895 delete arg2;
20896 }
20897 return resultobj;
20898fail:
20899 {
20900 if (temp2)
20901 delete arg2;
20902 }
20903 return NULL;
20904}
20905
20906
20907SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20908 PyObject *resultobj = 0;
20909 wxDC *arg1 = (wxDC *) 0 ;
20910 wxSize result;
20911 void *argp1 = 0 ;
20912 int res1 = 0 ;
20913 PyObject *swig_obj[1] ;
20914
20915 if (!args) SWIG_fail;
20916 swig_obj[0] = args;
20917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20918 if (!SWIG_IsOK(res1)) {
20919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20920 }
20921 arg1 = reinterpret_cast< wxDC * >(argp1);
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 result = (arg1)->GetSize();
20925 wxPyEndAllowThreads(__tstate);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20929 return resultobj;
20930fail:
20931 return NULL;
20932}
20933
20934
20935SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20936 PyObject *resultobj = 0;
20937 wxDC *arg1 = (wxDC *) 0 ;
20938 int *arg2 = (int *) 0 ;
20939 int *arg3 = (int *) 0 ;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 int temp2 ;
20943 int res2 = SWIG_TMPOBJ ;
20944 int temp3 ;
20945 int res3 = SWIG_TMPOBJ ;
20946 PyObject *swig_obj[1] ;
20947
20948 arg2 = &temp2;
20949 arg3 = &temp3;
20950 if (!args) SWIG_fail;
20951 swig_obj[0] = args;
20952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20953 if (!SWIG_IsOK(res1)) {
20954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20955 }
20956 arg1 = reinterpret_cast< wxDC * >(argp1);
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 (arg1)->GetSize(arg2,arg3);
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 resultobj = SWIG_Py_Void();
20964 if (SWIG_IsTmpObj(res2)) {
20965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20966 } else {
20967 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20969 }
20970 if (SWIG_IsTmpObj(res3)) {
20971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20972 } else {
20973 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20975 }
20976 return resultobj;
20977fail:
20978 return NULL;
20979}
20980
20981
20982SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20983 PyObject *resultobj = 0;
20984 wxDC *arg1 = (wxDC *) 0 ;
20985 wxSize result;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 PyObject *swig_obj[1] ;
20989
20990 if (!args) SWIG_fail;
20991 swig_obj[0] = args;
20992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20993 if (!SWIG_IsOK(res1)) {
20994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20995 }
20996 arg1 = reinterpret_cast< wxDC * >(argp1);
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 result = ((wxDC const *)arg1)->GetSizeMM();
21000 wxPyEndAllowThreads(__tstate);
21001 if (PyErr_Occurred()) SWIG_fail;
21002 }
21003 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21004 return resultobj;
21005fail:
21006 return NULL;
21007}
21008
21009
21010SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21011 PyObject *resultobj = 0;
21012 wxDC *arg1 = (wxDC *) 0 ;
21013 int *arg2 = (int *) 0 ;
21014 int *arg3 = (int *) 0 ;
21015 void *argp1 = 0 ;
21016 int res1 = 0 ;
21017 int temp2 ;
21018 int res2 = SWIG_TMPOBJ ;
21019 int temp3 ;
21020 int res3 = SWIG_TMPOBJ ;
21021 PyObject *swig_obj[1] ;
21022
21023 arg2 = &temp2;
21024 arg3 = &temp3;
21025 if (!args) SWIG_fail;
21026 swig_obj[0] = args;
21027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21028 if (!SWIG_IsOK(res1)) {
21029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21030 }
21031 arg1 = reinterpret_cast< wxDC * >(argp1);
21032 {
21033 PyThreadState* __tstate = wxPyBeginAllowThreads();
21034 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21035 wxPyEndAllowThreads(__tstate);
21036 if (PyErr_Occurred()) SWIG_fail;
21037 }
21038 resultobj = SWIG_Py_Void();
21039 if (SWIG_IsTmpObj(res2)) {
21040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21041 } else {
21042 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21044 }
21045 if (SWIG_IsTmpObj(res3)) {
21046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21047 } else {
21048 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21050 }
21051 return resultobj;
21052fail:
21053 return NULL;
21054}
21055
21056
21057SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21058 PyObject *resultobj = 0;
21059 wxDC *arg1 = (wxDC *) 0 ;
21060 int arg2 ;
21061 int result;
21062 void *argp1 = 0 ;
21063 int res1 = 0 ;
21064 int val2 ;
21065 int ecode2 = 0 ;
21066 PyObject * obj0 = 0 ;
21067 PyObject * obj1 = 0 ;
21068 char * kwnames[] = {
21069 (char *) "self",(char *) "x", NULL
21070 };
21071
21072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21074 if (!SWIG_IsOK(res1)) {
21075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21076 }
21077 arg1 = reinterpret_cast< wxDC * >(argp1);
21078 ecode2 = SWIG_AsVal_int(obj1, &val2);
21079 if (!SWIG_IsOK(ecode2)) {
21080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21081 }
21082 arg2 = static_cast< int >(val2);
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21086 wxPyEndAllowThreads(__tstate);
21087 if (PyErr_Occurred()) SWIG_fail;
21088 }
21089 resultobj = SWIG_From_int(static_cast< int >(result));
21090 return resultobj;
21091fail:
21092 return NULL;
21093}
21094
21095
21096SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21097 PyObject *resultobj = 0;
21098 wxDC *arg1 = (wxDC *) 0 ;
21099 int arg2 ;
21100 int result;
21101 void *argp1 = 0 ;
21102 int res1 = 0 ;
21103 int val2 ;
21104 int ecode2 = 0 ;
21105 PyObject * obj0 = 0 ;
21106 PyObject * obj1 = 0 ;
21107 char * kwnames[] = {
21108 (char *) "self",(char *) "y", NULL
21109 };
21110
21111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21113 if (!SWIG_IsOK(res1)) {
21114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21115 }
21116 arg1 = reinterpret_cast< wxDC * >(argp1);
21117 ecode2 = SWIG_AsVal_int(obj1, &val2);
21118 if (!SWIG_IsOK(ecode2)) {
21119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21120 }
21121 arg2 = static_cast< int >(val2);
21122 {
21123 PyThreadState* __tstate = wxPyBeginAllowThreads();
21124 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21125 wxPyEndAllowThreads(__tstate);
21126 if (PyErr_Occurred()) SWIG_fail;
21127 }
21128 resultobj = SWIG_From_int(static_cast< int >(result));
21129 return resultobj;
21130fail:
21131 return NULL;
21132}
21133
21134
21135SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21136 PyObject *resultobj = 0;
21137 wxDC *arg1 = (wxDC *) 0 ;
21138 int arg2 ;
21139 int result;
21140 void *argp1 = 0 ;
21141 int res1 = 0 ;
21142 int val2 ;
21143 int ecode2 = 0 ;
21144 PyObject * obj0 = 0 ;
21145 PyObject * obj1 = 0 ;
21146 char * kwnames[] = {
21147 (char *) "self",(char *) "x", NULL
21148 };
21149
21150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21152 if (!SWIG_IsOK(res1)) {
21153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21154 }
21155 arg1 = reinterpret_cast< wxDC * >(argp1);
21156 ecode2 = SWIG_AsVal_int(obj1, &val2);
21157 if (!SWIG_IsOK(ecode2)) {
21158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21159 }
21160 arg2 = static_cast< int >(val2);
21161 {
21162 PyThreadState* __tstate = wxPyBeginAllowThreads();
21163 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21164 wxPyEndAllowThreads(__tstate);
21165 if (PyErr_Occurred()) SWIG_fail;
21166 }
21167 resultobj = SWIG_From_int(static_cast< int >(result));
21168 return resultobj;
21169fail:
21170 return NULL;
21171}
21172
21173
21174SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj = 0;
21176 wxDC *arg1 = (wxDC *) 0 ;
21177 int arg2 ;
21178 int result;
21179 void *argp1 = 0 ;
21180 int res1 = 0 ;
21181 int val2 ;
21182 int ecode2 = 0 ;
21183 PyObject * obj0 = 0 ;
21184 PyObject * obj1 = 0 ;
21185 char * kwnames[] = {
21186 (char *) "self",(char *) "y", NULL
21187 };
21188
21189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21191 if (!SWIG_IsOK(res1)) {
21192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21193 }
21194 arg1 = reinterpret_cast< wxDC * >(argp1);
21195 ecode2 = SWIG_AsVal_int(obj1, &val2);
21196 if (!SWIG_IsOK(ecode2)) {
21197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21198 }
21199 arg2 = static_cast< int >(val2);
21200 {
21201 PyThreadState* __tstate = wxPyBeginAllowThreads();
21202 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 resultobj = SWIG_From_int(static_cast< int >(result));
21207 return resultobj;
21208fail:
21209 return NULL;
21210}
21211
21212
21213SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj = 0;
21215 wxDC *arg1 = (wxDC *) 0 ;
21216 int arg2 ;
21217 int result;
21218 void *argp1 = 0 ;
21219 int res1 = 0 ;
21220 int val2 ;
21221 int ecode2 = 0 ;
21222 PyObject * obj0 = 0 ;
21223 PyObject * obj1 = 0 ;
21224 char * kwnames[] = {
21225 (char *) "self",(char *) "x", NULL
21226 };
21227
21228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21230 if (!SWIG_IsOK(res1)) {
21231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21232 }
21233 arg1 = reinterpret_cast< wxDC * >(argp1);
21234 ecode2 = SWIG_AsVal_int(obj1, &val2);
21235 if (!SWIG_IsOK(ecode2)) {
21236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21237 }
21238 arg2 = static_cast< int >(val2);
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21242 wxPyEndAllowThreads(__tstate);
21243 if (PyErr_Occurred()) SWIG_fail;
21244 }
21245 resultobj = SWIG_From_int(static_cast< int >(result));
21246 return resultobj;
21247fail:
21248 return NULL;
21249}
21250
21251
21252SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj = 0;
21254 wxDC *arg1 = (wxDC *) 0 ;
21255 int arg2 ;
21256 int result;
21257 void *argp1 = 0 ;
21258 int res1 = 0 ;
21259 int val2 ;
21260 int ecode2 = 0 ;
21261 PyObject * obj0 = 0 ;
21262 PyObject * obj1 = 0 ;
21263 char * kwnames[] = {
21264 (char *) "self",(char *) "y", NULL
21265 };
21266
21267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21269 if (!SWIG_IsOK(res1)) {
21270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21271 }
21272 arg1 = reinterpret_cast< wxDC * >(argp1);
21273 ecode2 = SWIG_AsVal_int(obj1, &val2);
21274 if (!SWIG_IsOK(ecode2)) {
21275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21276 }
21277 arg2 = static_cast< int >(val2);
21278 {
21279 PyThreadState* __tstate = wxPyBeginAllowThreads();
21280 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 resultobj = SWIG_From_int(static_cast< int >(result));
21285 return resultobj;
21286fail:
21287 return NULL;
21288}
21289
21290
21291SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj = 0;
21293 wxDC *arg1 = (wxDC *) 0 ;
21294 int arg2 ;
21295 int result;
21296 void *argp1 = 0 ;
21297 int res1 = 0 ;
21298 int val2 ;
21299 int ecode2 = 0 ;
21300 PyObject * obj0 = 0 ;
21301 PyObject * obj1 = 0 ;
21302 char * kwnames[] = {
21303 (char *) "self",(char *) "x", NULL
21304 };
21305
21306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21308 if (!SWIG_IsOK(res1)) {
21309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21310 }
21311 arg1 = reinterpret_cast< wxDC * >(argp1);
21312 ecode2 = SWIG_AsVal_int(obj1, &val2);
21313 if (!SWIG_IsOK(ecode2)) {
21314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21315 }
21316 arg2 = static_cast< int >(val2);
21317 {
21318 PyThreadState* __tstate = wxPyBeginAllowThreads();
21319 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21320 wxPyEndAllowThreads(__tstate);
21321 if (PyErr_Occurred()) SWIG_fail;
21322 }
21323 resultobj = SWIG_From_int(static_cast< int >(result));
21324 return resultobj;
21325fail:
21326 return NULL;
21327}
21328
21329
21330SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21331 PyObject *resultobj = 0;
21332 wxDC *arg1 = (wxDC *) 0 ;
21333 int arg2 ;
21334 int result;
21335 void *argp1 = 0 ;
21336 int res1 = 0 ;
21337 int val2 ;
21338 int ecode2 = 0 ;
21339 PyObject * obj0 = 0 ;
21340 PyObject * obj1 = 0 ;
21341 char * kwnames[] = {
21342 (char *) "self",(char *) "y", NULL
21343 };
21344
21345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21347 if (!SWIG_IsOK(res1)) {
21348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21349 }
21350 arg1 = reinterpret_cast< wxDC * >(argp1);
21351 ecode2 = SWIG_AsVal_int(obj1, &val2);
21352 if (!SWIG_IsOK(ecode2)) {
21353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21354 }
21355 arg2 = static_cast< int >(val2);
21356 {
21357 PyThreadState* __tstate = wxPyBeginAllowThreads();
21358 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 resultobj = SWIG_From_int(static_cast< int >(result));
21363 return resultobj;
21364fail:
21365 return NULL;
21366}
21367
21368
21369SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21370 PyObject *resultobj = 0;
21371 wxDC *arg1 = (wxDC *) 0 ;
21372 bool result;
21373 void *argp1 = 0 ;
21374 int res1 = 0 ;
21375 PyObject *swig_obj[1] ;
21376
21377 if (!args) SWIG_fail;
21378 swig_obj[0] = args;
21379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21380 if (!SWIG_IsOK(res1)) {
21381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21382 }
21383 arg1 = reinterpret_cast< wxDC * >(argp1);
21384 {
21385 PyThreadState* __tstate = wxPyBeginAllowThreads();
21386 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21387 wxPyEndAllowThreads(__tstate);
21388 if (PyErr_Occurred()) SWIG_fail;
21389 }
21390 {
21391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21392 }
21393 return resultobj;
21394fail:
21395 return NULL;
21396}
21397
21398
21399SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21400 PyObject *resultobj = 0;
21401 wxDC *arg1 = (wxDC *) 0 ;
21402 bool result;
21403 void *argp1 = 0 ;
21404 int res1 = 0 ;
21405 PyObject *swig_obj[1] ;
21406
21407 if (!args) SWIG_fail;
21408 swig_obj[0] = args;
21409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21410 if (!SWIG_IsOK(res1)) {
21411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21412 }
21413 arg1 = reinterpret_cast< wxDC * >(argp1);
21414 {
21415 PyThreadState* __tstate = wxPyBeginAllowThreads();
21416 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 {
21421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21422 }
21423 return resultobj;
21424fail:
21425 return NULL;
21426}
21427
21428
21429SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21430 PyObject *resultobj = 0;
21431 wxDC *arg1 = (wxDC *) 0 ;
21432 int result;
21433 void *argp1 = 0 ;
21434 int res1 = 0 ;
21435 PyObject *swig_obj[1] ;
21436
21437 if (!args) SWIG_fail;
21438 swig_obj[0] = args;
21439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21440 if (!SWIG_IsOK(res1)) {
21441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21442 }
21443 arg1 = reinterpret_cast< wxDC * >(argp1);
21444 {
21445 PyThreadState* __tstate = wxPyBeginAllowThreads();
21446 result = (int)((wxDC const *)arg1)->GetDepth();
21447 wxPyEndAllowThreads(__tstate);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 resultobj = SWIG_From_int(static_cast< int >(result));
21451 return resultobj;
21452fail:
21453 return NULL;
21454}
21455
21456
21457SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21458 PyObject *resultobj = 0;
21459 wxDC *arg1 = (wxDC *) 0 ;
21460 wxSize result;
21461 void *argp1 = 0 ;
21462 int res1 = 0 ;
21463 PyObject *swig_obj[1] ;
21464
21465 if (!args) SWIG_fail;
21466 swig_obj[0] = args;
21467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21468 if (!SWIG_IsOK(res1)) {
21469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21470 }
21471 arg1 = reinterpret_cast< wxDC * >(argp1);
21472 {
21473 PyThreadState* __tstate = wxPyBeginAllowThreads();
21474 result = ((wxDC const *)arg1)->GetPPI();
21475 wxPyEndAllowThreads(__tstate);
21476 if (PyErr_Occurred()) SWIG_fail;
21477 }
21478 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21479 return resultobj;
21480fail:
21481 return NULL;
21482}
21483
21484
b39fe951 21485SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21486 PyObject *resultobj = 0;
21487 wxDC *arg1 = (wxDC *) 0 ;
21488 bool result;
21489 void *argp1 = 0 ;
21490 int res1 = 0 ;
21491 PyObject *swig_obj[1] ;
21492
21493 if (!args) SWIG_fail;
21494 swig_obj[0] = args;
21495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21496 if (!SWIG_IsOK(res1)) {
b39fe951 21497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21498 }
21499 arg1 = reinterpret_cast< wxDC * >(argp1);
21500 {
21501 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21502 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21503 wxPyEndAllowThreads(__tstate);
21504 if (PyErr_Occurred()) SWIG_fail;
21505 }
21506 {
21507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21508 }
21509 return resultobj;
21510fail:
21511 return NULL;
21512}
21513
21514
21515SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21516 PyObject *resultobj = 0;
21517 wxDC *arg1 = (wxDC *) 0 ;
21518 int result;
21519 void *argp1 = 0 ;
21520 int res1 = 0 ;
21521 PyObject *swig_obj[1] ;
21522
21523 if (!args) SWIG_fail;
21524 swig_obj[0] = args;
21525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21526 if (!SWIG_IsOK(res1)) {
21527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21528 }
21529 arg1 = reinterpret_cast< wxDC * >(argp1);
21530 {
21531 PyThreadState* __tstate = wxPyBeginAllowThreads();
21532 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21533 wxPyEndAllowThreads(__tstate);
21534 if (PyErr_Occurred()) SWIG_fail;
21535 }
21536 resultobj = SWIG_From_int(static_cast< int >(result));
21537 return resultobj;
21538fail:
21539 return NULL;
21540}
21541
21542
21543SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21544 PyObject *resultobj = 0;
21545 wxDC *arg1 = (wxDC *) 0 ;
21546 wxBrush *result = 0 ;
21547 void *argp1 = 0 ;
21548 int res1 = 0 ;
21549 PyObject *swig_obj[1] ;
21550
21551 if (!args) SWIG_fail;
21552 swig_obj[0] = args;
21553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21554 if (!SWIG_IsOK(res1)) {
21555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21556 }
21557 arg1 = reinterpret_cast< wxDC * >(argp1);
21558 {
21559 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21560 {
0085ce49
RD
21561 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21562 result = (wxBrush *) &_result_ref;
093d3ff1 21563 }
0085ce49
RD
21564 wxPyEndAllowThreads(__tstate);
21565 if (PyErr_Occurred()) SWIG_fail;
21566 }
21567 {
21568 wxBrush* resultptr = new wxBrush(*result);
21569 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21570 }
21571 return resultobj;
21572fail:
21573 return NULL;
21574}
21575
21576
21577SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21578 PyObject *resultobj = 0;
21579 wxDC *arg1 = (wxDC *) 0 ;
21580 wxBrush *result = 0 ;
21581 void *argp1 = 0 ;
21582 int res1 = 0 ;
21583 PyObject *swig_obj[1] ;
21584
21585 if (!args) SWIG_fail;
21586 swig_obj[0] = args;
21587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21588 if (!SWIG_IsOK(res1)) {
21589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21590 }
21591 arg1 = reinterpret_cast< wxDC * >(argp1);
21592 {
21593 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21594 {
0085ce49
RD
21595 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21596 result = (wxBrush *) &_result_ref;
093d3ff1 21597 }
0085ce49
RD
21598 wxPyEndAllowThreads(__tstate);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 }
21601 {
21602 wxBrush* resultptr = new wxBrush(*result);
21603 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21604 }
21605 return resultobj;
21606fail:
21607 return NULL;
21608}
21609
21610
21611SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21612 PyObject *resultobj = 0;
21613 wxDC *arg1 = (wxDC *) 0 ;
21614 wxFont *result = 0 ;
21615 void *argp1 = 0 ;
21616 int res1 = 0 ;
21617 PyObject *swig_obj[1] ;
21618
21619 if (!args) SWIG_fail;
21620 swig_obj[0] = args;
21621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21622 if (!SWIG_IsOK(res1)) {
21623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21624 }
21625 arg1 = reinterpret_cast< wxDC * >(argp1);
21626 {
21627 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21628 {
0085ce49
RD
21629 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21630 result = (wxFont *) &_result_ref;
093d3ff1 21631 }
0085ce49
RD
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 {
21636 wxFont* resultptr = new wxFont(*result);
21637 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21638 }
21639 return resultobj;
21640fail:
21641 return NULL;
21642}
21643
21644
21645SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21646 PyObject *resultobj = 0;
21647 wxDC *arg1 = (wxDC *) 0 ;
21648 wxPen *result = 0 ;
21649 void *argp1 = 0 ;
21650 int res1 = 0 ;
21651 PyObject *swig_obj[1] ;
21652
21653 if (!args) SWIG_fail;
21654 swig_obj[0] = args;
21655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21656 if (!SWIG_IsOK(res1)) {
21657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21658 }
21659 arg1 = reinterpret_cast< wxDC * >(argp1);
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21662 {
0085ce49
RD
21663 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21664 result = (wxPen *) &_result_ref;
093d3ff1 21665 }
0085ce49
RD
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 {
21670 wxPen* resultptr = new wxPen(*result);
21671 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21672 }
21673 return resultobj;
21674fail:
21675 return NULL;
21676}
21677
21678
21679SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21680 PyObject *resultobj = 0;
21681 wxDC *arg1 = (wxDC *) 0 ;
21682 wxColour *result = 0 ;
21683 void *argp1 = 0 ;
21684 int res1 = 0 ;
21685 PyObject *swig_obj[1] ;
21686
21687 if (!args) SWIG_fail;
21688 swig_obj[0] = args;
21689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21690 if (!SWIG_IsOK(res1)) {
21691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21692 }
21693 arg1 = reinterpret_cast< wxDC * >(argp1);
21694 {
21695 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21696 {
0085ce49
RD
21697 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21698 result = (wxColour *) &_result_ref;
093d3ff1 21699 }
0085ce49
RD
21700 wxPyEndAllowThreads(__tstate);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 }
21703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21704 return resultobj;
21705fail:
21706 return NULL;
21707}
21708
21709
21710SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21711 PyObject *resultobj = 0;
21712 wxDC *arg1 = (wxDC *) 0 ;
21713 wxColour *result = 0 ;
21714 void *argp1 = 0 ;
21715 int res1 = 0 ;
21716 PyObject *swig_obj[1] ;
21717
21718 if (!args) SWIG_fail;
21719 swig_obj[0] = args;
21720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21721 if (!SWIG_IsOK(res1)) {
21722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21723 }
21724 arg1 = reinterpret_cast< wxDC * >(argp1);
21725 {
21726 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21727 {
0085ce49
RD
21728 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21729 result = (wxColour *) &_result_ref;
093d3ff1 21730 }
0085ce49
RD
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21735 return resultobj;
21736fail:
21737 return NULL;
21738}
21739
21740
21741SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21742 PyObject *resultobj = 0;
21743 wxDC *arg1 = (wxDC *) 0 ;
21744 wxColour *arg2 = 0 ;
21745 void *argp1 = 0 ;
21746 int res1 = 0 ;
21747 wxColour temp2 ;
21748 PyObject * obj0 = 0 ;
21749 PyObject * obj1 = 0 ;
21750 char * kwnames[] = {
21751 (char *) "self",(char *) "colour", NULL
21752 };
21753
21754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21756 if (!SWIG_IsOK(res1)) {
21757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21758 }
21759 arg1 = reinterpret_cast< wxDC * >(argp1);
21760 {
21761 arg2 = &temp2;
21762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21763 }
21764 {
21765 PyThreadState* __tstate = wxPyBeginAllowThreads();
21766 (arg1)->SetTextForeground((wxColour const &)*arg2);
21767 wxPyEndAllowThreads(__tstate);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 }
21770 resultobj = SWIG_Py_Void();
21771 return resultobj;
21772fail:
21773 return NULL;
21774}
21775
21776
21777SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21778 PyObject *resultobj = 0;
21779 wxDC *arg1 = (wxDC *) 0 ;
21780 wxColour *arg2 = 0 ;
21781 void *argp1 = 0 ;
21782 int res1 = 0 ;
21783 wxColour temp2 ;
21784 PyObject * obj0 = 0 ;
21785 PyObject * obj1 = 0 ;
21786 char * kwnames[] = {
21787 (char *) "self",(char *) "colour", NULL
21788 };
21789
21790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21792 if (!SWIG_IsOK(res1)) {
21793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21794 }
21795 arg1 = reinterpret_cast< wxDC * >(argp1);
21796 {
21797 arg2 = &temp2;
21798 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21799 }
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 (arg1)->SetTextBackground((wxColour const &)*arg2);
21803 wxPyEndAllowThreads(__tstate);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 }
21806 resultobj = SWIG_Py_Void();
21807 return resultobj;
21808fail:
21809 return NULL;
21810}
21811
21812
21813SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21814 PyObject *resultobj = 0;
21815 wxDC *arg1 = (wxDC *) 0 ;
21816 int result;
21817 void *argp1 = 0 ;
21818 int res1 = 0 ;
21819 PyObject *swig_obj[1] ;
21820
21821 if (!args) SWIG_fail;
21822 swig_obj[0] = args;
21823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21826 }
21827 arg1 = reinterpret_cast< wxDC * >(argp1);
21828 {
21829 PyThreadState* __tstate = wxPyBeginAllowThreads();
21830 result = (int)((wxDC const *)arg1)->GetMapMode();
21831 wxPyEndAllowThreads(__tstate);
21832 if (PyErr_Occurred()) SWIG_fail;
21833 }
21834 resultobj = SWIG_From_int(static_cast< int >(result));
21835 return resultobj;
21836fail:
21837 return NULL;
21838}
21839
21840
21841SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21842 PyObject *resultobj = 0;
21843 wxDC *arg1 = (wxDC *) 0 ;
21844 int arg2 ;
21845 void *argp1 = 0 ;
21846 int res1 = 0 ;
21847 int val2 ;
21848 int ecode2 = 0 ;
21849 PyObject * obj0 = 0 ;
21850 PyObject * obj1 = 0 ;
21851 char * kwnames[] = {
21852 (char *) "self",(char *) "mode", NULL
21853 };
21854
21855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21857 if (!SWIG_IsOK(res1)) {
21858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21859 }
21860 arg1 = reinterpret_cast< wxDC * >(argp1);
21861 ecode2 = SWIG_AsVal_int(obj1, &val2);
21862 if (!SWIG_IsOK(ecode2)) {
21863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21864 }
21865 arg2 = static_cast< int >(val2);
21866 {
21867 PyThreadState* __tstate = wxPyBeginAllowThreads();
21868 (arg1)->SetMapMode(arg2);
21869 wxPyEndAllowThreads(__tstate);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 }
21872 resultobj = SWIG_Py_Void();
21873 return resultobj;
21874fail:
21875 return NULL;
21876}
21877
21878
21879SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21880 PyObject *resultobj = 0;
21881 wxDC *arg1 = (wxDC *) 0 ;
21882 double *arg2 = (double *) 0 ;
21883 double *arg3 = (double *) 0 ;
21884 void *argp1 = 0 ;
21885 int res1 = 0 ;
21886 double temp2 ;
21887 int res2 = SWIG_TMPOBJ ;
21888 double temp3 ;
21889 int res3 = SWIG_TMPOBJ ;
21890 PyObject *swig_obj[1] ;
21891
21892 arg2 = &temp2;
21893 arg3 = &temp3;
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_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21899 }
21900 arg1 = reinterpret_cast< wxDC * >(argp1);
21901 {
21902 PyThreadState* __tstate = wxPyBeginAllowThreads();
21903 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21904 wxPyEndAllowThreads(__tstate);
21905 if (PyErr_Occurred()) SWIG_fail;
21906 }
21907 resultobj = SWIG_Py_Void();
21908 if (SWIG_IsTmpObj(res2)) {
21909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21910 } else {
21911 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21913 }
21914 if (SWIG_IsTmpObj(res3)) {
21915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21916 } else {
21917 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21919 }
21920 return resultobj;
21921fail:
21922 return NULL;
21923}
21924
21925
21926SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj = 0;
21928 wxDC *arg1 = (wxDC *) 0 ;
21929 double arg2 ;
21930 double arg3 ;
21931 void *argp1 = 0 ;
21932 int res1 = 0 ;
21933 double val2 ;
21934 int ecode2 = 0 ;
21935 double val3 ;
21936 int ecode3 = 0 ;
21937 PyObject * obj0 = 0 ;
21938 PyObject * obj1 = 0 ;
21939 PyObject * obj2 = 0 ;
21940 char * kwnames[] = {
21941 (char *) "self",(char *) "x",(char *) "y", NULL
21942 };
21943
21944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21946 if (!SWIG_IsOK(res1)) {
21947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21948 }
21949 arg1 = reinterpret_cast< wxDC * >(argp1);
21950 ecode2 = SWIG_AsVal_double(obj1, &val2);
21951 if (!SWIG_IsOK(ecode2)) {
21952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21953 }
21954 arg2 = static_cast< double >(val2);
21955 ecode3 = SWIG_AsVal_double(obj2, &val3);
21956 if (!SWIG_IsOK(ecode3)) {
21957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21958 }
21959 arg3 = static_cast< double >(val3);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 (arg1)->SetUserScale(arg2,arg3);
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 resultobj = SWIG_Py_Void();
21967 return resultobj;
21968fail:
21969 return NULL;
21970}
21971
21972
21973SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21974 PyObject *resultobj = 0;
21975 wxDC *arg1 = (wxDC *) 0 ;
21976 double *arg2 = (double *) 0 ;
21977 double *arg3 = (double *) 0 ;
21978 void *argp1 = 0 ;
21979 int res1 = 0 ;
21980 double temp2 ;
21981 int res2 = SWIG_TMPOBJ ;
21982 double temp3 ;
21983 int res3 = SWIG_TMPOBJ ;
21984 PyObject *swig_obj[1] ;
21985
21986 arg2 = &temp2;
21987 arg3 = &temp3;
21988 if (!args) SWIG_fail;
21989 swig_obj[0] = args;
21990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21993 }
21994 arg1 = reinterpret_cast< wxDC * >(argp1);
21995 {
21996 PyThreadState* __tstate = wxPyBeginAllowThreads();
21997 (arg1)->GetLogicalScale(arg2,arg3);
21998 wxPyEndAllowThreads(__tstate);
21999 if (PyErr_Occurred()) SWIG_fail;
22000 }
22001 resultobj = SWIG_Py_Void();
22002 if (SWIG_IsTmpObj(res2)) {
22003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22004 } else {
22005 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22007 }
22008 if (SWIG_IsTmpObj(res3)) {
22009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22010 } else {
22011 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22013 }
22014 return resultobj;
22015fail:
22016 return NULL;
22017}
22018
22019
22020SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22021 PyObject *resultobj = 0;
22022 wxDC *arg1 = (wxDC *) 0 ;
22023 double arg2 ;
22024 double arg3 ;
22025 void *argp1 = 0 ;
22026 int res1 = 0 ;
22027 double val2 ;
22028 int ecode2 = 0 ;
22029 double val3 ;
22030 int ecode3 = 0 ;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 PyObject * obj2 = 0 ;
22034 char * kwnames[] = {
22035 (char *) "self",(char *) "x",(char *) "y", NULL
22036 };
22037
22038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22040 if (!SWIG_IsOK(res1)) {
22041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22042 }
22043 arg1 = reinterpret_cast< wxDC * >(argp1);
22044 ecode2 = SWIG_AsVal_double(obj1, &val2);
22045 if (!SWIG_IsOK(ecode2)) {
22046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22047 }
22048 arg2 = static_cast< double >(val2);
22049 ecode3 = SWIG_AsVal_double(obj2, &val3);
22050 if (!SWIG_IsOK(ecode3)) {
22051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22052 }
22053 arg3 = static_cast< double >(val3);
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 (arg1)->SetLogicalScale(arg2,arg3);
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 resultobj = SWIG_Py_Void();
22061 return resultobj;
22062fail:
22063 return NULL;
22064}
22065
22066
22067SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22068 PyObject *resultobj = 0;
22069 wxDC *arg1 = (wxDC *) 0 ;
22070 wxPoint result;
22071 void *argp1 = 0 ;
22072 int res1 = 0 ;
22073 PyObject *swig_obj[1] ;
22074
22075 if (!args) SWIG_fail;
22076 swig_obj[0] = args;
22077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22078 if (!SWIG_IsOK(res1)) {
22079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22080 }
22081 arg1 = reinterpret_cast< wxDC * >(argp1);
22082 {
22083 PyThreadState* __tstate = wxPyBeginAllowThreads();
22084 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22085 wxPyEndAllowThreads(__tstate);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 }
22088 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22089 return resultobj;
22090fail:
22091 return NULL;
22092}
22093
22094
22095SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22096 PyObject *resultobj = 0;
22097 wxDC *arg1 = (wxDC *) 0 ;
22098 int *arg2 = (int *) 0 ;
22099 int *arg3 = (int *) 0 ;
22100 void *argp1 = 0 ;
22101 int res1 = 0 ;
22102 int temp2 ;
22103 int res2 = SWIG_TMPOBJ ;
22104 int temp3 ;
22105 int res3 = SWIG_TMPOBJ ;
22106 PyObject *swig_obj[1] ;
22107
22108 arg2 = &temp2;
22109 arg3 = &temp3;
22110 if (!args) SWIG_fail;
22111 swig_obj[0] = args;
22112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22115 }
22116 arg1 = reinterpret_cast< wxDC * >(argp1);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_Py_Void();
22124 if (SWIG_IsTmpObj(res2)) {
22125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22126 } else {
22127 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22129 }
22130 if (SWIG_IsTmpObj(res3)) {
22131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22132 } else {
22133 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22135 }
22136 return resultobj;
22137fail:
22138 return NULL;
22139}
22140
22141
22142SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj = 0;
22144 wxDC *arg1 = (wxDC *) 0 ;
22145 int arg2 ;
22146 int arg3 ;
22147 void *argp1 = 0 ;
22148 int res1 = 0 ;
22149 int val2 ;
22150 int ecode2 = 0 ;
22151 int val3 ;
22152 int ecode3 = 0 ;
22153 PyObject * obj0 = 0 ;
22154 PyObject * obj1 = 0 ;
22155 PyObject * obj2 = 0 ;
22156 char * kwnames[] = {
22157 (char *) "self",(char *) "x",(char *) "y", NULL
22158 };
22159
22160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22162 if (!SWIG_IsOK(res1)) {
22163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22164 }
22165 arg1 = reinterpret_cast< wxDC * >(argp1);
22166 ecode2 = SWIG_AsVal_int(obj1, &val2);
22167 if (!SWIG_IsOK(ecode2)) {
22168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22169 }
22170 arg2 = static_cast< int >(val2);
22171 ecode3 = SWIG_AsVal_int(obj2, &val3);
22172 if (!SWIG_IsOK(ecode3)) {
22173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22174 }
22175 arg3 = static_cast< int >(val3);
22176 {
22177 PyThreadState* __tstate = wxPyBeginAllowThreads();
22178 (arg1)->SetLogicalOrigin(arg2,arg3);
22179 wxPyEndAllowThreads(__tstate);
22180 if (PyErr_Occurred()) SWIG_fail;
22181 }
22182 resultobj = SWIG_Py_Void();
22183 return resultobj;
22184fail:
22185 return NULL;
22186}
22187
22188
22189SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22190 PyObject *resultobj = 0;
22191 wxDC *arg1 = (wxDC *) 0 ;
22192 wxPoint *arg2 = 0 ;
22193 void *argp1 = 0 ;
22194 int res1 = 0 ;
22195 wxPoint temp2 ;
22196 PyObject * obj0 = 0 ;
22197 PyObject * obj1 = 0 ;
22198 char * kwnames[] = {
22199 (char *) "self",(char *) "point", NULL
22200 };
22201
22202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22204 if (!SWIG_IsOK(res1)) {
22205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22206 }
22207 arg1 = reinterpret_cast< wxDC * >(argp1);
22208 {
22209 arg2 = &temp2;
22210 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22211 }
22212 {
22213 PyThreadState* __tstate = wxPyBeginAllowThreads();
22214 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22215 wxPyEndAllowThreads(__tstate);
22216 if (PyErr_Occurred()) SWIG_fail;
22217 }
22218 resultobj = SWIG_Py_Void();
22219 return resultobj;
22220fail:
22221 return NULL;
22222}
22223
22224
22225SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22226 PyObject *resultobj = 0;
22227 wxDC *arg1 = (wxDC *) 0 ;
22228 wxPoint result;
22229 void *argp1 = 0 ;
22230 int res1 = 0 ;
22231 PyObject *swig_obj[1] ;
22232
22233 if (!args) SWIG_fail;
22234 swig_obj[0] = args;
22235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22236 if (!SWIG_IsOK(res1)) {
22237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22238 }
22239 arg1 = reinterpret_cast< wxDC * >(argp1);
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22247 return resultobj;
22248fail:
22249 return NULL;
22250}
22251
22252
22253SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22254 PyObject *resultobj = 0;
22255 wxDC *arg1 = (wxDC *) 0 ;
22256 int *arg2 = (int *) 0 ;
22257 int *arg3 = (int *) 0 ;
22258 void *argp1 = 0 ;
22259 int res1 = 0 ;
22260 int temp2 ;
22261 int res2 = SWIG_TMPOBJ ;
22262 int temp3 ;
22263 int res3 = SWIG_TMPOBJ ;
22264 PyObject *swig_obj[1] ;
22265
22266 arg2 = &temp2;
22267 arg3 = &temp3;
22268 if (!args) SWIG_fail;
22269 swig_obj[0] = args;
22270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22273 }
22274 arg1 = reinterpret_cast< wxDC * >(argp1);
22275 {
22276 PyThreadState* __tstate = wxPyBeginAllowThreads();
22277 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 resultobj = SWIG_Py_Void();
22282 if (SWIG_IsTmpObj(res2)) {
22283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22284 } else {
22285 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22287 }
22288 if (SWIG_IsTmpObj(res3)) {
22289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22290 } else {
22291 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22293 }
22294 return resultobj;
22295fail:
22296 return NULL;
22297}
22298
22299
22300SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22301 PyObject *resultobj = 0;
22302 wxDC *arg1 = (wxDC *) 0 ;
22303 int arg2 ;
22304 int arg3 ;
22305 void *argp1 = 0 ;
22306 int res1 = 0 ;
22307 int val2 ;
22308 int ecode2 = 0 ;
22309 int val3 ;
22310 int ecode3 = 0 ;
22311 PyObject * obj0 = 0 ;
22312 PyObject * obj1 = 0 ;
22313 PyObject * obj2 = 0 ;
22314 char * kwnames[] = {
22315 (char *) "self",(char *) "x",(char *) "y", NULL
22316 };
22317
22318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22320 if (!SWIG_IsOK(res1)) {
22321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22322 }
22323 arg1 = reinterpret_cast< wxDC * >(argp1);
22324 ecode2 = SWIG_AsVal_int(obj1, &val2);
22325 if (!SWIG_IsOK(ecode2)) {
22326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22327 }
22328 arg2 = static_cast< int >(val2);
22329 ecode3 = SWIG_AsVal_int(obj2, &val3);
22330 if (!SWIG_IsOK(ecode3)) {
22331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22332 }
22333 arg3 = static_cast< int >(val3);
22334 {
22335 PyThreadState* __tstate = wxPyBeginAllowThreads();
22336 (arg1)->SetDeviceOrigin(arg2,arg3);
22337 wxPyEndAllowThreads(__tstate);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 }
22340 resultobj = SWIG_Py_Void();
22341 return resultobj;
22342fail:
22343 return NULL;
22344}
22345
22346
22347SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22348 PyObject *resultobj = 0;
22349 wxDC *arg1 = (wxDC *) 0 ;
22350 wxPoint *arg2 = 0 ;
22351 void *argp1 = 0 ;
22352 int res1 = 0 ;
22353 wxPoint temp2 ;
22354 PyObject * obj0 = 0 ;
22355 PyObject * obj1 = 0 ;
22356 char * kwnames[] = {
22357 (char *) "self",(char *) "point", NULL
22358 };
22359
22360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22362 if (!SWIG_IsOK(res1)) {
22363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22364 }
22365 arg1 = reinterpret_cast< wxDC * >(argp1);
22366 {
22367 arg2 = &temp2;
22368 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22369 }
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22373 wxPyEndAllowThreads(__tstate);
22374 if (PyErr_Occurred()) SWIG_fail;
22375 }
22376 resultobj = SWIG_Py_Void();
22377 return resultobj;
22378fail:
22379 return NULL;
22380}
22381
22382
22383SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22384 PyObject *resultobj = 0;
22385 wxDC *arg1 = (wxDC *) 0 ;
22386 bool arg2 ;
22387 bool arg3 ;
22388 void *argp1 = 0 ;
22389 int res1 = 0 ;
22390 bool val2 ;
22391 int ecode2 = 0 ;
22392 bool val3 ;
22393 int ecode3 = 0 ;
22394 PyObject * obj0 = 0 ;
22395 PyObject * obj1 = 0 ;
22396 PyObject * obj2 = 0 ;
22397 char * kwnames[] = {
22398 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22399 };
22400
22401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22403 if (!SWIG_IsOK(res1)) {
22404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22405 }
22406 arg1 = reinterpret_cast< wxDC * >(argp1);
22407 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22408 if (!SWIG_IsOK(ecode2)) {
22409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22410 }
22411 arg2 = static_cast< bool >(val2);
22412 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22413 if (!SWIG_IsOK(ecode3)) {
22414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22415 }
22416 arg3 = static_cast< bool >(val3);
22417 {
22418 PyThreadState* __tstate = wxPyBeginAllowThreads();
22419 (arg1)->SetAxisOrientation(arg2,arg3);
22420 wxPyEndAllowThreads(__tstate);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 resultobj = SWIG_Py_Void();
22424 return resultobj;
22425fail:
22426 return NULL;
22427}
22428
22429
22430SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22431 PyObject *resultobj = 0;
22432 wxDC *arg1 = (wxDC *) 0 ;
22433 int result;
22434 void *argp1 = 0 ;
22435 int res1 = 0 ;
22436 PyObject *swig_obj[1] ;
22437
22438 if (!args) SWIG_fail;
22439 swig_obj[0] = args;
22440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22441 if (!SWIG_IsOK(res1)) {
22442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22443 }
22444 arg1 = reinterpret_cast< wxDC * >(argp1);
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22448 wxPyEndAllowThreads(__tstate);
22449 if (PyErr_Occurred()) SWIG_fail;
22450 }
22451 resultobj = SWIG_From_int(static_cast< int >(result));
22452 return resultobj;
22453fail:
22454 return NULL;
22455}
22456
22457
22458SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22459 PyObject *resultobj = 0;
22460 wxDC *arg1 = (wxDC *) 0 ;
22461 int arg2 ;
22462 void *argp1 = 0 ;
22463 int res1 = 0 ;
22464 int val2 ;
22465 int ecode2 = 0 ;
22466 PyObject * obj0 = 0 ;
22467 PyObject * obj1 = 0 ;
22468 char * kwnames[] = {
22469 (char *) "self",(char *) "function", NULL
22470 };
22471
22472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22474 if (!SWIG_IsOK(res1)) {
22475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22476 }
22477 arg1 = reinterpret_cast< wxDC * >(argp1);
22478 ecode2 = SWIG_AsVal_int(obj1, &val2);
22479 if (!SWIG_IsOK(ecode2)) {
22480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22481 }
22482 arg2 = static_cast< int >(val2);
22483 {
22484 PyThreadState* __tstate = wxPyBeginAllowThreads();
22485 (arg1)->SetLogicalFunction(arg2);
22486 wxPyEndAllowThreads(__tstate);
22487 if (PyErr_Occurred()) SWIG_fail;
22488 }
22489 resultobj = SWIG_Py_Void();
22490 return resultobj;
22491fail:
22492 return NULL;
22493}
22494
22495
22496SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22497 PyObject *resultobj = 0;
22498 wxDC *arg1 = (wxDC *) 0 ;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 PyObject *swig_obj[1] ;
22502
22503 if (!args) SWIG_fail;
22504 swig_obj[0] = args;
22505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22506 if (!SWIG_IsOK(res1)) {
22507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22508 }
22509 arg1 = reinterpret_cast< wxDC * >(argp1);
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 (arg1)->ComputeScaleAndOrigin();
22513 wxPyEndAllowThreads(__tstate);
22514 if (PyErr_Occurred()) SWIG_fail;
22515 }
22516 resultobj = SWIG_Py_Void();
22517 return resultobj;
22518fail:
22519 return NULL;
22520}
22521
22522
22523SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22524 PyObject *resultobj = 0;
22525 wxDC *arg1 = (wxDC *) 0 ;
22526 int arg2 ;
22527 int arg3 ;
22528 void *argp1 = 0 ;
22529 int res1 = 0 ;
22530 int val2 ;
22531 int ecode2 = 0 ;
22532 int val3 ;
22533 int ecode3 = 0 ;
22534 PyObject * obj0 = 0 ;
22535 PyObject * obj1 = 0 ;
22536 PyObject * obj2 = 0 ;
22537 char * kwnames[] = {
22538 (char *) "self",(char *) "x",(char *) "y", NULL
22539 };
22540
22541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22543 if (!SWIG_IsOK(res1)) {
22544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22545 }
22546 arg1 = reinterpret_cast< wxDC * >(argp1);
22547 ecode2 = SWIG_AsVal_int(obj1, &val2);
22548 if (!SWIG_IsOK(ecode2)) {
22549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22550 }
22551 arg2 = static_cast< int >(val2);
22552 ecode3 = SWIG_AsVal_int(obj2, &val3);
22553 if (!SWIG_IsOK(ecode3)) {
22554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22555 }
22556 arg3 = static_cast< int >(val3);
22557 {
22558 PyThreadState* __tstate = wxPyBeginAllowThreads();
22559 (arg1)->CalcBoundingBox(arg2,arg3);
22560 wxPyEndAllowThreads(__tstate);
22561 if (PyErr_Occurred()) SWIG_fail;
22562 }
22563 resultobj = SWIG_Py_Void();
22564 return resultobj;
22565fail:
22566 return NULL;
22567}
22568
22569
22570SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22571 PyObject *resultobj = 0;
22572 wxDC *arg1 = (wxDC *) 0 ;
22573 wxPoint *arg2 = 0 ;
22574 void *argp1 = 0 ;
22575 int res1 = 0 ;
22576 wxPoint temp2 ;
22577 PyObject * obj0 = 0 ;
22578 PyObject * obj1 = 0 ;
22579 char * kwnames[] = {
22580 (char *) "self",(char *) "point", NULL
22581 };
22582
22583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22585 if (!SWIG_IsOK(res1)) {
22586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22587 }
22588 arg1 = reinterpret_cast< wxDC * >(argp1);
22589 {
22590 arg2 = &temp2;
22591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22592 }
22593 {
22594 PyThreadState* __tstate = wxPyBeginAllowThreads();
22595 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 resultobj = SWIG_Py_Void();
22600 return resultobj;
22601fail:
22602 return NULL;
22603}
22604
22605
22606SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22607 PyObject *resultobj = 0;
22608 wxDC *arg1 = (wxDC *) 0 ;
22609 void *argp1 = 0 ;
22610 int res1 = 0 ;
22611 PyObject *swig_obj[1] ;
22612
22613 if (!args) SWIG_fail;
22614 swig_obj[0] = args;
22615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22618 }
22619 arg1 = reinterpret_cast< wxDC * >(argp1);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 (arg1)->ResetBoundingBox();
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_Py_Void();
22627 return resultobj;
22628fail:
22629 return NULL;
22630}
22631
22632
22633SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 PyObject *resultobj = 0;
22635 wxDC *arg1 = (wxDC *) 0 ;
22636 int result;
22637 void *argp1 = 0 ;
22638 int res1 = 0 ;
22639 PyObject *swig_obj[1] ;
22640
22641 if (!args) SWIG_fail;
22642 swig_obj[0] = args;
22643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22646 }
22647 arg1 = reinterpret_cast< wxDC * >(argp1);
22648 {
22649 PyThreadState* __tstate = wxPyBeginAllowThreads();
22650 result = (int)((wxDC const *)arg1)->MinX();
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 resultobj = SWIG_From_int(static_cast< int >(result));
22655 return resultobj;
22656fail:
22657 return NULL;
22658}
22659
22660
22661SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22662 PyObject *resultobj = 0;
22663 wxDC *arg1 = (wxDC *) 0 ;
22664 int result;
22665 void *argp1 = 0 ;
22666 int res1 = 0 ;
22667 PyObject *swig_obj[1] ;
22668
22669 if (!args) SWIG_fail;
22670 swig_obj[0] = args;
22671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22672 if (!SWIG_IsOK(res1)) {
22673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22674 }
22675 arg1 = reinterpret_cast< wxDC * >(argp1);
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (int)((wxDC const *)arg1)->MaxX();
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 resultobj = SWIG_From_int(static_cast< int >(result));
22683 return resultobj;
22684fail:
22685 return NULL;
22686}
22687
22688
22689SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22690 PyObject *resultobj = 0;
22691 wxDC *arg1 = (wxDC *) 0 ;
22692 int result;
22693 void *argp1 = 0 ;
22694 int res1 = 0 ;
22695 PyObject *swig_obj[1] ;
22696
22697 if (!args) SWIG_fail;
22698 swig_obj[0] = args;
22699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22702 }
22703 arg1 = reinterpret_cast< wxDC * >(argp1);
22704 {
22705 PyThreadState* __tstate = wxPyBeginAllowThreads();
22706 result = (int)((wxDC const *)arg1)->MinY();
22707 wxPyEndAllowThreads(__tstate);
22708 if (PyErr_Occurred()) SWIG_fail;
22709 }
22710 resultobj = SWIG_From_int(static_cast< int >(result));
22711 return resultobj;
22712fail:
22713 return NULL;
22714}
22715
22716
22717SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22718 PyObject *resultobj = 0;
22719 wxDC *arg1 = (wxDC *) 0 ;
22720 int result;
22721 void *argp1 = 0 ;
22722 int res1 = 0 ;
22723 PyObject *swig_obj[1] ;
22724
22725 if (!args) SWIG_fail;
22726 swig_obj[0] = args;
22727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22728 if (!SWIG_IsOK(res1)) {
22729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22730 }
22731 arg1 = reinterpret_cast< wxDC * >(argp1);
22732 {
22733 PyThreadState* __tstate = wxPyBeginAllowThreads();
22734 result = (int)((wxDC const *)arg1)->MaxY();
22735 wxPyEndAllowThreads(__tstate);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 }
22738 resultobj = SWIG_From_int(static_cast< int >(result));
22739 return resultobj;
22740fail:
22741 return NULL;
22742}
22743
22744
22745SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22746 PyObject *resultobj = 0;
22747 wxDC *arg1 = (wxDC *) 0 ;
22748 int *arg2 = (int *) 0 ;
22749 int *arg3 = (int *) 0 ;
22750 int *arg4 = (int *) 0 ;
22751 int *arg5 = (int *) 0 ;
22752 void *argp1 = 0 ;
22753 int res1 = 0 ;
22754 int temp2 ;
22755 int res2 = SWIG_TMPOBJ ;
22756 int temp3 ;
22757 int res3 = SWIG_TMPOBJ ;
22758 int temp4 ;
22759 int res4 = SWIG_TMPOBJ ;
22760 int temp5 ;
22761 int res5 = SWIG_TMPOBJ ;
22762 PyObject *swig_obj[1] ;
22763
22764 arg2 = &temp2;
22765 arg3 = &temp3;
22766 arg4 = &temp4;
22767 arg5 = &temp5;
22768 if (!args) SWIG_fail;
22769 swig_obj[0] = args;
22770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22771 if (!SWIG_IsOK(res1)) {
22772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22773 }
22774 arg1 = reinterpret_cast< wxDC * >(argp1);
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22778 wxPyEndAllowThreads(__tstate);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 }
22781 resultobj = SWIG_Py_Void();
22782 if (SWIG_IsTmpObj(res2)) {
22783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22784 } else {
22785 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22787 }
22788 if (SWIG_IsTmpObj(res3)) {
22789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22790 } else {
22791 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22793 }
22794 if (SWIG_IsTmpObj(res4)) {
22795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22796 } else {
22797 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22799 }
22800 if (SWIG_IsTmpObj(res5)) {
22801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22802 } else {
22803 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22805 }
22806 return resultobj;
22807fail:
22808 return NULL;
22809}
22810
22811
b39fe951
RD
22812SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22813 PyObject *resultobj = 0;
22814 wxDC *arg1 = (wxDC *) 0 ;
22815 wxLayoutDirection result;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 PyObject *swig_obj[1] ;
22819
22820 if (!args) SWIG_fail;
22821 swig_obj[0] = args;
22822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22825 }
22826 arg1 = reinterpret_cast< wxDC * >(argp1);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 resultobj = SWIG_From_int(static_cast< int >(result));
22834 return resultobj;
22835fail:
22836 return NULL;
22837}
22838
22839
22840SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22841 PyObject *resultobj = 0;
22842 wxDC *arg1 = (wxDC *) 0 ;
22843 wxLayoutDirection arg2 ;
22844 void *argp1 = 0 ;
22845 int res1 = 0 ;
22846 int val2 ;
22847 int ecode2 = 0 ;
22848 PyObject * obj0 = 0 ;
22849 PyObject * obj1 = 0 ;
22850 char * kwnames[] = {
22851 (char *) "self",(char *) "dir", NULL
22852 };
22853
22854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22856 if (!SWIG_IsOK(res1)) {
22857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22858 }
22859 arg1 = reinterpret_cast< wxDC * >(argp1);
22860 ecode2 = SWIG_AsVal_int(obj1, &val2);
22861 if (!SWIG_IsOK(ecode2)) {
22862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22863 }
22864 arg2 = static_cast< wxLayoutDirection >(val2);
22865 {
22866 PyThreadState* __tstate = wxPyBeginAllowThreads();
22867 (arg1)->SetLayoutDirection(arg2);
22868 wxPyEndAllowThreads(__tstate);
22869 if (PyErr_Occurred()) SWIG_fail;
22870 }
22871 resultobj = SWIG_Py_Void();
22872 return resultobj;
22873fail:
22874 return NULL;
22875}
22876
22877
0085ce49
RD
22878SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22879 PyObject *resultobj = 0;
22880 wxDC *arg1 = (wxDC *) 0 ;
22881 PyObject *arg2 = (PyObject *) 0 ;
22882 PyObject *arg3 = (PyObject *) 0 ;
22883 PyObject *arg4 = (PyObject *) 0 ;
22884 PyObject *result = 0 ;
22885 void *argp1 = 0 ;
22886 int res1 = 0 ;
22887 PyObject * obj0 = 0 ;
22888 PyObject * obj1 = 0 ;
22889 PyObject * obj2 = 0 ;
22890 PyObject * obj3 = 0 ;
22891 char * kwnames[] = {
22892 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22893 };
22894
22895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22897 if (!SWIG_IsOK(res1)) {
22898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22899 }
22900 arg1 = reinterpret_cast< wxDC * >(argp1);
22901 arg2 = obj1;
22902 arg3 = obj2;
22903 arg4 = obj3;
22904 {
22905 PyThreadState* __tstate = wxPyBeginAllowThreads();
22906 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 resultobj = result;
22911 return resultobj;
22912fail:
22913 return NULL;
22914}
22915
22916
22917SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22918 PyObject *resultobj = 0;
22919 wxDC *arg1 = (wxDC *) 0 ;
22920 PyObject *arg2 = (PyObject *) 0 ;
22921 PyObject *arg3 = (PyObject *) 0 ;
22922 PyObject *arg4 = (PyObject *) 0 ;
22923 PyObject *result = 0 ;
22924 void *argp1 = 0 ;
22925 int res1 = 0 ;
22926 PyObject * obj0 = 0 ;
22927 PyObject * obj1 = 0 ;
22928 PyObject * obj2 = 0 ;
22929 PyObject * obj3 = 0 ;
22930 char * kwnames[] = {
22931 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22932 };
22933
22934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22936 if (!SWIG_IsOK(res1)) {
22937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22938 }
22939 arg1 = reinterpret_cast< wxDC * >(argp1);
22940 arg2 = obj1;
22941 arg3 = obj2;
22942 arg4 = obj3;
22943 {
22944 PyThreadState* __tstate = wxPyBeginAllowThreads();
22945 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22946 wxPyEndAllowThreads(__tstate);
22947 if (PyErr_Occurred()) SWIG_fail;
22948 }
22949 resultobj = result;
22950 return resultobj;
22951fail:
22952 return NULL;
22953}
22954
22955
22956SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22957 PyObject *resultobj = 0;
22958 wxDC *arg1 = (wxDC *) 0 ;
22959 PyObject *arg2 = (PyObject *) 0 ;
22960 PyObject *arg3 = (PyObject *) 0 ;
22961 PyObject *arg4 = (PyObject *) 0 ;
22962 PyObject *result = 0 ;
22963 void *argp1 = 0 ;
22964 int res1 = 0 ;
22965 PyObject * obj0 = 0 ;
22966 PyObject * obj1 = 0 ;
22967 PyObject * obj2 = 0 ;
22968 PyObject * obj3 = 0 ;
22969 char * kwnames[] = {
22970 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22971 };
22972
22973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22975 if (!SWIG_IsOK(res1)) {
22976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22977 }
22978 arg1 = reinterpret_cast< wxDC * >(argp1);
22979 arg2 = obj1;
22980 arg3 = obj2;
22981 arg4 = obj3;
22982 {
22983 PyThreadState* __tstate = wxPyBeginAllowThreads();
22984 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = result;
22989 return resultobj;
22990fail:
22991 return NULL;
22992}
22993
22994
22995SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22996 PyObject *resultobj = 0;
22997 wxDC *arg1 = (wxDC *) 0 ;
22998 PyObject *arg2 = (PyObject *) 0 ;
22999 PyObject *arg3 = (PyObject *) 0 ;
23000 PyObject *arg4 = (PyObject *) 0 ;
23001 PyObject *result = 0 ;
23002 void *argp1 = 0 ;
23003 int res1 = 0 ;
23004 PyObject * obj0 = 0 ;
23005 PyObject * obj1 = 0 ;
23006 PyObject * obj2 = 0 ;
23007 PyObject * obj3 = 0 ;
23008 char * kwnames[] = {
23009 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23010 };
23011
23012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23014 if (!SWIG_IsOK(res1)) {
23015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23016 }
23017 arg1 = reinterpret_cast< wxDC * >(argp1);
23018 arg2 = obj1;
23019 arg3 = obj2;
23020 arg4 = obj3;
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 resultobj = result;
23028 return resultobj;
23029fail:
23030 return NULL;
23031}
23032
23033
23034SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23035 PyObject *resultobj = 0;
23036 wxDC *arg1 = (wxDC *) 0 ;
23037 PyObject *arg2 = (PyObject *) 0 ;
23038 PyObject *arg3 = (PyObject *) 0 ;
23039 PyObject *arg4 = (PyObject *) 0 ;
23040 PyObject *result = 0 ;
23041 void *argp1 = 0 ;
23042 int res1 = 0 ;
23043 PyObject * obj0 = 0 ;
23044 PyObject * obj1 = 0 ;
23045 PyObject * obj2 = 0 ;
23046 PyObject * obj3 = 0 ;
23047 char * kwnames[] = {
23048 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23049 };
23050
23051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23053 if (!SWIG_IsOK(res1)) {
23054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23055 }
23056 arg1 = reinterpret_cast< wxDC * >(argp1);
23057 arg2 = obj1;
23058 arg3 = obj2;
23059 arg4 = obj3;
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = result;
23067 return resultobj;
23068fail:
23069 return NULL;
23070}
23071
23072
23073SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj = 0;
23075 wxDC *arg1 = (wxDC *) 0 ;
23076 PyObject *arg2 = (PyObject *) 0 ;
23077 PyObject *arg3 = (PyObject *) 0 ;
23078 PyObject *arg4 = (PyObject *) 0 ;
23079 PyObject *arg5 = (PyObject *) 0 ;
23080 PyObject *result = 0 ;
23081 void *argp1 = 0 ;
23082 int res1 = 0 ;
23083 PyObject * obj0 = 0 ;
23084 PyObject * obj1 = 0 ;
23085 PyObject * obj2 = 0 ;
23086 PyObject * obj3 = 0 ;
23087 PyObject * obj4 = 0 ;
23088 char * kwnames[] = {
23089 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23090 };
23091
23092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23094 if (!SWIG_IsOK(res1)) {
23095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23096 }
23097 arg1 = reinterpret_cast< wxDC * >(argp1);
23098 arg2 = obj1;
23099 arg3 = obj2;
23100 arg4 = obj3;
23101 arg5 = obj4;
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 resultobj = result;
23109 return resultobj;
23110fail:
23111 return NULL;
23112}
23113
23114
23115SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23116 PyObject *obj;
23117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23118 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23119 return SWIG_Py_Void();
23120}
23121
8e99bda9 23122SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 23123 PyObject *resultobj = 0;
8e99bda9
RD
23124 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23125 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
0085ce49 23126 wxMemoryDC *result = 0 ;
8e99bda9
RD
23127 void *argp1 = 0 ;
23128 int res1 = 0 ;
23129 PyObject * obj0 = 0 ;
23130 char * kwnames[] = {
23131 (char *) "bitmap", NULL
23132 };
0085ce49 23133
8e99bda9
RD
23134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23135 if (obj0) {
23136 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23137 if (!SWIG_IsOK(res1)) {
23138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23139 }
23140 if (!argp1) {
23141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23142 }
23143 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23144 }
0085ce49
RD
23145 {
23146 if (!wxPyCheckForApp()) SWIG_fail;
23147 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23148 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
0085ce49
RD
23149 wxPyEndAllowThreads(__tstate);
23150 if (PyErr_Occurred()) SWIG_fail;
23151 }
23152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23153 return resultobj;
23154fail:
23155 return NULL;
23156}
23157
23158
23159SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj = 0;
23161 wxDC *arg1 = (wxDC *) 0 ;
23162 wxMemoryDC *result = 0 ;
23163 void *argp1 = 0 ;
23164 int res1 = 0 ;
23165 PyObject * obj0 = 0 ;
23166 char * kwnames[] = {
23167 (char *) "oldDC", NULL
23168 };
23169
23170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23172 if (!SWIG_IsOK(res1)) {
23173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23174 }
23175 arg1 = reinterpret_cast< wxDC * >(argp1);
23176 {
23177 if (!wxPyCheckForApp()) SWIG_fail;
23178 PyThreadState* __tstate = wxPyBeginAllowThreads();
23179 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23180 wxPyEndAllowThreads(__tstate);
23181 if (PyErr_Occurred()) SWIG_fail;
23182 }
23183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23184 return resultobj;
23185fail:
23186 return NULL;
23187}
23188
23189
23190SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23191 PyObject *resultobj = 0;
23192 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23193 wxBitmap *arg2 = 0 ;
23194 void *argp1 = 0 ;
23195 int res1 = 0 ;
23196 void *argp2 = 0 ;
23197 int res2 = 0 ;
23198 PyObject * obj0 = 0 ;
23199 PyObject * obj1 = 0 ;
23200 char * kwnames[] = {
23201 (char *) "self",(char *) "bitmap", NULL
23202 };
23203
23204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23206 if (!SWIG_IsOK(res1)) {
23207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23208 }
23209 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23211 if (!SWIG_IsOK(res2)) {
23212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23213 }
23214 if (!argp2) {
23215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23216 }
23217 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 (arg1)->SelectObject((wxBitmap const &)*arg2);
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 resultobj = SWIG_Py_Void();
23225 return resultobj;
23226fail:
23227 return NULL;
23228}
23229
23230
23231SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23232 PyObject *obj;
23233 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23234 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23235 return SWIG_Py_Void();
23236}
23237
23238SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23239 return SWIG_Python_InitShadowInstance(args);
23240}
23241
24f6c4e8
RD
23242SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23243 PyObject *resultobj = 0;
23244 wxScreenDC *result = 0 ;
23245
23246 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23247 {
23248 if (!wxPyCheckForApp()) SWIG_fail;
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 result = (wxScreenDC *)new wxScreenDC();
23251 wxPyEndAllowThreads(__tstate);
23252 if (PyErr_Occurred()) SWIG_fail;
23253 }
23254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23255 return resultobj;
23256fail:
23257 return NULL;
23258}
23259
23260
23261SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23262 PyObject *resultobj = 0;
23263 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23264 wxWindow *arg2 = (wxWindow *) 0 ;
23265 bool result;
23266 void *argp1 = 0 ;
23267 int res1 = 0 ;
23268 void *argp2 = 0 ;
23269 int res2 = 0 ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23272 char * kwnames[] = {
23273 (char *) "self",(char *) "window", NULL
23274 };
23275
23276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23280 }
23281 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23283 if (!SWIG_IsOK(res2)) {
23284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23285 }
23286 arg2 = reinterpret_cast< wxWindow * >(argp2);
23287 {
23288 PyThreadState* __tstate = wxPyBeginAllowThreads();
23289 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 {
23294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23295 }
23296 return resultobj;
23297fail:
23298 return NULL;
23299}
23300
23301
23302SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23303 PyObject *resultobj = 0;
23304 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23305 wxRect *arg2 = (wxRect *) NULL ;
23306 bool result;
23307 void *argp1 = 0 ;
23308 int res1 = 0 ;
23309 void *argp2 = 0 ;
23310 int res2 = 0 ;
23311 PyObject * obj0 = 0 ;
23312 PyObject * obj1 = 0 ;
23313 char * kwnames[] = {
23314 (char *) "self",(char *) "rect", NULL
23315 };
23316
23317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23319 if (!SWIG_IsOK(res1)) {
23320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23321 }
23322 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23323 if (obj1) {
23324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23325 if (!SWIG_IsOK(res2)) {
23326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23327 }
23328 arg2 = reinterpret_cast< wxRect * >(argp2);
23329 }
23330 {
23331 PyThreadState* __tstate = wxPyBeginAllowThreads();
23332 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23333 wxPyEndAllowThreads(__tstate);
23334 if (PyErr_Occurred()) SWIG_fail;
23335 }
23336 {
23337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23338 }
23339 return resultobj;
23340fail:
23341 return NULL;
23342}
23343
23344
23345SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23346 PyObject *resultobj = 0;
23347 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23348 bool result;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 PyObject *swig_obj[1] ;
23352
23353 if (!args) SWIG_fail;
23354 swig_obj[0] = args;
23355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23356 if (!SWIG_IsOK(res1)) {
23357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23358 }
23359 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 result = (bool)(arg1)->EndDrawingOnTop();
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 {
23367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23368 }
23369 return resultobj;
23370fail:
23371 return NULL;
23372}
23373
23374
23375SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23376 PyObject *obj;
23377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23378 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23379 return SWIG_Py_Void();
23380}
23381
23382SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23383 return SWIG_Python_InitShadowInstance(args);
23384}
23385
23386SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj = 0;
23388 wxWindow *arg1 = (wxWindow *) 0 ;
23389 wxWindowDC *result = 0 ;
23390 void *argp1 = 0 ;
23391 int res1 = 0 ;
23392 PyObject * obj0 = 0 ;
23393 char * kwnames[] = {
23394 (char *) "win", NULL
23395 };
23396
23397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23399 if (!SWIG_IsOK(res1)) {
23400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23401 }
23402 arg1 = reinterpret_cast< wxWindow * >(argp1);
23403 {
23404 if (!wxPyCheckForApp()) SWIG_fail;
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 result = (wxWindowDC *)new wxWindowDC(arg1);
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23411 return resultobj;
23412fail:
23413 return NULL;
23414}
23415
23416
23417SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23418 PyObject *obj;
23419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23420 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23421 return SWIG_Py_Void();
23422}
23423
23424SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23425 return SWIG_Python_InitShadowInstance(args);
23426}
23427
23428SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23429 PyObject *resultobj = 0;
23430 wxWindow *arg1 = (wxWindow *) 0 ;
23431 wxClientDC *result = 0 ;
23432 void *argp1 = 0 ;
23433 int res1 = 0 ;
23434 PyObject * obj0 = 0 ;
23435 char * kwnames[] = {
23436 (char *) "win", NULL
23437 };
23438
23439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23441 if (!SWIG_IsOK(res1)) {
23442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23443 }
23444 arg1 = reinterpret_cast< wxWindow * >(argp1);
23445 {
23446 if (!wxPyCheckForApp()) SWIG_fail;
23447 PyThreadState* __tstate = wxPyBeginAllowThreads();
23448 result = (wxClientDC *)new wxClientDC(arg1);
23449 wxPyEndAllowThreads(__tstate);
23450 if (PyErr_Occurred()) SWIG_fail;
23451 }
23452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23453 return resultobj;
23454fail:
23455 return NULL;
23456}
23457
23458
23459SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23460 PyObject *obj;
23461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23462 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23463 return SWIG_Py_Void();
23464}
23465
23466SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23467 return SWIG_Python_InitShadowInstance(args);
23468}
23469
23470SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23471 PyObject *resultobj = 0;
23472 wxWindow *arg1 = (wxWindow *) 0 ;
23473 wxPaintDC *result = 0 ;
23474 void *argp1 = 0 ;
23475 int res1 = 0 ;
23476 PyObject * obj0 = 0 ;
23477 char * kwnames[] = {
23478 (char *) "win", NULL
23479 };
23480
23481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23483 if (!SWIG_IsOK(res1)) {
23484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23485 }
23486 arg1 = reinterpret_cast< wxWindow * >(argp1);
23487 {
23488 if (!wxPyCheckForApp()) SWIG_fail;
23489 PyThreadState* __tstate = wxPyBeginAllowThreads();
23490 result = (wxPaintDC *)new wxPaintDC(arg1);
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23495 return resultobj;
23496fail:
23497 return NULL;
23498}
23499
23500
23501SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23502 PyObject *obj;
23503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23504 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23505 return SWIG_Py_Void();
23506}
23507
23508SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23509 return SWIG_Python_InitShadowInstance(args);
23510}
23511
0085ce49
RD
23512SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23513 PyObject *resultobj = 0;
23514 wxDC *arg1 = (wxDC *) 0 ;
23515 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23516 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23517 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23518 wxBufferedDC *result = 0 ;
23519 void *argp1 = 0 ;
23520 int res1 = 0 ;
23521 void *argp2 = 0 ;
23522 int res2 = 0 ;
23523 int val3 ;
23524 int ecode3 = 0 ;
23525
23526 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23528 if (!SWIG_IsOK(res1)) {
23529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23530 }
23531 arg1 = reinterpret_cast< wxDC * >(argp1);
23532 if (swig_obj[1]) {
23533 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23534 if (!SWIG_IsOK(res2)) {
23535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23536 }
0085ce49
RD
23537 if (!argp2) {
23538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23539 }
0085ce49
RD
23540 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23541 }
23542 if (swig_obj[2]) {
23543 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23544 if (!SWIG_IsOK(ecode3)) {
23545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23546 }
23547 arg3 = static_cast< int >(val3);
23548 }
23549 {
23550 if (!wxPyCheckForApp()) SWIG_fail;
23551 PyThreadState* __tstate = wxPyBeginAllowThreads();
23552 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23557 return resultobj;
23558fail:
23559 return NULL;
23560}
23561
23562
23563SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23564 PyObject *resultobj = 0;
23565 wxDC *arg1 = (wxDC *) 0 ;
23566 wxSize *arg2 = 0 ;
23567 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23568 wxBufferedDC *result = 0 ;
23569 void *argp1 = 0 ;
23570 int res1 = 0 ;
23571 wxSize temp2 ;
23572 int val3 ;
23573 int ecode3 = 0 ;
23574
23575 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23577 if (!SWIG_IsOK(res1)) {
23578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23579 }
23580 arg1 = reinterpret_cast< wxDC * >(argp1);
23581 {
23582 arg2 = &temp2;
23583 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23584 }
23585 if (swig_obj[2]) {
23586 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23587 if (!SWIG_IsOK(ecode3)) {
23588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23589 }
23590 arg3 = static_cast< int >(val3);
23591 }
23592 {
23593 if (!wxPyCheckForApp()) SWIG_fail;
23594 PyThreadState* __tstate = wxPyBeginAllowThreads();
23595 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23596 wxPyEndAllowThreads(__tstate);
23597 if (PyErr_Occurred()) SWIG_fail;
23598 }
23599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23600 return resultobj;
23601fail:
23602 return NULL;
23603}
23604
23605
23606SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23607 int argc;
8e99bda9 23608 PyObject *argv[4];
0085ce49 23609
8e99bda9 23610 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
23611 --argc;
23612 if ((argc >= 1) && (argc <= 3)) {
23613 int _v = 0;
23614 if (argc > 1) {
23615 {
23616 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23617 _v = SWIG_CheckState(res);
23618 }
23619 if (!_v) goto check_1;
093d3ff1 23620 }
0085ce49
RD
23621 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23622 }
23623check_1:
23624
23625 if ((argc >= 2) && (argc <= 3)) {
23626 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23627 }
23628
23629fail:
23630 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23631 return NULL;
23632}
23633
23634
23635SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23636 PyObject *resultobj = 0;
23637 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23638 void *argp1 = 0 ;
23639 int res1 = 0 ;
23640 PyObject *swig_obj[1] ;
23641
23642 if (!args) SWIG_fail;
23643 swig_obj[0] = args;
23644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23645 if (!SWIG_IsOK(res1)) {
23646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23647 }
23648 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 delete arg1;
23652
23653 wxPyEndAllowThreads(__tstate);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 }
23656 resultobj = SWIG_Py_Void();
23657 return resultobj;
23658fail:
23659 return NULL;
23660}
23661
23662
23663SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23664 PyObject *resultobj = 0;
23665 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23666 void *argp1 = 0 ;
23667 int res1 = 0 ;
23668 PyObject *swig_obj[1] ;
23669
23670 if (!args) SWIG_fail;
23671 swig_obj[0] = args;
23672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23673 if (!SWIG_IsOK(res1)) {
23674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23675 }
23676 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23677 {
23678 PyThreadState* __tstate = wxPyBeginAllowThreads();
23679 (arg1)->UnMask();
23680 wxPyEndAllowThreads(__tstate);
23681 if (PyErr_Occurred()) SWIG_fail;
23682 }
23683 resultobj = SWIG_Py_Void();
23684 return resultobj;
23685fail:
23686 return NULL;
23687}
23688
23689
23690SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23691 PyObject *obj;
23692 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23693 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23694 return SWIG_Py_Void();
23695}
23696
23697SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23698 return SWIG_Python_InitShadowInstance(args);
23699}
23700
23701SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23702 PyObject *resultobj = 0;
23703 wxWindow *arg1 = (wxWindow *) 0 ;
23704 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23705 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23706 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23707 wxBufferedPaintDC *result = 0 ;
23708 void *argp1 = 0 ;
23709 int res1 = 0 ;
23710 void *argp2 = 0 ;
23711 int res2 = 0 ;
23712 int val3 ;
23713 int ecode3 = 0 ;
23714 PyObject * obj0 = 0 ;
23715 PyObject * obj1 = 0 ;
23716 PyObject * obj2 = 0 ;
23717 char * kwnames[] = {
23718 (char *) "window",(char *) "buffer",(char *) "style", NULL
23719 };
23720
23721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23723 if (!SWIG_IsOK(res1)) {
23724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23725 }
23726 arg1 = reinterpret_cast< wxWindow * >(argp1);
23727 if (obj1) {
23728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23729 if (!SWIG_IsOK(res2)) {
23730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23731 }
0085ce49
RD
23732 if (!argp2) {
23733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23734 }
0085ce49
RD
23735 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23736 }
23737 if (obj2) {
23738 ecode3 = SWIG_AsVal_int(obj2, &val3);
23739 if (!SWIG_IsOK(ecode3)) {
23740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23741 }
23742 arg3 = static_cast< int >(val3);
23743 }
23744 {
23745 if (!wxPyCheckForApp()) SWIG_fail;
23746 PyThreadState* __tstate = wxPyBeginAllowThreads();
23747 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23752 return resultobj;
23753fail:
23754 return NULL;
23755}
23756
23757
23758SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23759 PyObject *obj;
23760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23761 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23762 return SWIG_Py_Void();
23763}
23764
23765SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23766 return SWIG_Python_InitShadowInstance(args);
23767}
23768
24f6c4e8 23769SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23770 PyObject *resultobj = 0;
23771 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 23772 wxAutoBufferedPaintDC *result = 0 ;
0085ce49
RD
23773 void *argp1 = 0 ;
23774 int res1 = 0 ;
23775 PyObject * obj0 = 0 ;
23776 char * kwnames[] = {
23777 (char *) "win", NULL
23778 };
23779
24f6c4e8 23780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23782 if (!SWIG_IsOK(res1)) {
24f6c4e8 23783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23784 }
23785 arg1 = reinterpret_cast< wxWindow * >(argp1);
23786 {
0085ce49 23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 23788 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
0085ce49
RD
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
24f6c4e8 23792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23793 return resultobj;
23794fail:
23795 return NULL;
23796}
23797
23798
24f6c4e8 23799SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23800 PyObject *obj;
23801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 23802 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
23803 return SWIG_Py_Void();
23804}
23805
24f6c4e8 23806SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23807 return SWIG_Python_InitShadowInstance(args);
23808}
23809
8e99bda9
RD
23810SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23811 PyObject *resultobj = 0;
23812 wxWindow *arg1 = (wxWindow *) 0 ;
23813 wxDC *result = 0 ;
23814 void *argp1 = 0 ;
23815 int res1 = 0 ;
23816 PyObject * obj0 = 0 ;
23817 char * kwnames[] = {
23818 (char *) "window", NULL
23819 };
23820
23821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23823 if (!SWIG_IsOK(res1)) {
23824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23825 }
23826 arg1 = reinterpret_cast< wxWindow * >(argp1);
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 {
23834 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23835 }
23836 return resultobj;
23837fail:
23838 return NULL;
23839}
23840
23841
0085ce49
RD
23842SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23843 PyObject *resultobj = 0;
23844 wxDC *arg1 = 0 ;
23845 bool arg2 ;
23846 wxMirrorDC *result = 0 ;
23847 void *argp1 = 0 ;
23848 int res1 = 0 ;
23849 bool val2 ;
23850 int ecode2 = 0 ;
23851 PyObject * obj0 = 0 ;
23852 PyObject * obj1 = 0 ;
23853 char * kwnames[] = {
23854 (char *) "dc",(char *) "mirror", NULL
23855 };
23856
23857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23858 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23859 if (!SWIG_IsOK(res1)) {
23860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23861 }
23862 if (!argp1) {
23863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23864 }
23865 arg1 = reinterpret_cast< wxDC * >(argp1);
23866 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23867 if (!SWIG_IsOK(ecode2)) {
23868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23869 }
23870 arg2 = static_cast< bool >(val2);
23871 {
23872 if (!wxPyCheckForApp()) SWIG_fail;
23873 PyThreadState* __tstate = wxPyBeginAllowThreads();
23874 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23879 return resultobj;
23880fail:
23881 return NULL;
23882}
23883
23884
23885SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23886 PyObject *obj;
23887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23888 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23889 return SWIG_Py_Void();
23890}
23891
23892SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23893 return SWIG_Python_InitShadowInstance(args);
23894}
23895
23896SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23897 PyObject *resultobj = 0;
23898 wxPrintData *arg1 = 0 ;
23899 wxPostScriptDC *result = 0 ;
23900 void *argp1 = 0 ;
23901 int res1 = 0 ;
23902 PyObject * obj0 = 0 ;
23903 char * kwnames[] = {
23904 (char *) "printData", NULL
23905 };
23906
23907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23908 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23909 if (!SWIG_IsOK(res1)) {
23910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23911 }
23912 if (!argp1) {
23913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23914 }
23915 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23916 {
23917 if (!wxPyCheckForApp()) SWIG_fail;
23918 PyThreadState* __tstate = wxPyBeginAllowThreads();
23919 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23924 return resultobj;
23925fail:
23926 return NULL;
23927}
23928
23929
23930SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23931 PyObject *resultobj = 0;
23932 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23933 wxPrintData *result = 0 ;
23934 void *argp1 = 0 ;
23935 int res1 = 0 ;
23936 PyObject *swig_obj[1] ;
23937
23938 if (!args) SWIG_fail;
23939 swig_obj[0] = args;
23940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23941 if (!SWIG_IsOK(res1)) {
23942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23943 }
23944 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23945 {
23946 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23947 {
0085ce49
RD
23948 wxPrintData &_result_ref = (arg1)->GetPrintData();
23949 result = (wxPrintData *) &_result_ref;
e2950dbb 23950 }
0085ce49
RD
23951 wxPyEndAllowThreads(__tstate);
23952 if (PyErr_Occurred()) SWIG_fail;
23953 }
23954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23955 return resultobj;
23956fail:
23957 return NULL;
23958}
23959
23960
23961SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23962 PyObject *resultobj = 0;
23963 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23964 wxPrintData *arg2 = 0 ;
23965 void *argp1 = 0 ;
23966 int res1 = 0 ;
23967 void *argp2 = 0 ;
23968 int res2 = 0 ;
23969 PyObject * obj0 = 0 ;
23970 PyObject * obj1 = 0 ;
23971 char * kwnames[] = {
23972 (char *) "self",(char *) "data", NULL
23973 };
23974
23975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23977 if (!SWIG_IsOK(res1)) {
23978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23979 }
23980 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23982 if (!SWIG_IsOK(res2)) {
23983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23984 }
23985 if (!argp2) {
23986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23987 }
23988 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 resultobj = SWIG_Py_Void();
23996 return resultobj;
23997fail:
23998 return NULL;
23999}
24000
24001
24002SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24003 PyObject *resultobj = 0;
24004 int arg1 ;
24005 int val1 ;
24006 int ecode1 = 0 ;
24007 PyObject * obj0 = 0 ;
24008 char * kwnames[] = {
24009 (char *) "ppi", NULL
24010 };
24011
24012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24013 ecode1 = SWIG_AsVal_int(obj0, &val1);
24014 if (!SWIG_IsOK(ecode1)) {
24015 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24016 }
24017 arg1 = static_cast< int >(val1);
24018 {
24019 PyThreadState* __tstate = wxPyBeginAllowThreads();
24020 wxPostScriptDC::SetResolution(arg1);
24021 wxPyEndAllowThreads(__tstate);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 }
24024 resultobj = SWIG_Py_Void();
24025 return resultobj;
24026fail:
24027 return NULL;
24028}
24029
24030
24031SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24032 PyObject *resultobj = 0;
24033 int result;
24034
24035 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24036 {
24037 PyThreadState* __tstate = wxPyBeginAllowThreads();
24038 result = (int)wxPostScriptDC::GetResolution();
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 resultobj = SWIG_From_int(static_cast< int >(result));
24043 return resultobj;
24044fail:
24045 return NULL;
24046}
24047
24048
24049SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24050 PyObject *obj;
24051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24052 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24053 return SWIG_Py_Void();
24054}
24055
24056SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24057 return SWIG_Python_InitShadowInstance(args);
24058}
24059
24060SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24061 PyObject *resultobj = 0;
24062 wxString const &arg1_defvalue = wxPyEmptyString ;
24063 wxString *arg1 = (wxString *) &arg1_defvalue ;
24064 wxMetaFile *result = 0 ;
24065 bool temp1 = false ;
24066 PyObject * obj0 = 0 ;
24067 char * kwnames[] = {
24068 (char *) "filename", NULL
24069 };
24070
24071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24072 if (obj0) {
093d3ff1 24073 {
0085ce49
RD
24074 arg1 = wxString_in_helper(obj0);
24075 if (arg1 == NULL) SWIG_fail;
24076 temp1 = true;
093d3ff1 24077 }
0085ce49
RD
24078 }
24079 {
24080 if (!wxPyCheckForApp()) SWIG_fail;
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24087 {
24088 if (temp1)
24089 delete arg1;
24090 }
24091 return resultobj;
24092fail:
24093 {
24094 if (temp1)
24095 delete arg1;
24096 }
24097 return NULL;
24098}
24099
24100
24101SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24102 PyObject *obj;
24103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24104 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24105 return SWIG_Py_Void();
24106}
24107
24108SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24109 return SWIG_Python_InitShadowInstance(args);
24110}
24111
24112SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24113 PyObject *resultobj = 0;
24114 wxString const &arg1_defvalue = wxPyEmptyString ;
24115 wxString *arg1 = (wxString *) &arg1_defvalue ;
24116 int arg2 = (int) 0 ;
24117 int arg3 = (int) 0 ;
24118 wxString const &arg4_defvalue = wxPyEmptyString ;
24119 wxString *arg4 = (wxString *) &arg4_defvalue ;
24120 wxMetaFileDC *result = 0 ;
24121 bool temp1 = false ;
24122 int val2 ;
24123 int ecode2 = 0 ;
24124 int val3 ;
24125 int ecode3 = 0 ;
24126 bool temp4 = false ;
24127 PyObject * obj0 = 0 ;
24128 PyObject * obj1 = 0 ;
24129 PyObject * obj2 = 0 ;
24130 PyObject * obj3 = 0 ;
24131 char * kwnames[] = {
24132 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24133 };
24134
24135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24136 if (obj0) {
093d3ff1 24137 {
0085ce49
RD
24138 arg1 = wxString_in_helper(obj0);
24139 if (arg1 == NULL) SWIG_fail;
24140 temp1 = true;
093d3ff1 24141 }
0085ce49
RD
24142 }
24143 if (obj1) {
24144 ecode2 = SWIG_AsVal_int(obj1, &val2);
24145 if (!SWIG_IsOK(ecode2)) {
24146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24147 }
24148 arg2 = static_cast< int >(val2);
24149 }
24150 if (obj2) {
24151 ecode3 = SWIG_AsVal_int(obj2, &val3);
24152 if (!SWIG_IsOK(ecode3)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24154 }
24155 arg3 = static_cast< int >(val3);
24156 }
24157 if (obj3) {
093d3ff1 24158 {
0085ce49
RD
24159 arg4 = wxString_in_helper(obj3);
24160 if (arg4 == NULL) SWIG_fail;
24161 temp4 = true;
093d3ff1 24162 }
0085ce49
RD
24163 }
24164 {
24165 if (!wxPyCheckForApp()) SWIG_fail;
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24168 wxPyEndAllowThreads(__tstate);
24169 if (PyErr_Occurred()) SWIG_fail;
24170 }
24171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24172 {
24173 if (temp1)
24174 delete arg1;
24175 }
24176 {
24177 if (temp4)
24178 delete arg4;
24179 }
24180 return resultobj;
24181fail:
24182 {
24183 if (temp1)
24184 delete arg1;
24185 }
24186 {
24187 if (temp4)
24188 delete arg4;
24189 }
24190 return NULL;
24191}
24192
24193
24194SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24195 PyObject *obj;
24196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24197 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24198 return SWIG_Py_Void();
24199}
24200
24201SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24202 return SWIG_Python_InitShadowInstance(args);
24203}
24204
24205SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24206 PyObject *resultobj = 0;
24207 wxPrintData *arg1 = 0 ;
24208 wxPrinterDC *result = 0 ;
24209 void *argp1 = 0 ;
24210 int res1 = 0 ;
24211 PyObject * obj0 = 0 ;
24212 char * kwnames[] = {
24213 (char *) "printData", NULL
24214 };
24215
24216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24217 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24218 if (!SWIG_IsOK(res1)) {
24219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24220 }
24221 if (!argp1) {
24222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24223 }
24224 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24225 {
24226 if (!wxPyCheckForApp()) SWIG_fail;
24227 PyThreadState* __tstate = wxPyBeginAllowThreads();
24228 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24229 wxPyEndAllowThreads(__tstate);
24230 if (PyErr_Occurred()) SWIG_fail;
24231 }
24232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24233 return resultobj;
24234fail:
24235 return NULL;
24236}
24237
24238
24239SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24240 PyObject *obj;
24241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24242 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24243 return SWIG_Py_Void();
24244}
24245
24246SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24247 return SWIG_Python_InitShadowInstance(args);
24248}
24249
72ef6efb 24250SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 24251 PyObject *resultobj = 0;
72ef6efb 24252 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
0085ce49
RD
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 PyObject *swig_obj[1] ;
24256
24257 if (!args) SWIG_fail;
24258 swig_obj[0] = args;
72ef6efb 24259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
0085ce49 24260 if (!SWIG_IsOK(res1)) {
72ef6efb 24261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24262 }
72ef6efb 24263 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
0085ce49 24264 {
0085ce49
RD
24265 delete arg1;
24266
0085ce49
RD
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 resultobj = SWIG_Py_Void();
24270 return resultobj;
24271fail:
24272 return NULL;
24273}
24274
24275
72ef6efb 24276SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24277 PyObject *resultobj = 0;
72ef6efb
RD
24278 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24279 wxDouble arg2 ;
24280 wxDouble arg3 ;
0085ce49
RD
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
72ef6efb
RD
24283 double val2 ;
24284 int ecode2 = 0 ;
24285 double val3 ;
24286 int ecode3 = 0 ;
0085ce49
RD
24287 PyObject * obj0 = 0 ;
24288 PyObject * obj1 = 0 ;
24289 PyObject * obj2 = 0 ;
24290 char * kwnames[] = {
72ef6efb 24291 (char *) "self",(char *) "x",(char *) "y", NULL
0085ce49
RD
24292 };
24293
72ef6efb
RD
24294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
0085ce49 24296 if (!SWIG_IsOK(res1)) {
72ef6efb 24297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24298 }
72ef6efb
RD
24299 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24300 ecode2 = SWIG_AsVal_double(obj1, &val2);
24301 if (!SWIG_IsOK(ecode2)) {
24302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24303 }
24304 arg2 = static_cast< wxDouble >(val2);
24305 ecode3 = SWIG_AsVal_double(obj2, &val3);
24306 if (!SWIG_IsOK(ecode3)) {
24307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24308 }
24309 arg3 = static_cast< wxDouble >(val3);
0085ce49 24310 {
72ef6efb 24311 (arg1)->MoveToPoint(arg2,arg3);
0085ce49
RD
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
72ef6efb 24314 resultobj = SWIG_Py_Void();
0085ce49
RD
24315 return resultobj;
24316fail:
24317 return NULL;
24318}
24319
24320
72ef6efb 24321SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24322 PyObject *resultobj = 0;
72ef6efb
RD
24323 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24324 wxDouble arg2 ;
24325 wxDouble arg3 ;
0085ce49
RD
24326 void *argp1 = 0 ;
24327 int res1 = 0 ;
72ef6efb
RD
24328 double val2 ;
24329 int ecode2 = 0 ;
24330 double val3 ;
24331 int ecode3 = 0 ;
0085ce49
RD
24332 PyObject * obj0 = 0 ;
24333 PyObject * obj1 = 0 ;
24334 PyObject * obj2 = 0 ;
24335 char * kwnames[] = {
72ef6efb 24336 (char *) "self",(char *) "x",(char *) "y", NULL
0085ce49
RD
24337 };
24338
72ef6efb
RD
24339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
0085ce49 24341 if (!SWIG_IsOK(res1)) {
72ef6efb 24342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24343 }
72ef6efb
RD
24344 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24345 ecode2 = SWIG_AsVal_double(obj1, &val2);
24346 if (!SWIG_IsOK(ecode2)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24348 }
24349 arg2 = static_cast< wxDouble >(val2);
24350 ecode3 = SWIG_AsVal_double(obj2, &val3);
24351 if (!SWIG_IsOK(ecode3)) {
24352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24353 }
24354 arg3 = static_cast< wxDouble >(val3);
0085ce49 24355 {
72ef6efb 24356 (arg1)->AddLineToPoint(arg2,arg3);
0085ce49
RD
24357 if (PyErr_Occurred()) SWIG_fail;
24358 }
72ef6efb 24359 resultobj = SWIG_Py_Void();
0085ce49
RD
24360 return resultobj;
24361fail:
24362 return NULL;
24363}
24364
24365
72ef6efb 24366SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24367 PyObject *resultobj = 0;
72ef6efb
RD
24368 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24369 wxDouble arg2 ;
24370 wxDouble arg3 ;
24371 wxDouble arg4 ;
24372 wxDouble arg5 ;
24373 wxDouble arg6 ;
24374 wxDouble arg7 ;
0085ce49
RD
24375 void *argp1 = 0 ;
24376 int res1 = 0 ;
72ef6efb
RD
24377 double val2 ;
24378 int ecode2 = 0 ;
24379 double val3 ;
24380 int ecode3 = 0 ;
24381 double val4 ;
24382 int ecode4 = 0 ;
24383 double val5 ;
24384 int ecode5 = 0 ;
24385 double val6 ;
24386 int ecode6 = 0 ;
24387 double val7 ;
24388 int ecode7 = 0 ;
24389 PyObject * obj0 = 0 ;
24390 PyObject * obj1 = 0 ;
24391 PyObject * obj2 = 0 ;
24392 PyObject * obj3 = 0 ;
24393 PyObject * obj4 = 0 ;
24394 PyObject * obj5 = 0 ;
24395 PyObject * obj6 = 0 ;
24396 char * kwnames[] = {
24397 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24398 };
24399
24400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24402 if (!SWIG_IsOK(res1)) {
24403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24404 }
24405 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24406 ecode2 = SWIG_AsVal_double(obj1, &val2);
24407 if (!SWIG_IsOK(ecode2)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24409 }
24410 arg2 = static_cast< wxDouble >(val2);
24411 ecode3 = SWIG_AsVal_double(obj2, &val3);
24412 if (!SWIG_IsOK(ecode3)) {
24413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24414 }
24415 arg3 = static_cast< wxDouble >(val3);
24416 ecode4 = SWIG_AsVal_double(obj3, &val4);
24417 if (!SWIG_IsOK(ecode4)) {
24418 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24419 }
24420 arg4 = static_cast< wxDouble >(val4);
24421 ecode5 = SWIG_AsVal_double(obj4, &val5);
24422 if (!SWIG_IsOK(ecode5)) {
24423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24424 }
24425 arg5 = static_cast< wxDouble >(val5);
24426 ecode6 = SWIG_AsVal_double(obj5, &val6);
24427 if (!SWIG_IsOK(ecode6)) {
24428 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24429 }
24430 arg6 = static_cast< wxDouble >(val6);
24431 ecode7 = SWIG_AsVal_double(obj6, &val7);
24432 if (!SWIG_IsOK(ecode7)) {
24433 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24434 }
24435 arg7 = static_cast< wxDouble >(val7);
24436 {
72ef6efb 24437 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24438 if (PyErr_Occurred()) SWIG_fail;
24439 }
24440 resultobj = SWIG_Py_Void();
24441 return resultobj;
24442fail:
24443 return NULL;
24444}
24445
24446
24447SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24448 PyObject *resultobj = 0;
24449 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24450 void *argp1 = 0 ;
24451 int res1 = 0 ;
24452 PyObject *swig_obj[1] ;
24453
24454 if (!args) SWIG_fail;
24455 swig_obj[0] = args;
24456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24457 if (!SWIG_IsOK(res1)) {
24458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24459 }
24460 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24461 {
72ef6efb 24462 (arg1)->CloseSubpath();
72ef6efb
RD
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 resultobj = SWIG_Py_Void();
24466 return resultobj;
24467fail:
24468 return NULL;
24469}
24470
24471
24472SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24473 PyObject *resultobj = 0;
24474 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24475 wxPoint2D result;
24476 void *argp1 = 0 ;
24477 int res1 = 0 ;
24478 PyObject *swig_obj[1] ;
24479
24480 if (!args) SWIG_fail;
24481 swig_obj[0] = args;
24482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24483 if (!SWIG_IsOK(res1)) {
24484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24485 }
24486 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24487 {
72ef6efb 24488 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
24489 if (PyErr_Occurred()) SWIG_fail;
24490 }
24491 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24492 return resultobj;
24493fail:
24494 return NULL;
24495}
24496
24497
24498SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24499 PyObject *resultobj = 0;
24500 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24501 wxDouble arg2 ;
24502 wxDouble arg3 ;
24503 wxDouble arg4 ;
24504 wxDouble arg5 ;
24505 wxDouble arg6 ;
24506 bool arg7 ;
24507 void *argp1 = 0 ;
24508 int res1 = 0 ;
24509 double val2 ;
24510 int ecode2 = 0 ;
24511 double val3 ;
24512 int ecode3 = 0 ;
24513 double val4 ;
24514 int ecode4 = 0 ;
24515 double val5 ;
24516 int ecode5 = 0 ;
24517 double val6 ;
24518 int ecode6 = 0 ;
24519 bool val7 ;
24520 int ecode7 = 0 ;
24521 PyObject * obj0 = 0 ;
24522 PyObject * obj1 = 0 ;
24523 PyObject * obj2 = 0 ;
24524 PyObject * obj3 = 0 ;
24525 PyObject * obj4 = 0 ;
24526 PyObject * obj5 = 0 ;
24527 PyObject * obj6 = 0 ;
24528 char * kwnames[] = {
24529 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24530 };
24531
24532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24534 if (!SWIG_IsOK(res1)) {
24535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24536 }
24537 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24538 ecode2 = SWIG_AsVal_double(obj1, &val2);
24539 if (!SWIG_IsOK(ecode2)) {
24540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24541 }
24542 arg2 = static_cast< wxDouble >(val2);
24543 ecode3 = SWIG_AsVal_double(obj2, &val3);
24544 if (!SWIG_IsOK(ecode3)) {
24545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24546 }
24547 arg3 = static_cast< wxDouble >(val3);
24548 ecode4 = SWIG_AsVal_double(obj3, &val4);
24549 if (!SWIG_IsOK(ecode4)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24551 }
24552 arg4 = static_cast< wxDouble >(val4);
24553 ecode5 = SWIG_AsVal_double(obj4, &val5);
24554 if (!SWIG_IsOK(ecode5)) {
24555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24556 }
24557 arg5 = static_cast< wxDouble >(val5);
24558 ecode6 = SWIG_AsVal_double(obj5, &val6);
24559 if (!SWIG_IsOK(ecode6)) {
24560 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24561 }
24562 arg6 = static_cast< wxDouble >(val6);
24563 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24564 if (!SWIG_IsOK(ecode7)) {
24565 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24566 }
24567 arg7 = static_cast< bool >(val7);
24568 {
72ef6efb 24569 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 resultobj = SWIG_Py_Void();
24573 return resultobj;
24574fail:
24575 return NULL;
24576}
24577
24578
24579SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24580 PyObject *resultobj = 0;
24581 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24582 wxDouble arg2 ;
24583 wxDouble arg3 ;
24584 wxDouble arg4 ;
24585 wxDouble arg5 ;
24586 void *argp1 = 0 ;
24587 int res1 = 0 ;
24588 double val2 ;
24589 int ecode2 = 0 ;
24590 double val3 ;
24591 int ecode3 = 0 ;
24592 double val4 ;
24593 int ecode4 = 0 ;
24594 double val5 ;
24595 int ecode5 = 0 ;
24596 PyObject * obj0 = 0 ;
24597 PyObject * obj1 = 0 ;
24598 PyObject * obj2 = 0 ;
24599 PyObject * obj3 = 0 ;
24600 PyObject * obj4 = 0 ;
24601 char * kwnames[] = {
24602 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24603 };
24604
24605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24607 if (!SWIG_IsOK(res1)) {
24608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24609 }
24610 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24611 ecode2 = SWIG_AsVal_double(obj1, &val2);
24612 if (!SWIG_IsOK(ecode2)) {
24613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24614 }
24615 arg2 = static_cast< wxDouble >(val2);
24616 ecode3 = SWIG_AsVal_double(obj2, &val3);
24617 if (!SWIG_IsOK(ecode3)) {
24618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24619 }
24620 arg3 = static_cast< wxDouble >(val3);
24621 ecode4 = SWIG_AsVal_double(obj3, &val4);
24622 if (!SWIG_IsOK(ecode4)) {
24623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24624 }
24625 arg4 = static_cast< wxDouble >(val4);
24626 ecode5 = SWIG_AsVal_double(obj4, &val5);
24627 if (!SWIG_IsOK(ecode5)) {
24628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24629 }
24630 arg5 = static_cast< wxDouble >(val5);
24631 {
72ef6efb 24632 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
72ef6efb
RD
24633 if (PyErr_Occurred()) SWIG_fail;
24634 }
24635 resultobj = SWIG_Py_Void();
24636 return resultobj;
24637fail:
24638 return NULL;
24639}
24640
24641
24642SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj = 0;
24644 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24645 wxDouble arg2 ;
24646 wxDouble arg3 ;
24647 wxDouble arg4 ;
24648 wxDouble arg5 ;
24649 void *argp1 = 0 ;
24650 int res1 = 0 ;
24651 double val2 ;
24652 int ecode2 = 0 ;
24653 double val3 ;
24654 int ecode3 = 0 ;
24655 double val4 ;
24656 int ecode4 = 0 ;
24657 double val5 ;
24658 int ecode5 = 0 ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 PyObject * obj2 = 0 ;
24662 PyObject * obj3 = 0 ;
24663 PyObject * obj4 = 0 ;
24664 char * kwnames[] = {
24665 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24666 };
24667
24668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24670 if (!SWIG_IsOK(res1)) {
24671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24672 }
24673 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24674 ecode2 = SWIG_AsVal_double(obj1, &val2);
24675 if (!SWIG_IsOK(ecode2)) {
24676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24677 }
24678 arg2 = static_cast< wxDouble >(val2);
24679 ecode3 = SWIG_AsVal_double(obj2, &val3);
24680 if (!SWIG_IsOK(ecode3)) {
24681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24682 }
24683 arg3 = static_cast< wxDouble >(val3);
24684 ecode4 = SWIG_AsVal_double(obj3, &val4);
24685 if (!SWIG_IsOK(ecode4)) {
24686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24687 }
24688 arg4 = static_cast< wxDouble >(val4);
24689 ecode5 = SWIG_AsVal_double(obj4, &val5);
24690 if (!SWIG_IsOK(ecode5)) {
24691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24692 }
24693 arg5 = static_cast< wxDouble >(val5);
24694 {
72ef6efb 24695 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
24696 if (PyErr_Occurred()) SWIG_fail;
24697 }
24698 resultobj = SWIG_Py_Void();
24699 return resultobj;
24700fail:
24701 return NULL;
24702}
24703
24704
24705SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24706 PyObject *resultobj = 0;
24707 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24708 wxDouble arg2 ;
24709 wxDouble arg3 ;
24710 wxDouble arg4 ;
24711 void *argp1 = 0 ;
24712 int res1 = 0 ;
24713 double val2 ;
24714 int ecode2 = 0 ;
24715 double val3 ;
24716 int ecode3 = 0 ;
24717 double val4 ;
24718 int ecode4 = 0 ;
24719 PyObject * obj0 = 0 ;
24720 PyObject * obj1 = 0 ;
24721 PyObject * obj2 = 0 ;
24722 PyObject * obj3 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24725 };
24726
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24731 }
24732 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24733 ecode2 = SWIG_AsVal_double(obj1, &val2);
24734 if (!SWIG_IsOK(ecode2)) {
24735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24736 }
24737 arg2 = static_cast< wxDouble >(val2);
24738 ecode3 = SWIG_AsVal_double(obj2, &val3);
24739 if (!SWIG_IsOK(ecode3)) {
24740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24741 }
24742 arg3 = static_cast< wxDouble >(val3);
24743 ecode4 = SWIG_AsVal_double(obj3, &val4);
24744 if (!SWIG_IsOK(ecode4)) {
24745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24746 }
24747 arg4 = static_cast< wxDouble >(val4);
24748 {
72ef6efb 24749 (arg1)->AddCircle(arg2,arg3,arg4);
72ef6efb
RD
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 resultobj = SWIG_Py_Void();
24753 return resultobj;
24754fail:
24755 return NULL;
24756}
24757
24758
24759SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24760 PyObject *resultobj = 0;
24761 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24762 wxDouble arg2 ;
24763 wxDouble arg3 ;
24764 wxDouble arg4 ;
24765 wxDouble arg5 ;
24766 wxDouble arg6 ;
24767 void *argp1 = 0 ;
24768 int res1 = 0 ;
24769 double val2 ;
24770 int ecode2 = 0 ;
24771 double val3 ;
24772 int ecode3 = 0 ;
24773 double val4 ;
24774 int ecode4 = 0 ;
24775 double val5 ;
24776 int ecode5 = 0 ;
24777 double val6 ;
24778 int ecode6 = 0 ;
24779 PyObject * obj0 = 0 ;
24780 PyObject * obj1 = 0 ;
24781 PyObject * obj2 = 0 ;
24782 PyObject * obj3 = 0 ;
24783 PyObject * obj4 = 0 ;
24784 PyObject * obj5 = 0 ;
24785 char * kwnames[] = {
24786 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24787 };
24788
24789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24791 if (!SWIG_IsOK(res1)) {
24792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24793 }
24794 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24795 ecode2 = SWIG_AsVal_double(obj1, &val2);
24796 if (!SWIG_IsOK(ecode2)) {
24797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24798 }
24799 arg2 = static_cast< wxDouble >(val2);
24800 ecode3 = SWIG_AsVal_double(obj2, &val3);
24801 if (!SWIG_IsOK(ecode3)) {
24802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24803 }
24804 arg3 = static_cast< wxDouble >(val3);
24805 ecode4 = SWIG_AsVal_double(obj3, &val4);
24806 if (!SWIG_IsOK(ecode4)) {
24807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24808 }
24809 arg4 = static_cast< wxDouble >(val4);
24810 ecode5 = SWIG_AsVal_double(obj4, &val5);
24811 if (!SWIG_IsOK(ecode5)) {
24812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24813 }
24814 arg5 = static_cast< wxDouble >(val5);
24815 ecode6 = SWIG_AsVal_double(obj5, &val6);
24816 if (!SWIG_IsOK(ecode6)) {
24817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24818 }
24819 arg6 = static_cast< wxDouble >(val6);
24820 {
72ef6efb 24821 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 resultobj = SWIG_Py_Void();
24825 return resultobj;
24826fail:
24827 return NULL;
24828}
24829
24830
24831SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24832 PyObject *obj;
24833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24834 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24835 return SWIG_Py_Void();
24836}
24837
24838SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24839 PyObject *resultobj = 0;
24840 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24841 void *argp1 = 0 ;
24842 int res1 = 0 ;
24843 PyObject *swig_obj[1] ;
24844
24845 if (!args) SWIG_fail;
24846 swig_obj[0] = args;
24847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24848 if (!SWIG_IsOK(res1)) {
24849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24850 }
24851 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24852 {
72ef6efb
RD
24853 delete arg1;
24854
72ef6efb
RD
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 resultobj = SWIG_Py_Void();
24858 return resultobj;
24859fail:
24860 return NULL;
24861}
24862
24863
0a27f394 24864SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
24865 PyObject *resultobj = 0;
24866 wxWindowDC *arg1 = 0 ;
24867 wxGraphicsContext *result = 0 ;
24868 void *argp1 = 0 ;
24869 int res1 = 0 ;
72ef6efb 24870
0a27f394
RD
24871 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
24873 if (!SWIG_IsOK(res1)) {
24874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24875 }
24876 if (!argp1) {
24877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24878 }
24879 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24880 {
72ef6efb 24881 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
72ef6efb
RD
24882 if (PyErr_Occurred()) SWIG_fail;
24883 }
24884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24885 return resultobj;
24886fail:
24887 return NULL;
24888}
24889
24890
0a27f394
RD
24891SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24892 PyObject *resultobj = 0;
24893 wxWindow *arg1 = (wxWindow *) 0 ;
24894 wxGraphicsContext *result = 0 ;
24895 void *argp1 = 0 ;
24896 int res1 = 0 ;
24897
24898 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24900 if (!SWIG_IsOK(res1)) {
24901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
24902 }
24903 arg1 = reinterpret_cast< wxWindow * >(argp1);
24904 {
24905 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
24906 if (PyErr_Occurred()) SWIG_fail;
24907 }
24908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24909 return resultobj;
24910fail:
24911 return NULL;
24912}
24913
24914
24915SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
24916 int argc;
24917 PyObject *argv[2];
24918
24919 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
24920 --argc;
24921 if (argc == 1) {
24922 int _v = 0;
24923 {
24924 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
24925 _v = SWIG_CheckState(res);
24926 }
24927 if (!_v) goto check_1;
24928 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
24929 }
24930check_1:
24931
24932 if (argc == 1) {
24933 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
24934 }
24935
24936fail:
24937 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
24938 return NULL;
24939}
24940
24941
24942SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj = 0;
24944 void *arg1 = (void *) 0 ;
24945 wxGraphicsContext *result = 0 ;
24946 int res1 ;
24947 PyObject * obj0 = 0 ;
24948 char * kwnames[] = {
24949 (char *) "context", NULL
24950 };
24951
24952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
24953 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
24954 if (!SWIG_IsOK(res1)) {
24955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
24956 }
24957 {
24958 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24962 return resultobj;
24963fail:
24964 return NULL;
24965}
24966
24967
72ef6efb
RD
24968SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24969 PyObject *resultobj = 0;
24970 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24971 wxGraphicsPath *result = 0 ;
24972 void *argp1 = 0 ;
24973 int res1 = 0 ;
24974 PyObject *swig_obj[1] ;
24975
24976 if (!args) SWIG_fail;
24977 swig_obj[0] = args;
24978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24979 if (!SWIG_IsOK(res1)) {
24980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24981 }
24982 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24983 {
72ef6efb 24984 result = (wxGraphicsPath *)(arg1)->CreatePath();
72ef6efb
RD
24985 if (PyErr_Occurred()) SWIG_fail;
24986 }
24987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24988 return resultobj;
24989fail:
24990 return NULL;
24991}
24992
24993
24994SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24995 PyObject *resultobj = 0;
24996 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24997 void *argp1 = 0 ;
24998 int res1 = 0 ;
24999 PyObject *swig_obj[1] ;
25000
25001 if (!args) SWIG_fail;
25002 swig_obj[0] = args;
25003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25004 if (!SWIG_IsOK(res1)) {
25005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25006 }
25007 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25008 {
72ef6efb 25009 (arg1)->PushState();
72ef6efb
RD
25010 if (PyErr_Occurred()) SWIG_fail;
25011 }
25012 resultobj = SWIG_Py_Void();
25013 return resultobj;
25014fail:
25015 return NULL;
25016}
25017
25018
25019SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25020 PyObject *resultobj = 0;
25021 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25022 void *argp1 = 0 ;
25023 int res1 = 0 ;
25024 PyObject *swig_obj[1] ;
25025
25026 if (!args) SWIG_fail;
25027 swig_obj[0] = args;
25028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25029 if (!SWIG_IsOK(res1)) {
25030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25031 }
25032 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25033 {
72ef6efb 25034 (arg1)->PopState();
72ef6efb
RD
25035 if (PyErr_Occurred()) SWIG_fail;
25036 }
25037 resultobj = SWIG_Py_Void();
25038 return resultobj;
25039fail:
25040 return NULL;
25041}
25042
25043
0a27f394 25044SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25045 PyObject *resultobj = 0;
25046 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25047 wxRegion *arg2 = 0 ;
25048 void *argp1 = 0 ;
25049 int res1 = 0 ;
25050 void *argp2 = 0 ;
25051 int res2 = 0 ;
25052 PyObject * obj0 = 0 ;
25053 PyObject * obj1 = 0 ;
25054 char * kwnames[] = {
25055 (char *) "self",(char *) "region", NULL
25056 };
25057
0a27f394 25058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25060 if (!SWIG_IsOK(res1)) {
0a27f394 25061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25062 }
25063 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25065 if (!SWIG_IsOK(res2)) {
0a27f394 25066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
25067 }
25068 if (!argp2) {
0a27f394 25069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
25070 }
25071 arg2 = reinterpret_cast< wxRegion * >(argp2);
25072 {
72ef6efb 25073 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
25074 if (PyErr_Occurred()) SWIG_fail;
25075 }
25076 resultobj = SWIG_Py_Void();
25077 return resultobj;
25078fail:
25079 return NULL;
25080}
25081
25082
0a27f394
RD
25083SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25084 PyObject *resultobj = 0;
25085 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25086 wxDouble arg2 ;
25087 wxDouble arg3 ;
25088 wxDouble arg4 ;
25089 wxDouble arg5 ;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 double val2 ;
25093 int ecode2 = 0 ;
25094 double val3 ;
25095 int ecode3 = 0 ;
25096 double val4 ;
25097 int ecode4 = 0 ;
25098 double val5 ;
25099 int ecode5 = 0 ;
25100 PyObject * obj0 = 0 ;
25101 PyObject * obj1 = 0 ;
25102 PyObject * obj2 = 0 ;
25103 PyObject * obj3 = 0 ;
25104 PyObject * obj4 = 0 ;
25105 char * kwnames[] = {
25106 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25107 };
25108
25109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25111 if (!SWIG_IsOK(res1)) {
25112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25113 }
25114 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25115 ecode2 = SWIG_AsVal_double(obj1, &val2);
25116 if (!SWIG_IsOK(ecode2)) {
25117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
25118 }
25119 arg2 = static_cast< wxDouble >(val2);
25120 ecode3 = SWIG_AsVal_double(obj2, &val3);
25121 if (!SWIG_IsOK(ecode3)) {
25122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
25123 }
25124 arg3 = static_cast< wxDouble >(val3);
25125 ecode4 = SWIG_AsVal_double(obj3, &val4);
25126 if (!SWIG_IsOK(ecode4)) {
25127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
25128 }
25129 arg4 = static_cast< wxDouble >(val4);
25130 ecode5 = SWIG_AsVal_double(obj4, &val5);
25131 if (!SWIG_IsOK(ecode5)) {
25132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
25133 }
25134 arg5 = static_cast< wxDouble >(val5);
25135 {
25136 (arg1)->Clip(arg2,arg3,arg4,arg5);
25137 if (PyErr_Occurred()) SWIG_fail;
25138 }
25139 resultobj = SWIG_Py_Void();
25140 return resultobj;
25141fail:
25142 return NULL;
25143}
25144
25145
25146SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25147 PyObject *resultobj = 0;
25148 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25149 void *argp1 = 0 ;
25150 int res1 = 0 ;
25151 PyObject *swig_obj[1] ;
25152
25153 if (!args) SWIG_fail;
25154 swig_obj[0] = args;
25155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25156 if (!SWIG_IsOK(res1)) {
25157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25158 }
25159 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25160 {
25161 (arg1)->ResetClip();
25162 if (PyErr_Occurred()) SWIG_fail;
25163 }
25164 resultobj = SWIG_Py_Void();
25165 return resultobj;
25166fail:
25167 return NULL;
25168}
25169
25170
25171SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25172 PyObject *resultobj = 0;
25173 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25174 void *result = 0 ;
25175 void *argp1 = 0 ;
25176 int res1 = 0 ;
25177 PyObject *swig_obj[1] ;
25178
25179 if (!args) SWIG_fail;
25180 swig_obj[0] = args;
25181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25182 if (!SWIG_IsOK(res1)) {
25183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25184 }
25185 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25186 {
25187 result = (void *)(arg1)->GetNativeContext();
25188 if (PyErr_Occurred()) SWIG_fail;
25189 }
25190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25191 return resultobj;
25192fail:
25193 return NULL;
25194}
25195
25196
72ef6efb
RD
25197SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25198 PyObject *resultobj = 0;
25199 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25200 wxDouble arg2 ;
25201 wxDouble arg3 ;
25202 void *argp1 = 0 ;
25203 int res1 = 0 ;
25204 double val2 ;
25205 int ecode2 = 0 ;
25206 double val3 ;
25207 int ecode3 = 0 ;
25208 PyObject * obj0 = 0 ;
25209 PyObject * obj1 = 0 ;
25210 PyObject * obj2 = 0 ;
25211 char * kwnames[] = {
25212 (char *) "self",(char *) "dx",(char *) "dy", NULL
25213 };
25214
25215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25217 if (!SWIG_IsOK(res1)) {
25218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25219 }
25220 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25221 ecode2 = SWIG_AsVal_double(obj1, &val2);
25222 if (!SWIG_IsOK(ecode2)) {
25223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25224 }
25225 arg2 = static_cast< wxDouble >(val2);
25226 ecode3 = SWIG_AsVal_double(obj2, &val3);
25227 if (!SWIG_IsOK(ecode3)) {
25228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25229 }
25230 arg3 = static_cast< wxDouble >(val3);
25231 {
72ef6efb 25232 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 resultobj = SWIG_Py_Void();
25236 return resultobj;
25237fail:
25238 return NULL;
25239}
25240
25241
25242SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25243 PyObject *resultobj = 0;
25244 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25245 wxDouble arg2 ;
25246 wxDouble arg3 ;
25247 void *argp1 = 0 ;
25248 int res1 = 0 ;
25249 double val2 ;
25250 int ecode2 = 0 ;
25251 double val3 ;
25252 int ecode3 = 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 PyObject * obj2 = 0 ;
25256 char * kwnames[] = {
25257 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25258 };
25259
25260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25262 if (!SWIG_IsOK(res1)) {
25263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25264 }
25265 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25266 ecode2 = SWIG_AsVal_double(obj1, &val2);
25267 if (!SWIG_IsOK(ecode2)) {
25268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25269 }
25270 arg2 = static_cast< wxDouble >(val2);
25271 ecode3 = SWIG_AsVal_double(obj2, &val3);
25272 if (!SWIG_IsOK(ecode3)) {
25273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25274 }
25275 arg3 = static_cast< wxDouble >(val3);
25276 {
72ef6efb 25277 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 resultobj = SWIG_Py_Void();
25281 return resultobj;
25282fail:
25283 return NULL;
25284}
25285
25286
25287SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj = 0;
25289 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25290 wxDouble arg2 ;
25291 void *argp1 = 0 ;
25292 int res1 = 0 ;
25293 double val2 ;
25294 int ecode2 = 0 ;
25295 PyObject * obj0 = 0 ;
25296 PyObject * obj1 = 0 ;
25297 char * kwnames[] = {
25298 (char *) "self",(char *) "angle", NULL
25299 };
25300
25301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25303 if (!SWIG_IsOK(res1)) {
25304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25305 }
25306 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25307 ecode2 = SWIG_AsVal_double(obj1, &val2);
25308 if (!SWIG_IsOK(ecode2)) {
25309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25310 }
25311 arg2 = static_cast< wxDouble >(val2);
25312 {
72ef6efb 25313 (arg1)->Rotate(arg2);
72ef6efb
RD
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_Py_Void();
25317 return resultobj;
25318fail:
25319 return NULL;
25320}
25321
25322
25323SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25324 PyObject *resultobj = 0;
25325 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25326 wxPen *arg2 = 0 ;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 void *argp2 = 0 ;
25330 int res2 = 0 ;
25331 PyObject * obj0 = 0 ;
25332 PyObject * obj1 = 0 ;
25333 char * kwnames[] = {
25334 (char *) "self",(char *) "pen", NULL
25335 };
25336
25337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25341 }
25342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25344 if (!SWIG_IsOK(res2)) {
25345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25346 }
25347 if (!argp2) {
25348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25349 }
25350 arg2 = reinterpret_cast< wxPen * >(argp2);
25351 {
72ef6efb 25352 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
25353 if (PyErr_Occurred()) SWIG_fail;
25354 }
25355 resultobj = SWIG_Py_Void();
25356 return resultobj;
25357fail:
25358 return NULL;
25359}
25360
25361
25362SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25363 PyObject *resultobj = 0;
25364 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25365 wxBrush *arg2 = 0 ;
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 void *argp2 = 0 ;
25369 int res2 = 0 ;
25370 PyObject * obj0 = 0 ;
25371 PyObject * obj1 = 0 ;
25372 char * kwnames[] = {
25373 (char *) "self",(char *) "brush", NULL
25374 };
25375
25376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25378 if (!SWIG_IsOK(res1)) {
25379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25380 }
25381 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25382 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25383 if (!SWIG_IsOK(res2)) {
25384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25385 }
25386 if (!argp2) {
25387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25388 }
25389 arg2 = reinterpret_cast< wxBrush * >(argp2);
25390 {
72ef6efb 25391 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 resultobj = SWIG_Py_Void();
25395 return resultobj;
25396fail:
25397 return NULL;
25398}
25399
25400
25401SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj = 0;
25403 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25404 wxDouble arg2 ;
25405 wxDouble arg3 ;
25406 wxDouble arg4 ;
25407 wxDouble arg5 ;
25408 wxColour *arg6 = 0 ;
25409 wxColour *arg7 = 0 ;
25410 void *argp1 = 0 ;
25411 int res1 = 0 ;
25412 double val2 ;
25413 int ecode2 = 0 ;
25414 double val3 ;
25415 int ecode3 = 0 ;
25416 double val4 ;
25417 int ecode4 = 0 ;
25418 double val5 ;
25419 int ecode5 = 0 ;
25420 wxColour temp6 ;
25421 wxColour temp7 ;
25422 PyObject * obj0 = 0 ;
25423 PyObject * obj1 = 0 ;
25424 PyObject * obj2 = 0 ;
25425 PyObject * obj3 = 0 ;
25426 PyObject * obj4 = 0 ;
25427 PyObject * obj5 = 0 ;
25428 PyObject * obj6 = 0 ;
25429 char * kwnames[] = {
25430 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25431 };
25432
25433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25435 if (!SWIG_IsOK(res1)) {
25436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25437 }
25438 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25439 ecode2 = SWIG_AsVal_double(obj1, &val2);
25440 if (!SWIG_IsOK(ecode2)) {
25441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25442 }
25443 arg2 = static_cast< wxDouble >(val2);
25444 ecode3 = SWIG_AsVal_double(obj2, &val3);
25445 if (!SWIG_IsOK(ecode3)) {
25446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25447 }
25448 arg3 = static_cast< wxDouble >(val3);
25449 ecode4 = SWIG_AsVal_double(obj3, &val4);
25450 if (!SWIG_IsOK(ecode4)) {
25451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25452 }
25453 arg4 = static_cast< wxDouble >(val4);
25454 ecode5 = SWIG_AsVal_double(obj4, &val5);
25455 if (!SWIG_IsOK(ecode5)) {
25456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25457 }
25458 arg5 = static_cast< wxDouble >(val5);
25459 {
25460 arg6 = &temp6;
25461 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25462 }
25463 {
25464 arg7 = &temp7;
25465 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25466 }
25467 {
72ef6efb 25468 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
25469 if (PyErr_Occurred()) SWIG_fail;
25470 }
25471 resultobj = SWIG_Py_Void();
25472 return resultobj;
25473fail:
25474 return NULL;
25475}
25476
25477
25478SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25479 PyObject *resultobj = 0;
25480 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25481 wxDouble arg2 ;
25482 wxDouble arg3 ;
25483 wxDouble arg4 ;
25484 wxDouble arg5 ;
25485 wxDouble arg6 ;
25486 wxColour *arg7 = 0 ;
25487 wxColour *arg8 = 0 ;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 double val2 ;
25491 int ecode2 = 0 ;
25492 double val3 ;
25493 int ecode3 = 0 ;
25494 double val4 ;
25495 int ecode4 = 0 ;
25496 double val5 ;
25497 int ecode5 = 0 ;
25498 double val6 ;
25499 int ecode6 = 0 ;
25500 wxColour temp7 ;
25501 wxColour temp8 ;
25502 PyObject * obj0 = 0 ;
25503 PyObject * obj1 = 0 ;
25504 PyObject * obj2 = 0 ;
25505 PyObject * obj3 = 0 ;
25506 PyObject * obj4 = 0 ;
25507 PyObject * obj5 = 0 ;
25508 PyObject * obj6 = 0 ;
25509 PyObject * obj7 = 0 ;
25510 char * kwnames[] = {
25511 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25512 };
25513
25514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25516 if (!SWIG_IsOK(res1)) {
25517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25518 }
25519 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25520 ecode2 = SWIG_AsVal_double(obj1, &val2);
25521 if (!SWIG_IsOK(ecode2)) {
25522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25523 }
25524 arg2 = static_cast< wxDouble >(val2);
25525 ecode3 = SWIG_AsVal_double(obj2, &val3);
25526 if (!SWIG_IsOK(ecode3)) {
25527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25528 }
25529 arg3 = static_cast< wxDouble >(val3);
25530 ecode4 = SWIG_AsVal_double(obj3, &val4);
25531 if (!SWIG_IsOK(ecode4)) {
25532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25533 }
25534 arg4 = static_cast< wxDouble >(val4);
25535 ecode5 = SWIG_AsVal_double(obj4, &val5);
25536 if (!SWIG_IsOK(ecode5)) {
25537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25538 }
25539 arg5 = static_cast< wxDouble >(val5);
25540 ecode6 = SWIG_AsVal_double(obj5, &val6);
25541 if (!SWIG_IsOK(ecode6)) {
25542 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25543 }
25544 arg6 = static_cast< wxDouble >(val6);
25545 {
25546 arg7 = &temp7;
25547 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25548 }
25549 {
25550 arg8 = &temp8;
25551 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25552 }
25553 {
72ef6efb 25554 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 resultobj = SWIG_Py_Void();
25558 return resultobj;
25559fail:
25560 return NULL;
25561}
25562
25563
25564SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25565 PyObject *resultobj = 0;
25566 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25567 wxFont *arg2 = 0 ;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 void *argp2 = 0 ;
25571 int res2 = 0 ;
25572 PyObject * obj0 = 0 ;
25573 PyObject * obj1 = 0 ;
25574 char * kwnames[] = {
25575 (char *) "self",(char *) "font", NULL
25576 };
25577
25578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25580 if (!SWIG_IsOK(res1)) {
25581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25582 }
25583 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25585 if (!SWIG_IsOK(res2)) {
25586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25587 }
25588 if (!argp2) {
25589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25590 }
25591 arg2 = reinterpret_cast< wxFont * >(argp2);
25592 {
72ef6efb 25593 (arg1)->SetFont((wxFont const &)*arg2);
72ef6efb
RD
25594 if (PyErr_Occurred()) SWIG_fail;
25595 }
25596 resultobj = SWIG_Py_Void();
25597 return resultobj;
25598fail:
25599 return NULL;
25600}
25601
25602
25603SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25604 PyObject *resultobj = 0;
25605 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25606 wxColour *arg2 = 0 ;
25607 void *argp1 = 0 ;
25608 int res1 = 0 ;
25609 wxColour temp2 ;
25610 PyObject * obj0 = 0 ;
25611 PyObject * obj1 = 0 ;
25612 char * kwnames[] = {
25613 (char *) "self",(char *) "col", NULL
25614 };
25615
25616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25618 if (!SWIG_IsOK(res1)) {
25619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25620 }
25621 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25622 {
25623 arg2 = &temp2;
25624 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25625 }
25626 {
72ef6efb 25627 (arg1)->SetTextColor((wxColour const &)*arg2);
72ef6efb
RD
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 resultobj = SWIG_Py_Void();
25631 return resultobj;
25632fail:
25633 return NULL;
25634}
25635
25636
25637SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25638 PyObject *resultobj = 0;
25639 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25640 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25641 void *argp1 = 0 ;
25642 int res1 = 0 ;
25643 void *argp2 = 0 ;
25644 int res2 = 0 ;
25645 PyObject * obj0 = 0 ;
25646 PyObject * obj1 = 0 ;
25647 char * kwnames[] = {
25648 (char *) "self",(char *) "path", NULL
25649 };
25650
25651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25653 if (!SWIG_IsOK(res1)) {
25654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25655 }
25656 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25658 if (!SWIG_IsOK(res2)) {
25659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25660 }
25661 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25662 {
72ef6efb 25663 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
25664 if (PyErr_Occurred()) SWIG_fail;
25665 }
25666 resultobj = SWIG_Py_Void();
25667 return resultobj;
25668fail:
25669 return NULL;
25670}
25671
25672
25673SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25674 PyObject *resultobj = 0;
25675 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25676 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25677 int arg3 = (int) wxWINDING_RULE ;
25678 void *argp1 = 0 ;
25679 int res1 = 0 ;
25680 void *argp2 = 0 ;
25681 int res2 = 0 ;
25682 int val3 ;
25683 int ecode3 = 0 ;
25684 PyObject * obj0 = 0 ;
25685 PyObject * obj1 = 0 ;
25686 PyObject * obj2 = 0 ;
25687 char * kwnames[] = {
25688 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25689 };
25690
25691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25693 if (!SWIG_IsOK(res1)) {
25694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25695 }
25696 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25697 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25698 if (!SWIG_IsOK(res2)) {
25699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25700 }
25701 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25702 if (obj2) {
25703 ecode3 = SWIG_AsVal_int(obj2, &val3);
25704 if (!SWIG_IsOK(ecode3)) {
25705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25706 }
25707 arg3 = static_cast< int >(val3);
25708 }
25709 {
72ef6efb 25710 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 resultobj = SWIG_Py_Void();
25714 return resultobj;
25715fail:
25716 return NULL;
25717}
25718
25719
25720SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25721 PyObject *resultobj = 0;
25722 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25723 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25724 int arg3 = (int) wxWINDING_RULE ;
25725 void *argp1 = 0 ;
25726 int res1 = 0 ;
25727 void *argp2 = 0 ;
25728 int res2 = 0 ;
25729 int val3 ;
25730 int ecode3 = 0 ;
25731 PyObject * obj0 = 0 ;
25732 PyObject * obj1 = 0 ;
25733 PyObject * obj2 = 0 ;
25734 char * kwnames[] = {
25735 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25736 };
25737
25738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25740 if (!SWIG_IsOK(res1)) {
25741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25742 }
25743 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25745 if (!SWIG_IsOK(res2)) {
25746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25747 }
25748 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25749 if (obj2) {
25750 ecode3 = SWIG_AsVal_int(obj2, &val3);
25751 if (!SWIG_IsOK(ecode3)) {
25752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25753 }
25754 arg3 = static_cast< int >(val3);
25755 }
25756 {
72ef6efb 25757 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 resultobj = SWIG_Py_Void();
25761 return resultobj;
25762fail:
25763 return NULL;
25764}
25765
25766
b39fe951 25767SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25768 PyObject *resultobj = 0;
25769 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25770 wxString *arg2 = 0 ;
25771 wxDouble arg3 ;
25772 wxDouble arg4 ;
25773 void *argp1 = 0 ;
25774 int res1 = 0 ;
25775 bool temp2 = false ;
25776 double val3 ;
25777 int ecode3 = 0 ;
25778 double val4 ;
25779 int ecode4 = 0 ;
b39fe951
RD
25780 PyObject * obj0 = 0 ;
25781 PyObject * obj1 = 0 ;
25782 PyObject * obj2 = 0 ;
25783 PyObject * obj3 = 0 ;
25784 char * kwnames[] = {
25785 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25786 };
72ef6efb 25787
b39fe951
RD
25788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
25790 if (!SWIG_IsOK(res1)) {
25791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25792 }
25793 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25794 {
b39fe951 25795 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25796 if (arg2 == NULL) SWIG_fail;
25797 temp2 = true;
25798 }
b39fe951 25799 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
25800 if (!SWIG_IsOK(ecode3)) {
25801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25802 }
25803 arg3 = static_cast< wxDouble >(val3);
b39fe951 25804 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
25805 if (!SWIG_IsOK(ecode4)) {
25806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25807 }
25808 arg4 = static_cast< wxDouble >(val4);
25809 {
72ef6efb 25810 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
25811 if (PyErr_Occurred()) SWIG_fail;
25812 }
25813 resultobj = SWIG_Py_Void();
25814 {
25815 if (temp2)
25816 delete arg2;
25817 }
25818 return resultobj;
25819fail:
25820 {
25821 if (temp2)
25822 delete arg2;
25823 }
25824 return NULL;
25825}
25826
25827
b39fe951 25828SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25829 PyObject *resultobj = 0;
25830 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25831 wxString *arg2 = 0 ;
25832 wxDouble arg3 ;
25833 wxDouble arg4 ;
25834 wxDouble arg5 ;
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
25837 bool temp2 = false ;
25838 double val3 ;
25839 int ecode3 = 0 ;
25840 double val4 ;
25841 int ecode4 = 0 ;
25842 double val5 ;
25843 int ecode5 = 0 ;
b39fe951
RD
25844 PyObject * obj0 = 0 ;
25845 PyObject * obj1 = 0 ;
25846 PyObject * obj2 = 0 ;
25847 PyObject * obj3 = 0 ;
25848 PyObject * obj4 = 0 ;
25849 char * kwnames[] = {
25850 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25851 };
72ef6efb 25852
b39fe951
RD
25853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 25855 if (!SWIG_IsOK(res1)) {
b39fe951 25856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25857 }
25858 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25859 {
b39fe951 25860 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25861 if (arg2 == NULL) SWIG_fail;
25862 temp2 = true;
25863 }
b39fe951 25864 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25865 if (!SWIG_IsOK(ecode3)) {
b39fe951 25866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25867 }
25868 arg3 = static_cast< wxDouble >(val3);
b39fe951 25869 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 25870 if (!SWIG_IsOK(ecode4)) {
b39fe951 25871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
25872 }
25873 arg4 = static_cast< wxDouble >(val4);
b39fe951 25874 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 25875 if (!SWIG_IsOK(ecode5)) {
b39fe951 25876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
25877 }
25878 arg5 = static_cast< wxDouble >(val5);
25879 {
72ef6efb 25880 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 resultobj = SWIG_Py_Void();
25884 {
25885 if (temp2)
25886 delete arg2;
25887 }
25888 return resultobj;
25889fail:
25890 {
25891 if (temp2)
25892 delete arg2;
25893 }
25894 return NULL;
25895}
25896
25897
72ef6efb
RD
25898SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25899 PyObject *resultobj = 0;
25900 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25901 wxString *arg2 = 0 ;
25902 wxDouble *arg3 = (wxDouble *) 0 ;
25903 wxDouble *arg4 = (wxDouble *) 0 ;
25904 wxDouble *arg5 = (wxDouble *) 0 ;
25905 wxDouble *arg6 = (wxDouble *) 0 ;
25906 void *argp1 = 0 ;
25907 int res1 = 0 ;
25908 bool temp2 = false ;
25909 wxDouble temp3 ;
25910 int res3 = SWIG_TMPOBJ ;
25911 wxDouble temp4 ;
25912 int res4 = SWIG_TMPOBJ ;
25913 wxDouble temp5 ;
25914 int res5 = SWIG_TMPOBJ ;
25915 wxDouble temp6 ;
25916 int res6 = SWIG_TMPOBJ ;
25917 PyObject * obj0 = 0 ;
25918 PyObject * obj1 = 0 ;
25919 char * kwnames[] = {
25920 (char *) "self",(char *) "text", NULL
25921 };
25922
25923 arg3 = &temp3;
25924 arg4 = &temp4;
25925 arg5 = &temp5;
25926 arg6 = &temp6;
25927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25929 if (!SWIG_IsOK(res1)) {
25930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25931 }
25932 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25933 {
25934 arg2 = wxString_in_helper(obj1);
25935 if (arg2 == NULL) SWIG_fail;
25936 temp2 = true;
25937 }
25938 {
72ef6efb 25939 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 resultobj = SWIG_Py_Void();
25943 if (SWIG_IsTmpObj(res3)) {
25944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25945 } else {
25946 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25948 }
25949 if (SWIG_IsTmpObj(res4)) {
25950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25951 } else {
25952 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25954 }
25955 if (SWIG_IsTmpObj(res5)) {
25956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25957 } else {
25958 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25960 }
25961 if (SWIG_IsTmpObj(res6)) {
25962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25963 } else {
25964 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25966 }
25967 {
25968 if (temp2)
25969 delete arg2;
25970 }
25971 return resultobj;
25972fail:
25973 {
25974 if (temp2)
25975 delete arg2;
25976 }
25977 return NULL;
25978}
25979
25980
25981SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25982 PyObject *resultobj = 0;
25983 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25984 wxString *arg2 = 0 ;
b39fe951 25985 wxArrayDouble result;
72ef6efb
RD
25986 void *argp1 = 0 ;
25987 int res1 = 0 ;
25988 bool temp2 = false ;
72ef6efb
RD
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
72ef6efb 25991 char * kwnames[] = {
b39fe951 25992 (char *) "self",(char *) "text", NULL
72ef6efb
RD
25993 };
25994
b39fe951 25995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25997 if (!SWIG_IsOK(res1)) {
b39fe951 25998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25999 }
26000 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26001 {
26002 arg2 = wxString_in_helper(obj1);
26003 if (arg2 == NULL) SWIG_fail;
26004 temp2 = true;
26005 }
72ef6efb 26006 {
b39fe951 26007 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
b39fe951
RD
26010 {
26011 resultobj = wxArrayDouble2PyList_helper(result);
26012 }
72ef6efb
RD
26013 {
26014 if (temp2)
26015 delete arg2;
26016 }
26017 return resultobj;
26018fail:
26019 {
26020 if (temp2)
26021 delete arg2;
26022 }
26023 return NULL;
26024}
26025
26026
26027SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26028 PyObject *resultobj = 0;
26029 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26030 wxBitmap *arg2 = 0 ;
26031 wxDouble arg3 ;
26032 wxDouble arg4 ;
26033 wxDouble arg5 ;
26034 wxDouble arg6 ;
26035 void *argp1 = 0 ;
26036 int res1 = 0 ;
26037 void *argp2 = 0 ;
26038 int res2 = 0 ;
26039 double val3 ;
26040 int ecode3 = 0 ;
26041 double val4 ;
26042 int ecode4 = 0 ;
26043 double val5 ;
26044 int ecode5 = 0 ;
26045 double val6 ;
26046 int ecode6 = 0 ;
26047 PyObject * obj0 = 0 ;
26048 PyObject * obj1 = 0 ;
26049 PyObject * obj2 = 0 ;
26050 PyObject * obj3 = 0 ;
26051 PyObject * obj4 = 0 ;
26052 PyObject * obj5 = 0 ;
26053 char * kwnames[] = {
26054 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26055 };
26056
26057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26059 if (!SWIG_IsOK(res1)) {
26060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26061 }
26062 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26064 if (!SWIG_IsOK(res2)) {
26065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26066 }
26067 if (!argp2) {
26068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26069 }
26070 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26071 ecode3 = SWIG_AsVal_double(obj2, &val3);
26072 if (!SWIG_IsOK(ecode3)) {
26073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26074 }
26075 arg3 = static_cast< wxDouble >(val3);
26076 ecode4 = SWIG_AsVal_double(obj3, &val4);
26077 if (!SWIG_IsOK(ecode4)) {
26078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26079 }
26080 arg4 = static_cast< wxDouble >(val4);
26081 ecode5 = SWIG_AsVal_double(obj4, &val5);
26082 if (!SWIG_IsOK(ecode5)) {
26083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26084 }
26085 arg5 = static_cast< wxDouble >(val5);
26086 ecode6 = SWIG_AsVal_double(obj5, &val6);
26087 if (!SWIG_IsOK(ecode6)) {
26088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26089 }
26090 arg6 = static_cast< wxDouble >(val6);
26091 {
72ef6efb 26092 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26093 if (PyErr_Occurred()) SWIG_fail;
26094 }
26095 resultobj = SWIG_Py_Void();
26096 return resultobj;
26097fail:
26098 return NULL;
26099}
26100
26101
26102SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26103 PyObject *resultobj = 0;
26104 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26105 wxIcon *arg2 = 0 ;
26106 wxDouble arg3 ;
26107 wxDouble arg4 ;
26108 wxDouble arg5 ;
26109 wxDouble arg6 ;
26110 void *argp1 = 0 ;
26111 int res1 = 0 ;
26112 void *argp2 = 0 ;
26113 int res2 = 0 ;
26114 double val3 ;
26115 int ecode3 = 0 ;
26116 double val4 ;
26117 int ecode4 = 0 ;
26118 double val5 ;
26119 int ecode5 = 0 ;
26120 double val6 ;
26121 int ecode6 = 0 ;
26122 PyObject * obj0 = 0 ;
26123 PyObject * obj1 = 0 ;
26124 PyObject * obj2 = 0 ;
26125 PyObject * obj3 = 0 ;
26126 PyObject * obj4 = 0 ;
26127 PyObject * obj5 = 0 ;
26128 char * kwnames[] = {
26129 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26130 };
26131
26132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26134 if (!SWIG_IsOK(res1)) {
26135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26136 }
26137 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26139 if (!SWIG_IsOK(res2)) {
26140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26141 }
26142 if (!argp2) {
26143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26144 }
26145 arg2 = reinterpret_cast< wxIcon * >(argp2);
26146 ecode3 = SWIG_AsVal_double(obj2, &val3);
26147 if (!SWIG_IsOK(ecode3)) {
26148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26149 }
26150 arg3 = static_cast< wxDouble >(val3);
26151 ecode4 = SWIG_AsVal_double(obj3, &val4);
26152 if (!SWIG_IsOK(ecode4)) {
26153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26154 }
26155 arg4 = static_cast< wxDouble >(val4);
26156 ecode5 = SWIG_AsVal_double(obj4, &val5);
26157 if (!SWIG_IsOK(ecode5)) {
26158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26159 }
26160 arg5 = static_cast< wxDouble >(val5);
26161 ecode6 = SWIG_AsVal_double(obj5, &val6);
26162 if (!SWIG_IsOK(ecode6)) {
26163 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26164 }
26165 arg6 = static_cast< wxDouble >(val6);
26166 {
72ef6efb 26167 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 resultobj = SWIG_Py_Void();
26171 return resultobj;
26172fail:
26173 return NULL;
26174}
26175
26176
26177SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26178 PyObject *resultobj = 0;
26179 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26180 wxDouble arg2 ;
26181 wxDouble arg3 ;
26182 wxDouble arg4 ;
26183 wxDouble arg5 ;
26184 void *argp1 = 0 ;
26185 int res1 = 0 ;
26186 double val2 ;
26187 int ecode2 = 0 ;
26188 double val3 ;
26189 int ecode3 = 0 ;
26190 double val4 ;
26191 int ecode4 = 0 ;
26192 double val5 ;
26193 int ecode5 = 0 ;
26194 PyObject * obj0 = 0 ;
26195 PyObject * obj1 = 0 ;
26196 PyObject * obj2 = 0 ;
26197 PyObject * obj3 = 0 ;
26198 PyObject * obj4 = 0 ;
26199 char * kwnames[] = {
26200 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26201 };
26202
26203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26205 if (!SWIG_IsOK(res1)) {
26206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26207 }
26208 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26209 ecode2 = SWIG_AsVal_double(obj1, &val2);
26210 if (!SWIG_IsOK(ecode2)) {
26211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26212 }
26213 arg2 = static_cast< wxDouble >(val2);
26214 ecode3 = SWIG_AsVal_double(obj2, &val3);
26215 if (!SWIG_IsOK(ecode3)) {
26216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26217 }
26218 arg3 = static_cast< wxDouble >(val3);
26219 ecode4 = SWIG_AsVal_double(obj3, &val4);
26220 if (!SWIG_IsOK(ecode4)) {
26221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26222 }
26223 arg4 = static_cast< wxDouble >(val4);
26224 ecode5 = SWIG_AsVal_double(obj4, &val5);
26225 if (!SWIG_IsOK(ecode5)) {
26226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26227 }
26228 arg5 = static_cast< wxDouble >(val5);
26229 {
72ef6efb 26230 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
72ef6efb
RD
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 resultobj = SWIG_Py_Void();
26234 return resultobj;
26235fail:
26236 return NULL;
26237}
26238
26239
b39fe951 26240SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26241 PyObject *resultobj = 0;
26242 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26243 size_t arg2 ;
26244 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26245 void *argp1 = 0 ;
26246 int res1 = 0 ;
b39fe951
RD
26247 PyObject * obj0 = 0 ;
26248 PyObject * obj1 = 0 ;
26249 char * kwnames[] = {
26250 (char *) "self",(char *) "points", NULL
26251 };
72ef6efb 26252
b39fe951
RD
26253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26255 if (!SWIG_IsOK(res1)) {
26256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26257 }
26258 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26259 {
26260 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26261 if (arg3 == NULL) SWIG_fail;
72ef6efb 26262 }
72ef6efb 26263 {
72ef6efb 26264 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
72ef6efb
RD
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 resultobj = SWIG_Py_Void();
b39fe951
RD
26268 {
26269 if (arg3) delete [] arg3;
26270 }
72ef6efb
RD
26271 return resultobj;
26272fail:
b39fe951
RD
26273 {
26274 if (arg3) delete [] arg3;
26275 }
72ef6efb
RD
26276 return NULL;
26277}
26278
26279
f8eb59b9 26280SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26281 PyObject *resultobj = 0;
26282 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
b39fe951
RD
26283 PyObject *arg2 = (PyObject *) 0 ;
26284 PyObject *arg3 = (PyObject *) 0 ;
72ef6efb
RD
26285 void *argp1 = 0 ;
26286 int res1 = 0 ;
b39fe951
RD
26287 PyObject * obj0 = 0 ;
26288 PyObject * obj1 = 0 ;
26289 PyObject * obj2 = 0 ;
26290 char * kwnames[] = {
26291 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26292 };
72ef6efb 26293
f8eb59b9 26294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
b39fe951 26295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26296 if (!SWIG_IsOK(res1)) {
f8eb59b9 26297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26298 }
26299 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26300 arg2 = obj1;
26301 arg3 = obj2;
72ef6efb 26302 {
f8eb59b9 26303 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
72ef6efb
RD
26304 if (PyErr_Occurred()) SWIG_fail;
26305 }
26306 resultobj = SWIG_Py_Void();
26307 return resultobj;
26308fail:
26309 return NULL;
26310}
26311
26312
72ef6efb
RD
26313SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26314 PyObject *resultobj = 0;
26315 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26316 size_t arg2 ;
26317 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26318 int arg4 = (int) wxWINDING_RULE ;
26319 void *argp1 = 0 ;
26320 int res1 = 0 ;
72ef6efb
RD
26321 int val4 ;
26322 int ecode4 = 0 ;
26323 PyObject * obj0 = 0 ;
26324 PyObject * obj1 = 0 ;
26325 PyObject * obj2 = 0 ;
72ef6efb 26326 char * kwnames[] = {
b39fe951 26327 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
72ef6efb
RD
26328 };
26329
b39fe951 26330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
72ef6efb
RD
26331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26332 if (!SWIG_IsOK(res1)) {
26333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26334 }
26335 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26336 {
26337 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26338 if (arg3 == NULL) SWIG_fail;
72ef6efb 26339 }
b39fe951
RD
26340 if (obj2) {
26341 ecode4 = SWIG_AsVal_int(obj2, &val4);
72ef6efb
RD
26342 if (!SWIG_IsOK(ecode4)) {
26343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26344 }
26345 arg4 = static_cast< int >(val4);
26346 }
26347 {
72ef6efb 26348 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
72ef6efb
RD
26349 if (PyErr_Occurred()) SWIG_fail;
26350 }
26351 resultobj = SWIG_Py_Void();
b39fe951
RD
26352 {
26353 if (arg3) delete [] arg3;
26354 }
72ef6efb
RD
26355 return resultobj;
26356fail:
b39fe951
RD
26357 {
26358 if (arg3) delete [] arg3;
26359 }
72ef6efb
RD
26360 return NULL;
26361}
26362
26363
26364SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26365 PyObject *resultobj = 0;
26366 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26367 wxDouble arg2 ;
26368 wxDouble arg3 ;
26369 wxDouble arg4 ;
26370 wxDouble arg5 ;
26371 void *argp1 = 0 ;
26372 int res1 = 0 ;
26373 double val2 ;
26374 int ecode2 = 0 ;
26375 double val3 ;
26376 int ecode3 = 0 ;
26377 double val4 ;
26378 int ecode4 = 0 ;
26379 double val5 ;
26380 int ecode5 = 0 ;
26381 PyObject * obj0 = 0 ;
26382 PyObject * obj1 = 0 ;
26383 PyObject * obj2 = 0 ;
26384 PyObject * obj3 = 0 ;
26385 PyObject * obj4 = 0 ;
26386 char * kwnames[] = {
26387 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26388 };
26389
26390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26394 }
26395 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26396 ecode2 = SWIG_AsVal_double(obj1, &val2);
26397 if (!SWIG_IsOK(ecode2)) {
26398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26399 }
26400 arg2 = static_cast< wxDouble >(val2);
26401 ecode3 = SWIG_AsVal_double(obj2, &val3);
26402 if (!SWIG_IsOK(ecode3)) {
26403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26404 }
26405 arg3 = static_cast< wxDouble >(val3);
26406 ecode4 = SWIG_AsVal_double(obj3, &val4);
26407 if (!SWIG_IsOK(ecode4)) {
26408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26409 }
26410 arg4 = static_cast< wxDouble >(val4);
26411 ecode5 = SWIG_AsVal_double(obj4, &val5);
26412 if (!SWIG_IsOK(ecode5)) {
26413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26414 }
26415 arg5 = static_cast< wxDouble >(val5);
26416 {
72ef6efb 26417 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
26418 if (PyErr_Occurred()) SWIG_fail;
26419 }
26420 resultobj = SWIG_Py_Void();
26421 return resultobj;
26422fail:
26423 return NULL;
26424}
26425
26426
26427SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26428 PyObject *resultobj = 0;
26429 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26430 wxDouble arg2 ;
26431 wxDouble arg3 ;
26432 wxDouble arg4 ;
26433 wxDouble arg5 ;
26434 void *argp1 = 0 ;
26435 int res1 = 0 ;
26436 double val2 ;
26437 int ecode2 = 0 ;
26438 double val3 ;
26439 int ecode3 = 0 ;
26440 double val4 ;
26441 int ecode4 = 0 ;
26442 double val5 ;
26443 int ecode5 = 0 ;
26444 PyObject * obj0 = 0 ;
26445 PyObject * obj1 = 0 ;
26446 PyObject * obj2 = 0 ;
26447 PyObject * obj3 = 0 ;
26448 PyObject * obj4 = 0 ;
26449 char * kwnames[] = {
26450 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26451 };
26452
26453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26455 if (!SWIG_IsOK(res1)) {
26456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26457 }
26458 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26459 ecode2 = SWIG_AsVal_double(obj1, &val2);
26460 if (!SWIG_IsOK(ecode2)) {
26461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26462 }
26463 arg2 = static_cast< wxDouble >(val2);
26464 ecode3 = SWIG_AsVal_double(obj2, &val3);
26465 if (!SWIG_IsOK(ecode3)) {
26466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26467 }
26468 arg3 = static_cast< wxDouble >(val3);
26469 ecode4 = SWIG_AsVal_double(obj3, &val4);
26470 if (!SWIG_IsOK(ecode4)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26472 }
26473 arg4 = static_cast< wxDouble >(val4);
26474 ecode5 = SWIG_AsVal_double(obj4, &val5);
26475 if (!SWIG_IsOK(ecode5)) {
26476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26477 }
26478 arg5 = static_cast< wxDouble >(val5);
26479 {
72ef6efb 26480 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 resultobj = SWIG_Py_Void();
26484 return resultobj;
26485fail:
26486 return NULL;
26487}
26488
26489
26490SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26491 PyObject *resultobj = 0;
26492 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26493 wxDouble arg2 ;
26494 wxDouble arg3 ;
26495 wxDouble arg4 ;
26496 wxDouble arg5 ;
26497 wxDouble arg6 ;
26498 void *argp1 = 0 ;
26499 int res1 = 0 ;
26500 double val2 ;
26501 int ecode2 = 0 ;
26502 double val3 ;
26503 int ecode3 = 0 ;
26504 double val4 ;
26505 int ecode4 = 0 ;
26506 double val5 ;
26507 int ecode5 = 0 ;
26508 double val6 ;
26509 int ecode6 = 0 ;
26510 PyObject * obj0 = 0 ;
26511 PyObject * obj1 = 0 ;
26512 PyObject * obj2 = 0 ;
26513 PyObject * obj3 = 0 ;
26514 PyObject * obj4 = 0 ;
26515 PyObject * obj5 = 0 ;
26516 char * kwnames[] = {
26517 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26518 };
26519
26520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26522 if (!SWIG_IsOK(res1)) {
26523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26524 }
26525 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26526 ecode2 = SWIG_AsVal_double(obj1, &val2);
26527 if (!SWIG_IsOK(ecode2)) {
26528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26529 }
26530 arg2 = static_cast< wxDouble >(val2);
26531 ecode3 = SWIG_AsVal_double(obj2, &val3);
26532 if (!SWIG_IsOK(ecode3)) {
26533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26534 }
26535 arg3 = static_cast< wxDouble >(val3);
26536 ecode4 = SWIG_AsVal_double(obj3, &val4);
26537 if (!SWIG_IsOK(ecode4)) {
26538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26539 }
26540 arg4 = static_cast< wxDouble >(val4);
26541 ecode5 = SWIG_AsVal_double(obj4, &val5);
26542 if (!SWIG_IsOK(ecode5)) {
26543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26544 }
26545 arg5 = static_cast< wxDouble >(val5);
26546 ecode6 = SWIG_AsVal_double(obj5, &val6);
26547 if (!SWIG_IsOK(ecode6)) {
26548 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26549 }
26550 arg6 = static_cast< wxDouble >(val6);
26551 {
72ef6efb 26552 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26553 if (PyErr_Occurred()) SWIG_fail;
26554 }
26555 resultobj = SWIG_Py_Void();
26556 return resultobj;
26557fail:
26558 return NULL;
26559}
26560
26561
26562SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26563 PyObject *obj;
26564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26565 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26566 return SWIG_Py_Void();
26567}
26568
26569SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26570 PyObject *resultobj = 0;
26571 wxWindowDC *arg1 = 0 ;
26572 wxGCDC *result = 0 ;
26573 void *argp1 = 0 ;
26574 int res1 = 0 ;
26575 PyObject * obj0 = 0 ;
26576 char * kwnames[] = {
26577 (char *) "dc", NULL
26578 };
26579
26580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26581 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26582 if (!SWIG_IsOK(res1)) {
26583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26584 }
26585 if (!argp1) {
26586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26587 }
26588 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26589 {
26590 if (!wxPyCheckForApp()) SWIG_fail;
26591 PyThreadState* __tstate = wxPyBeginAllowThreads();
26592 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26593 wxPyEndAllowThreads(__tstate);
26594 if (PyErr_Occurred()) SWIG_fail;
26595 }
26596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26597 return resultobj;
26598fail:
26599 return NULL;
26600}
26601
26602
26603SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26604 PyObject *resultobj = 0;
26605 wxGCDC *arg1 = (wxGCDC *) 0 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 PyObject *swig_obj[1] ;
26609
26610 if (!args) SWIG_fail;
26611 swig_obj[0] = args;
26612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26613 if (!SWIG_IsOK(res1)) {
26614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26615 }
26616 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26617 {
72ef6efb
RD
26618 delete arg1;
26619
72ef6efb
RD
26620 if (PyErr_Occurred()) SWIG_fail;
26621 }
26622 resultobj = SWIG_Py_Void();
26623 return resultobj;
26624fail:
26625 return NULL;
26626}
26627
26628
0a27f394 26629SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26630 PyObject *resultobj = 0;
26631 wxGCDC *arg1 = (wxGCDC *) 0 ;
26632 wxGraphicsContext *result = 0 ;
26633 void *argp1 = 0 ;
26634 int res1 = 0 ;
26635 PyObject *swig_obj[1] ;
26636
26637 if (!args) SWIG_fail;
26638 swig_obj[0] = args;
26639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26640 if (!SWIG_IsOK(res1)) {
0a27f394 26641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
26642 }
26643 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26644 {
0a27f394 26645 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
26646 if (PyErr_Occurred()) SWIG_fail;
26647 }
26648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26649 return resultobj;
26650fail:
26651 return NULL;
26652}
26653
26654
0a27f394
RD
26655SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26656 PyObject *resultobj = 0;
26657 wxGCDC *arg1 = (wxGCDC *) 0 ;
26658 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 void *argp2 = 0 ;
26662 int res2 = 0 ;
26663 PyObject * obj0 = 0 ;
26664 PyObject * obj1 = 0 ;
26665 char * kwnames[] = {
26666 (char *) "self",(char *) "ctx", NULL
26667 };
26668
26669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
26670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26671 if (!SWIG_IsOK(res1)) {
26672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26673 }
26674 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26675 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26676 if (!SWIG_IsOK(res2)) {
26677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
26678 }
26679 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
26680 {
26681 (arg1)->SetGraphicsContext(arg2);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = SWIG_Py_Void();
26685 return resultobj;
26686fail:
26687 return NULL;
26688}
26689
26690
72ef6efb
RD
26691SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26692 PyObject *obj;
26693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26694 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26695 return SWIG_Py_Void();
26696}
26697
26698SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26699 return SWIG_Python_InitShadowInstance(args);
26700}
26701
b39fe951
RD
26702SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26703 PyObject *resultobj = 0;
26704 wxOverlay *result = 0 ;
26705
26706 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26707 {
26708 PyThreadState* __tstate = wxPyBeginAllowThreads();
26709 result = (wxOverlay *)new wxOverlay();
26710 wxPyEndAllowThreads(__tstate);
26711 if (PyErr_Occurred()) SWIG_fail;
26712 }
26713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26714 return resultobj;
26715fail:
26716 return NULL;
26717}
26718
26719
26720SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26721 PyObject *resultobj = 0;
26722 wxOverlay *arg1 = (wxOverlay *) 0 ;
26723 void *argp1 = 0 ;
26724 int res1 = 0 ;
26725 PyObject *swig_obj[1] ;
26726
26727 if (!args) SWIG_fail;
26728 swig_obj[0] = args;
26729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26730 if (!SWIG_IsOK(res1)) {
26731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26732 }
26733 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26734 {
26735 PyThreadState* __tstate = wxPyBeginAllowThreads();
26736 delete arg1;
26737
26738 wxPyEndAllowThreads(__tstate);
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 resultobj = SWIG_Py_Void();
26742 return resultobj;
26743fail:
26744 return NULL;
26745}
26746
26747
26748SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26749 PyObject *resultobj = 0;
26750 wxOverlay *arg1 = (wxOverlay *) 0 ;
26751 void *argp1 = 0 ;
26752 int res1 = 0 ;
26753 PyObject *swig_obj[1] ;
26754
26755 if (!args) SWIG_fail;
26756 swig_obj[0] = args;
26757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26758 if (!SWIG_IsOK(res1)) {
26759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26760 }
26761 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26762 {
26763 PyThreadState* __tstate = wxPyBeginAllowThreads();
26764 (arg1)->Reset();
26765 wxPyEndAllowThreads(__tstate);
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
26768 resultobj = SWIG_Py_Void();
26769 return resultobj;
26770fail:
26771 return NULL;
26772}
26773
26774
26775SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26776 PyObject *obj;
26777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26778 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26779 return SWIG_Py_Void();
26780}
26781
26782SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26783 return SWIG_Python_InitShadowInstance(args);
26784}
26785
26786SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26787 PyObject *resultobj = 0;
26788 wxOverlay *arg1 = 0 ;
26789 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26790 int arg3 ;
26791 int arg4 ;
26792 int arg5 ;
26793 int arg6 ;
26794 wxDCOverlay *result = 0 ;
26795 void *argp1 = 0 ;
26796 int res1 = 0 ;
26797 void *argp2 = 0 ;
26798 int res2 = 0 ;
26799 int val3 ;
26800 int ecode3 = 0 ;
26801 int val4 ;
26802 int ecode4 = 0 ;
26803 int val5 ;
26804 int ecode5 = 0 ;
26805 int val6 ;
26806 int ecode6 = 0 ;
26807
26808 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26810 if (!SWIG_IsOK(res1)) {
26811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26812 }
26813 if (!argp1) {
26814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26815 }
26816 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26817 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26818 if (!SWIG_IsOK(res2)) {
26819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26820 }
26821 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26822 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26823 if (!SWIG_IsOK(ecode3)) {
26824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26825 }
26826 arg3 = static_cast< int >(val3);
26827 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26828 if (!SWIG_IsOK(ecode4)) {
26829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26830 }
26831 arg4 = static_cast< int >(val4);
26832 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26833 if (!SWIG_IsOK(ecode5)) {
26834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26835 }
26836 arg5 = static_cast< int >(val5);
26837 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26838 if (!SWIG_IsOK(ecode6)) {
26839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26840 }
26841 arg6 = static_cast< int >(val6);
26842 {
26843 PyThreadState* __tstate = wxPyBeginAllowThreads();
26844 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26845 wxPyEndAllowThreads(__tstate);
26846 if (PyErr_Occurred()) SWIG_fail;
26847 }
26848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26849 return resultobj;
26850fail:
26851 return NULL;
26852}
26853
26854
26855SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26856 PyObject *resultobj = 0;
26857 wxOverlay *arg1 = 0 ;
26858 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26859 wxDCOverlay *result = 0 ;
26860 void *argp1 = 0 ;
26861 int res1 = 0 ;
26862 void *argp2 = 0 ;
26863 int res2 = 0 ;
26864
26865 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26867 if (!SWIG_IsOK(res1)) {
26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26869 }
26870 if (!argp1) {
26871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26872 }
26873 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26874 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26875 if (!SWIG_IsOK(res2)) {
26876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26877 }
26878 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26879 {
26880 PyThreadState* __tstate = wxPyBeginAllowThreads();
26881 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26882 wxPyEndAllowThreads(__tstate);
26883 if (PyErr_Occurred()) SWIG_fail;
26884 }
26885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26886 return resultobj;
26887fail:
26888 return NULL;
26889}
26890
26891
26892SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26893 int argc;
26894 PyObject *argv[7];
26895
26896 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26897 --argc;
26898 if (argc == 2) {
26899 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26900 }
26901 if (argc == 6) {
26902 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26903 }
26904
26905fail:
26906 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26907 return NULL;
26908}
26909
26910
26911SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26912 PyObject *resultobj = 0;
26913 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26914 void *argp1 = 0 ;
26915 int res1 = 0 ;
26916 PyObject *swig_obj[1] ;
26917
26918 if (!args) SWIG_fail;
26919 swig_obj[0] = args;
26920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26921 if (!SWIG_IsOK(res1)) {
26922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26923 }
26924 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26925 {
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 delete arg1;
26928
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_Py_Void();
26933 return resultobj;
26934fail:
26935 return NULL;
26936}
26937
26938
26939SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26940 PyObject *resultobj = 0;
26941 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26942 void *argp1 = 0 ;
26943 int res1 = 0 ;
26944 PyObject *swig_obj[1] ;
26945
26946 if (!args) SWIG_fail;
26947 swig_obj[0] = args;
26948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26951 }
26952 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 (arg1)->Clear();
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_Py_Void();
26960 return resultobj;
26961fail:
26962 return NULL;
26963}
26964
26965
26966SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26967 PyObject *obj;
26968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26969 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26970 return SWIG_Py_Void();
26971}
26972
26973SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26974 return SWIG_Python_InitShadowInstance(args);
26975}
26976
72ef6efb
RD
26977SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26978 PyObject *resultobj = 0;
26979 int arg1 ;
26980 int arg2 ;
26981 int arg3 = (int) true ;
26982 int arg4 = (int) 1 ;
26983 wxImageList *result = 0 ;
26984 int val1 ;
26985 int ecode1 = 0 ;
26986 int val2 ;
26987 int ecode2 = 0 ;
26988 int val3 ;
26989 int ecode3 = 0 ;
26990 int val4 ;
26991 int ecode4 = 0 ;
26992 PyObject * obj0 = 0 ;
26993 PyObject * obj1 = 0 ;
26994 PyObject * obj2 = 0 ;
26995 PyObject * obj3 = 0 ;
26996 char * kwnames[] = {
26997 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26998 };
26999
27000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27001 ecode1 = SWIG_AsVal_int(obj0, &val1);
27002 if (!SWIG_IsOK(ecode1)) {
27003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27004 }
27005 arg1 = static_cast< int >(val1);
27006 ecode2 = SWIG_AsVal_int(obj1, &val2);
27007 if (!SWIG_IsOK(ecode2)) {
27008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27009 }
27010 arg2 = static_cast< int >(val2);
27011 if (obj2) {
27012 ecode3 = SWIG_AsVal_int(obj2, &val3);
27013 if (!SWIG_IsOK(ecode3)) {
27014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27015 }
27016 arg3 = static_cast< int >(val3);
27017 }
27018 if (obj3) {
27019 ecode4 = SWIG_AsVal_int(obj3, &val4);
27020 if (!SWIG_IsOK(ecode4)) {
27021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27022 }
27023 arg4 = static_cast< int >(val4);
27024 }
27025 {
27026 if (!wxPyCheckForApp()) SWIG_fail;
27027 PyThreadState* __tstate = wxPyBeginAllowThreads();
27028 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27029 wxPyEndAllowThreads(__tstate);
27030 if (PyErr_Occurred()) SWIG_fail;
27031 }
e02c0a13 27032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
27033 return resultobj;
27034fail:
27035 return NULL;
27036}
27037
27038
27039SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27040 PyObject *resultobj = 0;
27041 wxImageList *arg1 = (wxImageList *) 0 ;
27042 void *argp1 = 0 ;
27043 int res1 = 0 ;
27044 PyObject *swig_obj[1] ;
27045
27046 if (!args) SWIG_fail;
27047 swig_obj[0] = args;
27048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27049 if (!SWIG_IsOK(res1)) {
27050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27051 }
27052 arg1 = reinterpret_cast< wxImageList * >(argp1);
27053 {
27054 PyThreadState* __tstate = wxPyBeginAllowThreads();
27055 delete arg1;
27056
27057 wxPyEndAllowThreads(__tstate);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 resultobj = SWIG_Py_Void();
27061 return resultobj;
27062fail:
27063 return NULL;
27064}
27065
27066
27067SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27068 PyObject *resultobj = 0;
27069 wxImageList *arg1 = (wxImageList *) 0 ;
27070 wxBitmap *arg2 = 0 ;
27071 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27072 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27073 int result;
27074 void *argp1 = 0 ;
27075 int res1 = 0 ;
27076 void *argp2 = 0 ;
27077 int res2 = 0 ;
27078 void *argp3 = 0 ;
27079 int res3 = 0 ;
27080 PyObject * obj0 = 0 ;
27081 PyObject * obj1 = 0 ;
27082 PyObject * obj2 = 0 ;
27083 char * kwnames[] = {
27084 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27085 };
27086
27087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27089 if (!SWIG_IsOK(res1)) {
27090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27091 }
27092 arg1 = reinterpret_cast< wxImageList * >(argp1);
27093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27094 if (!SWIG_IsOK(res2)) {
27095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27096 }
27097 if (!argp2) {
27098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27099 }
27100 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27101 if (obj2) {
27102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27103 if (!SWIG_IsOK(res3)) {
27104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27105 }
27106 if (!argp3) {
27107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27108 }
27109 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27110 }
27111 {
27112 PyThreadState* __tstate = wxPyBeginAllowThreads();
27113 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27114 wxPyEndAllowThreads(__tstate);
27115 if (PyErr_Occurred()) SWIG_fail;
27116 }
27117 resultobj = SWIG_From_int(static_cast< int >(result));
27118 return resultobj;
27119fail:
27120 return NULL;
27121}
27122
27123
27124SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27125 PyObject *resultobj = 0;
27126 wxImageList *arg1 = (wxImageList *) 0 ;
27127 wxBitmap *arg2 = 0 ;
27128 wxColour *arg3 = 0 ;
27129 int result;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 void *argp2 = 0 ;
27133 int res2 = 0 ;
27134 wxColour temp3 ;
27135 PyObject * obj0 = 0 ;
27136 PyObject * obj1 = 0 ;
27137 PyObject * obj2 = 0 ;
27138 char * kwnames[] = {
27139 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27140 };
27141
27142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27144 if (!SWIG_IsOK(res1)) {
27145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27146 }
27147 arg1 = reinterpret_cast< wxImageList * >(argp1);
27148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27149 if (!SWIG_IsOK(res2)) {
27150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27151 }
27152 if (!argp2) {
27153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27154 }
27155 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27156 {
27157 arg3 = &temp3;
27158 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27159 }
27160 {
27161 PyThreadState* __tstate = wxPyBeginAllowThreads();
27162 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27163 wxPyEndAllowThreads(__tstate);
27164 if (PyErr_Occurred()) SWIG_fail;
27165 }
27166 resultobj = SWIG_From_int(static_cast< int >(result));
27167 return resultobj;
27168fail:
27169 return NULL;
27170}
27171
27172
27173SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27174 PyObject *resultobj = 0;
27175 wxImageList *arg1 = (wxImageList *) 0 ;
27176 wxIcon *arg2 = 0 ;
27177 int result;
27178 void *argp1 = 0 ;
27179 int res1 = 0 ;
27180 void *argp2 = 0 ;
27181 int res2 = 0 ;
27182 PyObject * obj0 = 0 ;
27183 PyObject * obj1 = 0 ;
27184 char * kwnames[] = {
27185 (char *) "self",(char *) "icon", NULL
27186 };
27187
27188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27190 if (!SWIG_IsOK(res1)) {
27191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27192 }
0085ce49
RD
27193 arg1 = reinterpret_cast< wxImageList * >(argp1);
27194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27195 if (!SWIG_IsOK(res2)) {
27196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27197 }
27198 if (!argp2) {
27199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27200 }
27201 arg2 = reinterpret_cast< wxIcon * >(argp2);
27202 {
27203 PyThreadState* __tstate = wxPyBeginAllowThreads();
27204 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27205 wxPyEndAllowThreads(__tstate);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
27208 resultobj = SWIG_From_int(static_cast< int >(result));
27209 return resultobj;
27210fail:
27211 return NULL;
27212}
27213
27214
27215SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27216 PyObject *resultobj = 0;
27217 wxImageList *arg1 = (wxImageList *) 0 ;
27218 int arg2 ;
27219 SwigValueWrapper<wxBitmap > result;
27220 void *argp1 = 0 ;
27221 int res1 = 0 ;
27222 int val2 ;
27223 int ecode2 = 0 ;
27224 PyObject * obj0 = 0 ;
27225 PyObject * obj1 = 0 ;
27226 char * kwnames[] = {
27227 (char *) "self",(char *) "index", NULL
27228 };
27229
27230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27232 if (!SWIG_IsOK(res1)) {
27233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27234 }
27235 arg1 = reinterpret_cast< wxImageList * >(argp1);
27236 ecode2 = SWIG_AsVal_int(obj1, &val2);
27237 if (!SWIG_IsOK(ecode2)) {
27238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27239 }
27240 arg2 = static_cast< int >(val2);
27241 {
27242 PyThreadState* __tstate = wxPyBeginAllowThreads();
27243 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27244 wxPyEndAllowThreads(__tstate);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 }
27247 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27248 return resultobj;
27249fail:
27250 return NULL;
27251}
27252
27253
27254SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27255 PyObject *resultobj = 0;
27256 wxImageList *arg1 = (wxImageList *) 0 ;
27257 int arg2 ;
27258 wxIcon result;
27259 void *argp1 = 0 ;
27260 int res1 = 0 ;
27261 int val2 ;
27262 int ecode2 = 0 ;
27263 PyObject * obj0 = 0 ;
27264 PyObject * obj1 = 0 ;
27265 char * kwnames[] = {
27266 (char *) "self",(char *) "index", NULL
27267 };
27268
27269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27271 if (!SWIG_IsOK(res1)) {
27272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27273 }
27274 arg1 = reinterpret_cast< wxImageList * >(argp1);
27275 ecode2 = SWIG_AsVal_int(obj1, &val2);
27276 if (!SWIG_IsOK(ecode2)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27278 }
27279 arg2 = static_cast< int >(val2);
27280 {
27281 PyThreadState* __tstate = wxPyBeginAllowThreads();
27282 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27283 wxPyEndAllowThreads(__tstate);
27284 if (PyErr_Occurred()) SWIG_fail;
27285 }
27286 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27287 return resultobj;
27288fail:
27289 return NULL;
27290}
27291
27292
27293SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27294 PyObject *resultobj = 0;
27295 wxImageList *arg1 = (wxImageList *) 0 ;
27296 int arg2 ;
27297 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
27298 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27299 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
27300 bool result;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303 int val2 ;
27304 int ecode2 = 0 ;
27305 void *argp3 = 0 ;
27306 int res3 = 0 ;
01f6b6d3
RD
27307 void *argp4 = 0 ;
27308 int res4 = 0 ;
0085ce49
RD
27309 PyObject * obj0 = 0 ;
27310 PyObject * obj1 = 0 ;
27311 PyObject * obj2 = 0 ;
01f6b6d3 27312 PyObject * obj3 = 0 ;
0085ce49 27313 char * kwnames[] = {
01f6b6d3 27314 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
27315 };
27316
01f6b6d3 27317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
27318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27319 if (!SWIG_IsOK(res1)) {
27320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27321 }
27322 arg1 = reinterpret_cast< wxImageList * >(argp1);
27323 ecode2 = SWIG_AsVal_int(obj1, &val2);
27324 if (!SWIG_IsOK(ecode2)) {
27325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27326 }
27327 arg2 = static_cast< int >(val2);
27328 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27329 if (!SWIG_IsOK(res3)) {
27330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27331 }
27332 if (!argp3) {
27333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27334 }
27335 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
27336 if (obj3) {
27337 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27338 if (!SWIG_IsOK(res4)) {
27339 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27340 }
27341 if (!argp4) {
27342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27343 }
27344 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27345 }
0085ce49
RD
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 27348 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
27349 wxPyEndAllowThreads(__tstate);
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 {
27353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27354 }
27355 return resultobj;
27356fail:
27357 return NULL;
27358}
27359
27360
27361SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj = 0;
27363 wxImageList *arg1 = (wxImageList *) 0 ;
27364 int arg2 ;
27365 wxDC *arg3 = 0 ;
27366 int arg4 ;
27367 int arg5 ;
27368 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27369 bool arg7 = (bool) (bool)false ;
27370 bool result;
27371 void *argp1 = 0 ;
27372 int res1 = 0 ;
27373 int val2 ;
27374 int ecode2 = 0 ;
27375 void *argp3 = 0 ;
27376 int res3 = 0 ;
27377 int val4 ;
27378 int ecode4 = 0 ;
27379 int val5 ;
27380 int ecode5 = 0 ;
27381 int val6 ;
27382 int ecode6 = 0 ;
27383 bool val7 ;
27384 int ecode7 = 0 ;
27385 PyObject * obj0 = 0 ;
27386 PyObject * obj1 = 0 ;
27387 PyObject * obj2 = 0 ;
27388 PyObject * obj3 = 0 ;
27389 PyObject * obj4 = 0 ;
27390 PyObject * obj5 = 0 ;
27391 PyObject * obj6 = 0 ;
27392 char * kwnames[] = {
27393 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27394 };
27395
27396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27398 if (!SWIG_IsOK(res1)) {
27399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27400 }
27401 arg1 = reinterpret_cast< wxImageList * >(argp1);
27402 ecode2 = SWIG_AsVal_int(obj1, &val2);
27403 if (!SWIG_IsOK(ecode2)) {
27404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27405 }
27406 arg2 = static_cast< int >(val2);
27407 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27408 if (!SWIG_IsOK(res3)) {
27409 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27410 }
27411 if (!argp3) {
27412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27413 }
27414 arg3 = reinterpret_cast< wxDC * >(argp3);
27415 ecode4 = SWIG_AsVal_int(obj3, &val4);
27416 if (!SWIG_IsOK(ecode4)) {
27417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27418 }
27419 arg4 = static_cast< int >(val4);
27420 ecode5 = SWIG_AsVal_int(obj4, &val5);
27421 if (!SWIG_IsOK(ecode5)) {
27422 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27423 }
27424 arg5 = static_cast< int >(val5);
27425 if (obj5) {
27426 ecode6 = SWIG_AsVal_int(obj5, &val6);
27427 if (!SWIG_IsOK(ecode6)) {
27428 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27429 }
27430 arg6 = static_cast< int >(val6);
27431 }
27432 if (obj6) {
27433 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27434 if (!SWIG_IsOK(ecode7)) {
27435 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27436 }
27437 arg7 = static_cast< bool >(val7);
27438 }
27439 {
27440 PyThreadState* __tstate = wxPyBeginAllowThreads();
27441 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27442 wxPyEndAllowThreads(__tstate);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 {
27446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27447 }
27448 return resultobj;
27449fail:
27450 return NULL;
27451}
27452
27453
27454SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27455 PyObject *resultobj = 0;
27456 wxImageList *arg1 = (wxImageList *) 0 ;
27457 int result;
27458 void *argp1 = 0 ;
27459 int res1 = 0 ;
27460 PyObject *swig_obj[1] ;
27461
27462 if (!args) SWIG_fail;
27463 swig_obj[0] = args;
27464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27465 if (!SWIG_IsOK(res1)) {
27466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27467 }
27468 arg1 = reinterpret_cast< wxImageList * >(argp1);
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (int)(arg1)->GetImageCount();
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 resultobj = SWIG_From_int(static_cast< int >(result));
27476 return resultobj;
27477fail:
27478 return NULL;
27479}
27480
27481
27482SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27483 PyObject *resultobj = 0;
27484 wxImageList *arg1 = (wxImageList *) 0 ;
27485 int arg2 ;
27486 bool result;
27487 void *argp1 = 0 ;
27488 int res1 = 0 ;
27489 int val2 ;
27490 int ecode2 = 0 ;
27491 PyObject * obj0 = 0 ;
27492 PyObject * obj1 = 0 ;
27493 char * kwnames[] = {
27494 (char *) "self",(char *) "index", NULL
27495 };
27496
27497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27499 if (!SWIG_IsOK(res1)) {
27500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27501 }
27502 arg1 = reinterpret_cast< wxImageList * >(argp1);
27503 ecode2 = SWIG_AsVal_int(obj1, &val2);
27504 if (!SWIG_IsOK(ecode2)) {
27505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27506 }
27507 arg2 = static_cast< int >(val2);
27508 {
27509 PyThreadState* __tstate = wxPyBeginAllowThreads();
27510 result = (bool)(arg1)->Remove(arg2);
27511 wxPyEndAllowThreads(__tstate);
27512 if (PyErr_Occurred()) SWIG_fail;
27513 }
27514 {
27515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27516 }
27517 return resultobj;
27518fail:
27519 return NULL;
27520}
27521
27522
27523SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27524 PyObject *resultobj = 0;
27525 wxImageList *arg1 = (wxImageList *) 0 ;
27526 bool result;
27527 void *argp1 = 0 ;
27528 int res1 = 0 ;
27529 PyObject *swig_obj[1] ;
27530
27531 if (!args) SWIG_fail;
27532 swig_obj[0] = args;
27533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27534 if (!SWIG_IsOK(res1)) {
27535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27536 }
27537 arg1 = reinterpret_cast< wxImageList * >(argp1);
27538 {
27539 PyThreadState* __tstate = wxPyBeginAllowThreads();
27540 result = (bool)(arg1)->RemoveAll();
27541 wxPyEndAllowThreads(__tstate);
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
27544 {
27545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27546 }
27547 return resultobj;
27548fail:
27549 return NULL;
27550}
27551
27552
27553SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27554 PyObject *resultobj = 0;
27555 wxImageList *arg1 = (wxImageList *) 0 ;
27556 int arg2 ;
27557 int *arg3 = 0 ;
27558 int *arg4 = 0 ;
27559 void *argp1 = 0 ;
27560 int res1 = 0 ;
27561 int val2 ;
27562 int ecode2 = 0 ;
27563 int temp3 ;
27564 int res3 = SWIG_TMPOBJ ;
27565 int temp4 ;
27566 int res4 = SWIG_TMPOBJ ;
27567 PyObject * obj0 = 0 ;
27568 PyObject * obj1 = 0 ;
27569 char * kwnames[] = {
27570 (char *) "self",(char *) "index", NULL
27571 };
27572
27573 arg3 = &temp3;
27574 arg4 = &temp4;
27575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27577 if (!SWIG_IsOK(res1)) {
27578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27579 }
27580 arg1 = reinterpret_cast< wxImageList * >(argp1);
27581 ecode2 = SWIG_AsVal_int(obj1, &val2);
27582 if (!SWIG_IsOK(ecode2)) {
27583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27584 }
27585 arg2 = static_cast< int >(val2);
27586 {
27587 PyThreadState* __tstate = wxPyBeginAllowThreads();
27588 (arg1)->GetSize(arg2,*arg3,*arg4);
27589 wxPyEndAllowThreads(__tstate);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 resultobj = SWIG_Py_Void();
27593 if (SWIG_IsTmpObj(res3)) {
27594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27595 } else {
27596 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27598 }
27599 if (SWIG_IsTmpObj(res4)) {
27600 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27601 } else {
27602 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27603 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27604 }
27605 return resultobj;
27606fail:
27607 return NULL;
27608}
27609
27610
27611SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27612 PyObject *obj;
27613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27614 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27615 return SWIG_Py_Void();
27616}
27617
27618SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27619 return SWIG_Python_InitShadowInstance(args);
27620}
27621
50efceee
RD
27622SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27623 PyObject *resultobj = 0;
27624 wxStockGDI *result = 0 ;
0085ce49 27625
50efceee
RD
27626 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27627 {
27628 PyThreadState* __tstate = wxPyBeginAllowThreads();
27629 result = (wxStockGDI *)new wxStockGDI();
27630 wxPyEndAllowThreads(__tstate);
27631 if (PyErr_Occurred()) SWIG_fail;
27632 }
27633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27634 return resultobj;
27635fail:
27636 return NULL;
0085ce49
RD
27637}
27638
27639
50efceee
RD
27640SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27641 PyObject *resultobj = 0;
27642 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 PyObject *swig_obj[1] ;
0085ce49 27646
50efceee
RD
27647 if (!args) SWIG_fail;
27648 swig_obj[0] = args;
27649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27650 if (!SWIG_IsOK(res1)) {
27651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27652 }
27653 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27654 {
27655 PyThreadState* __tstate = wxPyBeginAllowThreads();
27656 delete arg1;
27657
27658 wxPyEndAllowThreads(__tstate);
27659 if (PyErr_Occurred()) SWIG_fail;
27660 }
27661 resultobj = SWIG_Py_Void();
27662 return resultobj;
27663fail:
27664 return NULL;
0085ce49
RD
27665}
27666
27667
50efceee
RD
27668SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27669 PyObject *resultobj = 0;
0085ce49 27670
50efceee
RD
27671 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27672 {
27673 PyThreadState* __tstate = wxPyBeginAllowThreads();
27674 wxStockGDI::DeleteAll();
27675 wxPyEndAllowThreads(__tstate);
27676 if (PyErr_Occurred()) SWIG_fail;
27677 }
27678 resultobj = SWIG_Py_Void();
27679 return resultobj;
27680fail:
27681 return NULL;
0085ce49
RD
27682}
27683
27684
50efceee
RD
27685SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27686 PyObject *resultobj = 0;
27687 wxStockGDI *result = 0 ;
0085ce49 27688
50efceee
RD
27689 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27690 {
27691 PyThreadState* __tstate = wxPyBeginAllowThreads();
27692 {
27693 wxStockGDI &_result_ref = wxStockGDI::instance();
27694 result = (wxStockGDI *) &_result_ref;
27695 }
27696 wxPyEndAllowThreads(__tstate);
27697 if (PyErr_Occurred()) SWIG_fail;
27698 }
27699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27700 return resultobj;
27701fail:
27702 return NULL;
0085ce49
RD
27703}
27704
27705
50efceee
RD
27706SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27707 PyObject *resultobj = 0;
27708 wxStockGDI::Item arg1 ;
27709 wxBrush *result = 0 ;
27710 int val1 ;
27711 int ecode1 = 0 ;
27712 PyObject * obj0 = 0 ;
27713 char * kwnames[] = {
27714 (char *) "item", NULL
27715 };
27716
27717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27718 ecode1 = SWIG_AsVal_int(obj0, &val1);
27719 if (!SWIG_IsOK(ecode1)) {
27720 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27721 }
27722 arg1 = static_cast< wxStockGDI::Item >(val1);
27723 {
27724 PyThreadState* __tstate = wxPyBeginAllowThreads();
27725 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27726 wxPyEndAllowThreads(__tstate);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 }
27729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27730 return resultobj;
27731fail:
27732 return NULL;
0085ce49
RD
27733}
27734
27735
50efceee
RD
27736SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27737 PyObject *resultobj = 0;
27738 wxStockGDI::Item arg1 ;
27739 wxColour *result = 0 ;
27740 int val1 ;
27741 int ecode1 = 0 ;
27742 PyObject * obj0 = 0 ;
27743 char * kwnames[] = {
27744 (char *) "item", NULL
27745 };
0085ce49 27746
50efceee
RD
27747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27748 ecode1 = SWIG_AsVal_int(obj0, &val1);
27749 if (!SWIG_IsOK(ecode1)) {
27750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27751 }
27752 arg1 = static_cast< wxStockGDI::Item >(val1);
27753 {
27754 PyThreadState* __tstate = wxPyBeginAllowThreads();
27755 result = (wxColour *)wxStockGDI::GetColour(arg1);
27756 wxPyEndAllowThreads(__tstate);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27760 return resultobj;
27761fail:
27762 return NULL;
0085ce49
RD
27763}
27764
27765
50efceee
RD
27766SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj = 0;
27768 wxStockGDI::Item arg1 ;
27769 wxCursor *result = 0 ;
27770 int val1 ;
27771 int ecode1 = 0 ;
27772 PyObject * obj0 = 0 ;
27773 char * kwnames[] = {
27774 (char *) "item", NULL
27775 };
27776
27777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27778 ecode1 = SWIG_AsVal_int(obj0, &val1);
27779 if (!SWIG_IsOK(ecode1)) {
27780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27781 }
27782 arg1 = static_cast< wxStockGDI::Item >(val1);
27783 {
27784 PyThreadState* __tstate = wxPyBeginAllowThreads();
27785 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27786 wxPyEndAllowThreads(__tstate);
27787 if (PyErr_Occurred()) SWIG_fail;
27788 }
27789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27790 return resultobj;
27791fail:
27792 return NULL;
0085ce49
RD
27793}
27794
27795
50efceee
RD
27796SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27797 PyObject *resultobj = 0;
27798 wxStockGDI::Item arg1 ;
27799 wxPen *result = 0 ;
27800 int val1 ;
27801 int ecode1 = 0 ;
27802 PyObject * obj0 = 0 ;
27803 char * kwnames[] = {
27804 (char *) "item", NULL
27805 };
27806
27807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27808 ecode1 = SWIG_AsVal_int(obj0, &val1);
27809 if (!SWIG_IsOK(ecode1)) {
27810 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27811 }
27812 arg1 = static_cast< wxStockGDI::Item >(val1);
27813 {
27814 PyThreadState* __tstate = wxPyBeginAllowThreads();
27815 result = (wxPen *)wxStockGDI::GetPen(arg1);
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27820 return resultobj;
27821fail:
27822 return NULL;
0085ce49
RD
27823}
27824
27825
50efceee
RD
27826SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27827 PyObject *resultobj = 0;
27828 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27829 wxStockGDI::Item arg2 ;
27830 wxFont *result = 0 ;
27831 void *argp1 = 0 ;
27832 int res1 = 0 ;
27833 int val2 ;
27834 int ecode2 = 0 ;
27835 PyObject * obj0 = 0 ;
27836 PyObject * obj1 = 0 ;
27837 char * kwnames[] = {
27838 (char *) "self",(char *) "item", NULL
27839 };
0085ce49 27840
50efceee
RD
27841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27843 if (!SWIG_IsOK(res1)) {
27844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27845 }
27846 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27847 ecode2 = SWIG_AsVal_int(obj1, &val2);
27848 if (!SWIG_IsOK(ecode2)) {
27849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27850 }
27851 arg2 = static_cast< wxStockGDI::Item >(val2);
27852 {
27853 PyThreadState* __tstate = wxPyBeginAllowThreads();
27854 result = (wxFont *)(arg1)->GetFont(arg2);
27855 wxPyEndAllowThreads(__tstate);
27856 if (PyErr_Occurred()) SWIG_fail;
27857 }
27858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27859 return resultobj;
27860fail:
27861 return NULL;
0085ce49
RD
27862}
27863
27864
50efceee
RD
27865SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27866 PyObject *obj;
27867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27868 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27869 return SWIG_Py_Void();
0085ce49
RD
27870}
27871
50efceee
RD
27872SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27873 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
27874}
27875
0085ce49
RD
27876SWIGINTERN int NullBitmap_set(PyObject *) {
27877 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27878 return 1;
27879}
27880
27881
27882SWIGINTERN PyObject *NullBitmap_get(void) {
27883 PyObject *pyobj = 0;
27884
27885 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27886 return pyobj;
27887}
27888
27889
27890SWIGINTERN int NullIcon_set(PyObject *) {
27891 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27892 return 1;
27893}
27894
27895
27896SWIGINTERN PyObject *NullIcon_get(void) {
27897 PyObject *pyobj = 0;
27898
27899 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27900 return pyobj;
27901}
27902
27903
27904SWIGINTERN int NullCursor_set(PyObject *) {
27905 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27906 return 1;
27907}
27908
27909
27910SWIGINTERN PyObject *NullCursor_get(void) {
27911 PyObject *pyobj = 0;
27912
27913 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27914 return pyobj;
27915}
27916
27917
27918SWIGINTERN int NullPen_set(PyObject *) {
27919 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27920 return 1;
27921}
27922
27923
27924SWIGINTERN PyObject *NullPen_get(void) {
27925 PyObject *pyobj = 0;
27926
27927 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27928 return pyobj;
27929}
27930
27931
27932SWIGINTERN int NullBrush_set(PyObject *) {
27933 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27934 return 1;
27935}
27936
27937
27938SWIGINTERN PyObject *NullBrush_get(void) {
27939 PyObject *pyobj = 0;
27940
27941 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27942 return pyobj;
27943}
27944
27945
27946SWIGINTERN int NullPalette_set(PyObject *) {
27947 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27948 return 1;
27949}
27950
27951
27952SWIGINTERN PyObject *NullPalette_get(void) {
27953 PyObject *pyobj = 0;
27954
27955 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27956 return pyobj;
27957}
27958
27959
27960SWIGINTERN int NullFont_set(PyObject *) {
27961 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27962 return 1;
27963}
27964
27965
27966SWIGINTERN PyObject *NullFont_get(void) {
27967 PyObject *pyobj = 0;
27968
27969 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27970 return pyobj;
27971}
27972
27973
27974SWIGINTERN int NullColour_set(PyObject *) {
27975 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27976 return 1;
27977}
27978
27979
27980SWIGINTERN PyObject *NullColour_get(void) {
27981 PyObject *pyobj = 0;
27982
27983 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27984 return pyobj;
27985}
27986
27987
50efceee 27988SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 27989 PyObject *resultobj = 0;
50efceee
RD
27990 wxGDIObjListBase *result = 0 ;
27991
27992 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27996 wxPyEndAllowThreads(__tstate);
27997 if (PyErr_Occurred()) SWIG_fail;
27998 }
27999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28000 return resultobj;
28001fail:
28002 return NULL;
28003}
28004
28005
28006SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28007 PyObject *resultobj = 0;
28008 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
28009 void *argp1 = 0 ;
28010 int res1 = 0 ;
50efceee 28011 PyObject *swig_obj[1] ;
0085ce49 28012
50efceee
RD
28013 if (!args) SWIG_fail;
28014 swig_obj[0] = args;
28015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 28016 if (!SWIG_IsOK(res1)) {
50efceee 28017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 28018 }
50efceee 28019 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
28020 {
28021 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
28022 delete arg1;
28023
0085ce49
RD
28024 wxPyEndAllowThreads(__tstate);
28025 if (PyErr_Occurred()) SWIG_fail;
28026 }
28027 resultobj = SWIG_Py_Void();
28028 return resultobj;
28029fail:
28030 return NULL;
28031}
28032
28033
50efceee
RD
28034SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28035 PyObject *obj;
28036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28037 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28038 return SWIG_Py_Void();
28039}
28040
28041SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 return SWIG_Python_InitShadowInstance(args);
28043}
28044
0085ce49
RD
28045SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28046 PyObject *resultobj = 0;
28047 wxPenList *arg1 = (wxPenList *) 0 ;
28048 wxColour *arg2 = 0 ;
28049 int arg3 ;
28050 int arg4 ;
28051 wxPen *result = 0 ;
28052 void *argp1 = 0 ;
28053 int res1 = 0 ;
28054 wxColour temp2 ;
28055 int val3 ;
28056 int ecode3 = 0 ;
28057 int val4 ;
28058 int ecode4 = 0 ;
28059 PyObject * obj0 = 0 ;
28060 PyObject * obj1 = 0 ;
28061 PyObject * obj2 = 0 ;
28062 PyObject * obj3 = 0 ;
28063 char * kwnames[] = {
28064 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28065 };
28066
28067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28069 if (!SWIG_IsOK(res1)) {
28070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28071 }
28072 arg1 = reinterpret_cast< wxPenList * >(argp1);
28073 {
28074 arg2 = &temp2;
28075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28076 }
28077 ecode3 = SWIG_AsVal_int(obj2, &val3);
28078 if (!SWIG_IsOK(ecode3)) {
28079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28080 }
28081 arg3 = static_cast< int >(val3);
28082 ecode4 = SWIG_AsVal_int(obj3, &val4);
28083 if (!SWIG_IsOK(ecode4)) {
28084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28085 }
28086 arg4 = static_cast< int >(val4);
28087 {
28088 PyThreadState* __tstate = wxPyBeginAllowThreads();
28089 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28090 wxPyEndAllowThreads(__tstate);
28091 if (PyErr_Occurred()) SWIG_fail;
28092 }
28093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28094 return resultobj;
28095fail:
28096 return NULL;
28097}
28098
28099
50efceee 28100SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
28101 PyObject *resultobj = 0;
28102 wxPenList *arg1 = (wxPenList *) 0 ;
28103 wxPen *arg2 = (wxPen *) 0 ;
28104 void *argp1 = 0 ;
28105 int res1 = 0 ;
28106 void *argp2 = 0 ;
28107 int res2 = 0 ;
28108 PyObject * obj0 = 0 ;
28109 PyObject * obj1 = 0 ;
28110 char * kwnames[] = {
28111 (char *) "self",(char *) "pen", NULL
28112 };
28113
50efceee 28114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
28115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28116 if (!SWIG_IsOK(res1)) {
50efceee 28117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
28118 }
28119 arg1 = reinterpret_cast< wxPenList * >(argp1);
28120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28121 if (!SWIG_IsOK(res2)) {
50efceee 28122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
28123 }
28124 arg2 = reinterpret_cast< wxPen * >(argp2);
28125 {
28126 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28127 (arg1)->AddPen(arg2);
0085ce49
RD
28128 wxPyEndAllowThreads(__tstate);
28129 if (PyErr_Occurred()) SWIG_fail;
28130 }
28131 resultobj = SWIG_Py_Void();
28132 return resultobj;
28133fail:
28134 return NULL;
28135}
28136
28137
50efceee 28138SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
28139 PyObject *resultobj = 0;
28140 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 28141 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
28142 void *argp1 = 0 ;
28143 int res1 = 0 ;
50efceee
RD
28144 void *argp2 = 0 ;
28145 int res2 = 0 ;
28146 PyObject * obj0 = 0 ;
28147 PyObject * obj1 = 0 ;
28148 char * kwnames[] = {
28149 (char *) "self",(char *) "pen", NULL
28150 };
0085ce49 28151
50efceee
RD
28152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 28154 if (!SWIG_IsOK(res1)) {
50efceee 28155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
28156 }
28157 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
28158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28159 if (!SWIG_IsOK(res2)) {
28160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28161 }
28162 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
28163 {
28164 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28165 (arg1)->RemovePen(arg2);
0085ce49
RD
28166 wxPyEndAllowThreads(__tstate);
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
50efceee 28169 resultobj = SWIG_Py_Void();
0085ce49
RD
28170 return resultobj;
28171fail:
28172 return NULL;
28173}
28174
28175
28176SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28177 PyObject *obj;
28178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28179 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28180 return SWIG_Py_Void();
28181}
28182
50efceee
RD
28183SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28184 PyObject *resultobj = 0;
28185 wxBrushList *arg1 = (wxBrushList *) 0 ;
28186 wxColour *arg2 = 0 ;
28187 int arg3 = (int) wxSOLID ;
28188 wxBrush *result = 0 ;
28189 void *argp1 = 0 ;
28190 int res1 = 0 ;
28191 wxColour temp2 ;
28192 int val3 ;
28193 int ecode3 = 0 ;
28194 PyObject * obj0 = 0 ;
28195 PyObject * obj1 = 0 ;
28196 PyObject * obj2 = 0 ;
28197 char * kwnames[] = {
28198 (char *) "self",(char *) "colour",(char *) "style", NULL
28199 };
28200
28201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28203 if (!SWIG_IsOK(res1)) {
28204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28205 }
28206 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28207 {
28208 arg2 = &temp2;
28209 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28210 }
28211 if (obj2) {
28212 ecode3 = SWIG_AsVal_int(obj2, &val3);
28213 if (!SWIG_IsOK(ecode3)) {
28214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28215 }
28216 arg3 = static_cast< int >(val3);
28217 }
28218 {
28219 PyThreadState* __tstate = wxPyBeginAllowThreads();
28220 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28221 wxPyEndAllowThreads(__tstate);
28222 if (PyErr_Occurred()) SWIG_fail;
28223 }
28224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28225 return resultobj;
28226fail:
28227 return NULL;
28228}
28229
28230
0085ce49
RD
28231SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28232 PyObject *resultobj = 0;
28233 wxBrushList *arg1 = (wxBrushList *) 0 ;
28234 wxBrush *arg2 = (wxBrush *) 0 ;
28235 void *argp1 = 0 ;
28236 int res1 = 0 ;
28237 void *argp2 = 0 ;
28238 int res2 = 0 ;
28239 PyObject * obj0 = 0 ;
28240 PyObject * obj1 = 0 ;
28241 char * kwnames[] = {
28242 (char *) "self",(char *) "brush", NULL
28243 };
28244
28245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28247 if (!SWIG_IsOK(res1)) {
28248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28249 }
28250 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28252 if (!SWIG_IsOK(res2)) {
28253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28254 }
28255 arg2 = reinterpret_cast< wxBrush * >(argp2);
28256 {
28257 PyThreadState* __tstate = wxPyBeginAllowThreads();
28258 (arg1)->AddBrush(arg2);
28259 wxPyEndAllowThreads(__tstate);
28260 if (PyErr_Occurred()) SWIG_fail;
28261 }
28262 resultobj = SWIG_Py_Void();
28263 return resultobj;
28264fail:
28265 return NULL;
28266}
28267
28268
50efceee 28269SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
28270 PyObject *resultobj = 0;
28271 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 28272 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
28273 void *argp1 = 0 ;
28274 int res1 = 0 ;
50efceee
RD
28275 void *argp2 = 0 ;
28276 int res2 = 0 ;
28277 PyObject * obj0 = 0 ;
28278 PyObject * obj1 = 0 ;
28279 char * kwnames[] = {
28280 (char *) "self",(char *) "brush", NULL
28281 };
28282
28283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28285 if (!SWIG_IsOK(res1)) {
28286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28287 }
28288 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28290 if (!SWIG_IsOK(res2)) {
28291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28292 }
28293 arg2 = reinterpret_cast< wxBrush * >(argp2);
28294 {
28295 PyThreadState* __tstate = wxPyBeginAllowThreads();
28296 (arg1)->RemoveBrush(arg2);
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_Py_Void();
28301 return resultobj;
28302fail:
28303 return NULL;
28304}
28305
28306
28307SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *obj;
28309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28310 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28311 return SWIG_Py_Void();
28312}
28313
28314SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28315 PyObject *resultobj = 0;
28316 wxFontList *arg1 = (wxFontList *) 0 ;
28317 int arg2 ;
28318 int arg3 ;
28319 int arg4 ;
28320 int arg5 ;
28321 bool arg6 = (bool) false ;
28322 wxString const &arg7_defvalue = wxPyEmptyString ;
28323 wxString *arg7 = (wxString *) &arg7_defvalue ;
28324 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28325 wxFont *result = 0 ;
28326 void *argp1 = 0 ;
28327 int res1 = 0 ;
28328 int val2 ;
28329 int ecode2 = 0 ;
0085ce49
RD
28330 int val3 ;
28331 int ecode3 = 0 ;
50efceee
RD
28332 int val4 ;
28333 int ecode4 = 0 ;
28334 int val5 ;
28335 int ecode5 = 0 ;
28336 bool val6 ;
28337 int ecode6 = 0 ;
28338 bool temp7 = false ;
28339 int val8 ;
28340 int ecode8 = 0 ;
0085ce49
RD
28341 PyObject * obj0 = 0 ;
28342 PyObject * obj1 = 0 ;
28343 PyObject * obj2 = 0 ;
50efceee
RD
28344 PyObject * obj3 = 0 ;
28345 PyObject * obj4 = 0 ;
28346 PyObject * obj5 = 0 ;
28347 PyObject * obj6 = 0 ;
28348 PyObject * obj7 = 0 ;
0085ce49 28349 char * kwnames[] = {
50efceee 28350 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
28351 };
28352
50efceee
RD
28353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 28355 if (!SWIG_IsOK(res1)) {
50efceee 28356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 28357 }
50efceee
RD
28358 arg1 = reinterpret_cast< wxFontList * >(argp1);
28359 ecode2 = SWIG_AsVal_int(obj1, &val2);
28360 if (!SWIG_IsOK(ecode2)) {
28361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28362 }
28363 arg2 = static_cast< int >(val2);
28364 ecode3 = SWIG_AsVal_int(obj2, &val3);
28365 if (!SWIG_IsOK(ecode3)) {
28366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28367 }
28368 arg3 = static_cast< int >(val3);
28369 ecode4 = SWIG_AsVal_int(obj3, &val4);
28370 if (!SWIG_IsOK(ecode4)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28372 }
28373 arg4 = static_cast< int >(val4);
28374 ecode5 = SWIG_AsVal_int(obj4, &val5);
28375 if (!SWIG_IsOK(ecode5)) {
28376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28377 }
28378 arg5 = static_cast< int >(val5);
28379 if (obj5) {
28380 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28381 if (!SWIG_IsOK(ecode6)) {
28382 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28383 }
28384 arg6 = static_cast< bool >(val6);
0085ce49 28385 }
50efceee
RD
28386 if (obj6) {
28387 {
28388 arg7 = wxString_in_helper(obj6);
28389 if (arg7 == NULL) SWIG_fail;
28390 temp7 = true;
28391 }
28392 }
28393 if (obj7) {
28394 ecode8 = SWIG_AsVal_int(obj7, &val8);
28395 if (!SWIG_IsOK(ecode8)) {
28396 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 28397 }
50efceee 28398 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
28399 }
28400 {
28401 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28402 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
28403 wxPyEndAllowThreads(__tstate);
28404 if (PyErr_Occurred()) SWIG_fail;
28405 }
50efceee
RD
28406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28407 {
28408 if (temp7)
28409 delete arg7;
28410 }
0085ce49
RD
28411 return resultobj;
28412fail:
50efceee
RD
28413 {
28414 if (temp7)
28415 delete arg7;
28416 }
0085ce49
RD
28417 return NULL;
28418}
28419
28420
50efceee 28421SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 28422 PyObject *resultobj = 0;
50efceee
RD
28423 wxFontList *arg1 = (wxFontList *) 0 ;
28424 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
28425 void *argp1 = 0 ;
28426 int res1 = 0 ;
28427 void *argp2 = 0 ;
28428 int res2 = 0 ;
28429 PyObject * obj0 = 0 ;
28430 PyObject * obj1 = 0 ;
28431 char * kwnames[] = {
50efceee 28432 (char *) "self",(char *) "font", NULL
0085ce49
RD
28433 };
28434
50efceee
RD
28435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 28437 if (!SWIG_IsOK(res1)) {
50efceee 28438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 28439 }
50efceee
RD
28440 arg1 = reinterpret_cast< wxFontList * >(argp1);
28441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 28442 if (!SWIG_IsOK(res2)) {
50efceee 28443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 28444 }
50efceee 28445 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
28446 {
28447 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28448 (arg1)->AddFont(arg2);
0085ce49
RD
28449 wxPyEndAllowThreads(__tstate);
28450 if (PyErr_Occurred()) SWIG_fail;
28451 }
28452 resultobj = SWIG_Py_Void();
28453 return resultobj;
28454fail:
28455 return NULL;
28456}
28457
28458
50efceee 28459SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 28460 PyObject *resultobj = 0;
50efceee
RD
28461 wxFontList *arg1 = (wxFontList *) 0 ;
28462 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
50efceee
RD
28465 void *argp2 = 0 ;
28466 int res2 = 0 ;
28467 PyObject * obj0 = 0 ;
28468 PyObject * obj1 = 0 ;
28469 char * kwnames[] = {
28470 (char *) "self",(char *) "font", NULL
28471 };
0085ce49 28472
50efceee
RD
28473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 28475 if (!SWIG_IsOK(res1)) {
50efceee 28476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 28477 }
50efceee
RD
28478 arg1 = reinterpret_cast< wxFontList * >(argp1);
28479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28480 if (!SWIG_IsOK(res2)) {
28481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28482 }
28483 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
28484 {
28485 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28486 (arg1)->RemoveFont(arg2);
0085ce49
RD
28487 wxPyEndAllowThreads(__tstate);
28488 if (PyErr_Occurred()) SWIG_fail;
28489 }
50efceee 28490 resultobj = SWIG_Py_Void();
0085ce49
RD
28491 return resultobj;
28492fail:
28493 return NULL;
28494}
28495
28496
50efceee 28497SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
28498 PyObject *obj;
28499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 28500 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
28501 return SWIG_Py_Void();
28502}
28503
28504SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28505 PyObject *resultobj = 0;
28506 wxColourDatabase *result = 0 ;
28507
28508 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28509 {
28510 if (!wxPyCheckForApp()) SWIG_fail;
28511 PyThreadState* __tstate = wxPyBeginAllowThreads();
28512 result = (wxColourDatabase *)new wxColourDatabase();
28513 wxPyEndAllowThreads(__tstate);
28514 if (PyErr_Occurred()) SWIG_fail;
28515 }
28516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28517 return resultobj;
28518fail:
28519 return NULL;
28520}
28521
28522
28523SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28524 PyObject *resultobj = 0;
28525 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28526 void *argp1 = 0 ;
28527 int res1 = 0 ;
28528 PyObject *swig_obj[1] ;
28529
28530 if (!args) SWIG_fail;
28531 swig_obj[0] = args;
28532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28533 if (!SWIG_IsOK(res1)) {
28534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28535 }
28536 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28537 {
28538 PyThreadState* __tstate = wxPyBeginAllowThreads();
28539 delete arg1;
28540
28541 wxPyEndAllowThreads(__tstate);
28542 if (PyErr_Occurred()) SWIG_fail;
28543 }
28544 resultobj = SWIG_Py_Void();
28545 return resultobj;
28546fail:
28547 return NULL;
28548}
28549
28550
28551SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28552 PyObject *resultobj = 0;
28553 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28554 wxString *arg2 = 0 ;
28555 wxColour result;
28556 void *argp1 = 0 ;
28557 int res1 = 0 ;
28558 bool temp2 = false ;
28559 PyObject * obj0 = 0 ;
28560 PyObject * obj1 = 0 ;
28561 char * kwnames[] = {
28562 (char *) "self",(char *) "name", NULL
28563 };
28564
28565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28567 if (!SWIG_IsOK(res1)) {
28568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28569 }
28570 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28571 {
28572 arg2 = wxString_in_helper(obj1);
28573 if (arg2 == NULL) SWIG_fail;
28574 temp2 = true;
28575 }
28576 {
28577 PyThreadState* __tstate = wxPyBeginAllowThreads();
28578 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28579 wxPyEndAllowThreads(__tstate);
28580 if (PyErr_Occurred()) SWIG_fail;
28581 }
28582 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28583 {
28584 if (temp2)
28585 delete arg2;
28586 }
28587 return resultobj;
28588fail:
28589 {
28590 if (temp2)
28591 delete arg2;
28592 }
28593 return NULL;
28594}
28595
28596
28597SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28598 PyObject *resultobj = 0;
28599 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28600 wxColour *arg2 = 0 ;
28601 wxString result;
28602 void *argp1 = 0 ;
28603 int res1 = 0 ;
28604 wxColour temp2 ;
28605 PyObject * obj0 = 0 ;
28606 PyObject * obj1 = 0 ;
28607 char * kwnames[] = {
28608 (char *) "self",(char *) "colour", NULL
28609 };
28610
28611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28613 if (!SWIG_IsOK(res1)) {
28614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28615 }
28616 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28617 {
28618 arg2 = &temp2;
28619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28620 }
28621 {
28622 PyThreadState* __tstate = wxPyBeginAllowThreads();
28623 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28624 wxPyEndAllowThreads(__tstate);
28625 if (PyErr_Occurred()) SWIG_fail;
28626 }
28627 {
28628#if wxUSE_UNICODE
28629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28630#else
28631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28632#endif
28633 }
28634 return resultobj;
28635fail:
28636 return NULL;
28637}
28638
28639
28640SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28641 PyObject *resultobj = 0;
28642 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28643 wxString *arg2 = 0 ;
28644 wxColour *arg3 = 0 ;
28645 void *argp1 = 0 ;
28646 int res1 = 0 ;
28647 bool temp2 = false ;
28648 wxColour temp3 ;
28649 PyObject * obj0 = 0 ;
28650 PyObject * obj1 = 0 ;
28651 PyObject * obj2 = 0 ;
28652 char * kwnames[] = {
28653 (char *) "self",(char *) "name",(char *) "colour", NULL
28654 };
28655
28656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28658 if (!SWIG_IsOK(res1)) {
28659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28660 }
28661 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28662 {
28663 arg2 = wxString_in_helper(obj1);
28664 if (arg2 == NULL) SWIG_fail;
28665 temp2 = true;
28666 }
28667 {
28668 arg3 = &temp3;
28669 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28670 }
28671 {
28672 PyThreadState* __tstate = wxPyBeginAllowThreads();
28673 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28674 wxPyEndAllowThreads(__tstate);
28675 if (PyErr_Occurred()) SWIG_fail;
28676 }
28677 resultobj = SWIG_Py_Void();
28678 {
28679 if (temp2)
28680 delete arg2;
28681 }
28682 return resultobj;
28683fail:
28684 {
28685 if (temp2)
28686 delete arg2;
28687 }
28688 return NULL;
28689}
28690
28691
28692SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28693 PyObject *resultobj = 0;
28694 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28695 wxString *arg2 = 0 ;
28696 int arg3 ;
28697 int arg4 ;
28698 int arg5 ;
28699 void *argp1 = 0 ;
28700 int res1 = 0 ;
28701 bool temp2 = false ;
28702 int val3 ;
28703 int ecode3 = 0 ;
28704 int val4 ;
28705 int ecode4 = 0 ;
50efceee
RD
28706 int val5 ;
28707 int ecode5 = 0 ;
0085ce49
RD
28708 PyObject * obj0 = 0 ;
28709 PyObject * obj1 = 0 ;
28710 PyObject * obj2 = 0 ;
28711 PyObject * obj3 = 0 ;
28712 PyObject * obj4 = 0 ;
0085ce49 28713 char * kwnames[] = {
50efceee 28714 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
28715 };
28716
50efceee
RD
28717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 28719 if (!SWIG_IsOK(res1)) {
50efceee
RD
28720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28721 }
28722 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28723 {
28724 arg2 = wxString_in_helper(obj1);
28725 if (arg2 == NULL) SWIG_fail;
28726 temp2 = true;
0085ce49 28727 }
0085ce49
RD
28728 ecode3 = SWIG_AsVal_int(obj2, &val3);
28729 if (!SWIG_IsOK(ecode3)) {
50efceee 28730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
28731 }
28732 arg3 = static_cast< int >(val3);
28733 ecode4 = SWIG_AsVal_int(obj3, &val4);
28734 if (!SWIG_IsOK(ecode4)) {
50efceee 28735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
28736 }
28737 arg4 = static_cast< int >(val4);
28738 ecode5 = SWIG_AsVal_int(obj4, &val5);
28739 if (!SWIG_IsOK(ecode5)) {
50efceee 28740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
28741 }
28742 arg5 = static_cast< int >(val5);
0085ce49
RD
28743 {
28744 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28745 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
28746 wxPyEndAllowThreads(__tstate);
28747 if (PyErr_Occurred()) SWIG_fail;
28748 }
50efceee 28749 resultobj = SWIG_Py_Void();
0085ce49 28750 {
50efceee
RD
28751 if (temp2)
28752 delete arg2;
0085ce49
RD
28753 }
28754 return resultobj;
28755fail:
28756 {
50efceee
RD
28757 if (temp2)
28758 delete arg2;
0085ce49
RD
28759 }
28760 return NULL;
28761}
28762
28763
50efceee
RD
28764SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28765 PyObject *obj;
28766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28767 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28768 return SWIG_Py_Void();
28769}
28770
28771SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28772 return SWIG_Python_InitShadowInstance(args);
28773}
28774
28775SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 28776 PyObject *resultobj = 0;
50efceee 28777 wxFontList *result = 0 ;
0085ce49 28778
50efceee 28779 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
28780 {
28781 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28782 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
28783 wxPyEndAllowThreads(__tstate);
28784 if (PyErr_Occurred()) SWIG_fail;
28785 }
50efceee 28786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
28787 return resultobj;
28788fail:
28789 return NULL;
28790}
28791
28792
50efceee 28793SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 28794 PyObject *resultobj = 0;
50efceee 28795 wxPenList *result = 0 ;
0085ce49 28796
50efceee 28797 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
28798 {
28799 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28800 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
28801 wxPyEndAllowThreads(__tstate);
28802 if (PyErr_Occurred()) SWIG_fail;
28803 }
50efceee 28804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
28805 return resultobj;
28806fail:
28807 return NULL;
28808}
28809
28810
50efceee
RD
28811SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28812 PyObject *resultobj = 0;
28813 wxBrushList *result = 0 ;
0085ce49 28814
50efceee
RD
28815 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28816 {
28817 PyThreadState* __tstate = wxPyBeginAllowThreads();
28818 result = (wxBrushList *)_wxPyInitTheBrushList();
28819 wxPyEndAllowThreads(__tstate);
28820 if (PyErr_Occurred()) SWIG_fail;
28821 }
28822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28823 return resultobj;
28824fail:
28825 return NULL;
0085ce49
RD
28826}
28827
28828
50efceee
RD
28829SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28830 PyObject *resultobj = 0;
28831 wxColourDatabase *result = 0 ;
0085ce49 28832
50efceee
RD
28833 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28834 {
28835 PyThreadState* __tstate = wxPyBeginAllowThreads();
28836 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28837 wxPyEndAllowThreads(__tstate);
28838 if (PyErr_Occurred()) SWIG_fail;
28839 }
28840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28841 return resultobj;
28842fail:
28843 return NULL;
0085ce49
RD
28844}
28845
28846
28847SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28848 PyObject *resultobj = 0;
28849 wxEffects *result = 0 ;
28850
28851 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28852 {
28853 PyThreadState* __tstate = wxPyBeginAllowThreads();
28854 result = (wxEffects *)new wxEffects();
28855 wxPyEndAllowThreads(__tstate);
28856 if (PyErr_Occurred()) SWIG_fail;
28857 }
28858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28859 return resultobj;
28860fail:
28861 return NULL;
28862}
28863
28864
28865SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28866 PyObject *resultobj = 0;
28867 wxEffects *arg1 = (wxEffects *) 0 ;
28868 wxColour result;
28869 void *argp1 = 0 ;
28870 int res1 = 0 ;
28871 PyObject *swig_obj[1] ;
28872
28873 if (!args) SWIG_fail;
28874 swig_obj[0] = args;
28875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28878 }
28879 arg1 = reinterpret_cast< wxEffects * >(argp1);
28880 {
28881 PyThreadState* __tstate = wxPyBeginAllowThreads();
28882 result = ((wxEffects const *)arg1)->GetHighlightColour();
28883 wxPyEndAllowThreads(__tstate);
28884 if (PyErr_Occurred()) SWIG_fail;
28885 }
28886 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28887 return resultobj;
28888fail:
28889 return NULL;
28890}
28891
28892
28893SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28894 PyObject *resultobj = 0;
28895 wxEffects *arg1 = (wxEffects *) 0 ;
28896 wxColour result;
28897 void *argp1 = 0 ;
28898 int res1 = 0 ;
28899 PyObject *swig_obj[1] ;
28900
28901 if (!args) SWIG_fail;
28902 swig_obj[0] = args;
28903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28904 if (!SWIG_IsOK(res1)) {
28905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28906 }
28907 arg1 = reinterpret_cast< wxEffects * >(argp1);
28908 {
28909 PyThreadState* __tstate = wxPyBeginAllowThreads();
28910 result = ((wxEffects const *)arg1)->GetLightShadow();
28911 wxPyEndAllowThreads(__tstate);
28912 if (PyErr_Occurred()) SWIG_fail;
28913 }
28914 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28915 return resultobj;
28916fail:
28917 return NULL;
28918}
28919
28920
28921SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28922 PyObject *resultobj = 0;
28923 wxEffects *arg1 = (wxEffects *) 0 ;
28924 wxColour result;
28925 void *argp1 = 0 ;
28926 int res1 = 0 ;
28927 PyObject *swig_obj[1] ;
28928
28929 if (!args) SWIG_fail;
28930 swig_obj[0] = args;
28931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28932 if (!SWIG_IsOK(res1)) {
28933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28934 }
28935 arg1 = reinterpret_cast< wxEffects * >(argp1);
28936 {
28937 PyThreadState* __tstate = wxPyBeginAllowThreads();
28938 result = ((wxEffects const *)arg1)->GetFaceColour();
28939 wxPyEndAllowThreads(__tstate);
28940 if (PyErr_Occurred()) SWIG_fail;
28941 }
28942 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28943 return resultobj;
28944fail:
28945 return NULL;
28946}
28947
28948
28949SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28950 PyObject *resultobj = 0;
28951 wxEffects *arg1 = (wxEffects *) 0 ;
28952 wxColour result;
28953 void *argp1 = 0 ;
28954 int res1 = 0 ;
28955 PyObject *swig_obj[1] ;
28956
28957 if (!args) SWIG_fail;
28958 swig_obj[0] = args;
28959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28960 if (!SWIG_IsOK(res1)) {
28961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28962 }
28963 arg1 = reinterpret_cast< wxEffects * >(argp1);
28964 {
28965 PyThreadState* __tstate = wxPyBeginAllowThreads();
28966 result = ((wxEffects const *)arg1)->GetMediumShadow();
28967 wxPyEndAllowThreads(__tstate);
28968 if (PyErr_Occurred()) SWIG_fail;
28969 }
28970 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28971 return resultobj;
28972fail:
28973 return NULL;
28974}
28975
28976
28977SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28978 PyObject *resultobj = 0;
28979 wxEffects *arg1 = (wxEffects *) 0 ;
28980 wxColour result;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 PyObject *swig_obj[1] ;
28984
28985 if (!args) SWIG_fail;
28986 swig_obj[0] = args;
28987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28988 if (!SWIG_IsOK(res1)) {
28989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28990 }
28991 arg1 = reinterpret_cast< wxEffects * >(argp1);
28992 {
28993 PyThreadState* __tstate = wxPyBeginAllowThreads();
28994 result = ((wxEffects const *)arg1)->GetDarkShadow();
28995 wxPyEndAllowThreads(__tstate);
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28999 return resultobj;
29000fail:
29001 return NULL;
29002}
29003
29004
29005SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29006 PyObject *resultobj = 0;
29007 wxEffects *arg1 = (wxEffects *) 0 ;
29008 wxColour *arg2 = 0 ;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 wxColour temp2 ;
29012 PyObject * obj0 = 0 ;
29013 PyObject * obj1 = 0 ;
29014 char * kwnames[] = {
29015 (char *) "self",(char *) "c", NULL
29016 };
29017
29018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29020 if (!SWIG_IsOK(res1)) {
29021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29022 }
29023 arg1 = reinterpret_cast< wxEffects * >(argp1);
29024 {
29025 arg2 = &temp2;
29026 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29027 }
29028 {
29029 PyThreadState* __tstate = wxPyBeginAllowThreads();
29030 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29031 wxPyEndAllowThreads(__tstate);
29032 if (PyErr_Occurred()) SWIG_fail;
29033 }
29034 resultobj = SWIG_Py_Void();
29035 return resultobj;
29036fail:
29037 return NULL;
29038}
29039
29040
29041SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29042 PyObject *resultobj = 0;
29043 wxEffects *arg1 = (wxEffects *) 0 ;
29044 wxColour *arg2 = 0 ;
29045 void *argp1 = 0 ;
29046 int res1 = 0 ;
29047 wxColour temp2 ;
29048 PyObject * obj0 = 0 ;
29049 PyObject * obj1 = 0 ;
29050 char * kwnames[] = {
29051 (char *) "self",(char *) "c", NULL
29052 };
29053
29054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29056 if (!SWIG_IsOK(res1)) {
29057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29058 }
29059 arg1 = reinterpret_cast< wxEffects * >(argp1);
29060 {
29061 arg2 = &temp2;
29062 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29063 }
29064 {
29065 PyThreadState* __tstate = wxPyBeginAllowThreads();
29066 (arg1)->SetLightShadow((wxColour const &)*arg2);
29067 wxPyEndAllowThreads(__tstate);
29068 if (PyErr_Occurred()) SWIG_fail;
29069 }
29070 resultobj = SWIG_Py_Void();
29071 return resultobj;
29072fail:
29073 return NULL;
29074}
29075
29076
29077SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29078 PyObject *resultobj = 0;
29079 wxEffects *arg1 = (wxEffects *) 0 ;
29080 wxColour *arg2 = 0 ;
29081 void *argp1 = 0 ;
29082 int res1 = 0 ;
29083 wxColour temp2 ;
29084 PyObject * obj0 = 0 ;
29085 PyObject * obj1 = 0 ;
29086 char * kwnames[] = {
29087 (char *) "self",(char *) "c", NULL
29088 };
29089
29090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29092 if (!SWIG_IsOK(res1)) {
29093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29094 }
29095 arg1 = reinterpret_cast< wxEffects * >(argp1);
29096 {
29097 arg2 = &temp2;
29098 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29099 }
29100 {
29101 PyThreadState* __tstate = wxPyBeginAllowThreads();
29102 (arg1)->SetFaceColour((wxColour const &)*arg2);
29103 wxPyEndAllowThreads(__tstate);
29104 if (PyErr_Occurred()) SWIG_fail;
29105 }
29106 resultobj = SWIG_Py_Void();
29107 return resultobj;
29108fail:
29109 return NULL;
29110}
29111
29112
29113SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29114 PyObject *resultobj = 0;
29115 wxEffects *arg1 = (wxEffects *) 0 ;
29116 wxColour *arg2 = 0 ;
29117 void *argp1 = 0 ;
29118 int res1 = 0 ;
29119 wxColour temp2 ;
29120 PyObject * obj0 = 0 ;
29121 PyObject * obj1 = 0 ;
29122 char * kwnames[] = {
29123 (char *) "self",(char *) "c", NULL
29124 };
29125
29126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29128 if (!SWIG_IsOK(res1)) {
29129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29130 }
29131 arg1 = reinterpret_cast< wxEffects * >(argp1);
29132 {
29133 arg2 = &temp2;
29134 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29135 }
29136 {
29137 PyThreadState* __tstate = wxPyBeginAllowThreads();
29138 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29139 wxPyEndAllowThreads(__tstate);
29140 if (PyErr_Occurred()) SWIG_fail;
29141 }
29142 resultobj = SWIG_Py_Void();
29143 return resultobj;
29144fail:
29145 return NULL;
29146}
29147
29148
29149SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29150 PyObject *resultobj = 0;
29151 wxEffects *arg1 = (wxEffects *) 0 ;
29152 wxColour *arg2 = 0 ;
29153 void *argp1 = 0 ;
29154 int res1 = 0 ;
29155 wxColour temp2 ;
29156 PyObject * obj0 = 0 ;
29157 PyObject * obj1 = 0 ;
29158 char * kwnames[] = {
29159 (char *) "self",(char *) "c", NULL
29160 };
29161
29162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29164 if (!SWIG_IsOK(res1)) {
29165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29166 }
29167 arg1 = reinterpret_cast< wxEffects * >(argp1);
29168 {
29169 arg2 = &temp2;
29170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29171 }
29172 {
29173 PyThreadState* __tstate = wxPyBeginAllowThreads();
29174 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29175 wxPyEndAllowThreads(__tstate);
29176 if (PyErr_Occurred()) SWIG_fail;
29177 }
29178 resultobj = SWIG_Py_Void();
29179 return resultobj;
29180fail:
29181 return NULL;
29182}
29183
29184
29185SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29186 PyObject *resultobj = 0;
29187 wxEffects *arg1 = (wxEffects *) 0 ;
29188 wxColour *arg2 = 0 ;
29189 wxColour *arg3 = 0 ;
29190 wxColour *arg4 = 0 ;
29191 wxColour *arg5 = 0 ;
29192 wxColour *arg6 = 0 ;
29193 void *argp1 = 0 ;
29194 int res1 = 0 ;
29195 wxColour temp2 ;
29196 wxColour temp3 ;
29197 wxColour temp4 ;
29198 wxColour temp5 ;
29199 wxColour temp6 ;
29200 PyObject * obj0 = 0 ;
29201 PyObject * obj1 = 0 ;
29202 PyObject * obj2 = 0 ;
29203 PyObject * obj3 = 0 ;
29204 PyObject * obj4 = 0 ;
29205 PyObject * obj5 = 0 ;
29206 char * kwnames[] = {
29207 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29208 };
29209
29210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29212 if (!SWIG_IsOK(res1)) {
29213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29214 }
29215 arg1 = reinterpret_cast< wxEffects * >(argp1);
29216 {
29217 arg2 = &temp2;
29218 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29219 }
29220 {
29221 arg3 = &temp3;
29222 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29223 }
29224 {
29225 arg4 = &temp4;
29226 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29227 }
29228 {
29229 arg5 = &temp5;
29230 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29231 }
29232 {
29233 arg6 = &temp6;
29234 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29235 }
29236 {
29237 PyThreadState* __tstate = wxPyBeginAllowThreads();
29238 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29239 wxPyEndAllowThreads(__tstate);
29240 if (PyErr_Occurred()) SWIG_fail;
29241 }
29242 resultobj = SWIG_Py_Void();
29243 return resultobj;
29244fail:
29245 return NULL;
29246}
29247
29248
29249SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29250 PyObject *resultobj = 0;
29251 wxEffects *arg1 = (wxEffects *) 0 ;
29252 wxDC *arg2 = 0 ;
29253 wxRect *arg3 = 0 ;
29254 int arg4 = (int) 1 ;
29255 void *argp1 = 0 ;
29256 int res1 = 0 ;
29257 void *argp2 = 0 ;
29258 int res2 = 0 ;
29259 wxRect temp3 ;
29260 int val4 ;
29261 int ecode4 = 0 ;
29262 PyObject * obj0 = 0 ;
29263 PyObject * obj1 = 0 ;
29264 PyObject * obj2 = 0 ;
29265 PyObject * obj3 = 0 ;
29266 char * kwnames[] = {
29267 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29268 };
29269
29270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29272 if (!SWIG_IsOK(res1)) {
29273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29274 }
29275 arg1 = reinterpret_cast< wxEffects * >(argp1);
29276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29277 if (!SWIG_IsOK(res2)) {
29278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29279 }
29280 if (!argp2) {
29281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29282 }
29283 arg2 = reinterpret_cast< wxDC * >(argp2);
29284 {
29285 arg3 = &temp3;
29286 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29287 }
29288 if (obj3) {
29289 ecode4 = SWIG_AsVal_int(obj3, &val4);
29290 if (!SWIG_IsOK(ecode4)) {
29291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29292 }
29293 arg4 = static_cast< int >(val4);
29294 }
29295 {
29296 PyThreadState* __tstate = wxPyBeginAllowThreads();
29297 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29298 wxPyEndAllowThreads(__tstate);
29299 if (PyErr_Occurred()) SWIG_fail;
29300 }
29301 resultobj = SWIG_Py_Void();
29302 return resultobj;
29303fail:
29304 return NULL;
29305}
29306
29307
29308SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29309 PyObject *resultobj = 0;
29310 wxEffects *arg1 = (wxEffects *) 0 ;
29311 wxRect *arg2 = 0 ;
29312 wxDC *arg3 = 0 ;
29313 wxBitmap *arg4 = 0 ;
29314 bool result;
29315 void *argp1 = 0 ;
29316 int res1 = 0 ;
29317 wxRect temp2 ;
29318 void *argp3 = 0 ;
29319 int res3 = 0 ;
29320 void *argp4 = 0 ;
29321 int res4 = 0 ;
29322 PyObject * obj0 = 0 ;
29323 PyObject * obj1 = 0 ;
29324 PyObject * obj2 = 0 ;
29325 PyObject * obj3 = 0 ;
29326 char * kwnames[] = {
29327 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29328 };
29329
29330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29332 if (!SWIG_IsOK(res1)) {
29333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29334 }
29335 arg1 = reinterpret_cast< wxEffects * >(argp1);
29336 {
29337 arg2 = &temp2;
29338 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29339 }
29340 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29341 if (!SWIG_IsOK(res3)) {
29342 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29343 }
29344 if (!argp3) {
29345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29346 }
29347 arg3 = reinterpret_cast< wxDC * >(argp3);
29348 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29349 if (!SWIG_IsOK(res4)) {
29350 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29351 }
29352 if (!argp4) {
29353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29354 }
29355 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29356 {
29357 PyThreadState* __tstate = wxPyBeginAllowThreads();
29358 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29359 wxPyEndAllowThreads(__tstate);
29360 if (PyErr_Occurred()) SWIG_fail;
29361 }
29362 {
29363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29364 }
29365 return resultobj;
29366fail:
29367 return NULL;
29368}
29369
29370
29371SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29372 PyObject *obj;
29373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29374 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29375 return SWIG_Py_Void();
29376}
29377
29378SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29379 return SWIG_Python_InitShadowInstance(args);
29380}
29381
29382SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29383 PyObject *resultobj = 0;
29384 int arg1 ;
29385 int arg2 ;
29386 bool arg3 ;
29387 wxSplitterRenderParams *result = 0 ;
29388 int val1 ;
29389 int ecode1 = 0 ;
29390 int val2 ;
29391 int ecode2 = 0 ;
29392 bool val3 ;
29393 int ecode3 = 0 ;
29394 PyObject * obj0 = 0 ;
29395 PyObject * obj1 = 0 ;
29396 PyObject * obj2 = 0 ;
29397 char * kwnames[] = {
29398 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29399 };
29400
29401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29402 ecode1 = SWIG_AsVal_int(obj0, &val1);
29403 if (!SWIG_IsOK(ecode1)) {
29404 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29405 }
29406 arg1 = static_cast< int >(val1);
29407 ecode2 = SWIG_AsVal_int(obj1, &val2);
29408 if (!SWIG_IsOK(ecode2)) {
29409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29410 }
29411 arg2 = static_cast< int >(val2);
29412 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29413 if (!SWIG_IsOK(ecode3)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29415 }
29416 arg3 = static_cast< bool >(val3);
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29424 return resultobj;
29425fail:
29426 return NULL;
29427}
29428
29429
29430SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29431 PyObject *resultobj = 0;
29432 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29433 void *argp1 = 0 ;
29434 int res1 = 0 ;
29435 PyObject *swig_obj[1] ;
29436
29437 if (!args) SWIG_fail;
29438 swig_obj[0] = args;
29439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29440 if (!SWIG_IsOK(res1)) {
29441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29442 }
29443 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29444 {
29445 PyThreadState* __tstate = wxPyBeginAllowThreads();
29446 delete arg1;
29447
29448 wxPyEndAllowThreads(__tstate);
29449 if (PyErr_Occurred()) SWIG_fail;
29450 }
29451 resultobj = SWIG_Py_Void();
29452 return resultobj;
29453fail:
29454 return NULL;
29455}
29456
29457
29458SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29459 PyObject *resultobj = 0;
29460 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29461 int result;
29462 void *argp1 = 0 ;
29463 int res1 = 0 ;
29464 PyObject *swig_obj[1] ;
29465
29466 if (!args) SWIG_fail;
29467 swig_obj[0] = args;
29468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29469 if (!SWIG_IsOK(res1)) {
29470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29471 }
29472 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29473 result = (int)(int) ((arg1)->widthSash);
29474 resultobj = SWIG_From_int(static_cast< int >(result));
29475 return resultobj;
29476fail:
29477 return NULL;
29478}
29479
29480
29481SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29482 PyObject *resultobj = 0;
29483 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29484 int result;
29485 void *argp1 = 0 ;
29486 int res1 = 0 ;
29487 PyObject *swig_obj[1] ;
29488
29489 if (!args) SWIG_fail;
29490 swig_obj[0] = args;
29491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29494 }
29495 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29496 result = (int)(int) ((arg1)->border);
29497 resultobj = SWIG_From_int(static_cast< int >(result));
29498 return resultobj;
29499fail:
29500 return NULL;
29501}
29502
29503
29504SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29505 PyObject *resultobj = 0;
29506 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29507 bool result;
29508 void *argp1 = 0 ;
29509 int res1 = 0 ;
29510 PyObject *swig_obj[1] ;
29511
29512 if (!args) SWIG_fail;
29513 swig_obj[0] = args;
29514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29515 if (!SWIG_IsOK(res1)) {
29516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29517 }
29518 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29519 result = (bool)(bool) ((arg1)->isHotSensitive);
29520 resultobj = SWIG_From_bool(static_cast< bool >(result));
29521 return resultobj;
29522fail:
29523 return NULL;
29524}
29525
29526
29527SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29528 PyObject *obj;
29529 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29530 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29531 return SWIG_Py_Void();
29532}
29533
29534SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29535 return SWIG_Python_InitShadowInstance(args);
29536}
29537
33d6fd3b
RD
29538SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29539 PyObject *resultobj = 0;
29540 wxHeaderButtonParams *result = 0 ;
29541
29542 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29543 {
29544 PyThreadState* __tstate = wxPyBeginAllowThreads();
29545 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29546 wxPyEndAllowThreads(__tstate);
29547 if (PyErr_Occurred()) SWIG_fail;
29548 }
29549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29550 return resultobj;
29551fail:
29552 return NULL;
29553}
29554
29555
29556SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29557 PyObject *resultobj = 0;
29558 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29559 void *argp1 = 0 ;
29560 int res1 = 0 ;
29561 PyObject *swig_obj[1] ;
29562
29563 if (!args) SWIG_fail;
29564 swig_obj[0] = args;
29565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29566 if (!SWIG_IsOK(res1)) {
29567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29568 }
29569 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29570 {
29571 PyThreadState* __tstate = wxPyBeginAllowThreads();
29572 delete arg1;
29573
29574 wxPyEndAllowThreads(__tstate);
29575 if (PyErr_Occurred()) SWIG_fail;
29576 }
29577 resultobj = SWIG_Py_Void();
29578 return resultobj;
29579fail:
29580 return NULL;
29581}
29582
29583
29584SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29585 PyObject *resultobj = 0;
29586 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29587 wxColour *arg2 = (wxColour *) 0 ;
29588 void *argp1 = 0 ;
29589 int res1 = 0 ;
29590 wxColour temp2 ;
29591 PyObject *swig_obj[2] ;
29592
29593 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29595 if (!SWIG_IsOK(res1)) {
29596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29597 }
29598 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29599 {
29600 arg2 = &temp2;
29601 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29602 }
29603 if (arg1) (arg1)->m_arrowColour = *arg2;
29604
29605 resultobj = SWIG_Py_Void();
29606 return resultobj;
29607fail:
29608 return NULL;
29609}
29610
29611
29612SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29613 PyObject *resultobj = 0;
29614 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29615 wxColour *result = 0 ;
29616 void *argp1 = 0 ;
29617 int res1 = 0 ;
29618 PyObject *swig_obj[1] ;
29619
29620 if (!args) SWIG_fail;
29621 swig_obj[0] = args;
29622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29623 if (!SWIG_IsOK(res1)) {
29624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29625 }
29626 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29627 result = (wxColour *)& ((arg1)->m_arrowColour);
29628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29629 return resultobj;
29630fail:
29631 return NULL;
29632}
29633
29634
29635SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29636 PyObject *resultobj = 0;
29637 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29638 wxColour *arg2 = (wxColour *) 0 ;
29639 void *argp1 = 0 ;
29640 int res1 = 0 ;
29641 wxColour temp2 ;
29642 PyObject *swig_obj[2] ;
29643
29644 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29646 if (!SWIG_IsOK(res1)) {
29647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29648 }
29649 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29650 {
29651 arg2 = &temp2;
29652 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29653 }
29654 if (arg1) (arg1)->m_selectionColour = *arg2;
29655
29656 resultobj = SWIG_Py_Void();
29657 return resultobj;
29658fail:
29659 return NULL;
29660}
29661
29662
29663SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29664 PyObject *resultobj = 0;
29665 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29666 wxColour *result = 0 ;
29667 void *argp1 = 0 ;
29668 int res1 = 0 ;
29669 PyObject *swig_obj[1] ;
29670
29671 if (!args) SWIG_fail;
29672 swig_obj[0] = args;
29673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29674 if (!SWIG_IsOK(res1)) {
29675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29676 }
29677 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29678 result = (wxColour *)& ((arg1)->m_selectionColour);
29679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29680 return resultobj;
29681fail:
29682 return NULL;
29683}
29684
29685
29686SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29687 PyObject *resultobj = 0;
29688 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29689 wxString *arg2 = (wxString *) 0 ;
29690 void *argp1 = 0 ;
29691 int res1 = 0 ;
29692 bool temp2 = false ;
29693 PyObject *swig_obj[2] ;
29694
29695 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29697 if (!SWIG_IsOK(res1)) {
29698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29699 }
29700 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29701 {
29702 arg2 = wxString_in_helper(swig_obj[1]);
29703 if (arg2 == NULL) SWIG_fail;
29704 temp2 = true;
29705 }
29706 if (arg1) (arg1)->m_labelText = *arg2;
29707
29708 resultobj = SWIG_Py_Void();
29709 {
29710 if (temp2)
29711 delete arg2;
29712 }
29713 return resultobj;
29714fail:
29715 {
29716 if (temp2)
29717 delete arg2;
29718 }
29719 return NULL;
29720}
29721
29722
29723SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29724 PyObject *resultobj = 0;
29725 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29726 wxString *result = 0 ;
29727 void *argp1 = 0 ;
29728 int res1 = 0 ;
29729 PyObject *swig_obj[1] ;
29730
29731 if (!args) SWIG_fail;
29732 swig_obj[0] = args;
29733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29734 if (!SWIG_IsOK(res1)) {
29735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29736 }
29737 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29738 result = (wxString *)& ((arg1)->m_labelText);
29739 {
29740#if wxUSE_UNICODE
29741 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29742#else
29743 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29744#endif
29745 }
29746 return resultobj;
29747fail:
29748 return NULL;
29749}
29750
29751
29752SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29753 PyObject *resultobj = 0;
29754 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29755 wxFont *arg2 = (wxFont *) 0 ;
29756 void *argp1 = 0 ;
29757 int res1 = 0 ;
29758 void *argp2 = 0 ;
29759 int res2 = 0 ;
29760 PyObject *swig_obj[2] ;
29761
29762 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29766 }
29767 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29768 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29769 if (!SWIG_IsOK(res2)) {
29770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29771 }
29772 arg2 = reinterpret_cast< wxFont * >(argp2);
29773 if (arg1) (arg1)->m_labelFont = *arg2;
29774
29775 resultobj = SWIG_Py_Void();
29776 return resultobj;
29777fail:
29778 return NULL;
29779}
29780
29781
29782SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29783 PyObject *resultobj = 0;
29784 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29785 wxFont *result = 0 ;
29786 void *argp1 = 0 ;
29787 int res1 = 0 ;
29788 PyObject *swig_obj[1] ;
29789
29790 if (!args) SWIG_fail;
29791 swig_obj[0] = args;
29792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29793 if (!SWIG_IsOK(res1)) {
29794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29795 }
29796 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29797 result = (wxFont *)& ((arg1)->m_labelFont);
29798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29799 return resultobj;
29800fail:
29801 return NULL;
29802}
29803
29804
29805SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29806 PyObject *resultobj = 0;
29807 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29808 wxColour *arg2 = (wxColour *) 0 ;
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
29811 wxColour temp2 ;
29812 PyObject *swig_obj[2] ;
29813
29814 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29816 if (!SWIG_IsOK(res1)) {
29817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29818 }
29819 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29820 {
29821 arg2 = &temp2;
29822 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29823 }
29824 if (arg1) (arg1)->m_labelColour = *arg2;
29825
29826 resultobj = SWIG_Py_Void();
29827 return resultobj;
29828fail:
29829 return NULL;
29830}
29831
29832
29833SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29834 PyObject *resultobj = 0;
29835 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29836 wxColour *result = 0 ;
29837 void *argp1 = 0 ;
29838 int res1 = 0 ;
29839 PyObject *swig_obj[1] ;
29840
29841 if (!args) SWIG_fail;
29842 swig_obj[0] = args;
29843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29844 if (!SWIG_IsOK(res1)) {
29845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29846 }
29847 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29848 result = (wxColour *)& ((arg1)->m_labelColour);
29849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29850 return resultobj;
29851fail:
29852 return NULL;
29853}
29854
29855
29856SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29857 PyObject *resultobj = 0;
29858 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29859 wxBitmap *arg2 = (wxBitmap *) 0 ;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 void *argp2 = 0 ;
29863 int res2 = 0 ;
29864 PyObject *swig_obj[2] ;
29865
29866 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29868 if (!SWIG_IsOK(res1)) {
29869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29870 }
29871 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29872 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29873 if (!SWIG_IsOK(res2)) {
29874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29875 }
29876 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29877 if (arg1) (arg1)->m_labelBitmap = *arg2;
29878
29879 resultobj = SWIG_Py_Void();
29880 return resultobj;
29881fail:
29882 return NULL;
29883}
29884
29885
29886SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29887 PyObject *resultobj = 0;
29888 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29889 wxBitmap *result = 0 ;
29890 void *argp1 = 0 ;
29891 int res1 = 0 ;
29892 PyObject *swig_obj[1] ;
29893
29894 if (!args) SWIG_fail;
29895 swig_obj[0] = args;
29896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29897 if (!SWIG_IsOK(res1)) {
29898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29899 }
29900 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29901 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29903 return resultobj;
29904fail:
29905 return NULL;
29906}
29907
29908
29909SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29910 PyObject *resultobj = 0;
29911 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29912 int arg2 ;
29913 void *argp1 = 0 ;
29914 int res1 = 0 ;
29915 int val2 ;
29916 int ecode2 = 0 ;
29917 PyObject *swig_obj[2] ;
29918
29919 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29921 if (!SWIG_IsOK(res1)) {
29922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29923 }
29924 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29925 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29926 if (!SWIG_IsOK(ecode2)) {
29927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29928 }
29929 arg2 = static_cast< int >(val2);
29930 if (arg1) (arg1)->m_labelAlignment = arg2;
29931
29932 resultobj = SWIG_Py_Void();
29933 return resultobj;
29934fail:
29935 return NULL;
29936}
29937
29938
29939SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29940 PyObject *resultobj = 0;
29941 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29942 int result;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 PyObject *swig_obj[1] ;
29946
29947 if (!args) SWIG_fail;
29948 swig_obj[0] = args;
29949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29950 if (!SWIG_IsOK(res1)) {
29951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29952 }
29953 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29954 result = (int) ((arg1)->m_labelAlignment);
29955 resultobj = SWIG_From_int(static_cast< int >(result));
29956 return resultobj;
29957fail:
29958 return NULL;
29959}
29960
29961
29962SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29963 PyObject *obj;
29964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29965 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29966 return SWIG_Py_Void();
29967}
29968
29969SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29970 return SWIG_Python_InitShadowInstance(args);
29971}
29972
0085ce49
RD
29973SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29974 PyObject *resultobj = 0;
29975 int arg1 ;
29976 int arg2 ;
29977 wxRendererVersion *result = 0 ;
29978 int val1 ;
29979 int ecode1 = 0 ;
29980 int val2 ;
29981 int ecode2 = 0 ;
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 char * kwnames[] = {
29985 (char *) "version_",(char *) "age_", NULL
29986 };
29987
29988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29989 ecode1 = SWIG_AsVal_int(obj0, &val1);
29990 if (!SWIG_IsOK(ecode1)) {
29991 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29992 }
29993 arg1 = static_cast< int >(val1);
29994 ecode2 = SWIG_AsVal_int(obj1, &val2);
29995 if (!SWIG_IsOK(ecode2)) {
29996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29997 }
29998 arg2 = static_cast< int >(val2);
29999 {
30000 PyThreadState* __tstate = wxPyBeginAllowThreads();
30001 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30002 wxPyEndAllowThreads(__tstate);
30003 if (PyErr_Occurred()) SWIG_fail;
30004 }
30005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30006 return resultobj;
30007fail:
30008 return NULL;
30009}
30010
30011
30012SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30013 PyObject *resultobj = 0;
30014 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30015 void *argp1 = 0 ;
30016 int res1 = 0 ;
30017 PyObject *swig_obj[1] ;
30018
30019 if (!args) SWIG_fail;
30020 swig_obj[0] = args;
30021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30022 if (!SWIG_IsOK(res1)) {
30023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30024 }
30025 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30026 {
30027 PyThreadState* __tstate = wxPyBeginAllowThreads();
30028 delete arg1;
30029
30030 wxPyEndAllowThreads(__tstate);
30031 if (PyErr_Occurred()) SWIG_fail;
30032 }
30033 resultobj = SWIG_Py_Void();
30034 return resultobj;
30035fail:
30036 return NULL;
30037}
30038
30039
30040SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30041 PyObject *resultobj = 0;
30042 wxRendererVersion *arg1 = 0 ;
30043 bool result;
30044 void *argp1 = 0 ;
30045 int res1 = 0 ;
30046 PyObject * obj0 = 0 ;
30047 char * kwnames[] = {
30048 (char *) "ver", NULL
30049 };
30050
30051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30052 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30053 if (!SWIG_IsOK(res1)) {
30054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30055 }
30056 if (!argp1) {
30057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30058 }
30059 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30060 {
30061 PyThreadState* __tstate = wxPyBeginAllowThreads();
30062 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30063 wxPyEndAllowThreads(__tstate);
30064 if (PyErr_Occurred()) SWIG_fail;
30065 }
30066 {
30067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30068 }
30069 return resultobj;
30070fail:
30071 return NULL;
30072}
30073
30074
30075SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30076 PyObject *resultobj = 0;
30077 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30078 int result;
30079 void *argp1 = 0 ;
30080 int res1 = 0 ;
30081 PyObject *swig_obj[1] ;
30082
30083 if (!args) SWIG_fail;
30084 swig_obj[0] = args;
30085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30086 if (!SWIG_IsOK(res1)) {
30087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30088 }
30089 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30090 result = (int)(int) ((arg1)->version);
30091 resultobj = SWIG_From_int(static_cast< int >(result));
30092 return resultobj;
30093fail:
30094 return NULL;
30095}
30096
30097
30098SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30099 PyObject *resultobj = 0;
30100 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30101 int result;
30102 void *argp1 = 0 ;
30103 int res1 = 0 ;
30104 PyObject *swig_obj[1] ;
30105
30106 if (!args) SWIG_fail;
30107 swig_obj[0] = args;
30108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30109 if (!SWIG_IsOK(res1)) {
30110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30111 }
30112 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30113 result = (int)(int) ((arg1)->age);
30114 resultobj = SWIG_From_int(static_cast< int >(result));
30115 return resultobj;
30116fail:
30117 return NULL;
30118}
30119
30120
30121SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30122 PyObject *obj;
30123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30124 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30125 return SWIG_Py_Void();
30126}
30127
30128SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30129 return SWIG_Python_InitShadowInstance(args);
30130}
30131
30132SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30133 PyObject *resultobj = 0;
30134 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30135 wxWindow *arg2 = (wxWindow *) 0 ;
30136 wxDC *arg3 = 0 ;
30137 wxRect *arg4 = 0 ;
30138 int arg5 = (int) 0 ;
33d6fd3b
RD
30139 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30140 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
30141 void *argp1 = 0 ;
30142 int res1 = 0 ;
30143 void *argp2 = 0 ;
30144 int res2 = 0 ;
30145 void *argp3 = 0 ;
30146 int res3 = 0 ;
30147 wxRect temp4 ;
30148 int val5 ;
30149 int ecode5 = 0 ;
33d6fd3b
RD
30150 int val6 ;
30151 int ecode6 = 0 ;
30152 void *argp7 = 0 ;
30153 int res7 = 0 ;
0085ce49
RD
30154 PyObject * obj0 = 0 ;
30155 PyObject * obj1 = 0 ;
30156 PyObject * obj2 = 0 ;
30157 PyObject * obj3 = 0 ;
30158 PyObject * obj4 = 0 ;
33d6fd3b
RD
30159 PyObject * obj5 = 0 ;
30160 PyObject * obj6 = 0 ;
0085ce49 30161 char * kwnames[] = {
33d6fd3b 30162 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
30163 };
30164
33d6fd3b 30165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
30166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30167 if (!SWIG_IsOK(res1)) {
30168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30169 }
30170 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30171 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30172 if (!SWIG_IsOK(res2)) {
30173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30174 }
30175 arg2 = reinterpret_cast< wxWindow * >(argp2);
30176 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30177 if (!SWIG_IsOK(res3)) {
30178 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30179 }
30180 if (!argp3) {
30181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30182 }
30183 arg3 = reinterpret_cast< wxDC * >(argp3);
30184 {
30185 arg4 = &temp4;
30186 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30187 }
30188 if (obj4) {
30189 ecode5 = SWIG_AsVal_int(obj4, &val5);
30190 if (!SWIG_IsOK(ecode5)) {
30191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30192 }
30193 arg5 = static_cast< int >(val5);
30194 }
33d6fd3b
RD
30195 if (obj5) {
30196 ecode6 = SWIG_AsVal_int(obj5, &val6);
30197 if (!SWIG_IsOK(ecode6)) {
30198 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30199 }
30200 arg6 = static_cast< wxHeaderSortIconType >(val6);
30201 }
30202 if (obj6) {
30203 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30204 if (!SWIG_IsOK(res7)) {
30205 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30206 }
30207 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30208 }
30209 {
30210 PyThreadState* __tstate = wxPyBeginAllowThreads();
30211 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30212 wxPyEndAllowThreads(__tstate);
30213 if (PyErr_Occurred()) SWIG_fail;
30214 }
30215 resultobj = SWIG_Py_Void();
30216 return resultobj;
30217fail:
30218 return NULL;
30219}
30220
30221
30222SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30223 PyObject *resultobj = 0;
30224 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30225 wxWindow *arg2 = (wxWindow *) 0 ;
30226 wxDC *arg3 = 0 ;
30227 wxRect *arg4 = 0 ;
30228 int arg5 = (int) 0 ;
30229 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30230 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30231 void *argp1 = 0 ;
30232 int res1 = 0 ;
30233 void *argp2 = 0 ;
30234 int res2 = 0 ;
30235 void *argp3 = 0 ;
30236 int res3 = 0 ;
30237 wxRect temp4 ;
30238 int val5 ;
30239 int ecode5 = 0 ;
30240 int val6 ;
30241 int ecode6 = 0 ;
30242 void *argp7 = 0 ;
30243 int res7 = 0 ;
30244 PyObject * obj0 = 0 ;
30245 PyObject * obj1 = 0 ;
30246 PyObject * obj2 = 0 ;
30247 PyObject * obj3 = 0 ;
30248 PyObject * obj4 = 0 ;
30249 PyObject * obj5 = 0 ;
30250 PyObject * obj6 = 0 ;
30251 char * kwnames[] = {
30252 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30253 };
30254
30255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30257 if (!SWIG_IsOK(res1)) {
30258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30259 }
30260 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30261 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30262 if (!SWIG_IsOK(res2)) {
30263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30264 }
30265 arg2 = reinterpret_cast< wxWindow * >(argp2);
30266 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30267 if (!SWIG_IsOK(res3)) {
30268 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30269 }
30270 if (!argp3) {
30271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30272 }
30273 arg3 = reinterpret_cast< wxDC * >(argp3);
30274 {
30275 arg4 = &temp4;
30276 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30277 }
30278 if (obj4) {
30279 ecode5 = SWIG_AsVal_int(obj4, &val5);
30280 if (!SWIG_IsOK(ecode5)) {
30281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30282 }
30283 arg5 = static_cast< int >(val5);
30284 }
30285 if (obj5) {
30286 ecode6 = SWIG_AsVal_int(obj5, &val6);
30287 if (!SWIG_IsOK(ecode6)) {
30288 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30289 }
30290 arg6 = static_cast< wxHeaderSortIconType >(val6);
30291 }
30292 if (obj6) {
30293 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30294 if (!SWIG_IsOK(res7)) {
30295 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30296 }
30297 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30298 }
0085ce49
RD
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 30301 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_Py_Void();
30306 return resultobj;
30307fail:
30308 return NULL;
30309}
30310
30311
33d6fd3b
RD
30312SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = 0;
30314 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30315 wxWindow *arg2 = (wxWindow *) 0 ;
30316 int result;
30317 void *argp1 = 0 ;
30318 int res1 = 0 ;
30319 void *argp2 = 0 ;
30320 int res2 = 0 ;
30321 PyObject * obj0 = 0 ;
30322 PyObject * obj1 = 0 ;
30323 char * kwnames[] = {
30324 (char *) "self",(char *) "win", NULL
30325 };
30326
30327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30329 if (!SWIG_IsOK(res1)) {
30330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30331 }
30332 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30334 if (!SWIG_IsOK(res2)) {
30335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30336 }
30337 arg2 = reinterpret_cast< wxWindow * >(argp2);
30338 {
30339 PyThreadState* __tstate = wxPyBeginAllowThreads();
30340 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30341 wxPyEndAllowThreads(__tstate);
30342 if (PyErr_Occurred()) SWIG_fail;
30343 }
30344 resultobj = SWIG_From_int(static_cast< int >(result));
30345 return resultobj;
30346fail:
30347 return NULL;
30348}
30349
30350
0085ce49
RD
30351SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30352 PyObject *resultobj = 0;
30353 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30354 wxWindow *arg2 = (wxWindow *) 0 ;
30355 wxDC *arg3 = 0 ;
30356 wxRect *arg4 = 0 ;
30357 int arg5 = (int) 0 ;
30358 void *argp1 = 0 ;
30359 int res1 = 0 ;
30360 void *argp2 = 0 ;
30361 int res2 = 0 ;
30362 void *argp3 = 0 ;
30363 int res3 = 0 ;
30364 wxRect temp4 ;
30365 int val5 ;
30366 int ecode5 = 0 ;
30367 PyObject * obj0 = 0 ;
30368 PyObject * obj1 = 0 ;
30369 PyObject * obj2 = 0 ;
30370 PyObject * obj3 = 0 ;
30371 PyObject * obj4 = 0 ;
30372 char * kwnames[] = {
30373 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30374 };
30375
30376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30378 if (!SWIG_IsOK(res1)) {
30379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30380 }
30381 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30383 if (!SWIG_IsOK(res2)) {
30384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30385 }
30386 arg2 = reinterpret_cast< wxWindow * >(argp2);
30387 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30388 if (!SWIG_IsOK(res3)) {
30389 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30390 }
30391 if (!argp3) {
30392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30393 }
30394 arg3 = reinterpret_cast< wxDC * >(argp3);
30395 {
30396 arg4 = &temp4;
30397 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30398 }
30399 if (obj4) {
30400 ecode5 = SWIG_AsVal_int(obj4, &val5);
30401 if (!SWIG_IsOK(ecode5)) {
30402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30403 }
30404 arg5 = static_cast< int >(val5);
30405 }
30406 {
30407 PyThreadState* __tstate = wxPyBeginAllowThreads();
30408 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30409 wxPyEndAllowThreads(__tstate);
30410 if (PyErr_Occurred()) SWIG_fail;
30411 }
30412 resultobj = SWIG_Py_Void();
30413 return resultobj;
30414fail:
30415 return NULL;
30416}
30417
30418
30419SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30420 PyObject *resultobj = 0;
30421 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30422 wxWindow *arg2 = (wxWindow *) 0 ;
30423 wxDC *arg3 = 0 ;
30424 wxRect *arg4 = 0 ;
30425 int arg5 = (int) 0 ;
30426 void *argp1 = 0 ;
30427 int res1 = 0 ;
30428 void *argp2 = 0 ;
30429 int res2 = 0 ;
30430 void *argp3 = 0 ;
30431 int res3 = 0 ;
30432 wxRect temp4 ;
30433 int val5 ;
30434 int ecode5 = 0 ;
30435 PyObject * obj0 = 0 ;
30436 PyObject * obj1 = 0 ;
30437 PyObject * obj2 = 0 ;
30438 PyObject * obj3 = 0 ;
30439 PyObject * obj4 = 0 ;
30440 char * kwnames[] = {
30441 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30442 };
30443
30444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30446 if (!SWIG_IsOK(res1)) {
30447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30448 }
30449 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30451 if (!SWIG_IsOK(res2)) {
30452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30453 }
30454 arg2 = reinterpret_cast< wxWindow * >(argp2);
30455 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30456 if (!SWIG_IsOK(res3)) {
30457 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30458 }
30459 if (!argp3) {
30460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30461 }
30462 arg3 = reinterpret_cast< wxDC * >(argp3);
30463 {
30464 arg4 = &temp4;
30465 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30466 }
30467 if (obj4) {
30468 ecode5 = SWIG_AsVal_int(obj4, &val5);
30469 if (!SWIG_IsOK(ecode5)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30471 }
30472 arg5 = static_cast< int >(val5);
30473 }
30474 {
30475 PyThreadState* __tstate = wxPyBeginAllowThreads();
30476 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30477 wxPyEndAllowThreads(__tstate);
30478 if (PyErr_Occurred()) SWIG_fail;
30479 }
30480 resultobj = SWIG_Py_Void();
30481 return resultobj;
30482fail:
30483 return NULL;
30484}
30485
30486
30487SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30488 PyObject *resultobj = 0;
30489 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30490 wxWindow *arg2 = (wxWindow *) 0 ;
30491 wxDC *arg3 = 0 ;
30492 wxSize *arg4 = 0 ;
30493 int arg5 ;
30494 wxOrientation arg6 ;
30495 int arg7 = (int) 0 ;
30496 void *argp1 = 0 ;
30497 int res1 = 0 ;
30498 void *argp2 = 0 ;
30499 int res2 = 0 ;
30500 void *argp3 = 0 ;
30501 int res3 = 0 ;
30502 wxSize temp4 ;
30503 int val5 ;
30504 int ecode5 = 0 ;
30505 int val6 ;
30506 int ecode6 = 0 ;
30507 int val7 ;
30508 int ecode7 = 0 ;
30509 PyObject * obj0 = 0 ;
30510 PyObject * obj1 = 0 ;
30511 PyObject * obj2 = 0 ;
30512 PyObject * obj3 = 0 ;
30513 PyObject * obj4 = 0 ;
30514 PyObject * obj5 = 0 ;
30515 PyObject * obj6 = 0 ;
30516 char * kwnames[] = {
30517 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30518 };
30519
30520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30522 if (!SWIG_IsOK(res1)) {
30523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30524 }
30525 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30527 if (!SWIG_IsOK(res2)) {
30528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30529 }
30530 arg2 = reinterpret_cast< wxWindow * >(argp2);
30531 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30532 if (!SWIG_IsOK(res3)) {
30533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30534 }
30535 if (!argp3) {
30536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30537 }
30538 arg3 = reinterpret_cast< wxDC * >(argp3);
30539 {
30540 arg4 = &temp4;
30541 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30542 }
30543 ecode5 = SWIG_AsVal_int(obj4, &val5);
30544 if (!SWIG_IsOK(ecode5)) {
30545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30546 }
30547 arg5 = static_cast< int >(val5);
30548 ecode6 = SWIG_AsVal_int(obj5, &val6);
30549 if (!SWIG_IsOK(ecode6)) {
30550 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30551 }
30552 arg6 = static_cast< wxOrientation >(val6);
30553 if (obj6) {
30554 ecode7 = SWIG_AsVal_int(obj6, &val7);
30555 if (!SWIG_IsOK(ecode7)) {
30556 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30557 }
30558 arg7 = static_cast< int >(val7);
30559 }
30560 {
30561 PyThreadState* __tstate = wxPyBeginAllowThreads();
30562 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30563 wxPyEndAllowThreads(__tstate);
30564 if (PyErr_Occurred()) SWIG_fail;
30565 }
30566 resultobj = SWIG_Py_Void();
30567 return resultobj;
30568fail:
30569 return NULL;
30570}
30571
30572
30573SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30574 PyObject *resultobj = 0;
30575 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30576 wxWindow *arg2 = (wxWindow *) 0 ;
30577 wxDC *arg3 = 0 ;
30578 wxRect *arg4 = 0 ;
30579 int arg5 = (int) 0 ;
30580 void *argp1 = 0 ;
30581 int res1 = 0 ;
30582 void *argp2 = 0 ;
30583 int res2 = 0 ;
30584 void *argp3 = 0 ;
30585 int res3 = 0 ;
30586 wxRect temp4 ;
30587 int val5 ;
30588 int ecode5 = 0 ;
30589 PyObject * obj0 = 0 ;
30590 PyObject * obj1 = 0 ;
30591 PyObject * obj2 = 0 ;
30592 PyObject * obj3 = 0 ;
30593 PyObject * obj4 = 0 ;
30594 char * kwnames[] = {
30595 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30596 };
30597
30598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30600 if (!SWIG_IsOK(res1)) {
30601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30602 }
30603 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30605 if (!SWIG_IsOK(res2)) {
30606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30607 }
30608 arg2 = reinterpret_cast< wxWindow * >(argp2);
30609 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30610 if (!SWIG_IsOK(res3)) {
30611 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30612 }
30613 if (!argp3) {
30614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30615 }
30616 arg3 = reinterpret_cast< wxDC * >(argp3);
30617 {
30618 arg4 = &temp4;
30619 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30620 }
30621 if (obj4) {
30622 ecode5 = SWIG_AsVal_int(obj4, &val5);
30623 if (!SWIG_IsOK(ecode5)) {
30624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30625 }
30626 arg5 = static_cast< int >(val5);
30627 }
30628 {
30629 PyThreadState* __tstate = wxPyBeginAllowThreads();
30630 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30631 wxPyEndAllowThreads(__tstate);
30632 if (PyErr_Occurred()) SWIG_fail;
30633 }
30634 resultobj = SWIG_Py_Void();
30635 return resultobj;
30636fail:
30637 return NULL;
30638}
30639
30640
30641SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30642 PyObject *resultobj = 0;
30643 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30644 wxWindow *arg2 = (wxWindow *) 0 ;
30645 wxDC *arg3 = 0 ;
30646 wxRect *arg4 = 0 ;
30647 int arg5 = (int) 0 ;
30648 void *argp1 = 0 ;
30649 int res1 = 0 ;
30650 void *argp2 = 0 ;
30651 int res2 = 0 ;
30652 void *argp3 = 0 ;
30653 int res3 = 0 ;
30654 wxRect temp4 ;
30655 int val5 ;
30656 int ecode5 = 0 ;
30657 PyObject * obj0 = 0 ;
30658 PyObject * obj1 = 0 ;
30659 PyObject * obj2 = 0 ;
30660 PyObject * obj3 = 0 ;
30661 PyObject * obj4 = 0 ;
30662 char * kwnames[] = {
30663 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30664 };
30665
30666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30668 if (!SWIG_IsOK(res1)) {
30669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30670 }
30671 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30673 if (!SWIG_IsOK(res2)) {
30674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30675 }
30676 arg2 = reinterpret_cast< wxWindow * >(argp2);
30677 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30678 if (!SWIG_IsOK(res3)) {
30679 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30680 }
30681 if (!argp3) {
30682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30683 }
30684 arg3 = reinterpret_cast< wxDC * >(argp3);
30685 {
30686 arg4 = &temp4;
30687 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30688 }
30689 if (obj4) {
30690 ecode5 = SWIG_AsVal_int(obj4, &val5);
30691 if (!SWIG_IsOK(ecode5)) {
30692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30693 }
30694 arg5 = static_cast< int >(val5);
30695 }
30696 {
30697 PyThreadState* __tstate = wxPyBeginAllowThreads();
30698 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30699 wxPyEndAllowThreads(__tstate);
30700 if (PyErr_Occurred()) SWIG_fail;
30701 }
30702 resultobj = SWIG_Py_Void();
30703 return resultobj;
30704fail:
30705 return NULL;
30706}
30707
30708
01f6b6d3
RD
30709SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30710 PyObject *resultobj = 0;
30711 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30712 wxWindow *arg2 = (wxWindow *) 0 ;
30713 wxDC *arg3 = 0 ;
30714 wxRect *arg4 = 0 ;
30715 int arg5 = (int) 0 ;
30716 void *argp1 = 0 ;
30717 int res1 = 0 ;
30718 void *argp2 = 0 ;
30719 int res2 = 0 ;
30720 void *argp3 = 0 ;
30721 int res3 = 0 ;
30722 wxRect temp4 ;
30723 int val5 ;
30724 int ecode5 = 0 ;
30725 PyObject * obj0 = 0 ;
30726 PyObject * obj1 = 0 ;
30727 PyObject * obj2 = 0 ;
30728 PyObject * obj3 = 0 ;
30729 PyObject * obj4 = 0 ;
30730 char * kwnames[] = {
30731 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30732 };
30733
30734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30736 if (!SWIG_IsOK(res1)) {
30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30738 }
30739 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30741 if (!SWIG_IsOK(res2)) {
30742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30743 }
30744 arg2 = reinterpret_cast< wxWindow * >(argp2);
30745 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30746 if (!SWIG_IsOK(res3)) {
30747 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30748 }
30749 if (!argp3) {
30750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30751 }
30752 arg3 = reinterpret_cast< wxDC * >(argp3);
30753 {
30754 arg4 = &temp4;
30755 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30756 }
30757 if (obj4) {
30758 ecode5 = SWIG_AsVal_int(obj4, &val5);
30759 if (!SWIG_IsOK(ecode5)) {
30760 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30761 }
30762 arg5 = static_cast< int >(val5);
30763 }
30764 {
30765 PyThreadState* __tstate = wxPyBeginAllowThreads();
30766 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30767 wxPyEndAllowThreads(__tstate);
30768 if (PyErr_Occurred()) SWIG_fail;
30769 }
30770 resultobj = SWIG_Py_Void();
30771 return resultobj;
30772fail:
30773 return NULL;
30774}
30775
30776
30777SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30778 PyObject *resultobj = 0;
30779 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30780 wxWindow *arg2 = (wxWindow *) 0 ;
30781 wxDC *arg3 = 0 ;
30782 wxRect *arg4 = 0 ;
30783 int arg5 = (int) 0 ;
30784 void *argp1 = 0 ;
30785 int res1 = 0 ;
30786 void *argp2 = 0 ;
30787 int res2 = 0 ;
30788 void *argp3 = 0 ;
30789 int res3 = 0 ;
30790 wxRect temp4 ;
30791 int val5 ;
30792 int ecode5 = 0 ;
30793 PyObject * obj0 = 0 ;
30794 PyObject * obj1 = 0 ;
30795 PyObject * obj2 = 0 ;
30796 PyObject * obj3 = 0 ;
30797 PyObject * obj4 = 0 ;
30798 char * kwnames[] = {
30799 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30800 };
30801
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30806 }
30807 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30809 if (!SWIG_IsOK(res2)) {
30810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30811 }
30812 arg2 = reinterpret_cast< wxWindow * >(argp2);
30813 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30814 if (!SWIG_IsOK(res3)) {
30815 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30816 }
30817 if (!argp3) {
30818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30819 }
30820 arg3 = reinterpret_cast< wxDC * >(argp3);
30821 {
30822 arg4 = &temp4;
30823 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30824 }
30825 if (obj4) {
30826 ecode5 = SWIG_AsVal_int(obj4, &val5);
30827 if (!SWIG_IsOK(ecode5)) {
30828 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30829 }
30830 arg5 = static_cast< int >(val5);
30831 }
30832 {
30833 PyThreadState* __tstate = wxPyBeginAllowThreads();
30834 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30835 wxPyEndAllowThreads(__tstate);
30836 if (PyErr_Occurred()) SWIG_fail;
30837 }
30838 resultobj = SWIG_Py_Void();
30839 return resultobj;
30840fail:
30841 return NULL;
30842}
30843
30844
30845SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
30846 PyObject *resultobj = 0;
30847 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30848 wxWindow *arg2 = (wxWindow *) 0 ;
30849 wxDC *arg3 = 0 ;
30850 wxRect *arg4 = 0 ;
30851 int arg5 = (int) 0 ;
30852 void *argp1 = 0 ;
30853 int res1 = 0 ;
30854 void *argp2 = 0 ;
30855 int res2 = 0 ;
30856 void *argp3 = 0 ;
30857 int res3 = 0 ;
30858 wxRect temp4 ;
30859 int val5 ;
30860 int ecode5 = 0 ;
30861 PyObject * obj0 = 0 ;
30862 PyObject * obj1 = 0 ;
30863 PyObject * obj2 = 0 ;
30864 PyObject * obj3 = 0 ;
30865 PyObject * obj4 = 0 ;
30866 char * kwnames[] = {
30867 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30868 };
30869
01f6b6d3 30870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
30871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30872 if (!SWIG_IsOK(res1)) {
01f6b6d3 30873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
30874 }
30875 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30877 if (!SWIG_IsOK(res2)) {
01f6b6d3 30878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
30879 }
30880 arg2 = reinterpret_cast< wxWindow * >(argp2);
30881 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30882 if (!SWIG_IsOK(res3)) {
01f6b6d3 30883 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
30884 }
30885 if (!argp3) {
01f6b6d3 30886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
30887 }
30888 arg3 = reinterpret_cast< wxDC * >(argp3);
30889 {
30890 arg4 = &temp4;
30891 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30892 }
30893 if (obj4) {
30894 ecode5 = SWIG_AsVal_int(obj4, &val5);
30895 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 30896 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
30897 }
30898 arg5 = static_cast< int >(val5);
30899 }
30900 {
30901 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 30902 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
30903 wxPyEndAllowThreads(__tstate);
30904 if (PyErr_Occurred()) SWIG_fail;
30905 }
30906 resultobj = SWIG_Py_Void();
30907 return resultobj;
30908fail:
30909 return NULL;
30910}
30911
30912
0085ce49
RD
30913SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30914 PyObject *resultobj = 0;
30915 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30916 wxWindow *arg2 = (wxWindow *) 0 ;
30917 SwigValueWrapper<wxSplitterRenderParams > result;
30918 void *argp1 = 0 ;
30919 int res1 = 0 ;
30920 void *argp2 = 0 ;
30921 int res2 = 0 ;
30922 PyObject * obj0 = 0 ;
30923 PyObject * obj1 = 0 ;
30924 char * kwnames[] = {
30925 (char *) "self",(char *) "win", NULL
30926 };
30927
30928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30930 if (!SWIG_IsOK(res1)) {
30931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30932 }
30933 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30935 if (!SWIG_IsOK(res2)) {
30936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30937 }
30938 arg2 = reinterpret_cast< wxWindow * >(argp2);
30939 {
30940 PyThreadState* __tstate = wxPyBeginAllowThreads();
30941 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30942 wxPyEndAllowThreads(__tstate);
30943 if (PyErr_Occurred()) SWIG_fail;
30944 }
30945 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30946 return resultobj;
30947fail:
30948 return NULL;
30949}
30950
30951
30952SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30953 PyObject *resultobj = 0;
30954 wxRendererNative *result = 0 ;
30955
30956 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30957 {
704eda0c 30958 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30959 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30960 {
0085ce49
RD
30961 wxRendererNative &_result_ref = wxRendererNative::Get();
30962 result = (wxRendererNative *) &_result_ref;
093d3ff1 30963 }
0085ce49
RD
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30968 return resultobj;
30969fail:
30970 return NULL;
30971}
30972
30973
30974SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30975 PyObject *resultobj = 0;
30976 wxRendererNative *result = 0 ;
30977
30978 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30979 {
704eda0c 30980 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 30982 {
0085ce49
RD
30983 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30984 result = (wxRendererNative *) &_result_ref;
8d38bd1d 30985 }
0085ce49
RD
30986 wxPyEndAllowThreads(__tstate);
30987 if (PyErr_Occurred()) SWIG_fail;
30988 }
30989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30990 return resultobj;
30991fail:
30992 return NULL;
30993}
30994
30995
30996SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30997 PyObject *resultobj = 0;
30998 wxRendererNative *result = 0 ;
30999
31000 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31001 {
704eda0c 31002 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 31004 {
0085ce49
RD
31005 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31006 result = (wxRendererNative *) &_result_ref;
8d38bd1d 31007 }
0085ce49
RD
31008 wxPyEndAllowThreads(__tstate);
31009 if (PyErr_Occurred()) SWIG_fail;
31010 }
31011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31012 return resultobj;
31013fail:
31014 return NULL;
31015}
31016
31017
31018SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31019 PyObject *resultobj = 0;
31020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31021 wxRendererNative *result = 0 ;
31022 void *argp1 = 0 ;
31023 int res1 = 0 ;
31024 PyObject * obj0 = 0 ;
31025 char * kwnames[] = {
31026 (char *) "renderer", NULL
31027 };
31028
31029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31031 if (!SWIG_IsOK(res1)) {
31032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31033 }
31034 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31035 {
704eda0c 31036 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
31037 PyThreadState* __tstate = wxPyBeginAllowThreads();
31038 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31039 wxPyEndAllowThreads(__tstate);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31043 return resultobj;
31044fail:
31045 return NULL;
31046}
31047
31048
31049SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31050 PyObject *resultobj = 0;
31051 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31052 SwigValueWrapper<wxRendererVersion > result;
31053 void *argp1 = 0 ;
31054 int res1 = 0 ;
31055 PyObject *swig_obj[1] ;
31056
31057 if (!args) SWIG_fail;
31058 swig_obj[0] = args;
31059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31060 if (!SWIG_IsOK(res1)) {
31061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31062 }
31063 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31064 {
31065 PyThreadState* __tstate = wxPyBeginAllowThreads();
31066 result = ((wxRendererNative const *)arg1)->GetVersion();
31067 wxPyEndAllowThreads(__tstate);
31068 if (PyErr_Occurred()) SWIG_fail;
31069 }
31070 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31071 return resultobj;
31072fail:
31073 return NULL;
31074}
31075
31076
31077SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31078 PyObject *obj;
31079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31080 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31081 return SWIG_Py_Void();
31082}
31083
27e45892
RD
31084SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31085 PyObject *resultobj = 0;
31086 wxPseudoDC *result = 0 ;
31087
31088 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31089 {
31090 PyThreadState* __tstate = wxPyBeginAllowThreads();
31091 result = (wxPseudoDC *)new wxPseudoDC();
31092 wxPyEndAllowThreads(__tstate);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31096 return resultobj;
31097fail:
31098 return NULL;
31099}
31100
31101
31102SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31103 PyObject *resultobj = 0;
31104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31105 void *argp1 = 0 ;
31106 int res1 = 0 ;
31107 PyObject *swig_obj[1] ;
31108
31109 if (!args) SWIG_fail;
31110 swig_obj[0] = args;
31111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31112 if (!SWIG_IsOK(res1)) {
31113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31114 }
31115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31116 {
31117 PyThreadState* __tstate = wxPyBeginAllowThreads();
31118 (arg1)->BeginDrawing();
31119 wxPyEndAllowThreads(__tstate);
31120 if (PyErr_Occurred()) SWIG_fail;
31121 }
31122 resultobj = SWIG_Py_Void();
31123 return resultobj;
31124fail:
31125 return NULL;
31126}
31127
31128
31129SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31130 PyObject *resultobj = 0;
31131 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31132 void *argp1 = 0 ;
31133 int res1 = 0 ;
31134 PyObject *swig_obj[1] ;
31135
31136 if (!args) SWIG_fail;
31137 swig_obj[0] = args;
31138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31139 if (!SWIG_IsOK(res1)) {
31140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31141 }
31142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31143 {
31144 PyThreadState* __tstate = wxPyBeginAllowThreads();
31145 (arg1)->EndDrawing();
31146 wxPyEndAllowThreads(__tstate);
31147 if (PyErr_Occurred()) SWIG_fail;
31148 }
31149 resultobj = SWIG_Py_Void();
31150 return resultobj;
31151fail:
31152 return NULL;
31153}
31154
31155
31156SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31157 PyObject *resultobj = 0;
31158 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31159 void *argp1 = 0 ;
31160 int res1 = 0 ;
31161 PyObject *swig_obj[1] ;
31162
31163 if (!args) SWIG_fail;
31164 swig_obj[0] = args;
31165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31166 if (!SWIG_IsOK(res1)) {
31167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31168 }
31169 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31170 {
31171 PyThreadState* __tstate = wxPyBeginAllowThreads();
31172 delete arg1;
31173
31174 wxPyEndAllowThreads(__tstate);
31175 if (PyErr_Occurred()) SWIG_fail;
31176 }
31177 resultobj = SWIG_Py_Void();
31178 return resultobj;
31179fail:
31180 return NULL;
31181}
31182
31183
31184SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31185 PyObject *resultobj = 0;
31186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
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_wxPseudoDC, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31196 }
31197 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31198 {
31199 PyThreadState* __tstate = wxPyBeginAllowThreads();
31200 (arg1)->RemoveAll();
31201 wxPyEndAllowThreads(__tstate);
31202 if (PyErr_Occurred()) SWIG_fail;
31203 }
31204 resultobj = SWIG_Py_Void();
31205 return resultobj;
31206fail:
31207 return NULL;
31208}
31209
31210
31211SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31212 PyObject *resultobj = 0;
31213 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31214 int result;
31215 void *argp1 = 0 ;
31216 int res1 = 0 ;
31217 PyObject *swig_obj[1] ;
31218
31219 if (!args) SWIG_fail;
31220 swig_obj[0] = args;
31221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31222 if (!SWIG_IsOK(res1)) {
31223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31224 }
31225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31226 {
31227 PyThreadState* __tstate = wxPyBeginAllowThreads();
31228 result = (int)(arg1)->GetLen();
31229 wxPyEndAllowThreads(__tstate);
31230 if (PyErr_Occurred()) SWIG_fail;
31231 }
31232 resultobj = SWIG_From_int(static_cast< int >(result));
31233 return resultobj;
31234fail:
31235 return NULL;
31236}
31237
31238
31239SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31240 PyObject *resultobj = 0;
31241 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31242 int arg2 ;
31243 void *argp1 = 0 ;
31244 int res1 = 0 ;
31245 int val2 ;
31246 int ecode2 = 0 ;
31247 PyObject * obj0 = 0 ;
31248 PyObject * obj1 = 0 ;
31249 char * kwnames[] = {
31250 (char *) "self",(char *) "id", NULL
31251 };
31252
31253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31255 if (!SWIG_IsOK(res1)) {
31256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31257 }
31258 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31259 ecode2 = SWIG_AsVal_int(obj1, &val2);
31260 if (!SWIG_IsOK(ecode2)) {
31261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31262 }
31263 arg2 = static_cast< int >(val2);
31264 {
31265 PyThreadState* __tstate = wxPyBeginAllowThreads();
31266 (arg1)->SetId(arg2);
31267 wxPyEndAllowThreads(__tstate);
31268 if (PyErr_Occurred()) SWIG_fail;
31269 }
31270 resultobj = SWIG_Py_Void();
31271 return resultobj;
31272fail:
31273 return NULL;
31274}
31275
31276
31277SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31278 PyObject *resultobj = 0;
31279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31280 int arg2 ;
31281 void *argp1 = 0 ;
31282 int res1 = 0 ;
31283 int val2 ;
31284 int ecode2 = 0 ;
31285 PyObject * obj0 = 0 ;
31286 PyObject * obj1 = 0 ;
31287 char * kwnames[] = {
31288 (char *) "self",(char *) "id", NULL
31289 };
31290
31291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31293 if (!SWIG_IsOK(res1)) {
31294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31295 }
31296 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31297 ecode2 = SWIG_AsVal_int(obj1, &val2);
31298 if (!SWIG_IsOK(ecode2)) {
31299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31300 }
31301 arg2 = static_cast< int >(val2);
31302 {
31303 PyThreadState* __tstate = wxPyBeginAllowThreads();
31304 (arg1)->ClearId(arg2);
31305 wxPyEndAllowThreads(__tstate);
31306 if (PyErr_Occurred()) SWIG_fail;
31307 }
31308 resultobj = SWIG_Py_Void();
31309 return resultobj;
31310fail:
31311 return NULL;
31312}
31313
31314
31315SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31316 PyObject *resultobj = 0;
31317 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31318 int arg2 ;
31319 void *argp1 = 0 ;
31320 int res1 = 0 ;
31321 int val2 ;
31322 int ecode2 = 0 ;
31323 PyObject * obj0 = 0 ;
31324 PyObject * obj1 = 0 ;
31325 char * kwnames[] = {
31326 (char *) "self",(char *) "id", NULL
31327 };
31328
31329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31331 if (!SWIG_IsOK(res1)) {
31332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31333 }
31334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31335 ecode2 = SWIG_AsVal_int(obj1, &val2);
31336 if (!SWIG_IsOK(ecode2)) {
31337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31338 }
31339 arg2 = static_cast< int >(val2);
31340 {
31341 PyThreadState* __tstate = wxPyBeginAllowThreads();
31342 (arg1)->RemoveId(arg2);
31343 wxPyEndAllowThreads(__tstate);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 }
31346 resultobj = SWIG_Py_Void();
31347 return resultobj;
31348fail:
31349 return NULL;
31350}
31351
31352
31353SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31354 PyObject *resultobj = 0;
31355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31356 int arg2 ;
31357 int arg3 ;
31358 int arg4 ;
31359 void *argp1 = 0 ;
31360 int res1 = 0 ;
31361 int val2 ;
31362 int ecode2 = 0 ;
31363 int val3 ;
31364 int ecode3 = 0 ;
31365 int val4 ;
31366 int ecode4 = 0 ;
31367 PyObject * obj0 = 0 ;
31368 PyObject * obj1 = 0 ;
31369 PyObject * obj2 = 0 ;
31370 PyObject * obj3 = 0 ;
31371 char * kwnames[] = {
31372 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31373 };
31374
31375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31377 if (!SWIG_IsOK(res1)) {
31378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31379 }
31380 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31381 ecode2 = SWIG_AsVal_int(obj1, &val2);
31382 if (!SWIG_IsOK(ecode2)) {
31383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31384 }
31385 arg2 = static_cast< int >(val2);
31386 ecode3 = SWIG_AsVal_int(obj2, &val3);
31387 if (!SWIG_IsOK(ecode3)) {
31388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31389 }
31390 arg3 = static_cast< int >(val3);
31391 ecode4 = SWIG_AsVal_int(obj3, &val4);
31392 if (!SWIG_IsOK(ecode4)) {
31393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31394 }
31395 arg4 = static_cast< int >(val4);
31396 {
31397 PyThreadState* __tstate = wxPyBeginAllowThreads();
31398 (arg1)->TranslateId(arg2,arg3,arg4);
31399 wxPyEndAllowThreads(__tstate);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 }
31402 resultobj = SWIG_Py_Void();
31403 return resultobj;
31404fail:
31405 return NULL;
31406}
31407
31408
72ef6efb
RD
31409SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31410 PyObject *resultobj = 0;
31411 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31412 int arg2 ;
31413 bool arg3 = (bool) true ;
31414 void *argp1 = 0 ;
31415 int res1 = 0 ;
31416 int val2 ;
31417 int ecode2 = 0 ;
31418 bool val3 ;
31419 int ecode3 = 0 ;
31420 PyObject * obj0 = 0 ;
31421 PyObject * obj1 = 0 ;
31422 PyObject * obj2 = 0 ;
31423 char * kwnames[] = {
31424 (char *) "self",(char *) "id",(char *) "greyout", NULL
31425 };
31426
31427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31429 if (!SWIG_IsOK(res1)) {
31430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31431 }
31432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31433 ecode2 = SWIG_AsVal_int(obj1, &val2);
31434 if (!SWIG_IsOK(ecode2)) {
31435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31436 }
31437 arg2 = static_cast< int >(val2);
31438 if (obj2) {
31439 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31440 if (!SWIG_IsOK(ecode3)) {
31441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31442 }
31443 arg3 = static_cast< bool >(val3);
31444 }
31445 {
31446 PyThreadState* __tstate = wxPyBeginAllowThreads();
31447 (arg1)->SetIdGreyedOut(arg2,arg3);
31448 wxPyEndAllowThreads(__tstate);
31449 if (PyErr_Occurred()) SWIG_fail;
31450 }
31451 resultobj = SWIG_Py_Void();
31452 return resultobj;
31453fail:
31454 return NULL;
31455}
31456
31457
31458SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31459 PyObject *resultobj = 0;
31460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31461 int arg2 ;
31462 bool result;
31463 void *argp1 = 0 ;
31464 int res1 = 0 ;
31465 int val2 ;
31466 int ecode2 = 0 ;
31467 PyObject * obj0 = 0 ;
31468 PyObject * obj1 = 0 ;
31469 char * kwnames[] = {
31470 (char *) "self",(char *) "id", NULL
31471 };
31472
31473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31475 if (!SWIG_IsOK(res1)) {
31476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31477 }
31478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31479 ecode2 = SWIG_AsVal_int(obj1, &val2);
31480 if (!SWIG_IsOK(ecode2)) {
31481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31482 }
31483 arg2 = static_cast< int >(val2);
31484 {
31485 PyThreadState* __tstate = wxPyBeginAllowThreads();
31486 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31487 wxPyEndAllowThreads(__tstate);
31488 if (PyErr_Occurred()) SWIG_fail;
31489 }
31490 {
31491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31492 }
31493 return resultobj;
31494fail:
31495 return NULL;
31496}
31497
31498
31499SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31500 PyObject *resultobj = 0;
31501 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31502 int arg2 ;
31503 int arg3 ;
31504 int arg4 = (int) 1 ;
31505 wxColor const &arg5_defvalue = *wxWHITE ;
31506 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31507 PyObject *result = 0 ;
31508 void *argp1 = 0 ;
31509 int res1 = 0 ;
31510 int val2 ;
31511 int ecode2 = 0 ;
31512 int val3 ;
31513 int ecode3 = 0 ;
31514 int val4 ;
31515 int ecode4 = 0 ;
31516 void *argp5 = 0 ;
31517 int res5 = 0 ;
31518 PyObject * obj0 = 0 ;
31519 PyObject * obj1 = 0 ;
31520 PyObject * obj2 = 0 ;
31521 PyObject * obj3 = 0 ;
31522 PyObject * obj4 = 0 ;
31523 char * kwnames[] = {
31524 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31525 };
31526
31527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31529 if (!SWIG_IsOK(res1)) {
31530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31531 }
31532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31533 ecode2 = SWIG_AsVal_int(obj1, &val2);
31534 if (!SWIG_IsOK(ecode2)) {
31535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31536 }
31537 arg2 = static_cast< int >(val2);
31538 ecode3 = SWIG_AsVal_int(obj2, &val3);
31539 if (!SWIG_IsOK(ecode3)) {
31540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31541 }
31542 arg3 = static_cast< int >(val3);
31543 if (obj3) {
31544 ecode4 = SWIG_AsVal_int(obj3, &val4);
31545 if (!SWIG_IsOK(ecode4)) {
31546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31547 }
31548 arg4 = static_cast< int >(val4);
31549 }
31550 if (obj4) {
31551 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31552 if (!SWIG_IsOK(res5)) {
31553 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31554 }
31555 if (!argp5) {
31556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31557 }
31558 arg5 = reinterpret_cast< wxColor * >(argp5);
31559 }
31560 {
31561 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31562 if (PyErr_Occurred()) SWIG_fail;
31563 }
31564 resultobj = result;
31565 return resultobj;
31566fail:
31567 return NULL;
31568}
31569
31570
31571SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31572 PyObject *resultobj = 0;
31573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31574 int arg2 ;
31575 int arg3 ;
31576 PyObject *result = 0 ;
31577 void *argp1 = 0 ;
31578 int res1 = 0 ;
31579 int val2 ;
31580 int ecode2 = 0 ;
31581 int val3 ;
31582 int ecode3 = 0 ;
31583 PyObject * obj0 = 0 ;
31584 PyObject * obj1 = 0 ;
31585 PyObject * obj2 = 0 ;
31586 char * kwnames[] = {
31587 (char *) "self",(char *) "x",(char *) "y", NULL
31588 };
31589
31590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31592 if (!SWIG_IsOK(res1)) {
31593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31594 }
31595 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31596 ecode2 = SWIG_AsVal_int(obj1, &val2);
31597 if (!SWIG_IsOK(ecode2)) {
31598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31599 }
31600 arg2 = static_cast< int >(val2);
31601 ecode3 = SWIG_AsVal_int(obj2, &val3);
31602 if (!SWIG_IsOK(ecode3)) {
31603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31604 }
31605 arg3 = static_cast< int >(val3);
31606 {
31607 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31608 if (PyErr_Occurred()) SWIG_fail;
31609 }
31610 resultobj = result;
31611 return resultobj;
31612fail:
31613 return NULL;
31614}
31615
31616
27e45892
RD
31617SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31618 PyObject *resultobj = 0;
31619 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31620 int arg2 ;
31621 wxDC *arg3 = (wxDC *) 0 ;
31622 void *argp1 = 0 ;
31623 int res1 = 0 ;
31624 int val2 ;
31625 int ecode2 = 0 ;
31626 void *argp3 = 0 ;
31627 int res3 = 0 ;
31628 PyObject * obj0 = 0 ;
31629 PyObject * obj1 = 0 ;
31630 PyObject * obj2 = 0 ;
31631 char * kwnames[] = {
31632 (char *) "self",(char *) "id",(char *) "dc", NULL
31633 };
31634
31635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31637 if (!SWIG_IsOK(res1)) {
31638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31639 }
31640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31641 ecode2 = SWIG_AsVal_int(obj1, &val2);
31642 if (!SWIG_IsOK(ecode2)) {
31643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31644 }
31645 arg2 = static_cast< int >(val2);
31646 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31647 if (!SWIG_IsOK(res3)) {
31648 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31649 }
31650 arg3 = reinterpret_cast< wxDC * >(argp3);
31651 {
31652 PyThreadState* __tstate = wxPyBeginAllowThreads();
31653 (arg1)->DrawIdToDC(arg2,arg3);
31654 wxPyEndAllowThreads(__tstate);
31655 if (PyErr_Occurred()) SWIG_fail;
31656 }
31657 resultobj = SWIG_Py_Void();
31658 return resultobj;
31659fail:
31660 return NULL;
31661}
31662
31663
31664SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31665 PyObject *resultobj = 0;
31666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31667 int arg2 ;
31668 wxRect *arg3 = 0 ;
31669 void *argp1 = 0 ;
31670 int res1 = 0 ;
31671 int val2 ;
31672 int ecode2 = 0 ;
31673 wxRect temp3 ;
31674 PyObject * obj0 = 0 ;
31675 PyObject * obj1 = 0 ;
31676 PyObject * obj2 = 0 ;
31677 char * kwnames[] = {
31678 (char *) "self",(char *) "id",(char *) "rect", NULL
31679 };
31680
31681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31685 }
31686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31687 ecode2 = SWIG_AsVal_int(obj1, &val2);
31688 if (!SWIG_IsOK(ecode2)) {
31689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31690 }
31691 arg2 = static_cast< int >(val2);
31692 {
31693 arg3 = &temp3;
31694 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31695 }
31696 {
31697 PyThreadState* __tstate = wxPyBeginAllowThreads();
31698 (arg1)->SetIdBounds(arg2,*arg3);
31699 wxPyEndAllowThreads(__tstate);
31700 if (PyErr_Occurred()) SWIG_fail;
31701 }
31702 resultobj = SWIG_Py_Void();
31703 return resultobj;
31704fail:
31705 return NULL;
31706}
31707
31708
31709SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31710 PyObject *resultobj = 0;
31711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31712 int arg2 ;
31713 wxRect result;
31714 void *argp1 = 0 ;
31715 int res1 = 0 ;
31716 int val2 ;
31717 int ecode2 = 0 ;
31718 PyObject * obj0 = 0 ;
31719 PyObject * obj1 = 0 ;
31720 char * kwnames[] = {
31721 (char *) "self",(char *) "id", NULL
31722 };
31723
31724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31726 if (!SWIG_IsOK(res1)) {
31727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31728 }
31729 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31730 ecode2 = SWIG_AsVal_int(obj1, &val2);
31731 if (!SWIG_IsOK(ecode2)) {
31732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31733 }
31734 arg2 = static_cast< int >(val2);
31735 {
31736 PyThreadState* __tstate = wxPyBeginAllowThreads();
31737 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31738 wxPyEndAllowThreads(__tstate);
31739 if (PyErr_Occurred()) SWIG_fail;
31740 }
31741 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31742 return resultobj;
31743fail:
31744 return NULL;
31745}
31746
31747
31748SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31749 PyObject *resultobj = 0;
31750 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31751 wxDC *arg2 = (wxDC *) 0 ;
31752 wxRect *arg3 = 0 ;
31753 void *argp1 = 0 ;
31754 int res1 = 0 ;
31755 void *argp2 = 0 ;
31756 int res2 = 0 ;
31757 wxRect temp3 ;
31758 PyObject * obj0 = 0 ;
31759 PyObject * obj1 = 0 ;
31760 PyObject * obj2 = 0 ;
31761 char * kwnames[] = {
31762 (char *) "self",(char *) "dc",(char *) "rect", NULL
31763 };
31764
31765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31767 if (!SWIG_IsOK(res1)) {
31768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31769 }
31770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31772 if (!SWIG_IsOK(res2)) {
31773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31774 }
31775 arg2 = reinterpret_cast< wxDC * >(argp2);
31776 {
31777 arg3 = &temp3;
31778 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31779 }
31780 {
31781 PyThreadState* __tstate = wxPyBeginAllowThreads();
31782 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31783 wxPyEndAllowThreads(__tstate);
31784 if (PyErr_Occurred()) SWIG_fail;
31785 }
31786 resultobj = SWIG_Py_Void();
31787 return resultobj;
31788fail:
31789 return NULL;
31790}
31791
31792
31793SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31794 PyObject *resultobj = 0;
31795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31796 wxDC *arg2 = (wxDC *) 0 ;
31797 wxRegion *arg3 = 0 ;
31798 void *argp1 = 0 ;
31799 int res1 = 0 ;
31800 void *argp2 = 0 ;
31801 int res2 = 0 ;
31802 void *argp3 = 0 ;
31803 int res3 = 0 ;
31804 PyObject * obj0 = 0 ;
31805 PyObject * obj1 = 0 ;
31806 PyObject * obj2 = 0 ;
31807 char * kwnames[] = {
31808 (char *) "self",(char *) "dc",(char *) "region", NULL
31809 };
31810
31811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31813 if (!SWIG_IsOK(res1)) {
31814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31815 }
31816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31818 if (!SWIG_IsOK(res2)) {
31819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31820 }
31821 arg2 = reinterpret_cast< wxDC * >(argp2);
31822 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31823 if (!SWIG_IsOK(res3)) {
31824 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31825 }
31826 if (!argp3) {
31827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31828 }
31829 arg3 = reinterpret_cast< wxRegion * >(argp3);
31830 {
31831 PyThreadState* __tstate = wxPyBeginAllowThreads();
31832 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31833 wxPyEndAllowThreads(__tstate);
31834 if (PyErr_Occurred()) SWIG_fail;
31835 }
31836 resultobj = SWIG_Py_Void();
31837 return resultobj;
31838fail:
31839 return NULL;
31840}
31841
31842
31843SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31844 PyObject *resultobj = 0;
31845 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31846 wxDC *arg2 = (wxDC *) 0 ;
31847 void *argp1 = 0 ;
31848 int res1 = 0 ;
31849 void *argp2 = 0 ;
31850 int res2 = 0 ;
31851 PyObject * obj0 = 0 ;
31852 PyObject * obj1 = 0 ;
31853 char * kwnames[] = {
31854 (char *) "self",(char *) "dc", NULL
31855 };
31856
31857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31859 if (!SWIG_IsOK(res1)) {
31860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31861 }
31862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31863 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31864 if (!SWIG_IsOK(res2)) {
31865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31866 }
31867 arg2 = reinterpret_cast< wxDC * >(argp2);
31868 {
31869 PyThreadState* __tstate = wxPyBeginAllowThreads();
31870 (arg1)->DrawToDC(arg2);
31871 wxPyEndAllowThreads(__tstate);
31872 if (PyErr_Occurred()) SWIG_fail;
31873 }
31874 resultobj = SWIG_Py_Void();
31875 return resultobj;
31876fail:
31877 return NULL;
31878}
31879
31880
31881SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31882 PyObject *resultobj = 0;
31883 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31884 int arg2 ;
31885 int arg3 ;
31886 wxColour *arg4 = 0 ;
31887 int arg5 = (int) wxFLOOD_SURFACE ;
31888 void *argp1 = 0 ;
31889 int res1 = 0 ;
31890 int val2 ;
31891 int ecode2 = 0 ;
31892 int val3 ;
31893 int ecode3 = 0 ;
31894 wxColour temp4 ;
31895 int val5 ;
31896 int ecode5 = 0 ;
31897 PyObject * obj0 = 0 ;
31898 PyObject * obj1 = 0 ;
31899 PyObject * obj2 = 0 ;
31900 PyObject * obj3 = 0 ;
31901 PyObject * obj4 = 0 ;
31902 char * kwnames[] = {
31903 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31904 };
31905
31906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31908 if (!SWIG_IsOK(res1)) {
31909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31910 }
31911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31912 ecode2 = SWIG_AsVal_int(obj1, &val2);
31913 if (!SWIG_IsOK(ecode2)) {
31914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31915 }
31916 arg2 = static_cast< int >(val2);
31917 ecode3 = SWIG_AsVal_int(obj2, &val3);
31918 if (!SWIG_IsOK(ecode3)) {
31919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31920 }
31921 arg3 = static_cast< int >(val3);
31922 {
31923 arg4 = &temp4;
31924 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31925 }
31926 if (obj4) {
31927 ecode5 = SWIG_AsVal_int(obj4, &val5);
31928 if (!SWIG_IsOK(ecode5)) {
31929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31930 }
31931 arg5 = static_cast< int >(val5);
31932 }
31933 {
31934 PyThreadState* __tstate = wxPyBeginAllowThreads();
31935 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31936 wxPyEndAllowThreads(__tstate);
31937 if (PyErr_Occurred()) SWIG_fail;
31938 }
31939 resultobj = SWIG_Py_Void();
31940 return resultobj;
31941fail:
31942 return NULL;
31943}
31944
31945
31946SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31947 PyObject *resultobj = 0;
31948 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31949 wxPoint *arg2 = 0 ;
31950 wxColour *arg3 = 0 ;
31951 int arg4 = (int) wxFLOOD_SURFACE ;
31952 void *argp1 = 0 ;
31953 int res1 = 0 ;
31954 wxPoint temp2 ;
31955 wxColour temp3 ;
31956 int val4 ;
31957 int ecode4 = 0 ;
31958 PyObject * obj0 = 0 ;
31959 PyObject * obj1 = 0 ;
31960 PyObject * obj2 = 0 ;
31961 PyObject * obj3 = 0 ;
31962 char * kwnames[] = {
31963 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31964 };
31965
31966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31968 if (!SWIG_IsOK(res1)) {
31969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31970 }
31971 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31972 {
31973 arg2 = &temp2;
31974 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31975 }
31976 {
31977 arg3 = &temp3;
31978 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31979 }
31980 if (obj3) {
31981 ecode4 = SWIG_AsVal_int(obj3, &val4);
31982 if (!SWIG_IsOK(ecode4)) {
31983 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31984 }
31985 arg4 = static_cast< int >(val4);
31986 }
31987 {
31988 PyThreadState* __tstate = wxPyBeginAllowThreads();
31989 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31990 wxPyEndAllowThreads(__tstate);
31991 if (PyErr_Occurred()) SWIG_fail;
31992 }
31993 resultobj = SWIG_Py_Void();
31994 return resultobj;
31995fail:
31996 return NULL;
31997}
31998
31999
32000SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32001 PyObject *resultobj = 0;
32002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32003 int arg2 ;
32004 int arg3 ;
32005 int arg4 ;
32006 int arg5 ;
32007 void *argp1 = 0 ;
32008 int res1 = 0 ;
32009 int val2 ;
32010 int ecode2 = 0 ;
32011 int val3 ;
32012 int ecode3 = 0 ;
32013 int val4 ;
32014 int ecode4 = 0 ;
32015 int val5 ;
32016 int ecode5 = 0 ;
32017 PyObject * obj0 = 0 ;
32018 PyObject * obj1 = 0 ;
32019 PyObject * obj2 = 0 ;
32020 PyObject * obj3 = 0 ;
32021 PyObject * obj4 = 0 ;
32022 char * kwnames[] = {
32023 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32024 };
32025
32026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32028 if (!SWIG_IsOK(res1)) {
32029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32030 }
32031 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32032 ecode2 = SWIG_AsVal_int(obj1, &val2);
32033 if (!SWIG_IsOK(ecode2)) {
32034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32035 }
32036 arg2 = static_cast< int >(val2);
32037 ecode3 = SWIG_AsVal_int(obj2, &val3);
32038 if (!SWIG_IsOK(ecode3)) {
32039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32040 }
32041 arg3 = static_cast< int >(val3);
32042 ecode4 = SWIG_AsVal_int(obj3, &val4);
32043 if (!SWIG_IsOK(ecode4)) {
32044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32045 }
32046 arg4 = static_cast< int >(val4);
32047 ecode5 = SWIG_AsVal_int(obj4, &val5);
32048 if (!SWIG_IsOK(ecode5)) {
32049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32050 }
32051 arg5 = static_cast< int >(val5);
32052 {
32053 PyThreadState* __tstate = wxPyBeginAllowThreads();
32054 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32055 wxPyEndAllowThreads(__tstate);
32056 if (PyErr_Occurred()) SWIG_fail;
32057 }
32058 resultobj = SWIG_Py_Void();
32059 return resultobj;
32060fail:
32061 return NULL;
32062}
32063
32064
32065SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32066 PyObject *resultobj = 0;
32067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32068 wxPoint *arg2 = 0 ;
32069 wxPoint *arg3 = 0 ;
32070 void *argp1 = 0 ;
32071 int res1 = 0 ;
32072 wxPoint temp2 ;
32073 wxPoint temp3 ;
32074 PyObject * obj0 = 0 ;
32075 PyObject * obj1 = 0 ;
32076 PyObject * obj2 = 0 ;
32077 char * kwnames[] = {
32078 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32079 };
32080
32081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32083 if (!SWIG_IsOK(res1)) {
32084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32085 }
32086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32087 {
32088 arg2 = &temp2;
32089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32090 }
32091 {
32092 arg3 = &temp3;
32093 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32094 }
32095 {
32096 PyThreadState* __tstate = wxPyBeginAllowThreads();
32097 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32098 wxPyEndAllowThreads(__tstate);
32099 if (PyErr_Occurred()) SWIG_fail;
32100 }
32101 resultobj = SWIG_Py_Void();
32102 return resultobj;
32103fail:
32104 return NULL;
32105}
32106
32107
32108SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32109 PyObject *resultobj = 0;
32110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32111 int arg2 ;
32112 int arg3 ;
32113 void *argp1 = 0 ;
32114 int res1 = 0 ;
32115 int val2 ;
32116 int ecode2 = 0 ;
32117 int val3 ;
32118 int ecode3 = 0 ;
32119 PyObject * obj0 = 0 ;
32120 PyObject * obj1 = 0 ;
32121 PyObject * obj2 = 0 ;
32122 char * kwnames[] = {
32123 (char *) "self",(char *) "x",(char *) "y", NULL
32124 };
32125
32126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32128 if (!SWIG_IsOK(res1)) {
32129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32130 }
32131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32132 ecode2 = SWIG_AsVal_int(obj1, &val2);
32133 if (!SWIG_IsOK(ecode2)) {
32134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32135 }
32136 arg2 = static_cast< int >(val2);
32137 ecode3 = SWIG_AsVal_int(obj2, &val3);
32138 if (!SWIG_IsOK(ecode3)) {
32139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32140 }
32141 arg3 = static_cast< int >(val3);
32142 {
32143 PyThreadState* __tstate = wxPyBeginAllowThreads();
32144 (arg1)->CrossHair(arg2,arg3);
32145 wxPyEndAllowThreads(__tstate);
32146 if (PyErr_Occurred()) SWIG_fail;
32147 }
32148 resultobj = SWIG_Py_Void();
32149 return resultobj;
32150fail:
32151 return NULL;
32152}
32153
32154
32155SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32156 PyObject *resultobj = 0;
32157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32158 wxPoint *arg2 = 0 ;
32159 void *argp1 = 0 ;
32160 int res1 = 0 ;
32161 wxPoint temp2 ;
32162 PyObject * obj0 = 0 ;
32163 PyObject * obj1 = 0 ;
32164 char * kwnames[] = {
32165 (char *) "self",(char *) "pt", NULL
32166 };
32167
32168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32170 if (!SWIG_IsOK(res1)) {
32171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32172 }
32173 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32174 {
32175 arg2 = &temp2;
32176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32177 }
32178 {
32179 PyThreadState* __tstate = wxPyBeginAllowThreads();
32180 (arg1)->CrossHair((wxPoint const &)*arg2);
32181 wxPyEndAllowThreads(__tstate);
32182 if (PyErr_Occurred()) SWIG_fail;
32183 }
32184 resultobj = SWIG_Py_Void();
32185 return resultobj;
32186fail:
32187 return NULL;
32188}
32189
32190
32191SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32192 PyObject *resultobj = 0;
32193 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32194 int arg2 ;
32195 int arg3 ;
32196 int arg4 ;
32197 int arg5 ;
32198 int arg6 ;
32199 int arg7 ;
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
32202 int val2 ;
32203 int ecode2 = 0 ;
32204 int val3 ;
32205 int ecode3 = 0 ;
32206 int val4 ;
32207 int ecode4 = 0 ;
32208 int val5 ;
32209 int ecode5 = 0 ;
32210 int val6 ;
32211 int ecode6 = 0 ;
32212 int val7 ;
32213 int ecode7 = 0 ;
32214 PyObject * obj0 = 0 ;
32215 PyObject * obj1 = 0 ;
32216 PyObject * obj2 = 0 ;
32217 PyObject * obj3 = 0 ;
32218 PyObject * obj4 = 0 ;
32219 PyObject * obj5 = 0 ;
32220 PyObject * obj6 = 0 ;
32221 char * kwnames[] = {
32222 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32223 };
32224
32225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32227 if (!SWIG_IsOK(res1)) {
32228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32229 }
32230 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32231 ecode2 = SWIG_AsVal_int(obj1, &val2);
32232 if (!SWIG_IsOK(ecode2)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32234 }
32235 arg2 = static_cast< int >(val2);
32236 ecode3 = SWIG_AsVal_int(obj2, &val3);
32237 if (!SWIG_IsOK(ecode3)) {
32238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32239 }
32240 arg3 = static_cast< int >(val3);
32241 ecode4 = SWIG_AsVal_int(obj3, &val4);
32242 if (!SWIG_IsOK(ecode4)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32244 }
32245 arg4 = static_cast< int >(val4);
32246 ecode5 = SWIG_AsVal_int(obj4, &val5);
32247 if (!SWIG_IsOK(ecode5)) {
32248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32249 }
32250 arg5 = static_cast< int >(val5);
32251 ecode6 = SWIG_AsVal_int(obj5, &val6);
32252 if (!SWIG_IsOK(ecode6)) {
32253 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32254 }
32255 arg6 = static_cast< int >(val6);
32256 ecode7 = SWIG_AsVal_int(obj6, &val7);
32257 if (!SWIG_IsOK(ecode7)) {
32258 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32259 }
32260 arg7 = static_cast< int >(val7);
32261 {
32262 PyThreadState* __tstate = wxPyBeginAllowThreads();
32263 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32264 wxPyEndAllowThreads(__tstate);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 resultobj = SWIG_Py_Void();
32268 return resultobj;
32269fail:
32270 return NULL;
32271}
32272
32273
32274SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32275 PyObject *resultobj = 0;
32276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32277 wxPoint *arg2 = 0 ;
32278 wxPoint *arg3 = 0 ;
32279 wxPoint *arg4 = 0 ;
32280 void *argp1 = 0 ;
32281 int res1 = 0 ;
32282 wxPoint temp2 ;
32283 wxPoint temp3 ;
32284 wxPoint temp4 ;
32285 PyObject * obj0 = 0 ;
32286 PyObject * obj1 = 0 ;
32287 PyObject * obj2 = 0 ;
32288 PyObject * obj3 = 0 ;
32289 char * kwnames[] = {
32290 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32291 };
32292
32293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32295 if (!SWIG_IsOK(res1)) {
32296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32297 }
32298 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32299 {
32300 arg2 = &temp2;
32301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32302 }
32303 {
32304 arg3 = &temp3;
32305 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32306 }
32307 {
32308 arg4 = &temp4;
32309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32310 }
32311 {
32312 PyThreadState* __tstate = wxPyBeginAllowThreads();
32313 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32314 wxPyEndAllowThreads(__tstate);
32315 if (PyErr_Occurred()) SWIG_fail;
32316 }
32317 resultobj = SWIG_Py_Void();
32318 return resultobj;
32319fail:
32320 return NULL;
32321}
32322
32323
32324SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32325 PyObject *resultobj = 0;
32326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32327 int arg2 ;
32328 int arg3 ;
32329 int arg4 ;
32330 int arg5 ;
32331 void *argp1 = 0 ;
32332 int res1 = 0 ;
32333 int val2 ;
32334 int ecode2 = 0 ;
32335 int val3 ;
32336 int ecode3 = 0 ;
32337 int val4 ;
32338 int ecode4 = 0 ;
32339 int val5 ;
32340 int ecode5 = 0 ;
32341 PyObject * obj0 = 0 ;
32342 PyObject * obj1 = 0 ;
32343 PyObject * obj2 = 0 ;
32344 PyObject * obj3 = 0 ;
32345 PyObject * obj4 = 0 ;
32346 char * kwnames[] = {
32347 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32348 };
32349
32350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32352 if (!SWIG_IsOK(res1)) {
32353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32354 }
32355 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32356 ecode2 = SWIG_AsVal_int(obj1, &val2);
32357 if (!SWIG_IsOK(ecode2)) {
32358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32359 }
32360 arg2 = static_cast< int >(val2);
32361 ecode3 = SWIG_AsVal_int(obj2, &val3);
32362 if (!SWIG_IsOK(ecode3)) {
32363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32364 }
32365 arg3 = static_cast< int >(val3);
32366 ecode4 = SWIG_AsVal_int(obj3, &val4);
32367 if (!SWIG_IsOK(ecode4)) {
32368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32369 }
32370 arg4 = static_cast< int >(val4);
32371 ecode5 = SWIG_AsVal_int(obj4, &val5);
32372 if (!SWIG_IsOK(ecode5)) {
32373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32374 }
32375 arg5 = static_cast< int >(val5);
32376 {
32377 PyThreadState* __tstate = wxPyBeginAllowThreads();
32378 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32379 wxPyEndAllowThreads(__tstate);
32380 if (PyErr_Occurred()) SWIG_fail;
32381 }
32382 resultobj = SWIG_Py_Void();
32383 return resultobj;
32384fail:
32385 return NULL;
32386}
32387
32388
32389SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32390 PyObject *resultobj = 0;
32391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32392 wxRect *arg2 = 0 ;
32393 void *argp1 = 0 ;
32394 int res1 = 0 ;
32395 wxRect temp2 ;
32396 PyObject * obj0 = 0 ;
32397 PyObject * obj1 = 0 ;
32398 char * kwnames[] = {
32399 (char *) "self",(char *) "rect", NULL
32400 };
32401
32402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32404 if (!SWIG_IsOK(res1)) {
32405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32406 }
32407 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32408 {
32409 arg2 = &temp2;
32410 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32411 }
32412 {
32413 PyThreadState* __tstate = wxPyBeginAllowThreads();
32414 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32415 wxPyEndAllowThreads(__tstate);
32416 if (PyErr_Occurred()) SWIG_fail;
32417 }
32418 resultobj = SWIG_Py_Void();
32419 return resultobj;
32420fail:
32421 return NULL;
32422}
32423
32424
32425SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32426 PyObject *resultobj = 0;
32427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32428 int arg2 ;
32429 int arg3 ;
32430 int arg4 ;
32431 int arg5 ;
32432 double arg6 ;
32433 double arg7 ;
32434 void *argp1 = 0 ;
32435 int res1 = 0 ;
32436 int val2 ;
32437 int ecode2 = 0 ;
32438 int val3 ;
32439 int ecode3 = 0 ;
32440 int val4 ;
32441 int ecode4 = 0 ;
32442 int val5 ;
32443 int ecode5 = 0 ;
32444 double val6 ;
32445 int ecode6 = 0 ;
32446 double val7 ;
32447 int ecode7 = 0 ;
32448 PyObject * obj0 = 0 ;
32449 PyObject * obj1 = 0 ;
32450 PyObject * obj2 = 0 ;
32451 PyObject * obj3 = 0 ;
32452 PyObject * obj4 = 0 ;
32453 PyObject * obj5 = 0 ;
32454 PyObject * obj6 = 0 ;
32455 char * kwnames[] = {
32456 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32457 };
32458
32459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32461 if (!SWIG_IsOK(res1)) {
32462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32463 }
32464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32465 ecode2 = SWIG_AsVal_int(obj1, &val2);
32466 if (!SWIG_IsOK(ecode2)) {
32467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32468 }
32469 arg2 = static_cast< int >(val2);
32470 ecode3 = SWIG_AsVal_int(obj2, &val3);
32471 if (!SWIG_IsOK(ecode3)) {
32472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32473 }
32474 arg3 = static_cast< int >(val3);
32475 ecode4 = SWIG_AsVal_int(obj3, &val4);
32476 if (!SWIG_IsOK(ecode4)) {
32477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32478 }
32479 arg4 = static_cast< int >(val4);
32480 ecode5 = SWIG_AsVal_int(obj4, &val5);
32481 if (!SWIG_IsOK(ecode5)) {
32482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32483 }
32484 arg5 = static_cast< int >(val5);
32485 ecode6 = SWIG_AsVal_double(obj5, &val6);
32486 if (!SWIG_IsOK(ecode6)) {
32487 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32488 }
32489 arg6 = static_cast< double >(val6);
32490 ecode7 = SWIG_AsVal_double(obj6, &val7);
32491 if (!SWIG_IsOK(ecode7)) {
32492 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32493 }
32494 arg7 = static_cast< double >(val7);
32495 {
32496 PyThreadState* __tstate = wxPyBeginAllowThreads();
32497 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32498 wxPyEndAllowThreads(__tstate);
32499 if (PyErr_Occurred()) SWIG_fail;
32500 }
32501 resultobj = SWIG_Py_Void();
32502 return resultobj;
32503fail:
32504 return NULL;
32505}
32506
32507
32508SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32509 PyObject *resultobj = 0;
32510 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32511 wxPoint *arg2 = 0 ;
32512 wxSize *arg3 = 0 ;
32513 double arg4 ;
32514 double arg5 ;
32515 void *argp1 = 0 ;
32516 int res1 = 0 ;
32517 wxPoint temp2 ;
32518 wxSize temp3 ;
32519 double val4 ;
32520 int ecode4 = 0 ;
32521 double val5 ;
32522 int ecode5 = 0 ;
32523 PyObject * obj0 = 0 ;
32524 PyObject * obj1 = 0 ;
32525 PyObject * obj2 = 0 ;
32526 PyObject * obj3 = 0 ;
32527 PyObject * obj4 = 0 ;
32528 char * kwnames[] = {
32529 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32530 };
32531
32532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32534 if (!SWIG_IsOK(res1)) {
32535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32536 }
32537 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32538 {
32539 arg2 = &temp2;
32540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32541 }
32542 {
32543 arg3 = &temp3;
32544 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32545 }
32546 ecode4 = SWIG_AsVal_double(obj3, &val4);
32547 if (!SWIG_IsOK(ecode4)) {
32548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32549 }
32550 arg4 = static_cast< double >(val4);
32551 ecode5 = SWIG_AsVal_double(obj4, &val5);
32552 if (!SWIG_IsOK(ecode5)) {
32553 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32554 }
32555 arg5 = static_cast< double >(val5);
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32559 wxPyEndAllowThreads(__tstate);
32560 if (PyErr_Occurred()) SWIG_fail;
32561 }
32562 resultobj = SWIG_Py_Void();
32563 return resultobj;
32564fail:
32565 return NULL;
32566}
32567
32568
32569SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32570 PyObject *resultobj = 0;
32571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32572 int arg2 ;
32573 int arg3 ;
32574 void *argp1 = 0 ;
32575 int res1 = 0 ;
32576 int val2 ;
32577 int ecode2 = 0 ;
32578 int val3 ;
32579 int ecode3 = 0 ;
32580 PyObject * obj0 = 0 ;
32581 PyObject * obj1 = 0 ;
32582 PyObject * obj2 = 0 ;
32583 char * kwnames[] = {
32584 (char *) "self",(char *) "x",(char *) "y", NULL
32585 };
32586
32587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32589 if (!SWIG_IsOK(res1)) {
32590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32591 }
32592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32593 ecode2 = SWIG_AsVal_int(obj1, &val2);
32594 if (!SWIG_IsOK(ecode2)) {
32595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32596 }
32597 arg2 = static_cast< int >(val2);
32598 ecode3 = SWIG_AsVal_int(obj2, &val3);
32599 if (!SWIG_IsOK(ecode3)) {
32600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32601 }
32602 arg3 = static_cast< int >(val3);
32603 {
32604 PyThreadState* __tstate = wxPyBeginAllowThreads();
32605 (arg1)->DrawPoint(arg2,arg3);
32606 wxPyEndAllowThreads(__tstate);
32607 if (PyErr_Occurred()) SWIG_fail;
32608 }
32609 resultobj = SWIG_Py_Void();
32610 return resultobj;
32611fail:
32612 return NULL;
32613}
32614
32615
32616SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32617 PyObject *resultobj = 0;
32618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32619 wxPoint *arg2 = 0 ;
32620 void *argp1 = 0 ;
32621 int res1 = 0 ;
32622 wxPoint temp2 ;
32623 PyObject * obj0 = 0 ;
32624 PyObject * obj1 = 0 ;
32625 char * kwnames[] = {
32626 (char *) "self",(char *) "pt", NULL
32627 };
32628
32629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32631 if (!SWIG_IsOK(res1)) {
32632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32633 }
32634 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32635 {
32636 arg2 = &temp2;
32637 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32638 }
32639 {
32640 PyThreadState* __tstate = wxPyBeginAllowThreads();
32641 (arg1)->DrawPoint((wxPoint const &)*arg2);
32642 wxPyEndAllowThreads(__tstate);
32643 if (PyErr_Occurred()) SWIG_fail;
32644 }
32645 resultobj = SWIG_Py_Void();
32646 return resultobj;
32647fail:
32648 return NULL;
32649}
32650
32651
32652SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32653 PyObject *resultobj = 0;
32654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32655 int arg2 ;
32656 int arg3 ;
32657 int arg4 ;
32658 int arg5 ;
32659 void *argp1 = 0 ;
32660 int res1 = 0 ;
32661 int val2 ;
32662 int ecode2 = 0 ;
32663 int val3 ;
32664 int ecode3 = 0 ;
32665 int val4 ;
32666 int ecode4 = 0 ;
32667 int val5 ;
32668 int ecode5 = 0 ;
32669 PyObject * obj0 = 0 ;
32670 PyObject * obj1 = 0 ;
32671 PyObject * obj2 = 0 ;
32672 PyObject * obj3 = 0 ;
32673 PyObject * obj4 = 0 ;
32674 char * kwnames[] = {
32675 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32676 };
32677
32678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32680 if (!SWIG_IsOK(res1)) {
32681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32682 }
32683 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32684 ecode2 = SWIG_AsVal_int(obj1, &val2);
32685 if (!SWIG_IsOK(ecode2)) {
32686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32687 }
32688 arg2 = static_cast< int >(val2);
32689 ecode3 = SWIG_AsVal_int(obj2, &val3);
32690 if (!SWIG_IsOK(ecode3)) {
32691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32692 }
32693 arg3 = static_cast< int >(val3);
32694 ecode4 = SWIG_AsVal_int(obj3, &val4);
32695 if (!SWIG_IsOK(ecode4)) {
32696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32697 }
32698 arg4 = static_cast< int >(val4);
32699 ecode5 = SWIG_AsVal_int(obj4, &val5);
32700 if (!SWIG_IsOK(ecode5)) {
32701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32702 }
32703 arg5 = static_cast< int >(val5);
32704 {
32705 PyThreadState* __tstate = wxPyBeginAllowThreads();
32706 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32707 wxPyEndAllowThreads(__tstate);
32708 if (PyErr_Occurred()) SWIG_fail;
32709 }
32710 resultobj = SWIG_Py_Void();
32711 return resultobj;
32712fail:
32713 return NULL;
32714}
32715
32716
32717SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32718 PyObject *resultobj = 0;
32719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32720 wxRect *arg2 = 0 ;
32721 void *argp1 = 0 ;
32722 int res1 = 0 ;
32723 wxRect temp2 ;
32724 PyObject * obj0 = 0 ;
32725 PyObject * obj1 = 0 ;
32726 char * kwnames[] = {
32727 (char *) "self",(char *) "rect", NULL
32728 };
32729
32730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32732 if (!SWIG_IsOK(res1)) {
32733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32734 }
32735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32736 {
32737 arg2 = &temp2;
32738 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32739 }
32740 {
32741 PyThreadState* __tstate = wxPyBeginAllowThreads();
32742 (arg1)->DrawRectangle((wxRect const &)*arg2);
32743 wxPyEndAllowThreads(__tstate);
32744 if (PyErr_Occurred()) SWIG_fail;
32745 }
32746 resultobj = SWIG_Py_Void();
32747 return resultobj;
32748fail:
32749 return NULL;
32750}
32751
32752
32753SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32754 PyObject *resultobj = 0;
32755 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32756 wxPoint *arg2 = 0 ;
32757 wxSize *arg3 = 0 ;
32758 void *argp1 = 0 ;
32759 int res1 = 0 ;
32760 wxPoint temp2 ;
32761 wxSize temp3 ;
32762 PyObject * obj0 = 0 ;
32763 PyObject * obj1 = 0 ;
32764 PyObject * obj2 = 0 ;
32765 char * kwnames[] = {
32766 (char *) "self",(char *) "pt",(char *) "sz", NULL
32767 };
32768
32769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32771 if (!SWIG_IsOK(res1)) {
32772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32773 }
32774 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32775 {
32776 arg2 = &temp2;
32777 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32778 }
32779 {
32780 arg3 = &temp3;
32781 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32782 }
32783 {
32784 PyThreadState* __tstate = wxPyBeginAllowThreads();
32785 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32786 wxPyEndAllowThreads(__tstate);
32787 if (PyErr_Occurred()) SWIG_fail;
32788 }
32789 resultobj = SWIG_Py_Void();
32790 return resultobj;
32791fail:
32792 return NULL;
32793}
32794
32795
32796SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32797 PyObject *resultobj = 0;
32798 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32799 int arg2 ;
32800 int arg3 ;
32801 int arg4 ;
32802 int arg5 ;
32803 double arg6 ;
32804 void *argp1 = 0 ;
32805 int res1 = 0 ;
32806 int val2 ;
32807 int ecode2 = 0 ;
32808 int val3 ;
32809 int ecode3 = 0 ;
32810 int val4 ;
32811 int ecode4 = 0 ;
32812 int val5 ;
32813 int ecode5 = 0 ;
32814 double val6 ;
32815 int ecode6 = 0 ;
32816 PyObject * obj0 = 0 ;
32817 PyObject * obj1 = 0 ;
32818 PyObject * obj2 = 0 ;
32819 PyObject * obj3 = 0 ;
32820 PyObject * obj4 = 0 ;
32821 PyObject * obj5 = 0 ;
32822 char * kwnames[] = {
32823 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32824 };
32825
32826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32828 if (!SWIG_IsOK(res1)) {
32829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32830 }
32831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32832 ecode2 = SWIG_AsVal_int(obj1, &val2);
32833 if (!SWIG_IsOK(ecode2)) {
32834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32835 }
32836 arg2 = static_cast< int >(val2);
32837 ecode3 = SWIG_AsVal_int(obj2, &val3);
32838 if (!SWIG_IsOK(ecode3)) {
32839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32840 }
32841 arg3 = static_cast< int >(val3);
32842 ecode4 = SWIG_AsVal_int(obj3, &val4);
32843 if (!SWIG_IsOK(ecode4)) {
32844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32845 }
32846 arg4 = static_cast< int >(val4);
32847 ecode5 = SWIG_AsVal_int(obj4, &val5);
32848 if (!SWIG_IsOK(ecode5)) {
32849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32850 }
32851 arg5 = static_cast< int >(val5);
32852 ecode6 = SWIG_AsVal_double(obj5, &val6);
32853 if (!SWIG_IsOK(ecode6)) {
32854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32855 }
32856 arg6 = static_cast< double >(val6);
32857 {
32858 PyThreadState* __tstate = wxPyBeginAllowThreads();
32859 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32860 wxPyEndAllowThreads(__tstate);
32861 if (PyErr_Occurred()) SWIG_fail;
32862 }
32863 resultobj = SWIG_Py_Void();
32864 return resultobj;
32865fail:
32866 return NULL;
32867}
32868
32869
32870SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32871 PyObject *resultobj = 0;
32872 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32873 wxRect *arg2 = 0 ;
32874 double arg3 ;
32875 void *argp1 = 0 ;
32876 int res1 = 0 ;
32877 wxRect temp2 ;
32878 double val3 ;
32879 int ecode3 = 0 ;
32880 PyObject * obj0 = 0 ;
32881 PyObject * obj1 = 0 ;
32882 PyObject * obj2 = 0 ;
32883 char * kwnames[] = {
32884 (char *) "self",(char *) "r",(char *) "radius", NULL
32885 };
32886
32887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32889 if (!SWIG_IsOK(res1)) {
32890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32891 }
32892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32893 {
32894 arg2 = &temp2;
32895 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32896 }
32897 ecode3 = SWIG_AsVal_double(obj2, &val3);
32898 if (!SWIG_IsOK(ecode3)) {
32899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32900 }
32901 arg3 = static_cast< double >(val3);
32902 {
32903 PyThreadState* __tstate = wxPyBeginAllowThreads();
32904 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32905 wxPyEndAllowThreads(__tstate);
32906 if (PyErr_Occurred()) SWIG_fail;
32907 }
32908 resultobj = SWIG_Py_Void();
32909 return resultobj;
32910fail:
32911 return NULL;
32912}
32913
32914
32915SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32916 PyObject *resultobj = 0;
32917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32918 wxPoint *arg2 = 0 ;
32919 wxSize *arg3 = 0 ;
32920 double arg4 ;
32921 void *argp1 = 0 ;
32922 int res1 = 0 ;
32923 wxPoint temp2 ;
32924 wxSize temp3 ;
32925 double val4 ;
32926 int ecode4 = 0 ;
32927 PyObject * obj0 = 0 ;
32928 PyObject * obj1 = 0 ;
32929 PyObject * obj2 = 0 ;
32930 PyObject * obj3 = 0 ;
32931 char * kwnames[] = {
32932 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32933 };
32934
32935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32937 if (!SWIG_IsOK(res1)) {
32938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32939 }
32940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32941 {
32942 arg2 = &temp2;
32943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32944 }
32945 {
32946 arg3 = &temp3;
32947 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32948 }
32949 ecode4 = SWIG_AsVal_double(obj3, &val4);
32950 if (!SWIG_IsOK(ecode4)) {
32951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32952 }
32953 arg4 = static_cast< double >(val4);
32954 {
32955 PyThreadState* __tstate = wxPyBeginAllowThreads();
32956 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32957 wxPyEndAllowThreads(__tstate);
32958 if (PyErr_Occurred()) SWIG_fail;
32959 }
32960 resultobj = SWIG_Py_Void();
32961 return resultobj;
32962fail:
32963 return NULL;
32964}
32965
32966
32967SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32968 PyObject *resultobj = 0;
32969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32970 int arg2 ;
32971 int arg3 ;
32972 int arg4 ;
32973 void *argp1 = 0 ;
32974 int res1 = 0 ;
32975 int val2 ;
32976 int ecode2 = 0 ;
32977 int val3 ;
32978 int ecode3 = 0 ;
32979 int val4 ;
32980 int ecode4 = 0 ;
32981 PyObject * obj0 = 0 ;
32982 PyObject * obj1 = 0 ;
32983 PyObject * obj2 = 0 ;
32984 PyObject * obj3 = 0 ;
32985 char * kwnames[] = {
32986 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32987 };
32988
32989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32991 if (!SWIG_IsOK(res1)) {
32992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32993 }
32994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32995 ecode2 = SWIG_AsVal_int(obj1, &val2);
32996 if (!SWIG_IsOK(ecode2)) {
32997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32998 }
32999 arg2 = static_cast< int >(val2);
33000 ecode3 = SWIG_AsVal_int(obj2, &val3);
33001 if (!SWIG_IsOK(ecode3)) {
33002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33003 }
33004 arg3 = static_cast< int >(val3);
33005 ecode4 = SWIG_AsVal_int(obj3, &val4);
33006 if (!SWIG_IsOK(ecode4)) {
33007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33008 }
33009 arg4 = static_cast< int >(val4);
33010 {
33011 PyThreadState* __tstate = wxPyBeginAllowThreads();
33012 (arg1)->DrawCircle(arg2,arg3,arg4);
33013 wxPyEndAllowThreads(__tstate);
33014 if (PyErr_Occurred()) SWIG_fail;
33015 }
33016 resultobj = SWIG_Py_Void();
33017 return resultobj;
33018fail:
33019 return NULL;
33020}
33021
33022
33023SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33024 PyObject *resultobj = 0;
33025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33026 wxPoint *arg2 = 0 ;
33027 int arg3 ;
33028 void *argp1 = 0 ;
33029 int res1 = 0 ;
33030 wxPoint temp2 ;
33031 int val3 ;
33032 int ecode3 = 0 ;
33033 PyObject * obj0 = 0 ;
33034 PyObject * obj1 = 0 ;
33035 PyObject * obj2 = 0 ;
33036 char * kwnames[] = {
33037 (char *) "self",(char *) "pt",(char *) "radius", NULL
33038 };
33039
33040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33042 if (!SWIG_IsOK(res1)) {
33043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33044 }
33045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33046 {
33047 arg2 = &temp2;
33048 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33049 }
33050 ecode3 = SWIG_AsVal_int(obj2, &val3);
33051 if (!SWIG_IsOK(ecode3)) {
33052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33053 }
33054 arg3 = static_cast< int >(val3);
33055 {
33056 PyThreadState* __tstate = wxPyBeginAllowThreads();
33057 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33058 wxPyEndAllowThreads(__tstate);
33059 if (PyErr_Occurred()) SWIG_fail;
33060 }
33061 resultobj = SWIG_Py_Void();
33062 return resultobj;
33063fail:
33064 return NULL;
33065}
33066
33067
33068SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33069 PyObject *resultobj = 0;
33070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33071 int arg2 ;
33072 int arg3 ;
33073 int arg4 ;
33074 int arg5 ;
33075 void *argp1 = 0 ;
33076 int res1 = 0 ;
33077 int val2 ;
33078 int ecode2 = 0 ;
33079 int val3 ;
33080 int ecode3 = 0 ;
33081 int val4 ;
33082 int ecode4 = 0 ;
33083 int val5 ;
33084 int ecode5 = 0 ;
33085 PyObject * obj0 = 0 ;
33086 PyObject * obj1 = 0 ;
33087 PyObject * obj2 = 0 ;
33088 PyObject * obj3 = 0 ;
33089 PyObject * obj4 = 0 ;
33090 char * kwnames[] = {
33091 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33092 };
33093
33094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33096 if (!SWIG_IsOK(res1)) {
33097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33098 }
33099 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33100 ecode2 = SWIG_AsVal_int(obj1, &val2);
33101 if (!SWIG_IsOK(ecode2)) {
33102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33103 }
33104 arg2 = static_cast< int >(val2);
33105 ecode3 = SWIG_AsVal_int(obj2, &val3);
33106 if (!SWIG_IsOK(ecode3)) {
33107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33108 }
33109 arg3 = static_cast< int >(val3);
33110 ecode4 = SWIG_AsVal_int(obj3, &val4);
33111 if (!SWIG_IsOK(ecode4)) {
33112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33113 }
33114 arg4 = static_cast< int >(val4);
33115 ecode5 = SWIG_AsVal_int(obj4, &val5);
33116 if (!SWIG_IsOK(ecode5)) {
33117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33118 }
33119 arg5 = static_cast< int >(val5);
33120 {
33121 PyThreadState* __tstate = wxPyBeginAllowThreads();
33122 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33123 wxPyEndAllowThreads(__tstate);
33124 if (PyErr_Occurred()) SWIG_fail;
33125 }
33126 resultobj = SWIG_Py_Void();
33127 return resultobj;
33128fail:
33129 return NULL;
33130}
33131
33132
33133SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33134 PyObject *resultobj = 0;
33135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33136 wxRect *arg2 = 0 ;
33137 void *argp1 = 0 ;
33138 int res1 = 0 ;
33139 wxRect temp2 ;
33140 PyObject * obj0 = 0 ;
33141 PyObject * obj1 = 0 ;
33142 char * kwnames[] = {
33143 (char *) "self",(char *) "rect", NULL
33144 };
33145
33146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33148 if (!SWIG_IsOK(res1)) {
33149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33150 }
33151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33152 {
33153 arg2 = &temp2;
33154 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33155 }
33156 {
33157 PyThreadState* __tstate = wxPyBeginAllowThreads();
33158 (arg1)->DrawEllipse((wxRect const &)*arg2);
33159 wxPyEndAllowThreads(__tstate);
33160 if (PyErr_Occurred()) SWIG_fail;
33161 }
33162 resultobj = SWIG_Py_Void();
33163 return resultobj;
33164fail:
33165 return NULL;
33166}
33167
33168
33169SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33170 PyObject *resultobj = 0;
33171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33172 wxPoint *arg2 = 0 ;
33173 wxSize *arg3 = 0 ;
33174 void *argp1 = 0 ;
33175 int res1 = 0 ;
33176 wxPoint temp2 ;
33177 wxSize temp3 ;
33178 PyObject * obj0 = 0 ;
33179 PyObject * obj1 = 0 ;
33180 PyObject * obj2 = 0 ;
33181 char * kwnames[] = {
33182 (char *) "self",(char *) "pt",(char *) "sz", NULL
33183 };
33184
33185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33187 if (!SWIG_IsOK(res1)) {
33188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33189 }
33190 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33191 {
33192 arg2 = &temp2;
33193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33194 }
33195 {
33196 arg3 = &temp3;
33197 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33198 }
33199 {
33200 PyThreadState* __tstate = wxPyBeginAllowThreads();
33201 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 resultobj = SWIG_Py_Void();
33206 return resultobj;
33207fail:
33208 return NULL;
33209}
33210
33211
33212SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33213 PyObject *resultobj = 0;
33214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33215 wxIcon *arg2 = 0 ;
33216 int arg3 ;
33217 int arg4 ;
33218 void *argp1 = 0 ;
33219 int res1 = 0 ;
33220 void *argp2 = 0 ;
33221 int res2 = 0 ;
33222 int val3 ;
33223 int ecode3 = 0 ;
33224 int val4 ;
33225 int ecode4 = 0 ;
33226 PyObject * obj0 = 0 ;
33227 PyObject * obj1 = 0 ;
33228 PyObject * obj2 = 0 ;
33229 PyObject * obj3 = 0 ;
33230 char * kwnames[] = {
33231 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33232 };
33233
33234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33236 if (!SWIG_IsOK(res1)) {
33237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33238 }
33239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33241 if (!SWIG_IsOK(res2)) {
33242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33243 }
33244 if (!argp2) {
33245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33246 }
33247 arg2 = reinterpret_cast< wxIcon * >(argp2);
33248 ecode3 = SWIG_AsVal_int(obj2, &val3);
33249 if (!SWIG_IsOK(ecode3)) {
33250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33251 }
33252 arg3 = static_cast< int >(val3);
33253 ecode4 = SWIG_AsVal_int(obj3, &val4);
33254 if (!SWIG_IsOK(ecode4)) {
33255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33256 }
33257 arg4 = static_cast< int >(val4);
33258 {
33259 PyThreadState* __tstate = wxPyBeginAllowThreads();
33260 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33261 wxPyEndAllowThreads(__tstate);
33262 if (PyErr_Occurred()) SWIG_fail;
33263 }
33264 resultobj = SWIG_Py_Void();
33265 return resultobj;
33266fail:
33267 return NULL;
33268}
33269
33270
33271SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33272 PyObject *resultobj = 0;
33273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33274 wxIcon *arg2 = 0 ;
33275 wxPoint *arg3 = 0 ;
33276 void *argp1 = 0 ;
33277 int res1 = 0 ;
33278 void *argp2 = 0 ;
33279 int res2 = 0 ;
33280 wxPoint temp3 ;
33281 PyObject * obj0 = 0 ;
33282 PyObject * obj1 = 0 ;
33283 PyObject * obj2 = 0 ;
33284 char * kwnames[] = {
33285 (char *) "self",(char *) "icon",(char *) "pt", NULL
33286 };
33287
33288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33290 if (!SWIG_IsOK(res1)) {
33291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33292 }
33293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33295 if (!SWIG_IsOK(res2)) {
33296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33297 }
33298 if (!argp2) {
33299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33300 }
33301 arg2 = reinterpret_cast< wxIcon * >(argp2);
33302 {
33303 arg3 = &temp3;
33304 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33305 }
33306 {
33307 PyThreadState* __tstate = wxPyBeginAllowThreads();
33308 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33309 wxPyEndAllowThreads(__tstate);
33310 if (PyErr_Occurred()) SWIG_fail;
33311 }
33312 resultobj = SWIG_Py_Void();
33313 return resultobj;
33314fail:
33315 return NULL;
33316}
33317
33318
33319SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33320 PyObject *resultobj = 0;
33321 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33322 wxBitmap *arg2 = 0 ;
33323 int arg3 ;
33324 int arg4 ;
33325 bool arg5 = (bool) false ;
33326 void *argp1 = 0 ;
33327 int res1 = 0 ;
33328 void *argp2 = 0 ;
33329 int res2 = 0 ;
33330 int val3 ;
33331 int ecode3 = 0 ;
33332 int val4 ;
33333 int ecode4 = 0 ;
33334 bool val5 ;
33335 int ecode5 = 0 ;
33336 PyObject * obj0 = 0 ;
33337 PyObject * obj1 = 0 ;
33338 PyObject * obj2 = 0 ;
33339 PyObject * obj3 = 0 ;
33340 PyObject * obj4 = 0 ;
33341 char * kwnames[] = {
33342 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33343 };
33344
33345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33347 if (!SWIG_IsOK(res1)) {
33348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33349 }
33350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33352 if (!SWIG_IsOK(res2)) {
33353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33354 }
33355 if (!argp2) {
33356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33357 }
33358 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33359 ecode3 = SWIG_AsVal_int(obj2, &val3);
33360 if (!SWIG_IsOK(ecode3)) {
33361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33362 }
33363 arg3 = static_cast< int >(val3);
33364 ecode4 = SWIG_AsVal_int(obj3, &val4);
33365 if (!SWIG_IsOK(ecode4)) {
33366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33367 }
33368 arg4 = static_cast< int >(val4);
33369 if (obj4) {
33370 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33371 if (!SWIG_IsOK(ecode5)) {
33372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33373 }
33374 arg5 = static_cast< bool >(val5);
33375 }
33376 {
33377 PyThreadState* __tstate = wxPyBeginAllowThreads();
33378 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33379 wxPyEndAllowThreads(__tstate);
33380 if (PyErr_Occurred()) SWIG_fail;
33381 }
33382 resultobj = SWIG_Py_Void();
33383 return resultobj;
33384fail:
33385 return NULL;
33386}
33387
33388
33389SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33390 PyObject *resultobj = 0;
33391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33392 wxBitmap *arg2 = 0 ;
33393 wxPoint *arg3 = 0 ;
33394 bool arg4 = (bool) false ;
33395 void *argp1 = 0 ;
33396 int res1 = 0 ;
33397 void *argp2 = 0 ;
33398 int res2 = 0 ;
33399 wxPoint temp3 ;
33400 bool val4 ;
33401 int ecode4 = 0 ;
33402 PyObject * obj0 = 0 ;
33403 PyObject * obj1 = 0 ;
33404 PyObject * obj2 = 0 ;
33405 PyObject * obj3 = 0 ;
33406 char * kwnames[] = {
33407 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33408 };
33409
33410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33412 if (!SWIG_IsOK(res1)) {
33413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33414 }
33415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33417 if (!SWIG_IsOK(res2)) {
33418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33419 }
33420 if (!argp2) {
33421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33422 }
33423 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33424 {
33425 arg3 = &temp3;
33426 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33427 }
33428 if (obj3) {
33429 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33430 if (!SWIG_IsOK(ecode4)) {
33431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33432 }
33433 arg4 = static_cast< bool >(val4);
33434 }
33435 {
33436 PyThreadState* __tstate = wxPyBeginAllowThreads();
33437 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33438 wxPyEndAllowThreads(__tstate);
33439 if (PyErr_Occurred()) SWIG_fail;
33440 }
33441 resultobj = SWIG_Py_Void();
33442 return resultobj;
33443fail:
33444 return NULL;
33445}
33446
33447
33448SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33449 PyObject *resultobj = 0;
33450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33451 wxString *arg2 = 0 ;
33452 int arg3 ;
33453 int arg4 ;
33454 void *argp1 = 0 ;
33455 int res1 = 0 ;
33456 bool temp2 = false ;
33457 int val3 ;
33458 int ecode3 = 0 ;
33459 int val4 ;
33460 int ecode4 = 0 ;
33461 PyObject * obj0 = 0 ;
33462 PyObject * obj1 = 0 ;
33463 PyObject * obj2 = 0 ;
33464 PyObject * obj3 = 0 ;
33465 char * kwnames[] = {
33466 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33467 };
33468
33469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33471 if (!SWIG_IsOK(res1)) {
33472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33473 }
33474 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33475 {
33476 arg2 = wxString_in_helper(obj1);
33477 if (arg2 == NULL) SWIG_fail;
33478 temp2 = true;
33479 }
33480 ecode3 = SWIG_AsVal_int(obj2, &val3);
33481 if (!SWIG_IsOK(ecode3)) {
33482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33483 }
33484 arg3 = static_cast< int >(val3);
33485 ecode4 = SWIG_AsVal_int(obj3, &val4);
33486 if (!SWIG_IsOK(ecode4)) {
33487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33488 }
33489 arg4 = static_cast< int >(val4);
33490 {
33491 PyThreadState* __tstate = wxPyBeginAllowThreads();
33492 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33493 wxPyEndAllowThreads(__tstate);
33494 if (PyErr_Occurred()) SWIG_fail;
33495 }
33496 resultobj = SWIG_Py_Void();
33497 {
33498 if (temp2)
33499 delete arg2;
33500 }
33501 return resultobj;
33502fail:
33503 {
33504 if (temp2)
33505 delete arg2;
33506 }
33507 return NULL;
33508}
33509
33510
33511SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33512 PyObject *resultobj = 0;
33513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33514 wxString *arg2 = 0 ;
33515 wxPoint *arg3 = 0 ;
33516 void *argp1 = 0 ;
33517 int res1 = 0 ;
33518 bool temp2 = false ;
33519 wxPoint temp3 ;
33520 PyObject * obj0 = 0 ;
33521 PyObject * obj1 = 0 ;
33522 PyObject * obj2 = 0 ;
33523 char * kwnames[] = {
33524 (char *) "self",(char *) "text",(char *) "pt", NULL
33525 };
33526
33527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33529 if (!SWIG_IsOK(res1)) {
33530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33531 }
33532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33533 {
33534 arg2 = wxString_in_helper(obj1);
33535 if (arg2 == NULL) SWIG_fail;
33536 temp2 = true;
33537 }
33538 {
33539 arg3 = &temp3;
33540 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33541 }
33542 {
33543 PyThreadState* __tstate = wxPyBeginAllowThreads();
33544 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33545 wxPyEndAllowThreads(__tstate);
33546 if (PyErr_Occurred()) SWIG_fail;
33547 }
33548 resultobj = SWIG_Py_Void();
33549 {
33550 if (temp2)
33551 delete arg2;
33552 }
33553 return resultobj;
33554fail:
33555 {
33556 if (temp2)
33557 delete arg2;
33558 }
33559 return NULL;
33560}
33561
33562
33563SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33564 PyObject *resultobj = 0;
33565 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33566 wxString *arg2 = 0 ;
33567 int arg3 ;
33568 int arg4 ;
33569 double arg5 ;
33570 void *argp1 = 0 ;
33571 int res1 = 0 ;
33572 bool temp2 = false ;
33573 int val3 ;
33574 int ecode3 = 0 ;
33575 int val4 ;
33576 int ecode4 = 0 ;
33577 double val5 ;
33578 int ecode5 = 0 ;
33579 PyObject * obj0 = 0 ;
33580 PyObject * obj1 = 0 ;
33581 PyObject * obj2 = 0 ;
33582 PyObject * obj3 = 0 ;
33583 PyObject * obj4 = 0 ;
33584 char * kwnames[] = {
33585 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33586 };
33587
33588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33590 if (!SWIG_IsOK(res1)) {
33591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33592 }
33593 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33594 {
33595 arg2 = wxString_in_helper(obj1);
33596 if (arg2 == NULL) SWIG_fail;
33597 temp2 = true;
33598 }
33599 ecode3 = SWIG_AsVal_int(obj2, &val3);
33600 if (!SWIG_IsOK(ecode3)) {
33601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33602 }
33603 arg3 = static_cast< int >(val3);
33604 ecode4 = SWIG_AsVal_int(obj3, &val4);
33605 if (!SWIG_IsOK(ecode4)) {
33606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33607 }
33608 arg4 = static_cast< int >(val4);
33609 ecode5 = SWIG_AsVal_double(obj4, &val5);
33610 if (!SWIG_IsOK(ecode5)) {
33611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33612 }
33613 arg5 = static_cast< double >(val5);
33614 {
33615 PyThreadState* __tstate = wxPyBeginAllowThreads();
33616 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33617 wxPyEndAllowThreads(__tstate);
33618 if (PyErr_Occurred()) SWIG_fail;
33619 }
33620 resultobj = SWIG_Py_Void();
33621 {
33622 if (temp2)
33623 delete arg2;
33624 }
33625 return resultobj;
33626fail:
33627 {
33628 if (temp2)
33629 delete arg2;
33630 }
33631 return NULL;
33632}
33633
33634
33635SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33636 PyObject *resultobj = 0;
33637 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33638 wxString *arg2 = 0 ;
33639 wxPoint *arg3 = 0 ;
33640 double arg4 ;
33641 void *argp1 = 0 ;
33642 int res1 = 0 ;
33643 bool temp2 = false ;
33644 wxPoint temp3 ;
33645 double val4 ;
33646 int ecode4 = 0 ;
33647 PyObject * obj0 = 0 ;
33648 PyObject * obj1 = 0 ;
33649 PyObject * obj2 = 0 ;
33650 PyObject * obj3 = 0 ;
33651 char * kwnames[] = {
33652 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33653 };
33654
33655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33657 if (!SWIG_IsOK(res1)) {
33658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33659 }
33660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33661 {
33662 arg2 = wxString_in_helper(obj1);
33663 if (arg2 == NULL) SWIG_fail;
33664 temp2 = true;
33665 }
33666 {
33667 arg3 = &temp3;
33668 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33669 }
33670 ecode4 = SWIG_AsVal_double(obj3, &val4);
33671 if (!SWIG_IsOK(ecode4)) {
33672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33673 }
33674 arg4 = static_cast< double >(val4);
33675 {
33676 PyThreadState* __tstate = wxPyBeginAllowThreads();
33677 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33678 wxPyEndAllowThreads(__tstate);
33679 if (PyErr_Occurred()) SWIG_fail;
33680 }
33681 resultobj = SWIG_Py_Void();
33682 {
33683 if (temp2)
33684 delete arg2;
33685 }
33686 return resultobj;
33687fail:
33688 {
33689 if (temp2)
33690 delete arg2;
33691 }
33692 return NULL;
33693}
33694
33695
33696SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33697 PyObject *resultobj = 0;
33698 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33699 int arg2 ;
33700 wxPoint *arg3 = (wxPoint *) 0 ;
33701 int arg4 = (int) 0 ;
33702 int arg5 = (int) 0 ;
33703 void *argp1 = 0 ;
33704 int res1 = 0 ;
33705 int val4 ;
33706 int ecode4 = 0 ;
33707 int val5 ;
33708 int ecode5 = 0 ;
33709 PyObject * obj0 = 0 ;
33710 PyObject * obj1 = 0 ;
33711 PyObject * obj2 = 0 ;
33712 PyObject * obj3 = 0 ;
33713 char * kwnames[] = {
33714 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33715 };
33716
33717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33719 if (!SWIG_IsOK(res1)) {
33720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33721 }
33722 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33723 {
33724 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33725 if (arg3 == NULL) SWIG_fail;
33726 }
33727 if (obj2) {
33728 ecode4 = SWIG_AsVal_int(obj2, &val4);
33729 if (!SWIG_IsOK(ecode4)) {
33730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33731 }
33732 arg4 = static_cast< int >(val4);
33733 }
33734 if (obj3) {
33735 ecode5 = SWIG_AsVal_int(obj3, &val5);
33736 if (!SWIG_IsOK(ecode5)) {
33737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33738 }
33739 arg5 = static_cast< int >(val5);
33740 }
33741 {
33742 PyThreadState* __tstate = wxPyBeginAllowThreads();
33743 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33744 wxPyEndAllowThreads(__tstate);
33745 if (PyErr_Occurred()) SWIG_fail;
33746 }
33747 resultobj = SWIG_Py_Void();
33748 {
33749 if (arg3) delete [] arg3;
33750 }
33751 return resultobj;
33752fail:
33753 {
33754 if (arg3) delete [] arg3;
33755 }
33756 return NULL;
33757}
33758
33759
33760SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33761 PyObject *resultobj = 0;
33762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33763 int arg2 ;
33764 wxPoint *arg3 = (wxPoint *) 0 ;
33765 int arg4 = (int) 0 ;
33766 int arg5 = (int) 0 ;
33767 int arg6 = (int) wxODDEVEN_RULE ;
33768 void *argp1 = 0 ;
33769 int res1 = 0 ;
33770 int val4 ;
33771 int ecode4 = 0 ;
33772 int val5 ;
33773 int ecode5 = 0 ;
33774 int val6 ;
33775 int ecode6 = 0 ;
33776 PyObject * obj0 = 0 ;
33777 PyObject * obj1 = 0 ;
33778 PyObject * obj2 = 0 ;
33779 PyObject * obj3 = 0 ;
33780 PyObject * obj4 = 0 ;
33781 char * kwnames[] = {
33782 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33783 };
33784
33785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33787 if (!SWIG_IsOK(res1)) {
33788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33789 }
33790 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33791 {
33792 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33793 if (arg3 == NULL) SWIG_fail;
33794 }
33795 if (obj2) {
33796 ecode4 = SWIG_AsVal_int(obj2, &val4);
33797 if (!SWIG_IsOK(ecode4)) {
33798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33799 }
33800 arg4 = static_cast< int >(val4);
33801 }
33802 if (obj3) {
33803 ecode5 = SWIG_AsVal_int(obj3, &val5);
33804 if (!SWIG_IsOK(ecode5)) {
33805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33806 }
33807 arg5 = static_cast< int >(val5);
33808 }
33809 if (obj4) {
33810 ecode6 = SWIG_AsVal_int(obj4, &val6);
33811 if (!SWIG_IsOK(ecode6)) {
33812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33813 }
33814 arg6 = static_cast< int >(val6);
33815 }
33816 {
33817 PyThreadState* __tstate = wxPyBeginAllowThreads();
33818 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33819 wxPyEndAllowThreads(__tstate);
33820 if (PyErr_Occurred()) SWIG_fail;
33821 }
33822 resultobj = SWIG_Py_Void();
33823 {
33824 if (arg3) delete [] arg3;
33825 }
33826 return resultobj;
33827fail:
33828 {
33829 if (arg3) delete [] arg3;
33830 }
33831 return NULL;
33832}
33833
33834
33835SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33836 PyObject *resultobj = 0;
33837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33838 wxString *arg2 = 0 ;
33839 wxRect *arg3 = 0 ;
33840 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33841 int arg5 = (int) -1 ;
33842 void *argp1 = 0 ;
33843 int res1 = 0 ;
33844 bool temp2 = false ;
33845 wxRect temp3 ;
33846 int val4 ;
33847 int ecode4 = 0 ;
33848 int val5 ;
33849 int ecode5 = 0 ;
33850 PyObject * obj0 = 0 ;
33851 PyObject * obj1 = 0 ;
33852 PyObject * obj2 = 0 ;
33853 PyObject * obj3 = 0 ;
33854 PyObject * obj4 = 0 ;
33855 char * kwnames[] = {
33856 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33857 };
33858
33859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33861 if (!SWIG_IsOK(res1)) {
33862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33863 }
33864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33865 {
33866 arg2 = wxString_in_helper(obj1);
33867 if (arg2 == NULL) SWIG_fail;
33868 temp2 = true;
33869 }
33870 {
33871 arg3 = &temp3;
33872 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33873 }
33874 if (obj3) {
33875 ecode4 = SWIG_AsVal_int(obj3, &val4);
33876 if (!SWIG_IsOK(ecode4)) {
33877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33878 }
33879 arg4 = static_cast< int >(val4);
33880 }
33881 if (obj4) {
33882 ecode5 = SWIG_AsVal_int(obj4, &val5);
33883 if (!SWIG_IsOK(ecode5)) {
33884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33885 }
33886 arg5 = static_cast< int >(val5);
33887 }
33888 {
33889 PyThreadState* __tstate = wxPyBeginAllowThreads();
33890 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33891 wxPyEndAllowThreads(__tstate);
33892 if (PyErr_Occurred()) SWIG_fail;
33893 }
33894 resultobj = SWIG_Py_Void();
33895 {
33896 if (temp2)
33897 delete arg2;
33898 }
33899 return resultobj;
33900fail:
33901 {
33902 if (temp2)
33903 delete arg2;
33904 }
33905 return NULL;
33906}
33907
33908
33909SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33910 PyObject *resultobj = 0;
33911 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33912 wxString *arg2 = 0 ;
33913 wxBitmap *arg3 = 0 ;
33914 wxRect *arg4 = 0 ;
33915 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33916 int arg6 = (int) -1 ;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 bool temp2 = false ;
33920 void *argp3 = 0 ;
33921 int res3 = 0 ;
33922 wxRect temp4 ;
33923 int val5 ;
33924 int ecode5 = 0 ;
33925 int val6 ;
33926 int ecode6 = 0 ;
33927 PyObject * obj0 = 0 ;
33928 PyObject * obj1 = 0 ;
33929 PyObject * obj2 = 0 ;
33930 PyObject * obj3 = 0 ;
33931 PyObject * obj4 = 0 ;
33932 PyObject * obj5 = 0 ;
33933 char * kwnames[] = {
33934 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33935 };
33936
33937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33939 if (!SWIG_IsOK(res1)) {
33940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33941 }
33942 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33943 {
33944 arg2 = wxString_in_helper(obj1);
33945 if (arg2 == NULL) SWIG_fail;
33946 temp2 = true;
33947 }
33948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33949 if (!SWIG_IsOK(res3)) {
33950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33951 }
33952 if (!argp3) {
33953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33954 }
33955 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33956 {
33957 arg4 = &temp4;
33958 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33959 }
33960 if (obj4) {
33961 ecode5 = SWIG_AsVal_int(obj4, &val5);
33962 if (!SWIG_IsOK(ecode5)) {
33963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33964 }
33965 arg5 = static_cast< int >(val5);
33966 }
33967 if (obj5) {
33968 ecode6 = SWIG_AsVal_int(obj5, &val6);
33969 if (!SWIG_IsOK(ecode6)) {
33970 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33971 }
33972 arg6 = static_cast< int >(val6);
33973 }
33974 {
33975 PyThreadState* __tstate = wxPyBeginAllowThreads();
33976 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33977 wxPyEndAllowThreads(__tstate);
33978 if (PyErr_Occurred()) SWIG_fail;
33979 }
33980 resultobj = SWIG_Py_Void();
33981 {
33982 if (temp2)
33983 delete arg2;
33984 }
33985 return resultobj;
33986fail:
33987 {
33988 if (temp2)
33989 delete arg2;
33990 }
33991 return NULL;
33992}
33993
33994
33995SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33996 PyObject *resultobj = 0;
33997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33998 int arg2 ;
33999 wxPoint *arg3 = (wxPoint *) 0 ;
34000 void *argp1 = 0 ;
34001 int res1 = 0 ;
34002 PyObject * obj0 = 0 ;
34003 PyObject * obj1 = 0 ;
34004 char * kwnames[] = {
34005 (char *) "self",(char *) "points", NULL
34006 };
34007
34008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34010 if (!SWIG_IsOK(res1)) {
34011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34012 }
34013 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34014 {
34015 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34016 if (arg3 == NULL) SWIG_fail;
34017 }
34018 {
34019 PyThreadState* __tstate = wxPyBeginAllowThreads();
34020 (arg1)->DrawSpline(arg2,arg3);
34021 wxPyEndAllowThreads(__tstate);
34022 if (PyErr_Occurred()) SWIG_fail;
34023 }
34024 resultobj = SWIG_Py_Void();
34025 {
34026 if (arg3) delete [] arg3;
34027 }
34028 return resultobj;
34029fail:
34030 {
34031 if (arg3) delete [] arg3;
34032 }
34033 return NULL;
34034}
34035
34036
34037SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34038 PyObject *resultobj = 0;
34039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34040 void *argp1 = 0 ;
34041 int res1 = 0 ;
34042 PyObject *swig_obj[1] ;
34043
34044 if (!args) SWIG_fail;
34045 swig_obj[0] = args;
34046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34047 if (!SWIG_IsOK(res1)) {
34048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34049 }
34050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34051 {
34052 PyThreadState* __tstate = wxPyBeginAllowThreads();
34053 (arg1)->Clear();
34054 wxPyEndAllowThreads(__tstate);
34055 if (PyErr_Occurred()) SWIG_fail;
34056 }
34057 resultobj = SWIG_Py_Void();
34058 return resultobj;
34059fail:
34060 return NULL;
34061}
34062
34063
34064SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34065 PyObject *resultobj = 0;
34066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34067 wxFont *arg2 = 0 ;
34068 void *argp1 = 0 ;
34069 int res1 = 0 ;
34070 void *argp2 = 0 ;
34071 int res2 = 0 ;
34072 PyObject * obj0 = 0 ;
34073 PyObject * obj1 = 0 ;
34074 char * kwnames[] = {
34075 (char *) "self",(char *) "font", NULL
34076 };
34077
34078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34080 if (!SWIG_IsOK(res1)) {
34081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34082 }
34083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34085 if (!SWIG_IsOK(res2)) {
34086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34087 }
34088 if (!argp2) {
34089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34090 }
34091 arg2 = reinterpret_cast< wxFont * >(argp2);
34092 {
34093 PyThreadState* __tstate = wxPyBeginAllowThreads();
34094 (arg1)->SetFont((wxFont const &)*arg2);
34095 wxPyEndAllowThreads(__tstate);
34096 if (PyErr_Occurred()) SWIG_fail;
34097 }
34098 resultobj = SWIG_Py_Void();
34099 return resultobj;
34100fail:
34101 return NULL;
34102}
34103
34104
34105SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34106 PyObject *resultobj = 0;
34107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34108 wxPen *arg2 = 0 ;
34109 void *argp1 = 0 ;
34110 int res1 = 0 ;
34111 void *argp2 = 0 ;
34112 int res2 = 0 ;
34113 PyObject * obj0 = 0 ;
34114 PyObject * obj1 = 0 ;
34115 char * kwnames[] = {
34116 (char *) "self",(char *) "pen", NULL
34117 };
34118
34119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34121 if (!SWIG_IsOK(res1)) {
34122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34123 }
34124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34126 if (!SWIG_IsOK(res2)) {
34127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34128 }
34129 if (!argp2) {
34130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34131 }
34132 arg2 = reinterpret_cast< wxPen * >(argp2);
34133 {
34134 PyThreadState* __tstate = wxPyBeginAllowThreads();
34135 (arg1)->SetPen((wxPen const &)*arg2);
34136 wxPyEndAllowThreads(__tstate);
34137 if (PyErr_Occurred()) SWIG_fail;
34138 }
34139 resultobj = SWIG_Py_Void();
34140 return resultobj;
34141fail:
34142 return NULL;
34143}
34144
34145
34146SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34147 PyObject *resultobj = 0;
34148 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34149 wxBrush *arg2 = 0 ;
34150 void *argp1 = 0 ;
34151 int res1 = 0 ;
34152 void *argp2 = 0 ;
34153 int res2 = 0 ;
34154 PyObject * obj0 = 0 ;
34155 PyObject * obj1 = 0 ;
34156 char * kwnames[] = {
34157 (char *) "self",(char *) "brush", NULL
34158 };
34159
34160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34162 if (!SWIG_IsOK(res1)) {
34163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34164 }
34165 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34167 if (!SWIG_IsOK(res2)) {
34168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34169 }
34170 if (!argp2) {
34171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34172 }
34173 arg2 = reinterpret_cast< wxBrush * >(argp2);
34174 {
34175 PyThreadState* __tstate = wxPyBeginAllowThreads();
34176 (arg1)->SetBrush((wxBrush const &)*arg2);
34177 wxPyEndAllowThreads(__tstate);
34178 if (PyErr_Occurred()) SWIG_fail;
34179 }
34180 resultobj = SWIG_Py_Void();
34181 return resultobj;
34182fail:
34183 return NULL;
34184}
34185
34186
34187SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34188 PyObject *resultobj = 0;
34189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34190 wxBrush *arg2 = 0 ;
34191 void *argp1 = 0 ;
34192 int res1 = 0 ;
34193 void *argp2 = 0 ;
34194 int res2 = 0 ;
34195 PyObject * obj0 = 0 ;
34196 PyObject * obj1 = 0 ;
34197 char * kwnames[] = {
34198 (char *) "self",(char *) "brush", NULL
34199 };
34200
34201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34203 if (!SWIG_IsOK(res1)) {
34204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34205 }
34206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34208 if (!SWIG_IsOK(res2)) {
34209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34210 }
34211 if (!argp2) {
34212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34213 }
34214 arg2 = reinterpret_cast< wxBrush * >(argp2);
34215 {
34216 PyThreadState* __tstate = wxPyBeginAllowThreads();
34217 (arg1)->SetBackground((wxBrush const &)*arg2);
34218 wxPyEndAllowThreads(__tstate);
34219 if (PyErr_Occurred()) SWIG_fail;
34220 }
34221 resultobj = SWIG_Py_Void();
34222 return resultobj;
34223fail:
34224 return NULL;
34225}
34226
34227
34228SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34229 PyObject *resultobj = 0;
34230 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34231 int arg2 ;
34232 void *argp1 = 0 ;
34233 int res1 = 0 ;
34234 int val2 ;
34235 int ecode2 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 char * kwnames[] = {
34239 (char *) "self",(char *) "mode", NULL
34240 };
34241
34242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34244 if (!SWIG_IsOK(res1)) {
34245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34246 }
34247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34248 ecode2 = SWIG_AsVal_int(obj1, &val2);
34249 if (!SWIG_IsOK(ecode2)) {
34250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34251 }
34252 arg2 = static_cast< int >(val2);
34253 {
34254 PyThreadState* __tstate = wxPyBeginAllowThreads();
34255 (arg1)->SetBackgroundMode(arg2);
34256 wxPyEndAllowThreads(__tstate);
34257 if (PyErr_Occurred()) SWIG_fail;
34258 }
34259 resultobj = SWIG_Py_Void();
34260 return resultobj;
34261fail:
34262 return NULL;
34263}
34264
34265
34266SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34267 PyObject *resultobj = 0;
34268 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34269 wxPalette *arg2 = 0 ;
34270 void *argp1 = 0 ;
34271 int res1 = 0 ;
34272 void *argp2 = 0 ;
34273 int res2 = 0 ;
34274 PyObject * obj0 = 0 ;
34275 PyObject * obj1 = 0 ;
34276 char * kwnames[] = {
34277 (char *) "self",(char *) "palette", NULL
34278 };
34279
34280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34282 if (!SWIG_IsOK(res1)) {
34283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34284 }
34285 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34287 if (!SWIG_IsOK(res2)) {
34288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34289 }
34290 if (!argp2) {
34291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34292 }
34293 arg2 = reinterpret_cast< wxPalette * >(argp2);
34294 {
34295 PyThreadState* __tstate = wxPyBeginAllowThreads();
34296 (arg1)->SetPalette((wxPalette const &)*arg2);
34297 wxPyEndAllowThreads(__tstate);
34298 if (PyErr_Occurred()) SWIG_fail;
34299 }
34300 resultobj = SWIG_Py_Void();
34301 return resultobj;
34302fail:
34303 return NULL;
34304}
34305
34306
34307SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34308 PyObject *resultobj = 0;
34309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34310 wxColour *arg2 = 0 ;
34311 void *argp1 = 0 ;
34312 int res1 = 0 ;
34313 wxColour temp2 ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 char * kwnames[] = {
34317 (char *) "self",(char *) "colour", NULL
34318 };
34319
34320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34322 if (!SWIG_IsOK(res1)) {
34323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34324 }
34325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34326 {
34327 arg2 = &temp2;
34328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34329 }
34330 {
34331 PyThreadState* __tstate = wxPyBeginAllowThreads();
34332 (arg1)->SetTextForeground((wxColour const &)*arg2);
34333 wxPyEndAllowThreads(__tstate);
34334 if (PyErr_Occurred()) SWIG_fail;
34335 }
34336 resultobj = SWIG_Py_Void();
34337 return resultobj;
34338fail:
34339 return NULL;
34340}
34341
34342
34343SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34344 PyObject *resultobj = 0;
34345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34346 wxColour *arg2 = 0 ;
34347 void *argp1 = 0 ;
34348 int res1 = 0 ;
34349 wxColour temp2 ;
34350 PyObject * obj0 = 0 ;
34351 PyObject * obj1 = 0 ;
34352 char * kwnames[] = {
34353 (char *) "self",(char *) "colour", NULL
34354 };
34355
34356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34358 if (!SWIG_IsOK(res1)) {
34359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34360 }
34361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34362 {
34363 arg2 = &temp2;
34364 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34365 }
34366 {
34367 PyThreadState* __tstate = wxPyBeginAllowThreads();
34368 (arg1)->SetTextBackground((wxColour const &)*arg2);
34369 wxPyEndAllowThreads(__tstate);
34370 if (PyErr_Occurred()) SWIG_fail;
34371 }
34372 resultobj = SWIG_Py_Void();
34373 return resultobj;
34374fail:
34375 return NULL;
34376}
34377
34378
34379SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34380 PyObject *resultobj = 0;
34381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34382 int arg2 ;
34383 void *argp1 = 0 ;
34384 int res1 = 0 ;
34385 int val2 ;
34386 int ecode2 = 0 ;
34387 PyObject * obj0 = 0 ;
34388 PyObject * obj1 = 0 ;
34389 char * kwnames[] = {
34390 (char *) "self",(char *) "function", NULL
34391 };
34392
34393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34395 if (!SWIG_IsOK(res1)) {
34396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34397 }
34398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34399 ecode2 = SWIG_AsVal_int(obj1, &val2);
34400 if (!SWIG_IsOK(ecode2)) {
34401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34402 }
34403 arg2 = static_cast< int >(val2);
34404 {
34405 PyThreadState* __tstate = wxPyBeginAllowThreads();
34406 (arg1)->SetLogicalFunction(arg2);
34407 wxPyEndAllowThreads(__tstate);
34408 if (PyErr_Occurred()) SWIG_fail;
34409 }
34410 resultobj = SWIG_Py_Void();
34411 return resultobj;
34412fail:
34413 return NULL;
34414}
34415
34416
34417SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34418 PyObject *obj;
34419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34420 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34421 return SWIG_Py_Void();
34422}
34423
34424SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34425 return SWIG_Python_InitShadowInstance(args);
34426}
34427
34428static PyMethodDef SwigMethods[] = {
34429 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34430 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34431 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34432 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34433 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34434 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34435 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34436 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34437 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34438 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34439 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34440 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 34441 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 34442 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
34443 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34446 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34447 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34448 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34449 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 34450 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34451 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34452 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34453 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34454 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34455 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34456 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34457 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34458 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 34459 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
34460 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34461 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34462 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34463 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34464 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34465 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34466 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34467 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34468 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 34469 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
34470 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34474 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34475 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34476 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34477 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34479 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34480 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34481 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34482 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34483 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34486 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34487 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34489 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34490 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34491 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34492 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 34493 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
34494 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34495 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34496 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34498 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34499 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34500 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34501 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34502 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34503 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
34504 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34505 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34506 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34507 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34508 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34509 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34510 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34513 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34514 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34516 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34521 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34522 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34523 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34524 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34525 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34526 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34527 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34528 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34529 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34530 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34531 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34532 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34533 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34534 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34535 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34536 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34537 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34538 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34539 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34540 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34541 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34542 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34543 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34544 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34545 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34546 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34547 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34548 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34549 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34550 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34551 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34552 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34553 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34554 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34555 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34556 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34557 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34558 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34559 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34560 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34561 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34562 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34563 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34564 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34565 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34566 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34567 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34571 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34572 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34573 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
34574 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34575 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34576 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34577 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34578 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34580 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34581 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34582 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34583 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34584 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34585 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
34586 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34587 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34588 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34589 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34590 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34591 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34594 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34595 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34597 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34598 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34600 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34602 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34603 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34604 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34605 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34608 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34612 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34613 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34615 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34616 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34617 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
34618 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34619 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34620 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34621 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34622 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34623 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34624 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34625 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34626 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34627 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34631 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34632 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34633 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34634 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 34636 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34637 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34644 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34645 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34646 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34647 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34648 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34650 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34651 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34653 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34654 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34655 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34656 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34657 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34658 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34659 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34660 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34661 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34662 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34663 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34664 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34665 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34666 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34667 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34668 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34669 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34670 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34671 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34672 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34673 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34674 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34675 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34676 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34677 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34683 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34684 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34686 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34687 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34689 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34690 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34691 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34692 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34693 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34694 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34695 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34696 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34697 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34699 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34700 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34701 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34702 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34703 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34704 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34705 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34706 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34709 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34713 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34715 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34719 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34720 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34721 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34723 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34726 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34727 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34728 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 34729 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34730 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34731 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34732 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34733 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34734 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34735 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34736 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34737 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34738 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34739 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34740 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34741 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34742 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34743 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34744 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34747 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34748 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34749 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34750 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34751 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34755 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34756 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34757 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34758 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34760 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34761 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34762 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34763 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34764 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34765 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34766 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34767 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34768 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
34769 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34770 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34771 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34772 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34773 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34774 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34775 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34776 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34777 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34778 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34779 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34780 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34781 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34783 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34786 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34787 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34788 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34789 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34790 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34791 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34792 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34793 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 34795 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34796 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34803 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34804 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34805 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34807 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34808 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34809 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34810 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34811 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34812 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34813 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34814 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34815 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34816 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34820 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34822 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34823 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34824 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34857 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34861 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34863 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34865 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34866 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34870 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34871 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34873 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34875 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34876 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34877 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34878 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34880 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34881 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34883 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34884 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34885 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34886 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34887 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34888 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34892 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34893 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34894 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34895 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34896 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34898 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34899 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34900 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34903 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34904 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34905 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34906 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34907 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 34908 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
34909 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34910 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34911 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34912 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34913 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34914 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34915 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34916 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34919 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34921 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34923 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34925 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34926 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34927 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34929 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34930 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34931 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34934 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34935 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34936 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34938 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34939 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34940 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34941 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34942 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34943 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
34944 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34945 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34946 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34947 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34950 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
8e99bda9 34953 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34954 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34957 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34958 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34959 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34962 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34963 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34964 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34966 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34967 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34969 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34970 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34972 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
34973 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34974 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34975 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34976 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34977 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34978 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34980 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34981 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
34983 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 34984 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34985 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34986 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34987 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34988 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34990 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34992 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34993 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34994 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34995 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34997 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34998 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35000 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35001 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35003 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
35004 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35005 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35007 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35009 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35010 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35013 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35016 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
35017 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35018 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35019 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35020 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35021 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 35022 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 35023 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
35024 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35025 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
35026 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35027 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35028 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35029 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35030 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35031 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35032 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35033 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35036 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35037 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
35038 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35039 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35040 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35044 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 35045 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 35046 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35047 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35049 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35050 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35051 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35052 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35053 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
35054 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
35055 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35056 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35057 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
35058 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35059 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35060 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35061 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35062 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35063 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35064 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35065 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35066 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35067 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
35068 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35069 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35070 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35071 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35072 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35073 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35074 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35075 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35077 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35078 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35079 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35080 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35081 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35082 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
35083 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35084 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35085 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35086 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35087 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35088 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35089 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35090 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35091 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35092 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35093 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35094 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35095 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35096 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35097 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 35098 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 35099 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 35100 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 35101 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 35102 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 35103 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 35104 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 35105 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
35106 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35107 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35108 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35109 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
35110 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35111 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35112 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35113 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35114 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35115 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35116 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35117 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
35118 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35119 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35120 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35121 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
35122 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35123 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35124 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35125 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35126 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35127 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35128 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35129 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35130 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35131 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35133 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35134 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35135 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35136 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35137 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35138 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35139 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35140 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35141 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35142 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35143 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35144 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
35145 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35146 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35147 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35148 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35149 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35150 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35151 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35152 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35153 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35154 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35155 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35156 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35157 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35158 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35159 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35160 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35161 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35162 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
35163 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35164 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35165 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35167 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35168 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35169 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35170 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
35171 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
35173 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35175 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35177 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
35178 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35179 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
35181 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35183 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35184 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35185 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35187 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
35188 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35189 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35190 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35191 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35192 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35193 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35194 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35198 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
35202 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35204 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35206 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35207 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35218 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35229 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35230 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35232 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35233 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35235 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35239 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35244 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35245 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35246 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35247 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35248 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35249 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35250 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35251 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35253 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35254 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35255 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35256 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35257 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
35258 { NULL, NULL, 0, NULL }
35259};
35260
35261
35262/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35263
72ef6efb
RD
35264static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35265 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35266}
8e99bda9
RD
35267static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35268 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35269}
35270static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35271 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35272}
72ef6efb
RD
35273static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35274 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35275}
35276static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35277 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35278}
fc46b7f3
RD
35279static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35280 return (void *)((wxLocale *) ((wxPyLocale *) x));
35281}
0085ce49
RD
35282static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35283 return (void *)((wxGDIObject *) ((wxIcon *) x));
35284}
35285static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35286 return (void *)((wxGDIObject *) ((wxPalette *) x));
35287}
35288static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35289 return (void *)((wxGDIObject *) ((wxPen *) x));
35290}
35291static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35292 return (void *)((wxGDIObject *) ((wxFont *) x));
35293}
35294static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35295 return (void *)((wxGDIObject *) ((wxCursor *) x));
35296}
35297static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35298 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35299}
35300static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35301 return (void *)((wxGDIObject *) ((wxRegion *) x));
35302}
35303static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35304 return (void *)((wxGDIObject *) ((wxBrush *) x));
35305}
72ef6efb
RD
35306static void *_p_wxGCDCTo_p_wxDC(void *x) {
35307 return (void *)((wxDC *) ((wxGCDC *) x));
35308}
0085ce49
RD
35309static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35310 return (void *)((wxDC *) ((wxScreenDC *) x));
35311}
24f6c4e8
RD
35312static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35313 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35314}
0085ce49
RD
35315static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35316 return (void *)((wxDC *) ((wxMirrorDC *) x));
35317}
35318static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35319 return (void *)((wxDC *) ((wxMemoryDC *) x));
35320}
35321static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35322 return (void *)((wxDC *) ((wxWindowDC *) x));
35323}
35324static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35325 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35326}
0085ce49 35327static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 35328 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
35329}
35330static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 35331 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49 35332}
24f6c4e8
RD
35333static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35334 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35335}
35336static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35337 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35338}
0085ce49
RD
35339static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35340 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35341}
35342static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35343 return (void *)((wxDC *) ((wxPrinterDC *) x));
35344}
50efceee
RD
35345static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35346 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35347}
35348static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35349 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35350}
35351static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35352 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35353}
0085ce49
RD
35354static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35355 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35356}
35357static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35358 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35359}
35360static void *_p_wxPenTo_p_wxObject(void *x) {
35361 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35362}
35363static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35364 return (void *)((wxObject *) ((wxRegionIterator *) x));
35365}
0085ce49
RD
35366static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35367 return (void *)((wxObject *) ((wxSizerItem *) x));
35368}
34e0a3bb
RD
35369static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35370 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35371}
0085ce49
RD
35372static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35373 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35374}
35375static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35376 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35377}
35378static void *_p_wxIconTo_p_wxObject(void *x) {
35379 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35380}
35381static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35382 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35383}
35384static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35385 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35386}
35387static void *_p_wxSizerTo_p_wxObject(void *x) {
35388 return (void *)((wxObject *) ((wxSizer *) x));
35389}
35390static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35391 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35392}
35393static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35394 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35395}
0085ce49
RD
35396static void *_p_wxEventTo_p_wxObject(void *x) {
35397 return (void *)((wxObject *) ((wxEvent *) x));
35398}
35399static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35400 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35401}
35402static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35403 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35404}
35405static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35406 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35407}
27e45892
RD
35408static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35409 return (void *)((wxObject *) ((wxPseudoDC *) x));
35410}
2131d850
RD
35411static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35412 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35413}
0085ce49
RD
35414static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35415 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35416}
35417static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35418 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35419}
35420static void *_p_wxDCTo_p_wxObject(void *x) {
35421 return (void *)((wxObject *) ((wxDC *) x));
35422}
35423static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35424 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35425}
35426static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35427 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35428}
35429static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35430 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35431}
35432static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35433 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35434}
35435static void *_p_wxControlTo_p_wxObject(void *x) {
35436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35437}
35438static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35439 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35440}
35441static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 35442 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
35443}
35444static void *_p_wxFSFileTo_p_wxObject(void *x) {
35445 return (void *)((wxObject *) ((wxFSFile *) x));
35446}
35447static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35448 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35449}
35450static void *_p_wxRegionTo_p_wxObject(void *x) {
35451 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35452}
35453static void *_p_wxPySizerTo_p_wxObject(void *x) {
35454 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35455}
35456static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35457 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35458}
35459static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35460 return (void *)((wxObject *) ((wxGDIObject *) x));
35461}
35462static void *_p_wxEffectsTo_p_wxObject(void *x) {
35463 return (void *)((wxObject *) ((wxEffects *) x));
35464}
35465static void *_p_wxPyEventTo_p_wxObject(void *x) {
35466 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35467}
35468static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35469 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35470}
35471static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35472 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35473}
35474static void *_p_wxShowEventTo_p_wxObject(void *x) {
35475 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35476}
35477static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35478 return (void *)((wxObject *) ((wxMenuItem *) x));
35479}
35480static void *_p_wxDateEventTo_p_wxObject(void *x) {
35481 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35482}
35483static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35484 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35485}
35486static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35487 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35488}
35489static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35490 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35491}
35492static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35493 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35494}
35495static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35496 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35497}
35498static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35499 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35500}
35501static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35502 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35503}
35504static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35505 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35506}
35507static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35508 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35509}
35510static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35511 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35512}
35513static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35514 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35515}
35516static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35517 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35518}
35519static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35520 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35521}
35522static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35523 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35524}
35525static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35526 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35527}
35528static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35529 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35530}
35531static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35532 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35533}
35534static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35535 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35536}
35537static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35538 return (void *)((wxObject *) ((wxImageHandler *) x));
35539}
35540static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35541 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35542}
35543static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35544 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35545}
35546static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35547 return (void *)((wxObject *) ((wxEvtHandler *) x));
35548}
34e0a3bb
RD
35549static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35550 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35551}
24f6c4e8
RD
35552static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35553 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35554}
0085ce49 35555static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 35556 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49 35557}
24f6c4e8
RD
35558static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35559 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
0085ce49
RD
35560}
35561static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35562 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35563}
35564static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35565 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35566}
35567static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35568 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35569}
35570static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35571 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35572}
35573static void *_p_wxImageTo_p_wxObject(void *x) {
35574 return (void *)((wxObject *) ((wxImage *) x));
35575}
35576static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35577 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35578}
35579static void *_p_wxPaletteTo_p_wxObject(void *x) {
35580 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35581}
35582static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 35583 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
35584}
35585static void *_p_wxImageListTo_p_wxObject(void *x) {
35586 return (void *)((wxObject *) ((wxImageList *) x));
35587}
72ef6efb
RD
35588static void *_p_wxGCDCTo_p_wxObject(void *x) {
35589 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35590}
0085ce49
RD
35591static void *_p_wxCursorTo_p_wxObject(void *x) {
35592 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35593}
35594static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35595 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35596}
35597static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35598 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35599}
35600static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35602}
35603static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35604 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35605}
35606static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35607 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35608}
35609static void *_p_wxWindowTo_p_wxObject(void *x) {
35610 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35611}
35612static void *_p_wxMenuTo_p_wxObject(void *x) {
35613 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35614}
35615static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35617}
35618static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35619 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35620}
0085ce49
RD
35621static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35622 return (void *)((wxObject *) ((wxFileSystem *) x));
35623}
35624static void *_p_wxBitmapTo_p_wxObject(void *x) {
35625 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35626}
35627static void *_p_wxMaskTo_p_wxObject(void *x) {
35628 return (void *)((wxObject *) ((wxMask *) x));
35629}
35630static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35631 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35632}
35633static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35634 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35635}
35636static void *_p_wxPyAppTo_p_wxObject(void *x) {
35637 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35638}
35639static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35640 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35641}
35642static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35643 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35644}
35645static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35646 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35647}
35648static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35649 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35650}
35651static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35652 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35653}
35654static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35655 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35656}
35657static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35658 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35659}
35660static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35661 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35662}
35663static void *_p_wxFontTo_p_wxObject(void *x) {
35664 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35665}
35666static void *_p_wxBrushTo_p_wxObject(void *x) {
35667 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35668}
35669static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35670 return (void *)((wxObject *) ((wxMetaFile *) x));
35671}
35672static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35674}
35675static void *_p_wxColourTo_p_wxObject(void *x) {
35676 return (void *)((wxObject *) ((wxColour *) x));
35677}
0085ce49
RD
35678static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35679 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35680}
35681static void *_p_wxValidatorTo_p_wxObject(void *x) {
35682 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35683}
35684static void *_p_wxControlTo_p_wxWindow(void *x) {
35685 return (void *)((wxWindow *) ((wxControl *) x));
35686}
35687static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35688 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35689}
35690static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35691 return (void *)((wxWindow *) ((wxMenuBar *) x));
35692}
fc46b7f3
RD
35693static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35694 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35695}
35696static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35697 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35698}
35699static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 35700static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 35701static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
35702static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
35703static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35704static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35705static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35706static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 35707static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35708static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35709static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 35710static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
0085ce49
RD
35711static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35712static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35713static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35714static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35715static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 35716static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 35717static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 35718static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
35719static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35720static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35721static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35722static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
b39fe951 35723static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
35724static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35725static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35726static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35727static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35728static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35729static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35730static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 35731static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 35732static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 35733static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
35734static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35735static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 35736static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
35737static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35738static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35739static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35740static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35741static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35742static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35743static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35744static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35745static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35746static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35747static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35748static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35749static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35750static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35751static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35752static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
35753static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35754static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 35755static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 35756static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
35757static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35758static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35759static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35760static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35761static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35762static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35763static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35764static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35765static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35766static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35767static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35768static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 35769static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35770static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35771static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35772static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35773static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35774static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35775static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35776static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35777static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35778static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35779static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35780static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35781static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35782static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35783static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35784static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35785static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35786static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35787static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35788static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35789static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35790static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35791static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35792static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35793static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35794static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35795static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35796static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35797static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35798static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35799static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
24f6c4e8 35800static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 35801static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 35802static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 35803static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
35804static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35805static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35806static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 35807static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35808static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35809static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35810static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35811static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35812static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35813static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35814static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35815static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35816static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35817static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35818static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35819static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35820static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35821static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35822static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35823static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35824static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35825static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35826static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35827static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35828static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35829static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 35830static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
35831static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35832static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35833static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35834static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35835static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 35836static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 35837static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 35838static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
0085ce49
RD
35839static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35840static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35841static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 35842static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 35843static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 35844static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49
RD
35845static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35846static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35847static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35848static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35849static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35850static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35851static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35852static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 35853static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
35854static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35855static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35856static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35857
35858static swig_type_info *swig_type_initial[] = {
fc46b7f3 35859 &_swigt__p_buffer,
0085ce49
RD
35860 &_swigt__p_char,
35861 &_swigt__p_double,
35862 &_swigt__p_form_ops_t,
35863 &_swigt__p_int,
35864 &_swigt__p_unsigned_char,
35865 &_swigt__p_unsigned_int,
35866 &_swigt__p_unsigned_long,
0a27f394 35867 &_swigt__p_void,
0085ce49
RD
35868 &_swigt__p_wxANIHandler,
35869 &_swigt__p_wxAcceleratorTable,
35870 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
35871 &_swigt__p_wxAlphaPixelData,
35872 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 35873 &_swigt__p_wxAutoBufferedPaintDC,
0085ce49
RD
35874 &_swigt__p_wxBMPHandler,
35875 &_swigt__p_wxBitmap,
35876 &_swigt__p_wxBoxSizer,
35877 &_swigt__p_wxBrush,
35878 &_swigt__p_wxBrushList,
35879 &_swigt__p_wxBufferedDC,
35880 &_swigt__p_wxBufferedPaintDC,
35881 &_swigt__p_wxCURHandler,
fc46b7f3 35882 &_swigt__p_wxChar,
0085ce49
RD
35883 &_swigt__p_wxChildFocusEvent,
35884 &_swigt__p_wxClientDC,
2131d850 35885 &_swigt__p_wxClipboardTextEvent,
0085ce49 35886 &_swigt__p_wxCloseEvent,
72ef6efb 35887 &_swigt__p_wxColor,
0085ce49
RD
35888 &_swigt__p_wxColour,
35889 &_swigt__p_wxColourDatabase,
35890 &_swigt__p_wxCommandEvent,
35891 &_swigt__p_wxContextMenuEvent,
35892 &_swigt__p_wxControl,
35893 &_swigt__p_wxControlWithItems,
35894 &_swigt__p_wxCursor,
35895 &_swigt__p_wxDC,
b39fe951 35896 &_swigt__p_wxDCOverlay,
0085ce49
RD
35897 &_swigt__p_wxDash,
35898 &_swigt__p_wxDateEvent,
35899 &_swigt__p_wxDisplayChangedEvent,
35900 &_swigt__p_wxDropFilesEvent,
35901 &_swigt__p_wxDuplexMode,
35902 &_swigt__p_wxEffects,
35903 &_swigt__p_wxEncodingConverter,
35904 &_swigt__p_wxEraseEvent,
35905 &_swigt__p_wxEvent,
35906 &_swigt__p_wxEvtHandler,
35907 &_swigt__p_wxFSFile,
35908 &_swigt__p_wxFileSystem,
35909 &_swigt__p_wxFlexGridSizer,
35910 &_swigt__p_wxFocusEvent,
35911 &_swigt__p_wxFont,
35912 &_swigt__p_wxFontList,
35913 &_swigt__p_wxFontMapper,
35914 &_swigt__p_wxGBSizerItem,
72ef6efb 35915 &_swigt__p_wxGCDC,
50efceee 35916 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
35917 &_swigt__p_wxGDIObject,
35918 &_swigt__p_wxGIFHandler,
72ef6efb
RD
35919 &_swigt__p_wxGraphicsContext,
35920 &_swigt__p_wxGraphicsPath,
0085ce49
RD
35921 &_swigt__p_wxGridBagSizer,
35922 &_swigt__p_wxGridSizer,
33d6fd3b 35923 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
35924 &_swigt__p_wxICOHandler,
35925 &_swigt__p_wxIcon,
35926 &_swigt__p_wxIconBundle,
35927 &_swigt__p_wxIconLocation,
35928 &_swigt__p_wxIconizeEvent,
35929 &_swigt__p_wxIdleEvent,
35930 &_swigt__p_wxImage,
35931 &_swigt__p_wxImageHandler,
35932 &_swigt__p_wxImageList,
35933 &_swigt__p_wxIndividualLayoutConstraint,
35934 &_swigt__p_wxInitDialogEvent,
35935 &_swigt__p_wxJPEGHandler,
35936 &_swigt__p_wxKeyEvent,
35937 &_swigt__p_wxLanguageInfo,
35938 &_swigt__p_wxLayoutConstraints,
35939 &_swigt__p_wxLocale,
35940 &_swigt__p_wxMask,
35941 &_swigt__p_wxMaximizeEvent,
35942 &_swigt__p_wxMemoryDC,
35943 &_swigt__p_wxMenu,
35944 &_swigt__p_wxMenuBar,
35945 &_swigt__p_wxMenuEvent,
35946 &_swigt__p_wxMenuItem,
35947 &_swigt__p_wxMetaFile,
35948 &_swigt__p_wxMetaFileDC,
35949 &_swigt__p_wxMirrorDC,
35950 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 35951 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
35952 &_swigt__p_wxMouseEvent,
35953 &_swigt__p_wxMoveEvent,
35954 &_swigt__p_wxNativeEncodingInfo,
35955 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
35956 &_swigt__p_wxNativePixelData,
35957 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
35958 &_swigt__p_wxNavigationKeyEvent,
35959 &_swigt__p_wxNcPaintEvent,
35960 &_swigt__p_wxNotifyEvent,
35961 &_swigt__p_wxObject,
b39fe951 35962 &_swigt__p_wxOverlay,
0085ce49
RD
35963 &_swigt__p_wxPCXHandler,
35964 &_swigt__p_wxPNGHandler,
35965 &_swigt__p_wxPNMHandler,
35966 &_swigt__p_wxPaintDC,
35967 &_swigt__p_wxPaintEvent,
35968 &_swigt__p_wxPalette,
35969 &_swigt__p_wxPaletteChangedEvent,
35970 &_swigt__p_wxPaperSize,
35971 &_swigt__p_wxPen,
35972 &_swigt__p_wxPenList,
fc46b7f3 35973 &_swigt__p_wxPixelDataBase,
0085ce49 35974 &_swigt__p_wxPoint,
72ef6efb 35975 &_swigt__p_wxPoint2D,
0085ce49
RD
35976 &_swigt__p_wxPostScriptDC,
35977 &_swigt__p_wxPrintData,
35978 &_swigt__p_wxPrinterDC,
27e45892 35979 &_swigt__p_wxPseudoDC,
0085ce49
RD
35980 &_swigt__p_wxPyApp,
35981 &_swigt__p_wxPyCommandEvent,
35982 &_swigt__p_wxPyEvent,
35983 &_swigt__p_wxPyFontEnumerator,
35984 &_swigt__p_wxPyImageHandler,
fc46b7f3 35985 &_swigt__p_wxPyLocale,
0085ce49
RD
35986 &_swigt__p_wxPySizer,
35987 &_swigt__p_wxPyValidator,
35988 &_swigt__p_wxQueryNewPaletteEvent,
35989 &_swigt__p_wxRect,
35990 &_swigt__p_wxRegion,
35991 &_swigt__p_wxRegionIterator,
35992 &_swigt__p_wxRendererNative,
35993 &_swigt__p_wxRendererVersion,
35994 &_swigt__p_wxScreenDC,
35995 &_swigt__p_wxScrollEvent,
35996 &_swigt__p_wxScrollWinEvent,
35997 &_swigt__p_wxSetCursorEvent,
35998 &_swigt__p_wxShowEvent,
35999 &_swigt__p_wxSize,
36000 &_swigt__p_wxSizeEvent,
36001 &_swigt__p_wxSizer,
36002 &_swigt__p_wxSizerItem,
36003 &_swigt__p_wxSplitterRenderParams,
36004 &_swigt__p_wxStaticBoxSizer,
36005 &_swigt__p_wxStdDialogButtonSizer,
50efceee 36006 &_swigt__p_wxStockGDI,
0085ce49
RD
36007 &_swigt__p_wxString,
36008 &_swigt__p_wxSysColourChangedEvent,
36009 &_swigt__p_wxTIFFHandler,
36010 &_swigt__p_wxUpdateUIEvent,
36011 &_swigt__p_wxValidator,
36012 &_swigt__p_wxWindow,
36013 &_swigt__p_wxWindowCreateEvent,
36014 &_swigt__p_wxWindowDC,
36015 &_swigt__p_wxWindowDestroyEvent,
36016 &_swigt__p_wxXPMHandler,
36017};
36018
fc46b7f3 36019static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36020static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36021static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36022static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36023static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36024static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36025static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36026static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 36027static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
36028static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36029static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36030static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36031static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36032static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36033static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36034static 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}};
36035static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36036static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
36037static 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}};
36038static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36039static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36040static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36041static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36042static 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}};
b39fe951 36043static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36044static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36045static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36046static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36047static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36048static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36049static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36050static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36051static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 36052static 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 36053static 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}};
72ef6efb
RD
36054static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36055static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 36056static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36057static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36058static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36059static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36060static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36061static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36062static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36063static 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 36064static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 36065static 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
36066static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36067static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36068static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36069static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36070static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
36071static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36072static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 36073static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 36074static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36075static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36076static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36077static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36078static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36079static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36080static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36081static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36082static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36083static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36084static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36085static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36086static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36087static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36088static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36089static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36090static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36091static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36092static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36093static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36094static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36095static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36096static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36097static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36098static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36099static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36100static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36101static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36102static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36103static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36104static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36105static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36106static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36107static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36108static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36109static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36110static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36111static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36112static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36113static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36114static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36115static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36116static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36117static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36118static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36119static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36120static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36121static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36122static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36123static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36124static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36125static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36126static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36127static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36128static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36129static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36130static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36131static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36132static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36133static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36134static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36135static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36136static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36137static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36138static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36139static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36140static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36141static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36142static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36143static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36144static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36145static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36146static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36147static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36148static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36149static 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_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_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_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_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_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 36150static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36151static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36152static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36153static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36154static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36155static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36156static 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 36157static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36158static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36159static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36160static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36161static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36162static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 36163static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36164static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36165static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36166static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36167static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36168static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36169static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36170static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36171static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36172static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 36173static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
36174static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36175static 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 36176static 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
36177
36178static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 36179 _swigc__p_buffer,
0085ce49
RD
36180 _swigc__p_char,
36181 _swigc__p_double,
36182 _swigc__p_form_ops_t,
36183 _swigc__p_int,
36184 _swigc__p_unsigned_char,
36185 _swigc__p_unsigned_int,
36186 _swigc__p_unsigned_long,
0a27f394 36187 _swigc__p_void,
0085ce49
RD
36188 _swigc__p_wxANIHandler,
36189 _swigc__p_wxAcceleratorTable,
36190 _swigc__p_wxActivateEvent,
fc46b7f3
RD
36191 _swigc__p_wxAlphaPixelData,
36192 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 36193 _swigc__p_wxAutoBufferedPaintDC,
0085ce49
RD
36194 _swigc__p_wxBMPHandler,
36195 _swigc__p_wxBitmap,
36196 _swigc__p_wxBoxSizer,
36197 _swigc__p_wxBrush,
36198 _swigc__p_wxBrushList,
36199 _swigc__p_wxBufferedDC,
36200 _swigc__p_wxBufferedPaintDC,
36201 _swigc__p_wxCURHandler,
fc46b7f3 36202 _swigc__p_wxChar,
0085ce49
RD
36203 _swigc__p_wxChildFocusEvent,
36204 _swigc__p_wxClientDC,
2131d850 36205 _swigc__p_wxClipboardTextEvent,
0085ce49 36206 _swigc__p_wxCloseEvent,
72ef6efb 36207 _swigc__p_wxColor,
0085ce49
RD
36208 _swigc__p_wxColour,
36209 _swigc__p_wxColourDatabase,
36210 _swigc__p_wxCommandEvent,
36211 _swigc__p_wxContextMenuEvent,
36212 _swigc__p_wxControl,
36213 _swigc__p_wxControlWithItems,
36214 _swigc__p_wxCursor,
36215 _swigc__p_wxDC,
b39fe951 36216 _swigc__p_wxDCOverlay,
0085ce49
RD
36217 _swigc__p_wxDash,
36218 _swigc__p_wxDateEvent,
36219 _swigc__p_wxDisplayChangedEvent,
36220 _swigc__p_wxDropFilesEvent,
36221 _swigc__p_wxDuplexMode,
36222 _swigc__p_wxEffects,
36223 _swigc__p_wxEncodingConverter,
36224 _swigc__p_wxEraseEvent,
36225 _swigc__p_wxEvent,
36226 _swigc__p_wxEvtHandler,
36227 _swigc__p_wxFSFile,
36228 _swigc__p_wxFileSystem,
36229 _swigc__p_wxFlexGridSizer,
36230 _swigc__p_wxFocusEvent,
36231 _swigc__p_wxFont,
36232 _swigc__p_wxFontList,
36233 _swigc__p_wxFontMapper,
36234 _swigc__p_wxGBSizerItem,
72ef6efb 36235 _swigc__p_wxGCDC,
50efceee 36236 _swigc__p_wxGDIObjListBase,
0085ce49
RD
36237 _swigc__p_wxGDIObject,
36238 _swigc__p_wxGIFHandler,
72ef6efb
RD
36239 _swigc__p_wxGraphicsContext,
36240 _swigc__p_wxGraphicsPath,
0085ce49
RD
36241 _swigc__p_wxGridBagSizer,
36242 _swigc__p_wxGridSizer,
33d6fd3b 36243 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
36244 _swigc__p_wxICOHandler,
36245 _swigc__p_wxIcon,
36246 _swigc__p_wxIconBundle,
36247 _swigc__p_wxIconLocation,
36248 _swigc__p_wxIconizeEvent,
36249 _swigc__p_wxIdleEvent,
36250 _swigc__p_wxImage,
36251 _swigc__p_wxImageHandler,
36252 _swigc__p_wxImageList,
36253 _swigc__p_wxIndividualLayoutConstraint,
36254 _swigc__p_wxInitDialogEvent,
36255 _swigc__p_wxJPEGHandler,
36256 _swigc__p_wxKeyEvent,
36257 _swigc__p_wxLanguageInfo,
36258 _swigc__p_wxLayoutConstraints,
36259 _swigc__p_wxLocale,
36260 _swigc__p_wxMask,
36261 _swigc__p_wxMaximizeEvent,
36262 _swigc__p_wxMemoryDC,
36263 _swigc__p_wxMenu,
36264 _swigc__p_wxMenuBar,
36265 _swigc__p_wxMenuEvent,
36266 _swigc__p_wxMenuItem,
36267 _swigc__p_wxMetaFile,
36268 _swigc__p_wxMetaFileDC,
36269 _swigc__p_wxMirrorDC,
36270 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 36271 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
36272 _swigc__p_wxMouseEvent,
36273 _swigc__p_wxMoveEvent,
36274 _swigc__p_wxNativeEncodingInfo,
36275 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
36276 _swigc__p_wxNativePixelData,
36277 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
36278 _swigc__p_wxNavigationKeyEvent,
36279 _swigc__p_wxNcPaintEvent,
36280 _swigc__p_wxNotifyEvent,
36281 _swigc__p_wxObject,
b39fe951 36282 _swigc__p_wxOverlay,
0085ce49
RD
36283 _swigc__p_wxPCXHandler,
36284 _swigc__p_wxPNGHandler,
36285 _swigc__p_wxPNMHandler,
36286 _swigc__p_wxPaintDC,
36287 _swigc__p_wxPaintEvent,
36288 _swigc__p_wxPalette,
36289 _swigc__p_wxPaletteChangedEvent,
36290 _swigc__p_wxPaperSize,
36291 _swigc__p_wxPen,
36292 _swigc__p_wxPenList,
fc46b7f3 36293 _swigc__p_wxPixelDataBase,
0085ce49 36294 _swigc__p_wxPoint,
72ef6efb 36295 _swigc__p_wxPoint2D,
0085ce49
RD
36296 _swigc__p_wxPostScriptDC,
36297 _swigc__p_wxPrintData,
36298 _swigc__p_wxPrinterDC,
27e45892 36299 _swigc__p_wxPseudoDC,
0085ce49
RD
36300 _swigc__p_wxPyApp,
36301 _swigc__p_wxPyCommandEvent,
36302 _swigc__p_wxPyEvent,
36303 _swigc__p_wxPyFontEnumerator,
36304 _swigc__p_wxPyImageHandler,
fc46b7f3 36305 _swigc__p_wxPyLocale,
0085ce49
RD
36306 _swigc__p_wxPySizer,
36307 _swigc__p_wxPyValidator,
36308 _swigc__p_wxQueryNewPaletteEvent,
36309 _swigc__p_wxRect,
36310 _swigc__p_wxRegion,
36311 _swigc__p_wxRegionIterator,
36312 _swigc__p_wxRendererNative,
36313 _swigc__p_wxRendererVersion,
36314 _swigc__p_wxScreenDC,
36315 _swigc__p_wxScrollEvent,
36316 _swigc__p_wxScrollWinEvent,
36317 _swigc__p_wxSetCursorEvent,
36318 _swigc__p_wxShowEvent,
36319 _swigc__p_wxSize,
36320 _swigc__p_wxSizeEvent,
36321 _swigc__p_wxSizer,
36322 _swigc__p_wxSizerItem,
36323 _swigc__p_wxSplitterRenderParams,
36324 _swigc__p_wxStaticBoxSizer,
36325 _swigc__p_wxStdDialogButtonSizer,
50efceee 36326 _swigc__p_wxStockGDI,
0085ce49
RD
36327 _swigc__p_wxString,
36328 _swigc__p_wxSysColourChangedEvent,
36329 _swigc__p_wxTIFFHandler,
36330 _swigc__p_wxUpdateUIEvent,
36331 _swigc__p_wxValidator,
36332 _swigc__p_wxWindow,
36333 _swigc__p_wxWindowCreateEvent,
36334 _swigc__p_wxWindowDC,
36335 _swigc__p_wxWindowDestroyEvent,
36336 _swigc__p_wxXPMHandler,
36337};
36338
36339
36340/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36341
36342static swig_const_info swig_const_table[] = {
36343{0, 0, 0, 0.0, 0, 0}};
36344
36345#ifdef __cplusplus
36346}
36347#endif
36348/* -----------------------------------------------------------------------------
36349 * Type initialization:
36350 * This problem is tough by the requirement that no dynamic
36351 * memory is used. Also, since swig_type_info structures store pointers to
36352 * swig_cast_info structures and swig_cast_info structures store pointers back
36353 * to swig_type_info structures, we need some lookup code at initialization.
36354 * The idea is that swig generates all the structures that are needed.
36355 * The runtime then collects these partially filled structures.
36356 * The SWIG_InitializeModule function takes these initial arrays out of
36357 * swig_module, and does all the lookup, filling in the swig_module.types
36358 * array with the correct data and linking the correct swig_cast_info
36359 * structures together.
36360 *
36361 * The generated swig_type_info structures are assigned staticly to an initial
36362 * array. We just loop though that array, and handle each type individually.
36363 * First we lookup if this type has been already loaded, and if so, use the
36364 * loaded structure instead of the generated one. Then we have to fill in the
36365 * cast linked list. The cast data is initially stored in something like a
36366 * two-dimensional array. Each row corresponds to a type (there are the same
36367 * number of rows as there are in the swig_type_initial array). Each entry in
36368 * a column is one of the swig_cast_info structures for that type.
36369 * The cast_initial array is actually an array of arrays, because each row has
36370 * a variable number of columns. So to actually build the cast linked list,
36371 * we find the array of casts associated with the type, and loop through it
36372 * adding the casts to the list. The one last trick we need to do is making
36373 * sure the type pointer in the swig_cast_info struct is correct.
36374 *
36375 * First off, we lookup the cast->type name to see if it is already loaded.
36376 * There are three cases to handle:
36377 * 1) If the cast->type has already been loaded AND the type we are adding
36378 * casting info to has not been loaded (it is in this module), THEN we
36379 * replace the cast->type pointer with the type pointer that has already
36380 * been loaded.
36381 * 2) If BOTH types (the one we are adding casting info to, and the
36382 * cast->type) are loaded, THEN the cast info has already been loaded by
36383 * the previous module so we just ignore it.
36384 * 3) Finally, if cast->type has not already been loaded, then we add that
36385 * swig_cast_info to the linked list (because the cast->type) pointer will
36386 * be correct.
36387 * ----------------------------------------------------------------------------- */
36388
36389#ifdef __cplusplus
36390extern "C" {
36391#if 0
36392} /* c-mode */
36393#endif
36394#endif
36395
36396#if 0
36397#define SWIGRUNTIME_DEBUG
36398#endif
36399
36400SWIGRUNTIME void
36401SWIG_InitializeModule(void *clientdata) {
36402 size_t i;
36403 swig_module_info *module_head;
36404 static int init_run = 0;
36405
36406 clientdata = clientdata;
36407
36408 if (init_run) return;
36409 init_run = 1;
36410
36411 /* Initialize the swig_module */
36412 swig_module.type_initial = swig_type_initial;
36413 swig_module.cast_initial = swig_cast_initial;
36414
36415 /* Try and load any already created modules */
36416 module_head = SWIG_GetModule(clientdata);
36417 if (module_head) {
36418 swig_module.next = module_head->next;
36419 module_head->next = &swig_module;
36420 } else {
36421 /* This is the first module loaded */
36422 swig_module.next = &swig_module;
36423 SWIG_SetModule(clientdata, &swig_module);
36424 }
36425
36426 /* Now work on filling in swig_module.types */
36427#ifdef SWIGRUNTIME_DEBUG
36428 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36429#endif
36430 for (i = 0; i < swig_module.size; ++i) {
36431 swig_type_info *type = 0;
36432 swig_type_info *ret;
36433 swig_cast_info *cast;
36434
36435#ifdef SWIGRUNTIME_DEBUG
36436 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36437#endif
36438
36439 /* if there is another module already loaded */
36440 if (swig_module.next != &swig_module) {
36441 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 36442 }
0085ce49
RD
36443 if (type) {
36444 /* Overwrite clientdata field */
36445#ifdef SWIGRUNTIME_DEBUG
36446 printf("SWIG_InitializeModule: found type %s\n", type->name);
36447#endif
36448 if (swig_module.type_initial[i]->clientdata) {
36449 type->clientdata = swig_module.type_initial[i]->clientdata;
36450#ifdef SWIGRUNTIME_DEBUG
36451 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36452#endif
36453 }
36454 } else {
36455 type = swig_module.type_initial[i];
8d38bd1d 36456 }
0085ce49
RD
36457
36458 /* Insert casting types */
36459 cast = swig_module.cast_initial[i];
36460 while (cast->type) {
36461 /* Don't need to add information already in the list */
36462 ret = 0;
36463#ifdef SWIGRUNTIME_DEBUG
36464 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36465#endif
36466 if (swig_module.next != &swig_module) {
36467 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36468#ifdef SWIGRUNTIME_DEBUG
36469 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36470#endif
36471 }
36472 if (ret) {
36473 if (type == swig_module.type_initial[i]) {
36474#ifdef SWIGRUNTIME_DEBUG
36475 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36476#endif
36477 cast->type = ret;
36478 ret = 0;
36479 } else {
36480 /* Check for casting already in the list */
36481 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36482#ifdef SWIGRUNTIME_DEBUG
36483 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36484#endif
36485 if (!ocast) ret = 0;
36486 }
36487 }
36488
36489 if (!ret) {
36490#ifdef SWIGRUNTIME_DEBUG
36491 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36492#endif
36493 if (type->cast) {
36494 type->cast->prev = cast;
36495 cast->next = type->cast;
36496 }
36497 type->cast = cast;
36498 }
36499 cast++;
8d38bd1d 36500 }
0085ce49
RD
36501 /* Set entry in modules->types array equal to the type */
36502 swig_module.types[i] = type;
36503 }
36504 swig_module.types[i] = 0;
36505
36506#ifdef SWIGRUNTIME_DEBUG
36507 printf("**** SWIG_InitializeModule: Cast List ******\n");
36508 for (i = 0; i < swig_module.size; ++i) {
36509 int j = 0;
36510 swig_cast_info *cast = swig_module.cast_initial[i];
36511 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36512 while (cast->type) {
36513 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36514 cast++;
36515 ++j;
36516 }
36517 printf("---- Total casts: %d\n",j);
36518 }
36519 printf("**** SWIG_InitializeModule: Cast List ******\n");
36520#endif
36521}
36522
36523/* This function will propagate the clientdata field of type to
36524* any new swig_type_info structures that have been added into the list
36525* of equivalent types. It is like calling
36526* SWIG_TypeClientData(type, clientdata) a second time.
36527*/
36528SWIGRUNTIME void
36529SWIG_PropagateClientData(void) {
36530 size_t i;
36531 swig_cast_info *equiv;
36532 static int init_run = 0;
36533
36534 if (init_run) return;
36535 init_run = 1;
36536
36537 for (i = 0; i < swig_module.size; i++) {
36538 if (swig_module.types[i]->clientdata) {
36539 equiv = swig_module.types[i]->cast;
36540 while (equiv) {
36541 if (!equiv->converter) {
36542 if (equiv->type && !equiv->type->clientdata)
36543 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36544 }
36545 equiv = equiv->next;
36546 }
8d38bd1d 36547 }
0085ce49
RD
36548 }
36549}
36550
36551#ifdef __cplusplus
36552#if 0
36553{
36554 /* c-mode */
36555#endif
36556}
36557#endif
36558
36559
36560
36561#ifdef __cplusplus
36562extern "C" {
36563#endif
36564
36565 /* Python-specific SWIG API */
36566#define SWIG_newvarlink() SWIG_Python_newvarlink()
36567#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36568#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36569
36570 /* -----------------------------------------------------------------------------
36571 * global variable support code.
36572 * ----------------------------------------------------------------------------- */
36573
36574 typedef struct swig_globalvar {
36575 char *name; /* Name of global variable */
36576 PyObject *(*get_attr)(void); /* Return the current value */
36577 int (*set_attr)(PyObject *); /* Set the value */
36578 struct swig_globalvar *next;
36579 } swig_globalvar;
36580
36581 typedef struct swig_varlinkobject {
36582 PyObject_HEAD
36583 swig_globalvar *vars;
36584 } swig_varlinkobject;
36585
36586 SWIGINTERN PyObject *
36587 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36588 return PyString_FromString("<Swig global variables>");
36589 }
36590
36591 SWIGINTERN PyObject *
36592 swig_varlink_str(swig_varlinkobject *v) {
36593 PyObject *str = PyString_FromString("(");
36594 swig_globalvar *var;
36595 for (var = v->vars; var; var=var->next) {
36596 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36597 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36598 }
36599 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36600 return str;
36601 }
36602
36603 SWIGINTERN int
36604 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36605 PyObject *str = swig_varlink_str(v);
36606 fprintf(fp,"Swig global variables ");
36607 fprintf(fp,"%s\n", PyString_AsString(str));
36608 Py_DECREF(str);
36609 return 0;
36610 }
36611
36612 SWIGINTERN void
36613 swig_varlink_dealloc(swig_varlinkobject *v) {
36614 swig_globalvar *var = v->vars;
36615 while (var) {
36616 swig_globalvar *n = var->next;
36617 free(var->name);
36618 free(var);
36619 var = n;
8d38bd1d 36620 }
0085ce49
RD
36621 }
36622
36623 SWIGINTERN PyObject *
36624 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36625 PyObject *res = NULL;
36626 swig_globalvar *var = v->vars;
36627 while (var) {
36628 if (strcmp(var->name,n) == 0) {
36629 res = (*var->get_attr)();
36630 break;
36631 }
36632 var = var->next;
8d38bd1d 36633 }
0085ce49
RD
36634 if (res == NULL && !PyErr_Occurred()) {
36635 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 36636 }
0085ce49
RD
36637 return res;
36638 }
36639
36640 SWIGINTERN int
36641 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36642 int res = 1;
36643 swig_globalvar *var = v->vars;
36644 while (var) {
36645 if (strcmp(var->name,n) == 0) {
36646 res = (*var->set_attr)(p);
36647 break;
36648 }
36649 var = var->next;
8d38bd1d 36650 }
0085ce49
RD
36651 if (res == 1 && !PyErr_Occurred()) {
36652 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 36653 }
0085ce49
RD
36654 return res;
36655 }
36656
36657 SWIGINTERN PyTypeObject*
36658 swig_varlink_type(void) {
36659 static char varlink__doc__[] = "Swig var link object";
36660 static PyTypeObject varlink_type;
36661 static int type_init = 0;
36662 if (!type_init) {
36663 const PyTypeObject tmp
36664 = {
36665 PyObject_HEAD_INIT(NULL)
36666 0, /* Number of items in variable part (ob_size) */
36667 (char *)"swigvarlink", /* Type name (tp_name) */
36668 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36669 0, /* Itemsize (tp_itemsize) */
36670 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36671 (printfunc) swig_varlink_print, /* Print (tp_print) */
36672 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36673 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36674 0, /* tp_compare */
36675 (reprfunc) swig_varlink_repr, /* tp_repr */
36676 0, /* tp_as_number */
36677 0, /* tp_as_sequence */
36678 0, /* tp_as_mapping */
36679 0, /* tp_hash */
36680 0, /* tp_call */
36681 (reprfunc)swig_varlink_str, /* tp_str */
36682 0, /* tp_getattro */
36683 0, /* tp_setattro */
36684 0, /* tp_as_buffer */
36685 0, /* tp_flags */
36686 varlink__doc__, /* tp_doc */
36687 0, /* tp_traverse */
36688 0, /* tp_clear */
36689 0, /* tp_richcompare */
36690 0, /* tp_weaklistoffset */
36691#if PY_VERSION_HEX >= 0x02020000
36692 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36693#endif
36694#if PY_VERSION_HEX >= 0x02030000
36695 0, /* tp_del */
36696#endif
36697#ifdef COUNT_ALLOCS
36698 0,0,0,0 /* tp_alloc -> tp_next */
36699#endif
36700 };
36701 varlink_type = tmp;
36702 varlink_type.ob_type = &PyType_Type;
36703 type_init = 1;
8d38bd1d 36704 }
0085ce49
RD
36705 return &varlink_type;
36706 }
36707
36708 /* Create a variable linking object for use later */
36709 SWIGINTERN PyObject *
36710 SWIG_Python_newvarlink(void) {
36711 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36712 if (result) {
36713 result->vars = 0;
36714 }
36715 return ((PyObject*) result);
36716 }
36717
36718 SWIGINTERN void
36719 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36720 swig_varlinkobject *v = (swig_varlinkobject *) p;
36721 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36722 if (gv) {
36723 size_t size = strlen(name)+1;
36724 gv->name = (char *)malloc(size);
36725 if (gv->name) {
36726 strncpy(gv->name,name,size);
36727 gv->get_attr = get_attr;
36728 gv->set_attr = set_attr;
36729 gv->next = v->vars;
36730 }
8d38bd1d 36731 }
0085ce49
RD
36732 v->vars = gv;
36733 }
36734
36735 SWIGINTERN PyObject *
36736 SWIG_globals() {
36737 static PyObject *_SWIG_globals = 0;
36738 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36739 return _SWIG_globals;
36740 }
36741
36742 /* -----------------------------------------------------------------------------
36743 * constants/methods manipulation
36744 * ----------------------------------------------------------------------------- */
36745
36746 /* Install Constants */
36747 SWIGINTERN void
36748 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36749 PyObject *obj = 0;
36750 size_t i;
36751 for (i = 0; constants[i].type; ++i) {
36752 switch(constants[i].type) {
36753 case SWIG_PY_POINTER:
36754 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36755 break;
36756 case SWIG_PY_BINARY:
36757 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36758 break;
36759 default:
36760 obj = 0;
36761 break;
36762 }
36763 if (obj) {
36764 PyDict_SetItemString(d, constants[i].name, obj);
36765 Py_DECREF(obj);
36766 }
8d38bd1d 36767 }
0085ce49
RD
36768 }
36769
36770 /* -----------------------------------------------------------------------------*/
36771 /* Fix SwigMethods to carry the callback ptrs when needed */
36772 /* -----------------------------------------------------------------------------*/
36773
36774 SWIGINTERN void
36775 SWIG_Python_FixMethods(PyMethodDef *methods,
36776 swig_const_info *const_table,
36777 swig_type_info **types,
36778 swig_type_info **types_initial) {
36779 size_t i;
36780 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 36781 const char *c = methods[i].ml_doc;
0085ce49
RD
36782 if (c && (c = strstr(c, "swig_ptr: "))) {
36783 int j;
36784 swig_const_info *ci = 0;
453fb36b 36785 const char *name = c + 10;
0085ce49
RD
36786 for (j = 0; const_table[j].type; ++j) {
36787 if (strncmp(const_table[j].name, name,
36788 strlen(const_table[j].name)) == 0) {
36789 ci = &(const_table[j]);
36790 break;
36791 }
36792 }
36793 if (ci) {
36794 size_t shift = (ci->ptype) - types;
36795 swig_type_info *ty = types_initial[shift];
36796 size_t ldoc = (c - methods[i].ml_doc);
36797 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36798 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36799 if (ndoc) {
36800 char *buff = ndoc;
36801 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36802 if (ptr) {
36803 strncpy(buff, methods[i].ml_doc, ldoc);
36804 buff += ldoc;
36805 strncpy(buff, "swig_ptr: ", 10);
36806 buff += 10;
36807 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36808 methods[i].ml_doc = ndoc;
36809 }
36810 }
36811 }
36812 }
8d38bd1d 36813 }
0085ce49
RD
36814 }
36815
36816#ifdef __cplusplus
36817}
36818#endif
36819
36820/* -----------------------------------------------------------------------------*
36821 * Partial Init method
36822 * -----------------------------------------------------------------------------*/
36823
36824#ifdef __cplusplus
36825extern "C"
36826#endif
36827SWIGEXPORT void SWIG_init(void) {
36828 PyObject *m, *d;
36829
36830 /* Fix SwigMethods to carry the callback ptrs when needed */
36831 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36832
36833 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36834 d = PyModule_GetDict(m);
36835
36836 SWIG_InitializeModule(0);
36837 SWIG_InstallConstants(d,swig_const_table);
36838
36839
01f6b6d3
RD
36840 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36841 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36842 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
36843 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36844 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
36845 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36846 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36847 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36848 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36849 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36850 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36851 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36852 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36853 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36854 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36855 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36856 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36857 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36858 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36859 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36860 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36861 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36862 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36863 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36864 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36865 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36866 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36867 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36868 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36869 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36870 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36871 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36872 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36873 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36874 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36875 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36876 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36877 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36878 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36879 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36880 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36881 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36882 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36883 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36884 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36885 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36886 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36887 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36888 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36889 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36890 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36891 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36892 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36893 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36894 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36895 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36896 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36897 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36898 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36899 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36900 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36901 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36902 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36903 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36904 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36905 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36906 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36907 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36908 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36909 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36910 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36911 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36912 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36913 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36914 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36915 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36916 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36917 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36918 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36919 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36920 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36921 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36922 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36923 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36924 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36925 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36926 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36927 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36928 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36929 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36930 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36931 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36932 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36933 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36934 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36935 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36936 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36937 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36938 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36939 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36940 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36941 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36942 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36943 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36944 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36945 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36946 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36947 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36948 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36949 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36950 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36951 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36952 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36953 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36954 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36955 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36956 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36957 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36958 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36959 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36960 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36961 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36962 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36963 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36964 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36965 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36966 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36967 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36968 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36969 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36970 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36971 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36972
36973 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36974
36975 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36976 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36977 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36978 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36979 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36980 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36981 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36982 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36983 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36984 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36985 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36986 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36987 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36988 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36989 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36990 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36991 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36992 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36993 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36994 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36995 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36996 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36997 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36998 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36999 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37000 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37001 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37002 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37003 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37004 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37005 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37006 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37007 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37008 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37009 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37010 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37011 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37012 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37013 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37014 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37015 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37016 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37017 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37018 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37019 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37020 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37021 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37022 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37023 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37024 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37025 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37026 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37027 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37028 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37029 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37030 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37031 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37032 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37033 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37034 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37035 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37036 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37037 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37038 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37039 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37040 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37041 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37042 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37043 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37044 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37045 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37046 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37047 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37048 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37049 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37050 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37051 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37052 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37053 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37054 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37055 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37056 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37057 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37058 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37059 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37060 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37061 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37062 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37063 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37064 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37065 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37066 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37067 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37068 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37069 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37070 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37071 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37072 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37073 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37074 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37075 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37076 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37077 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37078 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37079 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37080 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37081 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37082 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37083 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37084 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37085 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37086 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37087 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37088 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37089 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37090 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37091 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37092 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37093 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37094 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37095 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37096 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37097 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37098 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37099 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37100 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37101 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37102 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37103 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37104 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37105 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37106 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37107 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37108 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37109 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37110 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37111 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37112 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37113 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37114 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37115 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37116 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37117 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37118 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37119 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37120 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37121 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37122 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37123 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37124 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37125 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37126 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37127 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37128 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37129 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37130 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37131 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37132 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37133 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37134 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37135 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37136 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37137 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37138 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37139 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37140 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37141 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37142 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37143 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37144 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37145 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37146 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37147 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37148 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37149 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37150 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37151 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37152 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37153 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37154 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37155 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37156 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37157 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37158 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37159 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37160 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37161 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37162 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37163 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37164 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37165 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37166 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37167 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37168 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37169 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37170 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37171 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37172 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37173 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37174 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37175 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37176 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37177 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37178 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37179 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37180 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37181 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37182 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37183 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37184 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37185 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37186 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37187 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37188 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37189 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37190 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37191 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37192 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37193 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37194 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37195 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37196 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37197 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37198 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37199 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37200 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37201 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37202 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37203 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37204 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37205 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37206 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37207 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37208 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37209 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37210 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37211 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37212 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37213 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37214 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37215 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37216 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37217 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37218 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37219 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37220 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37221 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37222 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37223 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37224 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37225 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37226 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37227 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37228 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37229 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
37230 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37231 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37232 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37233 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37234 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37235 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37236 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37237 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37238 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37239 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37240 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37241 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37242 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37243 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37244 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37245 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37246 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37247 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37248 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37249 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37250 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37251 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37252 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37253 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37254 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37255 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37256 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37257 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37258 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37259 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37260 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37261 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37262 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37263 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37264 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49 37265 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
0085ce49
RD
37266 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37267 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37268 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37269 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37270 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37271 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37272 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37273 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
37274 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37275 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37276 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 37277 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
37278 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37279 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37280 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 37281 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
37282 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37283 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37284 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37285 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37286 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37287 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37288 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
37289 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37290 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37291 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
37292 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37293 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37294
37295 // Work around a chicken/egg problem in drawlist.cpp
37296 wxPyDrawList_SetAPIPtr();
37297
d14a1e28
RD
37298}
37299