]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
Elippsis and markup support for wxStaticText
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
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;
554f62e9 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>|...
7449af73 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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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*/
7449af73
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 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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 *
7449af73 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. */
554f62e9 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
7449af73
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;
7449af73
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 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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 }
7449af73
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 }
7449af73
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) {
7449af73
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) {
7449af73 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;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 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}
d55e5bfc 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}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
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
554f62e9
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/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
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
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 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 {
554f62e9
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;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
554f62e9
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 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
554f62e9
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
554f62e9
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
554f62e9
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
554f62e9
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)
7449af73 1016
c32bde28 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
c32bde28 1032
554f62e9 1033/* Error manipulation */
c32bde28 1034
554f62e9
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}
d55e5bfc 1042
554f62e9
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}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
c32bde28 1053
554f62e9
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
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 {
554f62e9
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);
d55e5bfc 1100 }
554f62e9
RD
1101 return result;
1102#endif
093d3ff1 1103}
d55e5bfc 1104
554f62e9 1105/* Unpack the argument tuple */
d55e5bfc 1106
554f62e9
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*/
7449af73 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 */
7449af73
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
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
7449af73 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1 1698}
c32bde28 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;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c32bde28 1713{
093d3ff1
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
c32bde28 1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c32bde28 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
d55e5bfc
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
d55e5bfc 1738{
093d3ff1
RD
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1 1744 }
d55e5bfc
RD
1745}
1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
554f62e9
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
093d3ff1 1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
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
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
7e63a440 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1 1867}
d55e5bfc 1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
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}
d55e5bfc 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d55e5bfc 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
d55e5bfc 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
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 {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
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;
093d3ff1
RD
1947 }
1948}
d55e5bfc 1949
554f62e9
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 }
d55e5bfc 1961 }
554f62e9 1962 return 0;
c32bde28
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
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 2042 }
d55e5bfc
RD
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
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}
d55e5bfc 2071
554f62e9 2072/* Convert a packed value value */
d55e5bfc 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
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 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
554f62e9
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 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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}
d55e5bfc 2159
554f62e9
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
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
554f62e9
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 {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
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 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d55e5bfc 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d55e5bfc 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d55e5bfc 2233
7449af73
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);
d55e5bfc 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 }
d55e5bfc 2248#endif
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d55e5bfc 2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
d55e5bfc 2284
554f62e9
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
7449af73
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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
d55e5bfc 2314
554f62e9
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}
5e483524 2321
554f62e9
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]
cbfc9df6
RD
2489#define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490#define SWIGTYPE_p_wxClientDC swig_types[24]
2491#define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492#define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493#define SWIGTYPE_p_wxColour swig_types[27]
2494#define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495#define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497#define SWIGTYPE_p_wxControl swig_types[31]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499#define SWIGTYPE_p_wxCursor swig_types[33]
2500#define SWIGTYPE_p_wxDC swig_types[34]
2501#define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502#define SWIGTYPE_p_wxDCClipper swig_types[36]
2503#define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504#define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505#define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506#define SWIGTYPE_p_wxDash swig_types[40]
2507#define SWIGTYPE_p_wxDateEvent swig_types[41]
2508#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509#define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510#define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511#define SWIGTYPE_p_wxEffects swig_types[45]
2512#define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513#define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514#define SWIGTYPE_p_wxEvent swig_types[48]
2515#define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516#define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517#define SWIGTYPE_p_wxFSFile swig_types[51]
2518#define SWIGTYPE_p_wxFileSystem swig_types[52]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521#define SWIGTYPE_p_wxFont swig_types[55]
2522#define SWIGTYPE_p_wxFontList swig_types[56]
2523#define SWIGTYPE_p_wxFontMapper swig_types[57]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525#define SWIGTYPE_p_wxGCDC swig_types[59]
2526#define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527#define SWIGTYPE_p_wxGDIObject swig_types[61]
2528#define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529#define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537#define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538#define SWIGTYPE_p_wxGridSizer swig_types[72]
2539#define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540#define SWIGTYPE_p_wxICOHandler swig_types[74]
2541#define SWIGTYPE_p_wxIcon swig_types[75]
2542#define SWIGTYPE_p_wxIconBundle swig_types[76]
2543#define SWIGTYPE_p_wxIconLocation swig_types[77]
2544#define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545#define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546#define SWIGTYPE_p_wxImage swig_types[80]
2547#define SWIGTYPE_p_wxImageHandler swig_types[81]
2548#define SWIGTYPE_p_wxImageList swig_types[82]
2549#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550#define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554#define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555#define SWIGTYPE_p_wxLocale swig_types[89]
2556#define SWIGTYPE_p_wxMask swig_types[90]
2557#define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558#define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559#define SWIGTYPE_p_wxMenu swig_types[93]
2560#define SWIGTYPE_p_wxMenuBar swig_types[94]
2561#define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562#define SWIGTYPE_p_wxMenuItem swig_types[96]
2563#define SWIGTYPE_p_wxMetaFile swig_types[97]
2564#define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565#define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569#define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571#define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575#define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576#define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577#define SWIGTYPE_p_wxObject swig_types[111]
2578#define SWIGTYPE_p_wxOverlay swig_types[112]
2579#define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580#define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582#define SWIGTYPE_p_wxPaintDC swig_types[116]
2583#define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584#define SWIGTYPE_p_wxPalette swig_types[118]
2585#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586#define SWIGTYPE_p_wxPaperSize swig_types[120]
2587#define SWIGTYPE_p_wxPen swig_types[121]
2588#define SWIGTYPE_p_wxPenList swig_types[122]
2589#define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590#define SWIGTYPE_p_wxPoint swig_types[124]
2591#define SWIGTYPE_p_wxPoint2D swig_types[125]
2592#define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593#define SWIGTYPE_p_wxPrintData swig_types[127]
2594#define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595#define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596#define SWIGTYPE_p_wxPyApp swig_types[130]
2597#define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598#define SWIGTYPE_p_wxPyEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600#define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601#define SWIGTYPE_p_wxPyLocale swig_types[135]
2602#define SWIGTYPE_p_wxPySizer swig_types[136]
2603#define SWIGTYPE_p_wxPyValidator swig_types[137]
2604#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605#define SWIGTYPE_p_wxRect swig_types[139]
2606#define SWIGTYPE_p_wxRect2D swig_types[140]
2607#define SWIGTYPE_p_wxRegion swig_types[141]
2608#define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609#define SWIGTYPE_p_wxRendererNative swig_types[143]
2610#define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611#define SWIGTYPE_p_wxScreenDC swig_types[145]
2612#define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613#define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614#define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615#define SWIGTYPE_p_wxShowEvent swig_types[149]
2616#define SWIGTYPE_p_wxSize swig_types[150]
2617#define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618#define SWIGTYPE_p_wxSizer swig_types[152]
2619#define SWIGTYPE_p_wxSizerItem swig_types[153]
2620#define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621#define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623#define SWIGTYPE_p_wxStockGDI swig_types[157]
2624#define SWIGTYPE_p_wxString swig_types[158]
2625#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626#define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627#define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628#define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629#define SWIGTYPE_p_wxValidator swig_types[163]
2630#define SWIGTYPE_p_wxWindow swig_types[164]
2631#define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632#define SWIGTYPE_p_wxWindowDC swig_types[166]
2633#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634#define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635static swig_type_info *swig_types[170];
2636static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
7449af73
RD
2637#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2639
093d3ff1 2640/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2641
554f62e9
RD
2642#if (PY_VERSION_HEX <= 0x02000000)
2643# if !defined(SWIG_PYTHON_CLASSIC)
2644# error "This python version requires to use swig with the '-classic' option"
2645# endif
2646#endif
2647#if (PY_VERSION_HEX <= 0x02020000)
2648# error "This python version requires to use swig with the '-nomodern' option"
2649#endif
2650#if (PY_VERSION_HEX <= 0x02020000)
2651# error "This python version requires to use swig with the '-nomodernargs' option"
2652#endif
2653#ifndef METH_O
2654# error "This python version requires to use swig with the '-nofastunpack' option"
2655#endif
d55e5bfc 2656
093d3ff1
RD
2657/*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660#define SWIG_init init_gdi_
d55e5bfc 2661
093d3ff1 2662#define SWIG_name "_gdi_"
d55e5bfc 2663
554f62e9 2664#define SWIGVERSION 0x010329
d55e5bfc 2665
d55e5bfc 2666
554f62e9
RD
2667#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2669
2670
554f62e9
RD
2671#include <stdexcept>
2672
2673
2674namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
093d3ff1 2682 }
554f62e9
RD
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
093d3ff1 2687 }
554f62e9
RD
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
093d3ff1 2717}
d55e5bfc 2718
d55e5bfc 2719
554f62e9
RD
2720namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
d55e5bfc 2729 }
554f62e9 2730 };
d55e5bfc
RD
2731}
2732
2733
554f62e9
RD
2734#include "wx/wxPython/wxPython.h"
2735#include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
f460c29d
RD
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743SWIGINTERNINLINE PyObject *
2744SWIG_From_int (int value)
2745{
2746 return SWIG_From_long (value);
2747}
2748
2749
554f62e9
RD
2750#include <limits.h>
2751#ifndef LLONG_MIN
2752# define LLONG_MIN LONG_LONG_MIN
2753#endif
2754#ifndef LLONG_MAX
2755# define LLONG_MAX LONG_LONG_MAX
2756#endif
2757#ifndef ULLONG_MAX
2758# define ULLONG_MAX ULONG_LONG_MAX
2759#endif
d55e5bfc 2760
c32bde28 2761
50efceee
RD
2762SWIGINTERN int
2763SWIG_AsVal_long (PyObject* obj, long* val)
2764{
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770}
2771
2772
093d3ff1 2773SWIGINTERN int
554f62e9 2774SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2775{
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2778 return SWIG_TypeError;
093d3ff1
RD
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
554f62e9 2782 return SWIG_OK;
093d3ff1 2783}
c32bde28 2784
d55e5bfc 2785
093d3ff1 2786SWIGINTERN int
554f62e9
RD
2787SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788{
093d3ff1 2789 unsigned long v;
554f62e9
RD
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
093d3ff1 2794 } else {
554f62e9 2795 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2796 }
554f62e9
RD
2797 }
2798 return res;
093d3ff1 2799}
d55e5bfc
RD
2800
2801
554f62e9
RD
2802SWIGINTERNINLINE PyObject*
2803SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2804{
554f62e9
RD
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2807}
d55e5bfc
RD
2808
2809
554f62e9
RD
2810SWIGINTERNINLINE PyObject *
2811SWIG_From_unsigned_SS_char (unsigned char value)
2812{
2813 return SWIG_From_unsigned_SS_long (value);
2814}
d55e5bfc 2815
e9d6f3a4
RD
2816SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
fc46b7f3
RD
2834
2835SWIGINTERN int
2836SWIG_AsVal_bool (PyObject *obj, bool *val)
2837{
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850}
2851
2852SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
fc46b7f3 2857 int alpha = wxALPHA_OPAQUE;
b39fe951 2858 if (self->IsOk()) {
093d3ff1
RD
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
fc46b7f3 2862 alpha = self->Alpha();
093d3ff1
RD
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2869 return rv;
2870 }
554f62e9 2871SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
2874
554f62e9
RD
2875SWIGINTERN int
2876SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2877{
554f62e9
RD
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
d55e5bfc
RD
2888}
2889
554f62e9 2890SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
554f62e9 2903SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2907
093d3ff1
RD
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
554f62e9
RD
2922SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2924
fc46b7f3
RD
2925#include <wx/rawbmp.h>
2926
2927
8f514ab4
RD
2928// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2929// appears to me that the other platforms are already doing it, so I'll just
2930// automatically do it for wxMSW here.
2931#ifdef __WXMSW__
2932#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2933#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2934#else
2935#define wxPy_premultiply(p, a) (p)
2936#define wxPy_unpremultiply(p, a) (p)
2937#endif
2938
2939
093d3ff1 2940#include <wx/image.h>
d55e5bfc 2941
093d3ff1
RD
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
d55e5bfc 2945
093d3ff1
RD
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
d55e5bfc 2952
093d3ff1
RD
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
d55e5bfc 2958 }
d55e5bfc
RD
2959
2960
554f62e9 2961SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
554f62e9 2972SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
554f62e9
RD
2978SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2979SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2980 wxSize size(self->GetWidth(), self->GetHeight());
2981 return size;
2982 }
554f62e9 2983SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2984 wxMask *mask = new wxMask(*self, colour);
2985 self->SetMask(mask);
2986 }
554f62e9 2987SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2988 self->SetWidth(size.x);
2989 self->SetHeight(size.y);
2990 }
8f514ab4
RD
2991SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2992 int height=self->GetHeight();
2993 int width=self->GetWidth();
fc46b7f3 2994
8f514ab4
RD
2995 if (DATASIZE != width * height * 3) {
2996 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2997 }
2998 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return;
3004 }
fc46b7f3 3005
8f514ab4
RD
3006 wxNativePixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxNativePixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 p.Red() = *(data++);
3011 p.Green() = *(data++);
3012 p.Blue() = *(data++);
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 }
3019SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3020 int height=self->GetHeight();
3021 int width=self->GetWidth();
3022
3023 if (DATASIZE != width * height * 4) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 }
3026 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3027 if (! pixData) {
3028 // raise an exception...
3029 wxPyErr_SetString(PyExc_RuntimeError,
3030 "Failed to gain raw access to bitmap data.");
3031 return;
3032 }
3033
3034 pixData.UseAlpha();
3035 wxAlphaPixelData::Iterator p(pixData);
3036 for (int y=0; y<height; y++) {
3037 wxAlphaPixelData::Iterator rowStart = p;
3038 for (int x=0; x<width; x++) {
3039 byte a = data[3];
3040 p.Red() = wxPy_premultiply(*(data++), a);
3041 p.Green() = wxPy_premultiply(*(data++), a);
3042 p.Blue() = wxPy_premultiply(*(data++), a);
3043 p.Alpha() = a; data++;
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 }
3050SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3051SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3052
3053 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3054 buffer data, int DATASIZE,
3055 buffer alpha, int ALPHASIZE)
3056 {
3057 if (DATASIZE != width*height*3) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 if (ALPHASIZE != width*height) {
3063 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3064 return NULL;
3065 }
3066
3067 wxBitmap* bmp = new wxBitmap(width, height, 32);
3068 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3069 if (! pixData) {
3070 // raise an exception...
3071 wxPyErr_SetString(PyExc_RuntimeError,
3072 "Failed to gain raw access to bitmap data.");
3073 return NULL;
3074 }
3075
3076 pixData.UseAlpha();
3077 wxAlphaPixelData::Iterator p(pixData);
3078 for (int y=0; y<height; y++) {
3079 wxAlphaPixelData::Iterator rowStart = p;
3080 for (int x=0; x<width; x++) {
3081 byte a = *(alpha++);
3082 p.Red() = wxPy_premultiply(*(data++), a);
3083 p.Green() = wxPy_premultiply(*(data++), a);
3084 p.Blue() = wxPy_premultiply(*(data++), a);
3085 p.Alpha() = a;
3086 ++p;
3087 }
3088 p = rowStart;
3089 p.OffsetY(pixData, 1);
3090 }
3091 return bmp;
3092 }
3093
3094 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3095 {
3096 if (DATASIZE != width*height*3) {
3097 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3098 return NULL;
3099 }
3100
3101 wxBitmap* bmp = new wxBitmap(width, height, 24);
3102 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3103 if (! pixData) {
3104 // raise an exception...
3105 wxPyErr_SetString(PyExc_RuntimeError,
3106 "Failed to gain raw access to bitmap data.");
3107 return NULL;
3108 }
3109
3110 wxNativePixelData::Iterator p(pixData);
3111 for (int y=0; y<height; y++) {
3112 wxNativePixelData::Iterator rowStart = p;
3113 for (int x=0; x<width; x++) {
3114 p.Red() = *(data++);
3115 p.Green() = *(data++);
3116 p.Blue() = *(data++);
3117 ++p;
3118 }
3119 p = rowStart;
3120 p.OffsetY(pixData, 1);
3121 }
3122 return bmp;
3123 }
3124
3125
3126 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3127 {
3128 if (DATASIZE != width*height*4) {
3129 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3130 return NULL;
3131 }
3132
3133 wxBitmap* bmp = new wxBitmap(width, height, 32);
3134 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3135 if (! pixData) {
3136 // raise an exception...
3137 wxPyErr_SetString(PyExc_RuntimeError,
3138 "Failed to gain raw access to bitmap data.");
3139 return NULL;
3140 }
3141
3142 pixData.UseAlpha();
3143 wxAlphaPixelData::Iterator p(pixData);
3144 for (int y=0; y<height; y++) {
3145 wxAlphaPixelData::Iterator rowStart = p;
3146 for (int x=0; x<width; x++) {
3147 byte a = data[3];
3148 p.Red() = wxPy_premultiply(*(data++), a);
3149 p.Green() = wxPy_premultiply(*(data++), a);
3150 p.Blue() = wxPy_premultiply(*(data++), a);
3151 p.Alpha() = a; data++;
3152 ++p;
3153 }
3154 p = rowStart;
3155 p.OffsetY(pixData, 1);
3156 }
3157 return bmp;
3158 }
3159
3160
3161 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3162
3163SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3164SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3165SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3166 self->Red() = red;
3167 self->Green() = green;
3168 self->Blue() = blue;
3169 }
3170SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3171 PyObject* rv = PyTuple_New(3);
3172 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3173 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3174 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3175 return rv;
3176 }
3177
3178 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3179
3180SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3181SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3182SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3183 self->Red() = wxPy_premultiply(red, alpha);
3184 self->Green() = wxPy_premultiply(green, alpha);
3185 self->Blue() = wxPy_premultiply(blue, alpha);
3186 self->Alpha() = alpha;
3187 }
3188SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3189 PyObject* rv = PyTuple_New(4);
3190 int red = self->Red();
3191 int green = self->Green();
3192 int blue = self->Blue();
3193 int alpha = self->Alpha();
3194
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3198 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3199 return rv;
3200 }
554f62e9 3201SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3202 if ( !colour.IsOk() )
093d3ff1
RD
3203 return new wxMask(bitmap, *wxBLACK);
3204 else
3205 return new wxMask(bitmap, colour);
3206 }
d55e5bfc 3207
093d3ff1 3208#include <wx/iconbndl.h>
d55e5bfc 3209
554f62e9 3210SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3211 wxIcon* icon = new wxIcon();
3212 icon->CopyFromBitmap(bmp);
3213 return icon;
3214 }
554f62e9 3215SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3216 char** cArray = NULL;
3217 wxIcon* icon;
d55e5bfc 3218
093d3ff1
RD
3219 cArray = ConvertListOfStrings(listOfStrings);
3220 if (! cArray)
3221 return NULL;
3222 icon = new wxIcon(cArray);
3223 delete [] cArray;
3224 return icon;
3225 }
554f62e9
RD
3226SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3227SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3228
093d3ff1 3229 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3230
3231
d55e5bfc 3232
093d3ff1 3233 }
554f62e9 3234SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3235
093d3ff1 3236 self->SetIndex(num);
d55e5bfc
RD
3237
3238
d55e5bfc 3239
093d3ff1 3240 }
554f62e9 3241SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3242
093d3ff1 3243 return self->GetIndex();
d55e5bfc
RD
3244
3245
d55e5bfc 3246
093d3ff1 3247 }
554f62e9 3248SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3249#ifdef __WXGTK__
fef4c27a
RD
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
093d3ff1 3254#else
fef4c27a 3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3256#endif
3257 }
554f62e9 3258SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3259
093d3ff1 3260
554f62e9 3261SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3262 (*self) ++;
3263 }
554f62e9 3264SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3265 return self->operator bool();
3266 }
3267
3268#include <wx/fontutil.h>
3269#include <wx/fontmap.h>
3270#include <wx/fontenum.h>
3271
554f62e9 3272SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3273 return self->ToString();
3274 }
3275
3276 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3277 { wxPyRaiseNotImplemented(); return NULL; }
3278
3279 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3280 { wxPyRaiseNotImplemented(); return false; }
3281
554f62e9
RD
3282
3283SWIGINTERNINLINE PyObject *
3284SWIG_From_size_t (size_t value)
3285{
3286 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3287}
3288
3289
3290SWIGINTERNINLINE int
3291SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3292{
3293 unsigned long v;
3294 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3295 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3296 return res;
3297}
3298
3299SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3300 wxFontEncoding alt_enc;
3301 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3302 return PyInt_FromLong(alt_enc);
3303 else {
3304 Py_INCREF(Py_None);
3305 return Py_None;
3306 }
3307 }
554f62e9 3308SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3309 wxNativeFontInfo nfi;
3310 nfi.FromString(info);
3311 return new wxFont(nfi);
3312 }
554f62e9 3313SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3314 return wxFont::New(pointSize, family, flags, face, encoding);
3315 }
554f62e9 3316SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3317 return wxFontBase::New(pixelSize, family,
3318 style, weight, underlined,
3319 face, encoding);
3320 }
554f62e9 3321SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3322 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3323 }
554f62e9
RD
3324SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3325SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3326
3327class wxPyFontEnumerator : public wxFontEnumerator {
3328public:
3329 wxPyFontEnumerator() {}
3330 ~wxPyFontEnumerator() {}
3331
3332 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3333 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3334
3335 PYPRIVATE;
3336};
3337
3338IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3339IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3340
3341
704eda0c 3342SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3343 PyObject* ret;
704eda0c 3344 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3345 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3346 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3347 wxPyEndBlockThreads(blocked);
3348 return ret;
093d3ff1 3349 }
704eda0c 3350SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3351 PyObject* ret;
704eda0c 3352 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3353 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3354 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3355 wxPyEndBlockThreads(blocked);
3356 return ret;
093d3ff1
RD
3357 }
3358
3359#include <locale.h>
3360
554f62e9 3361SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3362 wxLocale* loc;
3363 if (language == -1)
3364 loc = new wxLocale();
3365 else
3366 loc = new wxLocale(language, flags);
3367 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3368 // for the floating point conversions and such to work right.
3369#if PY_VERSION_HEX < 0x02040000
3370 setlocale(LC_NUMERIC, "C");
3371#endif
3372 return loc;
3373 }
cbfc9df6
RD
3374SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3375 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
093d3ff1
RD
3376 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3377 // for the floating point conversions and such to work right.
3378#if PY_VERSION_HEX < 0x02040000
3379 setlocale(LC_NUMERIC, "C");
3380#endif
3381 return rc;
3382 }
554f62e9 3383SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3384 bool rc = self->Init(language, flags);
3385 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3386 // for the floating point conversions and such to work right.
3387#if PY_VERSION_HEX < 0x02040000
3388 setlocale(LC_NUMERIC, "C");
3389#endif
3390 return rc;
3391 }
3392
fc46b7f3
RD
3393class wxPyLocale : public wxLocale
3394{
3395public:
3396 wxPyLocale();
3397
cbfc9df6
RD
3398 wxPyLocale(const wxString& name, // name (for messages)
3399 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3400 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3401 bool bLoadDefault = true, // preload wxstd.mo?
3402 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
fc46b7f3
RD
3403
3404 wxPyLocale(int language, // wxLanguage id or custom language
cbfc9df6 3405 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
fc46b7f3
RD
3406
3407 ~wxPyLocale();
3408
cbfc9df6
RD
3409 virtual const wxString& GetString(const wxString& origString,
3410 const wxString& domain = wxPyEmptyString) const;
3411 virtual const wxString& GetString(const wxString& origString,
3412 const wxString& origString2,
3413 size_t n,
3414 const wxString& domain = wxPyEmptyString) const;
3415
3416 virtual const wxString& GetSingularString(const wxString& origString,
3417 const wxString& domain = wxPyEmptyString) const;
3418 virtual const wxString& GetPluralString(const wxString& origString,
3419 const wxString& origString2,
3420 size_t n,
3421 const wxString& domain = wxPyEmptyString) const;
3422
fc46b7f3
RD
3423
3424 PYPRIVATE;
3425private:
3426 DECLARE_NO_COPY_CLASS(wxPyLocale)
3427};
3428
3429wxPyLocale::wxPyLocale() : wxLocale()
3430{
3431}
3432
cbfc9df6
RD
3433wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3434 const wxString& shortName, // dir prefix (for msg files)
3435 const wxString& locale, // locale (for setlocale)
3436 bool bLoadDefault, // preload wxstd.mo?
3437 bool bConvertEncoding) // convert Win<->Unix if necessary?
3438 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
fc46b7f3
RD
3439{
3440}
3441
3442wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3443 int flags) : wxLocale(language, flags)
3444{
3445}
3446
3447wxPyLocale::~wxPyLocale()
3448{
3449}
3450
cbfc9df6
RD
3451const wxString& wxPyLocale::GetString(const wxString& origString,
3452 const wxString& domain) const
fc46b7f3 3453{
cbfc9df6 3454 return GetSingularString(origString, domain);
fc46b7f3
RD
3455}
3456
cbfc9df6
RD
3457const wxString& wxPyLocale::GetString(const wxString& origString,
3458 const wxString& origString2,
3459 size_t n,
3460 const wxString& domain) const
fc46b7f3 3461{
cbfc9df6 3462 return GetPluralString(origString, origString2, n, domain);
fc46b7f3
RD
3463}
3464
cbfc9df6
RD
3465const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3466 const wxString& domain) const
fc46b7f3
RD
3467{
3468 bool found;
cbfc9df6 3469 wxString str( _T("error in translation"));
fc46b7f3 3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
cbfc9df6
RD
3471 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(origString);
3473 PyObject* param2 = wx2PyString(domain);
fc46b7f3
RD
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
cbfc9df6 3483 return (found ? str : wxLocale::GetString(origString, domain));
fc46b7f3
RD
3484}
3485
cbfc9df6
RD
3486const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3487 const wxString& origString2, size_t n,
3488 const wxString& domain) const
fc46b7f3
RD
3489{
3490 bool found;
cbfc9df6 3491 wxString str( _T("error in translation"));
fc46b7f3 3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
cbfc9df6
RD
3493 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3494 PyObject* param1 = wx2PyString(origString);
3495 PyObject* param2 = wx2PyString(origString2);
3496 PyObject* param4 = wx2PyString(domain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3498 Py_BuildValue("(OOiO)",
3499 param1, param2,
3500 (int)n, param4));
fc46b7f3
RD
3501 Py_DECREF(param1);
3502 Py_DECREF(param2);
3503 Py_DECREF(param4);
3504 if( ret) {
3505 str = Py2wxString(ret);
3506 Py_DECREF(ret);
3507 }
3508 }
3509 wxPyEndBlockThreads(blocked);
cbfc9df6 3510 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
fc46b7f3
RD
3511}
3512
3513SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3514 wxPyLocale* loc;
3515 if (language == -1)
3516 loc = new wxPyLocale();
3517 else
3518 loc = new wxPyLocale(language, flags);
3519 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3520 // for the floating point conversions and such to work right.
3521#if PY_VERSION_HEX < 0x02040000
3522 setlocale(LC_NUMERIC, "C");
3523#endif
3524 return loc;
3525 }
3526
093d3ff1
RD
3527#include "wx/wxPython/pydrawxxx.h"
3528
554f62e9 3529SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3530 wxColour col;
3531 self->GetPixel(x, y, &col);
3532 return col;
3533 }
554f62e9 3534SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3535 wxColour col;
3536 self->GetPixel(pt, &col);
3537 return col;
3538 }
3539
3540SWIGINTERN int
554f62e9 3541SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3542{
3543 if (PyNumber_Check(obj)) {
3544 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3545 return SWIG_OK;
093d3ff1 3546 }
554f62e9 3547 return SWIG_TypeError;
093d3ff1
RD
3548}
3549
554f62e9 3550SWIGINTERN 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
3551 wxRect rv;
3552 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3553 return rv;
3554 }
554f62e9 3555SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3556 wxRect rect;
3557 self->GetClippingBox(rect);
3558 return rect;
3559 }
554f62e9 3560SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3561 wxArrayInt widths;
3562 self->GetPartialTextExtents(text, widths);
3563 return widths;
3564 }
3565
554f62e9 3566 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3567
554f62e9 3568SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3569 self->SetLogicalOrigin(point.x, point.y);
3570 }
554f62e9 3571SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3572 self->SetDeviceOrigin(point.x, point.y);
3573 }
554f62e9 3574SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3575 self->CalcBoundingBox(point.x, point.y);
3576 }
554f62e9 3577SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3578 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3579 }
554f62e9 3580SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3581 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3582 }
554f62e9 3583SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3584 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3585 }
554f62e9 3586SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3587 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3588 }
554f62e9 3589SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3590 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3591 }
554f62e9 3592SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3593 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3594 }
3595
3596static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3597 *x1 = dc->MinX();
3598 *y1 = dc->MinY();
3599 *x2 = dc->MaxX();
3600 *y2 = dc->MaxY();
3601}
3602
3603
3604#include <wx/dcbuffer.h>
3605
3606
3607#include <wx/dcps.h>
3608
3609
3610#include <wx/metafile.h>
3611
3612
72ef6efb
RD
3613#include <wx/graphics.h>
3614
3615
3616#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3617// C++ stub classes for platforms or build configurations that don't have
3618// wxGraphicsContext yet.
72ef6efb 3619
8bd35413
RD
3620class wxGraphicsRenderer;
3621class wxGraphicsMatrix;
3622
70d7cb34
RD
3623
3624class wxGraphicsObject : public wxObject
72ef6efb
RD
3625{
3626public :
8bd35413 3627 wxGraphicsObject() {}
70d7cb34 3628 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3629 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3630 "wx.GraphicsObject is not available on this platform.");
3631 }
3632 wxGraphicsObject( const wxGraphicsObject& ) {}
3633 virtual ~wxGraphicsObject() {}
3634 bool IsNull() const { return false; }
3635 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3636} ;
3637
3638
3639
3640class wxGraphicsPen : public wxGraphicsObject
3641{
8bd35413 3642public:
70d7cb34
RD
3643 wxGraphicsPen() {}
3644 virtual ~wxGraphicsPen() {}
3645} ;
3646wxGraphicsPen wxNullGraphicsPen;
3647
3648
3649
3650class wxGraphicsBrush : public wxGraphicsObject
3651{
3652public :
3653 wxGraphicsBrush() {}
3654 virtual ~wxGraphicsBrush() {}
3655} ;
3656wxGraphicsBrush wxNullGraphicsBrush;
3657
3658
3659
3660class wxGraphicsFont : public wxGraphicsObject
3661{
3662public :
3663 wxGraphicsFont() {}
3664 virtual ~wxGraphicsFont() {}
3665} ;
3666wxGraphicsFont wxNullGraphicsFont;
3667
3668
3669
3670class wxGraphicsPath : public wxGraphicsObject
3671{
3672public :
8bd35413 3673 wxGraphicsPath() { }
70d7cb34
RD
3674 wxGraphicsPath(wxGraphicsRenderer* ) {
3675 PyErr_SetString(PyExc_NotImplementedError,
3676 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3677 }
3678 virtual ~wxGraphicsPath() {}
70d7cb34 3679
72ef6efb 3680 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3681 void MoveToPoint( const wxPoint2DDouble& ) {}
3682 void AddLineToPoint( wxDouble, wxDouble ) {}
3683 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3684 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3685 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3686 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3687 void CloseSubpath() {}
8bd35413
RD
3688 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3689 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3690 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3691 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3692
3693 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3694 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3695 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3696 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3697
70d7cb34
RD
3698 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3699 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3700 void * GetNativePath() const { return NULL; }
8bd35413
RD
3701 void UnGetNativePath(void *) const {}
3702 void Transform( const wxGraphicsMatrix& ) {}
3703 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3704 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3705
8bd35413
RD
3706 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3707 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3708};
5c8c7dd3 3709wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3710
3711
3712class wxGraphicsMatrix : public wxGraphicsObject
3713{
3714public :
8bd35413 3715 wxGraphicsMatrix() { }
70d7cb34
RD
3716 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3717 PyErr_SetString(PyExc_NotImplementedError,
3718 "wx.GraphicsMatrix is not available on this platform.");
3719 }
3720 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3721 virtual void Concat( const wxGraphicsMatrix & ) {}
3722 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3723 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3724 wxDouble , wxDouble ) {}
248802d0
RD
3725 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3726 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3727 virtual void Invert() {}
8bd35413
RD
3728 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3729 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3730 virtual void Translate( wxDouble , wxDouble ) {}
3731 virtual void Scale( wxDouble , wxDouble ) {}
3732 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3733 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3734 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3735 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3736};
5c8c7dd3 3737wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3738
70d7cb34
RD
3739
3740class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3741{
3742public:
70d7cb34
RD
3743
3744 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3745 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3746 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3747 }
70d7cb34 3748
72ef6efb 3749 virtual ~wxGraphicsContext() {}
70d7cb34 3750
8bd35413
RD
3751 static wxGraphicsContext* Create() {
3752 PyErr_SetString(PyExc_NotImplementedError,
3753 "wx.GraphicsContext is not available on this platform.");
3754 return NULL;
3755 }
70d7cb34 3756 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3757 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3758 "wx.GraphicsContext is not available on this platform.");
8bd35413 3759 return NULL;
72ef6efb 3760 }
b876c1e4 3761
70d7cb34 3762 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3763 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3764 "wx.GraphicsContext is not available on this platform.");
8bd35413 3765 return NULL;
70d7cb34 3766 }
b876c1e4 3767
70d7cb34
RD
3768 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3769 PyErr_SetString(PyExc_NotImplementedError,
3770 "wx.GraphicsContext is not available on this platform.");
8bd35413 3771 return NULL;
70d7cb34
RD
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
8bd35413 3777 return NULL;
70d7cb34
RD
3778 }
3779
8bd35413 3780 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3781
8bd35413 3782 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3783
8bd35413 3784 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3785
3786 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3787 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3788
3789 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3790 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3791 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3792
8bd35413 3793 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3794
8bd35413
RD
3795 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3796 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3797
3798 virtual void PushState() {}
3799 virtual void PopState() {}
3800 virtual void Clip( const wxRegion & ) {}
3801 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3802 virtual void ResetClip() {}
3803 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3804 virtual int GetLogicalFunction() const { return 0; }
3805 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3806 virtual void Translate( wxDouble , wxDouble ) {}
3807 virtual void Scale( wxDouble , wxDouble ) {}
3808 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3809 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3810 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3811 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3812
3813 virtual void SetPen( const wxGraphicsPen& ) {}
3814 void SetPen( const wxPen& ) {}
3815
3816 virtual void SetBrush( const wxGraphicsBrush& ) {}
3817 void SetBrush( const wxBrush& ) {}
3818
3819 virtual void SetFont( const wxGraphicsFont& ) {}
3820 void SetFont( const wxFont&, const wxColour& ) {}
3821
8bd35413
RD
3822 virtual void StrokePath( const wxGraphicsPath & ) {}
3823 virtual void FillPath( const wxGraphicsPath &, int ) {}
3824 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3825
3826 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3829 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3830 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3831 wxDouble *, wxDouble * ) const {}
3832 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3833
3834 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3836
3837 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3839 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3840 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3841 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
4e8107d5 3843 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3844 virtual bool ShouldOffset() const { return false; }
3845};
3846
3847
3848class wxGraphicsRenderer : public wxObject
3849{
3850public :
3851 wxGraphicsRenderer() {
3852 PyErr_SetString(PyExc_NotImplementedError,
3853 "wx.GraphicsRenderer is not available on this platform.");
3854 }
3855
3856 virtual ~wxGraphicsRenderer() {}
3857
8bd35413 3858 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3859 PyErr_SetString(PyExc_NotImplementedError,
3860 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3861 return NULL;
3862 }
70d7cb34
RD
3863
3864 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3866 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3867 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3868 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3869
8bd35413 3870 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3871
8bd35413
RD
3872 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3873 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3874
8bd35413
RD
3875 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3876 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3877 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3878 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3879 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3880 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3881 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3882};
3883
3884
70d7cb34 3885
72ef6efb
RD
3886class wxGCDC: public wxWindowDC
3887{
3888public:
3889 wxGCDC(const wxWindowDC&) {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
70d7cb34 3895
48a0c021
RD
3896 wxGCDC(const wxWindow*) {
3897 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3898 PyErr_SetString(PyExc_NotImplementedError,
3899 "wxGCDC is not available on this platform.");
3900 wxPyEndBlockThreads(blocked);
3901 }
3902
72ef6efb
RD
3903 wxGCDC() {
3904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3905 PyErr_SetString(PyExc_NotImplementedError,
3906 "wxGCDC is not available on this platform.");
3907 wxPyEndBlockThreads(blocked);
3908 }
70d7cb34 3909
72ef6efb
RD
3910 virtual ~wxGCDC() {}
3911
b876c1e4
RD
3912 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3913 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3914};
3915
3916#endif
3917
f89238b9
RD
3918SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3919 if ( !backgroundBrush.IsNull() )
3920 self->DrawText(str, x, y, backgroundBrush);
3921 else
3922 self->DrawText(str, x, y);
3923 }
3924SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3925 if ( !backgroundBrush.IsNull() )
3926 self->DrawText(str, x, y, angle, backgroundBrush);
3927 else
3928 self->DrawText(str, x, y, angle);
3929 }
be68621e
RD
3930SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3931 wxDouble width = 0.0,
3932 height = 0.0;
3933 self->GetTextExtent(text, &width, &height, NULL, NULL);
3934 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3935 PyObject* rv = PyTuple_New(2);
3936 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3937 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3938 return rv;
3939 }
b39fe951
RD
3940SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3941 wxArrayDouble widths;
3942 self->GetPartialTextExtents(text, widths);
3943 return widths;
3944 }
f8eb59b9 3945SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3946 size_t c1, c2, count;
3947 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3948 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3949
3950 if ( beginP != NULL && endP != NULL )
3951 {
3952 count = wxMin(c1, c2);
3953 self->StrokeLines(count, beginP, endP);
3954 }
3955 delete [] beginP;
3956 delete [] endP;
3957 }
72ef6efb 3958
0a27f394
RD
3959#include "wx/dcgraph.h"
3960
3961
66493fc7
RD
3962#include <wx/overlay.h>
3963
3964
093d3ff1 3965
554f62e9 3966SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3967 self->AddColour(name, wxColour(red, green, blue));
3968 }
3969
50efceee
RD
3970 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3971 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3972 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3973 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3974
3975
093d3ff1
RD
3976#include <wx/effects.h>
3977
be9b1dca
RD
3978
3979#include "wx/renderer.h"
3980
3981
7449af73 3982SWIGINTERNINLINE PyObject*
554f62e9 3983 SWIG_From_bool (bool value)
be9b1dca 3984{
554f62e9 3985 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3986}
3987
27e45892
RD
3988
3989#include "wx/wxPython/pseudodc.h"
3990
3991SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3992 wxRect rect;
3993 self->GetIdBounds(id, rect);
3994 return rect;
3995 }
093d3ff1
RD
3996#ifdef __cplusplus
3997extern "C" {
3998#endif
554f62e9
RD
3999SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4000 PyObject *resultobj = 0;
4001 wxGDIObject *result = 0 ;
4002
4003 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4004 {
4005 if (!wxPyCheckForApp()) SWIG_fail;
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (wxGDIObject *)new wxGDIObject();
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4012 return resultobj;
4013fail:
4014 return NULL;
d55e5bfc
RD
4015}
4016
4017
554f62e9
RD
4018SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4021 void *argp1 = 0 ;
4022 int res1 = 0 ;
4023 PyObject *swig_obj[1] ;
4024
4025 if (!args) SWIG_fail;
4026 swig_obj[0] = args;
4027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4028 if (!SWIG_IsOK(res1)) {
4029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4030 }
4031 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 delete arg1;
d55e5bfc 4035
554f62e9
RD
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_Py_Void();
4040 return resultobj;
4041fail:
4042 return NULL;
d55e5bfc
RD
4043}
4044
4045
554f62e9
RD
4046SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4047 PyObject *resultobj = 0;
4048 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4049 bool result;
4050 void *argp1 = 0 ;
4051 int res1 = 0 ;
4052 PyObject *swig_obj[1] ;
4053
4054 if (!args) SWIG_fail;
4055 swig_obj[0] = args;
4056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4059 }
4060 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 result = (bool)(arg1)->IsNull();
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 {
4068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4069 }
4070 return resultobj;
4071fail:
4072 return NULL;
4073}
4074
4075
4076SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4077 PyObject *obj;
4078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4079 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4080 return SWIG_Py_Void();
4081}
4082
4083SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4084 return SWIG_Python_InitShadowInstance(args);
4085}
4086
4087SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4088 PyObject *resultobj = 0;
4089 byte arg1 = (byte) 0 ;
4090 byte arg2 = (byte) 0 ;
4091 byte arg3 = (byte) 0 ;
fc46b7f3 4092 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4093 wxColour *result = 0 ;
4094 unsigned char val1 ;
4095 int ecode1 = 0 ;
4096 unsigned char val2 ;
4097 int ecode2 = 0 ;
4098 unsigned char val3 ;
4099 int ecode3 = 0 ;
fc46b7f3
RD
4100 unsigned char val4 ;
4101 int ecode4 = 0 ;
554f62e9
RD
4102 PyObject * obj0 = 0 ;
4103 PyObject * obj1 = 0 ;
4104 PyObject * obj2 = 0 ;
fc46b7f3 4105 PyObject * obj3 = 0 ;
554f62e9 4106 char * kwnames[] = {
fc46b7f3 4107 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4108 };
4109
fc46b7f3 4110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
4111 if (obj0) {
4112 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4113 if (!SWIG_IsOK(ecode1)) {
4114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4115 }
4116 arg1 = static_cast< byte >(val1);
4117 }
4118 if (obj1) {
4119 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4120 if (!SWIG_IsOK(ecode2)) {
4121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4122 }
4123 arg2 = static_cast< byte >(val2);
4124 }
4125 if (obj2) {
4126 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4127 if (!SWIG_IsOK(ecode3)) {
4128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4129 }
4130 arg3 = static_cast< byte >(val3);
4131 }
fc46b7f3
RD
4132 if (obj3) {
4133 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4134 if (!SWIG_IsOK(ecode4)) {
4135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4136 }
4137 arg4 = static_cast< byte >(val4);
4138 }
554f62e9
RD
4139 {
4140 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4141 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
4142 wxPyEndAllowThreads(__tstate);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 }
4145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4146 return resultobj;
4147fail:
4148 return NULL;
d55e5bfc
RD
4149}
4150
4151
554f62e9
RD
4152SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4153 PyObject *resultobj = 0;
4154 wxString *arg1 = 0 ;
4155 wxColour *result = 0 ;
4156 bool temp1 = false ;
4157 PyObject * obj0 = 0 ;
4158 char * kwnames[] = {
4159 (char *) "colorName", NULL
4160 };
4161
4162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4163 {
4164 arg1 = wxString_in_helper(obj0);
4165 if (arg1 == NULL) SWIG_fail;
4166 temp1 = true;
4167 }
4168 {
4169 if (!wxPyCheckForApp()) SWIG_fail;
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (wxColour *)new wxColour((wxString const &)*arg1);
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4176 {
4177 if (temp1)
4178 delete arg1;
4179 }
4180 return resultobj;
4181fail:
4182 {
4183 if (temp1)
4184 delete arg1;
4185 }
4186 return NULL;
b519803b
RD
4187}
4188
4189
554f62e9
RD
4190SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj = 0;
4192 unsigned long arg1 ;
4193 wxColour *result = 0 ;
4194 unsigned long val1 ;
4195 int ecode1 = 0 ;
4196 PyObject * obj0 = 0 ;
4197 char * kwnames[] = {
4198 (char *) "colRGB", NULL
4199 };
4200
4201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4202 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4203 if (!SWIG_IsOK(ecode1)) {
4204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4205 }
4206 arg1 = static_cast< unsigned long >(val1);
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 result = (wxColour *)new wxColour(arg1);
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4214 return resultobj;
4215fail:
4216 return NULL;
d55e5bfc
RD
4217}
4218
4219
554f62e9
RD
4220SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4221 PyObject *resultobj = 0;
4222 wxColour *arg1 = (wxColour *) 0 ;
4223 void *argp1 = 0 ;
4224 int res1 = 0 ;
4225 PyObject *swig_obj[1] ;
4226
4227 if (!args) SWIG_fail;
4228 swig_obj[0] = args;
4229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4230 if (!SWIG_IsOK(res1)) {
4231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4232 }
4233 arg1 = reinterpret_cast< wxColour * >(argp1);
4234 {
4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
4236 delete arg1;
d55e5bfc 4237
554f62e9
RD
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 resultobj = SWIG_Py_Void();
4242 return resultobj;
4243fail:
4244 return NULL;
d55e5bfc
RD
4245}
4246
4247
554f62e9
RD
4248SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4249 PyObject *resultobj = 0;
4250 wxColour *arg1 = (wxColour *) 0 ;
4251 byte result;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
4254 PyObject *swig_obj[1] ;
4255
4256 if (!args) SWIG_fail;
4257 swig_obj[0] = args;
4258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4259 if (!SWIG_IsOK(res1)) {
4260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4261 }
4262 arg1 = reinterpret_cast< wxColour * >(argp1);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 result = (byte)(arg1)->Red();
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4270 return resultobj;
4271fail:
4272 return NULL;
d55e5bfc
RD
4273}
4274
4275
554f62e9
RD
4276SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4277 PyObject *resultobj = 0;
4278 wxColour *arg1 = (wxColour *) 0 ;
4279 byte result;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 PyObject *swig_obj[1] ;
4283
4284 if (!args) SWIG_fail;
4285 swig_obj[0] = args;
4286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4287 if (!SWIG_IsOK(res1)) {
4288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4289 }
4290 arg1 = reinterpret_cast< wxColour * >(argp1);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 result = (byte)(arg1)->Green();
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4298 return resultobj;
4299fail:
4300 return NULL;
d55e5bfc
RD
4301}
4302
4303
554f62e9
RD
4304SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4305 PyObject *resultobj = 0;
4306 wxColour *arg1 = (wxColour *) 0 ;
4307 byte result;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 PyObject *swig_obj[1] ;
4311
4312 if (!args) SWIG_fail;
4313 swig_obj[0] = args;
4314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4315 if (!SWIG_IsOK(res1)) {
4316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4317 }
4318 arg1 = reinterpret_cast< wxColour * >(argp1);
4319 {
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 result = (byte)(arg1)->Blue();
4322 wxPyEndAllowThreads(__tstate);
4323 if (PyErr_Occurred()) SWIG_fail;
4324 }
4325 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4326 return resultobj;
4327fail:
4328 return NULL;
d55e5bfc
RD
4329}
4330
4331
fc46b7f3
RD
4332SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4333 PyObject *resultobj = 0;
4334 wxColour *arg1 = (wxColour *) 0 ;
4335 byte 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_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4345 }
4346 arg1 = reinterpret_cast< wxColour * >(argp1);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = (byte)(arg1)->Alpha();
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4354 return resultobj;
4355fail:
4356 return NULL;
4357}
4358
4359
b39fe951 4360SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4361 PyObject *resultobj = 0;
4362 wxColour *arg1 = (wxColour *) 0 ;
4363 bool result;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 PyObject *swig_obj[1] ;
4367
4368 if (!args) SWIG_fail;
4369 swig_obj[0] = args;
4370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
b39fe951 4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4373 }
4374 arg1 = reinterpret_cast< wxColour * >(argp1);
4375 {
4376 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4377 result = (bool)(arg1)->IsOk();
554f62e9
RD
4378 wxPyEndAllowThreads(__tstate);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 {
4382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4383 }
4384 return resultobj;
4385fail:
4386 return NULL;
4387}
4388
4389
4390SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj = 0;
4392 wxColour *arg1 = (wxColour *) 0 ;
4393 byte arg2 ;
4394 byte arg3 ;
4395 byte arg4 ;
fc46b7f3 4396 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4397 void *argp1 = 0 ;
4398 int res1 = 0 ;
4399 unsigned char val2 ;
4400 int ecode2 = 0 ;
4401 unsigned char val3 ;
4402 int ecode3 = 0 ;
4403 unsigned char val4 ;
4404 int ecode4 = 0 ;
fc46b7f3
RD
4405 unsigned char val5 ;
4406 int ecode5 = 0 ;
554f62e9
RD
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 PyObject * obj2 = 0 ;
4410 PyObject * obj3 = 0 ;
fc46b7f3 4411 PyObject * obj4 = 0 ;
554f62e9 4412 char * kwnames[] = {
fc46b7f3 4413 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4414 };
4415
fc46b7f3 4416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4420 }
4421 arg1 = reinterpret_cast< wxColour * >(argp1);
4422 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4423 if (!SWIG_IsOK(ecode2)) {
4424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4425 }
4426 arg2 = static_cast< byte >(val2);
4427 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4428 if (!SWIG_IsOK(ecode3)) {
4429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4430 }
4431 arg3 = static_cast< byte >(val3);
4432 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4433 if (!SWIG_IsOK(ecode4)) {
4434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4435 }
4436 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4437 if (obj4) {
4438 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4439 if (!SWIG_IsOK(ecode5)) {
4440 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4441 }
4442 arg5 = static_cast< byte >(val5);
4443 }
554f62e9
RD
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4446 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_Py_Void();
4451 return resultobj;
4452fail:
4453 return NULL;
4454}
4455
4456
4457SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4458 PyObject *resultobj = 0;
4459 wxColour *arg1 = (wxColour *) 0 ;
4460 unsigned long arg2 ;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 unsigned long val2 ;
4464 int ecode2 = 0 ;
4465 PyObject * obj0 = 0 ;
4466 PyObject * obj1 = 0 ;
4467 char * kwnames[] = {
4468 (char *) "self",(char *) "colRGB", NULL
4469 };
4470
4471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4473 if (!SWIG_IsOK(res1)) {
4474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4475 }
4476 arg1 = reinterpret_cast< wxColour * >(argp1);
4477 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4478 if (!SWIG_IsOK(ecode2)) {
4479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4480 }
4481 arg2 = static_cast< unsigned long >(val2);
4482 {
4483 PyThreadState* __tstate = wxPyBeginAllowThreads();
4484 (arg1)->Set(arg2);
4485 wxPyEndAllowThreads(__tstate);
4486 if (PyErr_Occurred()) SWIG_fail;
4487 }
4488 resultobj = SWIG_Py_Void();
4489 return resultobj;
4490fail:
4491 return NULL;
4492}
4493
4494
4495SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj = 0;
4497 wxColour *arg1 = (wxColour *) 0 ;
4498 wxString *arg2 = 0 ;
4499 void *argp1 = 0 ;
4500 int res1 = 0 ;
4501 bool temp2 = false ;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 char * kwnames[] = {
4505 (char *) "self",(char *) "colourName", NULL
4506 };
4507
4508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4510 if (!SWIG_IsOK(res1)) {
4511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4512 }
4513 arg1 = reinterpret_cast< wxColour * >(argp1);
4514 {
4515 arg2 = wxString_in_helper(obj1);
4516 if (arg2 == NULL) SWIG_fail;
4517 temp2 = true;
4518 }
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4521 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4522 wxPyEndAllowThreads(__tstate);
4523 if (PyErr_Occurred()) SWIG_fail;
4524 }
4525 resultobj = SWIG_Py_Void();
4526 {
4527 if (temp2)
4528 delete arg2;
4529 }
4530 return resultobj;
4531fail:
4532 {
4533 if (temp2)
4534 delete arg2;
4535 }
4536 return NULL;
d55e5bfc
RD
4537}
4538
4539
f460c29d
RD
4540SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj = 0;
4542 wxColour *arg1 = (wxColour *) 0 ;
4543 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4544 wxString result;
4545 void *argp1 = 0 ;
4546 int res1 = 0 ;
4547 long val2 ;
4548 int ecode2 = 0 ;
4549 PyObject * obj0 = 0 ;
4550 PyObject * obj1 = 0 ;
4551 char * kwnames[] = {
4552 (char *) "self",(char *) "flags", NULL
4553 };
4554
4555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4557 if (!SWIG_IsOK(res1)) {
4558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4559 }
4560 arg1 = reinterpret_cast< wxColour * >(argp1);
4561 if (obj1) {
4562 ecode2 = SWIG_AsVal_long(obj1, &val2);
4563 if (!SWIG_IsOK(ecode2)) {
4564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4565 }
4566 arg2 = static_cast< long >(val2);
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = ((wxColour const *)arg1)->GetAsString(arg2);
4571 wxPyEndAllowThreads(__tstate);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 }
4574 {
4575#if wxUSE_UNICODE
4576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4577#else
4578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4579#endif
4580 }
4581 return resultobj;
4582fail:
4583 return NULL;
4584}
4585
4586
554f62e9
RD
4587SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4588 PyObject *resultobj = 0;
4589 wxColour *arg1 = (wxColour *) 0 ;
4590 long result;
4591 void *argp1 = 0 ;
4592 int res1 = 0 ;
4593 PyObject *swig_obj[1] ;
4594
4595 if (!args) SWIG_fail;
4596 swig_obj[0] = args;
4597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4600 }
4601 arg1 = reinterpret_cast< wxColour * >(argp1);
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (long)((wxColour const *)arg1)->GetPixel();
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 resultobj = SWIG_From_long(static_cast< long >(result));
4609 return resultobj;
4610fail:
4611 return NULL;
4612}
4613
4614
4615SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj = 0;
4617 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4618 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4619 bool result;
4620 void *argp1 = 0 ;
4621 int res1 = 0 ;
554f62e9
RD
4622 PyObject * obj0 = 0 ;
4623 PyObject * obj1 = 0 ;
4624 char * kwnames[] = {
e9d6f3a4 4625 (char *) "self",(char *) "other", NULL
554f62e9
RD
4626 };
4627
4628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4630 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4632 }
4633 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4634 arg2 = obj1;
554f62e9 4635 {
e9d6f3a4 4636 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 {
4640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4641 }
4642 return resultobj;
4643fail:
4644 return NULL;
4645}
4646
4647
4648SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj = 0;
4650 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4651 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4652 bool result;
4653 void *argp1 = 0 ;
4654 int res1 = 0 ;
554f62e9
RD
4655 PyObject * obj0 = 0 ;
4656 PyObject * obj1 = 0 ;
4657 char * kwnames[] = {
e9d6f3a4 4658 (char *) "self",(char *) "other", NULL
554f62e9
RD
4659 };
4660
4661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4663 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4665 }
4666 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4667 arg2 = obj1;
554f62e9 4668 {
e9d6f3a4 4669 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 {
4673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4674 }
4675 return resultobj;
4676fail:
4677 return NULL;
d55e5bfc
RD
4678}
4679
4680
fc46b7f3 4681SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4682 PyObject *resultobj = 0;
4683 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4684 bool arg2 = (bool) false ;
554f62e9
RD
4685 PyObject *result = 0 ;
4686 void *argp1 = 0 ;
4687 int res1 = 0 ;
fc46b7f3
RD
4688 bool val2 ;
4689 int ecode2 = 0 ;
4690 PyObject * obj0 = 0 ;
4691 PyObject * obj1 = 0 ;
4692 char * kwnames[] = {
4693 (char *) "self",(char *) "includeAlpha", NULL
4694 };
554f62e9 4695
fc46b7f3
RD
4696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4698 if (!SWIG_IsOK(res1)) {
4699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4700 }
4701 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4702 if (obj1) {
4703 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4704 if (!SWIG_IsOK(ecode2)) {
4705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4706 }
4707 arg2 = static_cast< bool >(val2);
4708 }
554f62e9 4709 {
fc46b7f3 4710 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 resultobj = result;
4714 return resultobj;
4715fail:
4716 return NULL;
d55e5bfc
RD
4717}
4718
4719
554f62e9
RD
4720SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4721 PyObject *resultobj = 0;
4722 wxColour *arg1 = (wxColour *) 0 ;
4723 unsigned long result;
4724 void *argp1 = 0 ;
4725 int res1 = 0 ;
4726 PyObject *swig_obj[1] ;
4727
4728 if (!args) SWIG_fail;
4729 swig_obj[0] = args;
4730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4731 if (!SWIG_IsOK(res1)) {
4732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4733 }
4734 arg1 = reinterpret_cast< wxColour * >(argp1);
4735 {
554f62e9 4736 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4740 return resultobj;
4741fail:
4742 return NULL;
4743}
4744
4745
4746SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 PyObject *obj;
4748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4749 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4750 return SWIG_Py_Void();
4751}
4752
4753SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4754 return SWIG_Python_InitShadowInstance(args);
4755}
4756
4757SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4758 PyObject *resultobj = 0;
4759 int arg1 ;
4760 unsigned char *arg2 = (unsigned char *) 0 ;
4761 unsigned char *arg3 = (unsigned char *) 0 ;
4762 unsigned char *arg4 = (unsigned char *) 0 ;
4763 wxPalette *result = 0 ;
4764 int val1 ;
4765 int ecode1 = 0 ;
4766 void *argp2 = 0 ;
4767 int res2 = 0 ;
4768 void *argp3 = 0 ;
4769 int res3 = 0 ;
4770 void *argp4 = 0 ;
4771 int res4 = 0 ;
4772 PyObject * obj0 = 0 ;
4773 PyObject * obj1 = 0 ;
4774 PyObject * obj2 = 0 ;
4775 PyObject * obj3 = 0 ;
4776 char * kwnames[] = {
4777 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4778 };
4779
4780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4781 ecode1 = SWIG_AsVal_int(obj0, &val1);
4782 if (!SWIG_IsOK(ecode1)) {
4783 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4784 }
4785 arg1 = static_cast< int >(val1);
4786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4787 if (!SWIG_IsOK(res2)) {
4788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4789 }
4790 arg2 = reinterpret_cast< unsigned char * >(argp2);
4791 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4792 if (!SWIG_IsOK(res3)) {
4793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4794 }
4795 arg3 = reinterpret_cast< unsigned char * >(argp3);
4796 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4797 if (!SWIG_IsOK(res4)) {
4798 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4799 }
4800 arg4 = reinterpret_cast< unsigned char * >(argp4);
4801 {
4802 if (!wxPyCheckForApp()) SWIG_fail;
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4805 wxPyEndAllowThreads(__tstate);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4809 return resultobj;
4810fail:
4811 return NULL;
093d3ff1
RD
4812}
4813
4814
554f62e9
RD
4815SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4816 PyObject *resultobj = 0;
4817 wxPalette *arg1 = (wxPalette *) 0 ;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 PyObject *swig_obj[1] ;
4821
4822 if (!args) SWIG_fail;
4823 swig_obj[0] = args;
4824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4825 if (!SWIG_IsOK(res1)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4827 }
4828 arg1 = reinterpret_cast< wxPalette * >(argp1);
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 delete arg1;
093d3ff1 4832
554f62e9
RD
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = SWIG_Py_Void();
4837 return resultobj;
4838fail:
4839 return NULL;
4840}
4841
4842
4843SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj = 0;
4845 wxPalette *arg1 = (wxPalette *) 0 ;
4846 byte arg2 ;
4847 byte arg3 ;
4848 byte arg4 ;
4849 int result;
4850 void *argp1 = 0 ;
4851 int res1 = 0 ;
4852 unsigned char val2 ;
4853 int ecode2 = 0 ;
4854 unsigned char val3 ;
4855 int ecode3 = 0 ;
4856 unsigned char val4 ;
4857 int ecode4 = 0 ;
4858 PyObject * obj0 = 0 ;
4859 PyObject * obj1 = 0 ;
4860 PyObject * obj2 = 0 ;
4861 PyObject * obj3 = 0 ;
4862 char * kwnames[] = {
4863 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4864 };
4865
4866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4868 if (!SWIG_IsOK(res1)) {
4869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4870 }
4871 arg1 = reinterpret_cast< wxPalette * >(argp1);
4872 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4873 if (!SWIG_IsOK(ecode2)) {
4874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4875 }
4876 arg2 = static_cast< byte >(val2);
4877 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4878 if (!SWIG_IsOK(ecode3)) {
4879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4880 }
4881 arg3 = static_cast< byte >(val3);
4882 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4883 if (!SWIG_IsOK(ecode4)) {
4884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4885 }
4886 arg4 = static_cast< byte >(val4);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_From_int(static_cast< int >(result));
4894 return resultobj;
4895fail:
4896 return NULL;
4897}
4898
4899
4900SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj = 0;
4902 wxPalette *arg1 = (wxPalette *) 0 ;
4903 int arg2 ;
4904 byte *arg3 = (byte *) 0 ;
4905 byte *arg4 = (byte *) 0 ;
4906 byte *arg5 = (byte *) 0 ;
4907 bool result;
4908 void *argp1 = 0 ;
4909 int res1 = 0 ;
4910 int val2 ;
4911 int ecode2 = 0 ;
4912 byte temp3 ;
4913 int res3 = SWIG_TMPOBJ ;
4914 byte temp4 ;
4915 int res4 = SWIG_TMPOBJ ;
4916 byte temp5 ;
4917 int res5 = SWIG_TMPOBJ ;
4918 PyObject * obj0 = 0 ;
4919 PyObject * obj1 = 0 ;
4920 char * kwnames[] = {
4921 (char *) "self",(char *) "pixel", NULL
4922 };
4923
4924 arg3 = &temp3;
4925 arg4 = &temp4;
4926 arg5 = &temp5;
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4931 }
4932 arg1 = reinterpret_cast< wxPalette * >(argp1);
4933 ecode2 = SWIG_AsVal_int(obj1, &val2);
4934 if (!SWIG_IsOK(ecode2)) {
4935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4936 }
4937 arg2 = static_cast< int >(val2);
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 {
4945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4946 }
4947 if (SWIG_IsTmpObj(res3)) {
4948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4949 } else {
4950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4952 }
4953 if (SWIG_IsTmpObj(res4)) {
4954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4955 } else {
4956 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4958 }
4959 if (SWIG_IsTmpObj(res5)) {
4960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4961 } else {
4962 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4964 }
4965 return resultobj;
4966fail:
4967 return NULL;
d55e5bfc
RD
4968}
4969
4970
554f62e9
RD
4971SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4972 PyObject *resultobj = 0;
4973 wxPalette *arg1 = (wxPalette *) 0 ;
4974 int result;
4975 void *argp1 = 0 ;
4976 int res1 = 0 ;
4977 PyObject *swig_obj[1] ;
4978
4979 if (!args) SWIG_fail;
4980 swig_obj[0] = args;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4984 }
4985 arg1 = reinterpret_cast< wxPalette * >(argp1);
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 resultobj = SWIG_From_int(static_cast< int >(result));
4993 return resultobj;
4994fail:
4995 return NULL;
d55e5bfc
RD
4996}
4997
4998
b39fe951 4999SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5000 PyObject *resultobj = 0;
5001 wxPalette *arg1 = (wxPalette *) 0 ;
5002 bool result;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 PyObject *swig_obj[1] ;
5006
5007 if (!args) SWIG_fail;
5008 swig_obj[0] = args;
5009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
b39fe951 5011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
5012 }
5013 arg1 = reinterpret_cast< wxPalette * >(argp1);
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5016 result = (bool)(arg1)->IsOk();
554f62e9
RD
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 {
5021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5022 }
5023 return resultobj;
5024fail:
5025 return NULL;
5026}
5027
5028
5029SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5030 PyObject *obj;
5031 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5032 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5033 return SWIG_Py_Void();
5034}
5035
5036SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5037 return SWIG_Python_InitShadowInstance(args);
5038}
5039
5040SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5041 PyObject *resultobj = 0;
5042 wxColour *arg1 = 0 ;
5043 int arg2 = (int) 1 ;
5044 int arg3 = (int) wxSOLID ;
5045 wxPen *result = 0 ;
5046 wxColour temp1 ;
5047 int val2 ;
5048 int ecode2 = 0 ;
5049 int val3 ;
5050 int ecode3 = 0 ;
5051 PyObject * obj0 = 0 ;
5052 PyObject * obj1 = 0 ;
5053 PyObject * obj2 = 0 ;
5054 char * kwnames[] = {
5055 (char *) "colour",(char *) "width",(char *) "style", NULL
5056 };
5057
5058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5059 {
5060 arg1 = &temp1;
5061 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5062 }
5063 if (obj1) {
5064 ecode2 = SWIG_AsVal_int(obj1, &val2);
5065 if (!SWIG_IsOK(ecode2)) {
5066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5067 }
5068 arg2 = static_cast< int >(val2);
5069 }
5070 if (obj2) {
5071 ecode3 = SWIG_AsVal_int(obj2, &val3);
5072 if (!SWIG_IsOK(ecode3)) {
5073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5074 }
5075 arg3 = static_cast< int >(val3);
5076 }
5077 {
5078 if (!wxPyCheckForApp()) SWIG_fail;
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5085 return resultobj;
5086fail:
5087 return NULL;
d55e5bfc
RD
5088}
5089
5090
554f62e9
RD
5091SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5092 PyObject *resultobj = 0;
5093 wxPen *arg1 = (wxPen *) 0 ;
5094 void *argp1 = 0 ;
5095 int res1 = 0 ;
5096 PyObject *swig_obj[1] ;
5097
5098 if (!args) SWIG_fail;
5099 swig_obj[0] = args;
5100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5101 if (!SWIG_IsOK(res1)) {
5102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5103 }
5104 arg1 = reinterpret_cast< wxPen * >(argp1);
5105 {
5106 PyThreadState* __tstate = wxPyBeginAllowThreads();
5107 delete arg1;
d55e5bfc 5108
554f62e9
RD
5109 wxPyEndAllowThreads(__tstate);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 resultobj = SWIG_Py_Void();
5113 return resultobj;
5114fail:
5115 return NULL;
d55e5bfc
RD
5116}
5117
5118
554f62e9
RD
5119SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5120 PyObject *resultobj = 0;
5121 wxPen *arg1 = (wxPen *) 0 ;
5122 int result;
5123 void *argp1 = 0 ;
5124 int res1 = 0 ;
5125 PyObject *swig_obj[1] ;
5126
5127 if (!args) SWIG_fail;
5128 swig_obj[0] = args;
5129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5132 }
5133 arg1 = reinterpret_cast< wxPen * >(argp1);
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 result = (int)(arg1)->GetCap();
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 resultobj = SWIG_From_int(static_cast< int >(result));
5141 return resultobj;
5142fail:
5143 return NULL;
d55e5bfc
RD
5144}
5145
5146
554f62e9
RD
5147SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5148 PyObject *resultobj = 0;
5149 wxPen *arg1 = (wxPen *) 0 ;
5150 wxColour result;
5151 void *argp1 = 0 ;
5152 int res1 = 0 ;
5153 PyObject *swig_obj[1] ;
5154
5155 if (!args) SWIG_fail;
5156 swig_obj[0] = args;
5157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5158 if (!SWIG_IsOK(res1)) {
5159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5160 }
5161 arg1 = reinterpret_cast< wxPen * >(argp1);
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = (arg1)->GetColour();
5165 wxPyEndAllowThreads(__tstate);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5169 return resultobj;
5170fail:
5171 return NULL;
d55e5bfc
RD
5172}
5173
5174
554f62e9
RD
5175SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5176 PyObject *resultobj = 0;
5177 wxPen *arg1 = (wxPen *) 0 ;
5178 int result;
5179 void *argp1 = 0 ;
5180 int res1 = 0 ;
5181 PyObject *swig_obj[1] ;
5182
5183 if (!args) SWIG_fail;
5184 swig_obj[0] = args;
5185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5188 }
5189 arg1 = reinterpret_cast< wxPen * >(argp1);
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 result = (int)(arg1)->GetJoin();
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 resultobj = SWIG_From_int(static_cast< int >(result));
5197 return resultobj;
5198fail:
5199 return NULL;
d55e5bfc
RD
5200}
5201
5202
554f62e9
RD
5203SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5204 PyObject *resultobj = 0;
5205 wxPen *arg1 = (wxPen *) 0 ;
5206 int result;
5207 void *argp1 = 0 ;
5208 int res1 = 0 ;
5209 PyObject *swig_obj[1] ;
5210
5211 if (!args) SWIG_fail;
5212 swig_obj[0] = args;
5213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5214 if (!SWIG_IsOK(res1)) {
5215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5216 }
5217 arg1 = reinterpret_cast< wxPen * >(argp1);
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (int)(arg1)->GetStyle();
5221 wxPyEndAllowThreads(__tstate);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 }
5224 resultobj = SWIG_From_int(static_cast< int >(result));
5225 return resultobj;
5226fail:
5227 return NULL;
d55e5bfc
RD
5228}
5229
5230
554f62e9
RD
5231SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5232 PyObject *resultobj = 0;
5233 wxPen *arg1 = (wxPen *) 0 ;
5234 int result;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 PyObject *swig_obj[1] ;
5238
5239 if (!args) SWIG_fail;
5240 swig_obj[0] = args;
5241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5242 if (!SWIG_IsOK(res1)) {
5243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5244 }
5245 arg1 = reinterpret_cast< wxPen * >(argp1);
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (int)(arg1)->GetWidth();
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 resultobj = SWIG_From_int(static_cast< int >(result));
5253 return resultobj;
5254fail:
5255 return NULL;
d55e5bfc
RD
5256}
5257
5258
b39fe951 5259SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5260 PyObject *resultobj = 0;
5261 wxPen *arg1 = (wxPen *) 0 ;
5262 bool result;
5263 void *argp1 = 0 ;
5264 int res1 = 0 ;
5265 PyObject *swig_obj[1] ;
5266
5267 if (!args) SWIG_fail;
5268 swig_obj[0] = args;
5269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5270 if (!SWIG_IsOK(res1)) {
b39fe951 5271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
5272 }
5273 arg1 = reinterpret_cast< wxPen * >(argp1);
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5276 result = (bool)(arg1)->IsOk();
554f62e9
RD
5277 wxPyEndAllowThreads(__tstate);
5278 if (PyErr_Occurred()) SWIG_fail;
5279 }
5280 {
5281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5282 }
5283 return resultobj;
5284fail:
5285 return NULL;
5286}
5287
5288
5289SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5290 PyObject *resultobj = 0;
5291 wxPen *arg1 = (wxPen *) 0 ;
5292 int arg2 ;
5293 void *argp1 = 0 ;
5294 int res1 = 0 ;
5295 int val2 ;
5296 int ecode2 = 0 ;
5297 PyObject * obj0 = 0 ;
5298 PyObject * obj1 = 0 ;
5299 char * kwnames[] = {
5300 (char *) "self",(char *) "cap_style", NULL
5301 };
5302
5303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5305 if (!SWIG_IsOK(res1)) {
5306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5307 }
5308 arg1 = reinterpret_cast< wxPen * >(argp1);
5309 ecode2 = SWIG_AsVal_int(obj1, &val2);
5310 if (!SWIG_IsOK(ecode2)) {
5311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5312 }
5313 arg2 = static_cast< int >(val2);
5314 {
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 (arg1)->SetCap(arg2);
5317 wxPyEndAllowThreads(__tstate);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 resultobj = SWIG_Py_Void();
5321 return resultobj;
5322fail:
5323 return NULL;
5324}
5325
5326
5327SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj = 0;
5329 wxPen *arg1 = (wxPen *) 0 ;
5330 wxColour *arg2 = 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 wxColour temp2 ;
5334 PyObject * obj0 = 0 ;
5335 PyObject * obj1 = 0 ;
5336 char * kwnames[] = {
5337 (char *) "self",(char *) "colour", NULL
5338 };
5339
5340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5342 if (!SWIG_IsOK(res1)) {
5343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5344 }
5345 arg1 = reinterpret_cast< wxPen * >(argp1);
5346 {
5347 arg2 = &temp2;
5348 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5349 }
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 (arg1)->SetColour(*arg2);
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 resultobj = SWIG_Py_Void();
5357 return resultobj;
5358fail:
5359 return NULL;
5360}
5361
5362
5363SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj = 0;
5365 wxPen *arg1 = (wxPen *) 0 ;
5366 int arg2 ;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 int val2 ;
5370 int ecode2 = 0 ;
5371 PyObject * obj0 = 0 ;
5372 PyObject * obj1 = 0 ;
5373 char * kwnames[] = {
5374 (char *) "self",(char *) "join_style", NULL
5375 };
5376
5377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5379 if (!SWIG_IsOK(res1)) {
5380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5381 }
5382 arg1 = reinterpret_cast< wxPen * >(argp1);
5383 ecode2 = SWIG_AsVal_int(obj1, &val2);
5384 if (!SWIG_IsOK(ecode2)) {
5385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5386 }
5387 arg2 = static_cast< int >(val2);
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 (arg1)->SetJoin(arg2);
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 resultobj = SWIG_Py_Void();
5395 return resultobj;
5396fail:
5397 return NULL;
5398}
5399
5400
5401SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj = 0;
5403 wxPen *arg1 = (wxPen *) 0 ;
5404 int arg2 ;
5405 void *argp1 = 0 ;
5406 int res1 = 0 ;
5407 int val2 ;
5408 int ecode2 = 0 ;
5409 PyObject * obj0 = 0 ;
5410 PyObject * obj1 = 0 ;
5411 char * kwnames[] = {
5412 (char *) "self",(char *) "style", NULL
5413 };
5414
5415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5417 if (!SWIG_IsOK(res1)) {
5418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5419 }
5420 arg1 = reinterpret_cast< wxPen * >(argp1);
5421 ecode2 = SWIG_AsVal_int(obj1, &val2);
5422 if (!SWIG_IsOK(ecode2)) {
5423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5424 }
5425 arg2 = static_cast< int >(val2);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 (arg1)->SetStyle(arg2);
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 resultobj = SWIG_Py_Void();
5433 return resultobj;
5434fail:
5435 return NULL;
5436}
5437
5438
5439SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5440 PyObject *resultobj = 0;
5441 wxPen *arg1 = (wxPen *) 0 ;
5442 int arg2 ;
5443 void *argp1 = 0 ;
5444 int res1 = 0 ;
5445 int val2 ;
5446 int ecode2 = 0 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "self",(char *) "width", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5457 }
5458 arg1 = reinterpret_cast< wxPen * >(argp1);
5459 ecode2 = SWIG_AsVal_int(obj1, &val2);
5460 if (!SWIG_IsOK(ecode2)) {
5461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5462 }
5463 arg2 = static_cast< int >(val2);
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 (arg1)->SetWidth(arg2);
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 resultobj = SWIG_Py_Void();
5471 return resultobj;
5472fail:
5473 return NULL;
5474}
5475
5476
5477SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj = 0;
5479 wxPen *arg1 = (wxPen *) 0 ;
5480 int arg2 ;
5481 wxDash *arg3 = (wxDash *) 0 ;
5482 void *argp1 = 0 ;
5483 int res1 = 0 ;
5484 PyObject * obj0 = 0 ;
5485 PyObject * obj1 = 0 ;
5486 char * kwnames[] = {
5487 (char *) "self",(char *) "dashes", NULL
5488 };
5489
5490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5494 }
5495 arg1 = reinterpret_cast< wxPen * >(argp1);
5496 {
5497 arg2 = PyList_Size(obj1);
5498 arg3 = (wxDash*)byte_LIST_helper(obj1);
5499 if (arg3 == NULL) SWIG_fail;
5500 }
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 (arg1)->SetDashes(arg2,arg3);
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 resultobj = SWIG_Py_Void();
5508 {
5509 if (arg3) delete [] arg3;
5510 }
5511 return resultobj;
5512fail:
5513 {
5514 if (arg3) delete [] arg3;
5515 }
5516 return NULL;
d55e5bfc
RD
5517}
5518
5519
554f62e9
RD
5520SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5521 PyObject *resultobj = 0;
5522 wxPen *arg1 = (wxPen *) 0 ;
5523 PyObject *result = 0 ;
5524 void *argp1 = 0 ;
5525 int res1 = 0 ;
5526 PyObject *swig_obj[1] ;
5527
5528 if (!args) SWIG_fail;
5529 swig_obj[0] = args;
5530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5533 }
5534 arg1 = reinterpret_cast< wxPen * >(argp1);
5535 {
5536 PyThreadState* __tstate = wxPyBeginAllowThreads();
5537 result = (PyObject *)wxPen_GetDashes(arg1);
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 resultobj = result;
5542 return resultobj;
5543fail:
5544 return NULL;
5545}
5546
5547
5548SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj = 0;
5550 wxPen *arg1 = (wxPen *) 0 ;
5551 PyObject *arg2 = (PyObject *) 0 ;
5552 PyObject *arg3 = (PyObject *) 0 ;
5553 void *argp1 = 0 ;
5554 int res1 = 0 ;
5555 PyObject * obj0 = 0 ;
5556 PyObject * obj1 = 0 ;
5557 PyObject * obj2 = 0 ;
5558 char * kwnames[] = {
5559 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5560 };
5561
5562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5566 }
5567 arg1 = reinterpret_cast< wxPen * >(argp1);
5568 arg2 = obj1;
5569 arg3 = obj2;
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 wxPen__SetDashes(arg1,arg2,arg3);
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 resultobj = SWIG_Py_Void();
5577 return resultobj;
5578fail:
5579 return NULL;
d55e5bfc
RD
5580}
5581
5582
554f62e9
RD
5583SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5584 PyObject *resultobj = 0;
5585 wxPen *arg1 = (wxPen *) 0 ;
5586 int result;
5587 void *argp1 = 0 ;
5588 int res1 = 0 ;
5589 PyObject *swig_obj[1] ;
5590
5591 if (!args) SWIG_fail;
5592 swig_obj[0] = args;
5593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5594 if (!SWIG_IsOK(res1)) {
5595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5596 }
5597 arg1 = reinterpret_cast< wxPen * >(argp1);
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (int)((wxPen const *)arg1)->GetDashCount();
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_From_int(static_cast< int >(result));
5605 return resultobj;
5606fail:
5607 return NULL;
d55e5bfc
RD
5608}
5609
5610
554f62e9
RD
5611SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxPen *arg1 = (wxPen *) 0 ;
5614 wxBitmap *result = 0 ;
5615 void *argp1 = 0 ;
5616 int res1 = 0 ;
5617 PyObject *swig_obj[1] ;
5618
5619 if (!args) SWIG_fail;
5620 swig_obj[0] = args;
5621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 result = (wxBitmap *)(arg1)->GetStipple();
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5633 return resultobj;
5634fail:
5635 return NULL;
5636}
5637
5638
5639SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj = 0;
5641 wxPen *arg1 = (wxPen *) 0 ;
5642 wxBitmap *arg2 = 0 ;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 void *argp2 = 0 ;
5646 int res2 = 0 ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 char * kwnames[] = {
5650 (char *) "self",(char *) "stipple", NULL
5651 };
5652
5653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5655 if (!SWIG_IsOK(res1)) {
5656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5657 }
5658 arg1 = reinterpret_cast< wxPen * >(argp1);
5659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5660 if (!SWIG_IsOK(res2)) {
5661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5662 }
5663 if (!argp2) {
5664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5665 }
5666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 (arg1)->SetStipple(*arg2);
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 resultobj = SWIG_Py_Void();
5674 return resultobj;
5675fail:
5676 return NULL;
5677}
5678
5679
5680SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj = 0;
5682 wxPen *arg1 = (wxPen *) 0 ;
5683 wxPen *arg2 = (wxPen *) 0 ;
5684 bool result;
5685 void *argp1 = 0 ;
5686 int res1 = 0 ;
5687 void *argp2 = 0 ;
5688 int res2 = 0 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 char * kwnames[] = {
5692 (char *) "self",(char *) "other", NULL
5693 };
5694
5695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5697 if (!SWIG_IsOK(res1)) {
5698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5699 }
5700 arg1 = reinterpret_cast< wxPen * >(argp1);
5701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5702 if (!SWIG_IsOK(res2)) {
5703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5704 }
5705 arg2 = reinterpret_cast< wxPen * >(argp2);
5706 {
5707 PyThreadState* __tstate = wxPyBeginAllowThreads();
5708 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 {
5713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5714 }
5715 return resultobj;
5716fail:
5717 return NULL;
5718}
5719
5720
5721SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj = 0;
5723 wxPen *arg1 = (wxPen *) 0 ;
5724 wxPen *arg2 = (wxPen *) 0 ;
5725 bool result;
5726 void *argp1 = 0 ;
5727 int res1 = 0 ;
5728 void *argp2 = 0 ;
5729 int res2 = 0 ;
5730 PyObject * obj0 = 0 ;
5731 PyObject * obj1 = 0 ;
5732 char * kwnames[] = {
5733 (char *) "self",(char *) "other", NULL
5734 };
5735
5736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5738 if (!SWIG_IsOK(res1)) {
5739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5740 }
5741 arg1 = reinterpret_cast< wxPen * >(argp1);
5742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5743 if (!SWIG_IsOK(res2)) {
5744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5745 }
5746 arg2 = reinterpret_cast< wxPen * >(argp2);
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5750 wxPyEndAllowThreads(__tstate);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 }
5753 {
5754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5755 }
5756 return resultobj;
5757fail:
5758 return NULL;
d55e5bfc
RD
5759}
5760
5761
554f62e9
RD
5762SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5763 PyObject *obj;
5764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5765 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5766 return SWIG_Py_Void();
d55e5bfc
RD
5767}
5768
554f62e9
RD
5769SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5770 return SWIG_Python_InitShadowInstance(args);
5771}
d55e5bfc 5772
554f62e9
RD
5773SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj = 0;
5775 wxColour *arg1 = 0 ;
5776 int arg2 = (int) wxSOLID ;
5777 wxBrush *result = 0 ;
5778 wxColour temp1 ;
5779 int val2 ;
5780 int ecode2 = 0 ;
5781 PyObject * obj0 = 0 ;
5782 PyObject * obj1 = 0 ;
5783 char * kwnames[] = {
5784 (char *) "colour",(char *) "style", NULL
5785 };
5786
5787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5788 {
5789 arg1 = &temp1;
5790 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5791 }
5792 if (obj1) {
5793 ecode2 = SWIG_AsVal_int(obj1, &val2);
5794 if (!SWIG_IsOK(ecode2)) {
5795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5796 }
5797 arg2 = static_cast< int >(val2);
5798 }
5799 {
5800 if (!wxPyCheckForApp()) SWIG_fail;
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5807 return resultobj;
5808fail:
5809 return NULL;
5810}
5811
5812
5813SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj = 0;
5815 wxBitmap *arg1 = 0 ;
5816 wxBrush *result = 0 ;
5817 void *argp1 = 0 ;
5818 int res1 = 0 ;
5819 PyObject * obj0 = 0 ;
5820 char * kwnames[] = {
5821 (char *) "stippleBitmap", NULL
5822 };
5823
5824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5825 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5826 if (!SWIG_IsOK(res1)) {
5827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5828 }
5829 if (!argp1) {
5830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5831 }
5832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5833 {
5834 if (!wxPyCheckForApp()) SWIG_fail;
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5841 return resultobj;
5842fail:
5843 return NULL;
d55e5bfc
RD
5844}
5845
5846
554f62e9
RD
5847SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5848 PyObject *resultobj = 0;
5849 wxBrush *arg1 = (wxBrush *) 0 ;
5850 void *argp1 = 0 ;
5851 int res1 = 0 ;
5852 PyObject *swig_obj[1] ;
5853
5854 if (!args) SWIG_fail;
5855 swig_obj[0] = args;
5856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5857 if (!SWIG_IsOK(res1)) {
5858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5859 }
5860 arg1 = reinterpret_cast< wxBrush * >(argp1);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 delete arg1;
d55e5bfc 5864
554f62e9
RD
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = SWIG_Py_Void();
5869 return resultobj;
5870fail:
5871 return NULL;
5872}
5873
5874
5875SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj = 0;
5877 wxBrush *arg1 = (wxBrush *) 0 ;
5878 wxColour *arg2 = 0 ;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 wxColour temp2 ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char * kwnames[] = {
5885 (char *) "self",(char *) "col", NULL
5886 };
5887
5888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5892 }
5893 arg1 = reinterpret_cast< wxBrush * >(argp1);
5894 {
5895 arg2 = &temp2;
5896 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5897 }
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 (arg1)->SetColour((wxColour const &)*arg2);
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 resultobj = SWIG_Py_Void();
5905 return resultobj;
5906fail:
5907 return NULL;
5908}
5909
5910
5911SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj = 0;
5913 wxBrush *arg1 = (wxBrush *) 0 ;
5914 int arg2 ;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 int val2 ;
5918 int ecode2 = 0 ;
5919 PyObject * obj0 = 0 ;
5920 PyObject * obj1 = 0 ;
5921 char * kwnames[] = {
5922 (char *) "self",(char *) "style", NULL
5923 };
5924
5925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5927 if (!SWIG_IsOK(res1)) {
5928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5929 }
5930 arg1 = reinterpret_cast< wxBrush * >(argp1);
5931 ecode2 = SWIG_AsVal_int(obj1, &val2);
5932 if (!SWIG_IsOK(ecode2)) {
5933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5934 }
5935 arg2 = static_cast< int >(val2);
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->SetStyle(arg2);
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 resultobj = SWIG_Py_Void();
5943 return resultobj;
5944fail:
5945 return NULL;
5946}
5947
5948
5949SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5950 PyObject *resultobj = 0;
5951 wxBrush *arg1 = (wxBrush *) 0 ;
5952 wxBitmap *arg2 = 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 void *argp2 = 0 ;
5956 int res2 = 0 ;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj1 = 0 ;
5959 char * kwnames[] = {
5960 (char *) "self",(char *) "stipple", NULL
5961 };
5962
5963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5965 if (!SWIG_IsOK(res1)) {
5966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5967 }
5968 arg1 = reinterpret_cast< wxBrush * >(argp1);
5969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5970 if (!SWIG_IsOK(res2)) {
5971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5972 }
5973 if (!argp2) {
5974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5975 }
5976 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 (arg1)->SetStipple((wxBitmap const &)*arg2);
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 resultobj = SWIG_Py_Void();
5984 return resultobj;
5985fail:
5986 return NULL;
d55e5bfc
RD
5987}
5988
5989
554f62e9
RD
5990SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5991 PyObject *resultobj = 0;
5992 wxBrush *arg1 = (wxBrush *) 0 ;
5993 wxColour result;
5994 void *argp1 = 0 ;
5995 int res1 = 0 ;
5996 PyObject *swig_obj[1] ;
5997
5998 if (!args) SWIG_fail;
5999 swig_obj[0] = args;
6000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6001 if (!SWIG_IsOK(res1)) {
6002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
6003 }
6004 arg1 = reinterpret_cast< wxBrush * >(argp1);
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 result = ((wxBrush const *)arg1)->GetColour();
6008 wxPyEndAllowThreads(__tstate);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 }
6011 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
6012 return resultobj;
6013fail:
6014 return NULL;
d55e5bfc
RD
6015}
6016
6017
554f62e9
RD
6018SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 wxBrush *arg1 = (wxBrush *) 0 ;
6021 int result;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject *swig_obj[1] ;
6025
6026 if (!args) SWIG_fail;
6027 swig_obj[0] = args;
6028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6031 }
6032 arg1 = reinterpret_cast< wxBrush * >(argp1);
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (int)((wxBrush const *)arg1)->GetStyle();
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_From_int(static_cast< int >(result));
6040 return resultobj;
6041fail:
6042 return NULL;
d55e5bfc
RD
6043}
6044
6045
554f62e9
RD
6046SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6047 PyObject *resultobj = 0;
6048 wxBrush *arg1 = (wxBrush *) 0 ;
6049 wxBitmap *result = 0 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 PyObject *swig_obj[1] ;
6053
6054 if (!args) SWIG_fail;
6055 swig_obj[0] = args;
6056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6057 if (!SWIG_IsOK(res1)) {
6058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6059 }
6060 arg1 = reinterpret_cast< wxBrush * >(argp1);
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6068 return resultobj;
6069fail:
6070 return NULL;
d55e5bfc
RD
6071}
6072
6073
554f62e9
RD
6074SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6075 PyObject *resultobj = 0;
6076 wxBrush *arg1 = (wxBrush *) 0 ;
6077 bool result;
6078 void *argp1 = 0 ;
6079 int res1 = 0 ;
6080 PyObject *swig_obj[1] ;
6081
6082 if (!args) SWIG_fail;
6083 swig_obj[0] = args;
6084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6085 if (!SWIG_IsOK(res1)) {
6086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6087 }
6088 arg1 = reinterpret_cast< wxBrush * >(argp1);
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 result = (bool)((wxBrush const *)arg1)->IsHatch();
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 {
6096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6097 }
6098 return resultobj;
6099fail:
6100 return NULL;
f78cc896
RD
6101}
6102
6103
b39fe951 6104SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6105 PyObject *resultobj = 0;
6106 wxBrush *arg1 = (wxBrush *) 0 ;
6107 bool result;
6108 void *argp1 = 0 ;
6109 int res1 = 0 ;
6110 PyObject *swig_obj[1] ;
6111
6112 if (!args) SWIG_fail;
6113 swig_obj[0] = args;
6114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6115 if (!SWIG_IsOK(res1)) {
b39fe951 6116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
6117 }
6118 arg1 = reinterpret_cast< wxBrush * >(argp1);
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6121 result = (bool)(arg1)->IsOk();
554f62e9
RD
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 {
6126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6127 }
6128 return resultobj;
6129fail:
6130 return NULL;
d55e5bfc
RD
6131}
6132
6133
554f62e9
RD
6134SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6135 PyObject *obj;
6136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6137 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6138 return SWIG_Py_Void();
d55e5bfc
RD
6139}
6140
554f62e9
RD
6141SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6142 return SWIG_Python_InitShadowInstance(args);
6143}
d55e5bfc 6144
554f62e9
RD
6145SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6146 PyObject *resultobj = 0;
6147 wxString *arg1 = 0 ;
6148 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6149 wxBitmap *result = 0 ;
6150 bool temp1 = false ;
6151 int val2 ;
6152 int ecode2 = 0 ;
6153 PyObject * obj0 = 0 ;
6154 PyObject * obj1 = 0 ;
6155 char * kwnames[] = {
6156 (char *) "name",(char *) "type", NULL
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6160 {
6161 arg1 = wxString_in_helper(obj0);
6162 if (arg1 == NULL) SWIG_fail;
6163 temp1 = true;
6164 }
6165 if (obj1) {
6166 ecode2 = SWIG_AsVal_int(obj1, &val2);
6167 if (!SWIG_IsOK(ecode2)) {
6168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6169 }
6170 arg2 = static_cast< wxBitmapType >(val2);
6171 }
6172 {
6173 if (!wxPyCheckForApp()) SWIG_fail;
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6180 {
6181 if (temp1)
6182 delete arg1;
6183 }
6184 return resultobj;
6185fail:
6186 {
6187 if (temp1)
6188 delete arg1;
6189 }
6190 return NULL;
d55e5bfc
RD
6191}
6192
6193
554f62e9
RD
6194SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6195 PyObject *resultobj = 0;
6196 wxBitmap *arg1 = (wxBitmap *) 0 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 PyObject *swig_obj[1] ;
6200
6201 if (!args) SWIG_fail;
6202 swig_obj[0] = args;
6203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6204 if (!SWIG_IsOK(res1)) {
6205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6206 }
6207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6208 {
554f62e9 6209 delete arg1;
c24da6d6 6210
554f62e9
RD
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 return resultobj;
6215fail:
6216 return NULL;
6217}
6218
6219
6220SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj = 0;
6222 int arg1 ;
6223 int arg2 ;
6224 int arg3 = (int) -1 ;
6225 wxBitmap *result = 0 ;
6226 int val1 ;
6227 int ecode1 = 0 ;
6228 int val2 ;
6229 int ecode2 = 0 ;
6230 int val3 ;
6231 int ecode3 = 0 ;
6232 PyObject * obj0 = 0 ;
6233 PyObject * obj1 = 0 ;
6234 PyObject * obj2 = 0 ;
6235 char * kwnames[] = {
6236 (char *) "width",(char *) "height",(char *) "depth", NULL
6237 };
6238
6239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6240 ecode1 = SWIG_AsVal_int(obj0, &val1);
6241 if (!SWIG_IsOK(ecode1)) {
6242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6243 }
6244 arg1 = static_cast< int >(val1);
6245 ecode2 = SWIG_AsVal_int(obj1, &val2);
6246 if (!SWIG_IsOK(ecode2)) {
6247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6248 }
6249 arg2 = static_cast< int >(val2);
6250 if (obj2) {
6251 ecode3 = SWIG_AsVal_int(obj2, &val3);
6252 if (!SWIG_IsOK(ecode3)) {
6253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6254 }
6255 arg3 = static_cast< int >(val3);
6256 }
6257 {
6258 if (!wxPyCheckForApp()) SWIG_fail;
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6265 return resultobj;
6266fail:
6267 return NULL;
6268}
6269
6270
6271SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6272 PyObject *resultobj = 0;
6273 wxIcon *arg1 = 0 ;
6274 wxBitmap *result = 0 ;
6275 void *argp1 = 0 ;
6276 int res1 = 0 ;
6277 PyObject * obj0 = 0 ;
6278 char * kwnames[] = {
6279 (char *) "icon", NULL
6280 };
6281
6282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6283 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6284 if (!SWIG_IsOK(res1)) {
6285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6286 }
6287 if (!argp1) {
6288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6289 }
6290 arg1 = reinterpret_cast< wxIcon * >(argp1);
6291 {
6292 if (!wxPyCheckForApp()) SWIG_fail;
6293 PyThreadState* __tstate = wxPyBeginAllowThreads();
6294 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6299 return resultobj;
6300fail:
6301 return NULL;
6302}
6303
6304
6305SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj = 0;
6307 wxImage *arg1 = 0 ;
6308 int arg2 = (int) -1 ;
6309 wxBitmap *result = 0 ;
6310 void *argp1 = 0 ;
6311 int res1 = 0 ;
6312 int val2 ;
6313 int ecode2 = 0 ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 char * kwnames[] = {
6317 (char *) "image",(char *) "depth", NULL
6318 };
6319
6320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6321 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6322 if (!SWIG_IsOK(res1)) {
6323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6324 }
6325 if (!argp1) {
6326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6327 }
6328 arg1 = reinterpret_cast< wxImage * >(argp1);
6329 if (obj1) {
6330 ecode2 = SWIG_AsVal_int(obj1, &val2);
6331 if (!SWIG_IsOK(ecode2)) {
6332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6333 }
6334 arg2 = static_cast< int >(val2);
6335 }
6336 {
6337 if (!wxPyCheckForApp()) SWIG_fail;
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6344 return resultobj;
6345fail:
6346 return NULL;
c24da6d6
RD
6347}
6348
6349
554f62e9
RD
6350SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj = 0;
6352 PyObject *arg1 = (PyObject *) 0 ;
6353 wxBitmap *result = 0 ;
6354 PyObject * obj0 = 0 ;
6355 char * kwnames[] = {
6356 (char *) "listOfStrings", NULL
6357 };
6358
6359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6360 arg1 = obj0;
6361 {
6362 if (!wxPyCheckForApp()) SWIG_fail;
6363 PyThreadState* __tstate = wxPyBeginAllowThreads();
6364 result = (wxBitmap *)new_wxBitmap(arg1);
6365 wxPyEndAllowThreads(__tstate);
6366 if (PyErr_Occurred()) SWIG_fail;
6367 }
6368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6369 return resultobj;
6370fail:
6371 return NULL;
6372}
6373
6374
6375SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6376 PyObject *resultobj = 0;
6377 PyObject *arg1 = (PyObject *) 0 ;
6378 int arg2 ;
6379 int arg3 ;
6380 int arg4 = (int) 1 ;
6381 wxBitmap *result = 0 ;
6382 int val2 ;
6383 int ecode2 = 0 ;
6384 int val3 ;
6385 int ecode3 = 0 ;
6386 int val4 ;
6387 int ecode4 = 0 ;
6388 PyObject * obj0 = 0 ;
6389 PyObject * obj1 = 0 ;
6390 PyObject * obj2 = 0 ;
6391 PyObject * obj3 = 0 ;
6392 char * kwnames[] = {
6393 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6394 };
6395
6396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6397 arg1 = obj0;
6398 ecode2 = SWIG_AsVal_int(obj1, &val2);
6399 if (!SWIG_IsOK(ecode2)) {
6400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6401 }
6402 arg2 = static_cast< int >(val2);
6403 ecode3 = SWIG_AsVal_int(obj2, &val3);
6404 if (!SWIG_IsOK(ecode3)) {
6405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6406 }
6407 arg3 = static_cast< int >(val3);
6408 if (obj3) {
6409 ecode4 = SWIG_AsVal_int(obj3, &val4);
6410 if (!SWIG_IsOK(ecode4)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6412 }
6413 arg4 = static_cast< int >(val4);
6414 }
6415 {
6416 if (!wxPyCheckForApp()) SWIG_fail;
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6423 return resultobj;
6424fail:
6425 return NULL;
d55e5bfc
RD
6426}
6427
6428
554f62e9
RD
6429SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6430 PyObject *resultobj = 0;
6431 wxBitmap *arg1 = (wxBitmap *) 0 ;
6432 long result;
6433 void *argp1 = 0 ;
6434 int res1 = 0 ;
6435 PyObject *swig_obj[1] ;
6436
6437 if (!args) SWIG_fail;
6438 swig_obj[0] = args;
6439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6440 if (!SWIG_IsOK(res1)) {
6441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6442 }
6443 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6444 {
554f62e9 6445 result = (long)(arg1)->GetHandle();
554f62e9
RD
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 resultobj = SWIG_From_long(static_cast< long >(result));
6449 return resultobj;
6450fail:
6451 return NULL;
6452}
6453
6454
6455SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 long arg2 ;
6459 void *argp1 = 0 ;
6460 int res1 = 0 ;
6461 long val2 ;
6462 int ecode2 = 0 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char * kwnames[] = {
6466 (char *) "self",(char *) "handle", NULL
6467 };
6468
6469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6471 if (!SWIG_IsOK(res1)) {
6472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6473 }
6474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6475 ecode2 = SWIG_AsVal_long(obj1, &val2);
6476 if (!SWIG_IsOK(ecode2)) {
6477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6478 }
6479 arg2 = static_cast< long >(val2);
6480 {
554f62e9 6481 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_Py_Void();
6485 return resultobj;
6486fail:
6487 return NULL;
d55e5bfc
RD
6488}
6489
6490
b39fe951 6491SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6492 PyObject *resultobj = 0;
6493 wxBitmap *arg1 = (wxBitmap *) 0 ;
6494 bool result;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 PyObject *swig_obj[1] ;
6498
6499 if (!args) SWIG_fail;
6500 swig_obj[0] = args;
6501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6502 if (!SWIG_IsOK(res1)) {
b39fe951 6503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6504 }
6505 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6506 {
b39fe951 6507 result = (bool)(arg1)->IsOk();
554f62e9
RD
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 {
6511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6512 }
6513 return resultobj;
6514fail:
6515 return NULL;
d55e5bfc
RD
6516}
6517
6518
554f62e9
RD
6519SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6520 PyObject *resultobj = 0;
6521 wxBitmap *arg1 = (wxBitmap *) 0 ;
6522 int result;
6523 void *argp1 = 0 ;
6524 int res1 = 0 ;
6525 PyObject *swig_obj[1] ;
6526
6527 if (!args) SWIG_fail;
6528 swig_obj[0] = args;
6529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6530 if (!SWIG_IsOK(res1)) {
6531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6532 }
6533 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6534 {
554f62e9 6535 result = (int)(arg1)->GetWidth();
554f62e9
RD
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 resultobj = SWIG_From_int(static_cast< int >(result));
6539 return resultobj;
6540fail:
6541 return NULL;
d55e5bfc
RD
6542}
6543
6544
554f62e9
RD
6545SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6546 PyObject *resultobj = 0;
6547 wxBitmap *arg1 = (wxBitmap *) 0 ;
6548 int result;
6549 void *argp1 = 0 ;
6550 int res1 = 0 ;
6551 PyObject *swig_obj[1] ;
6552
6553 if (!args) SWIG_fail;
6554 swig_obj[0] = args;
6555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6556 if (!SWIG_IsOK(res1)) {
6557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6558 }
6559 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6560 {
554f62e9 6561 result = (int)(arg1)->GetHeight();
554f62e9
RD
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_From_int(static_cast< int >(result));
6565 return resultobj;
6566fail:
6567 return NULL;
c24da6d6
RD
6568}
6569
6570
554f62e9
RD
6571SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 int result;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 PyObject *swig_obj[1] ;
6578
6579 if (!args) SWIG_fail;
6580 swig_obj[0] = args;
6581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6584 }
6585 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6586 {
554f62e9 6587 result = (int)(arg1)->GetDepth();
554f62e9
RD
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_From_int(static_cast< int >(result));
6591 return resultobj;
6592fail:
6593 return NULL;
d55e5bfc
RD
6594}
6595
6596
554f62e9
RD
6597SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6598 PyObject *resultobj = 0;
6599 wxBitmap *arg1 = (wxBitmap *) 0 ;
6600 wxSize result;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 PyObject *swig_obj[1] ;
6604
6605 if (!args) SWIG_fail;
6606 swig_obj[0] = args;
6607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6608 if (!SWIG_IsOK(res1)) {
6609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6610 }
6611 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6612 {
554f62e9 6613 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6617 return resultobj;
6618fail:
6619 return NULL;
d55e5bfc
RD
6620}
6621
6622
554f62e9
RD
6623SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6624 PyObject *resultobj = 0;
6625 wxBitmap *arg1 = (wxBitmap *) 0 ;
6626 SwigValueWrapper<wxImage > result;
6627 void *argp1 = 0 ;
6628 int res1 = 0 ;
6629 PyObject *swig_obj[1] ;
6630
6631 if (!args) SWIG_fail;
6632 swig_obj[0] = args;
6633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6634 if (!SWIG_IsOK(res1)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6636 }
6637 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6638 {
554f62e9 6639 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6643 return resultobj;
6644fail:
6645 return NULL;
d55e5bfc
RD
6646}
6647
6648
554f62e9
RD
6649SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6650 PyObject *resultobj = 0;
6651 wxBitmap *arg1 = (wxBitmap *) 0 ;
6652 wxMask *result = 0 ;
6653 void *argp1 = 0 ;
6654 int res1 = 0 ;
6655 PyObject *swig_obj[1] ;
6656
6657 if (!args) SWIG_fail;
6658 swig_obj[0] = args;
6659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 {
554f62e9 6665 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6669 return resultobj;
6670fail:
6671 return NULL;
6672}
6673
6674
6675SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj = 0;
6677 wxBitmap *arg1 = (wxBitmap *) 0 ;
6678 wxMask *arg2 = (wxMask *) 0 ;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 int res2 = 0 ;
6682 PyObject * obj0 = 0 ;
6683 PyObject * obj1 = 0 ;
6684 char * kwnames[] = {
6685 (char *) "self",(char *) "mask", NULL
6686 };
6687
6688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6692 }
6693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6694 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6695 if (!SWIG_IsOK(res2)) {
6696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6697 }
6698 {
554f62e9 6699 (arg1)->SetMask(arg2);
554f62e9
RD
6700 if (PyErr_Occurred()) SWIG_fail;
6701 }
6702 resultobj = SWIG_Py_Void();
6703 return resultobj;
6704fail:
6705 return NULL;
6706}
6707
6708
6709SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6710 PyObject *resultobj = 0;
6711 wxBitmap *arg1 = (wxBitmap *) 0 ;
6712 wxColour *arg2 = 0 ;
6713 void *argp1 = 0 ;
6714 int res1 = 0 ;
6715 wxColour temp2 ;
6716 PyObject * obj0 = 0 ;
6717 PyObject * obj1 = 0 ;
6718 char * kwnames[] = {
6719 (char *) "self",(char *) "colour", NULL
6720 };
6721
6722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6724 if (!SWIG_IsOK(res1)) {
6725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6726 }
6727 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6728 {
6729 arg2 = &temp2;
6730 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6731 }
6732 {
554f62e9 6733 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6734 if (PyErr_Occurred()) SWIG_fail;
6735 }
6736 resultobj = SWIG_Py_Void();
6737 return resultobj;
6738fail:
6739 return NULL;
6740}
6741
6742
6743SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj = 0;
6745 wxBitmap *arg1 = (wxBitmap *) 0 ;
6746 wxRect *arg2 = 0 ;
6747 SwigValueWrapper<wxBitmap > result;
6748 void *argp1 = 0 ;
6749 int res1 = 0 ;
6750 wxRect temp2 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 char * kwnames[] = {
6754 (char *) "self",(char *) "rect", NULL
6755 };
6756
6757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6759 if (!SWIG_IsOK(res1)) {
6760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6761 }
6762 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6763 {
6764 arg2 = &temp2;
6765 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6766 }
6767 {
554f62e9 6768 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6772 return resultobj;
6773fail:
6774 return NULL;
6775}
6776
6777
6778SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6779 PyObject *resultobj = 0;
6780 wxBitmap *arg1 = (wxBitmap *) 0 ;
6781 wxString *arg2 = 0 ;
6782 wxBitmapType arg3 ;
6783 wxPalette *arg4 = (wxPalette *) NULL ;
6784 bool result;
6785 void *argp1 = 0 ;
6786 int res1 = 0 ;
6787 bool temp2 = false ;
6788 int val3 ;
6789 int ecode3 = 0 ;
6790 void *argp4 = 0 ;
6791 int res4 = 0 ;
6792 PyObject * obj0 = 0 ;
6793 PyObject * obj1 = 0 ;
6794 PyObject * obj2 = 0 ;
6795 PyObject * obj3 = 0 ;
6796 char * kwnames[] = {
6797 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6798 };
6799
6800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6802 if (!SWIG_IsOK(res1)) {
6803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6804 }
6805 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6806 {
6807 arg2 = wxString_in_helper(obj1);
6808 if (arg2 == NULL) SWIG_fail;
6809 temp2 = true;
6810 }
6811 ecode3 = SWIG_AsVal_int(obj2, &val3);
6812 if (!SWIG_IsOK(ecode3)) {
6813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6814 }
6815 arg3 = static_cast< wxBitmapType >(val3);
6816 if (obj3) {
6817 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6818 if (!SWIG_IsOK(res4)) {
6819 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6820 }
554f62e9
RD
6821 arg4 = reinterpret_cast< wxPalette * >(argp4);
6822 }
6823 {
554f62e9 6824 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 {
6828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6829 }
6830 {
6831 if (temp2)
6832 delete arg2;
6833 }
6834 return resultobj;
6835fail:
6836 {
6837 if (temp2)
6838 delete arg2;
6839 }
6840 return NULL;
6841}
6842
6843
6844SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj = 0;
6846 wxBitmap *arg1 = (wxBitmap *) 0 ;
6847 wxString *arg2 = 0 ;
6848 wxBitmapType arg3 ;
6849 bool result;
6850 void *argp1 = 0 ;
6851 int res1 = 0 ;
6852 bool temp2 = false ;
6853 int val3 ;
6854 int ecode3 = 0 ;
6855 PyObject * obj0 = 0 ;
6856 PyObject * obj1 = 0 ;
6857 PyObject * obj2 = 0 ;
6858 char * kwnames[] = {
6859 (char *) "self",(char *) "name",(char *) "type", NULL
6860 };
6861
6862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6864 if (!SWIG_IsOK(res1)) {
6865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6866 }
6867 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6868 {
6869 arg2 = wxString_in_helper(obj1);
6870 if (arg2 == NULL) SWIG_fail;
6871 temp2 = true;
6872 }
6873 ecode3 = SWIG_AsVal_int(obj2, &val3);
6874 if (!SWIG_IsOK(ecode3)) {
6875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6876 }
6877 arg3 = static_cast< wxBitmapType >(val3);
6878 {
554f62e9 6879 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 {
6883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6884 }
6885 {
6886 if (temp2)
6887 delete arg2;
6888 }
6889 return resultobj;
6890fail:
6891 {
6892 if (temp2)
6893 delete arg2;
6894 }
6895 return NULL;
d04418a7
RD
6896}
6897
6898
554f62e9
RD
6899SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6900 PyObject *resultobj = 0;
6901 wxBitmap *arg1 = (wxBitmap *) 0 ;
6902 wxPalette *result = 0 ;
6903 void *argp1 = 0 ;
6904 int res1 = 0 ;
6905 PyObject *swig_obj[1] ;
6906
6907 if (!args) SWIG_fail;
6908 swig_obj[0] = args;
6909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6910 if (!SWIG_IsOK(res1)) {
6911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6912 }
6913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6914 {
554f62e9 6915 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6919 return resultobj;
6920fail:
6921 return NULL;
6922}
6923
6924
6925SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6926 PyObject *resultobj = 0;
6927 wxBitmap *arg1 = (wxBitmap *) 0 ;
6928 wxPalette *arg2 = 0 ;
6929 void *argp1 = 0 ;
6930 int res1 = 0 ;
6931 void *argp2 = 0 ;
6932 int res2 = 0 ;
6933 PyObject * obj0 = 0 ;
6934 PyObject * obj1 = 0 ;
6935 char * kwnames[] = {
6936 (char *) "self",(char *) "palette", NULL
6937 };
6938
6939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6941 if (!SWIG_IsOK(res1)) {
6942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6943 }
6944 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6946 if (!SWIG_IsOK(res2)) {
6947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6948 }
6949 if (!argp2) {
6950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6951 }
6952 arg2 = reinterpret_cast< wxPalette * >(argp2);
6953 {
554f62e9 6954 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_Py_Void();
6958 return resultobj;
6959fail:
6960 return NULL;
6961}
6962
6963
6964SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 wxBitmap *arg1 = (wxBitmap *) 0 ;
6967 wxIcon *arg2 = 0 ;
6968 bool result;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 void *argp2 = 0 ;
6972 int res2 = 0 ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "icon", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6983 }
6984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6986 if (!SWIG_IsOK(res2)) {
6987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6988 }
6989 if (!argp2) {
6990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6991 }
6992 arg2 = reinterpret_cast< wxIcon * >(argp2);
6993 {
554f62e9 6994 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 {
6998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6999 }
7000 return resultobj;
7001fail:
7002 return NULL;
7003}
7004
7005
7006SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj = 0;
7008 wxBitmap *arg1 = (wxBitmap *) 0 ;
7009 int arg2 ;
7010 void *argp1 = 0 ;
7011 int res1 = 0 ;
7012 int val2 ;
7013 int ecode2 = 0 ;
7014 PyObject * obj0 = 0 ;
7015 PyObject * obj1 = 0 ;
7016 char * kwnames[] = {
7017 (char *) "self",(char *) "height", NULL
7018 };
7019
7020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7022 if (!SWIG_IsOK(res1)) {
7023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
7024 }
7025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7026 ecode2 = SWIG_AsVal_int(obj1, &val2);
7027 if (!SWIG_IsOK(ecode2)) {
7028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7029 }
7030 arg2 = static_cast< int >(val2);
7031 {
554f62e9 7032 (arg1)->SetHeight(arg2);
554f62e9
RD
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_Py_Void();
7036 return resultobj;
7037fail:
7038 return NULL;
7039}
7040
7041
7042SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj = 0;
7044 wxBitmap *arg1 = (wxBitmap *) 0 ;
7045 int arg2 ;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 int val2 ;
7049 int ecode2 = 0 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char * kwnames[] = {
7053 (char *) "self",(char *) "width", NULL
7054 };
7055
7056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7058 if (!SWIG_IsOK(res1)) {
7059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7060 }
7061 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7062 ecode2 = SWIG_AsVal_int(obj1, &val2);
7063 if (!SWIG_IsOK(ecode2)) {
7064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7065 }
7066 arg2 = static_cast< int >(val2);
7067 {
554f62e9 7068 (arg1)->SetWidth(arg2);
554f62e9
RD
7069 if (PyErr_Occurred()) SWIG_fail;
7070 }
7071 resultobj = SWIG_Py_Void();
7072 return resultobj;
7073fail:
7074 return NULL;
7075}
7076
7077
7078SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7079 PyObject *resultobj = 0;
7080 wxBitmap *arg1 = (wxBitmap *) 0 ;
7081 int arg2 ;
7082 void *argp1 = 0 ;
7083 int res1 = 0 ;
7084 int val2 ;
7085 int ecode2 = 0 ;
7086 PyObject * obj0 = 0 ;
7087 PyObject * obj1 = 0 ;
7088 char * kwnames[] = {
7089 (char *) "self",(char *) "depth", NULL
7090 };
7091
7092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7096 }
7097 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7098 ecode2 = SWIG_AsVal_int(obj1, &val2);
7099 if (!SWIG_IsOK(ecode2)) {
7100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7101 }
7102 arg2 = static_cast< int >(val2);
7103 {
554f62e9 7104 (arg1)->SetDepth(arg2);
554f62e9
RD
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 resultobj = SWIG_Py_Void();
7108 return resultobj;
7109fail:
7110 return NULL;
7111}
7112
7113
7114SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj = 0;
7116 wxBitmap *arg1 = (wxBitmap *) 0 ;
7117 wxSize *arg2 = 0 ;
7118 void *argp1 = 0 ;
7119 int res1 = 0 ;
7120 wxSize temp2 ;
7121 PyObject * obj0 = 0 ;
7122 PyObject * obj1 = 0 ;
7123 char * kwnames[] = {
7124 (char *) "self",(char *) "size", NULL
7125 };
7126
7127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7129 if (!SWIG_IsOK(res1)) {
7130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7131 }
7132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7133 {
7134 arg2 = &temp2;
7135 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7136 }
7137 {
554f62e9 7138 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_Py_Void();
7142 return resultobj;
7143fail:
7144 return NULL;
7145}
7146
7147
7148SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj = 0;
7150 wxBitmap *arg1 = (wxBitmap *) 0 ;
7151 wxCursor *arg2 = 0 ;
7152 bool result;
7153 void *argp1 = 0 ;
7154 int res1 = 0 ;
7155 void *argp2 = 0 ;
7156 int res2 = 0 ;
7157 PyObject * obj0 = 0 ;
7158 PyObject * obj1 = 0 ;
7159 char * kwnames[] = {
7160 (char *) "self",(char *) "cursor", NULL
7161 };
7162
7163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7167 }
7168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7170 if (!SWIG_IsOK(res2)) {
7171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7172 }
7173 if (!argp2) {
7174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7175 }
7176 arg2 = reinterpret_cast< wxCursor * >(argp2);
7177 {
554f62e9 7178 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7183 }
7184 return resultobj;
7185fail:
7186 return NULL;
7187}
7188
7189
8f514ab4
RD
7190SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj = 0;
7192 wxBitmap *arg1 = (wxBitmap *) 0 ;
7193 buffer arg2 ;
7194 int arg3 ;
7195 void *argp1 = 0 ;
7196 int res1 = 0 ;
7197 Py_ssize_t temp2 ;
7198 PyObject * obj0 = 0 ;
7199 PyObject * obj1 = 0 ;
7200 char * kwnames[] = {
7201 (char *) "self",(char *) "data", NULL
7202 };
7203
7204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7208 }
7209 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7210 {
7211 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7212 arg3 = (int)temp2;
7213 }
7214 {
7215 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 resultobj = SWIG_Py_Void();
7219 return resultobj;
7220fail:
7221 return NULL;
7222}
7223
7224
7225SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj = 0;
7227 wxBitmap *arg1 = (wxBitmap *) 0 ;
7228 buffer arg2 ;
7229 int arg3 ;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 Py_ssize_t temp2 ;
7233 PyObject * obj0 = 0 ;
7234 PyObject * obj1 = 0 ;
7235 char * kwnames[] = {
7236 (char *) "self",(char *) "data", NULL
7237 };
7238
7239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7241 if (!SWIG_IsOK(res1)) {
7242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7243 }
7244 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7245 {
7246 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7247 arg3 = (int)temp2;
7248 }
7249 {
7250 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_Py_Void();
7254 return resultobj;
7255fail:
7256 return NULL;
7257}
7258
7259
554f62e9
RD
7260SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7261 PyObject *resultobj = 0;
7262 wxBitmap *arg1 = (wxBitmap *) 0 ;
7263 wxBitmap *arg2 = (wxBitmap *) 0 ;
7264 bool result;
7265 void *argp1 = 0 ;
7266 int res1 = 0 ;
7267 void *argp2 = 0 ;
7268 int res2 = 0 ;
7269 PyObject * obj0 = 0 ;
7270 PyObject * obj1 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "self",(char *) "other", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7279 }
7280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7282 if (!SWIG_IsOK(res2)) {
7283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7284 }
7285 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7286 {
554f62e9 7287 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 {
fc46b7f3
RD
7291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7292 }
7293 return resultobj;
7294fail:
7295 return NULL;
7296}
7297
7298
7299SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7300 PyObject *resultobj = 0;
7301 wxBitmap *arg1 = (wxBitmap *) 0 ;
7302 wxBitmap *arg2 = (wxBitmap *) 0 ;
7303 bool result;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 void *argp2 = 0 ;
7307 int res2 = 0 ;
7308 PyObject * obj0 = 0 ;
7309 PyObject * obj1 = 0 ;
7310 char * kwnames[] = {
7311 (char *) "self",(char *) "other", NULL
7312 };
7313
7314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7316 if (!SWIG_IsOK(res1)) {
7317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7318 }
7319 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7320 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7321 if (!SWIG_IsOK(res2)) {
7322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7323 }
7324 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7325 {
7326 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7331 }
7332 return resultobj;
7333fail:
7334 return NULL;
7335}
7336
7337
7338SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7339 PyObject *obj;
7340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7341 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7342 return SWIG_Py_Void();
7343}
7344
7345SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7346 return SWIG_Python_InitShadowInstance(args);
7347}
7348
7349SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj = 0;
7351 int arg1 ;
7352 int arg2 ;
7353 buffer arg3 ;
7354 int arg4 ;
7355 buffer arg5 ;
7356 int arg6 ;
7357 wxBitmap *result = 0 ;
7358 int val1 ;
7359 int ecode1 = 0 ;
7360 int val2 ;
7361 int ecode2 = 0 ;
e46e7e0d
RD
7362 Py_ssize_t temp3 ;
7363 Py_ssize_t temp5 ;
fc46b7f3
RD
7364 PyObject * obj0 = 0 ;
7365 PyObject * obj1 = 0 ;
7366 PyObject * obj2 = 0 ;
7367 PyObject * obj3 = 0 ;
7368 char * kwnames[] = {
7369 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7370 };
7371
7372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7373 ecode1 = SWIG_AsVal_int(obj0, &val1);
7374 if (!SWIG_IsOK(ecode1)) {
7375 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7376 }
7377 arg1 = static_cast< int >(val1);
7378 ecode2 = SWIG_AsVal_int(obj1, &val2);
7379 if (!SWIG_IsOK(ecode2)) {
7380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7381 }
7382 arg2 = static_cast< int >(val2);
7383 {
e46e7e0d
RD
7384 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7385 arg4 = (int)temp3;
fc46b7f3
RD
7386 }
7387 {
7388 if (obj3 != Py_None) {
e46e7e0d
RD
7389 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7390 arg6 = (int)temp5;
fc46b7f3
RD
7391 }
7392 }
7393 {
7394 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7398 return resultobj;
7399fail:
7400 return NULL;
7401}
7402
7403
7404SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7405 PyObject *resultobj = 0;
7406 int arg1 ;
7407 int arg2 ;
7408 buffer arg3 ;
7409 int arg4 ;
7410 wxBitmap *result = 0 ;
7411 int val1 ;
7412 int ecode1 = 0 ;
7413 int val2 ;
7414 int ecode2 = 0 ;
e46e7e0d 7415 Py_ssize_t temp3 ;
fc46b7f3
RD
7416 PyObject * obj0 = 0 ;
7417 PyObject * obj1 = 0 ;
7418 PyObject * obj2 = 0 ;
7419 char * kwnames[] = {
7420 (char *) "width",(char *) "height",(char *) "data", NULL
7421 };
7422
7423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7424 ecode1 = SWIG_AsVal_int(obj0, &val1);
7425 if (!SWIG_IsOK(ecode1)) {
7426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7427 }
7428 arg1 = static_cast< int >(val1);
7429 ecode2 = SWIG_AsVal_int(obj1, &val2);
7430 if (!SWIG_IsOK(ecode2)) {
7431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7432 }
7433 arg2 = static_cast< int >(val2);
7434 {
e46e7e0d
RD
7435 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7436 arg4 = (int)temp3;
fc46b7f3
RD
7437 }
7438 {
7439 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7443 return resultobj;
7444fail:
7445 return NULL;
7446}
7447
7448
7449SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7450 PyObject *resultobj = 0;
7451 int arg1 ;
7452 int arg2 ;
7453 buffer arg3 ;
7454 int arg4 ;
7455 wxBitmap *result = 0 ;
7456 int val1 ;
7457 int ecode1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
e46e7e0d 7460 Py_ssize_t temp3 ;
fc46b7f3
RD
7461 PyObject * obj0 = 0 ;
7462 PyObject * obj1 = 0 ;
7463 PyObject * obj2 = 0 ;
7464 char * kwnames[] = {
7465 (char *) "width",(char *) "height",(char *) "data", NULL
7466 };
7467
7468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7469 ecode1 = SWIG_AsVal_int(obj0, &val1);
7470 if (!SWIG_IsOK(ecode1)) {
7471 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7472 }
7473 arg1 = static_cast< int >(val1);
7474 ecode2 = SWIG_AsVal_int(obj1, &val2);
7475 if (!SWIG_IsOK(ecode2)) {
7476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7477 }
7478 arg2 = static_cast< int >(val2);
7479 {
e46e7e0d
RD
7480 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7481 arg4 = (int)temp3;
fc46b7f3
RD
7482 }
7483 {
7484 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7488 return resultobj;
7489fail:
7490 return NULL;
7491}
7492
7493
7494SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7495 PyObject *resultobj = 0;
7496 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7497 wxPoint result;
7498 void *argp1 = 0 ;
7499 int res1 = 0 ;
7500 PyObject *swig_obj[1] ;
7501
7502 if (!args) SWIG_fail;
7503 swig_obj[0] = args;
7504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7505 if (!SWIG_IsOK(res1)) {
7506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7507 }
7508 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7509 {
7510 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7511 if (PyErr_Occurred()) SWIG_fail;
7512 }
7513 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7514 return resultobj;
7515fail:
7516 return NULL;
7517}
7518
7519
7520SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7521 PyObject *resultobj = 0;
7522 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7523 int result;
7524 void *argp1 = 0 ;
7525 int res1 = 0 ;
7526 PyObject *swig_obj[1] ;
7527
7528 if (!args) SWIG_fail;
7529 swig_obj[0] = args;
7530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7531 if (!SWIG_IsOK(res1)) {
7532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7533 }
7534 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7535 {
7536 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 resultobj = SWIG_From_int(static_cast< int >(result));
7540 return resultobj;
7541fail:
7542 return NULL;
7543}
7544
7545
7546SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7547 PyObject *resultobj = 0;
7548 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7549 int result;
7550 void *argp1 = 0 ;
7551 int res1 = 0 ;
7552 PyObject *swig_obj[1] ;
7553
7554 if (!args) SWIG_fail;
7555 swig_obj[0] = args;
7556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7557 if (!SWIG_IsOK(res1)) {
7558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7559 }
7560 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7561 {
7562 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_From_int(static_cast< int >(result));
7566 return resultobj;
7567fail:
7568 return NULL;
7569}
7570
7571
7572SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7573 PyObject *resultobj = 0;
7574 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7575 wxSize result;
7576 void *argp1 = 0 ;
7577 int res1 = 0 ;
7578 PyObject *swig_obj[1] ;
7579
7580 if (!args) SWIG_fail;
7581 swig_obj[0] = args;
7582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7583 if (!SWIG_IsOK(res1)) {
7584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7585 }
7586 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7587 {
7588 result = ((wxPixelDataBase const *)arg1)->GetSize();
7589 if (PyErr_Occurred()) SWIG_fail;
7590 }
7591 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7592 return resultobj;
7593fail:
7594 return NULL;
7595}
7596
7597
7598SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7599 PyObject *resultobj = 0;
7600 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7601 int result;
7602 void *argp1 = 0 ;
7603 int res1 = 0 ;
7604 PyObject *swig_obj[1] ;
7605
7606 if (!args) SWIG_fail;
7607 swig_obj[0] = args;
7608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7611 }
7612 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7613 {
7614 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = SWIG_From_int(static_cast< int >(result));
7618 return resultobj;
7619fail:
7620 return NULL;
7621}
7622
7623
7624SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7625 PyObject *obj;
7626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7627 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7628 return SWIG_Py_Void();
7629}
7630
7631SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7632 PyObject *resultobj = 0;
7633 wxBitmap *arg1 = 0 ;
7634 wxNativePixelData *result = 0 ;
7635 void *argp1 = 0 ;
7636 int res1 = 0 ;
7637
7638 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7640 if (!SWIG_IsOK(res1)) {
7641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7642 }
7643 if (!argp1) {
7644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7645 }
7646 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7647 {
7648 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7652 return resultobj;
7653fail:
7654 return NULL;
7655}
7656
7657
7658SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7659 PyObject *resultobj = 0;
7660 wxBitmap *arg1 = 0 ;
7661 wxRect *arg2 = 0 ;
7662 wxNativePixelData *result = 0 ;
7663 void *argp1 = 0 ;
7664 int res1 = 0 ;
7665 wxRect temp2 ;
7666
7667 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7669 if (!SWIG_IsOK(res1)) {
7670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7671 }
7672 if (!argp1) {
7673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7674 }
7675 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7676 {
7677 arg2 = &temp2;
7678 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7679 }
7680 {
7681 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7685 return resultobj;
7686fail:
7687 return NULL;
7688}
7689
7690
7691SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7692 PyObject *resultobj = 0;
7693 wxBitmap *arg1 = 0 ;
7694 wxPoint *arg2 = 0 ;
7695 wxSize *arg3 = 0 ;
7696 wxNativePixelData *result = 0 ;
7697 void *argp1 = 0 ;
7698 int res1 = 0 ;
7699 wxPoint temp2 ;
7700 wxSize temp3 ;
7701
7702 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7704 if (!SWIG_IsOK(res1)) {
7705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7706 }
7707 if (!argp1) {
7708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7709 }
7710 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7711 {
7712 arg2 = &temp2;
7713 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7714 }
7715 {
7716 arg3 = &temp3;
7717 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7718 }
7719 {
7720 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7724 return resultobj;
7725fail:
7726 return NULL;
7727}
7728
7729
7730SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7731 int argc;
7732 PyObject *argv[4];
7733
7734 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7735 --argc;
7736 if (argc == 1) {
7737 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7738 }
7739 if (argc == 2) {
7740 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7741 }
7742 if (argc == 3) {
7743 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7744 }
7745
7746fail:
7747 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7748 return NULL;
7749}
7750
7751
7752SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7753 PyObject *resultobj = 0;
7754 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7755 void *argp1 = 0 ;
7756 int res1 = 0 ;
7757 PyObject *swig_obj[1] ;
7758
7759 if (!args) SWIG_fail;
7760 swig_obj[0] = args;
7761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7764 }
7765 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7766 {
7767 delete arg1;
7768
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_Py_Void();
7772 return resultobj;
7773fail:
7774 return NULL;
7775}
7776
7777
7778SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7779 PyObject *resultobj = 0;
7780 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7781 wxNativePixelData_Accessor result;
7782 void *argp1 = 0 ;
7783 int res1 = 0 ;
7784 PyObject *swig_obj[1] ;
7785
7786 if (!args) SWIG_fail;
7787 swig_obj[0] = args;
7788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7789 if (!SWIG_IsOK(res1)) {
7790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7791 }
7792 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7793 {
7794 result = ((wxNativePixelData const *)arg1)->GetPixels();
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7798 return resultobj;
7799fail:
7800 return NULL;
7801}
7802
7803
7804SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7805 PyObject *resultobj = 0;
7806 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 PyObject *swig_obj[1] ;
7810
7811 if (!args) SWIG_fail;
7812 swig_obj[0] = args;
7813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7814 if (!SWIG_IsOK(res1)) {
7815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7816 }
7817 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7818 {
7819 (arg1)->UseAlpha();
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 resultobj = SWIG_Py_Void();
7823 return resultobj;
7824fail:
7825 return NULL;
7826}
7827
7828
7829SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7832 bool result;
7833 void *argp1 = 0 ;
7834 int res1 = 0 ;
7835 PyObject *swig_obj[1] ;
7836
7837 if (!args) SWIG_fail;
7838 swig_obj[0] = args;
7839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7840 if (!SWIG_IsOK(res1)) {
7841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7842 }
7843 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7844 {
7845 result = (bool)wxNativePixelData___nonzero__(arg1);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 {
7849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7850 }
7851 return resultobj;
7852fail:
7853 return NULL;
7854}
7855
7856
7857SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7858 PyObject *obj;
7859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7860 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7861 return SWIG_Py_Void();
7862}
7863
7864SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 return SWIG_Python_InitShadowInstance(args);
7866}
7867
7868SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7869 PyObject *resultobj = 0;
7870 wxNativePixelData *arg1 = 0 ;
7871 wxNativePixelData_Accessor *result = 0 ;
7872 void *argp1 = 0 ;
7873 int res1 = 0 ;
7874
7875 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7877 if (!SWIG_IsOK(res1)) {
7878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7879 }
7880 if (!argp1) {
7881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7882 }
7883 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7884 {
7885 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7889 return resultobj;
7890fail:
7891 return NULL;
7892}
7893
7894
7895SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7896 PyObject *resultobj = 0;
7897 wxBitmap *arg1 = 0 ;
7898 wxNativePixelData *arg2 = 0 ;
7899 wxNativePixelData_Accessor *result = 0 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 void *argp2 = 0 ;
7903 int res2 = 0 ;
7904
7905 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7907 if (!SWIG_IsOK(res1)) {
7908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7909 }
7910 if (!argp1) {
7911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7912 }
7913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7914 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7915 if (!SWIG_IsOK(res2)) {
7916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7917 }
7918 if (!argp2) {
7919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7920 }
7921 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7922 {
7923 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7927 return resultobj;
7928fail:
7929 return NULL;
7930}
7931
7932
7933SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7934 PyObject *resultobj = 0;
7935 wxNativePixelData_Accessor *result = 0 ;
7936
7937 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7938 {
7939 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7943 return resultobj;
7944fail:
7945 return NULL;
7946}
7947
7948
7949SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7950 int argc;
7951 PyObject *argv[3];
7952
7953 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7954 --argc;
7955 if (argc == 0) {
7956 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7957 }
7958 if (argc == 1) {
7959 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7960 }
7961 if (argc == 2) {
7962 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7963 }
7964
7965fail:
7966 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7967 return NULL;
7968}
7969
7970
7971SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7972 PyObject *resultobj = 0;
7973 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7983 }
7984 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7985 {
7986 delete arg1;
7987
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 resultobj = SWIG_Py_Void();
7991 return resultobj;
7992fail:
7993 return NULL;
7994}
7995
7996
7997SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7998 PyObject *resultobj = 0;
7999 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8000 wxNativePixelData *arg2 = 0 ;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 void *argp2 = 0 ;
8004 int res2 = 0 ;
8005 PyObject * obj0 = 0 ;
8006 PyObject * obj1 = 0 ;
8007 char * kwnames[] = {
8008 (char *) "self",(char *) "data", NULL
8009 };
8010
8011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8015 }
8016 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8018 if (!SWIG_IsOK(res2)) {
8019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8020 }
8021 if (!argp2) {
8022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8023 }
8024 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8025 {
8026 (arg1)->Reset((wxNativePixelData const &)*arg2);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_Py_Void();
8030 return resultobj;
8031fail:
8032 return NULL;
8033}
8034
8035
8036SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8037 PyObject *resultobj = 0;
8038 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8039 bool result;
8040 void *argp1 = 0 ;
8041 int res1 = 0 ;
8042 PyObject *swig_obj[1] ;
8043
8044 if (!args) SWIG_fail;
8045 swig_obj[0] = args;
8046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8047 if (!SWIG_IsOK(res1)) {
8048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8049 }
8050 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8051 {
8052 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 {
8056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8057 }
8058 return resultobj;
8059fail:
8060 return NULL;
8061}
8062
8063
8064SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8065 PyObject *resultobj = 0;
8066 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8067 void *argp1 = 0 ;
8068 int res1 = 0 ;
8069 PyObject *swig_obj[1] ;
8070
8071 if (!args) SWIG_fail;
8072 swig_obj[0] = args;
8073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8074 if (!SWIG_IsOK(res1)) {
8075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8076 }
8077 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8078 {
8079 wxNativePixelData_Accessor_nextPixel(arg1);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 resultobj = SWIG_Py_Void();
8083 return resultobj;
8084fail:
8085 return NULL;
8086}
8087
8088
8089SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8092 wxNativePixelData *arg2 = 0 ;
8093 int arg3 ;
8094 int arg4 ;
8095 void *argp1 = 0 ;
8096 int res1 = 0 ;
8097 void *argp2 = 0 ;
8098 int res2 = 0 ;
8099 int val3 ;
8100 int ecode3 = 0 ;
8101 int val4 ;
8102 int ecode4 = 0 ;
8103 PyObject * obj0 = 0 ;
8104 PyObject * obj1 = 0 ;
8105 PyObject * obj2 = 0 ;
8106 PyObject * obj3 = 0 ;
8107 char * kwnames[] = {
8108 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8109 };
8110
8111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8113 if (!SWIG_IsOK(res1)) {
8114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8115 }
8116 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8118 if (!SWIG_IsOK(res2)) {
8119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8120 }
8121 if (!argp2) {
8122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8123 }
8124 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8125 ecode3 = SWIG_AsVal_int(obj2, &val3);
8126 if (!SWIG_IsOK(ecode3)) {
8127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8128 }
8129 arg3 = static_cast< int >(val3);
8130 ecode4 = SWIG_AsVal_int(obj3, &val4);
8131 if (!SWIG_IsOK(ecode4)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8133 }
8134 arg4 = static_cast< int >(val4);
8135 {
8136 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 resultobj = SWIG_Py_Void();
8140 return resultobj;
8141fail:
8142 return NULL;
8143}
8144
8145
8146SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj = 0;
8148 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8149 wxNativePixelData *arg2 = 0 ;
8150 int arg3 ;
8151 void *argp1 = 0 ;
8152 int res1 = 0 ;
8153 void *argp2 = 0 ;
8154 int res2 = 0 ;
8155 int val3 ;
8156 int ecode3 = 0 ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 PyObject * obj2 = 0 ;
8160 char * kwnames[] = {
8161 (char *) "self",(char *) "data",(char *) "x", NULL
8162 };
8163
8164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8168 }
8169 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8171 if (!SWIG_IsOK(res2)) {
8172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8173 }
8174 if (!argp2) {
8175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8176 }
8177 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8178 ecode3 = SWIG_AsVal_int(obj2, &val3);
8179 if (!SWIG_IsOK(ecode3)) {
8180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8181 }
8182 arg3 = static_cast< int >(val3);
8183 {
8184 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_Py_Void();
8188 return resultobj;
8189fail:
8190 return NULL;
8191}
8192
8193
8194SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj = 0;
8196 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8197 wxNativePixelData *arg2 = 0 ;
8198 int arg3 ;
8199 void *argp1 = 0 ;
8200 int res1 = 0 ;
8201 void *argp2 = 0 ;
8202 int res2 = 0 ;
8203 int val3 ;
8204 int ecode3 = 0 ;
8205 PyObject * obj0 = 0 ;
8206 PyObject * obj1 = 0 ;
8207 PyObject * obj2 = 0 ;
8208 char * kwnames[] = {
8209 (char *) "self",(char *) "data",(char *) "y", NULL
8210 };
8211
8212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8214 if (!SWIG_IsOK(res1)) {
8215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8216 }
8217 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8219 if (!SWIG_IsOK(res2)) {
8220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8221 }
8222 if (!argp2) {
8223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8224 }
8225 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8226 ecode3 = SWIG_AsVal_int(obj2, &val3);
8227 if (!SWIG_IsOK(ecode3)) {
8228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8229 }
8230 arg3 = static_cast< int >(val3);
8231 {
8232 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_Py_Void();
8236 return resultobj;
8237fail:
8238 return NULL;
8239}
8240
8241
8242SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj = 0;
8244 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8245 wxNativePixelData *arg2 = 0 ;
8246 int arg3 ;
8247 int arg4 ;
8248 void *argp1 = 0 ;
8249 int res1 = 0 ;
8250 void *argp2 = 0 ;
8251 int res2 = 0 ;
8252 int val3 ;
8253 int ecode3 = 0 ;
8254 int val4 ;
8255 int ecode4 = 0 ;
8256 PyObject * obj0 = 0 ;
8257 PyObject * obj1 = 0 ;
8258 PyObject * obj2 = 0 ;
8259 PyObject * obj3 = 0 ;
8260 char * kwnames[] = {
8261 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8262 };
8263
8264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8266 if (!SWIG_IsOK(res1)) {
8267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8268 }
8269 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8271 if (!SWIG_IsOK(res2)) {
8272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8273 }
8274 if (!argp2) {
8275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8276 }
8277 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8278 ecode3 = SWIG_AsVal_int(obj2, &val3);
8279 if (!SWIG_IsOK(ecode3)) {
8280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8281 }
8282 arg3 = static_cast< int >(val3);
8283 ecode4 = SWIG_AsVal_int(obj3, &val4);
8284 if (!SWIG_IsOK(ecode4)) {
8285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8286 }
8287 arg4 = static_cast< int >(val4);
8288 {
8289 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_Py_Void();
8293 return resultobj;
8294fail:
8295 return NULL;
8296}
8297
8298
8299SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8300 PyObject *resultobj = 0;
8301 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8302 byte arg2 ;
8303 byte arg3 ;
8304 byte arg4 ;
8305 void *argp1 = 0 ;
8306 int res1 = 0 ;
8307 unsigned char val2 ;
8308 int ecode2 = 0 ;
8309 unsigned char val3 ;
8310 int ecode3 = 0 ;
8311 unsigned char val4 ;
8312 int ecode4 = 0 ;
8313 PyObject * obj0 = 0 ;
8314 PyObject * obj1 = 0 ;
8315 PyObject * obj2 = 0 ;
8316 PyObject * obj3 = 0 ;
8317 char * kwnames[] = {
8318 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8319 };
8320
8321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8325 }
8326 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8327 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8328 if (!SWIG_IsOK(ecode2)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8330 }
8331 arg2 = static_cast< byte >(val2);
8332 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8333 if (!SWIG_IsOK(ecode3)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8335 }
8336 arg3 = static_cast< byte >(val3);
8337 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8338 if (!SWIG_IsOK(ecode4)) {
8339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8340 }
8341 arg4 = static_cast< byte >(val4);
8342 {
8343 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348fail:
8349 return NULL;
8350}
8351
8352
8353SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8356 PyObject *result = 0 ;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8366 }
8367 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8368 {
8369 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 resultobj = result;
8373 return resultobj;
8374fail:
8375 return NULL;
8376}
8377
8378
8379SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8380 PyObject *obj;
8381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8382 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8383 return SWIG_Py_Void();
8384}
8385
8386SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8387 return SWIG_Python_InitShadowInstance(args);
8388}
8389
8390SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8391 PyObject *resultobj = 0;
8392 wxBitmap *arg1 = 0 ;
8393 wxAlphaPixelData *result = 0 ;
8394 void *argp1 = 0 ;
8395 int res1 = 0 ;
8396
8397 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8399 if (!SWIG_IsOK(res1)) {
8400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8401 }
8402 if (!argp1) {
8403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8404 }
8405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8406 {
8407 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8411 return resultobj;
8412fail:
8413 return NULL;
8414}
8415
8416
8417SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8418 PyObject *resultobj = 0;
8419 wxBitmap *arg1 = 0 ;
8420 wxRect *arg2 = 0 ;
8421 wxAlphaPixelData *result = 0 ;
8422 void *argp1 = 0 ;
8423 int res1 = 0 ;
8424 wxRect temp2 ;
8425
8426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8428 if (!SWIG_IsOK(res1)) {
8429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8430 }
8431 if (!argp1) {
8432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8433 }
8434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8435 {
8436 arg2 = &temp2;
8437 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8438 }
8439 {
8440 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8444 return resultobj;
8445fail:
8446 return NULL;
8447}
8448
8449
8450SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8451 PyObject *resultobj = 0;
8452 wxBitmap *arg1 = 0 ;
8453 wxPoint *arg2 = 0 ;
8454 wxSize *arg3 = 0 ;
8455 wxAlphaPixelData *result = 0 ;
8456 void *argp1 = 0 ;
8457 int res1 = 0 ;
8458 wxPoint temp2 ;
8459 wxSize temp3 ;
8460
8461 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8465 }
8466 if (!argp1) {
8467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8468 }
8469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8470 {
8471 arg2 = &temp2;
8472 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8473 }
8474 {
8475 arg3 = &temp3;
8476 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8477 }
8478 {
8479 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8483 return resultobj;
8484fail:
8485 return NULL;
8486}
8487
8488
8489SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8490 int argc;
8491 PyObject *argv[4];
8492
8493 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8494 --argc;
8495 if (argc == 1) {
8496 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8497 }
8498 if (argc == 2) {
8499 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8500 }
8501 if (argc == 3) {
8502 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8503 }
8504
8505fail:
8506 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8507 return NULL;
8508}
8509
8510
8511SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8512 PyObject *resultobj = 0;
8513 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8514 void *argp1 = 0 ;
8515 int res1 = 0 ;
8516 PyObject *swig_obj[1] ;
8517
8518 if (!args) SWIG_fail;
8519 swig_obj[0] = args;
8520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8523 }
8524 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8525 {
8526 delete arg1;
8527
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_Py_Void();
8531 return resultobj;
8532fail:
8533 return NULL;
8534}
8535
8536
8537SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8538 PyObject *resultobj = 0;
8539 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8540 wxAlphaPixelData_Accessor result;
8541 void *argp1 = 0 ;
8542 int res1 = 0 ;
8543 PyObject *swig_obj[1] ;
8544
8545 if (!args) SWIG_fail;
8546 swig_obj[0] = args;
8547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8548 if (!SWIG_IsOK(res1)) {
8549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8550 }
8551 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8552 {
8553 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8557 return resultobj;
8558fail:
8559 return NULL;
8560}
8561
8562
8563SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8564 PyObject *resultobj = 0;
8565 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 PyObject *swig_obj[1] ;
8569
8570 if (!args) SWIG_fail;
8571 swig_obj[0] = args;
8572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8573 if (!SWIG_IsOK(res1)) {
8574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8575 }
8576 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8577 {
8578 (arg1)->UseAlpha();
8579 if (PyErr_Occurred()) SWIG_fail;
8580 }
8581 resultobj = SWIG_Py_Void();
8582 return resultobj;
8583fail:
8584 return NULL;
8585}
8586
8587
8588SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8589 PyObject *resultobj = 0;
8590 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8591 bool result;
8592 void *argp1 = 0 ;
8593 int res1 = 0 ;
8594 PyObject *swig_obj[1] ;
8595
8596 if (!args) SWIG_fail;
8597 swig_obj[0] = args;
8598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8599 if (!SWIG_IsOK(res1)) {
8600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8601 }
8602 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8603 {
8604 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 {
8608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8609 }
8610 return resultobj;
8611fail:
8612 return NULL;
8613}
8614
8615
8616SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8617 PyObject *obj;
8618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8619 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8620 return SWIG_Py_Void();
8621}
8622
8623SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8624 return SWIG_Python_InitShadowInstance(args);
8625}
8626
8627SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8628 PyObject *resultobj = 0;
8629 wxAlphaPixelData *arg1 = 0 ;
8630 wxAlphaPixelData_Accessor *result = 0 ;
8631 void *argp1 = 0 ;
8632 int res1 = 0 ;
8633
8634 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8636 if (!SWIG_IsOK(res1)) {
8637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8638 }
8639 if (!argp1) {
8640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8641 }
8642 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8643 {
8644 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8648 return resultobj;
8649fail:
8650 return NULL;
8651}
8652
8653
8654SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8655 PyObject *resultobj = 0;
8656 wxBitmap *arg1 = 0 ;
8657 wxAlphaPixelData *arg2 = 0 ;
8658 wxAlphaPixelData_Accessor *result = 0 ;
8659 void *argp1 = 0 ;
8660 int res1 = 0 ;
8661 void *argp2 = 0 ;
8662 int res2 = 0 ;
8663
8664 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8666 if (!SWIG_IsOK(res1)) {
8667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8668 }
8669 if (!argp1) {
8670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8671 }
8672 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8673 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8674 if (!SWIG_IsOK(res2)) {
8675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8676 }
8677 if (!argp2) {
8678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8679 }
8680 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8681 {
8682 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8686 return resultobj;
8687fail:
8688 return NULL;
8689}
8690
8691
8692SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8693 PyObject *resultobj = 0;
8694 wxAlphaPixelData_Accessor *result = 0 ;
8695
8696 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8697 {
8698 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8702 return resultobj;
8703fail:
8704 return NULL;
8705}
8706
8707
8708SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8709 int argc;
8710 PyObject *argv[3];
8711
8712 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8713 --argc;
8714 if (argc == 0) {
8715 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8716 }
8717 if (argc == 1) {
8718 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8719 }
8720 if (argc == 2) {
8721 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8722 }
8723
8724fail:
8725 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8726 return NULL;
8727}
8728
8729
8730SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8731 PyObject *resultobj = 0;
8732 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8733 void *argp1 = 0 ;
8734 int res1 = 0 ;
8735 PyObject *swig_obj[1] ;
8736
8737 if (!args) SWIG_fail;
8738 swig_obj[0] = args;
8739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8740 if (!SWIG_IsOK(res1)) {
8741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8742 }
8743 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8744 {
8745 delete arg1;
8746
8747 if (PyErr_Occurred()) SWIG_fail;
8748 }
8749 resultobj = SWIG_Py_Void();
8750 return resultobj;
8751fail:
8752 return NULL;
8753}
8754
8755
8756SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8757 PyObject *resultobj = 0;
8758 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8759 wxAlphaPixelData *arg2 = 0 ;
8760 void *argp1 = 0 ;
8761 int res1 = 0 ;
8762 void *argp2 = 0 ;
8763 int res2 = 0 ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 char * kwnames[] = {
8767 (char *) "self",(char *) "data", NULL
8768 };
8769
8770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8772 if (!SWIG_IsOK(res1)) {
8773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8774 }
8775 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8777 if (!SWIG_IsOK(res2)) {
8778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8779 }
8780 if (!argp2) {
8781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8782 }
8783 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8784 {
8785 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 resultobj = SWIG_Py_Void();
8789 return resultobj;
8790fail:
8791 return NULL;
8792}
8793
8794
8795SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8796 PyObject *resultobj = 0;
8797 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8798 bool result;
8799 void *argp1 = 0 ;
8800 int res1 = 0 ;
8801 PyObject *swig_obj[1] ;
8802
8803 if (!args) SWIG_fail;
8804 swig_obj[0] = args;
8805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8806 if (!SWIG_IsOK(res1)) {
8807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8808 }
8809 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8810 {
8811 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 {
8815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8816 }
8817 return resultobj;
8818fail:
8819 return NULL;
8820}
8821
8822
8823SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8824 PyObject *resultobj = 0;
8825 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 PyObject *swig_obj[1] ;
8829
8830 if (!args) SWIG_fail;
8831 swig_obj[0] = args;
8832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8833 if (!SWIG_IsOK(res1)) {
8834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8835 }
8836 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8837 {
8838 wxAlphaPixelData_Accessor_nextPixel(arg1);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 resultobj = SWIG_Py_Void();
8842 return resultobj;
8843fail:
8844 return NULL;
8845}
8846
8847
8848SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj = 0;
8850 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8851 wxAlphaPixelData *arg2 = 0 ;
8852 int arg3 ;
8853 int arg4 ;
8854 void *argp1 = 0 ;
8855 int res1 = 0 ;
8856 void *argp2 = 0 ;
8857 int res2 = 0 ;
8858 int val3 ;
8859 int ecode3 = 0 ;
8860 int val4 ;
8861 int ecode4 = 0 ;
8862 PyObject * obj0 = 0 ;
8863 PyObject * obj1 = 0 ;
8864 PyObject * obj2 = 0 ;
8865 PyObject * obj3 = 0 ;
8866 char * kwnames[] = {
8867 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8868 };
8869
8870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8872 if (!SWIG_IsOK(res1)) {
8873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8874 }
8875 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8877 if (!SWIG_IsOK(res2)) {
8878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8879 }
8880 if (!argp2) {
8881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8882 }
8883 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8884 ecode3 = SWIG_AsVal_int(obj2, &val3);
8885 if (!SWIG_IsOK(ecode3)) {
8886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8887 }
8888 arg3 = static_cast< int >(val3);
8889 ecode4 = SWIG_AsVal_int(obj3, &val4);
8890 if (!SWIG_IsOK(ecode4)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8892 }
8893 arg4 = static_cast< int >(val4);
8894 {
8895 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 resultobj = SWIG_Py_Void();
8899 return resultobj;
8900fail:
8901 return NULL;
8902}
8903
8904
8905SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8906 PyObject *resultobj = 0;
8907 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8908 wxAlphaPixelData *arg2 = 0 ;
8909 int arg3 ;
8910 void *argp1 = 0 ;
8911 int res1 = 0 ;
8912 void *argp2 = 0 ;
8913 int res2 = 0 ;
8914 int val3 ;
8915 int ecode3 = 0 ;
8916 PyObject * obj0 = 0 ;
8917 PyObject * obj1 = 0 ;
8918 PyObject * obj2 = 0 ;
8919 char * kwnames[] = {
8920 (char *) "self",(char *) "data",(char *) "x", NULL
8921 };
8922
8923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8925 if (!SWIG_IsOK(res1)) {
8926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8927 }
8928 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8930 if (!SWIG_IsOK(res2)) {
8931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8932 }
8933 if (!argp2) {
8934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8935 }
8936 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8937 ecode3 = SWIG_AsVal_int(obj2, &val3);
8938 if (!SWIG_IsOK(ecode3)) {
8939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8940 }
8941 arg3 = static_cast< int >(val3);
8942 {
8943 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 resultobj = SWIG_Py_Void();
8947 return resultobj;
8948fail:
8949 return NULL;
8950}
8951
8952
8953SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8954 PyObject *resultobj = 0;
8955 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8956 wxAlphaPixelData *arg2 = 0 ;
8957 int arg3 ;
8958 void *argp1 = 0 ;
8959 int res1 = 0 ;
8960 void *argp2 = 0 ;
8961 int res2 = 0 ;
8962 int val3 ;
8963 int ecode3 = 0 ;
8964 PyObject * obj0 = 0 ;
8965 PyObject * obj1 = 0 ;
8966 PyObject * obj2 = 0 ;
8967 char * kwnames[] = {
8968 (char *) "self",(char *) "data",(char *) "y", NULL
8969 };
8970
8971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8973 if (!SWIG_IsOK(res1)) {
8974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8975 }
8976 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8978 if (!SWIG_IsOK(res2)) {
8979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8980 }
8981 if (!argp2) {
8982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8983 }
8984 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8985 ecode3 = SWIG_AsVal_int(obj2, &val3);
8986 if (!SWIG_IsOK(ecode3)) {
8987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8988 }
8989 arg3 = static_cast< int >(val3);
8990 {
8991 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 resultobj = SWIG_Py_Void();
8995 return resultobj;
8996fail:
8997 return NULL;
8998}
8999
9000
9001SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj = 0;
9003 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9004 wxAlphaPixelData *arg2 = 0 ;
9005 int arg3 ;
9006 int arg4 ;
9007 void *argp1 = 0 ;
9008 int res1 = 0 ;
9009 void *argp2 = 0 ;
9010 int res2 = 0 ;
9011 int val3 ;
9012 int ecode3 = 0 ;
9013 int val4 ;
9014 int ecode4 = 0 ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 PyObject * obj2 = 0 ;
9018 PyObject * obj3 = 0 ;
9019 char * kwnames[] = {
9020 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
9021 };
9022
9023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9025 if (!SWIG_IsOK(res1)) {
9026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9027 }
9028 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9030 if (!SWIG_IsOK(res2)) {
9031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9032 }
9033 if (!argp2) {
9034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9035 }
9036 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9037 ecode3 = SWIG_AsVal_int(obj2, &val3);
9038 if (!SWIG_IsOK(ecode3)) {
9039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9040 }
9041 arg3 = static_cast< int >(val3);
9042 ecode4 = SWIG_AsVal_int(obj3, &val4);
9043 if (!SWIG_IsOK(ecode4)) {
9044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9045 }
9046 arg4 = static_cast< int >(val4);
9047 {
9048 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 }
9051 resultobj = SWIG_Py_Void();
9052 return resultobj;
9053fail:
9054 return NULL;
9055}
9056
9057
9058SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9059 PyObject *resultobj = 0;
9060 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9061 byte arg2 ;
9062 byte arg3 ;
9063 byte arg4 ;
9064 byte arg5 ;
9065 void *argp1 = 0 ;
9066 int res1 = 0 ;
9067 unsigned char val2 ;
9068 int ecode2 = 0 ;
9069 unsigned char val3 ;
9070 int ecode3 = 0 ;
9071 unsigned char val4 ;
9072 int ecode4 = 0 ;
9073 unsigned char val5 ;
9074 int ecode5 = 0 ;
9075 PyObject * obj0 = 0 ;
9076 PyObject * obj1 = 0 ;
9077 PyObject * obj2 = 0 ;
9078 PyObject * obj3 = 0 ;
9079 PyObject * obj4 = 0 ;
9080 char * kwnames[] = {
9081 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9082 };
9083
9084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9086 if (!SWIG_IsOK(res1)) {
9087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9088 }
9089 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9090 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9091 if (!SWIG_IsOK(ecode2)) {
9092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9093 }
9094 arg2 = static_cast< byte >(val2);
9095 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9096 if (!SWIG_IsOK(ecode3)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9098 }
9099 arg3 = static_cast< byte >(val3);
9100 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9101 if (!SWIG_IsOK(ecode4)) {
9102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9103 }
9104 arg4 = static_cast< byte >(val4);
9105 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9106 if (!SWIG_IsOK(ecode5)) {
9107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9108 }
9109 arg5 = static_cast< byte >(val5);
9110 {
9111 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9112 if (PyErr_Occurred()) SWIG_fail;
554f62e9 9113 }
fc46b7f3 9114 resultobj = SWIG_Py_Void();
554f62e9
RD
9115 return resultobj;
9116fail:
9117 return NULL;
9118}
9119
9120
fc46b7f3 9121SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9122 PyObject *resultobj = 0;
fc46b7f3
RD
9123 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9124 PyObject *result = 0 ;
554f62e9
RD
9125 void *argp1 = 0 ;
9126 int res1 = 0 ;
fc46b7f3 9127 PyObject *swig_obj[1] ;
554f62e9 9128
fc46b7f3
RD
9129 if (!args) SWIG_fail;
9130 swig_obj[0] = args;
9131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 9132 if (!SWIG_IsOK(res1)) {
fc46b7f3 9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 9134 }
fc46b7f3 9135 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 9136 {
fc46b7f3 9137 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
fc46b7f3 9140 resultobj = result;
554f62e9
RD
9141 return resultobj;
9142fail:
9143 return NULL;
d55e5bfc
RD
9144}
9145
9146
fc46b7f3 9147SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9148 PyObject *obj;
9149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 9150 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 9151 return SWIG_Py_Void();
d55e5bfc
RD
9152}
9153
fc46b7f3 9154SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9155 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
9156}
9157
554f62e9
RD
9158SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9159 PyObject *resultobj = 0;
9160 wxBitmap *arg1 = 0 ;
9161 wxColour const &arg2_defvalue = wxNullColour ;
9162 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9163 wxMask *result = 0 ;
9164 void *argp1 = 0 ;
9165 int res1 = 0 ;
9166 wxColour temp2 ;
9167 PyObject * obj0 = 0 ;
9168 PyObject * obj1 = 0 ;
9169 char * kwnames[] = {
9170 (char *) "bitmap",(char *) "colour", NULL
9171 };
9172
9173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9174 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9175 if (!SWIG_IsOK(res1)) {
9176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9177 }
9178 if (!argp1) {
9179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9180 }
9181 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9182 if (obj1) {
d55e5bfc 9183 {
554f62e9
RD
9184 arg2 = &temp2;
9185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9186 }
554f62e9
RD
9187 }
9188 {
9189 if (!wxPyCheckForApp()) SWIG_fail;
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9196 return resultobj;
9197fail:
9198 return NULL;
d55e5bfc
RD
9199}
9200
9201
554f62e9
RD
9202SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9203 PyObject *resultobj = 0;
9204 wxMask *arg1 = (wxMask *) 0 ;
9205 void *argp1 = 0 ;
9206 int res1 = 0 ;
9207 PyObject *swig_obj[1] ;
9208
9209 if (!args) SWIG_fail;
9210 swig_obj[0] = args;
9211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9212 if (!SWIG_IsOK(res1)) {
9213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9214 }
9215 arg1 = reinterpret_cast< wxMask * >(argp1);
9216 {
554f62e9 9217 delete arg1;
d55e5bfc 9218
554f62e9
RD
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_Py_Void();
9222 return resultobj;
9223fail:
9224 return NULL;
9225}
9226
9227
9228SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9229 PyObject *obj;
9230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9231 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9232 return SWIG_Py_Void();
9233}
9234
9235SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9236 return SWIG_Python_InitShadowInstance(args);
9237}
9238
9239SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj = 0;
9241 wxString *arg1 = 0 ;
9242 wxBitmapType arg2 ;
9243 int arg3 = (int) -1 ;
9244 int arg4 = (int) -1 ;
9245 wxIcon *result = 0 ;
9246 bool temp1 = false ;
9247 int val2 ;
9248 int ecode2 = 0 ;
9249 int val3 ;
9250 int ecode3 = 0 ;
9251 int val4 ;
9252 int ecode4 = 0 ;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 PyObject * obj2 = 0 ;
9256 PyObject * obj3 = 0 ;
9257 char * kwnames[] = {
9258 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9259 };
9260
9261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9262 {
9263 arg1 = wxString_in_helper(obj0);
9264 if (arg1 == NULL) SWIG_fail;
9265 temp1 = true;
9266 }
9267 ecode2 = SWIG_AsVal_int(obj1, &val2);
9268 if (!SWIG_IsOK(ecode2)) {
9269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9270 }
9271 arg2 = static_cast< wxBitmapType >(val2);
9272 if (obj2) {
9273 ecode3 = SWIG_AsVal_int(obj2, &val3);
9274 if (!SWIG_IsOK(ecode3)) {
9275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9276 }
9277 arg3 = static_cast< int >(val3);
9278 }
9279 if (obj3) {
9280 ecode4 = SWIG_AsVal_int(obj3, &val4);
9281 if (!SWIG_IsOK(ecode4)) {
9282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9283 }
9284 arg4 = static_cast< int >(val4);
9285 }
9286 {
9287 if (!wxPyCheckForApp()) SWIG_fail;
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9294 {
9295 if (temp1)
9296 delete arg1;
9297 }
9298 return resultobj;
9299fail:
9300 {
9301 if (temp1)
9302 delete arg1;
9303 }
9304 return NULL;
d55e5bfc
RD
9305}
9306
9307
554f62e9
RD
9308SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9309 PyObject *resultobj = 0;
9310 wxIcon *arg1 = (wxIcon *) 0 ;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 PyObject *swig_obj[1] ;
9314
9315 if (!args) SWIG_fail;
9316 swig_obj[0] = args;
9317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9318 if (!SWIG_IsOK(res1)) {
9319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9320 }
9321 arg1 = reinterpret_cast< wxIcon * >(argp1);
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 delete arg1;
d55e5bfc 9325
554f62e9
RD
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 resultobj = SWIG_Py_Void();
9330 return resultobj;
9331fail:
9332 return NULL;
d55e5bfc
RD
9333}
9334
9335
554f62e9
RD
9336SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9337 PyObject *resultobj = 0;
9338 wxIcon *result = 0 ;
9339
9340 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9341 {
9342 if (!wxPyCheckForApp()) SWIG_fail;
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = (wxIcon *)new wxIcon();
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9349 return resultobj;
9350fail:
9351 return NULL;
9352}
9353
9354
9355SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj = 0;
9357 wxIconLocation *arg1 = 0 ;
9358 wxIcon *result = 0 ;
9359 void *argp1 = 0 ;
9360 int res1 = 0 ;
9361 PyObject * obj0 = 0 ;
9362 char * kwnames[] = {
9363 (char *) "loc", NULL
9364 };
9365
9366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9367 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9368 if (!SWIG_IsOK(res1)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9370 }
9371 if (!argp1) {
9372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9373 }
9374 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9375 {
9376 if (!wxPyCheckForApp()) SWIG_fail;
9377 PyThreadState* __tstate = wxPyBeginAllowThreads();
9378 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
9382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9383 return resultobj;
9384fail:
9385 return NULL;
9386}
9387
9388
9389SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj = 0;
9391 wxBitmap *arg1 = 0 ;
9392 wxIcon *result = 0 ;
9393 void *argp1 = 0 ;
9394 int res1 = 0 ;
9395 PyObject * obj0 = 0 ;
9396 char * kwnames[] = {
9397 (char *) "bmp", NULL
9398 };
9399
9400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9401 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9402 if (!SWIG_IsOK(res1)) {
9403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9404 }
9405 if (!argp1) {
9406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9407 }
9408 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9409 {
9410 if (!wxPyCheckForApp()) SWIG_fail;
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9417 return resultobj;
9418fail:
9419 return NULL;
d55e5bfc
RD
9420}
9421
9422
554f62e9
RD
9423SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj = 0;
9425 PyObject *arg1 = (PyObject *) 0 ;
9426 wxIcon *result = 0 ;
9427 PyObject * obj0 = 0 ;
9428 char * kwnames[] = {
9429 (char *) "listOfStrings", NULL
9430 };
9431
9432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9433 arg1 = obj0;
9434 {
9435 if (!wxPyCheckForApp()) SWIG_fail;
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 result = (wxIcon *)new_wxIcon(arg1);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9442 return resultobj;
9443fail:
9444 return NULL;
9445}
9446
9447
9448SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj = 0;
9450 wxIcon *arg1 = (wxIcon *) 0 ;
9451 wxString *arg2 = 0 ;
9452 wxBitmapType arg3 ;
9453 bool result;
9454 void *argp1 = 0 ;
9455 int res1 = 0 ;
9456 bool temp2 = false ;
9457 int val3 ;
9458 int ecode3 = 0 ;
9459 PyObject * obj0 = 0 ;
9460 PyObject * obj1 = 0 ;
9461 PyObject * obj2 = 0 ;
9462 char * kwnames[] = {
9463 (char *) "self",(char *) "name",(char *) "type", NULL
9464 };
9465
9466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9470 }
9471 arg1 = reinterpret_cast< wxIcon * >(argp1);
9472 {
9473 arg2 = wxString_in_helper(obj1);
9474 if (arg2 == NULL) SWIG_fail;
9475 temp2 = true;
9476 }
9477 ecode3 = SWIG_AsVal_int(obj2, &val3);
9478 if (!SWIG_IsOK(ecode3)) {
9479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9480 }
9481 arg3 = static_cast< wxBitmapType >(val3);
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 {
9489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9490 }
9491 {
9492 if (temp2)
9493 delete arg2;
9494 }
9495 return resultobj;
9496fail:
9497 {
9498 if (temp2)
9499 delete arg2;
9500 }
9501 return NULL;
d55e5bfc
RD
9502}
9503
9504
554f62e9
RD
9505SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9506 PyObject *resultobj = 0;
9507 wxIcon *arg1 = (wxIcon *) 0 ;
9508 long result;
9509 void *argp1 = 0 ;
9510 int res1 = 0 ;
9511 PyObject *swig_obj[1] ;
9512
9513 if (!args) SWIG_fail;
9514 swig_obj[0] = args;
9515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9518 }
9519 arg1 = reinterpret_cast< wxIcon * >(argp1);
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (long)(arg1)->GetHandle();
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_From_long(static_cast< long >(result));
9527 return resultobj;
9528fail:
9529 return NULL;
9530}
9531
9532
9533SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj = 0;
9535 wxIcon *arg1 = (wxIcon *) 0 ;
9536 long arg2 ;
9537 void *argp1 = 0 ;
9538 int res1 = 0 ;
9539 long val2 ;
9540 int ecode2 = 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 char * kwnames[] = {
9544 (char *) "self",(char *) "handle", NULL
9545 };
9546
9547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9549 if (!SWIG_IsOK(res1)) {
9550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9551 }
9552 arg1 = reinterpret_cast< wxIcon * >(argp1);
9553 ecode2 = SWIG_AsVal_long(obj1, &val2);
9554 if (!SWIG_IsOK(ecode2)) {
9555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9556 }
9557 arg2 = static_cast< long >(val2);
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 wxIcon_SetHandle(arg1,arg2);
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_Py_Void();
9565 return resultobj;
9566fail:
9567 return NULL;
d55e5bfc
RD
9568}
9569
9570
b39fe951 9571SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9572 PyObject *resultobj = 0;
9573 wxIcon *arg1 = (wxIcon *) 0 ;
9574 bool result;
9575 void *argp1 = 0 ;
9576 int res1 = 0 ;
9577 PyObject *swig_obj[1] ;
9578
9579 if (!args) SWIG_fail;
9580 swig_obj[0] = args;
9581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9582 if (!SWIG_IsOK(res1)) {
b39fe951 9583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9584 }
9585 arg1 = reinterpret_cast< wxIcon * >(argp1);
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9588 result = (bool)(arg1)->IsOk();
554f62e9
RD
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 {
9593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9594 }
9595 return resultobj;
9596fail:
9597 return NULL;
d55e5bfc
RD
9598}
9599
9600
554f62e9
RD
9601SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9602 PyObject *resultobj = 0;
9603 wxIcon *arg1 = (wxIcon *) 0 ;
9604 int result;
9605 void *argp1 = 0 ;
9606 int res1 = 0 ;
9607 PyObject *swig_obj[1] ;
9608
9609 if (!args) SWIG_fail;
9610 swig_obj[0] = args;
9611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9612 if (!SWIG_IsOK(res1)) {
9613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9614 }
9615 arg1 = reinterpret_cast< wxIcon * >(argp1);
9616 {
9617 PyThreadState* __tstate = wxPyBeginAllowThreads();
9618 result = (int)(arg1)->GetWidth();
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 resultobj = SWIG_From_int(static_cast< int >(result));
9623 return resultobj;
9624fail:
9625 return NULL;
c1cb24a4
RD
9626}
9627
9628
554f62e9
RD
9629SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9630 PyObject *resultobj = 0;
9631 wxIcon *arg1 = (wxIcon *) 0 ;
9632 int result;
9633 void *argp1 = 0 ;
9634 int res1 = 0 ;
9635 PyObject *swig_obj[1] ;
9636
9637 if (!args) SWIG_fail;
9638 swig_obj[0] = args;
9639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9640 if (!SWIG_IsOK(res1)) {
9641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9642 }
9643 arg1 = reinterpret_cast< wxIcon * >(argp1);
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 result = (int)(arg1)->GetHeight();
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_From_int(static_cast< int >(result));
9651 return resultobj;
9652fail:
9653 return NULL;
c1cb24a4
RD
9654}
9655
9656
554f62e9
RD
9657SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9658 PyObject *resultobj = 0;
9659 wxIcon *arg1 = (wxIcon *) 0 ;
9660 int result;
9661 void *argp1 = 0 ;
9662 int res1 = 0 ;
9663 PyObject *swig_obj[1] ;
9664
9665 if (!args) SWIG_fail;
9666 swig_obj[0] = args;
9667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9668 if (!SWIG_IsOK(res1)) {
9669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9670 }
9671 arg1 = reinterpret_cast< wxIcon * >(argp1);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 result = (int)(arg1)->GetDepth();
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_From_int(static_cast< int >(result));
9679 return resultobj;
9680fail:
9681 return NULL;
9682}
9683
9684
9685SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxIcon *arg1 = (wxIcon *) 0 ;
9688 int arg2 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 int val2 ;
9692 int ecode2 = 0 ;
9693 PyObject * obj0 = 0 ;
9694 PyObject * obj1 = 0 ;
9695 char * kwnames[] = {
9696 (char *) "self",(char *) "w", NULL
9697 };
9698
9699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9701 if (!SWIG_IsOK(res1)) {
9702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9703 }
9704 arg1 = reinterpret_cast< wxIcon * >(argp1);
9705 ecode2 = SWIG_AsVal_int(obj1, &val2);
9706 if (!SWIG_IsOK(ecode2)) {
9707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9708 }
9709 arg2 = static_cast< int >(val2);
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 (arg1)->SetWidth(arg2);
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 resultobj = SWIG_Py_Void();
9717 return resultobj;
9718fail:
9719 return NULL;
9720}
9721
9722
9723SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9724 PyObject *resultobj = 0;
9725 wxIcon *arg1 = (wxIcon *) 0 ;
9726 int arg2 ;
9727 void *argp1 = 0 ;
9728 int res1 = 0 ;
9729 int val2 ;
9730 int ecode2 = 0 ;
9731 PyObject * obj0 = 0 ;
9732 PyObject * obj1 = 0 ;
9733 char * kwnames[] = {
9734 (char *) "self",(char *) "h", NULL
9735 };
9736
9737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9739 if (!SWIG_IsOK(res1)) {
9740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9741 }
9742 arg1 = reinterpret_cast< wxIcon * >(argp1);
9743 ecode2 = SWIG_AsVal_int(obj1, &val2);
9744 if (!SWIG_IsOK(ecode2)) {
9745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9746 }
9747 arg2 = static_cast< int >(val2);
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 (arg1)->SetHeight(arg2);
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 resultobj = SWIG_Py_Void();
9755 return resultobj;
9756fail:
9757 return NULL;
9758}
9759
9760
9761SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj = 0;
9763 wxIcon *arg1 = (wxIcon *) 0 ;
9764 int arg2 ;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 int val2 ;
9768 int ecode2 = 0 ;
9769 PyObject * obj0 = 0 ;
9770 PyObject * obj1 = 0 ;
9771 char * kwnames[] = {
9772 (char *) "self",(char *) "d", NULL
9773 };
9774
9775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9777 if (!SWIG_IsOK(res1)) {
9778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9779 }
9780 arg1 = reinterpret_cast< wxIcon * >(argp1);
9781 ecode2 = SWIG_AsVal_int(obj1, &val2);
9782 if (!SWIG_IsOK(ecode2)) {
9783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9784 }
9785 arg2 = static_cast< int >(val2);
9786 {
9787 PyThreadState* __tstate = wxPyBeginAllowThreads();
9788 (arg1)->SetDepth(arg2);
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 resultobj = SWIG_Py_Void();
9793 return resultobj;
9794fail:
9795 return NULL;
9796}
9797
9798
9799SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9800 PyObject *resultobj = 0;
9801 wxIcon *arg1 = (wxIcon *) 0 ;
9802 wxSize *arg2 = 0 ;
9803 void *argp1 = 0 ;
9804 int res1 = 0 ;
9805 wxSize temp2 ;
9806 PyObject * obj0 = 0 ;
9807 PyObject * obj1 = 0 ;
9808 char * kwnames[] = {
9809 (char *) "self",(char *) "size", NULL
9810 };
9811
9812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9816 }
9817 arg1 = reinterpret_cast< wxIcon * >(argp1);
9818 {
9819 arg2 = &temp2;
9820 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9821 }
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 (arg1)->SetSize((wxSize const &)*arg2);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830fail:
9831 return NULL;
9832}
9833
9834
9835SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxIcon *arg1 = (wxIcon *) 0 ;
9838 wxBitmap *arg2 = 0 ;
9839 void *argp1 = 0 ;
9840 int res1 = 0 ;
9841 void *argp2 = 0 ;
9842 int res2 = 0 ;
9843 PyObject * obj0 = 0 ;
9844 PyObject * obj1 = 0 ;
9845 char * kwnames[] = {
9846 (char *) "self",(char *) "bmp", NULL
9847 };
9848
9849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9851 if (!SWIG_IsOK(res1)) {
9852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9853 }
9854 arg1 = reinterpret_cast< wxIcon * >(argp1);
9855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9856 if (!SWIG_IsOK(res2)) {
9857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9858 }
9859 if (!argp2) {
9860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9861 }
9862 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_Py_Void();
9870 return resultobj;
9871fail:
9872 return NULL;
d55e5bfc
RD
9873}
9874
9875
554f62e9
RD
9876SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9877 PyObject *obj;
9878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9879 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9880 return SWIG_Py_Void();
d55e5bfc
RD
9881}
9882
554f62e9
RD
9883SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9884 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9885}
9886
554f62e9
RD
9887SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9890 int arg2 = (int) 0 ;
9891 wxIconLocation *result = 0 ;
9892 bool temp1 = false ;
9893 int val2 ;
9894 int ecode2 = 0 ;
9895 PyObject * obj0 = 0 ;
9896 PyObject * obj1 = 0 ;
9897 char * kwnames[] = {
9898 (char *) "filename",(char *) "num", NULL
9899 };
9900
9901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9902 if (obj0) {
d55e5bfc 9903 {
554f62e9
RD
9904 arg1 = wxString_in_helper(obj0);
9905 if (arg1 == NULL) SWIG_fail;
9906 temp1 = true;
d55e5bfc 9907 }
554f62e9
RD
9908 }
9909 if (obj1) {
9910 ecode2 = SWIG_AsVal_int(obj1, &val2);
9911 if (!SWIG_IsOK(ecode2)) {
9912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9913 }
9914 arg2 = static_cast< int >(val2);
9915 }
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9919 wxPyEndAllowThreads(__tstate);
9920 if (PyErr_Occurred()) SWIG_fail;
9921 }
9922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9923 {
9924 if (temp1)
9925 delete arg1;
9926 }
9927 return resultobj;
9928fail:
9929 {
9930 if (temp1)
9931 delete arg1;
9932 }
9933 return NULL;
d55e5bfc
RD
9934}
9935
9936
554f62e9
RD
9937SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9938 PyObject *resultobj = 0;
9939 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 PyObject *swig_obj[1] ;
9943
9944 if (!args) SWIG_fail;
9945 swig_obj[0] = args;
9946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9947 if (!SWIG_IsOK(res1)) {
9948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9949 }
9950 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 delete arg1;
d55e5bfc 9954
554f62e9
RD
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 resultobj = SWIG_Py_Void();
9959 return resultobj;
9960fail:
9961 return NULL;
d55e5bfc
RD
9962}
9963
9964
554f62e9
RD
9965SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9966 PyObject *resultobj = 0;
9967 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9968 bool result;
9969 void *argp1 = 0 ;
9970 int res1 = 0 ;
9971 PyObject *swig_obj[1] ;
9972
9973 if (!args) SWIG_fail;
9974 swig_obj[0] = args;
9975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9976 if (!SWIG_IsOK(res1)) {
9977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9978 }
9979 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9988 }
9989 return resultobj;
9990fail:
9991 return NULL;
9992}
9993
9994
9995SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9996 PyObject *resultobj = 0;
9997 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9998 wxString *arg2 = 0 ;
9999 void *argp1 = 0 ;
10000 int res1 = 0 ;
10001 bool temp2 = false ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 char * kwnames[] = {
10005 (char *) "self",(char *) "filename", NULL
10006 };
10007
10008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
10009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10010 if (!SWIG_IsOK(res1)) {
10011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10012 }
10013 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10014 {
10015 arg2 = wxString_in_helper(obj1);
10016 if (arg2 == NULL) SWIG_fail;
10017 temp2 = true;
10018 }
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 (arg1)->SetFileName((wxString const &)*arg2);
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 resultobj = SWIG_Py_Void();
10026 {
10027 if (temp2)
10028 delete arg2;
10029 }
10030 return resultobj;
10031fail:
10032 {
10033 if (temp2)
10034 delete arg2;
10035 }
10036 return NULL;
d55e5bfc
RD
10037}
10038
10039
554f62e9
RD
10040SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10041 PyObject *resultobj = 0;
10042 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10043 wxString *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 PyObject *swig_obj[1] ;
10047
10048 if (!args) SWIG_fail;
10049 swig_obj[0] = args;
10050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10051 if (!SWIG_IsOK(res1)) {
10052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10053 }
10054 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10057 {
554f62e9
RD
10058 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10059 result = (wxString *) &_result_ref;
093d3ff1 10060 }
554f62e9
RD
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 {
10065#if wxUSE_UNICODE
10066 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10067#else
10068 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10069#endif
10070 }
10071 return resultobj;
10072fail:
10073 return NULL;
10074}
10075
10076
10077SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10078 PyObject *resultobj = 0;
10079 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10080 int arg2 ;
10081 void *argp1 = 0 ;
10082 int res1 = 0 ;
10083 int val2 ;
10084 int ecode2 = 0 ;
10085 PyObject * obj0 = 0 ;
10086 PyObject * obj1 = 0 ;
10087 char * kwnames[] = {
10088 (char *) "self",(char *) "num", NULL
10089 };
10090
10091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10093 if (!SWIG_IsOK(res1)) {
10094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10095 }
10096 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10097 ecode2 = SWIG_AsVal_int(obj1, &val2);
10098 if (!SWIG_IsOK(ecode2)) {
10099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10100 }
10101 arg2 = static_cast< int >(val2);
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 wxIconLocation_SetIndex(arg1,arg2);
10105 wxPyEndAllowThreads(__tstate);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 resultobj = SWIG_Py_Void();
10109 return resultobj;
10110fail:
10111 return NULL;
d55e5bfc
RD
10112}
10113
10114
554f62e9
RD
10115SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10116 PyObject *resultobj = 0;
10117 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10118 int result;
10119 void *argp1 = 0 ;
10120 int res1 = 0 ;
10121 PyObject *swig_obj[1] ;
10122
10123 if (!args) SWIG_fail;
10124 swig_obj[0] = args;
10125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10126 if (!SWIG_IsOK(res1)) {
10127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10128 }
10129 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = (int)wxIconLocation_GetIndex(arg1);
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_From_int(static_cast< int >(result));
10137 return resultobj;
10138fail:
10139 return NULL;
d55e5bfc
RD
10140}
10141
10142
554f62e9
RD
10143SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10144 PyObject *obj;
10145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10146 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10147 return SWIG_Py_Void();
d55e5bfc
RD
10148}
10149
554f62e9
RD
10150SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10151 return SWIG_Python_InitShadowInstance(args);
10152}
d55e5bfc 10153
554f62e9
RD
10154SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *resultobj = 0;
10156 wxIconBundle *result = 0 ;
10157
10158 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 result = (wxIconBundle *)new wxIconBundle();
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10166 return resultobj;
10167fail:
10168 return NULL;
10169}
10170
10171
10172SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10173 PyObject *resultobj = 0;
10174 wxString *arg1 = 0 ;
10175 long arg2 ;
10176 wxIconBundle *result = 0 ;
10177 bool temp1 = false ;
10178 long val2 ;
10179 int ecode2 = 0 ;
10180 PyObject * obj0 = 0 ;
10181 PyObject * obj1 = 0 ;
10182 char * kwnames[] = {
10183 (char *) "file",(char *) "type", NULL
10184 };
10185
10186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10187 {
10188 arg1 = wxString_in_helper(obj0);
10189 if (arg1 == NULL) SWIG_fail;
10190 temp1 = true;
10191 }
10192 ecode2 = SWIG_AsVal_long(obj1, &val2);
10193 if (!SWIG_IsOK(ecode2)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10195 }
10196 arg2 = static_cast< long >(val2);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10204 {
10205 if (temp1)
10206 delete arg1;
10207 }
10208 return resultobj;
10209fail:
10210 {
10211 if (temp1)
10212 delete arg1;
10213 }
10214 return NULL;
d55e5bfc
RD
10215}
10216
10217
554f62e9
RD
10218SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10219 PyObject *resultobj = 0;
10220 wxIcon *arg1 = 0 ;
10221 wxIconBundle *result = 0 ;
10222 void *argp1 = 0 ;
10223 int res1 = 0 ;
10224 PyObject * obj0 = 0 ;
10225 char * kwnames[] = {
10226 (char *) "icon", NULL
10227 };
10228
10229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10230 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10231 if (!SWIG_IsOK(res1)) {
10232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10233 }
10234 if (!argp1) {
10235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10236 }
10237 arg1 = reinterpret_cast< wxIcon * >(argp1);
10238 {
10239 PyThreadState* __tstate = wxPyBeginAllowThreads();
10240 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10241 wxPyEndAllowThreads(__tstate);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 }
10244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10245 return resultobj;
10246fail:
10247 return NULL;
d55e5bfc
RD
10248}
10249
10250
554f62e9
RD
10251SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10252 PyObject *resultobj = 0;
10253 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10254 void *argp1 = 0 ;
10255 int res1 = 0 ;
10256 PyObject *swig_obj[1] ;
10257
10258 if (!args) SWIG_fail;
10259 swig_obj[0] = args;
10260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10261 if (!SWIG_IsOK(res1)) {
10262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10263 }
10264 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 delete arg1;
d55e5bfc 10268
554f62e9
RD
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_Py_Void();
10273 return resultobj;
10274fail:
10275 return NULL;
10276}
10277
10278
10279SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10282 wxIcon *arg2 = 0 ;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 void *argp2 = 0 ;
10286 int res2 = 0 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 char * kwnames[] = {
10290 (char *) "self",(char *) "icon", NULL
10291 };
10292
10293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10295 if (!SWIG_IsOK(res1)) {
10296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10297 }
10298 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10300 if (!SWIG_IsOK(res2)) {
10301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10302 }
10303 if (!argp2) {
10304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10305 }
10306 arg2 = reinterpret_cast< wxIcon * >(argp2);
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 (arg1)->AddIcon((wxIcon const &)*arg2);
10310 wxPyEndAllowThreads(__tstate);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 resultobj = SWIG_Py_Void();
10314 return resultobj;
10315fail:
10316 return NULL;
10317}
10318
10319
10320SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10323 wxString *arg2 = 0 ;
10324 long arg3 ;
10325 void *argp1 = 0 ;
10326 int res1 = 0 ;
10327 bool temp2 = false ;
10328 long val3 ;
10329 int ecode3 = 0 ;
10330 PyObject * obj0 = 0 ;
10331 PyObject * obj1 = 0 ;
10332 PyObject * obj2 = 0 ;
10333 char * kwnames[] = {
10334 (char *) "self",(char *) "file",(char *) "type", NULL
10335 };
10336
10337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10341 }
10342 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10343 {
10344 arg2 = wxString_in_helper(obj1);
10345 if (arg2 == NULL) SWIG_fail;
10346 temp2 = true;
10347 }
10348 ecode3 = SWIG_AsVal_long(obj2, &val3);
10349 if (!SWIG_IsOK(ecode3)) {
10350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10351 }
10352 arg3 = static_cast< long >(val3);
10353 {
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 resultobj = SWIG_Py_Void();
10360 {
10361 if (temp2)
10362 delete arg2;
10363 }
10364 return resultobj;
10365fail:
10366 {
10367 if (temp2)
10368 delete arg2;
10369 }
10370 return NULL;
10371}
10372
10373
10374SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10375 PyObject *resultobj = 0;
10376 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10377 wxSize *arg2 = 0 ;
10378 wxIcon *result = 0 ;
10379 void *argp1 = 0 ;
10380 int res1 = 0 ;
10381 wxSize temp2 ;
10382 PyObject * obj0 = 0 ;
10383 PyObject * obj1 = 0 ;
10384 char * kwnames[] = {
10385 (char *) "self",(char *) "size", NULL
10386 };
10387
10388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10392 }
10393 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10394 {
10395 arg2 = &temp2;
10396 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10397 }
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10400 {
554f62e9
RD
10401 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10402 result = (wxIcon *) &_result_ref;
d55e5bfc 10403 }
554f62e9
RD
10404 wxPyEndAllowThreads(__tstate);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 }
10407 {
10408 wxIcon* resultptr = new wxIcon(*result);
10409 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10410 }
10411 return resultobj;
10412fail:
10413 return NULL;
10414}
10415
10416
10417SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10418 PyObject *obj;
10419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10420 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10421 return SWIG_Py_Void();
10422}
10423
10424SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10425 return SWIG_Python_InitShadowInstance(args);
10426}
10427
10428SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj = 0;
10430 wxString *arg1 = 0 ;
10431 long arg2 ;
10432 int arg3 = (int) 0 ;
10433 int arg4 = (int) 0 ;
10434 wxCursor *result = 0 ;
10435 bool temp1 = false ;
10436 long val2 ;
10437 int ecode2 = 0 ;
10438 int val3 ;
10439 int ecode3 = 0 ;
10440 int val4 ;
10441 int ecode4 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 PyObject * obj3 = 0 ;
10446 char * kwnames[] = {
10447 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10448 };
10449
10450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10451 {
10452 arg1 = wxString_in_helper(obj0);
10453 if (arg1 == NULL) SWIG_fail;
10454 temp1 = true;
10455 }
10456 ecode2 = SWIG_AsVal_long(obj1, &val2);
10457 if (!SWIG_IsOK(ecode2)) {
10458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10459 }
10460 arg2 = static_cast< long >(val2);
10461 if (obj2) {
10462 ecode3 = SWIG_AsVal_int(obj2, &val3);
10463 if (!SWIG_IsOK(ecode3)) {
10464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10465 }
10466 arg3 = static_cast< int >(val3);
10467 }
10468 if (obj3) {
10469 ecode4 = SWIG_AsVal_int(obj3, &val4);
10470 if (!SWIG_IsOK(ecode4)) {
10471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10472 }
10473 arg4 = static_cast< int >(val4);
10474 }
10475 {
10476 if (!wxPyCheckForApp()) SWIG_fail;
10477 PyThreadState* __tstate = wxPyBeginAllowThreads();
10478 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10483 {
10484 if (temp1)
10485 delete arg1;
10486 }
10487 return resultobj;
10488fail:
10489 {
10490 if (temp1)
10491 delete arg1;
10492 }
10493 return NULL;
d55e5bfc
RD
10494}
10495
10496
554f62e9
RD
10497SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10498 PyObject *resultobj = 0;
10499 wxCursor *arg1 = (wxCursor *) 0 ;
10500 void *argp1 = 0 ;
10501 int res1 = 0 ;
10502 PyObject *swig_obj[1] ;
10503
10504 if (!args) SWIG_fail;
10505 swig_obj[0] = args;
10506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10507 if (!SWIG_IsOK(res1)) {
10508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10509 }
10510 arg1 = reinterpret_cast< wxCursor * >(argp1);
10511 {
10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
10513 delete arg1;
d55e5bfc 10514
554f62e9
RD
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_Py_Void();
10519 return resultobj;
10520fail:
10521 return NULL;
10522}
10523
10524
10525SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj = 0;
10527 int arg1 ;
10528 wxCursor *result = 0 ;
10529 int val1 ;
10530 int ecode1 = 0 ;
10531 PyObject * obj0 = 0 ;
10532 char * kwnames[] = {
10533 (char *) "id", NULL
10534 };
10535
10536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10537 ecode1 = SWIG_AsVal_int(obj0, &val1);
10538 if (!SWIG_IsOK(ecode1)) {
10539 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10540 }
10541 arg1 = static_cast< int >(val1);
10542 {
10543 if (!wxPyCheckForApp()) SWIG_fail;
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 result = (wxCursor *)new wxCursor(arg1);
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10550 return resultobj;
10551fail:
10552 return NULL;
10553}
10554
10555
10556SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10557 PyObject *resultobj = 0;
10558 wxImage *arg1 = 0 ;
10559 wxCursor *result = 0 ;
10560 void *argp1 = 0 ;
10561 int res1 = 0 ;
10562 PyObject * obj0 = 0 ;
10563 char * kwnames[] = {
10564 (char *) "image", NULL
10565 };
10566
10567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10568 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10569 if (!SWIG_IsOK(res1)) {
10570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10571 }
10572 if (!argp1) {
10573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10574 }
10575 arg1 = reinterpret_cast< wxImage * >(argp1);
10576 {
10577 if (!wxPyCheckForApp()) SWIG_fail;
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10584 return resultobj;
10585fail:
10586 return NULL;
d55e5bfc
RD
10587}
10588
10589
554f62e9
RD
10590SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10591 PyObject *resultobj = 0;
10592 wxCursor *arg1 = (wxCursor *) 0 ;
10593 long result;
10594 void *argp1 = 0 ;
10595 int res1 = 0 ;
10596 PyObject *swig_obj[1] ;
10597
10598 if (!args) SWIG_fail;
10599 swig_obj[0] = args;
10600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10601 if (!SWIG_IsOK(res1)) {
10602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10603 }
10604 arg1 = reinterpret_cast< wxCursor * >(argp1);
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (long)(arg1)->GetHandle();
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_From_long(static_cast< long >(result));
10612 return resultobj;
10613fail:
10614 return NULL;
10615}
10616
10617
10618SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxCursor *arg1 = (wxCursor *) 0 ;
10621 long arg2 ;
10622 void *argp1 = 0 ;
10623 int res1 = 0 ;
10624 long val2 ;
10625 int ecode2 = 0 ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 char * kwnames[] = {
10629 (char *) "self",(char *) "handle", NULL
10630 };
10631
10632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10636 }
10637 arg1 = reinterpret_cast< wxCursor * >(argp1);
10638 ecode2 = SWIG_AsVal_long(obj1, &val2);
10639 if (!SWIG_IsOK(ecode2)) {
10640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10641 }
10642 arg2 = static_cast< long >(val2);
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 wxCursor_SetHandle(arg1,arg2);
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 resultobj = SWIG_Py_Void();
10650 return resultobj;
10651fail:
10652 return NULL;
d55e5bfc
RD
10653}
10654
10655
b39fe951 10656SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10657 PyObject *resultobj = 0;
10658 wxCursor *arg1 = (wxCursor *) 0 ;
10659 bool result;
10660 void *argp1 = 0 ;
10661 int res1 = 0 ;
10662 PyObject *swig_obj[1] ;
10663
10664 if (!args) SWIG_fail;
10665 swig_obj[0] = args;
10666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10667 if (!SWIG_IsOK(res1)) {
b39fe951 10668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10669 }
10670 arg1 = reinterpret_cast< wxCursor * >(argp1);
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10673 result = (bool)(arg1)->IsOk();
554f62e9
RD
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 {
10678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10679 }
10680 return resultobj;
10681fail:
10682 return NULL;
d55e5bfc
RD
10683}
10684
10685
554f62e9
RD
10686SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10687 PyObject *resultobj = 0;
10688 wxCursor *arg1 = (wxCursor *) 0 ;
10689 int result;
10690 void *argp1 = 0 ;
10691 int res1 = 0 ;
10692 PyObject *swig_obj[1] ;
10693
10694 if (!args) SWIG_fail;
10695 swig_obj[0] = args;
10696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10697 if (!SWIG_IsOK(res1)) {
10698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10699 }
10700 arg1 = reinterpret_cast< wxCursor * >(argp1);
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (int)(arg1)->GetWidth();
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 resultobj = SWIG_From_int(static_cast< int >(result));
10708 return resultobj;
10709fail:
10710 return NULL;
d55e5bfc
RD
10711}
10712
10713
554f62e9
RD
10714SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10715 PyObject *resultobj = 0;
10716 wxCursor *arg1 = (wxCursor *) 0 ;
10717 int result;
10718 void *argp1 = 0 ;
10719 int res1 = 0 ;
10720 PyObject *swig_obj[1] ;
10721
10722 if (!args) SWIG_fail;
10723 swig_obj[0] = args;
10724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10725 if (!SWIG_IsOK(res1)) {
10726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10727 }
10728 arg1 = reinterpret_cast< wxCursor * >(argp1);
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 result = (int)(arg1)->GetHeight();
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 resultobj = SWIG_From_int(static_cast< int >(result));
10736 return resultobj;
10737fail:
10738 return NULL;
d55e5bfc
RD
10739}
10740
10741
554f62e9
RD
10742SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10743 PyObject *resultobj = 0;
10744 wxCursor *arg1 = (wxCursor *) 0 ;
10745 int result;
10746 void *argp1 = 0 ;
10747 int res1 = 0 ;
10748 PyObject *swig_obj[1] ;
10749
10750 if (!args) SWIG_fail;
10751 swig_obj[0] = args;
10752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10753 if (!SWIG_IsOK(res1)) {
10754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10755 }
10756 arg1 = reinterpret_cast< wxCursor * >(argp1);
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (int)(arg1)->GetDepth();
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 resultobj = SWIG_From_int(static_cast< int >(result));
10764 return resultobj;
10765fail:
10766 return NULL;
10767}
10768
10769
10770SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10771 PyObject *resultobj = 0;
10772 wxCursor *arg1 = (wxCursor *) 0 ;
10773 int arg2 ;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 int val2 ;
10777 int ecode2 = 0 ;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 char * kwnames[] = {
10781 (char *) "self",(char *) "w", NULL
10782 };
10783
10784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10786 if (!SWIG_IsOK(res1)) {
10787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10788 }
10789 arg1 = reinterpret_cast< wxCursor * >(argp1);
10790 ecode2 = SWIG_AsVal_int(obj1, &val2);
10791 if (!SWIG_IsOK(ecode2)) {
10792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10793 }
10794 arg2 = static_cast< int >(val2);
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetWidth(arg2);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 return resultobj;
10803fail:
10804 return NULL;
10805}
10806
10807
10808SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxCursor *arg1 = (wxCursor *) 0 ;
10811 int arg2 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char * kwnames[] = {
10819 (char *) "self",(char *) "h", NULL
10820 };
10821
10822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10826 }
10827 arg1 = reinterpret_cast< wxCursor * >(argp1);
10828 ecode2 = SWIG_AsVal_int(obj1, &val2);
10829 if (!SWIG_IsOK(ecode2)) {
10830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10831 }
10832 arg2 = static_cast< int >(val2);
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->SetHeight(arg2);
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 resultobj = SWIG_Py_Void();
10840 return resultobj;
10841fail:
10842 return NULL;
10843}
10844
10845
10846SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj = 0;
10848 wxCursor *arg1 = (wxCursor *) 0 ;
10849 int arg2 ;
10850 void *argp1 = 0 ;
10851 int res1 = 0 ;
10852 int val2 ;
10853 int ecode2 = 0 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 char * kwnames[] = {
10857 (char *) "self",(char *) "d", NULL
10858 };
10859
10860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10864 }
10865 arg1 = reinterpret_cast< wxCursor * >(argp1);
10866 ecode2 = SWIG_AsVal_int(obj1, &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10869 }
10870 arg2 = static_cast< int >(val2);
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 (arg1)->SetDepth(arg2);
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 resultobj = SWIG_Py_Void();
10878 return resultobj;
10879fail:
10880 return NULL;
10881}
10882
10883
10884SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10885 PyObject *resultobj = 0;
10886 wxCursor *arg1 = (wxCursor *) 0 ;
10887 wxSize *arg2 = 0 ;
10888 void *argp1 = 0 ;
10889 int res1 = 0 ;
10890 wxSize temp2 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char * kwnames[] = {
10894 (char *) "self",(char *) "size", NULL
10895 };
10896
10897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10901 }
10902 arg1 = reinterpret_cast< wxCursor * >(argp1);
10903 {
10904 arg2 = &temp2;
10905 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 (arg1)->SetSize((wxSize const &)*arg2);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 resultobj = SWIG_Py_Void();
10914 return resultobj;
10915fail:
10916 return NULL;
10917}
10918
10919
10920SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10921 PyObject *obj;
10922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10923 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10924 return SWIG_Py_Void();
10925}
10926
10927SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10928 return SWIG_Python_InitShadowInstance(args);
10929}
10930
10931SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj = 0;
10933 int arg1 = (int) 0 ;
10934 int arg2 = (int) 0 ;
10935 int arg3 = (int) 0 ;
10936 int arg4 = (int) 0 ;
10937 wxRegion *result = 0 ;
10938 int val1 ;
10939 int ecode1 = 0 ;
10940 int val2 ;
10941 int ecode2 = 0 ;
10942 int val3 ;
10943 int ecode3 = 0 ;
10944 int val4 ;
10945 int ecode4 = 0 ;
10946 PyObject * obj0 = 0 ;
10947 PyObject * obj1 = 0 ;
10948 PyObject * obj2 = 0 ;
10949 PyObject * obj3 = 0 ;
10950 char * kwnames[] = {
10951 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10952 };
10953
10954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10955 if (obj0) {
10956 ecode1 = SWIG_AsVal_int(obj0, &val1);
10957 if (!SWIG_IsOK(ecode1)) {
10958 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10959 }
10960 arg1 = static_cast< int >(val1);
10961 }
10962 if (obj1) {
10963 ecode2 = SWIG_AsVal_int(obj1, &val2);
10964 if (!SWIG_IsOK(ecode2)) {
10965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10966 }
10967 arg2 = static_cast< int >(val2);
10968 }
10969 if (obj2) {
10970 ecode3 = SWIG_AsVal_int(obj2, &val3);
10971 if (!SWIG_IsOK(ecode3)) {
10972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10973 }
10974 arg3 = static_cast< int >(val3);
10975 }
10976 if (obj3) {
10977 ecode4 = SWIG_AsVal_int(obj3, &val4);
10978 if (!SWIG_IsOK(ecode4)) {
10979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10980 }
10981 arg4 = static_cast< int >(val4);
10982 }
10983 {
10984 if (!wxPyCheckForApp()) SWIG_fail;
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10991 return resultobj;
10992fail:
10993 return NULL;
10994}
10995
10996
10997SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj = 0;
10999 wxBitmap *arg1 = 0 ;
11000 wxRegion *result = 0 ;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 PyObject * obj0 = 0 ;
11004 char * kwnames[] = {
11005 (char *) "bmp", NULL
11006 };
11007
11008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11012 }
11013 if (!argp1) {
11014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11015 }
11016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11017 {
11018 if (!wxPyCheckForApp()) SWIG_fail;
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11025 return resultobj;
11026fail:
11027 return NULL;
11028}
11029
11030
11031SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj = 0;
11033 wxBitmap *arg1 = 0 ;
11034 wxColour *arg2 = 0 ;
11035 int arg3 = (int) 0 ;
11036 wxRegion *result = 0 ;
11037 void *argp1 = 0 ;
11038 int res1 = 0 ;
11039 wxColour temp2 ;
11040 int val3 ;
11041 int ecode3 = 0 ;
11042 PyObject * obj0 = 0 ;
11043 PyObject * obj1 = 0 ;
11044 PyObject * obj2 = 0 ;
11045 char * kwnames[] = {
11046 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11047 };
11048
11049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11050 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11053 }
11054 if (!argp1) {
11055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11056 }
11057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11058 {
11059 arg2 = &temp2;
11060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11061 }
11062 if (obj2) {
11063 ecode3 = SWIG_AsVal_int(obj2, &val3);
11064 if (!SWIG_IsOK(ecode3)) {
11065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11066 }
11067 arg3 = static_cast< int >(val3);
11068 }
11069 {
11070 if (!wxPyCheckForApp()) SWIG_fail;
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11077 return resultobj;
11078fail:
11079 return NULL;
11080}
11081
11082
11083SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11084 PyObject *resultobj = 0;
11085 int arg1 ;
11086 wxPoint *arg2 = (wxPoint *) 0 ;
11087 int arg3 = (int) wxWINDING_RULE ;
11088 wxRegion *result = 0 ;
11089 int val3 ;
11090 int ecode3 = 0 ;
11091 PyObject * obj0 = 0 ;
11092 PyObject * obj1 = 0 ;
11093 char * kwnames[] = {
11094 (char *) "points",(char *) "fillStyle", NULL
11095 };
11096
11097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11098 {
11099 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11100 if (arg2 == NULL) SWIG_fail;
11101 }
11102 if (obj1) {
11103 ecode3 = SWIG_AsVal_int(obj1, &val3);
11104 if (!SWIG_IsOK(ecode3)) {
11105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11106 }
11107 arg3 = static_cast< int >(val3);
11108 }
11109 {
11110 if (!wxPyCheckForApp()) SWIG_fail;
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11117 {
11118 if (arg2) delete [] arg2;
11119 }
11120 return resultobj;
11121fail:
11122 {
11123 if (arg2) delete [] arg2;
11124 }
11125 return NULL;
d55e5bfc
RD
11126}
11127
11128
554f62e9
RD
11129SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11130 PyObject *resultobj = 0;
11131 wxRegion *arg1 = (wxRegion *) 0 ;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 PyObject *swig_obj[1] ;
11135
11136 if (!args) SWIG_fail;
11137 swig_obj[0] = args;
11138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11139 if (!SWIG_IsOK(res1)) {
11140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11141 }
11142 arg1 = reinterpret_cast< wxRegion * >(argp1);
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 delete arg1;
d55e5bfc 11146
554f62e9
RD
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 resultobj = SWIG_Py_Void();
11151 return resultobj;
11152fail:
11153 return NULL;
d55e5bfc
RD
11154}
11155
11156
554f62e9
RD
11157SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11158 PyObject *resultobj = 0;
11159 wxRegion *arg1 = (wxRegion *) 0 ;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 PyObject *swig_obj[1] ;
11163
11164 if (!args) SWIG_fail;
11165 swig_obj[0] = args;
11166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11169 }
11170 arg1 = reinterpret_cast< wxRegion * >(argp1);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 (arg1)->Clear();
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 resultobj = SWIG_Py_Void();
11178 return resultobj;
11179fail:
11180 return NULL;
11181}
11182
11183
11184SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj = 0;
11186 wxRegion *arg1 = (wxRegion *) 0 ;
11187 int arg2 ;
11188 int arg3 ;
11189 bool result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 int val2 ;
11193 int ecode2 = 0 ;
11194 int val3 ;
11195 int ecode3 = 0 ;
11196 PyObject * obj0 = 0 ;
11197 PyObject * obj1 = 0 ;
11198 PyObject * obj2 = 0 ;
11199 char * kwnames[] = {
11200 (char *) "self",(char *) "x",(char *) "y", NULL
11201 };
11202
11203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11205 if (!SWIG_IsOK(res1)) {
11206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11207 }
11208 arg1 = reinterpret_cast< wxRegion * >(argp1);
11209 ecode2 = SWIG_AsVal_int(obj1, &val2);
11210 if (!SWIG_IsOK(ecode2)) {
11211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11212 }
11213 arg2 = static_cast< int >(val2);
11214 ecode3 = SWIG_AsVal_int(obj2, &val3);
11215 if (!SWIG_IsOK(ecode3)) {
11216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11217 }
11218 arg3 = static_cast< int >(val3);
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 result = (bool)(arg1)->Offset(arg2,arg3);
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 {
11226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11227 }
11228 return resultobj;
11229fail:
11230 return NULL;
11231}
11232
11233
11234SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj = 0;
11236 wxRegion *arg1 = (wxRegion *) 0 ;
11237 int arg2 ;
11238 int arg3 ;
11239 wxRegionContain result;
11240 void *argp1 = 0 ;
11241 int res1 = 0 ;
11242 int val2 ;
11243 int ecode2 = 0 ;
11244 int val3 ;
11245 int ecode3 = 0 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 PyObject * obj2 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "x",(char *) "y", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 ecode2 = SWIG_AsVal_int(obj1, &val2);
11260 if (!SWIG_IsOK(ecode2)) {
11261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11262 }
11263 arg2 = static_cast< int >(val2);
11264 ecode3 = SWIG_AsVal_int(obj2, &val3);
11265 if (!SWIG_IsOK(ecode3)) {
11266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11267 }
11268 arg3 = static_cast< int >(val3);
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 resultobj = SWIG_From_int(static_cast< int >(result));
11276 return resultobj;
11277fail:
11278 return NULL;
11279}
11280
11281
11282SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj = 0;
11284 wxRegion *arg1 = (wxRegion *) 0 ;
11285 wxPoint *arg2 = 0 ;
11286 wxRegionContain result;
11287 void *argp1 = 0 ;
11288 int res1 = 0 ;
11289 wxPoint temp2 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "self",(char *) "pt", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11300 }
11301 arg1 = reinterpret_cast< wxRegion * >(argp1);
11302 {
11303 arg2 = &temp2;
11304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11305 }
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_From_int(static_cast< int >(result));
11313 return resultobj;
11314fail:
11315 return NULL;
11316}
11317
11318
11319SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj = 0;
11321 wxRegion *arg1 = (wxRegion *) 0 ;
11322 wxRect *arg2 = 0 ;
11323 wxRegionContain result;
11324 void *argp1 = 0 ;
11325 int res1 = 0 ;
11326 wxRect temp2 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 char * kwnames[] = {
11330 (char *) "self",(char *) "rect", NULL
11331 };
11332
11333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11335 if (!SWIG_IsOK(res1)) {
11336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11337 }
11338 arg1 = reinterpret_cast< wxRegion * >(argp1);
11339 {
11340 arg2 = &temp2;
11341 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11342 }
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 resultobj = SWIG_From_int(static_cast< int >(result));
11350 return resultobj;
11351fail:
11352 return NULL;
11353}
11354
11355
11356SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11357 PyObject *resultobj = 0;
11358 wxRegion *arg1 = (wxRegion *) 0 ;
11359 int arg2 ;
11360 int arg3 ;
11361 int arg4 ;
11362 int arg5 ;
11363 wxRegionContain result;
11364 void *argp1 = 0 ;
11365 int res1 = 0 ;
11366 int val2 ;
11367 int ecode2 = 0 ;
11368 int val3 ;
11369 int ecode3 = 0 ;
11370 int val4 ;
11371 int ecode4 = 0 ;
11372 int val5 ;
11373 int ecode5 = 0 ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 PyObject * obj2 = 0 ;
11377 PyObject * obj3 = 0 ;
11378 PyObject * obj4 = 0 ;
11379 char * kwnames[] = {
11380 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11381 };
11382
11383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11387 }
11388 arg1 = reinterpret_cast< wxRegion * >(argp1);
11389 ecode2 = SWIG_AsVal_int(obj1, &val2);
11390 if (!SWIG_IsOK(ecode2)) {
11391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11392 }
11393 arg2 = static_cast< int >(val2);
11394 ecode3 = SWIG_AsVal_int(obj2, &val3);
11395 if (!SWIG_IsOK(ecode3)) {
11396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11397 }
11398 arg3 = static_cast< int >(val3);
11399 ecode4 = SWIG_AsVal_int(obj3, &val4);
11400 if (!SWIG_IsOK(ecode4)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11402 }
11403 arg4 = static_cast< int >(val4);
11404 ecode5 = SWIG_AsVal_int(obj4, &val5);
11405 if (!SWIG_IsOK(ecode5)) {
11406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11407 }
11408 arg5 = static_cast< int >(val5);
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_From_int(static_cast< int >(result));
11416 return resultobj;
11417fail:
11418 return NULL;
d55e5bfc
RD
11419}
11420
11421
554f62e9
RD
11422SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11423 PyObject *resultobj = 0;
11424 wxRegion *arg1 = (wxRegion *) 0 ;
11425 wxRect result;
11426 void *argp1 = 0 ;
11427 int res1 = 0 ;
11428 PyObject *swig_obj[1] ;
11429
11430 if (!args) SWIG_fail;
11431 swig_obj[0] = args;
11432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11433 if (!SWIG_IsOK(res1)) {
11434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11435 }
11436 arg1 = reinterpret_cast< wxRegion * >(argp1);
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (arg1)->GetBox();
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11444 return resultobj;
11445fail:
11446 return NULL;
11447}
11448
11449
11450SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj = 0;
11452 wxRegion *arg1 = (wxRegion *) 0 ;
11453 int arg2 ;
11454 int arg3 ;
11455 int arg4 ;
11456 int arg5 ;
11457 bool result;
11458 void *argp1 = 0 ;
11459 int res1 = 0 ;
11460 int val2 ;
11461 int ecode2 = 0 ;
11462 int val3 ;
11463 int ecode3 = 0 ;
11464 int val4 ;
11465 int ecode4 = 0 ;
11466 int val5 ;
11467 int ecode5 = 0 ;
11468 PyObject * obj0 = 0 ;
11469 PyObject * obj1 = 0 ;
11470 PyObject * obj2 = 0 ;
11471 PyObject * obj3 = 0 ;
11472 PyObject * obj4 = 0 ;
11473 char * kwnames[] = {
11474 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11475 };
11476
11477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11479 if (!SWIG_IsOK(res1)) {
11480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11481 }
11482 arg1 = reinterpret_cast< wxRegion * >(argp1);
11483 ecode2 = SWIG_AsVal_int(obj1, &val2);
11484 if (!SWIG_IsOK(ecode2)) {
11485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11486 }
11487 arg2 = static_cast< int >(val2);
11488 ecode3 = SWIG_AsVal_int(obj2, &val3);
11489 if (!SWIG_IsOK(ecode3)) {
11490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11491 }
11492 arg3 = static_cast< int >(val3);
11493 ecode4 = SWIG_AsVal_int(obj3, &val4);
11494 if (!SWIG_IsOK(ecode4)) {
11495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11496 }
11497 arg4 = static_cast< int >(val4);
11498 ecode5 = SWIG_AsVal_int(obj4, &val5);
11499 if (!SWIG_IsOK(ecode5)) {
11500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11501 }
11502 arg5 = static_cast< int >(val5);
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 {
11510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11511 }
11512 return resultobj;
11513fail:
11514 return NULL;
11515}
11516
11517
11518SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj = 0;
11520 wxRegion *arg1 = (wxRegion *) 0 ;
11521 wxRect *arg2 = 0 ;
11522 bool result;
11523 void *argp1 = 0 ;
11524 int res1 = 0 ;
11525 wxRect temp2 ;
11526 PyObject * obj0 = 0 ;
11527 PyObject * obj1 = 0 ;
11528 char * kwnames[] = {
11529 (char *) "self",(char *) "rect", NULL
11530 };
11531
11532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11534 if (!SWIG_IsOK(res1)) {
11535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11536 }
11537 arg1 = reinterpret_cast< wxRegion * >(argp1);
11538 {
11539 arg2 = &temp2;
11540 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11541 }
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 {
11549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11550 }
11551 return resultobj;
11552fail:
11553 return NULL;
11554}
11555
11556
11557SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj = 0;
11559 wxRegion *arg1 = (wxRegion *) 0 ;
11560 wxRegion *arg2 = 0 ;
11561 bool result;
11562 void *argp1 = 0 ;
11563 int res1 = 0 ;
11564 void *argp2 = 0 ;
11565 int res2 = 0 ;
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
11568 char * kwnames[] = {
11569 (char *) "self",(char *) "region", NULL
11570 };
11571
11572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11574 if (!SWIG_IsOK(res1)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11576 }
11577 arg1 = reinterpret_cast< wxRegion * >(argp1);
11578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11579 if (!SWIG_IsOK(res2)) {
11580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11581 }
11582 if (!argp2) {
11583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11584 }
11585 arg2 = reinterpret_cast< wxRegion * >(argp2);
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
11588 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 {
11593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11594 }
11595 return resultobj;
11596fail:
11597 return NULL;
d55e5bfc
RD
11598}
11599
11600
554f62e9
RD
11601SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11602 PyObject *resultobj = 0;
11603 wxRegion *arg1 = (wxRegion *) 0 ;
11604 bool result;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 PyObject *swig_obj[1] ;
11608
11609 if (!args) SWIG_fail;
11610 swig_obj[0] = args;
11611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11612 if (!SWIG_IsOK(res1)) {
11613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11614 }
11615 arg1 = reinterpret_cast< wxRegion * >(argp1);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 result = (bool)(arg1)->IsEmpty();
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 {
11623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11624 }
11625 return resultobj;
11626fail:
11627 return NULL;
11628}
11629
11630
f5263701
RD
11631SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj = 0;
11633 wxRegion *arg1 = (wxRegion *) 0 ;
11634 wxRegion *arg2 = 0 ;
11635 bool result;
11636 void *argp1 = 0 ;
11637 int res1 = 0 ;
11638 void *argp2 = 0 ;
11639 int res2 = 0 ;
11640 PyObject * obj0 = 0 ;
11641 PyObject * obj1 = 0 ;
11642 char * kwnames[] = {
11643 (char *) "self",(char *) "region", NULL
11644 };
11645
11646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11648 if (!SWIG_IsOK(res1)) {
11649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11650 }
11651 arg1 = reinterpret_cast< wxRegion * >(argp1);
11652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11653 if (!SWIG_IsOK(res2)) {
11654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11655 }
11656 if (!argp2) {
11657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11658 }
11659 arg2 = reinterpret_cast< wxRegion * >(argp2);
11660 {
11661 PyThreadState* __tstate = wxPyBeginAllowThreads();
11662 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 {
11667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11668 }
11669 return resultobj;
11670fail:
11671 return NULL;
11672}
11673
11674
554f62e9
RD
11675SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj = 0;
11677 wxRegion *arg1 = (wxRegion *) 0 ;
11678 int arg2 ;
11679 int arg3 ;
11680 int arg4 ;
11681 int arg5 ;
11682 bool result;
11683 void *argp1 = 0 ;
11684 int res1 = 0 ;
11685 int val2 ;
11686 int ecode2 = 0 ;
11687 int val3 ;
11688 int ecode3 = 0 ;
11689 int val4 ;
11690 int ecode4 = 0 ;
11691 int val5 ;
11692 int ecode5 = 0 ;
11693 PyObject * obj0 = 0 ;
11694 PyObject * obj1 = 0 ;
11695 PyObject * obj2 = 0 ;
11696 PyObject * obj3 = 0 ;
11697 PyObject * obj4 = 0 ;
11698 char * kwnames[] = {
11699 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11700 };
11701
11702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11704 if (!SWIG_IsOK(res1)) {
11705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11706 }
11707 arg1 = reinterpret_cast< wxRegion * >(argp1);
11708 ecode2 = SWIG_AsVal_int(obj1, &val2);
11709 if (!SWIG_IsOK(ecode2)) {
11710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11711 }
11712 arg2 = static_cast< int >(val2);
11713 ecode3 = SWIG_AsVal_int(obj2, &val3);
11714 if (!SWIG_IsOK(ecode3)) {
11715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11716 }
11717 arg3 = static_cast< int >(val3);
11718 ecode4 = SWIG_AsVal_int(obj3, &val4);
11719 if (!SWIG_IsOK(ecode4)) {
11720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11721 }
11722 arg4 = static_cast< int >(val4);
11723 ecode5 = SWIG_AsVal_int(obj4, &val5);
11724 if (!SWIG_IsOK(ecode5)) {
11725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11726 }
11727 arg5 = static_cast< int >(val5);
11728 {
11729 PyThreadState* __tstate = wxPyBeginAllowThreads();
11730 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 {
11735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11736 }
11737 return resultobj;
11738fail:
11739 return NULL;
11740}
11741
11742
11743SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11744 PyObject *resultobj = 0;
11745 wxRegion *arg1 = (wxRegion *) 0 ;
11746 wxRect *arg2 = 0 ;
11747 bool result;
11748 void *argp1 = 0 ;
11749 int res1 = 0 ;
11750 wxRect temp2 ;
11751 PyObject * obj0 = 0 ;
11752 PyObject * obj1 = 0 ;
11753 char * kwnames[] = {
11754 (char *) "self",(char *) "rect", NULL
11755 };
11756
11757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11759 if (!SWIG_IsOK(res1)) {
11760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11761 }
11762 arg1 = reinterpret_cast< wxRegion * >(argp1);
11763 {
11764 arg2 = &temp2;
11765 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11766 }
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 {
11774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11775 }
11776 return resultobj;
11777fail:
11778 return NULL;
11779}
11780
11781
11782SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11783 PyObject *resultobj = 0;
11784 wxRegion *arg1 = (wxRegion *) 0 ;
11785 wxRegion *arg2 = 0 ;
11786 bool result;
11787 void *argp1 = 0 ;
11788 int res1 = 0 ;
11789 void *argp2 = 0 ;
11790 int res2 = 0 ;
11791 PyObject * obj0 = 0 ;
11792 PyObject * obj1 = 0 ;
11793 char * kwnames[] = {
11794 (char *) "self",(char *) "region", NULL
11795 };
11796
11797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11799 if (!SWIG_IsOK(res1)) {
11800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11801 }
11802 arg1 = reinterpret_cast< wxRegion * >(argp1);
11803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11804 if (!SWIG_IsOK(res2)) {
11805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11806 }
11807 if (!argp2) {
11808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11809 }
11810 arg2 = reinterpret_cast< wxRegion * >(argp2);
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 {
11818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11819 }
11820 return resultobj;
11821fail:
11822 return NULL;
11823}
11824
11825
11826SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11827 PyObject *resultobj = 0;
11828 wxRegion *arg1 = (wxRegion *) 0 ;
11829 int arg2 ;
11830 int arg3 ;
11831 int arg4 ;
11832 int arg5 ;
11833 bool result;
11834 void *argp1 = 0 ;
11835 int res1 = 0 ;
11836 int val2 ;
11837 int ecode2 = 0 ;
11838 int val3 ;
11839 int ecode3 = 0 ;
11840 int val4 ;
11841 int ecode4 = 0 ;
11842 int val5 ;
11843 int ecode5 = 0 ;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 PyObject * obj2 = 0 ;
11847 PyObject * obj3 = 0 ;
11848 PyObject * obj4 = 0 ;
11849 char * kwnames[] = {
11850 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11851 };
11852
11853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11855 if (!SWIG_IsOK(res1)) {
11856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11857 }
11858 arg1 = reinterpret_cast< wxRegion * >(argp1);
11859 ecode2 = SWIG_AsVal_int(obj1, &val2);
11860 if (!SWIG_IsOK(ecode2)) {
11861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11862 }
11863 arg2 = static_cast< int >(val2);
11864 ecode3 = SWIG_AsVal_int(obj2, &val3);
11865 if (!SWIG_IsOK(ecode3)) {
11866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11867 }
11868 arg3 = static_cast< int >(val3);
11869 ecode4 = SWIG_AsVal_int(obj3, &val4);
11870 if (!SWIG_IsOK(ecode4)) {
11871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11872 }
11873 arg4 = static_cast< int >(val4);
11874 ecode5 = SWIG_AsVal_int(obj4, &val5);
11875 if (!SWIG_IsOK(ecode5)) {
11876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11877 }
11878 arg5 = static_cast< int >(val5);
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 {
11886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11887 }
11888 return resultobj;
11889fail:
11890 return NULL;
11891}
11892
11893
11894SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11895 PyObject *resultobj = 0;
11896 wxRegion *arg1 = (wxRegion *) 0 ;
11897 wxRect *arg2 = 0 ;
11898 bool result;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 wxRect temp2 ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "rect", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11912 }
11913 arg1 = reinterpret_cast< wxRegion * >(argp1);
11914 {
11915 arg2 = &temp2;
11916 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11917 }
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 {
11925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11926 }
11927 return resultobj;
11928fail:
11929 return NULL;
11930}
11931
11932
11933SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11934 PyObject *resultobj = 0;
11935 wxRegion *arg1 = (wxRegion *) 0 ;
11936 wxRegion *arg2 = 0 ;
11937 bool result;
11938 void *argp1 = 0 ;
11939 int res1 = 0 ;
11940 void *argp2 = 0 ;
11941 int res2 = 0 ;
11942 PyObject * obj0 = 0 ;
11943 PyObject * obj1 = 0 ;
11944 char * kwnames[] = {
11945 (char *) "self",(char *) "region", NULL
11946 };
11947
11948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11950 if (!SWIG_IsOK(res1)) {
11951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11952 }
11953 arg1 = reinterpret_cast< wxRegion * >(argp1);
11954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11955 if (!SWIG_IsOK(res2)) {
11956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11957 }
11958 if (!argp2) {
11959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11960 }
11961 arg2 = reinterpret_cast< wxRegion * >(argp2);
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 {
11969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11970 }
11971 return resultobj;
11972fail:
11973 return NULL;
11974}
11975
11976
11977SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11978 PyObject *resultobj = 0;
11979 wxRegion *arg1 = (wxRegion *) 0 ;
11980 int arg2 ;
11981 int arg3 ;
11982 int arg4 ;
11983 int arg5 ;
11984 bool result;
11985 void *argp1 = 0 ;
11986 int res1 = 0 ;
11987 int val2 ;
11988 int ecode2 = 0 ;
11989 int val3 ;
11990 int ecode3 = 0 ;
11991 int val4 ;
11992 int ecode4 = 0 ;
11993 int val5 ;
11994 int ecode5 = 0 ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 PyObject * obj2 = 0 ;
11998 PyObject * obj3 = 0 ;
11999 PyObject * obj4 = 0 ;
12000 char * kwnames[] = {
12001 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12002 };
12003
12004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12006 if (!SWIG_IsOK(res1)) {
12007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12008 }
12009 arg1 = reinterpret_cast< wxRegion * >(argp1);
12010 ecode2 = SWIG_AsVal_int(obj1, &val2);
12011 if (!SWIG_IsOK(ecode2)) {
12012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12013 }
12014 arg2 = static_cast< int >(val2);
12015 ecode3 = SWIG_AsVal_int(obj2, &val3);
12016 if (!SWIG_IsOK(ecode3)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12018 }
12019 arg3 = static_cast< int >(val3);
12020 ecode4 = SWIG_AsVal_int(obj3, &val4);
12021 if (!SWIG_IsOK(ecode4)) {
12022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12023 }
12024 arg4 = static_cast< int >(val4);
12025 ecode5 = SWIG_AsVal_int(obj4, &val5);
12026 if (!SWIG_IsOK(ecode5)) {
12027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12028 }
12029 arg5 = static_cast< int >(val5);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 {
12037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12038 }
12039 return resultobj;
12040fail:
12041 return NULL;
12042}
12043
12044
12045SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12046 PyObject *resultobj = 0;
12047 wxRegion *arg1 = (wxRegion *) 0 ;
12048 wxRect *arg2 = 0 ;
12049 bool result;
12050 void *argp1 = 0 ;
12051 int res1 = 0 ;
12052 wxRect temp2 ;
12053 PyObject * obj0 = 0 ;
12054 PyObject * obj1 = 0 ;
12055 char * kwnames[] = {
12056 (char *) "self",(char *) "rect", NULL
12057 };
12058
12059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12061 if (!SWIG_IsOK(res1)) {
12062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12063 }
12064 arg1 = reinterpret_cast< wxRegion * >(argp1);
12065 {
12066 arg2 = &temp2;
12067 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12068 }
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 {
12076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12077 }
12078 return resultobj;
12079fail:
12080 return NULL;
12081}
12082
12083
12084SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12085 PyObject *resultobj = 0;
12086 wxRegion *arg1 = (wxRegion *) 0 ;
12087 wxRegion *arg2 = 0 ;
12088 bool result;
12089 void *argp1 = 0 ;
12090 int res1 = 0 ;
12091 void *argp2 = 0 ;
12092 int res2 = 0 ;
12093 PyObject * obj0 = 0 ;
12094 PyObject * obj1 = 0 ;
12095 char * kwnames[] = {
12096 (char *) "self",(char *) "region", NULL
12097 };
12098
12099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12103 }
12104 arg1 = reinterpret_cast< wxRegion * >(argp1);
12105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12106 if (!SWIG_IsOK(res2)) {
12107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12108 }
12109 if (!argp2) {
12110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12111 }
12112 arg2 = reinterpret_cast< wxRegion * >(argp2);
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 {
12120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12121 }
12122 return resultobj;
12123fail:
12124 return NULL;
d55e5bfc
RD
12125}
12126
12127
554f62e9
RD
12128SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12129 PyObject *resultobj = 0;
12130 wxRegion *arg1 = (wxRegion *) 0 ;
12131 SwigValueWrapper<wxBitmap > result;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 PyObject *swig_obj[1] ;
12135
12136 if (!args) SWIG_fail;
12137 swig_obj[0] = args;
12138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12139 if (!SWIG_IsOK(res1)) {
12140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12141 }
12142 arg1 = reinterpret_cast< wxRegion * >(argp1);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 result = (arg1)->ConvertToBitmap();
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12150 return resultobj;
12151fail:
12152 return NULL;
12153}
12154
12155
12156SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj = 0;
12158 wxRegion *arg1 = (wxRegion *) 0 ;
12159 wxBitmap *arg2 = 0 ;
12160 bool result;
12161 void *argp1 = 0 ;
12162 int res1 = 0 ;
12163 void *argp2 = 0 ;
12164 int res2 = 0 ;
12165 PyObject * obj0 = 0 ;
12166 PyObject * obj1 = 0 ;
12167 char * kwnames[] = {
12168 (char *) "self",(char *) "bmp", NULL
12169 };
12170
12171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12175 }
12176 arg1 = reinterpret_cast< wxRegion * >(argp1);
12177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12178 if (!SWIG_IsOK(res2)) {
12179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12180 }
12181 if (!argp2) {
12182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12183 }
12184 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 {
12192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12193 }
12194 return resultobj;
12195fail:
12196 return NULL;
12197}
12198
12199
12200SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj = 0;
12202 wxRegion *arg1 = (wxRegion *) 0 ;
12203 wxBitmap *arg2 = 0 ;
12204 wxColour *arg3 = 0 ;
12205 int arg4 = (int) 0 ;
12206 bool result;
12207 void *argp1 = 0 ;
12208 int res1 = 0 ;
12209 void *argp2 = 0 ;
12210 int res2 = 0 ;
12211 wxColour temp3 ;
12212 int val4 ;
12213 int ecode4 = 0 ;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 PyObject * obj2 = 0 ;
12217 PyObject * obj3 = 0 ;
12218 char * kwnames[] = {
12219 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12220 };
12221
12222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12226 }
12227 arg1 = reinterpret_cast< wxRegion * >(argp1);
12228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12229 if (!SWIG_IsOK(res2)) {
12230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12231 }
12232 if (!argp2) {
12233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12234 }
12235 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12236 {
12237 arg3 = &temp3;
12238 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12239 }
12240 if (obj3) {
12241 ecode4 = SWIG_AsVal_int(obj3, &val4);
12242 if (!SWIG_IsOK(ecode4)) {
12243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12244 }
12245 arg4 = static_cast< int >(val4);
12246 }
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12255 }
12256 return resultobj;
12257fail:
12258 return NULL;
d55e5bfc
RD
12259}
12260
12261
554f62e9
RD
12262SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12263 PyObject *obj;
12264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12265 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12266 return SWIG_Py_Void();
d55e5bfc
RD
12267}
12268
554f62e9
RD
12269SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 return SWIG_Python_InitShadowInstance(args);
12271}
d55e5bfc 12272
554f62e9
RD
12273SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12274 PyObject *resultobj = 0;
12275 wxRegion *arg1 = 0 ;
12276 wxRegionIterator *result = 0 ;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject * obj0 = 0 ;
12280 char * kwnames[] = {
12281 (char *) "region", NULL
12282 };
12283
12284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12285 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12288 }
12289 if (!argp1) {
12290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12291 }
12292 arg1 = reinterpret_cast< wxRegion * >(argp1);
12293 {
12294 if (!wxPyCheckForApp()) SWIG_fail;
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12301 return resultobj;
12302fail:
12303 return NULL;
d55e5bfc
RD
12304}
12305
12306
554f62e9
RD
12307SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12319 }
12320 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 delete arg1;
d55e5bfc 12324
554f62e9
RD
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = SWIG_Py_Void();
12329 return resultobj;
12330fail:
12331 return NULL;
d55e5bfc
RD
12332}
12333
12334
554f62e9
RD
12335SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12336 PyObject *resultobj = 0;
12337 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12338 int result;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 PyObject *swig_obj[1] ;
12342
12343 if (!args) SWIG_fail;
12344 swig_obj[0] = args;
12345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12346 if (!SWIG_IsOK(res1)) {
12347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12348 }
12349 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (int)(arg1)->GetX();
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_From_int(static_cast< int >(result));
12357 return resultobj;
12358fail:
12359 return NULL;
d55e5bfc
RD
12360}
12361
12362
554f62e9
RD
12363SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12364 PyObject *resultobj = 0;
12365 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12366 int result;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 PyObject *swig_obj[1] ;
12370
12371 if (!args) SWIG_fail;
12372 swig_obj[0] = args;
12373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12374 if (!SWIG_IsOK(res1)) {
12375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12376 }
12377 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 result = (int)(arg1)->GetY();
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_From_int(static_cast< int >(result));
12385 return resultobj;
12386fail:
12387 return NULL;
d55e5bfc
RD
12388}
12389
12390
554f62e9
RD
12391SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12392 PyObject *resultobj = 0;
12393 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12394 int result;
12395 void *argp1 = 0 ;
12396 int res1 = 0 ;
12397 PyObject *swig_obj[1] ;
12398
12399 if (!args) SWIG_fail;
12400 swig_obj[0] = args;
12401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12402 if (!SWIG_IsOK(res1)) {
12403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12404 }
12405 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 result = (int)(arg1)->GetW();
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 resultobj = SWIG_From_int(static_cast< int >(result));
12413 return resultobj;
12414fail:
12415 return NULL;
d55e5bfc
RD
12416}
12417
12418
554f62e9
RD
12419SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12420 PyObject *resultobj = 0;
12421 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12422 int result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 PyObject *swig_obj[1] ;
12426
12427 if (!args) SWIG_fail;
12428 swig_obj[0] = args;
12429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12432 }
12433 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 result = (int)(arg1)->GetWidth();
12437 wxPyEndAllowThreads(__tstate);
12438 if (PyErr_Occurred()) SWIG_fail;
12439 }
12440 resultobj = SWIG_From_int(static_cast< int >(result));
12441 return resultobj;
12442fail:
12443 return NULL;
d55e5bfc
RD
12444}
12445
12446
554f62e9
RD
12447SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12450 int result;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12460 }
12461 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = (int)(arg1)->GetH();
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_From_int(static_cast< int >(result));
12469 return resultobj;
12470fail:
12471 return NULL;
d55e5bfc
RD
12472}
12473
12474
554f62e9
RD
12475SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12478 int result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject *swig_obj[1] ;
12482
12483 if (!args) SWIG_fail;
12484 swig_obj[0] = args;
12485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12488 }
12489 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (int)(arg1)->GetHeight();
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_From_int(static_cast< int >(result));
12497 return resultobj;
12498fail:
12499 return NULL;
d55e5bfc
RD
12500}
12501
12502
554f62e9
RD
12503SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12506 wxRect result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12516 }
12517 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = (arg1)->GetRect();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12525 return resultobj;
12526fail:
12527 return NULL;
d55e5bfc
RD
12528}
12529
12530
554f62e9
RD
12531SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12532 PyObject *resultobj = 0;
12533 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12534 bool result;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 PyObject *swig_obj[1] ;
12538
12539 if (!args) SWIG_fail;
12540 swig_obj[0] = args;
12541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12542 if (!SWIG_IsOK(res1)) {
12543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12544 }
12545 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 result = (bool)(arg1)->HaveRects();
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 {
12553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12554 }
12555 return resultobj;
12556fail:
12557 return NULL;
d55e5bfc
RD
12558}
12559
12560
554f62e9
RD
12561SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12562 PyObject *resultobj = 0;
12563 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12564 void *argp1 = 0 ;
12565 int res1 = 0 ;
12566 PyObject *swig_obj[1] ;
12567
12568 if (!args) SWIG_fail;
12569 swig_obj[0] = args;
12570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12571 if (!SWIG_IsOK(res1)) {
12572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12573 }
12574 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 (arg1)->Reset();
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 resultobj = SWIG_Py_Void();
12582 return resultobj;
12583fail:
12584 return NULL;
d55e5bfc
RD
12585}
12586
12587
554f62e9
RD
12588SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12589 PyObject *resultobj = 0;
12590 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12591 void *argp1 = 0 ;
12592 int res1 = 0 ;
12593 PyObject *swig_obj[1] ;
12594
12595 if (!args) SWIG_fail;
12596 swig_obj[0] = args;
12597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12598 if (!SWIG_IsOK(res1)) {
12599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12600 }
12601 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 wxRegionIterator_Next(arg1);
12605 wxPyEndAllowThreads(__tstate);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 resultobj = SWIG_Py_Void();
12609 return resultobj;
12610fail:
12611 return NULL;
d55e5bfc
RD
12612}
12613
12614
554f62e9
RD
12615SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12618 bool result;
12619 void *argp1 = 0 ;
12620 int res1 = 0 ;
12621 PyObject *swig_obj[1] ;
12622
12623 if (!args) SWIG_fail;
12624 swig_obj[0] = args;
12625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12626 if (!SWIG_IsOK(res1)) {
12627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12628 }
12629 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (bool)wxRegionIterator___nonzero__(arg1);
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 {
12637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12638 }
12639 return resultobj;
12640fail:
12641 return NULL;
d55e5bfc
RD
12642}
12643
12644
554f62e9
RD
12645SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12646 PyObject *obj;
12647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12648 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12649 return SWIG_Py_Void();
d55e5bfc
RD
12650}
12651
554f62e9
RD
12652SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12653 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12654}
12655
554f62e9
RD
12656SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12657 PyObject *resultobj = 0;
12658 wxNativeFontInfo *result = 0 ;
12659
12660 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12668 return resultobj;
12669fail:
12670 return NULL;
d55e5bfc
RD
12671}
12672
12673
554f62e9
RD
12674SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12675 PyObject *resultobj = 0;
12676 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 PyObject *swig_obj[1] ;
12680
12681 if (!args) SWIG_fail;
12682 swig_obj[0] = args;
12683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12686 }
12687 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 delete arg1;
d55e5bfc 12691
554f62e9
RD
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 resultobj = SWIG_Py_Void();
12696 return resultobj;
12697fail:
12698 return NULL;
d55e5bfc
RD
12699}
12700
12701
554f62e9
RD
12702SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12703 PyObject *resultobj = 0;
12704 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12705 void *argp1 = 0 ;
12706 int res1 = 0 ;
12707 PyObject *swig_obj[1] ;
12708
12709 if (!args) SWIG_fail;
12710 swig_obj[0] = args;
12711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12712 if (!SWIG_IsOK(res1)) {
12713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12714 }
12715 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->Init();
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_Py_Void();
12723 return resultobj;
12724fail:
12725 return NULL;
12726}
12727
12728
12729SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj = 0;
12731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12732 wxFont *arg2 = 0 ;
12733 void *argp1 = 0 ;
12734 int res1 = 0 ;
12735 void *argp2 = 0 ;
12736 int res2 = 0 ;
12737 PyObject * obj0 = 0 ;
12738 PyObject * obj1 = 0 ;
12739 char * kwnames[] = {
12740 (char *) "self",(char *) "font", NULL
12741 };
12742
12743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12745 if (!SWIG_IsOK(res1)) {
12746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12747 }
12748 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12750 if (!SWIG_IsOK(res2)) {
12751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12752 }
12753 if (!argp2) {
12754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12755 }
12756 arg2 = reinterpret_cast< wxFont * >(argp2);
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 (arg1)->InitFromFont((wxFont const &)*arg2);
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 resultobj = SWIG_Py_Void();
12764 return resultobj;
12765fail:
12766 return NULL;
d55e5bfc
RD
12767}
12768
12769
554f62e9
RD
12770SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12771 PyObject *resultobj = 0;
12772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12773 int result;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 PyObject *swig_obj[1] ;
12777
12778 if (!args) SWIG_fail;
12779 swig_obj[0] = args;
12780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12781 if (!SWIG_IsOK(res1)) {
12782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12783 }
12784 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_From_int(static_cast< int >(result));
12792 return resultobj;
12793fail:
12794 return NULL;
d55e5bfc
RD
12795}
12796
12797
554f62e9
RD
12798SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12799 PyObject *resultobj = 0;
12800 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12801 wxSize result;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 PyObject *swig_obj[1] ;
12805
12806 if (!args) SWIG_fail;
12807 swig_obj[0] = args;
12808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12809 if (!SWIG_IsOK(res1)) {
12810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12811 }
12812 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12820 return resultobj;
12821fail:
12822 return NULL;
d55e5bfc
RD
12823}
12824
12825
554f62e9
RD
12826SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12827 PyObject *resultobj = 0;
12828 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12829 wxFontStyle result;
12830 void *argp1 = 0 ;
12831 int res1 = 0 ;
12832 PyObject *swig_obj[1] ;
12833
12834 if (!args) SWIG_fail;
12835 swig_obj[0] = args;
12836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12837 if (!SWIG_IsOK(res1)) {
12838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12839 }
12840 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12844 wxPyEndAllowThreads(__tstate);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 resultobj = SWIG_From_int(static_cast< int >(result));
12848 return resultobj;
12849fail:
12850 return NULL;
d55e5bfc
RD
12851}
12852
12853
554f62e9
RD
12854SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12855 PyObject *resultobj = 0;
12856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12857 wxFontWeight result;
12858 void *argp1 = 0 ;
12859 int res1 = 0 ;
12860 PyObject *swig_obj[1] ;
12861
12862 if (!args) SWIG_fail;
12863 swig_obj[0] = args;
12864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12865 if (!SWIG_IsOK(res1)) {
12866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12867 }
12868 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 resultobj = SWIG_From_int(static_cast< int >(result));
12876 return resultobj;
12877fail:
12878 return NULL;
d55e5bfc
RD
12879}
12880
12881
554f62e9
RD
12882SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12883 PyObject *resultobj = 0;
12884 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12885 bool result;
12886 void *argp1 = 0 ;
12887 int res1 = 0 ;
12888 PyObject *swig_obj[1] ;
12889
12890 if (!args) SWIG_fail;
12891 swig_obj[0] = args;
12892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12893 if (!SWIG_IsOK(res1)) {
12894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12895 }
12896 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 {
12904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12905 }
12906 return resultobj;
12907fail:
12908 return NULL;
d55e5bfc
RD
12909}
12910
12911
554f62e9
RD
12912SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12913 PyObject *resultobj = 0;
12914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12915 wxString result;
12916 void *argp1 = 0 ;
12917 int res1 = 0 ;
12918 PyObject *swig_obj[1] ;
12919
12920 if (!args) SWIG_fail;
12921 swig_obj[0] = args;
12922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12923 if (!SWIG_IsOK(res1)) {
12924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12925 }
12926 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 {
093d3ff1 12934#if wxUSE_UNICODE
554f62e9 12935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12936#else
554f62e9 12937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12938#endif
554f62e9
RD
12939 }
12940 return resultobj;
12941fail:
12942 return NULL;
d55e5bfc
RD
12943}
12944
12945
554f62e9
RD
12946SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12947 PyObject *resultobj = 0;
12948 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12949 wxFontFamily result;
12950 void *argp1 = 0 ;
12951 int res1 = 0 ;
12952 PyObject *swig_obj[1] ;
12953
12954 if (!args) SWIG_fail;
12955 swig_obj[0] = args;
12956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12957 if (!SWIG_IsOK(res1)) {
12958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12959 }
12960 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_From_int(static_cast< int >(result));
12968 return resultobj;
12969fail:
12970 return NULL;
d55e5bfc
RD
12971}
12972
12973
554f62e9
RD
12974SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 PyObject *resultobj = 0;
12976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12977 wxFontEncoding result;
12978 void *argp1 = 0 ;
12979 int res1 = 0 ;
12980 PyObject *swig_obj[1] ;
12981
12982 if (!args) SWIG_fail;
12983 swig_obj[0] = args;
12984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12985 if (!SWIG_IsOK(res1)) {
12986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12987 }
12988 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 resultobj = SWIG_From_int(static_cast< int >(result));
12996 return resultobj;
12997fail:
12998 return NULL;
12999}
13000
13001
13002SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13003 PyObject *resultobj = 0;
13004 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13005 int arg2 ;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 int val2 ;
13009 int ecode2 = 0 ;
13010 PyObject * obj0 = 0 ;
13011 PyObject * obj1 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "pointsize", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13020 }
13021 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13022 ecode2 = SWIG_AsVal_int(obj1, &val2);
13023 if (!SWIG_IsOK(ecode2)) {
13024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13025 }
13026 arg2 = static_cast< int >(val2);
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 (arg1)->SetPointSize(arg2);
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 resultobj = SWIG_Py_Void();
13034 return resultobj;
13035fail:
13036 return NULL;
13037}
13038
13039
13040SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj = 0;
13042 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13043 wxSize *arg2 = 0 ;
13044 void *argp1 = 0 ;
13045 int res1 = 0 ;
13046 wxSize temp2 ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char * kwnames[] = {
13050 (char *) "self",(char *) "pixelSize", NULL
13051 };
13052
13053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13055 if (!SWIG_IsOK(res1)) {
13056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13057 }
13058 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13059 {
13060 arg2 = &temp2;
13061 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13062 }
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->SetPixelSize((wxSize const &)*arg2);
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_Py_Void();
13070 return resultobj;
13071fail:
13072 return NULL;
13073}
13074
13075
13076SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj = 0;
13078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13079 wxFontStyle arg2 ;
13080 void *argp1 = 0 ;
13081 int res1 = 0 ;
13082 int val2 ;
13083 int ecode2 = 0 ;
13084 PyObject * obj0 = 0 ;
13085 PyObject * obj1 = 0 ;
13086 char * kwnames[] = {
13087 (char *) "self",(char *) "style", NULL
13088 };
13089
13090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13092 if (!SWIG_IsOK(res1)) {
13093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13094 }
13095 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13096 ecode2 = SWIG_AsVal_int(obj1, &val2);
13097 if (!SWIG_IsOK(ecode2)) {
13098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13099 }
13100 arg2 = static_cast< wxFontStyle >(val2);
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 (arg1)->SetStyle(arg2);
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 resultobj = SWIG_Py_Void();
13108 return resultobj;
13109fail:
13110 return NULL;
13111}
13112
13113
13114SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13115 PyObject *resultobj = 0;
13116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13117 wxFontWeight arg2 ;
13118 void *argp1 = 0 ;
13119 int res1 = 0 ;
13120 int val2 ;
13121 int ecode2 = 0 ;
13122 PyObject * obj0 = 0 ;
13123 PyObject * obj1 = 0 ;
13124 char * kwnames[] = {
13125 (char *) "self",(char *) "weight", NULL
13126 };
13127
13128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13130 if (!SWIG_IsOK(res1)) {
13131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13132 }
13133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13134 ecode2 = SWIG_AsVal_int(obj1, &val2);
13135 if (!SWIG_IsOK(ecode2)) {
13136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13137 }
13138 arg2 = static_cast< wxFontWeight >(val2);
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 (arg1)->SetWeight(arg2);
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 resultobj = SWIG_Py_Void();
13146 return resultobj;
13147fail:
13148 return NULL;
13149}
13150
13151
13152SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13153 PyObject *resultobj = 0;
13154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13155 bool arg2 ;
13156 void *argp1 = 0 ;
13157 int res1 = 0 ;
13158 bool val2 ;
13159 int ecode2 = 0 ;
13160 PyObject * obj0 = 0 ;
13161 PyObject * obj1 = 0 ;
13162 char * kwnames[] = {
13163 (char *) "self",(char *) "underlined", NULL
13164 };
13165
13166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13170 }
13171 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13172 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13173 if (!SWIG_IsOK(ecode2)) {
13174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13175 }
13176 arg2 = static_cast< bool >(val2);
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 (arg1)->SetUnderlined(arg2);
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 resultobj = SWIG_Py_Void();
13184 return resultobj;
13185fail:
13186 return NULL;
13187}
13188
13189
13190SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13191 PyObject *resultobj = 0;
13192 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13193 wxString arg2 ;
704eda0c 13194 bool result;
554f62e9
RD
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "facename", NULL
13201 };
13202
13203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13207 }
13208 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13209 {
13210 wxString* sptr = wxString_in_helper(obj1);
13211 if (sptr == NULL) SWIG_fail;
13212 arg2 = *sptr;
13213 delete sptr;
13214 }
13215 {
13216 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13217 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
13218 wxPyEndAllowThreads(__tstate);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 }
704eda0c
RD
13221 {
13222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13223 }
554f62e9
RD
13224 return resultobj;
13225fail:
13226 return NULL;
13227}
13228
13229
13230SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13231 PyObject *resultobj = 0;
13232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13233 wxFontFamily arg2 ;
13234 void *argp1 = 0 ;
13235 int res1 = 0 ;
13236 int val2 ;
13237 int ecode2 = 0 ;
13238 PyObject * obj0 = 0 ;
13239 PyObject * obj1 = 0 ;
13240 char * kwnames[] = {
13241 (char *) "self",(char *) "family", NULL
13242 };
13243
13244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13246 if (!SWIG_IsOK(res1)) {
13247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13248 }
13249 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13250 ecode2 = SWIG_AsVal_int(obj1, &val2);
13251 if (!SWIG_IsOK(ecode2)) {
13252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13253 }
13254 arg2 = static_cast< wxFontFamily >(val2);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->SetFamily(arg2);
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263fail:
13264 return NULL;
13265}
13266
13267
13268SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj = 0;
13270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13271 wxFontEncoding arg2 ;
13272 void *argp1 = 0 ;
13273 int res1 = 0 ;
13274 int val2 ;
13275 int ecode2 = 0 ;
13276 PyObject * obj0 = 0 ;
13277 PyObject * obj1 = 0 ;
13278 char * kwnames[] = {
13279 (char *) "self",(char *) "encoding", NULL
13280 };
13281
13282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13284 if (!SWIG_IsOK(res1)) {
13285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13286 }
13287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13288 ecode2 = SWIG_AsVal_int(obj1, &val2);
13289 if (!SWIG_IsOK(ecode2)) {
13290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13291 }
13292 arg2 = static_cast< wxFontEncoding >(val2);
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 (arg1)->SetEncoding(arg2);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_Py_Void();
13300 return resultobj;
13301fail:
13302 return NULL;
13303}
13304
13305
13306SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13309 wxString *arg2 = 0 ;
13310 bool result;
13311 void *argp1 = 0 ;
13312 int res1 = 0 ;
13313 bool temp2 = false ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char * kwnames[] = {
13317 (char *) "self",(char *) "s", NULL
13318 };
13319
13320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13324 }
13325 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13326 {
13327 arg2 = wxString_in_helper(obj1);
13328 if (arg2 == NULL) SWIG_fail;
13329 temp2 = true;
13330 }
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13334 wxPyEndAllowThreads(__tstate);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 }
13337 {
13338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13339 }
13340 {
13341 if (temp2)
13342 delete arg2;
13343 }
13344 return resultobj;
13345fail:
13346 {
13347 if (temp2)
13348 delete arg2;
13349 }
13350 return NULL;
d55e5bfc
RD
13351}
13352
13353
554f62e9
RD
13354SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13355 PyObject *resultobj = 0;
13356 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13357 wxString result;
13358 void *argp1 = 0 ;
13359 int res1 = 0 ;
13360 PyObject *swig_obj[1] ;
13361
13362 if (!args) SWIG_fail;
13363 swig_obj[0] = args;
13364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13365 if (!SWIG_IsOK(res1)) {
13366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13367 }
13368 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = ((wxNativeFontInfo const *)arg1)->ToString();
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 {
13376#if wxUSE_UNICODE
13377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13378#else
13379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13380#endif
13381 }
13382 return resultobj;
13383fail:
13384 return NULL;
d55e5bfc
RD
13385}
13386
13387
554f62e9
RD
13388SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13389 PyObject *resultobj = 0;
13390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13391 wxString result;
13392 void *argp1 = 0 ;
13393 int res1 = 0 ;
13394 PyObject *swig_obj[1] ;
13395
13396 if (!args) SWIG_fail;
13397 swig_obj[0] = args;
13398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13399 if (!SWIG_IsOK(res1)) {
13400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13401 }
13402 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = wxNativeFontInfo___str__(arg1);
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 {
13410#if wxUSE_UNICODE
13411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13412#else
13413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13414#endif
13415 }
13416 return resultobj;
13417fail:
13418 return NULL;
13419}
13420
13421
13422SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj = 0;
13424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13425 wxString *arg2 = 0 ;
13426 bool result;
13427 void *argp1 = 0 ;
13428 int res1 = 0 ;
13429 bool temp2 = false ;
13430 PyObject * obj0 = 0 ;
13431 PyObject * obj1 = 0 ;
13432 char * kwnames[] = {
13433 (char *) "self",(char *) "s", NULL
13434 };
13435
13436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13438 if (!SWIG_IsOK(res1)) {
13439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13440 }
13441 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13442 {
13443 arg2 = wxString_in_helper(obj1);
13444 if (arg2 == NULL) SWIG_fail;
13445 temp2 = true;
13446 }
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 {
13454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13455 }
13456 {
13457 if (temp2)
13458 delete arg2;
13459 }
13460 return resultobj;
13461fail:
13462 {
13463 if (temp2)
13464 delete arg2;
13465 }
13466 return NULL;
a2569024
RD
13467}
13468
13469
554f62e9
RD
13470SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13473 wxString result;
13474 void *argp1 = 0 ;
13475 int res1 = 0 ;
13476 PyObject *swig_obj[1] ;
13477
13478 if (!args) SWIG_fail;
13479 swig_obj[0] = args;
13480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13483 }
13484 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492#if wxUSE_UNICODE
13493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13494#else
13495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13496#endif
13497 }
13498 return resultobj;
13499fail:
13500 return NULL;
d55e5bfc
RD
13501}
13502
13503
554f62e9
RD
13504SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13505 PyObject *obj;
13506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13507 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13508 return SWIG_Py_Void();
d55e5bfc
RD
13509}
13510
554f62e9
RD
13511SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 return SWIG_Python_InitShadowInstance(args);
13513}
d55e5bfc 13514
554f62e9
RD
13515SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13516 PyObject *resultobj = 0;
13517 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13518 wxString *arg2 = (wxString *) 0 ;
13519 void *argp1 = 0 ;
13520 int res1 = 0 ;
13521 bool temp2 = false ;
13522 PyObject *swig_obj[2] ;
13523
13524 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13526 if (!SWIG_IsOK(res1)) {
13527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13528 }
13529 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13530 {
13531 arg2 = wxString_in_helper(swig_obj[1]);
13532 if (arg2 == NULL) SWIG_fail;
13533 temp2 = true;
13534 }
13535 if (arg1) (arg1)->facename = *arg2;
13536
13537 resultobj = SWIG_Py_Void();
13538 {
13539 if (temp2)
13540 delete arg2;
13541 }
13542 return resultobj;
13543fail:
13544 {
13545 if (temp2)
13546 delete arg2;
13547 }
13548 return NULL;
d55e5bfc
RD
13549}
13550
13551
554f62e9
RD
13552SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13553 PyObject *resultobj = 0;
13554 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13555 wxString *result = 0 ;
13556 void *argp1 = 0 ;
13557 int res1 = 0 ;
13558 PyObject *swig_obj[1] ;
13559
13560 if (!args) SWIG_fail;
13561 swig_obj[0] = args;
13562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13563 if (!SWIG_IsOK(res1)) {
13564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13565 }
13566 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13567 result = (wxString *)& ((arg1)->facename);
13568 {
13569#if wxUSE_UNICODE
13570 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13571#else
13572 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13573#endif
13574 }
13575 return resultobj;
13576fail:
13577 return NULL;
d55e5bfc
RD
13578}
13579
13580
554f62e9
RD
13581SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13582 PyObject *resultobj = 0;
13583 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13584 wxFontEncoding arg2 ;
13585 void *argp1 = 0 ;
13586 int res1 = 0 ;
13587 int val2 ;
13588 int ecode2 = 0 ;
13589 PyObject *swig_obj[2] ;
13590
13591 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13593 if (!SWIG_IsOK(res1)) {
13594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13595 }
13596 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13597 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13598 if (!SWIG_IsOK(ecode2)) {
13599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13600 }
13601 arg2 = static_cast< wxFontEncoding >(val2);
13602 if (arg1) (arg1)->encoding = arg2;
13603
13604 resultobj = SWIG_Py_Void();
13605 return resultobj;
13606fail:
13607 return NULL;
d55e5bfc
RD
13608}
13609
13610
554f62e9
RD
13611SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13612 PyObject *resultobj = 0;
13613 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13614 wxFontEncoding result;
13615 void *argp1 = 0 ;
13616 int res1 = 0 ;
13617 PyObject *swig_obj[1] ;
13618
13619 if (!args) SWIG_fail;
13620 swig_obj[0] = args;
13621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13622 if (!SWIG_IsOK(res1)) {
13623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13624 }
13625 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13626 result = (wxFontEncoding) ((arg1)->encoding);
13627 resultobj = SWIG_From_int(static_cast< int >(result));
13628 return resultobj;
13629fail:
13630 return NULL;
d55e5bfc
RD
13631}
13632
13633
554f62e9
RD
13634SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *resultobj = 0;
13636 wxNativeEncodingInfo *result = 0 ;
13637
13638 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13646 return resultobj;
13647fail:
13648 return NULL;
d55e5bfc
RD
13649}
13650
13651
554f62e9
RD
13652SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13653 PyObject *resultobj = 0;
13654 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13655 void *argp1 = 0 ;
13656 int res1 = 0 ;
13657 PyObject *swig_obj[1] ;
13658
13659 if (!args) SWIG_fail;
13660 swig_obj[0] = args;
13661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13662 if (!SWIG_IsOK(res1)) {
13663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13664 }
13665 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 delete arg1;
d55e5bfc 13669
554f62e9
RD
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 resultobj = SWIG_Py_Void();
13674 return resultobj;
13675fail:
13676 return NULL;
13677}
13678
13679
13680SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj = 0;
13682 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13683 wxString *arg2 = 0 ;
13684 bool result;
13685 void *argp1 = 0 ;
13686 int res1 = 0 ;
13687 bool temp2 = false ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "s", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13698 }
13699 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13700 {
13701 arg2 = wxString_in_helper(obj1);
13702 if (arg2 == NULL) SWIG_fail;
13703 temp2 = true;
13704 }
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 {
13712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13713 }
13714 {
13715 if (temp2)
13716 delete arg2;
13717 }
13718 return resultobj;
13719fail:
13720 {
13721 if (temp2)
13722 delete arg2;
13723 }
13724 return NULL;
d55e5bfc
RD
13725}
13726
13727
554f62e9
RD
13728SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 PyObject *resultobj = 0;
13730 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13731 wxString result;
13732 void *argp1 = 0 ;
13733 int res1 = 0 ;
13734 PyObject *swig_obj[1] ;
13735
13736 if (!args) SWIG_fail;
13737 swig_obj[0] = args;
13738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13739 if (!SWIG_IsOK(res1)) {
13740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13741 }
13742 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 {
13750#if wxUSE_UNICODE
13751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13752#else
13753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13754#endif
13755 }
13756 return resultobj;
13757fail:
13758 return NULL;
d55e5bfc
RD
13759}
13760
13761
554f62e9
RD
13762SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13763 PyObject *obj;
13764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13765 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13766 return SWIG_Py_Void();
d55e5bfc
RD
13767}
13768
554f62e9
RD
13769SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13770 return SWIG_Python_InitShadowInstance(args);
13771}
d55e5bfc 13772
554f62e9
RD
13773SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj = 0;
13775 wxFontEncoding arg1 ;
13776 wxNativeEncodingInfo *result = 0 ;
13777 int val1 ;
13778 int ecode1 = 0 ;
13779 PyObject * obj0 = 0 ;
13780 char * kwnames[] = {
13781 (char *) "encoding", NULL
13782 };
13783
13784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13785 ecode1 = SWIG_AsVal_int(obj0, &val1);
13786 if (!SWIG_IsOK(ecode1)) {
13787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13788 }
13789 arg1 = static_cast< wxFontEncoding >(val1);
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13793 wxPyEndAllowThreads(__tstate);
13794 if (PyErr_Occurred()) SWIG_fail;
13795 }
13796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13797 return resultobj;
13798fail:
13799 return NULL;
13800}
13801
13802
13803SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13804 PyObject *resultobj = 0;
13805 wxNativeEncodingInfo *arg1 = 0 ;
13806 bool result;
13807 void *argp1 = 0 ;
13808 int res1 = 0 ;
13809 PyObject * obj0 = 0 ;
13810 char * kwnames[] = {
13811 (char *) "info", NULL
13812 };
13813
13814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13815 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13816 if (!SWIG_IsOK(res1)) {
13817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13818 }
13819 if (!argp1) {
13820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13821 }
13822 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 {
13830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13831 }
13832 return resultobj;
13833fail:
13834 return NULL;
d55e5bfc
RD
13835}
13836
13837
554f62e9
RD
13838SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13839 PyObject *resultobj = 0;
13840 wxFontMapper *result = 0 ;
13841
13842 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13843 {
13844 PyThreadState* __tstate = wxPyBeginAllowThreads();
13845 result = (wxFontMapper *)new wxFontMapper();
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13850 return resultobj;
13851fail:
13852 return NULL;
d55e5bfc
RD
13853}
13854
13855
554f62e9
RD
13856SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13857 PyObject *resultobj = 0;
13858 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13859 void *argp1 = 0 ;
13860 int res1 = 0 ;
13861 PyObject *swig_obj[1] ;
13862
13863 if (!args) SWIG_fail;
13864 swig_obj[0] = args;
13865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13866 if (!SWIG_IsOK(res1)) {
13867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13868 }
13869 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 delete arg1;
d55e5bfc 13873
554f62e9
RD
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 resultobj = SWIG_Py_Void();
13878 return resultobj;
13879fail:
13880 return NULL;
d55e5bfc
RD
13881}
13882
13883
554f62e9
RD
13884SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13885 PyObject *resultobj = 0;
13886 wxFontMapper *result = 0 ;
13887
13888 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 result = (wxFontMapper *)wxFontMapper::Get();
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13896 return resultobj;
13897fail:
13898 return NULL;
13899}
13900
13901
13902SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = 0;
13904 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13905 wxFontMapper *result = 0 ;
13906 void *argp1 = 0 ;
13907 int res1 = 0 ;
13908 PyObject * obj0 = 0 ;
13909 char * kwnames[] = {
13910 (char *) "mapper", NULL
13911 };
13912
13913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13915 if (!SWIG_IsOK(res1)) {
13916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13917 }
13918 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13919 {
13920 PyThreadState* __tstate = wxPyBeginAllowThreads();
13921 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13926 return resultobj;
13927fail:
13928 return NULL;
13929}
13930
13931
13932SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj = 0;
13934 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13935 wxString *arg2 = 0 ;
13936 bool arg3 = (bool) true ;
13937 wxFontEncoding result;
13938 void *argp1 = 0 ;
13939 int res1 = 0 ;
13940 bool temp2 = false ;
13941 bool val3 ;
13942 int ecode3 = 0 ;
13943 PyObject * obj0 = 0 ;
13944 PyObject * obj1 = 0 ;
13945 PyObject * obj2 = 0 ;
13946 char * kwnames[] = {
13947 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13948 };
13949
13950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13952 if (!SWIG_IsOK(res1)) {
13953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13954 }
13955 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13956 {
13957 arg2 = wxString_in_helper(obj1);
13958 if (arg2 == NULL) SWIG_fail;
13959 temp2 = true;
13960 }
13961 if (obj2) {
13962 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13963 if (!SWIG_IsOK(ecode3)) {
13964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13965 }
13966 arg3 = static_cast< bool >(val3);
13967 }
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 resultobj = SWIG_From_int(static_cast< int >(result));
13975 {
13976 if (temp2)
13977 delete arg2;
13978 }
13979 return resultobj;
13980fail:
13981 {
13982 if (temp2)
13983 delete arg2;
13984 }
13985 return NULL;
d55e5bfc
RD
13986}
13987
13988
554f62e9
RD
13989SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13990 PyObject *resultobj = 0;
13991 size_t result;
13992
13993 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
14001 return resultobj;
14002fail:
14003 return NULL;
14004}
14005
14006
14007SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14008 PyObject *resultobj = 0;
14009 size_t arg1 ;
14010 wxFontEncoding result;
14011 size_t val1 ;
14012 int ecode1 = 0 ;
14013 PyObject * obj0 = 0 ;
14014 char * kwnames[] = {
14015 (char *) "n", NULL
14016 };
14017
14018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14019 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14020 if (!SWIG_IsOK(ecode1)) {
14021 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14022 }
14023 arg1 = static_cast< size_t >(val1);
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 resultobj = SWIG_From_int(static_cast< int >(result));
14031 return resultobj;
14032fail:
14033 return NULL;
14034}
14035
14036
14037SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14038 PyObject *resultobj = 0;
14039 wxFontEncoding arg1 ;
14040 wxString result;
14041 int val1 ;
14042 int ecode1 = 0 ;
14043 PyObject * obj0 = 0 ;
14044 char * kwnames[] = {
14045 (char *) "encoding", NULL
14046 };
14047
14048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14049 ecode1 = SWIG_AsVal_int(obj0, &val1);
14050 if (!SWIG_IsOK(ecode1)) {
14051 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14052 }
14053 arg1 = static_cast< wxFontEncoding >(val1);
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 result = wxFontMapper::GetEncodingName(arg1);
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 {
14061#if wxUSE_UNICODE
14062 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14063#else
14064 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14065#endif
14066 }
14067 return resultobj;
14068fail:
14069 return NULL;
d55e5bfc
RD
14070}
14071
14072
554f62e9
RD
14073SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14074 PyObject *resultobj = 0;
14075 wxFontEncoding arg1 ;
14076 wxString result;
14077 int val1 ;
14078 int ecode1 = 0 ;
14079 PyObject * obj0 = 0 ;
14080 char * kwnames[] = {
14081 (char *) "encoding", NULL
14082 };
14083
14084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14085 ecode1 = SWIG_AsVal_int(obj0, &val1);
14086 if (!SWIG_IsOK(ecode1)) {
14087 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14088 }
14089 arg1 = static_cast< wxFontEncoding >(val1);
14090 {
14091 PyThreadState* __tstate = wxPyBeginAllowThreads();
14092 result = wxFontMapper::GetEncodingDescription(arg1);
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
14096 {
14097#if wxUSE_UNICODE
14098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14099#else
14100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14101#endif
14102 }
14103 return resultobj;
14104fail:
14105 return NULL;
d55e5bfc
RD
14106}
14107
14108
554f62e9
RD
14109SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14110 PyObject *resultobj = 0;
14111 wxString *arg1 = 0 ;
14112 wxFontEncoding result;
14113 bool temp1 = false ;
14114 PyObject * obj0 = 0 ;
14115 char * kwnames[] = {
14116 (char *) "name", NULL
14117 };
14118
14119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14120 {
14121 arg1 = wxString_in_helper(obj0);
14122 if (arg1 == NULL) SWIG_fail;
14123 temp1 = true;
14124 }
14125 {
14126 PyThreadState* __tstate = wxPyBeginAllowThreads();
14127 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14128 wxPyEndAllowThreads(__tstate);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 resultobj = SWIG_From_int(static_cast< int >(result));
14132 {
14133 if (temp1)
14134 delete arg1;
14135 }
14136 return resultobj;
14137fail:
14138 {
14139 if (temp1)
14140 delete arg1;
14141 }
14142 return NULL;
d55e5bfc
RD
14143}
14144
14145
554f62e9
RD
14146SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj = 0;
14148 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14149 wxString *arg2 = 0 ;
14150 void *argp1 = 0 ;
14151 int res1 = 0 ;
14152 bool temp2 = false ;
14153 PyObject * obj0 = 0 ;
14154 PyObject * obj1 = 0 ;
14155 char * kwnames[] = {
14156 (char *) "self",(char *) "prefix", NULL
14157 };
14158
14159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14161 if (!SWIG_IsOK(res1)) {
14162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14163 }
14164 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14165 {
14166 arg2 = wxString_in_helper(obj1);
14167 if (arg2 == NULL) SWIG_fail;
14168 temp2 = true;
14169 }
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 (arg1)->SetConfigPath((wxString const &)*arg2);
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_Py_Void();
14177 {
14178 if (temp2)
14179 delete arg2;
14180 }
14181 return resultobj;
14182fail:
14183 {
14184 if (temp2)
14185 delete arg2;
14186 }
14187 return NULL;
d55e5bfc
RD
14188}
14189
14190
554f62e9
RD
14191SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxString result;
14194
14195 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14196 {
14197 PyThreadState* __tstate = wxPyBeginAllowThreads();
14198 result = wxFontMapper::GetDefaultConfigPath();
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 {
14203#if wxUSE_UNICODE
14204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14205#else
14206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14207#endif
14208 }
14209 return resultobj;
14210fail:
14211 return NULL;
14212}
14213
14214
14215SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14216 PyObject *resultobj = 0;
14217 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14218 wxFontEncoding arg2 ;
14219 wxString const &arg3_defvalue = wxPyEmptyString ;
14220 wxString *arg3 = (wxString *) &arg3_defvalue ;
14221 bool arg4 = (bool) true ;
14222 PyObject *result = 0 ;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 int val2 ;
14226 int ecode2 = 0 ;
14227 bool temp3 = false ;
14228 bool val4 ;
14229 int ecode4 = 0 ;
14230 PyObject * obj0 = 0 ;
14231 PyObject * obj1 = 0 ;
14232 PyObject * obj2 = 0 ;
14233 PyObject * obj3 = 0 ;
14234 char * kwnames[] = {
14235 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14236 };
14237
14238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14240 if (!SWIG_IsOK(res1)) {
14241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14242 }
14243 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14244 ecode2 = SWIG_AsVal_int(obj1, &val2);
14245 if (!SWIG_IsOK(ecode2)) {
14246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14247 }
14248 arg2 = static_cast< wxFontEncoding >(val2);
14249 if (obj2) {
d55e5bfc 14250 {
554f62e9
RD
14251 arg3 = wxString_in_helper(obj2);
14252 if (arg3 == NULL) SWIG_fail;
14253 temp3 = true;
d55e5bfc 14254 }
554f62e9
RD
14255 }
14256 if (obj3) {
14257 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14258 if (!SWIG_IsOK(ecode4)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14260 }
14261 arg4 = static_cast< bool >(val4);
14262 }
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 resultobj = result;
14270 {
14271 if (temp3)
14272 delete arg3;
14273 }
14274 return resultobj;
14275fail:
14276 {
14277 if (temp3)
14278 delete arg3;
14279 }
14280 return NULL;
14281}
14282
14283
14284SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14285 PyObject *resultobj = 0;
14286 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14287 wxFontEncoding arg2 ;
14288 wxString const &arg3_defvalue = wxPyEmptyString ;
14289 wxString *arg3 = (wxString *) &arg3_defvalue ;
14290 bool result;
14291 void *argp1 = 0 ;
14292 int res1 = 0 ;
14293 int val2 ;
14294 int ecode2 = 0 ;
14295 bool temp3 = false ;
14296 PyObject * obj0 = 0 ;
14297 PyObject * obj1 = 0 ;
14298 PyObject * obj2 = 0 ;
14299 char * kwnames[] = {
14300 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14301 };
14302
14303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14305 if (!SWIG_IsOK(res1)) {
14306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14307 }
14308 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14309 ecode2 = SWIG_AsVal_int(obj1, &val2);
14310 if (!SWIG_IsOK(ecode2)) {
14311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14312 }
14313 arg2 = static_cast< wxFontEncoding >(val2);
14314 if (obj2) {
093d3ff1 14315 {
554f62e9
RD
14316 arg3 = wxString_in_helper(obj2);
14317 if (arg3 == NULL) SWIG_fail;
14318 temp3 = true;
d55e5bfc 14319 }
554f62e9
RD
14320 }
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14324 wxPyEndAllowThreads(__tstate);
14325 if (PyErr_Occurred()) SWIG_fail;
14326 }
14327 {
14328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14329 }
14330 {
14331 if (temp3)
14332 delete arg3;
14333 }
14334 return resultobj;
14335fail:
14336 {
14337 if (temp3)
14338 delete arg3;
14339 }
14340 return NULL;
14341}
14342
14343
14344SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14345 PyObject *resultobj = 0;
14346 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14347 wxWindow *arg2 = (wxWindow *) 0 ;
14348 void *argp1 = 0 ;
14349 int res1 = 0 ;
14350 void *argp2 = 0 ;
14351 int res2 = 0 ;
14352 PyObject * obj0 = 0 ;
14353 PyObject * obj1 = 0 ;
14354 char * kwnames[] = {
14355 (char *) "self",(char *) "parent", NULL
14356 };
14357
14358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14360 if (!SWIG_IsOK(res1)) {
14361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14362 }
14363 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14365 if (!SWIG_IsOK(res2)) {
14366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14367 }
14368 arg2 = reinterpret_cast< wxWindow * >(argp2);
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 (arg1)->SetDialogParent(arg2);
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 resultobj = SWIG_Py_Void();
14376 return resultobj;
14377fail:
14378 return NULL;
14379}
14380
14381
14382SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14383 PyObject *resultobj = 0;
14384 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14385 wxString *arg2 = 0 ;
14386 void *argp1 = 0 ;
14387 int res1 = 0 ;
14388 bool temp2 = false ;
14389 PyObject * obj0 = 0 ;
14390 PyObject * obj1 = 0 ;
14391 char * kwnames[] = {
14392 (char *) "self",(char *) "title", NULL
14393 };
14394
14395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14397 if (!SWIG_IsOK(res1)) {
14398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14399 }
14400 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14401 {
14402 arg2 = wxString_in_helper(obj1);
14403 if (arg2 == NULL) SWIG_fail;
14404 temp2 = true;
14405 }
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 (arg1)->SetDialogTitle((wxString const &)*arg2);
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = SWIG_Py_Void();
14413 {
14414 if (temp2)
14415 delete arg2;
14416 }
14417 return resultobj;
14418fail:
14419 {
14420 if (temp2)
14421 delete arg2;
14422 }
14423 return NULL;
14424}
14425
14426
14427SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14428 PyObject *obj;
14429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14430 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14431 return SWIG_Py_Void();
14432}
14433
14434SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14435 return SWIG_Python_InitShadowInstance(args);
14436}
14437
14438SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14439 PyObject *resultobj = 0;
14440 int arg1 ;
14441 int arg2 ;
14442 int arg3 ;
14443 int arg4 ;
14444 bool arg5 = (bool) false ;
14445 wxString const &arg6_defvalue = wxPyEmptyString ;
14446 wxString *arg6 = (wxString *) &arg6_defvalue ;
14447 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14448 wxFont *result = 0 ;
14449 int val1 ;
14450 int ecode1 = 0 ;
14451 int val2 ;
14452 int ecode2 = 0 ;
14453 int val3 ;
14454 int ecode3 = 0 ;
14455 int val4 ;
14456 int ecode4 = 0 ;
14457 bool val5 ;
14458 int ecode5 = 0 ;
14459 bool temp6 = false ;
14460 int val7 ;
14461 int ecode7 = 0 ;
14462 PyObject * obj0 = 0 ;
14463 PyObject * obj1 = 0 ;
14464 PyObject * obj2 = 0 ;
14465 PyObject * obj3 = 0 ;
14466 PyObject * obj4 = 0 ;
14467 PyObject * obj5 = 0 ;
14468 PyObject * obj6 = 0 ;
14469 char * kwnames[] = {
14470 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14471 };
14472
14473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14474 ecode1 = SWIG_AsVal_int(obj0, &val1);
14475 if (!SWIG_IsOK(ecode1)) {
14476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14477 }
14478 arg1 = static_cast< int >(val1);
14479 ecode2 = SWIG_AsVal_int(obj1, &val2);
14480 if (!SWIG_IsOK(ecode2)) {
14481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14482 }
14483 arg2 = static_cast< int >(val2);
14484 ecode3 = SWIG_AsVal_int(obj2, &val3);
14485 if (!SWIG_IsOK(ecode3)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14487 }
14488 arg3 = static_cast< int >(val3);
14489 ecode4 = SWIG_AsVal_int(obj3, &val4);
14490 if (!SWIG_IsOK(ecode4)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14492 }
14493 arg4 = static_cast< int >(val4);
14494 if (obj4) {
14495 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14496 if (!SWIG_IsOK(ecode5)) {
14497 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14498 }
14499 arg5 = static_cast< bool >(val5);
14500 }
14501 if (obj5) {
d55e5bfc 14502 {
554f62e9
RD
14503 arg6 = wxString_in_helper(obj5);
14504 if (arg6 == NULL) SWIG_fail;
14505 temp6 = true;
d55e5bfc 14506 }
554f62e9
RD
14507 }
14508 if (obj6) {
14509 ecode7 = SWIG_AsVal_int(obj6, &val7);
14510 if (!SWIG_IsOK(ecode7)) {
14511 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14512 }
14513 arg7 = static_cast< wxFontEncoding >(val7);
14514 }
14515 {
14516 if (!wxPyCheckForApp()) SWIG_fail;
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14523 {
14524 if (temp6)
14525 delete arg6;
14526 }
14527 return resultobj;
14528fail:
14529 {
14530 if (temp6)
14531 delete arg6;
14532 }
14533 return NULL;
d55e5bfc
RD
14534}
14535
14536
554f62e9
RD
14537SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14538 PyObject *resultobj = 0;
14539 wxFont *arg1 = (wxFont *) 0 ;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 PyObject *swig_obj[1] ;
14543
14544 if (!args) SWIG_fail;
14545 swig_obj[0] = args;
14546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14547 if (!SWIG_IsOK(res1)) {
14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14549 }
14550 arg1 = reinterpret_cast< wxFont * >(argp1);
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 delete arg1;
d55e5bfc 14554
554f62e9
RD
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 resultobj = SWIG_Py_Void();
14559 return resultobj;
14560fail:
14561 return NULL;
14562}
14563
14564
14565SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14566 PyObject *resultobj = 0;
14567 wxNativeFontInfo *arg1 = 0 ;
14568 wxFont *result = 0 ;
14569 void *argp1 = 0 ;
14570 int res1 = 0 ;
14571 PyObject * obj0 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "info", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14580 }
14581 if (!argp1) {
14582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14583 }
14584 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14585 {
14586 if (!wxPyCheckForApp()) SWIG_fail;
14587 PyThreadState* __tstate = wxPyBeginAllowThreads();
14588 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14593 return resultobj;
14594fail:
14595 return NULL;
d55e5bfc
RD
14596}
14597
14598
554f62e9
RD
14599SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj = 0;
14601 wxString *arg1 = 0 ;
14602 wxFont *result = 0 ;
14603 bool temp1 = false ;
14604 PyObject * obj0 = 0 ;
14605 char * kwnames[] = {
14606 (char *) "info", NULL
14607 };
14608
14609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14610 {
14611 arg1 = wxString_in_helper(obj0);
14612 if (arg1 == NULL) SWIG_fail;
14613 temp1 = true;
14614 }
14615 {
14616 if (!wxPyCheckForApp()) SWIG_fail;
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14623 {
14624 if (temp1)
14625 delete arg1;
14626 }
14627 return resultobj;
14628fail:
14629 {
14630 if (temp1)
14631 delete arg1;
14632 }
14633 return NULL;
14634}
14635
14636
14637SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj = 0;
14639 int arg1 ;
14640 wxFontFamily arg2 ;
14641 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14642 wxString const &arg4_defvalue = wxPyEmptyString ;
14643 wxString *arg4 = (wxString *) &arg4_defvalue ;
14644 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14645 wxFont *result = 0 ;
14646 int val1 ;
14647 int ecode1 = 0 ;
14648 int val2 ;
14649 int ecode2 = 0 ;
14650 int val3 ;
14651 int ecode3 = 0 ;
14652 bool temp4 = false ;
14653 int val5 ;
14654 int ecode5 = 0 ;
14655 PyObject * obj0 = 0 ;
14656 PyObject * obj1 = 0 ;
14657 PyObject * obj2 = 0 ;
14658 PyObject * obj3 = 0 ;
14659 PyObject * obj4 = 0 ;
14660 char * kwnames[] = {
14661 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14662 };
14663
14664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14665 ecode1 = SWIG_AsVal_int(obj0, &val1);
14666 if (!SWIG_IsOK(ecode1)) {
14667 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14668 }
14669 arg1 = static_cast< int >(val1);
14670 ecode2 = SWIG_AsVal_int(obj1, &val2);
14671 if (!SWIG_IsOK(ecode2)) {
14672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14673 }
14674 arg2 = static_cast< wxFontFamily >(val2);
14675 if (obj2) {
14676 ecode3 = SWIG_AsVal_int(obj2, &val3);
14677 if (!SWIG_IsOK(ecode3)) {
14678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14679 }
14680 arg3 = static_cast< int >(val3);
14681 }
14682 if (obj3) {
d55e5bfc 14683 {
554f62e9
RD
14684 arg4 = wxString_in_helper(obj3);
14685 if (arg4 == NULL) SWIG_fail;
14686 temp4 = true;
d55e5bfc 14687 }
554f62e9
RD
14688 }
14689 if (obj4) {
14690 ecode5 = SWIG_AsVal_int(obj4, &val5);
14691 if (!SWIG_IsOK(ecode5)) {
14692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14693 }
14694 arg5 = static_cast< wxFontEncoding >(val5);
14695 }
14696 {
14697 if (!wxPyCheckForApp()) SWIG_fail;
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14704 {
14705 if (temp4)
14706 delete arg4;
14707 }
14708 return resultobj;
14709fail:
14710 {
14711 if (temp4)
14712 delete arg4;
14713 }
14714 return NULL;
14715}
14716
14717
14718SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14719 PyObject *resultobj = 0;
14720 wxSize *arg1 = 0 ;
14721 int arg2 ;
14722 int arg3 ;
14723 int arg4 ;
14724 bool arg5 = (bool) false ;
14725 wxString const &arg6_defvalue = wxEmptyString ;
14726 wxString *arg6 = (wxString *) &arg6_defvalue ;
14727 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14728 wxFont *result = 0 ;
14729 wxSize temp1 ;
14730 int val2 ;
14731 int ecode2 = 0 ;
14732 int val3 ;
14733 int ecode3 = 0 ;
14734 int val4 ;
14735 int ecode4 = 0 ;
14736 bool val5 ;
14737 int ecode5 = 0 ;
14738 bool temp6 = false ;
14739 int val7 ;
14740 int ecode7 = 0 ;
14741 PyObject * obj0 = 0 ;
14742 PyObject * obj1 = 0 ;
14743 PyObject * obj2 = 0 ;
14744 PyObject * obj3 = 0 ;
14745 PyObject * obj4 = 0 ;
14746 PyObject * obj5 = 0 ;
14747 PyObject * obj6 = 0 ;
14748 char * kwnames[] = {
14749 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14750 };
14751
14752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14753 {
14754 arg1 = &temp1;
14755 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14756 }
14757 ecode2 = SWIG_AsVal_int(obj1, &val2);
14758 if (!SWIG_IsOK(ecode2)) {
14759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14760 }
14761 arg2 = static_cast< int >(val2);
14762 ecode3 = SWIG_AsVal_int(obj2, &val3);
14763 if (!SWIG_IsOK(ecode3)) {
14764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14765 }
14766 arg3 = static_cast< int >(val3);
14767 ecode4 = SWIG_AsVal_int(obj3, &val4);
14768 if (!SWIG_IsOK(ecode4)) {
14769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14770 }
14771 arg4 = static_cast< int >(val4);
14772 if (obj4) {
14773 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14774 if (!SWIG_IsOK(ecode5)) {
14775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14776 }
14777 arg5 = static_cast< bool >(val5);
14778 }
14779 if (obj5) {
d55e5bfc 14780 {
554f62e9
RD
14781 arg6 = wxString_in_helper(obj5);
14782 if (arg6 == NULL) SWIG_fail;
14783 temp6 = true;
d55e5bfc 14784 }
554f62e9
RD
14785 }
14786 if (obj6) {
14787 ecode7 = SWIG_AsVal_int(obj6, &val7);
14788 if (!SWIG_IsOK(ecode7)) {
14789 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14790 }
14791 arg7 = static_cast< wxFontEncoding >(val7);
14792 }
14793 {
14794 if (!wxPyCheckForApp()) SWIG_fail;
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14801 {
14802 if (temp6)
14803 delete arg6;
14804 }
14805 return resultobj;
14806fail:
14807 {
14808 if (temp6)
14809 delete arg6;
14810 }
14811 return NULL;
14812}
14813
14814
14815SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj = 0;
14817 wxSize *arg1 = 0 ;
14818 wxFontFamily arg2 ;
14819 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14820 wxString const &arg4_defvalue = wxEmptyString ;
14821 wxString *arg4 = (wxString *) &arg4_defvalue ;
14822 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14823 wxFont *result = 0 ;
14824 wxSize temp1 ;
14825 int val2 ;
14826 int ecode2 = 0 ;
14827 int val3 ;
14828 int ecode3 = 0 ;
14829 bool temp4 = false ;
14830 int val5 ;
14831 int ecode5 = 0 ;
14832 PyObject * obj0 = 0 ;
14833 PyObject * obj1 = 0 ;
14834 PyObject * obj2 = 0 ;
14835 PyObject * obj3 = 0 ;
14836 PyObject * obj4 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14842 {
14843 arg1 = &temp1;
14844 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14845 }
14846 ecode2 = SWIG_AsVal_int(obj1, &val2);
14847 if (!SWIG_IsOK(ecode2)) {
14848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14849 }
14850 arg2 = static_cast< wxFontFamily >(val2);
14851 if (obj2) {
14852 ecode3 = SWIG_AsVal_int(obj2, &val3);
14853 if (!SWIG_IsOK(ecode3)) {
14854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14855 }
14856 arg3 = static_cast< int >(val3);
14857 }
14858 if (obj3) {
d55e5bfc 14859 {
554f62e9
RD
14860 arg4 = wxString_in_helper(obj3);
14861 if (arg4 == NULL) SWIG_fail;
14862 temp4 = true;
d55e5bfc 14863 }
554f62e9
RD
14864 }
14865 if (obj4) {
14866 ecode5 = SWIG_AsVal_int(obj4, &val5);
14867 if (!SWIG_IsOK(ecode5)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14869 }
14870 arg5 = static_cast< wxFontEncoding >(val5);
14871 }
14872 {
14873 if (!wxPyCheckForApp()) SWIG_fail;
14874 PyThreadState* __tstate = wxPyBeginAllowThreads();
14875 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14876 wxPyEndAllowThreads(__tstate);
14877 if (PyErr_Occurred()) SWIG_fail;
14878 }
14879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14880 {
14881 if (temp4)
14882 delete arg4;
14883 }
14884 return resultobj;
14885fail:
14886 {
14887 if (temp4)
14888 delete arg4;
14889 }
14890 return NULL;
d55e5bfc
RD
14891}
14892
14893
b39fe951 14894SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14895 PyObject *resultobj = 0;
14896 wxFont *arg1 = (wxFont *) 0 ;
14897 bool result;
14898 void *argp1 = 0 ;
14899 int res1 = 0 ;
14900 PyObject *swig_obj[1] ;
14901
14902 if (!args) SWIG_fail;
14903 swig_obj[0] = args;
14904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
b39fe951 14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14907 }
14908 arg1 = reinterpret_cast< wxFont * >(argp1);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14911 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 {
14916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14917 }
14918 return resultobj;
14919fail:
14920 return NULL;
14921}
14922
14923
14924SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj = 0;
14926 wxFont *arg1 = (wxFont *) 0 ;
14927 wxFont *arg2 = (wxFont *) 0 ;
14928 bool result;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 void *argp2 = 0 ;
14932 int res2 = 0 ;
14933 PyObject * obj0 = 0 ;
14934 PyObject * obj1 = 0 ;
14935 char * kwnames[] = {
14936 (char *) "self",(char *) "other", NULL
14937 };
14938
14939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14943 }
14944 arg1 = reinterpret_cast< wxFont * >(argp1);
14945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14946 if (!SWIG_IsOK(res2)) {
14947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14948 }
14949 arg2 = reinterpret_cast< wxFont * >(argp2);
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14958 }
14959 return resultobj;
14960fail:
14961 return NULL;
14962}
14963
14964
14965SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14966 PyObject *resultobj = 0;
14967 wxFont *arg1 = (wxFont *) 0 ;
14968 wxFont *arg2 = (wxFont *) 0 ;
14969 bool result;
14970 void *argp1 = 0 ;
14971 int res1 = 0 ;
14972 void *argp2 = 0 ;
14973 int res2 = 0 ;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 char * kwnames[] = {
14977 (char *) "self",(char *) "other", NULL
14978 };
14979
14980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14982 if (!SWIG_IsOK(res1)) {
14983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14984 }
14985 arg1 = reinterpret_cast< wxFont * >(argp1);
14986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14987 if (!SWIG_IsOK(res2)) {
14988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14989 }
14990 arg2 = reinterpret_cast< wxFont * >(argp2);
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 {
14998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14999 }
15000 return resultobj;
15001fail:
15002 return NULL;
a2569024
RD
15003}
15004
15005
554f62e9
RD
15006SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15007 PyObject *resultobj = 0;
15008 wxFont *arg1 = (wxFont *) 0 ;
15009 int result;
15010 void *argp1 = 0 ;
15011 int res1 = 0 ;
15012 PyObject *swig_obj[1] ;
15013
15014 if (!args) SWIG_fail;
15015 swig_obj[0] = args;
15016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15017 if (!SWIG_IsOK(res1)) {
15018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15019 }
15020 arg1 = reinterpret_cast< wxFont * >(argp1);
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 result = (int)((wxFont const *)arg1)->GetPointSize();
15024 wxPyEndAllowThreads(__tstate);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 }
15027 resultobj = SWIG_From_int(static_cast< int >(result));
15028 return resultobj;
15029fail:
15030 return NULL;
d55e5bfc
RD
15031}
15032
15033
554f62e9
RD
15034SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15035 PyObject *resultobj = 0;
15036 wxFont *arg1 = (wxFont *) 0 ;
15037 wxSize result;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 PyObject *swig_obj[1] ;
15041
15042 if (!args) SWIG_fail;
15043 swig_obj[0] = args;
15044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15045 if (!SWIG_IsOK(res1)) {
15046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15047 }
15048 arg1 = reinterpret_cast< wxFont * >(argp1);
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 result = ((wxFont const *)arg1)->GetPixelSize();
15052 wxPyEndAllowThreads(__tstate);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 }
15055 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15056 return resultobj;
15057fail:
15058 return NULL;
d55e5bfc
RD
15059}
15060
15061
554f62e9
RD
15062SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15063 PyObject *resultobj = 0;
15064 wxFont *arg1 = (wxFont *) 0 ;
15065 bool result;
15066 void *argp1 = 0 ;
15067 int res1 = 0 ;
15068 PyObject *swig_obj[1] ;
15069
15070 if (!args) SWIG_fail;
15071 swig_obj[0] = args;
15072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15073 if (!SWIG_IsOK(res1)) {
15074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15075 }
15076 arg1 = reinterpret_cast< wxFont * >(argp1);
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 {
15084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15085 }
15086 return resultobj;
15087fail:
15088 return NULL;
d55e5bfc
RD
15089}
15090
15091
554f62e9
RD
15092SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15093 PyObject *resultobj = 0;
15094 wxFont *arg1 = (wxFont *) 0 ;
15095 int result;
15096 void *argp1 = 0 ;
15097 int res1 = 0 ;
15098 PyObject *swig_obj[1] ;
15099
15100 if (!args) SWIG_fail;
15101 swig_obj[0] = args;
15102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15103 if (!SWIG_IsOK(res1)) {
15104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15105 }
15106 arg1 = reinterpret_cast< wxFont * >(argp1);
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (int)((wxFont const *)arg1)->GetFamily();
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = SWIG_From_int(static_cast< int >(result));
15114 return resultobj;
15115fail:
15116 return NULL;
d55e5bfc
RD
15117}
15118
15119
554f62e9
RD
15120SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15121 PyObject *resultobj = 0;
15122 wxFont *arg1 = (wxFont *) 0 ;
15123 int result;
15124 void *argp1 = 0 ;
15125 int res1 = 0 ;
15126 PyObject *swig_obj[1] ;
15127
15128 if (!args) SWIG_fail;
15129 swig_obj[0] = args;
15130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15131 if (!SWIG_IsOK(res1)) {
15132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15133 }
15134 arg1 = reinterpret_cast< wxFont * >(argp1);
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 result = (int)((wxFont const *)arg1)->GetStyle();
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_From_int(static_cast< int >(result));
15142 return resultobj;
15143fail:
15144 return NULL;
d55e5bfc
RD
15145}
15146
15147
554f62e9
RD
15148SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15149 PyObject *resultobj = 0;
15150 wxFont *arg1 = (wxFont *) 0 ;
15151 int result;
15152 void *argp1 = 0 ;
15153 int res1 = 0 ;
15154 PyObject *swig_obj[1] ;
15155
15156 if (!args) SWIG_fail;
15157 swig_obj[0] = args;
15158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15159 if (!SWIG_IsOK(res1)) {
15160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15161 }
15162 arg1 = reinterpret_cast< wxFont * >(argp1);
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (int)((wxFont const *)arg1)->GetWeight();
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_From_int(static_cast< int >(result));
15170 return resultobj;
15171fail:
15172 return NULL;
d55e5bfc
RD
15173}
15174
15175
554f62e9
RD
15176SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15177 PyObject *resultobj = 0;
15178 wxFont *arg1 = (wxFont *) 0 ;
15179 bool result;
15180 void *argp1 = 0 ;
15181 int res1 = 0 ;
15182 PyObject *swig_obj[1] ;
15183
15184 if (!args) SWIG_fail;
15185 swig_obj[0] = args;
15186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15187 if (!SWIG_IsOK(res1)) {
15188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15189 }
15190 arg1 = reinterpret_cast< wxFont * >(argp1);
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15199 }
15200 return resultobj;
15201fail:
15202 return NULL;
d55e5bfc
RD
15203}
15204
15205
554f62e9
RD
15206SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15207 PyObject *resultobj = 0;
15208 wxFont *arg1 = (wxFont *) 0 ;
15209 wxString result;
15210 void *argp1 = 0 ;
15211 int res1 = 0 ;
15212 PyObject *swig_obj[1] ;
15213
15214 if (!args) SWIG_fail;
15215 swig_obj[0] = args;
15216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15217 if (!SWIG_IsOK(res1)) {
15218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15219 }
15220 arg1 = reinterpret_cast< wxFont * >(argp1);
15221 {
15222 PyThreadState* __tstate = wxPyBeginAllowThreads();
15223 result = ((wxFont const *)arg1)->GetFaceName();
15224 wxPyEndAllowThreads(__tstate);
15225 if (PyErr_Occurred()) SWIG_fail;
15226 }
15227 {
15228#if wxUSE_UNICODE
15229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15230#else
15231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15232#endif
15233 }
15234 return resultobj;
15235fail:
15236 return NULL;
d55e5bfc
RD
15237}
15238
15239
554f62e9
RD
15240SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15241 PyObject *resultobj = 0;
15242 wxFont *arg1 = (wxFont *) 0 ;
15243 wxFontEncoding result;
15244 void *argp1 = 0 ;
15245 int res1 = 0 ;
15246 PyObject *swig_obj[1] ;
15247
15248 if (!args) SWIG_fail;
15249 swig_obj[0] = args;
15250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15251 if (!SWIG_IsOK(res1)) {
15252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15253 }
15254 arg1 = reinterpret_cast< wxFont * >(argp1);
15255 {
15256 PyThreadState* __tstate = wxPyBeginAllowThreads();
15257 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 resultobj = SWIG_From_int(static_cast< int >(result));
15262 return resultobj;
15263fail:
15264 return NULL;
d55e5bfc
RD
15265}
15266
15267
554f62e9
RD
15268SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15269 PyObject *resultobj = 0;
15270 wxFont *arg1 = (wxFont *) 0 ;
15271 wxNativeFontInfo *result = 0 ;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 PyObject *swig_obj[1] ;
15275
15276 if (!args) SWIG_fail;
15277 swig_obj[0] = args;
15278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15279 if (!SWIG_IsOK(res1)) {
15280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15281 }
15282 arg1 = reinterpret_cast< wxFont * >(argp1);
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15290 return resultobj;
15291fail:
15292 return NULL;
d55e5bfc
RD
15293}
15294
15295
554f62e9
RD
15296SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15297 PyObject *resultobj = 0;
15298 wxFont *arg1 = (wxFont *) 0 ;
15299 bool result;
15300 void *argp1 = 0 ;
15301 int res1 = 0 ;
15302 PyObject *swig_obj[1] ;
15303
15304 if (!args) SWIG_fail;
15305 swig_obj[0] = args;
15306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15307 if (!SWIG_IsOK(res1)) {
15308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15309 }
15310 arg1 = reinterpret_cast< wxFont * >(argp1);
15311 {
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 {
15318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15319 }
15320 return resultobj;
15321fail:
15322 return NULL;
d55e5bfc
RD
15323}
15324
15325
554f62e9
RD
15326SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15327 PyObject *resultobj = 0;
15328 wxFont *arg1 = (wxFont *) 0 ;
15329 wxString result;
15330 void *argp1 = 0 ;
15331 int res1 = 0 ;
15332 PyObject *swig_obj[1] ;
15333
15334 if (!args) SWIG_fail;
15335 swig_obj[0] = args;
15336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15337 if (!SWIG_IsOK(res1)) {
15338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15339 }
15340 arg1 = reinterpret_cast< wxFont * >(argp1);
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 {
15348#if wxUSE_UNICODE
15349 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15350#else
15351 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15352#endif
15353 }
15354 return resultobj;
15355fail:
15356 return NULL;
d55e5bfc
RD
15357}
15358
15359
554f62e9
RD
15360SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15361 PyObject *resultobj = 0;
15362 wxFont *arg1 = (wxFont *) 0 ;
15363 wxString result;
15364 void *argp1 = 0 ;
15365 int res1 = 0 ;
15366 PyObject *swig_obj[1] ;
15367
15368 if (!args) SWIG_fail;
15369 swig_obj[0] = args;
15370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15371 if (!SWIG_IsOK(res1)) {
15372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15373 }
15374 arg1 = reinterpret_cast< wxFont * >(argp1);
15375 {
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 {
15382#if wxUSE_UNICODE
15383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15384#else
15385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15386#endif
15387 }
15388 return resultobj;
15389fail:
15390 return NULL;
15391}
15392
15393
15394SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15395 PyObject *resultobj = 0;
15396 wxFont *arg1 = (wxFont *) 0 ;
15397 int arg2 ;
15398 void *argp1 = 0 ;
15399 int res1 = 0 ;
15400 int val2 ;
15401 int ecode2 = 0 ;
15402 PyObject * obj0 = 0 ;
15403 PyObject * obj1 = 0 ;
15404 char * kwnames[] = {
15405 (char *) "self",(char *) "pointSize", NULL
15406 };
15407
15408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15410 if (!SWIG_IsOK(res1)) {
15411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15412 }
15413 arg1 = reinterpret_cast< wxFont * >(argp1);
15414 ecode2 = SWIG_AsVal_int(obj1, &val2);
15415 if (!SWIG_IsOK(ecode2)) {
15416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15417 }
15418 arg2 = static_cast< int >(val2);
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 (arg1)->SetPointSize(arg2);
15422 wxPyEndAllowThreads(__tstate);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 resultobj = SWIG_Py_Void();
15426 return resultobj;
15427fail:
15428 return NULL;
15429}
15430
15431
15432SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15433 PyObject *resultobj = 0;
15434 wxFont *arg1 = (wxFont *) 0 ;
15435 wxSize *arg2 = 0 ;
15436 void *argp1 = 0 ;
15437 int res1 = 0 ;
15438 wxSize temp2 ;
15439 PyObject * obj0 = 0 ;
15440 PyObject * obj1 = 0 ;
15441 char * kwnames[] = {
15442 (char *) "self",(char *) "pixelSize", NULL
15443 };
15444
15445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15449 }
15450 arg1 = reinterpret_cast< wxFont * >(argp1);
15451 {
15452 arg2 = &temp2;
15453 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15454 }
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 (arg1)->SetPixelSize((wxSize const &)*arg2);
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_Py_Void();
15462 return resultobj;
15463fail:
15464 return NULL;
15465}
15466
15467
15468SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj = 0;
15470 wxFont *arg1 = (wxFont *) 0 ;
15471 int arg2 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 int val2 ;
15475 int ecode2 = 0 ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 char * kwnames[] = {
15479 (char *) "self",(char *) "family", NULL
15480 };
15481
15482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15486 }
15487 arg1 = reinterpret_cast< wxFont * >(argp1);
15488 ecode2 = SWIG_AsVal_int(obj1, &val2);
15489 if (!SWIG_IsOK(ecode2)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15491 }
15492 arg2 = static_cast< int >(val2);
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 (arg1)->SetFamily(arg2);
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_Py_Void();
15500 return resultobj;
15501fail:
15502 return NULL;
15503}
15504
15505
15506SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj = 0;
15508 wxFont *arg1 = (wxFont *) 0 ;
15509 int arg2 ;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 int val2 ;
15513 int ecode2 = 0 ;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 char * kwnames[] = {
15517 (char *) "self",(char *) "style", NULL
15518 };
15519
15520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15522 if (!SWIG_IsOK(res1)) {
15523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15524 }
15525 arg1 = reinterpret_cast< wxFont * >(argp1);
15526 ecode2 = SWIG_AsVal_int(obj1, &val2);
15527 if (!SWIG_IsOK(ecode2)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15529 }
15530 arg2 = static_cast< int >(val2);
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 (arg1)->SetStyle(arg2);
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 resultobj = SWIG_Py_Void();
15538 return resultobj;
15539fail:
15540 return NULL;
15541}
15542
15543
15544SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj = 0;
15546 wxFont *arg1 = (wxFont *) 0 ;
15547 int arg2 ;
15548 void *argp1 = 0 ;
15549 int res1 = 0 ;
15550 int val2 ;
15551 int ecode2 = 0 ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 char * kwnames[] = {
15555 (char *) "self",(char *) "weight", NULL
15556 };
15557
15558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15562 }
15563 arg1 = reinterpret_cast< wxFont * >(argp1);
15564 ecode2 = SWIG_AsVal_int(obj1, &val2);
15565 if (!SWIG_IsOK(ecode2)) {
15566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15567 }
15568 arg2 = static_cast< int >(val2);
15569 {
15570 PyThreadState* __tstate = wxPyBeginAllowThreads();
15571 (arg1)->SetWeight(arg2);
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 resultobj = SWIG_Py_Void();
15576 return resultobj;
15577fail:
15578 return NULL;
15579}
15580
15581
15582SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj = 0;
15584 wxFont *arg1 = (wxFont *) 0 ;
15585 wxString *arg2 = 0 ;
704eda0c 15586 bool result;
554f62e9
RD
15587 void *argp1 = 0 ;
15588 int res1 = 0 ;
15589 bool temp2 = false ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char * kwnames[] = {
15593 (char *) "self",(char *) "faceName", NULL
15594 };
15595
15596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15598 if (!SWIG_IsOK(res1)) {
15599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15600 }
15601 arg1 = reinterpret_cast< wxFont * >(argp1);
15602 {
15603 arg2 = wxString_in_helper(obj1);
15604 if (arg2 == NULL) SWIG_fail;
15605 temp2 = true;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15609 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
704eda0c
RD
15613 {
15614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15615 }
554f62e9
RD
15616 {
15617 if (temp2)
15618 delete arg2;
15619 }
15620 return resultobj;
15621fail:
15622 {
15623 if (temp2)
15624 delete arg2;
15625 }
15626 return NULL;
15627}
15628
15629
15630SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15631 PyObject *resultobj = 0;
15632 wxFont *arg1 = (wxFont *) 0 ;
15633 bool arg2 ;
15634 void *argp1 = 0 ;
15635 int res1 = 0 ;
15636 bool val2 ;
15637 int ecode2 = 0 ;
15638 PyObject * obj0 = 0 ;
15639 PyObject * obj1 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "self",(char *) "underlined", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15646 if (!SWIG_IsOK(res1)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15648 }
15649 arg1 = reinterpret_cast< wxFont * >(argp1);
15650 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15651 if (!SWIG_IsOK(ecode2)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15653 }
15654 arg2 = static_cast< bool >(val2);
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 (arg1)->SetUnderlined(arg2);
15658 wxPyEndAllowThreads(__tstate);
15659 if (PyErr_Occurred()) SWIG_fail;
15660 }
15661 resultobj = SWIG_Py_Void();
15662 return resultobj;
15663fail:
15664 return NULL;
15665}
15666
15667
15668SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15669 PyObject *resultobj = 0;
15670 wxFont *arg1 = (wxFont *) 0 ;
15671 wxFontEncoding arg2 ;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 int val2 ;
15675 int ecode2 = 0 ;
15676 PyObject * obj0 = 0 ;
15677 PyObject * obj1 = 0 ;
15678 char * kwnames[] = {
15679 (char *) "self",(char *) "encoding", NULL
15680 };
15681
15682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15684 if (!SWIG_IsOK(res1)) {
15685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15686 }
15687 arg1 = reinterpret_cast< wxFont * >(argp1);
15688 ecode2 = SWIG_AsVal_int(obj1, &val2);
15689 if (!SWIG_IsOK(ecode2)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15691 }
15692 arg2 = static_cast< wxFontEncoding >(val2);
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 (arg1)->SetEncoding(arg2);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 return resultobj;
15701fail:
15702 return NULL;
15703}
15704
15705
15706SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj = 0;
15708 wxFont *arg1 = (wxFont *) 0 ;
15709 wxNativeFontInfo *arg2 = 0 ;
15710 void *argp1 = 0 ;
15711 int res1 = 0 ;
15712 void *argp2 = 0 ;
15713 int res2 = 0 ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 char * kwnames[] = {
15717 (char *) "self",(char *) "info", NULL
15718 };
15719
15720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15724 }
15725 arg1 = reinterpret_cast< wxFont * >(argp1);
15726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15727 if (!SWIG_IsOK(res2)) {
15728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15729 }
15730 if (!argp2) {
15731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15732 }
15733 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 resultobj = SWIG_Py_Void();
15741 return resultobj;
15742fail:
15743 return NULL;
15744}
15745
15746
15747SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15748 PyObject *resultobj = 0;
15749 wxFont *arg1 = (wxFont *) 0 ;
15750 wxString *arg2 = 0 ;
704eda0c 15751 bool result;
554f62e9
RD
15752 void *argp1 = 0 ;
15753 int res1 = 0 ;
15754 bool temp2 = false ;
15755 PyObject * obj0 = 0 ;
15756 PyObject * obj1 = 0 ;
15757 char * kwnames[] = {
15758 (char *) "self",(char *) "info", NULL
15759 };
15760
15761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15763 if (!SWIG_IsOK(res1)) {
15764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15765 }
15766 arg1 = reinterpret_cast< wxFont * >(argp1);
15767 {
15768 arg2 = wxString_in_helper(obj1);
15769 if (arg2 == NULL) SWIG_fail;
15770 temp2 = true;
15771 }
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15774 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
704eda0c
RD
15778 {
15779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15780 }
554f62e9
RD
15781 {
15782 if (temp2)
15783 delete arg2;
15784 }
15785 return resultobj;
15786fail:
15787 {
15788 if (temp2)
15789 delete arg2;
15790 }
15791 return NULL;
d55e5bfc
RD
15792}
15793
15794
554f62e9
RD
15795SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15796 PyObject *resultobj = 0;
15797 wxFont *arg1 = (wxFont *) 0 ;
15798 wxString *arg2 = 0 ;
704eda0c 15799 bool result;
554f62e9
RD
15800 void *argp1 = 0 ;
15801 int res1 = 0 ;
15802 bool temp2 = false ;
15803 PyObject * obj0 = 0 ;
15804 PyObject * obj1 = 0 ;
15805 char * kwnames[] = {
15806 (char *) "self",(char *) "info", NULL
15807 };
15808
15809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15811 if (!SWIG_IsOK(res1)) {
15812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15813 }
15814 arg1 = reinterpret_cast< wxFont * >(argp1);
15815 {
15816 arg2 = wxString_in_helper(obj1);
15817 if (arg2 == NULL) SWIG_fail;
15818 temp2 = true;
15819 }
15820 {
15821 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15822 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
704eda0c
RD
15826 {
15827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15828 }
554f62e9
RD
15829 {
15830 if (temp2)
15831 delete arg2;
15832 }
15833 return resultobj;
15834fail:
15835 {
15836 if (temp2)
15837 delete arg2;
15838 }
15839 return NULL;
d55e5bfc
RD
15840}
15841
15842
554f62e9
RD
15843SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15844 PyObject *resultobj = 0;
15845 wxFont *arg1 = (wxFont *) 0 ;
15846 wxString result;
15847 void *argp1 = 0 ;
15848 int res1 = 0 ;
15849 PyObject *swig_obj[1] ;
15850
15851 if (!args) SWIG_fail;
15852 swig_obj[0] = args;
15853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15854 if (!SWIG_IsOK(res1)) {
15855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15856 }
15857 arg1 = reinterpret_cast< wxFont * >(argp1);
15858 {
15859 PyThreadState* __tstate = wxPyBeginAllowThreads();
15860 result = ((wxFont const *)arg1)->GetFamilyString();
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 {
15865#if wxUSE_UNICODE
15866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15867#else
15868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15869#endif
15870 }
15871 return resultobj;
15872fail:
15873 return NULL;
d55e5bfc
RD
15874}
15875
15876
554f62e9
RD
15877SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15878 PyObject *resultobj = 0;
15879 wxFont *arg1 = (wxFont *) 0 ;
15880 wxString result;
15881 void *argp1 = 0 ;
15882 int res1 = 0 ;
15883 PyObject *swig_obj[1] ;
15884
15885 if (!args) SWIG_fail;
15886 swig_obj[0] = args;
15887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15888 if (!SWIG_IsOK(res1)) {
15889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15890 }
15891 arg1 = reinterpret_cast< wxFont * >(argp1);
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = ((wxFont const *)arg1)->GetStyleString();
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 {
15899#if wxUSE_UNICODE
15900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15901#else
15902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15903#endif
15904 }
15905 return resultobj;
15906fail:
15907 return NULL;
d55e5bfc
RD
15908}
15909
15910
554f62e9
RD
15911SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15912 PyObject *resultobj = 0;
15913 wxFont *arg1 = (wxFont *) 0 ;
15914 wxString result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 PyObject *swig_obj[1] ;
15918
15919 if (!args) SWIG_fail;
15920 swig_obj[0] = args;
15921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15922 if (!SWIG_IsOK(res1)) {
15923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15924 }
15925 arg1 = reinterpret_cast< wxFont * >(argp1);
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 result = ((wxFont const *)arg1)->GetWeightString();
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933#if wxUSE_UNICODE
15934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15935#else
15936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15937#endif
15938 }
15939 return resultobj;
15940fail:
15941 return NULL;
15942}
15943
15944
15945SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj = 0;
15947 wxFont *arg1 = (wxFont *) 0 ;
15948 bool arg2 = (bool) true ;
15949 void *argp1 = 0 ;
15950 int res1 = 0 ;
15951 bool val2 ;
15952 int ecode2 = 0 ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 char * kwnames[] = {
15956 (char *) "self",(char *) "no", NULL
15957 };
15958
15959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15961 if (!SWIG_IsOK(res1)) {
15962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15963 }
15964 arg1 = reinterpret_cast< wxFont * >(argp1);
15965 if (obj1) {
15966 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15967 if (!SWIG_IsOK(ecode2)) {
15968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15969 }
15970 arg2 = static_cast< bool >(val2);
15971 }
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 (arg1)->SetNoAntiAliasing(arg2);
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 resultobj = SWIG_Py_Void();
15979 return resultobj;
15980fail:
15981 return NULL;
d55e5bfc
RD
15982}
15983
15984
554f62e9
RD
15985SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15986 PyObject *resultobj = 0;
15987 wxFont *arg1 = (wxFont *) 0 ;
15988 bool result;
15989 void *argp1 = 0 ;
15990 int res1 = 0 ;
15991 PyObject *swig_obj[1] ;
15992
15993 if (!args) SWIG_fail;
15994 swig_obj[0] = args;
15995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15996 if (!SWIG_IsOK(res1)) {
15997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15998 }
15999 arg1 = reinterpret_cast< wxFont * >(argp1);
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 {
16007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16008 }
16009 return resultobj;
16010fail:
16011 return NULL;
d55e5bfc
RD
16012}
16013
16014
554f62e9
RD
16015SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16016 PyObject *resultobj = 0;
16017 wxFontEncoding result;
16018
16019 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16020 {
16021 if (!wxPyCheckForApp()) SWIG_fail;
16022 PyThreadState* __tstate = wxPyBeginAllowThreads();
16023 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 resultobj = SWIG_From_int(static_cast< int >(result));
16028 return resultobj;
16029fail:
16030 return NULL;
d55e5bfc
RD
16031}
16032
16033
554f62e9
RD
16034SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16035 PyObject *resultobj = 0;
16036 wxFontEncoding arg1 ;
16037 int val1 ;
16038 int ecode1 = 0 ;
16039 PyObject * obj0 = 0 ;
16040 char * kwnames[] = {
16041 (char *) "encoding", NULL
16042 };
16043
16044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16045 ecode1 = SWIG_AsVal_int(obj0, &val1);
16046 if (!SWIG_IsOK(ecode1)) {
16047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16048 }
16049 arg1 = static_cast< wxFontEncoding >(val1);
16050 {
16051 if (!wxPyCheckForApp()) SWIG_fail;
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 wxFont::SetDefaultEncoding(arg1);
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_Py_Void();
16058 return resultobj;
16059fail:
16060 return NULL;
5e483524
RD
16061}
16062
16063
554f62e9
RD
16064SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065 PyObject *obj;
16066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16067 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16068 return SWIG_Py_Void();
d55e5bfc
RD
16069}
16070
554f62e9
RD
16071SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16072 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16073}
16074
554f62e9
RD
16075SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16076 PyObject *resultobj = 0;
16077 wxPyFontEnumerator *result = 0 ;
16078
16079 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16080 {
16081 if (!wxPyCheckForApp()) SWIG_fail;
16082 PyThreadState* __tstate = wxPyBeginAllowThreads();
16083 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16084 wxPyEndAllowThreads(__tstate);
16085 if (PyErr_Occurred()) SWIG_fail;
16086 }
16087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16088 return resultobj;
16089fail:
16090 return NULL;
d55e5bfc
RD
16091}
16092
16093
554f62e9
RD
16094SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16095 PyObject *resultobj = 0;
16096 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16097 void *argp1 = 0 ;
16098 int res1 = 0 ;
16099 PyObject *swig_obj[1] ;
16100
16101 if (!args) SWIG_fail;
16102 swig_obj[0] = args;
16103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16104 if (!SWIG_IsOK(res1)) {
16105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16106 }
16107 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 delete arg1;
d55e5bfc 16111
554f62e9
RD
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 resultobj = SWIG_Py_Void();
16116 return resultobj;
16117fail:
16118 return NULL;
16119}
16120
16121
16122SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj = 0;
16124 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16125 PyObject *arg2 = (PyObject *) 0 ;
16126 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 16127 int arg4 = (int) 0 ;
554f62e9
RD
16128 void *argp1 = 0 ;
16129 int res1 = 0 ;
c25f90f6 16130 int val4 ;
554f62e9
RD
16131 int ecode4 = 0 ;
16132 PyObject * obj0 = 0 ;
16133 PyObject * obj1 = 0 ;
16134 PyObject * obj2 = 0 ;
16135 PyObject * obj3 = 0 ;
16136 char * kwnames[] = {
16137 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16138 };
16139
c25f90f6 16140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
16141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16142 if (!SWIG_IsOK(res1)) {
16143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16144 }
16145 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16146 arg2 = obj1;
16147 arg3 = obj2;
c25f90f6
RD
16148 if (obj3) {
16149 ecode4 = SWIG_AsVal_int(obj3, &val4);
16150 if (!SWIG_IsOK(ecode4)) {
16151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
16152 }
16153 arg4 = static_cast< int >(val4);
16154 }
554f62e9
RD
16155 {
16156 PyThreadState* __tstate = wxPyBeginAllowThreads();
16157 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16158 wxPyEndAllowThreads(__tstate);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
16161 resultobj = SWIG_Py_Void();
16162 return resultobj;
16163fail:
16164 return NULL;
16165}
16166
16167
16168SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16169 PyObject *resultobj = 0;
16170 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16171 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16172 bool arg3 = (bool) false ;
16173 bool result;
16174 void *argp1 = 0 ;
16175 int res1 = 0 ;
16176 int val2 ;
16177 int ecode2 = 0 ;
16178 bool val3 ;
16179 int ecode3 = 0 ;
16180 PyObject * obj0 = 0 ;
16181 PyObject * obj1 = 0 ;
16182 PyObject * obj2 = 0 ;
16183 char * kwnames[] = {
16184 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16185 };
16186
16187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16189 if (!SWIG_IsOK(res1)) {
16190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16191 }
16192 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16193 if (obj1) {
16194 ecode2 = SWIG_AsVal_int(obj1, &val2);
16195 if (!SWIG_IsOK(ecode2)) {
16196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16197 }
16198 arg2 = static_cast< wxFontEncoding >(val2);
16199 }
16200 if (obj2) {
16201 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16202 if (!SWIG_IsOK(ecode3)) {
16203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16204 }
16205 arg3 = static_cast< bool >(val3);
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16215 }
16216 return resultobj;
16217fail:
16218 return NULL;
16219}
16220
16221
16222SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16223 PyObject *resultobj = 0;
16224 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16225 wxString const &arg2_defvalue = wxPyEmptyString ;
16226 wxString *arg2 = (wxString *) &arg2_defvalue ;
16227 bool result;
16228 void *argp1 = 0 ;
16229 int res1 = 0 ;
16230 bool temp2 = false ;
16231 PyObject * obj0 = 0 ;
16232 PyObject * obj1 = 0 ;
16233 char * kwnames[] = {
16234 (char *) "self",(char *) "facename", NULL
16235 };
16236
16237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16239 if (!SWIG_IsOK(res1)) {
16240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16241 }
16242 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16243 if (obj1) {
093d3ff1 16244 {
554f62e9
RD
16245 arg2 = wxString_in_helper(obj1);
16246 if (arg2 == NULL) SWIG_fail;
16247 temp2 = true;
093d3ff1 16248 }
554f62e9
RD
16249 }
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 {
16257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16258 }
16259 {
16260 if (temp2)
16261 delete arg2;
16262 }
16263 return resultobj;
16264fail:
16265 {
16266 if (temp2)
16267 delete arg2;
16268 }
16269 return NULL;
d55e5bfc
RD
16270}
16271
16272
554f62e9
RD
16273SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16274 PyObject *resultobj = 0;
554f62e9 16275 PyObject *result = 0 ;
554f62e9 16276
704eda0c 16277 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16280 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 resultobj = result;
16285 return resultobj;
16286fail:
16287 return NULL;
d55e5bfc
RD
16288}
16289
16290
554f62e9
RD
16291SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16292 PyObject *resultobj = 0;
554f62e9 16293 PyObject *result = 0 ;
554f62e9 16294
704eda0c 16295 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16298 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 resultobj = result;
16303 return resultobj;
16304fail:
16305 return NULL;
d55e5bfc
RD
16306}
16307
16308
704eda0c
RD
16309SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16310 PyObject *resultobj = 0;
16311 wxString *arg1 = 0 ;
16312 bool result;
16313 bool temp1 = false ;
16314 PyObject * obj0 = 0 ;
16315 char * kwnames[] = {
16316 (char *) "str", NULL
16317 };
16318
16319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16320 {
16321 arg1 = wxString_in_helper(obj0);
16322 if (arg1 == NULL) SWIG_fail;
16323 temp1 = true;
16324 }
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 {
16332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16333 }
16334 {
16335 if (temp1)
16336 delete arg1;
16337 }
16338 return resultobj;
16339fail:
16340 {
16341 if (temp1)
16342 delete arg1;
16343 }
16344 return NULL;
16345}
16346
16347
554f62e9
RD
16348SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16349 PyObject *obj;
16350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16352 return SWIG_Py_Void();
5e483524
RD
16353}
16354
554f62e9
RD
16355SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16356 return SWIG_Python_InitShadowInstance(args);
16357}
5e483524 16358
554f62e9
RD
16359SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16360 PyObject *resultobj = 0;
16361 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16362 int arg2 ;
16363 void *argp1 = 0 ;
16364 int res1 = 0 ;
16365 int val2 ;
16366 int ecode2 = 0 ;
16367 PyObject *swig_obj[2] ;
16368
16369 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16371 if (!SWIG_IsOK(res1)) {
16372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16373 }
16374 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16375 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16376 if (!SWIG_IsOK(ecode2)) {
16377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16378 }
16379 arg2 = static_cast< int >(val2);
16380 if (arg1) (arg1)->Language = arg2;
16381
16382 resultobj = SWIG_Py_Void();
16383 return resultobj;
16384fail:
16385 return NULL;
d55e5bfc
RD
16386}
16387
16388
554f62e9
RD
16389SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16390 PyObject *resultobj = 0;
16391 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16392 int result;
16393 void *argp1 = 0 ;
16394 int res1 = 0 ;
16395 PyObject *swig_obj[1] ;
16396
16397 if (!args) SWIG_fail;
16398 swig_obj[0] = args;
16399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16400 if (!SWIG_IsOK(res1)) {
16401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16402 }
16403 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16404 result = (int) ((arg1)->Language);
16405 resultobj = SWIG_From_int(static_cast< int >(result));
16406 return resultobj;
16407fail:
16408 return NULL;
16409}
16410
16411
16412SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16413 PyObject *resultobj = 0;
16414 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16415 wxString *arg2 = (wxString *) 0 ;
16416 void *argp1 = 0 ;
16417 int res1 = 0 ;
16418 bool temp2 = false ;
16419 PyObject *swig_obj[2] ;
16420
16421 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16423 if (!SWIG_IsOK(res1)) {
16424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16425 }
16426 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16427 {
16428 arg2 = wxString_in_helper(swig_obj[1]);
16429 if (arg2 == NULL) SWIG_fail;
16430 temp2 = true;
16431 }
16432 if (arg1) (arg1)->CanonicalName = *arg2;
16433
16434 resultobj = SWIG_Py_Void();
16435 {
16436 if (temp2)
16437 delete arg2;
16438 }
16439 return resultobj;
16440fail:
16441 {
16442 if (temp2)
16443 delete arg2;
16444 }
16445 return NULL;
d55e5bfc
RD
16446}
16447
16448
554f62e9
RD
16449SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16450 PyObject *resultobj = 0;
16451 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16452 wxString *result = 0 ;
16453 void *argp1 = 0 ;
16454 int res1 = 0 ;
16455 PyObject *swig_obj[1] ;
16456
16457 if (!args) SWIG_fail;
16458 swig_obj[0] = args;
16459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16460 if (!SWIG_IsOK(res1)) {
16461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16462 }
16463 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16464 result = (wxString *)& ((arg1)->CanonicalName);
16465 {
16466#if wxUSE_UNICODE
16467 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16468#else
16469 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16470#endif
16471 }
16472 return resultobj;
16473fail:
16474 return NULL;
d55e5bfc
RD
16475}
16476
16477
554f62e9
RD
16478SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16479 PyObject *resultobj = 0;
16480 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16481 wxString *arg2 = (wxString *) 0 ;
16482 void *argp1 = 0 ;
16483 int res1 = 0 ;
16484 bool temp2 = false ;
16485 PyObject *swig_obj[2] ;
16486
16487 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16489 if (!SWIG_IsOK(res1)) {
16490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16491 }
16492 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16493 {
16494 arg2 = wxString_in_helper(swig_obj[1]);
16495 if (arg2 == NULL) SWIG_fail;
16496 temp2 = true;
16497 }
16498 if (arg1) (arg1)->Description = *arg2;
16499
16500 resultobj = SWIG_Py_Void();
16501 {
16502 if (temp2)
16503 delete arg2;
16504 }
16505 return resultobj;
16506fail:
16507 {
16508 if (temp2)
16509 delete arg2;
16510 }
16511 return NULL;
d55e5bfc
RD
16512}
16513
16514
554f62e9
RD
16515SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16516 PyObject *resultobj = 0;
16517 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16518 wxString *result = 0 ;
16519 void *argp1 = 0 ;
16520 int res1 = 0 ;
16521 PyObject *swig_obj[1] ;
16522
16523 if (!args) SWIG_fail;
16524 swig_obj[0] = args;
16525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16526 if (!SWIG_IsOK(res1)) {
16527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16528 }
16529 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16530 result = (wxString *)& ((arg1)->Description);
16531 {
16532#if wxUSE_UNICODE
16533 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16534#else
16535 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16536#endif
16537 }
16538 return resultobj;
16539fail:
16540 return NULL;
16541}
16542
16543
16544SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16545 PyObject *obj;
16546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16547 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16548 return SWIG_Py_Void();
16549}
16550
16551SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16552 PyObject *resultobj = 0;
16553 int arg1 = (int) -1 ;
16554 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16555 wxLocale *result = 0 ;
16556 int val1 ;
16557 int ecode1 = 0 ;
16558 int val2 ;
16559 int ecode2 = 0 ;
16560 PyObject * obj0 = 0 ;
16561 PyObject * obj1 = 0 ;
16562 char * kwnames[] = {
16563 (char *) "language",(char *) "flags", NULL
16564 };
16565
16566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16567 if (obj0) {
16568 ecode1 = SWIG_AsVal_int(obj0, &val1);
16569 if (!SWIG_IsOK(ecode1)) {
16570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16571 }
16572 arg1 = static_cast< int >(val1);
16573 }
16574 if (obj1) {
16575 ecode2 = SWIG_AsVal_int(obj1, &val2);
16576 if (!SWIG_IsOK(ecode2)) {
16577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16578 }
16579 arg2 = static_cast< int >(val2);
16580 }
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 result = (wxLocale *)new_wxLocale(arg1,arg2);
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16588 return resultobj;
16589fail:
16590 return NULL;
d55e5bfc
RD
16591}
16592
16593
554f62e9
RD
16594SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16595 PyObject *resultobj = 0;
16596 wxLocale *arg1 = (wxLocale *) 0 ;
16597 void *argp1 = 0 ;
16598 int res1 = 0 ;
16599 PyObject *swig_obj[1] ;
16600
16601 if (!args) SWIG_fail;
16602 swig_obj[0] = args;
16603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16604 if (!SWIG_IsOK(res1)) {
16605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16606 }
16607 arg1 = reinterpret_cast< wxLocale * >(argp1);
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 delete arg1;
d55e5bfc 16611
554f62e9
RD
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 resultobj = SWIG_Py_Void();
16616 return resultobj;
16617fail:
16618 return NULL;
16619}
16620
16621
16622SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16623 PyObject *resultobj = 0;
16624 wxLocale *arg1 = (wxLocale *) 0 ;
16625 wxString *arg2 = 0 ;
16626 wxString const &arg3_defvalue = wxPyEmptyString ;
16627 wxString *arg3 = (wxString *) &arg3_defvalue ;
16628 wxString const &arg4_defvalue = wxPyEmptyString ;
16629 wxString *arg4 = (wxString *) &arg4_defvalue ;
16630 bool arg5 = (bool) true ;
16631 bool arg6 = (bool) false ;
16632 bool result;
16633 void *argp1 = 0 ;
16634 int res1 = 0 ;
16635 bool temp2 = false ;
16636 bool temp3 = false ;
16637 bool temp4 = false ;
16638 bool val5 ;
16639 int ecode5 = 0 ;
16640 bool val6 ;
16641 int ecode6 = 0 ;
16642 PyObject * obj0 = 0 ;
16643 PyObject * obj1 = 0 ;
16644 PyObject * obj2 = 0 ;
16645 PyObject * obj3 = 0 ;
16646 PyObject * obj4 = 0 ;
16647 PyObject * obj5 = 0 ;
16648 char * kwnames[] = {
cbfc9df6 16649 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
554f62e9
RD
16650 };
16651
16652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16654 if (!SWIG_IsOK(res1)) {
16655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16656 }
16657 arg1 = reinterpret_cast< wxLocale * >(argp1);
16658 {
16659 arg2 = wxString_in_helper(obj1);
16660 if (arg2 == NULL) SWIG_fail;
16661 temp2 = true;
16662 }
16663 if (obj2) {
093d3ff1 16664 {
554f62e9
RD
16665 arg3 = wxString_in_helper(obj2);
16666 if (arg3 == NULL) SWIG_fail;
16667 temp3 = true;
093d3ff1 16668 }
554f62e9
RD
16669 }
16670 if (obj3) {
d55e5bfc 16671 {
554f62e9
RD
16672 arg4 = wxString_in_helper(obj3);
16673 if (arg4 == NULL) SWIG_fail;
16674 temp4 = true;
d55e5bfc 16675 }
554f62e9
RD
16676 }
16677 if (obj4) {
16678 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16679 if (!SWIG_IsOK(ecode5)) {
16680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16681 }
16682 arg5 = static_cast< bool >(val5);
16683 }
16684 if (obj5) {
16685 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16686 if (!SWIG_IsOK(ecode6)) {
16687 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16688 }
16689 arg6 = static_cast< bool >(val6);
16690 }
16691 {
16692 PyThreadState* __tstate = wxPyBeginAllowThreads();
16693 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16694 wxPyEndAllowThreads(__tstate);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 {
16698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16699 }
16700 {
16701 if (temp2)
16702 delete arg2;
16703 }
16704 {
16705 if (temp3)
16706 delete arg3;
16707 }
16708 {
16709 if (temp4)
16710 delete arg4;
16711 }
16712 return resultobj;
16713fail:
16714 {
16715 if (temp2)
16716 delete arg2;
16717 }
16718 {
16719 if (temp3)
16720 delete arg3;
16721 }
16722 {
16723 if (temp4)
16724 delete arg4;
16725 }
16726 return NULL;
16727}
16728
16729
16730SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj = 0;
16732 wxLocale *arg1 = (wxLocale *) 0 ;
16733 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16734 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16735 bool result;
16736 void *argp1 = 0 ;
16737 int res1 = 0 ;
16738 int val2 ;
16739 int ecode2 = 0 ;
16740 int val3 ;
16741 int ecode3 = 0 ;
16742 PyObject * obj0 = 0 ;
16743 PyObject * obj1 = 0 ;
16744 PyObject * obj2 = 0 ;
16745 char * kwnames[] = {
16746 (char *) "self",(char *) "language",(char *) "flags", NULL
16747 };
16748
16749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16751 if (!SWIG_IsOK(res1)) {
16752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16753 }
16754 arg1 = reinterpret_cast< wxLocale * >(argp1);
16755 if (obj1) {
16756 ecode2 = SWIG_AsVal_int(obj1, &val2);
16757 if (!SWIG_IsOK(ecode2)) {
16758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16759 }
16760 arg2 = static_cast< int >(val2);
16761 }
16762 if (obj2) {
16763 ecode3 = SWIG_AsVal_int(obj2, &val3);
16764 if (!SWIG_IsOK(ecode3)) {
16765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16766 }
16767 arg3 = static_cast< int >(val3);
16768 }
16769 {
16770 PyThreadState* __tstate = wxPyBeginAllowThreads();
16771 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 {
16776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16777 }
16778 return resultobj;
16779fail:
16780 return NULL;
d55e5bfc
RD
16781}
16782
16783
554f62e9
RD
16784SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16785 PyObject *resultobj = 0;
16786 int result;
16787
16788 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16789 {
16790 PyThreadState* __tstate = wxPyBeginAllowThreads();
16791 result = (int)wxLocale::GetSystemLanguage();
16792 wxPyEndAllowThreads(__tstate);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
16795 resultobj = SWIG_From_int(static_cast< int >(result));
16796 return resultobj;
16797fail:
16798 return NULL;
d55e5bfc
RD
16799}
16800
16801
554f62e9
RD
16802SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16803 PyObject *resultobj = 0;
16804 wxFontEncoding result;
16805
16806 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16807 {
16808 PyThreadState* __tstate = wxPyBeginAllowThreads();
16809 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 resultobj = SWIG_From_int(static_cast< int >(result));
16814 return resultobj;
16815fail:
16816 return NULL;
d55e5bfc
RD
16817}
16818
16819
554f62e9
RD
16820SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16821 PyObject *resultobj = 0;
16822 wxString result;
16823
16824 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = wxLocale::GetSystemEncodingName();
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832#if wxUSE_UNICODE
16833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16834#else
16835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16836#endif
16837 }
16838 return resultobj;
16839fail:
16840 return NULL;
d55e5bfc
RD
16841}
16842
16843
554f62e9
RD
16844SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16845 PyObject *resultobj = 0;
16846 wxLocale *arg1 = (wxLocale *) 0 ;
16847 bool result;
16848 void *argp1 = 0 ;
16849 int res1 = 0 ;
16850 PyObject *swig_obj[1] ;
16851
16852 if (!args) SWIG_fail;
16853 swig_obj[0] = args;
16854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16855 if (!SWIG_IsOK(res1)) {
16856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16857 }
16858 arg1 = reinterpret_cast< wxLocale * >(argp1);
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = (bool)((wxLocale const *)arg1)->IsOk();
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 {
16866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16867 }
16868 return resultobj;
16869fail:
16870 return NULL;
d55e5bfc
RD
16871}
16872
16873
554f62e9
RD
16874SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16875 PyObject *resultobj = 0;
16876 wxLocale *arg1 = (wxLocale *) 0 ;
16877 wxString result;
16878 void *argp1 = 0 ;
16879 int res1 = 0 ;
16880 PyObject *swig_obj[1] ;
16881
16882 if (!args) SWIG_fail;
16883 swig_obj[0] = args;
16884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16885 if (!SWIG_IsOK(res1)) {
16886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16887 }
16888 arg1 = reinterpret_cast< wxLocale * >(argp1);
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
16891 result = ((wxLocale const *)arg1)->GetLocale();
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 {
16896#if wxUSE_UNICODE
16897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16898#else
16899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16900#endif
16901 }
16902 return resultobj;
16903fail:
16904 return NULL;
d55e5bfc
RD
16905}
16906
16907
554f62e9
RD
16908SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16909 PyObject *resultobj = 0;
16910 wxLocale *arg1 = (wxLocale *) 0 ;
16911 int result;
16912 void *argp1 = 0 ;
16913 int res1 = 0 ;
16914 PyObject *swig_obj[1] ;
16915
16916 if (!args) SWIG_fail;
16917 swig_obj[0] = args;
16918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16921 }
16922 arg1 = reinterpret_cast< wxLocale * >(argp1);
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 result = (int)((wxLocale const *)arg1)->GetLanguage();
16926 wxPyEndAllowThreads(__tstate);
16927 if (PyErr_Occurred()) SWIG_fail;
16928 }
16929 resultobj = SWIG_From_int(static_cast< int >(result));
16930 return resultobj;
16931fail:
16932 return NULL;
d55e5bfc
RD
16933}
16934
16935
554f62e9
RD
16936SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16937 PyObject *resultobj = 0;
16938 wxLocale *arg1 = (wxLocale *) 0 ;
16939 wxString result;
16940 void *argp1 = 0 ;
16941 int res1 = 0 ;
16942 PyObject *swig_obj[1] ;
16943
16944 if (!args) SWIG_fail;
16945 swig_obj[0] = args;
16946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16947 if (!SWIG_IsOK(res1)) {
16948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16949 }
16950 arg1 = reinterpret_cast< wxLocale * >(argp1);
16951 {
16952 PyThreadState* __tstate = wxPyBeginAllowThreads();
16953 result = ((wxLocale const *)arg1)->GetSysName();
16954 wxPyEndAllowThreads(__tstate);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 }
16957 {
16958#if wxUSE_UNICODE
16959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16960#else
16961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16962#endif
16963 }
16964 return resultobj;
16965fail:
16966 return NULL;
d55e5bfc
RD
16967}
16968
16969
554f62e9
RD
16970SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16971 PyObject *resultobj = 0;
16972 wxLocale *arg1 = (wxLocale *) 0 ;
16973 wxString result;
16974 void *argp1 = 0 ;
16975 int res1 = 0 ;
16976 PyObject *swig_obj[1] ;
16977
16978 if (!args) SWIG_fail;
16979 swig_obj[0] = args;
16980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16981 if (!SWIG_IsOK(res1)) {
16982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16983 }
16984 arg1 = reinterpret_cast< wxLocale * >(argp1);
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = ((wxLocale const *)arg1)->GetCanonicalName();
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 {
093d3ff1 16992#if wxUSE_UNICODE
554f62e9 16993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16994#else
554f62e9 16995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16996#endif
554f62e9
RD
16997 }
16998 return resultobj;
16999fail:
17000 return NULL;
d55e5bfc
RD
17001}
17002
17003
554f62e9
RD
17004SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj = 0;
17006 wxString *arg1 = 0 ;
17007 bool temp1 = false ;
17008 PyObject * obj0 = 0 ;
17009 char * kwnames[] = {
17010 (char *) "prefix", NULL
17011 };
17012
17013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17014 {
17015 arg1 = wxString_in_helper(obj0);
17016 if (arg1 == NULL) SWIG_fail;
17017 temp1 = true;
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_Py_Void();
17026 {
17027 if (temp1)
17028 delete arg1;
17029 }
17030 return resultobj;
17031fail:
17032 {
17033 if (temp1)
17034 delete arg1;
17035 }
17036 return NULL;
17037}
17038
17039
17040SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17041 PyObject *resultobj = 0;
17042 wxLocale *arg1 = (wxLocale *) 0 ;
17043 wxString *arg2 = 0 ;
17044 bool result;
17045 void *argp1 = 0 ;
17046 int res1 = 0 ;
17047 bool temp2 = false ;
17048 PyObject * obj0 = 0 ;
17049 PyObject * obj1 = 0 ;
17050 char * kwnames[] = {
cbfc9df6 17051 (char *) "self",(char *) "domain", NULL
554f62e9
RD
17052 };
17053
17054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17056 if (!SWIG_IsOK(res1)) {
17057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17058 }
17059 arg1 = reinterpret_cast< wxLocale * >(argp1);
17060 {
17061 arg2 = wxString_in_helper(obj1);
17062 if (arg2 == NULL) SWIG_fail;
17063 temp2 = true;
17064 }
17065 {
17066 PyThreadState* __tstate = wxPyBeginAllowThreads();
17067 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 {
17072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17073 }
17074 {
17075 if (temp2)
17076 delete arg2;
17077 }
17078 return resultobj;
17079fail:
17080 {
17081 if (temp2)
17082 delete arg2;
17083 }
17084 return NULL;
17085}
17086
17087
33d6fd3b
RD
17088SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj = 0;
17090 int arg1 ;
17091 bool result;
17092 int val1 ;
17093 int ecode1 = 0 ;
17094 PyObject * obj0 = 0 ;
17095 char * kwnames[] = {
17096 (char *) "lang", NULL
17097 };
17098
17099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17100 ecode1 = SWIG_AsVal_int(obj0, &val1);
17101 if (!SWIG_IsOK(ecode1)) {
17102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17103 }
17104 arg1 = static_cast< int >(val1);
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 result = (bool)wxLocale::IsAvailable(arg1);
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 {
17112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17113 }
17114 return resultobj;
17115fail:
17116 return NULL;
17117}
17118
17119
554f62e9
RD
17120SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17121 PyObject *resultobj = 0;
17122 wxLocale *arg1 = (wxLocale *) 0 ;
17123 wxString *arg2 = 0 ;
17124 bool result;
17125 void *argp1 = 0 ;
17126 int res1 = 0 ;
17127 bool temp2 = false ;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 char * kwnames[] = {
cbfc9df6 17131 (char *) "self",(char *) "domain", NULL
554f62e9
RD
17132 };
17133
17134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17136 if (!SWIG_IsOK(res1)) {
17137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17138 }
17139 arg1 = reinterpret_cast< wxLocale * >(argp1);
17140 {
17141 arg2 = wxString_in_helper(obj1);
17142 if (arg2 == NULL) SWIG_fail;
17143 temp2 = true;
17144 }
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 {
17152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17153 }
17154 {
17155 if (temp2)
17156 delete arg2;
17157 }
17158 return resultobj;
17159fail:
17160 {
17161 if (temp2)
17162 delete arg2;
17163 }
17164 return NULL;
d55e5bfc
RD
17165}
17166
17167
554f62e9
RD
17168SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj = 0;
17170 int arg1 ;
17171 wxLanguageInfo *result = 0 ;
17172 int val1 ;
17173 int ecode1 = 0 ;
17174 PyObject * obj0 = 0 ;
17175 char * kwnames[] = {
17176 (char *) "lang", NULL
17177 };
17178
17179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17180 ecode1 = SWIG_AsVal_int(obj0, &val1);
17181 if (!SWIG_IsOK(ecode1)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17183 }
17184 arg1 = static_cast< int >(val1);
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17192 return resultobj;
17193fail:
17194 return NULL;
17195}
17196
17197
17198SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17199 PyObject *resultobj = 0;
17200 int arg1 ;
17201 wxString result;
17202 int val1 ;
17203 int ecode1 = 0 ;
17204 PyObject * obj0 = 0 ;
17205 char * kwnames[] = {
17206 (char *) "lang", NULL
17207 };
17208
17209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17210 ecode1 = SWIG_AsVal_int(obj0, &val1);
17211 if (!SWIG_IsOK(ecode1)) {
17212 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17213 }
17214 arg1 = static_cast< int >(val1);
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = wxLocale::GetLanguageName(arg1);
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 {
17222#if wxUSE_UNICODE
17223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17224#else
17225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17226#endif
17227 }
17228 return resultobj;
17229fail:
17230 return NULL;
093d3ff1
RD
17231}
17232
17233
554f62e9
RD
17234SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj = 0;
17236 wxString *arg1 = 0 ;
17237 wxLanguageInfo *result = 0 ;
17238 bool temp1 = false ;
17239 PyObject * obj0 = 0 ;
17240 char * kwnames[] = {
17241 (char *) "locale", NULL
17242 };
17243
17244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17245 {
17246 arg1 = wxString_in_helper(obj0);
17247 if (arg1 == NULL) SWIG_fail;
17248 temp1 = true;
17249 }
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
17252 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17257 {
17258 if (temp1)
17259 delete arg1;
17260 }
17261 return resultobj;
17262fail:
17263 {
17264 if (temp1)
17265 delete arg1;
17266 }
17267 return NULL;
17268}
17269
17270
17271SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17272 PyObject *resultobj = 0;
17273 wxLanguageInfo *arg1 = 0 ;
17274 void *argp1 = 0 ;
17275 int res1 = 0 ;
17276 PyObject * obj0 = 0 ;
17277 char * kwnames[] = {
17278 (char *) "info", NULL
17279 };
17280
17281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17283 if (!SWIG_IsOK(res1)) {
17284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17285 }
17286 if (!argp1) {
17287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17288 }
17289 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17290 {
17291 PyThreadState* __tstate = wxPyBeginAllowThreads();
17292 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 resultobj = SWIG_Py_Void();
17297 return resultobj;
17298fail:
17299 return NULL;
17300}
17301
17302
17303SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17304 PyObject *resultobj = 0;
17305 wxLocale *arg1 = (wxLocale *) 0 ;
17306 wxString *arg2 = 0 ;
17307 wxString const &arg3_defvalue = wxPyEmptyString ;
17308 wxString *arg3 = (wxString *) &arg3_defvalue ;
17309 wxString result;
17310 void *argp1 = 0 ;
17311 int res1 = 0 ;
17312 bool temp2 = false ;
17313 bool temp3 = false ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 PyObject * obj2 = 0 ;
17317 char * kwnames[] = {
cbfc9df6 17318 (char *) "self",(char *) "origString",(char *) "domain", NULL
fc46b7f3
RD
17319 };
17320
17321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17323 if (!SWIG_IsOK(res1)) {
17324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17325 }
17326 arg1 = reinterpret_cast< wxLocale * >(argp1);
17327 {
17328 arg2 = wxString_in_helper(obj1);
17329 if (arg2 == NULL) SWIG_fail;
17330 temp2 = true;
17331 }
17332 if (obj2) {
17333 {
17334 arg3 = wxString_in_helper(obj2);
17335 if (arg3 == NULL) SWIG_fail;
17336 temp3 = true;
17337 }
17338 }
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 {
17346#if wxUSE_UNICODE
17347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17348#else
17349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17350#endif
17351 }
17352 {
17353 if (temp2)
17354 delete arg2;
17355 }
17356 {
17357 if (temp3)
17358 delete arg3;
17359 }
17360 return resultobj;
17361fail:
17362 {
17363 if (temp2)
17364 delete arg2;
17365 }
17366 {
17367 if (temp3)
17368 delete arg3;
17369 }
17370 return NULL;
17371}
17372
17373
17374SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17375 PyObject *resultobj = 0;
17376 wxLocale *arg1 = (wxLocale *) 0 ;
17377 wxString *result = 0 ;
17378 void *argp1 = 0 ;
17379 int res1 = 0 ;
17380 PyObject *swig_obj[1] ;
17381
17382 if (!args) SWIG_fail;
17383 swig_obj[0] = args;
17384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17385 if (!SWIG_IsOK(res1)) {
17386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17387 }
17388 arg1 = reinterpret_cast< wxLocale * >(argp1);
17389 {
17390 PyThreadState* __tstate = wxPyBeginAllowThreads();
17391 {
17392 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17393 result = (wxString *) &_result_ref;
17394 }
17395 wxPyEndAllowThreads(__tstate);
17396 if (PyErr_Occurred()) SWIG_fail;
17397 }
17398 {
17399#if wxUSE_UNICODE
17400 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17401#else
17402 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17403#endif
17404 }
17405 return resultobj;
17406fail:
17407 return NULL;
17408}
17409
17410
17411SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17412 PyObject *obj;
17413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17414 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17415 return SWIG_Py_Void();
17416}
17417
17418SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17419 return SWIG_Python_InitShadowInstance(args);
17420}
17421
17422SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17423 PyObject *resultobj = 0;
17424 int arg1 = (int) -1 ;
17425 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17426 wxPyLocale *result = 0 ;
17427 int val1 ;
17428 int ecode1 = 0 ;
17429 int val2 ;
17430 int ecode2 = 0 ;
17431 PyObject * obj0 = 0 ;
17432 PyObject * obj1 = 0 ;
17433 char * kwnames[] = {
17434 (char *) "language",(char *) "flags", NULL
17435 };
17436
17437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17438 if (obj0) {
17439 ecode1 = SWIG_AsVal_int(obj0, &val1);
17440 if (!SWIG_IsOK(ecode1)) {
17441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17442 }
17443 arg1 = static_cast< int >(val1);
17444 }
17445 if (obj1) {
17446 ecode2 = SWIG_AsVal_int(obj1, &val2);
17447 if (!SWIG_IsOK(ecode2)) {
17448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17449 }
17450 arg2 = static_cast< int >(val2);
17451 }
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17455 wxPyEndAllowThreads(__tstate);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17459 return resultobj;
17460fail:
17461 return NULL;
17462}
17463
17464
17465SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17466 PyObject *resultobj = 0;
17467 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17468 void *argp1 = 0 ;
17469 int res1 = 0 ;
17470 PyObject *swig_obj[1] ;
17471
17472 if (!args) SWIG_fail;
17473 swig_obj[0] = args;
17474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17475 if (!SWIG_IsOK(res1)) {
17476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17477 }
17478 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17479 {
17480 PyThreadState* __tstate = wxPyBeginAllowThreads();
17481 delete arg1;
17482
554f62e9
RD
17483 wxPyEndAllowThreads(__tstate);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 }
fc46b7f3 17486 resultobj = SWIG_Py_Void();
554f62e9
RD
17487 return resultobj;
17488fail:
554f62e9 17489 return NULL;
d55e5bfc
RD
17490}
17491
17492
fc46b7f3 17493SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17494 PyObject *resultobj = 0;
fc46b7f3
RD
17495 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17496 PyObject *arg2 = (PyObject *) 0 ;
17497 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17498 void *argp1 = 0 ;
17499 int res1 = 0 ;
17500 PyObject * obj0 = 0 ;
fc46b7f3
RD
17501 PyObject * obj1 = 0 ;
17502 PyObject * obj2 = 0 ;
554f62e9 17503 char * kwnames[] = {
fc46b7f3 17504 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17505 };
17506
fc46b7f3
RD
17507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17509 if (!SWIG_IsOK(res1)) {
fc46b7f3 17510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17511 }
fc46b7f3
RD
17512 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17513 arg2 = obj1;
17514 arg3 = obj2;
554f62e9
RD
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17517 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = SWIG_Py_Void();
17522 return resultobj;
17523fail:
17524 return NULL;
17525}
17526
17527
fc46b7f3 17528SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17529 PyObject *resultobj = 0;
fc46b7f3 17530 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
cbfc9df6
RD
17531 wxString *arg2 = 0 ;
17532 wxString const &arg3_defvalue = wxPyEmptyString ;
17533 wxString *arg3 = (wxString *) &arg3_defvalue ;
17534 wxString *result = 0 ;
554f62e9
RD
17535 void *argp1 = 0 ;
17536 int res1 = 0 ;
cbfc9df6
RD
17537 bool temp2 = false ;
17538 bool temp3 = false ;
554f62e9
RD
17539 PyObject * obj0 = 0 ;
17540 PyObject * obj1 = 0 ;
17541 PyObject * obj2 = 0 ;
17542 char * kwnames[] = {
cbfc9df6 17543 (char *) "self",(char *) "origString",(char *) "domain", NULL
554f62e9
RD
17544 };
17545
fc46b7f3
RD
17546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17548 if (!SWIG_IsOK(res1)) {
fc46b7f3 17549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17550 }
fc46b7f3 17551 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
cbfc9df6
RD
17552 {
17553 arg2 = wxString_in_helper(obj1);
17554 if (arg2 == NULL) SWIG_fail;
17555 temp2 = true;
554f62e9
RD
17556 }
17557 if (obj2) {
cbfc9df6
RD
17558 {
17559 arg3 = wxString_in_helper(obj2);
17560 if (arg3 == NULL) SWIG_fail;
17561 temp3 = true;
d55e5bfc 17562 }
554f62e9
RD
17563 }
17564 {
17565 PyThreadState* __tstate = wxPyBeginAllowThreads();
cbfc9df6
RD
17566 {
17567 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
17568 result = (wxString *) &_result_ref;
17569 }
554f62e9
RD
17570 wxPyEndAllowThreads(__tstate);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
cbfc9df6
RD
17573 {
17574#if wxUSE_UNICODE
17575 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17576#else
17577 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17578#endif
17579 }
17580 {
17581 if (temp2)
17582 delete arg2;
17583 }
17584 {
17585 if (temp3)
17586 delete arg3;
17587 }
554f62e9
RD
17588 return resultobj;
17589fail:
cbfc9df6
RD
17590 {
17591 if (temp2)
17592 delete arg2;
17593 }
17594 {
17595 if (temp3)
17596 delete arg3;
17597 }
554f62e9 17598 return NULL;
d55e5bfc
RD
17599}
17600
17601
fc46b7f3 17602SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17603 PyObject *resultobj = 0;
fc46b7f3 17604 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
cbfc9df6
RD
17605 wxString *arg2 = 0 ;
17606 wxString *arg3 = 0 ;
fc46b7f3 17607 size_t arg4 ;
cbfc9df6
RD
17608 wxString const &arg5_defvalue = wxPyEmptyString ;
17609 wxString *arg5 = (wxString *) &arg5_defvalue ;
17610 wxString *result = 0 ;
554f62e9
RD
17611 void *argp1 = 0 ;
17612 int res1 = 0 ;
cbfc9df6
RD
17613 bool temp2 = false ;
17614 bool temp3 = false ;
fc46b7f3
RD
17615 size_t val4 ;
17616 int ecode4 = 0 ;
cbfc9df6 17617 bool temp5 = false ;
fc46b7f3
RD
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 PyObject * obj2 = 0 ;
17621 PyObject * obj3 = 0 ;
17622 PyObject * obj4 = 0 ;
17623 char * kwnames[] = {
cbfc9df6 17624 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
fc46b7f3 17625 };
554f62e9 17626
fc46b7f3
RD
17627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17629 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17631 }
17632 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
cbfc9df6
RD
17633 {
17634 arg2 = wxString_in_helper(obj1);
17635 if (arg2 == NULL) SWIG_fail;
17636 temp2 = true;
fc46b7f3 17637 }
cbfc9df6
RD
17638 {
17639 arg3 = wxString_in_helper(obj2);
17640 if (arg3 == NULL) SWIG_fail;
17641 temp3 = true;
fc46b7f3 17642 }
fc46b7f3
RD
17643 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17644 if (!SWIG_IsOK(ecode4)) {
17645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17646 }
17647 arg4 = static_cast< size_t >(val4);
17648 if (obj4) {
cbfc9df6
RD
17649 {
17650 arg5 = wxString_in_helper(obj4);
17651 if (arg5 == NULL) SWIG_fail;
17652 temp5 = true;
fc46b7f3 17653 }
554f62e9 17654 }
554f62e9
RD
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
cbfc9df6
RD
17657 {
17658 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
17659 result = (wxString *) &_result_ref;
17660 }
554f62e9
RD
17661 wxPyEndAllowThreads(__tstate);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 }
cbfc9df6
RD
17664 {
17665#if wxUSE_UNICODE
17666 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17667#else
17668 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17669#endif
17670 }
17671 {
17672 if (temp2)
17673 delete arg2;
17674 }
17675 {
17676 if (temp3)
17677 delete arg3;
17678 }
17679 {
17680 if (temp5)
17681 delete arg5;
17682 }
554f62e9
RD
17683 return resultobj;
17684fail:
cbfc9df6
RD
17685 {
17686 if (temp2)
17687 delete arg2;
17688 }
17689 {
17690 if (temp3)
17691 delete arg3;
17692 }
17693 {
17694 if (temp5)
17695 delete arg5;
17696 }
554f62e9 17697 return NULL;
d55e5bfc
RD
17698}
17699
17700
fc46b7f3 17701SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17702 PyObject *obj;
17703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17704 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17705 return SWIG_Py_Void();
d55e5bfc
RD
17706}
17707
fc46b7f3 17708SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17709 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17710}
17711
554f62e9
RD
17712SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17713 PyObject *resultobj = 0;
17714 wxLocale *result = 0 ;
17715
17716 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17717 {
17718 PyThreadState* __tstate = wxPyBeginAllowThreads();
17719 result = (wxLocale *)wxGetLocale();
17720 wxPyEndAllowThreads(__tstate);
17721 if (PyErr_Occurred()) SWIG_fail;
17722 }
17723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17724 return resultobj;
17725fail:
17726 return NULL;
d55e5bfc
RD
17727}
17728
17729
554f62e9
RD
17730SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17731 PyObject *resultobj = 0;
17732 wxString *arg1 = 0 ;
17733 wxString result;
17734 bool temp1 = false ;
17735
17736 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17737 {
17738 arg1 = wxString_in_helper(swig_obj[0]);
17739 if (arg1 == NULL) SWIG_fail;
17740 temp1 = true;
17741 }
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 result = wxGetTranslation((wxString const &)*arg1);
17745 wxPyEndAllowThreads(__tstate);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 {
093d3ff1 17749#if wxUSE_UNICODE
554f62e9 17750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17751#else
554f62e9 17752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17753#endif
554f62e9
RD
17754 }
17755 {
17756 if (temp1)
17757 delete arg1;
17758 }
17759 return resultobj;
17760fail:
17761 {
17762 if (temp1)
17763 delete arg1;
17764 }
17765 return NULL;
d55e5bfc
RD
17766}
17767
17768
554f62e9 17769SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17770 PyObject *resultobj = 0;
17771 wxString *arg1 = 0 ;
17772 wxString *arg2 = 0 ;
17773 wxString result;
17774 bool temp1 = false ;
17775 bool temp2 = false ;
17776
17777 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17778 {
17779 arg1 = wxString_in_helper(swig_obj[0]);
17780 if (arg1 == NULL) SWIG_fail;
17781 temp1 = true;
17782 }
17783 {
17784 arg2 = wxString_in_helper(swig_obj[1]);
17785 if (arg2 == NULL) SWIG_fail;
17786 temp2 = true;
17787 }
17788 {
17789 PyThreadState* __tstate = wxPyBeginAllowThreads();
17790 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17791 wxPyEndAllowThreads(__tstate);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 {
17795#if wxUSE_UNICODE
17796 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17797#else
17798 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17799#endif
17800 }
17801 {
17802 if (temp1)
17803 delete arg1;
17804 }
17805 {
17806 if (temp2)
17807 delete arg2;
17808 }
17809 return resultobj;
17810fail:
17811 {
17812 if (temp1)
17813 delete arg1;
17814 }
17815 {
17816 if (temp2)
17817 delete arg2;
17818 }
17819 return NULL;
17820}
17821
17822
17823SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17824 PyObject *resultobj = 0;
17825 wxString *arg1 = 0 ;
17826 wxString *arg2 = 0 ;
17827 size_t arg3 ;
17828 wxString result;
17829 bool temp1 = false ;
17830 bool temp2 = false ;
17831 size_t val3 ;
17832 int ecode3 = 0 ;
17833
17834 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17835 {
17836 arg1 = wxString_in_helper(swig_obj[0]);
17837 if (arg1 == NULL) SWIG_fail;
17838 temp1 = true;
17839 }
17840 {
17841 arg2 = wxString_in_helper(swig_obj[1]);
17842 if (arg2 == NULL) SWIG_fail;
17843 temp2 = true;
17844 }
17845 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17846 if (!SWIG_IsOK(ecode3)) {
17847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17848 }
17849 arg3 = static_cast< size_t >(val3);
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17853 wxPyEndAllowThreads(__tstate);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
17856 {
093d3ff1 17857#if wxUSE_UNICODE
554f62e9 17858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17859#else
554f62e9 17860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17861#endif
554f62e9
RD
17862 }
17863 {
17864 if (temp1)
17865 delete arg1;
17866 }
17867 {
17868 if (temp2)
17869 delete arg2;
17870 }
17871 return resultobj;
17872fail:
17873 {
17874 if (temp1)
17875 delete arg1;
17876 }
17877 {
17878 if (temp2)
17879 delete arg2;
17880 }
17881 return NULL;
d55e5bfc
RD
17882}
17883
17884
fc46b7f3
RD
17885SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17886 PyObject *resultobj = 0;
17887 wxString *arg1 = 0 ;
17888 wxString *arg2 = 0 ;
17889 size_t arg3 ;
17890 wxString *arg4 = 0 ;
17891 wxString result;
17892 bool temp1 = false ;
17893 bool temp2 = false ;
17894 size_t val3 ;
17895 int ecode3 = 0 ;
17896 bool temp4 = false ;
17897
17898 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17899 {
17900 arg1 = wxString_in_helper(swig_obj[0]);
17901 if (arg1 == NULL) SWIG_fail;
17902 temp1 = true;
17903 }
17904 {
17905 arg2 = wxString_in_helper(swig_obj[1]);
17906 if (arg2 == NULL) SWIG_fail;
17907 temp2 = true;
17908 }
17909 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17910 if (!SWIG_IsOK(ecode3)) {
17911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17912 }
17913 arg3 = static_cast< size_t >(val3);
17914 {
17915 arg4 = wxString_in_helper(swig_obj[3]);
17916 if (arg4 == NULL) SWIG_fail;
17917 temp4 = true;
17918 }
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17922 wxPyEndAllowThreads(__tstate);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
17925 {
17926#if wxUSE_UNICODE
17927 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17928#else
17929 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17930#endif
17931 }
17932 {
17933 if (temp1)
17934 delete arg1;
17935 }
17936 {
17937 if (temp2)
17938 delete arg2;
17939 }
17940 {
17941 if (temp4)
17942 delete arg4;
17943 }
17944 return resultobj;
17945fail:
17946 {
17947 if (temp1)
17948 delete arg1;
17949 }
17950 {
17951 if (temp2)
17952 delete arg2;
17953 }
17954 {
17955 if (temp4)
17956 delete arg4;
17957 }
17958 return NULL;
17959}
17960
17961
554f62e9
RD
17962SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17963 int argc;
fc46b7f3 17964 PyObject *argv[5];
554f62e9 17965
fc46b7f3 17966 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17967 --argc;
17968 if (argc == 1) {
17969 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17970 }
fc46b7f3 17971 if (argc == 2) {
554f62e9
RD
17972 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17973 }
fc46b7f3
RD
17974 if (argc == 3) {
17975 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17976 }
17977 if (argc == 4) {
17978 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17979 }
554f62e9
RD
17980
17981fail:
17982 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17983 return NULL;
d55e5bfc
RD
17984}
17985
17986
554f62e9
RD
17987SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17988 PyObject *resultobj = 0;
17989 wxEncodingConverter *result = 0 ;
17990
17991 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17992 {
17993 PyThreadState* __tstate = wxPyBeginAllowThreads();
17994 result = (wxEncodingConverter *)new wxEncodingConverter();
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17999 return resultobj;
18000fail:
18001 return NULL;
d55e5bfc
RD
18002}
18003
18004
554f62e9
RD
18005SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18006 PyObject *resultobj = 0;
18007 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18008 void *argp1 = 0 ;
18009 int res1 = 0 ;
18010 PyObject *swig_obj[1] ;
18011
18012 if (!args) SWIG_fail;
18013 swig_obj[0] = args;
18014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
18015 if (!SWIG_IsOK(res1)) {
18016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18017 }
18018 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18019 {
18020 PyThreadState* __tstate = wxPyBeginAllowThreads();
18021 delete arg1;
d55e5bfc 18022
554f62e9
RD
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 resultobj = SWIG_Py_Void();
18027 return resultobj;
18028fail:
18029 return NULL;
18030}
18031
18032
18033SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj = 0;
18035 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18036 wxFontEncoding arg2 ;
18037 wxFontEncoding arg3 ;
18038 int arg4 = (int) wxCONVERT_STRICT ;
18039 bool result;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 int val2 ;
18043 int ecode2 = 0 ;
18044 int val3 ;
18045 int ecode3 = 0 ;
18046 int val4 ;
18047 int ecode4 = 0 ;
18048 PyObject * obj0 = 0 ;
18049 PyObject * obj1 = 0 ;
18050 PyObject * obj2 = 0 ;
18051 PyObject * obj3 = 0 ;
18052 char * kwnames[] = {
18053 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
18054 };
18055
18056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18058 if (!SWIG_IsOK(res1)) {
18059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18060 }
18061 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18062 ecode2 = SWIG_AsVal_int(obj1, &val2);
18063 if (!SWIG_IsOK(ecode2)) {
18064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18065 }
18066 arg2 = static_cast< wxFontEncoding >(val2);
18067 ecode3 = SWIG_AsVal_int(obj2, &val3);
18068 if (!SWIG_IsOK(ecode3)) {
18069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18070 }
18071 arg3 = static_cast< wxFontEncoding >(val3);
18072 if (obj3) {
18073 ecode4 = SWIG_AsVal_int(obj3, &val4);
18074 if (!SWIG_IsOK(ecode4)) {
18075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18076 }
18077 arg4 = static_cast< int >(val4);
18078 }
18079 {
18080 PyThreadState* __tstate = wxPyBeginAllowThreads();
18081 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18082 wxPyEndAllowThreads(__tstate);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 }
18085 {
18086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18087 }
18088 return resultobj;
18089fail:
18090 return NULL;
18091}
18092
18093
18094SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18095 PyObject *resultobj = 0;
18096 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18097 wxString *arg2 = 0 ;
18098 wxString result;
18099 void *argp1 = 0 ;
18100 int res1 = 0 ;
18101 bool temp2 = false ;
18102 PyObject * obj0 = 0 ;
18103 PyObject * obj1 = 0 ;
18104 char * kwnames[] = {
18105 (char *) "self",(char *) "input", NULL
18106 };
18107
18108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18110 if (!SWIG_IsOK(res1)) {
18111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18112 }
18113 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18114 {
18115 arg2 = wxString_in_helper(obj1);
18116 if (arg2 == NULL) SWIG_fail;
18117 temp2 = true;
18118 }
18119 {
18120 PyThreadState* __tstate = wxPyBeginAllowThreads();
18121 result = (arg1)->Convert((wxString const &)*arg2);
18122 wxPyEndAllowThreads(__tstate);
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 {
d55e5bfc 18126#if wxUSE_UNICODE
554f62e9 18127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 18128#else
554f62e9 18129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 18130#endif
554f62e9
RD
18131 }
18132 {
18133 if (temp2)
18134 delete arg2;
18135 }
18136 return resultobj;
18137fail:
18138 {
18139 if (temp2)
18140 delete arg2;
18141 }
18142 return NULL;
18143}
18144
18145
18146SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj = 0;
18148 wxFontEncoding arg1 ;
18149 int arg2 = (int) wxPLATFORM_CURRENT ;
18150 wxFontEncodingArray result;
18151 int val1 ;
18152 int ecode1 = 0 ;
18153 int val2 ;
18154 int ecode2 = 0 ;
18155 PyObject * obj0 = 0 ;
18156 PyObject * obj1 = 0 ;
18157 char * kwnames[] = {
18158 (char *) "enc",(char *) "platform", NULL
18159 };
18160
18161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18162 ecode1 = SWIG_AsVal_int(obj0, &val1);
18163 if (!SWIG_IsOK(ecode1)) {
18164 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18165 }
18166 arg1 = static_cast< wxFontEncoding >(val1);
18167 if (obj1) {
18168 ecode2 = SWIG_AsVal_int(obj1, &val2);
18169 if (!SWIG_IsOK(ecode2)) {
18170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18171 }
18172 arg2 = static_cast< int >(val2);
18173 }
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 {
18181 resultobj = PyList_New(0);
18182 for (size_t i=0; i < (&result)->GetCount(); i++) {
18183 PyObject* number = PyInt_FromLong((&result)->Item(i));
18184 PyList_Append(resultobj, number);
18185 Py_DECREF(number);
d55e5bfc 18186 }
554f62e9
RD
18187 }
18188 return resultobj;
18189fail:
18190 return NULL;
d55e5bfc
RD
18191}
18192
18193
554f62e9
RD
18194SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18195 PyObject *resultobj = 0;
18196 wxFontEncoding arg1 ;
18197 wxFontEncodingArray result;
18198 int val1 ;
18199 int ecode1 = 0 ;
18200 PyObject * obj0 = 0 ;
18201 char * kwnames[] = {
18202 (char *) "enc", NULL
18203 };
18204
18205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18206 ecode1 = SWIG_AsVal_int(obj0, &val1);
18207 if (!SWIG_IsOK(ecode1)) {
18208 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18209 }
18210 arg1 = static_cast< wxFontEncoding >(val1);
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 result = wxEncodingConverter::GetAllEquivalents(arg1);
18214 wxPyEndAllowThreads(__tstate);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 }
18217 {
18218 resultobj = PyList_New(0);
18219 for (size_t i=0; i < (&result)->GetCount(); i++) {
18220 PyObject* number = PyInt_FromLong((&result)->Item(i));
18221 PyList_Append(resultobj, number);
18222 Py_DECREF(number);
d55e5bfc 18223 }
554f62e9
RD
18224 }
18225 return resultobj;
18226fail:
18227 return NULL;
18228}
18229
18230
18231SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18232 PyObject *resultobj = 0;
18233 wxFontEncoding arg1 ;
18234 wxFontEncoding arg2 ;
18235 bool result;
18236 int val1 ;
18237 int ecode1 = 0 ;
18238 int val2 ;
18239 int ecode2 = 0 ;
18240 PyObject * obj0 = 0 ;
18241 PyObject * obj1 = 0 ;
18242 char * kwnames[] = {
18243 (char *) "encIn",(char *) "encOut", NULL
18244 };
18245
18246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18247 ecode1 = SWIG_AsVal_int(obj0, &val1);
18248 if (!SWIG_IsOK(ecode1)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18250 }
18251 arg1 = static_cast< wxFontEncoding >(val1);
18252 ecode2 = SWIG_AsVal_int(obj1, &val2);
18253 if (!SWIG_IsOK(ecode2)) {
18254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18255 }
18256 arg2 = static_cast< wxFontEncoding >(val2);
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18260 wxPyEndAllowThreads(__tstate);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 {
18264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18265 }
18266 return resultobj;
18267fail:
18268 return NULL;
d55e5bfc
RD
18269}
18270
18271
554f62e9
RD
18272SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18273 PyObject *obj;
18274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18275 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18276 return SWIG_Py_Void();
d55e5bfc
RD
18277}
18278
554f62e9
RD
18279SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18280 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
18281}
18282
554f62e9
RD
18283SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18284 PyObject *resultobj = 0;
18285 wxDC *arg1 = (wxDC *) 0 ;
18286 void *argp1 = 0 ;
18287 int res1 = 0 ;
18288 PyObject *swig_obj[1] ;
18289
18290 if (!args) SWIG_fail;
18291 swig_obj[0] = args;
18292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18293 if (!SWIG_IsOK(res1)) {
18294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18295 }
18296 arg1 = reinterpret_cast< wxDC * >(argp1);
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 delete arg1;
d55e5bfc 18300
554f62e9
RD
18301 wxPyEndAllowThreads(__tstate);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 resultobj = SWIG_Py_Void();
18305 return resultobj;
18306fail:
18307 return NULL;
18308}
18309
18310
18311SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj = 0;
18313 wxDC *arg1 = (wxDC *) 0 ;
18314 int arg2 ;
18315 int arg3 ;
18316 wxColour *arg4 = 0 ;
18317 int arg5 = (int) wxFLOOD_SURFACE ;
18318 bool result;
18319 void *argp1 = 0 ;
18320 int res1 = 0 ;
18321 int val2 ;
18322 int ecode2 = 0 ;
18323 int val3 ;
18324 int ecode3 = 0 ;
18325 wxColour temp4 ;
18326 int val5 ;
18327 int ecode5 = 0 ;
18328 PyObject * obj0 = 0 ;
18329 PyObject * obj1 = 0 ;
18330 PyObject * obj2 = 0 ;
18331 PyObject * obj3 = 0 ;
18332 PyObject * obj4 = 0 ;
18333 char * kwnames[] = {
18334 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18335 };
18336
18337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18341 }
18342 arg1 = reinterpret_cast< wxDC * >(argp1);
18343 ecode2 = SWIG_AsVal_int(obj1, &val2);
18344 if (!SWIG_IsOK(ecode2)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18346 }
18347 arg2 = static_cast< int >(val2);
18348 ecode3 = SWIG_AsVal_int(obj2, &val3);
18349 if (!SWIG_IsOK(ecode3)) {
18350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18351 }
18352 arg3 = static_cast< int >(val3);
18353 {
18354 arg4 = &temp4;
18355 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18356 }
18357 if (obj4) {
18358 ecode5 = SWIG_AsVal_int(obj4, &val5);
18359 if (!SWIG_IsOK(ecode5)) {
18360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18361 }
18362 arg5 = static_cast< int >(val5);
18363 }
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 {
18371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18372 }
18373 return resultobj;
18374fail:
18375 return NULL;
18376}
18377
18378
18379SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj = 0;
18381 wxDC *arg1 = (wxDC *) 0 ;
18382 wxPoint *arg2 = 0 ;
18383 wxColour *arg3 = 0 ;
18384 int arg4 = (int) wxFLOOD_SURFACE ;
18385 bool result;
18386 void *argp1 = 0 ;
18387 int res1 = 0 ;
18388 wxPoint temp2 ;
18389 wxColour temp3 ;
18390 int val4 ;
18391 int ecode4 = 0 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 PyObject * obj3 = 0 ;
18396 char * kwnames[] = {
18397 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18398 };
18399
18400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18402 if (!SWIG_IsOK(res1)) {
18403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18404 }
18405 arg1 = reinterpret_cast< wxDC * >(argp1);
18406 {
18407 arg2 = &temp2;
18408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18409 }
18410 {
18411 arg3 = &temp3;
18412 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18413 }
18414 if (obj3) {
18415 ecode4 = SWIG_AsVal_int(obj3, &val4);
18416 if (!SWIG_IsOK(ecode4)) {
18417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18418 }
18419 arg4 = static_cast< int >(val4);
18420 }
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 {
18428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18429 }
18430 return resultobj;
18431fail:
18432 return NULL;
18433}
18434
18435
18436SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18437 PyObject *resultobj = 0;
18438 wxDC *arg1 = (wxDC *) 0 ;
18439 wxRect *arg2 = 0 ;
18440 wxColour *arg3 = 0 ;
18441 wxColour *arg4 = 0 ;
18442 wxPoint *arg5 = 0 ;
18443 void *argp1 = 0 ;
18444 int res1 = 0 ;
18445 wxRect temp2 ;
18446 wxColour temp3 ;
18447 wxColour temp4 ;
18448 wxPoint temp5 ;
18449 PyObject * obj0 = 0 ;
18450 PyObject * obj1 = 0 ;
18451 PyObject * obj2 = 0 ;
18452 PyObject * obj3 = 0 ;
18453 PyObject * obj4 = 0 ;
18454 char * kwnames[] = {
18455 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18456 };
18457
18458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18460 if (!SWIG_IsOK(res1)) {
18461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18462 }
18463 arg1 = reinterpret_cast< wxDC * >(argp1);
18464 {
18465 arg2 = &temp2;
18466 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18467 }
18468 {
18469 arg3 = &temp3;
18470 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18471 }
18472 {
18473 arg4 = &temp4;
18474 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18475 }
18476 {
18477 arg5 = &temp5;
18478 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18479 }
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_Py_Void();
18487 return resultobj;
18488fail:
18489 return NULL;
18490}
18491
18492
18493SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxDC *arg1 = (wxDC *) 0 ;
18496 wxRect *arg2 = 0 ;
18497 wxColour *arg3 = 0 ;
18498 wxColour *arg4 = 0 ;
18499 wxDirection arg5 = (wxDirection) wxEAST ;
18500 void *argp1 = 0 ;
18501 int res1 = 0 ;
18502 wxRect temp2 ;
18503 wxColour temp3 ;
18504 wxColour temp4 ;
18505 int val5 ;
18506 int ecode5 = 0 ;
18507 PyObject * obj0 = 0 ;
18508 PyObject * obj1 = 0 ;
18509 PyObject * obj2 = 0 ;
18510 PyObject * obj3 = 0 ;
18511 PyObject * obj4 = 0 ;
18512 char * kwnames[] = {
18513 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18514 };
18515
18516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18518 if (!SWIG_IsOK(res1)) {
18519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18520 }
18521 arg1 = reinterpret_cast< wxDC * >(argp1);
18522 {
18523 arg2 = &temp2;
18524 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18525 }
18526 {
18527 arg3 = &temp3;
18528 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18529 }
18530 {
18531 arg4 = &temp4;
18532 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18533 }
18534 if (obj4) {
18535 ecode5 = SWIG_AsVal_int(obj4, &val5);
18536 if (!SWIG_IsOK(ecode5)) {
18537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18538 }
18539 arg5 = static_cast< wxDirection >(val5);
18540 }
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18544 wxPyEndAllowThreads(__tstate);
18545 if (PyErr_Occurred()) SWIG_fail;
18546 }
18547 resultobj = SWIG_Py_Void();
18548 return resultobj;
18549fail:
18550 return NULL;
18551}
18552
18553
18554SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18555 PyObject *resultobj = 0;
18556 wxDC *arg1 = (wxDC *) 0 ;
18557 int arg2 ;
18558 int arg3 ;
18559 wxColour result;
18560 void *argp1 = 0 ;
18561 int res1 = 0 ;
18562 int val2 ;
18563 int ecode2 = 0 ;
18564 int val3 ;
18565 int ecode3 = 0 ;
18566 PyObject * obj0 = 0 ;
18567 PyObject * obj1 = 0 ;
18568 PyObject * obj2 = 0 ;
18569 char * kwnames[] = {
18570 (char *) "self",(char *) "x",(char *) "y", NULL
18571 };
18572
18573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18575 if (!SWIG_IsOK(res1)) {
18576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18577 }
18578 arg1 = reinterpret_cast< wxDC * >(argp1);
18579 ecode2 = SWIG_AsVal_int(obj1, &val2);
18580 if (!SWIG_IsOK(ecode2)) {
18581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18582 }
18583 arg2 = static_cast< int >(val2);
18584 ecode3 = SWIG_AsVal_int(obj2, &val3);
18585 if (!SWIG_IsOK(ecode3)) {
18586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18587 }
18588 arg3 = static_cast< int >(val3);
18589 {
18590 PyThreadState* __tstate = wxPyBeginAllowThreads();
18591 result = wxDC_GetPixel(arg1,arg2,arg3);
18592 wxPyEndAllowThreads(__tstate);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18596 return resultobj;
18597fail:
18598 return NULL;
18599}
18600
18601
18602SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj = 0;
18604 wxDC *arg1 = (wxDC *) 0 ;
18605 wxPoint *arg2 = 0 ;
18606 wxColour result;
18607 void *argp1 = 0 ;
18608 int res1 = 0 ;
18609 wxPoint temp2 ;
18610 PyObject * obj0 = 0 ;
18611 PyObject * obj1 = 0 ;
18612 char * kwnames[] = {
18613 (char *) "self",(char *) "pt", NULL
18614 };
18615
18616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18618 if (!SWIG_IsOK(res1)) {
18619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18620 }
18621 arg1 = reinterpret_cast< wxDC * >(argp1);
18622 {
18623 arg2 = &temp2;
18624 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18625 }
18626 {
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18629 wxPyEndAllowThreads(__tstate);
18630 if (PyErr_Occurred()) SWIG_fail;
18631 }
18632 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18633 return resultobj;
18634fail:
18635 return NULL;
18636}
18637
18638
18639SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18640 PyObject *resultobj = 0;
18641 wxDC *arg1 = (wxDC *) 0 ;
18642 int arg2 ;
18643 int arg3 ;
18644 int arg4 ;
18645 int arg5 ;
18646 void *argp1 = 0 ;
18647 int res1 = 0 ;
18648 int val2 ;
18649 int ecode2 = 0 ;
18650 int val3 ;
18651 int ecode3 = 0 ;
18652 int val4 ;
18653 int ecode4 = 0 ;
18654 int val5 ;
18655 int ecode5 = 0 ;
18656 PyObject * obj0 = 0 ;
18657 PyObject * obj1 = 0 ;
18658 PyObject * obj2 = 0 ;
18659 PyObject * obj3 = 0 ;
18660 PyObject * obj4 = 0 ;
18661 char * kwnames[] = {
18662 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18663 };
18664
18665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18667 if (!SWIG_IsOK(res1)) {
18668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18669 }
18670 arg1 = reinterpret_cast< wxDC * >(argp1);
18671 ecode2 = SWIG_AsVal_int(obj1, &val2);
18672 if (!SWIG_IsOK(ecode2)) {
18673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18674 }
18675 arg2 = static_cast< int >(val2);
18676 ecode3 = SWIG_AsVal_int(obj2, &val3);
18677 if (!SWIG_IsOK(ecode3)) {
18678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18679 }
18680 arg3 = static_cast< int >(val3);
18681 ecode4 = SWIG_AsVal_int(obj3, &val4);
18682 if (!SWIG_IsOK(ecode4)) {
18683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18684 }
18685 arg4 = static_cast< int >(val4);
18686 ecode5 = SWIG_AsVal_int(obj4, &val5);
18687 if (!SWIG_IsOK(ecode5)) {
18688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18689 }
18690 arg5 = static_cast< int >(val5);
18691 {
18692 PyThreadState* __tstate = wxPyBeginAllowThreads();
18693 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 resultobj = SWIG_Py_Void();
18698 return resultobj;
18699fail:
18700 return NULL;
18701}
18702
18703
18704SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj = 0;
18706 wxDC *arg1 = (wxDC *) 0 ;
18707 wxPoint *arg2 = 0 ;
18708 wxPoint *arg3 = 0 ;
18709 void *argp1 = 0 ;
18710 int res1 = 0 ;
18711 wxPoint temp2 ;
18712 wxPoint temp3 ;
18713 PyObject * obj0 = 0 ;
18714 PyObject * obj1 = 0 ;
18715 PyObject * obj2 = 0 ;
18716 char * kwnames[] = {
18717 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18718 };
18719
18720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18722 if (!SWIG_IsOK(res1)) {
18723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18724 }
18725 arg1 = reinterpret_cast< wxDC * >(argp1);
18726 {
18727 arg2 = &temp2;
18728 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18729 }
18730 {
18731 arg3 = &temp3;
18732 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18733 }
18734 {
18735 PyThreadState* __tstate = wxPyBeginAllowThreads();
18736 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18737 wxPyEndAllowThreads(__tstate);
18738 if (PyErr_Occurred()) SWIG_fail;
18739 }
18740 resultobj = SWIG_Py_Void();
18741 return resultobj;
18742fail:
18743 return NULL;
18744}
18745
18746
18747SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18748 PyObject *resultobj = 0;
18749 wxDC *arg1 = (wxDC *) 0 ;
18750 int arg2 ;
18751 int arg3 ;
18752 void *argp1 = 0 ;
18753 int res1 = 0 ;
18754 int val2 ;
18755 int ecode2 = 0 ;
18756 int val3 ;
18757 int ecode3 = 0 ;
18758 PyObject * obj0 = 0 ;
18759 PyObject * obj1 = 0 ;
18760 PyObject * obj2 = 0 ;
18761 char * kwnames[] = {
18762 (char *) "self",(char *) "x",(char *) "y", NULL
18763 };
18764
18765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18767 if (!SWIG_IsOK(res1)) {
18768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18769 }
18770 arg1 = reinterpret_cast< wxDC * >(argp1);
18771 ecode2 = SWIG_AsVal_int(obj1, &val2);
18772 if (!SWIG_IsOK(ecode2)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18774 }
18775 arg2 = static_cast< int >(val2);
18776 ecode3 = SWIG_AsVal_int(obj2, &val3);
18777 if (!SWIG_IsOK(ecode3)) {
18778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18779 }
18780 arg3 = static_cast< int >(val3);
18781 {
18782 PyThreadState* __tstate = wxPyBeginAllowThreads();
18783 (arg1)->CrossHair(arg2,arg3);
18784 wxPyEndAllowThreads(__tstate);
18785 if (PyErr_Occurred()) SWIG_fail;
18786 }
18787 resultobj = SWIG_Py_Void();
18788 return resultobj;
18789fail:
18790 return NULL;
18791}
18792
18793
18794SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18795 PyObject *resultobj = 0;
18796 wxDC *arg1 = (wxDC *) 0 ;
18797 wxPoint *arg2 = 0 ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 wxPoint temp2 ;
18801 PyObject * obj0 = 0 ;
18802 PyObject * obj1 = 0 ;
18803 char * kwnames[] = {
18804 (char *) "self",(char *) "pt", NULL
18805 };
18806
18807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18809 if (!SWIG_IsOK(res1)) {
18810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18811 }
18812 arg1 = reinterpret_cast< wxDC * >(argp1);
18813 {
18814 arg2 = &temp2;
18815 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18816 }
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 (arg1)->CrossHair((wxPoint const &)*arg2);
18820 wxPyEndAllowThreads(__tstate);
18821 if (PyErr_Occurred()) SWIG_fail;
18822 }
18823 resultobj = SWIG_Py_Void();
18824 return resultobj;
18825fail:
18826 return NULL;
18827}
18828
18829
18830SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj = 0;
18832 wxDC *arg1 = (wxDC *) 0 ;
18833 int arg2 ;
18834 int arg3 ;
18835 int arg4 ;
18836 int arg5 ;
18837 int arg6 ;
18838 int arg7 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 int val2 ;
18842 int ecode2 = 0 ;
18843 int val3 ;
18844 int ecode3 = 0 ;
18845 int val4 ;
18846 int ecode4 = 0 ;
18847 int val5 ;
18848 int ecode5 = 0 ;
18849 int val6 ;
18850 int ecode6 = 0 ;
18851 int val7 ;
18852 int ecode7 = 0 ;
18853 PyObject * obj0 = 0 ;
18854 PyObject * obj1 = 0 ;
18855 PyObject * obj2 = 0 ;
18856 PyObject * obj3 = 0 ;
18857 PyObject * obj4 = 0 ;
18858 PyObject * obj5 = 0 ;
18859 PyObject * obj6 = 0 ;
18860 char * kwnames[] = {
18861 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18862 };
18863
18864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18866 if (!SWIG_IsOK(res1)) {
18867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18868 }
18869 arg1 = reinterpret_cast< wxDC * >(argp1);
18870 ecode2 = SWIG_AsVal_int(obj1, &val2);
18871 if (!SWIG_IsOK(ecode2)) {
18872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18873 }
18874 arg2 = static_cast< int >(val2);
18875 ecode3 = SWIG_AsVal_int(obj2, &val3);
18876 if (!SWIG_IsOK(ecode3)) {
18877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18878 }
18879 arg3 = static_cast< int >(val3);
18880 ecode4 = SWIG_AsVal_int(obj3, &val4);
18881 if (!SWIG_IsOK(ecode4)) {
18882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18883 }
18884 arg4 = static_cast< int >(val4);
18885 ecode5 = SWIG_AsVal_int(obj4, &val5);
18886 if (!SWIG_IsOK(ecode5)) {
18887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18888 }
18889 arg5 = static_cast< int >(val5);
18890 ecode6 = SWIG_AsVal_int(obj5, &val6);
18891 if (!SWIG_IsOK(ecode6)) {
18892 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18893 }
18894 arg6 = static_cast< int >(val6);
18895 ecode7 = SWIG_AsVal_int(obj6, &val7);
18896 if (!SWIG_IsOK(ecode7)) {
18897 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18898 }
18899 arg7 = static_cast< int >(val7);
18900 {
18901 PyThreadState* __tstate = wxPyBeginAllowThreads();
18902 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18903 wxPyEndAllowThreads(__tstate);
18904 if (PyErr_Occurred()) SWIG_fail;
18905 }
18906 resultobj = SWIG_Py_Void();
18907 return resultobj;
18908fail:
18909 return NULL;
18910}
18911
18912
18913SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18914 PyObject *resultobj = 0;
18915 wxDC *arg1 = (wxDC *) 0 ;
18916 wxPoint *arg2 = 0 ;
18917 wxPoint *arg3 = 0 ;
18918 wxPoint *arg4 = 0 ;
18919 void *argp1 = 0 ;
18920 int res1 = 0 ;
18921 wxPoint temp2 ;
18922 wxPoint temp3 ;
18923 wxPoint temp4 ;
18924 PyObject * obj0 = 0 ;
18925 PyObject * obj1 = 0 ;
18926 PyObject * obj2 = 0 ;
18927 PyObject * obj3 = 0 ;
18928 char * kwnames[] = {
18929 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18930 };
18931
18932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18934 if (!SWIG_IsOK(res1)) {
18935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18936 }
18937 arg1 = reinterpret_cast< wxDC * >(argp1);
18938 {
18939 arg2 = &temp2;
18940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18941 }
18942 {
18943 arg3 = &temp3;
18944 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18945 }
18946 {
18947 arg4 = &temp4;
18948 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18949 }
18950 {
18951 PyThreadState* __tstate = wxPyBeginAllowThreads();
18952 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18953 wxPyEndAllowThreads(__tstate);
18954 if (PyErr_Occurred()) SWIG_fail;
18955 }
18956 resultobj = SWIG_Py_Void();
18957 return resultobj;
18958fail:
18959 return NULL;
18960}
18961
18962
18963SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj = 0;
18965 wxDC *arg1 = (wxDC *) 0 ;
18966 int arg2 ;
18967 int arg3 ;
18968 int arg4 ;
18969 int arg5 ;
18970 void *argp1 = 0 ;
18971 int res1 = 0 ;
18972 int val2 ;
18973 int ecode2 = 0 ;
18974 int val3 ;
18975 int ecode3 = 0 ;
18976 int val4 ;
18977 int ecode4 = 0 ;
18978 int val5 ;
18979 int ecode5 = 0 ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 PyObject * obj2 = 0 ;
18983 PyObject * obj3 = 0 ;
18984 PyObject * obj4 = 0 ;
18985 char * kwnames[] = {
18986 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18987 };
18988
18989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18993 }
18994 arg1 = reinterpret_cast< wxDC * >(argp1);
18995 ecode2 = SWIG_AsVal_int(obj1, &val2);
18996 if (!SWIG_IsOK(ecode2)) {
18997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18998 }
18999 arg2 = static_cast< int >(val2);
19000 ecode3 = SWIG_AsVal_int(obj2, &val3);
19001 if (!SWIG_IsOK(ecode3)) {
19002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
19003 }
19004 arg3 = static_cast< int >(val3);
19005 ecode4 = SWIG_AsVal_int(obj3, &val4);
19006 if (!SWIG_IsOK(ecode4)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
19008 }
19009 arg4 = static_cast< int >(val4);
19010 ecode5 = SWIG_AsVal_int(obj4, &val5);
19011 if (!SWIG_IsOK(ecode5)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
19013 }
19014 arg5 = static_cast< int >(val5);
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_Py_Void();
19022 return resultobj;
19023fail:
19024 return NULL;
19025}
19026
19027
19028SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19029 PyObject *resultobj = 0;
19030 wxDC *arg1 = (wxDC *) 0 ;
19031 wxRect *arg2 = 0 ;
19032 void *argp1 = 0 ;
19033 int res1 = 0 ;
19034 wxRect temp2 ;
19035 PyObject * obj0 = 0 ;
19036 PyObject * obj1 = 0 ;
19037 char * kwnames[] = {
19038 (char *) "self",(char *) "rect", NULL
19039 };
19040
19041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
19042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19043 if (!SWIG_IsOK(res1)) {
19044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
19045 }
19046 arg1 = reinterpret_cast< wxDC * >(argp1);
19047 {
19048 arg2 = &temp2;
19049 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19050 }
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 (arg1)->DrawCheckMark((wxRect const &)*arg2);
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 resultobj = SWIG_Py_Void();
19058 return resultobj;
19059fail:
19060 return NULL;
19061}
19062
19063
19064SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj = 0;
19066 wxDC *arg1 = (wxDC *) 0 ;
19067 int arg2 ;
19068 int arg3 ;
19069 int arg4 ;
19070 int arg5 ;
19071 double arg6 ;
19072 double arg7 ;
19073 void *argp1 = 0 ;
19074 int res1 = 0 ;
19075 int val2 ;
19076 int ecode2 = 0 ;
19077 int val3 ;
19078 int ecode3 = 0 ;
19079 int val4 ;
19080 int ecode4 = 0 ;
19081 int val5 ;
19082 int ecode5 = 0 ;
19083 double val6 ;
19084 int ecode6 = 0 ;
19085 double val7 ;
19086 int ecode7 = 0 ;
19087 PyObject * obj0 = 0 ;
19088 PyObject * obj1 = 0 ;
19089 PyObject * obj2 = 0 ;
19090 PyObject * obj3 = 0 ;
19091 PyObject * obj4 = 0 ;
19092 PyObject * obj5 = 0 ;
19093 PyObject * obj6 = 0 ;
19094 char * kwnames[] = {
19095 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19096 };
19097
19098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19100 if (!SWIG_IsOK(res1)) {
19101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19102 }
19103 arg1 = reinterpret_cast< wxDC * >(argp1);
19104 ecode2 = SWIG_AsVal_int(obj1, &val2);
19105 if (!SWIG_IsOK(ecode2)) {
19106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19107 }
19108 arg2 = static_cast< int >(val2);
19109 ecode3 = SWIG_AsVal_int(obj2, &val3);
19110 if (!SWIG_IsOK(ecode3)) {
19111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19112 }
19113 arg3 = static_cast< int >(val3);
19114 ecode4 = SWIG_AsVal_int(obj3, &val4);
19115 if (!SWIG_IsOK(ecode4)) {
19116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19117 }
19118 arg4 = static_cast< int >(val4);
19119 ecode5 = SWIG_AsVal_int(obj4, &val5);
19120 if (!SWIG_IsOK(ecode5)) {
19121 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19122 }
19123 arg5 = static_cast< int >(val5);
19124 ecode6 = SWIG_AsVal_double(obj5, &val6);
19125 if (!SWIG_IsOK(ecode6)) {
19126 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19127 }
19128 arg6 = static_cast< double >(val6);
19129 ecode7 = SWIG_AsVal_double(obj6, &val7);
19130 if (!SWIG_IsOK(ecode7)) {
19131 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19132 }
19133 arg7 = static_cast< double >(val7);
19134 {
19135 PyThreadState* __tstate = wxPyBeginAllowThreads();
19136 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_Py_Void();
19141 return resultobj;
19142fail:
19143 return NULL;
19144}
19145
19146
19147SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19148 PyObject *resultobj = 0;
19149 wxDC *arg1 = (wxDC *) 0 ;
19150 wxPoint *arg2 = 0 ;
19151 wxSize *arg3 = 0 ;
19152 double arg4 ;
19153 double arg5 ;
19154 void *argp1 = 0 ;
19155 int res1 = 0 ;
19156 wxPoint temp2 ;
19157 wxSize temp3 ;
19158 double val4 ;
19159 int ecode4 = 0 ;
19160 double val5 ;
19161 int ecode5 = 0 ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 PyObject * obj2 = 0 ;
19165 PyObject * obj3 = 0 ;
19166 PyObject * obj4 = 0 ;
19167 char * kwnames[] = {
19168 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19169 };
19170
19171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19175 }
19176 arg1 = reinterpret_cast< wxDC * >(argp1);
19177 {
19178 arg2 = &temp2;
19179 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19180 }
19181 {
19182 arg3 = &temp3;
19183 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19184 }
19185 ecode4 = SWIG_AsVal_double(obj3, &val4);
19186 if (!SWIG_IsOK(ecode4)) {
19187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19188 }
19189 arg4 = static_cast< double >(val4);
19190 ecode5 = SWIG_AsVal_double(obj4, &val5);
19191 if (!SWIG_IsOK(ecode5)) {
19192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19193 }
19194 arg5 = static_cast< double >(val5);
19195 {
19196 PyThreadState* __tstate = wxPyBeginAllowThreads();
19197 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19198 wxPyEndAllowThreads(__tstate);
19199 if (PyErr_Occurred()) SWIG_fail;
19200 }
19201 resultobj = SWIG_Py_Void();
19202 return resultobj;
19203fail:
19204 return NULL;
19205}
19206
19207
19208SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19209 PyObject *resultobj = 0;
19210 wxDC *arg1 = (wxDC *) 0 ;
19211 int arg2 ;
19212 int arg3 ;
19213 void *argp1 = 0 ;
19214 int res1 = 0 ;
19215 int val2 ;
19216 int ecode2 = 0 ;
19217 int val3 ;
19218 int ecode3 = 0 ;
19219 PyObject * obj0 = 0 ;
19220 PyObject * obj1 = 0 ;
19221 PyObject * obj2 = 0 ;
19222 char * kwnames[] = {
19223 (char *) "self",(char *) "x",(char *) "y", NULL
19224 };
19225
19226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19230 }
19231 arg1 = reinterpret_cast< wxDC * >(argp1);
19232 ecode2 = SWIG_AsVal_int(obj1, &val2);
19233 if (!SWIG_IsOK(ecode2)) {
19234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19235 }
19236 arg2 = static_cast< int >(val2);
19237 ecode3 = SWIG_AsVal_int(obj2, &val3);
19238 if (!SWIG_IsOK(ecode3)) {
19239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19240 }
19241 arg3 = static_cast< int >(val3);
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->DrawPoint(arg2,arg3);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 resultobj = SWIG_Py_Void();
19249 return resultobj;
19250fail:
19251 return NULL;
19252}
19253
19254
19255SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxDC *arg1 = (wxDC *) 0 ;
19258 wxPoint *arg2 = 0 ;
19259 void *argp1 = 0 ;
19260 int res1 = 0 ;
19261 wxPoint temp2 ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 char * kwnames[] = {
19265 (char *) "self",(char *) "pt", NULL
19266 };
19267
19268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19270 if (!SWIG_IsOK(res1)) {
19271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19272 }
19273 arg1 = reinterpret_cast< wxDC * >(argp1);
19274 {
19275 arg2 = &temp2;
19276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19277 }
19278 {
19279 PyThreadState* __tstate = wxPyBeginAllowThreads();
19280 (arg1)->DrawPoint((wxPoint const &)*arg2);
19281 wxPyEndAllowThreads(__tstate);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 }
19284 resultobj = SWIG_Py_Void();
19285 return resultobj;
19286fail:
19287 return NULL;
19288}
19289
19290
19291SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19292 PyObject *resultobj = 0;
19293 wxDC *arg1 = (wxDC *) 0 ;
19294 int arg2 ;
19295 int arg3 ;
19296 int arg4 ;
19297 int arg5 ;
19298 void *argp1 = 0 ;
19299 int res1 = 0 ;
19300 int val2 ;
19301 int ecode2 = 0 ;
19302 int val3 ;
19303 int ecode3 = 0 ;
19304 int val4 ;
19305 int ecode4 = 0 ;
19306 int val5 ;
19307 int ecode5 = 0 ;
19308 PyObject * obj0 = 0 ;
19309 PyObject * obj1 = 0 ;
19310 PyObject * obj2 = 0 ;
19311 PyObject * obj3 = 0 ;
19312 PyObject * obj4 = 0 ;
19313 char * kwnames[] = {
19314 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19315 };
19316
19317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19319 if (!SWIG_IsOK(res1)) {
19320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19321 }
19322 arg1 = reinterpret_cast< wxDC * >(argp1);
19323 ecode2 = SWIG_AsVal_int(obj1, &val2);
19324 if (!SWIG_IsOK(ecode2)) {
19325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19326 }
19327 arg2 = static_cast< int >(val2);
19328 ecode3 = SWIG_AsVal_int(obj2, &val3);
19329 if (!SWIG_IsOK(ecode3)) {
19330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19331 }
19332 arg3 = static_cast< int >(val3);
19333 ecode4 = SWIG_AsVal_int(obj3, &val4);
19334 if (!SWIG_IsOK(ecode4)) {
19335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19336 }
19337 arg4 = static_cast< int >(val4);
19338 ecode5 = SWIG_AsVal_int(obj4, &val5);
19339 if (!SWIG_IsOK(ecode5)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19341 }
19342 arg5 = static_cast< int >(val5);
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19346 wxPyEndAllowThreads(__tstate);
19347 if (PyErr_Occurred()) SWIG_fail;
19348 }
19349 resultobj = SWIG_Py_Void();
19350 return resultobj;
19351fail:
19352 return NULL;
19353}
19354
19355
19356SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19357 PyObject *resultobj = 0;
19358 wxDC *arg1 = (wxDC *) 0 ;
19359 wxRect *arg2 = 0 ;
19360 void *argp1 = 0 ;
19361 int res1 = 0 ;
19362 wxRect temp2 ;
19363 PyObject * obj0 = 0 ;
19364 PyObject * obj1 = 0 ;
19365 char * kwnames[] = {
19366 (char *) "self",(char *) "rect", NULL
19367 };
19368
19369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19371 if (!SWIG_IsOK(res1)) {
19372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19373 }
19374 arg1 = reinterpret_cast< wxDC * >(argp1);
19375 {
19376 arg2 = &temp2;
19377 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19378 }
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 (arg1)->DrawRectangle((wxRect const &)*arg2);
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 resultobj = SWIG_Py_Void();
19386 return resultobj;
19387fail:
19388 return NULL;
19389}
19390
19391
19392SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxDC *arg1 = (wxDC *) 0 ;
19395 wxPoint *arg2 = 0 ;
19396 wxSize *arg3 = 0 ;
19397 void *argp1 = 0 ;
19398 int res1 = 0 ;
19399 wxPoint temp2 ;
19400 wxSize temp3 ;
19401 PyObject * obj0 = 0 ;
19402 PyObject * obj1 = 0 ;
19403 PyObject * obj2 = 0 ;
19404 char * kwnames[] = {
19405 (char *) "self",(char *) "pt",(char *) "sz", NULL
19406 };
19407
19408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19410 if (!SWIG_IsOK(res1)) {
19411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19412 }
19413 arg1 = reinterpret_cast< wxDC * >(argp1);
19414 {
19415 arg2 = &temp2;
19416 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19417 }
19418 {
19419 arg3 = &temp3;
19420 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19421 }
19422 {
19423 PyThreadState* __tstate = wxPyBeginAllowThreads();
19424 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19425 wxPyEndAllowThreads(__tstate);
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 resultobj = SWIG_Py_Void();
19429 return resultobj;
19430fail:
19431 return NULL;
19432}
19433
19434
19435SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19436 PyObject *resultobj = 0;
19437 wxDC *arg1 = (wxDC *) 0 ;
19438 int arg2 ;
19439 int arg3 ;
19440 int arg4 ;
19441 int arg5 ;
19442 double arg6 ;
19443 void *argp1 = 0 ;
19444 int res1 = 0 ;
19445 int val2 ;
19446 int ecode2 = 0 ;
19447 int val3 ;
19448 int ecode3 = 0 ;
19449 int val4 ;
19450 int ecode4 = 0 ;
19451 int val5 ;
19452 int ecode5 = 0 ;
19453 double val6 ;
19454 int ecode6 = 0 ;
19455 PyObject * obj0 = 0 ;
19456 PyObject * obj1 = 0 ;
19457 PyObject * obj2 = 0 ;
19458 PyObject * obj3 = 0 ;
19459 PyObject * obj4 = 0 ;
19460 PyObject * obj5 = 0 ;
19461 char * kwnames[] = {
19462 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19463 };
19464
19465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19467 if (!SWIG_IsOK(res1)) {
19468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19469 }
19470 arg1 = reinterpret_cast< wxDC * >(argp1);
19471 ecode2 = SWIG_AsVal_int(obj1, &val2);
19472 if (!SWIG_IsOK(ecode2)) {
19473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19474 }
19475 arg2 = static_cast< int >(val2);
19476 ecode3 = SWIG_AsVal_int(obj2, &val3);
19477 if (!SWIG_IsOK(ecode3)) {
19478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19479 }
19480 arg3 = static_cast< int >(val3);
19481 ecode4 = SWIG_AsVal_int(obj3, &val4);
19482 if (!SWIG_IsOK(ecode4)) {
19483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19484 }
19485 arg4 = static_cast< int >(val4);
19486 ecode5 = SWIG_AsVal_int(obj4, &val5);
19487 if (!SWIG_IsOK(ecode5)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19489 }
19490 arg5 = static_cast< int >(val5);
19491 ecode6 = SWIG_AsVal_double(obj5, &val6);
19492 if (!SWIG_IsOK(ecode6)) {
19493 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19494 }
19495 arg6 = static_cast< double >(val6);
19496 {
19497 PyThreadState* __tstate = wxPyBeginAllowThreads();
19498 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19499 wxPyEndAllowThreads(__tstate);
19500 if (PyErr_Occurred()) SWIG_fail;
19501 }
19502 resultobj = SWIG_Py_Void();
19503 return resultobj;
19504fail:
19505 return NULL;
19506}
19507
19508
19509SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19510 PyObject *resultobj = 0;
19511 wxDC *arg1 = (wxDC *) 0 ;
19512 wxRect *arg2 = 0 ;
19513 double arg3 ;
19514 void *argp1 = 0 ;
19515 int res1 = 0 ;
19516 wxRect temp2 ;
19517 double val3 ;
19518 int ecode3 = 0 ;
19519 PyObject * obj0 = 0 ;
19520 PyObject * obj1 = 0 ;
19521 PyObject * obj2 = 0 ;
19522 char * kwnames[] = {
19523 (char *) "self",(char *) "r",(char *) "radius", NULL
19524 };
19525
19526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19528 if (!SWIG_IsOK(res1)) {
19529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19530 }
19531 arg1 = reinterpret_cast< wxDC * >(argp1);
19532 {
19533 arg2 = &temp2;
19534 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19535 }
19536 ecode3 = SWIG_AsVal_double(obj2, &val3);
19537 if (!SWIG_IsOK(ecode3)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19539 }
19540 arg3 = static_cast< double >(val3);
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 resultobj = SWIG_Py_Void();
19548 return resultobj;
19549fail:
19550 return NULL;
19551}
19552
19553
19554SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19555 PyObject *resultobj = 0;
19556 wxDC *arg1 = (wxDC *) 0 ;
19557 wxPoint *arg2 = 0 ;
19558 wxSize *arg3 = 0 ;
19559 double arg4 ;
19560 void *argp1 = 0 ;
19561 int res1 = 0 ;
19562 wxPoint temp2 ;
19563 wxSize temp3 ;
19564 double val4 ;
19565 int ecode4 = 0 ;
19566 PyObject * obj0 = 0 ;
19567 PyObject * obj1 = 0 ;
19568 PyObject * obj2 = 0 ;
19569 PyObject * obj3 = 0 ;
19570 char * kwnames[] = {
19571 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19572 };
19573
19574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19576 if (!SWIG_IsOK(res1)) {
19577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19578 }
19579 arg1 = reinterpret_cast< wxDC * >(argp1);
19580 {
19581 arg2 = &temp2;
19582 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19583 }
19584 {
19585 arg3 = &temp3;
19586 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19587 }
19588 ecode4 = SWIG_AsVal_double(obj3, &val4);
19589 if (!SWIG_IsOK(ecode4)) {
19590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19591 }
19592 arg4 = static_cast< double >(val4);
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 resultobj = SWIG_Py_Void();
19600 return resultobj;
19601fail:
19602 return NULL;
19603}
19604
19605
19606SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19607 PyObject *resultobj = 0;
19608 wxDC *arg1 = (wxDC *) 0 ;
19609 int arg2 ;
19610 int arg3 ;
19611 int arg4 ;
19612 void *argp1 = 0 ;
19613 int res1 = 0 ;
19614 int val2 ;
19615 int ecode2 = 0 ;
19616 int val3 ;
19617 int ecode3 = 0 ;
19618 int val4 ;
19619 int ecode4 = 0 ;
19620 PyObject * obj0 = 0 ;
19621 PyObject * obj1 = 0 ;
19622 PyObject * obj2 = 0 ;
19623 PyObject * obj3 = 0 ;
19624 char * kwnames[] = {
19625 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19626 };
19627
19628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19630 if (!SWIG_IsOK(res1)) {
19631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19632 }
19633 arg1 = reinterpret_cast< wxDC * >(argp1);
19634 ecode2 = SWIG_AsVal_int(obj1, &val2);
19635 if (!SWIG_IsOK(ecode2)) {
19636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19637 }
19638 arg2 = static_cast< int >(val2);
19639 ecode3 = SWIG_AsVal_int(obj2, &val3);
19640 if (!SWIG_IsOK(ecode3)) {
19641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19642 }
19643 arg3 = static_cast< int >(val3);
19644 ecode4 = SWIG_AsVal_int(obj3, &val4);
19645 if (!SWIG_IsOK(ecode4)) {
19646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19647 }
19648 arg4 = static_cast< int >(val4);
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 (arg1)->DrawCircle(arg2,arg3,arg4);
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 resultobj = SWIG_Py_Void();
19656 return resultobj;
19657fail:
19658 return NULL;
19659}
19660
19661
19662SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19663 PyObject *resultobj = 0;
19664 wxDC *arg1 = (wxDC *) 0 ;
19665 wxPoint *arg2 = 0 ;
19666 int arg3 ;
19667 void *argp1 = 0 ;
19668 int res1 = 0 ;
19669 wxPoint temp2 ;
19670 int val3 ;
19671 int ecode3 = 0 ;
19672 PyObject * obj0 = 0 ;
19673 PyObject * obj1 = 0 ;
19674 PyObject * obj2 = 0 ;
19675 char * kwnames[] = {
19676 (char *) "self",(char *) "pt",(char *) "radius", NULL
19677 };
19678
19679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19681 if (!SWIG_IsOK(res1)) {
19682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19683 }
19684 arg1 = reinterpret_cast< wxDC * >(argp1);
19685 {
19686 arg2 = &temp2;
19687 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19688 }
19689 ecode3 = SWIG_AsVal_int(obj2, &val3);
19690 if (!SWIG_IsOK(ecode3)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19692 }
19693 arg3 = static_cast< int >(val3);
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 resultobj = SWIG_Py_Void();
19701 return resultobj;
19702fail:
19703 return NULL;
19704}
19705
19706
19707SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19708 PyObject *resultobj = 0;
19709 wxDC *arg1 = (wxDC *) 0 ;
19710 int arg2 ;
19711 int arg3 ;
19712 int arg4 ;
19713 int arg5 ;
19714 void *argp1 = 0 ;
19715 int res1 = 0 ;
19716 int val2 ;
19717 int ecode2 = 0 ;
19718 int val3 ;
19719 int ecode3 = 0 ;
19720 int val4 ;
19721 int ecode4 = 0 ;
19722 int val5 ;
19723 int ecode5 = 0 ;
19724 PyObject * obj0 = 0 ;
19725 PyObject * obj1 = 0 ;
19726 PyObject * obj2 = 0 ;
19727 PyObject * obj3 = 0 ;
19728 PyObject * obj4 = 0 ;
19729 char * kwnames[] = {
19730 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19731 };
19732
19733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19735 if (!SWIG_IsOK(res1)) {
19736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19737 }
19738 arg1 = reinterpret_cast< wxDC * >(argp1);
19739 ecode2 = SWIG_AsVal_int(obj1, &val2);
19740 if (!SWIG_IsOK(ecode2)) {
19741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19742 }
19743 arg2 = static_cast< int >(val2);
19744 ecode3 = SWIG_AsVal_int(obj2, &val3);
19745 if (!SWIG_IsOK(ecode3)) {
19746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19747 }
19748 arg3 = static_cast< int >(val3);
19749 ecode4 = SWIG_AsVal_int(obj3, &val4);
19750 if (!SWIG_IsOK(ecode4)) {
19751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19752 }
19753 arg4 = static_cast< int >(val4);
19754 ecode5 = SWIG_AsVal_int(obj4, &val5);
19755 if (!SWIG_IsOK(ecode5)) {
19756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19757 }
19758 arg5 = static_cast< int >(val5);
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 resultobj = SWIG_Py_Void();
19766 return resultobj;
19767fail:
19768 return NULL;
19769}
19770
19771
19772SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19773 PyObject *resultobj = 0;
19774 wxDC *arg1 = (wxDC *) 0 ;
19775 wxRect *arg2 = 0 ;
19776 void *argp1 = 0 ;
19777 int res1 = 0 ;
19778 wxRect temp2 ;
19779 PyObject * obj0 = 0 ;
19780 PyObject * obj1 = 0 ;
19781 char * kwnames[] = {
19782 (char *) "self",(char *) "rect", NULL
19783 };
19784
19785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19787 if (!SWIG_IsOK(res1)) {
19788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19789 }
19790 arg1 = reinterpret_cast< wxDC * >(argp1);
19791 {
19792 arg2 = &temp2;
19793 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19794 }
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 (arg1)->DrawEllipse((wxRect const &)*arg2);
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 resultobj = SWIG_Py_Void();
19802 return resultobj;
19803fail:
19804 return NULL;
19805}
19806
19807
19808SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19809 PyObject *resultobj = 0;
19810 wxDC *arg1 = (wxDC *) 0 ;
19811 wxPoint *arg2 = 0 ;
19812 wxSize *arg3 = 0 ;
19813 void *argp1 = 0 ;
19814 int res1 = 0 ;
19815 wxPoint temp2 ;
19816 wxSize temp3 ;
19817 PyObject * obj0 = 0 ;
19818 PyObject * obj1 = 0 ;
19819 PyObject * obj2 = 0 ;
19820 char * kwnames[] = {
19821 (char *) "self",(char *) "pt",(char *) "sz", NULL
19822 };
19823
19824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19826 if (!SWIG_IsOK(res1)) {
19827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19828 }
19829 arg1 = reinterpret_cast< wxDC * >(argp1);
19830 {
19831 arg2 = &temp2;
19832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19833 }
19834 {
19835 arg3 = &temp3;
19836 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19837 }
19838 {
19839 PyThreadState* __tstate = wxPyBeginAllowThreads();
19840 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 resultobj = SWIG_Py_Void();
19845 return resultobj;
19846fail:
19847 return NULL;
19848}
19849
19850
19851SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19852 PyObject *resultobj = 0;
19853 wxDC *arg1 = (wxDC *) 0 ;
19854 wxIcon *arg2 = 0 ;
19855 int arg3 ;
19856 int arg4 ;
19857 void *argp1 = 0 ;
19858 int res1 = 0 ;
19859 void *argp2 = 0 ;
19860 int res2 = 0 ;
19861 int val3 ;
19862 int ecode3 = 0 ;
19863 int val4 ;
19864 int ecode4 = 0 ;
19865 PyObject * obj0 = 0 ;
19866 PyObject * obj1 = 0 ;
19867 PyObject * obj2 = 0 ;
19868 PyObject * obj3 = 0 ;
19869 char * kwnames[] = {
19870 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19871 };
19872
19873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19875 if (!SWIG_IsOK(res1)) {
19876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19877 }
19878 arg1 = reinterpret_cast< wxDC * >(argp1);
19879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19880 if (!SWIG_IsOK(res2)) {
19881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19882 }
19883 if (!argp2) {
19884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19885 }
19886 arg2 = reinterpret_cast< wxIcon * >(argp2);
19887 ecode3 = SWIG_AsVal_int(obj2, &val3);
19888 if (!SWIG_IsOK(ecode3)) {
19889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19890 }
19891 arg3 = static_cast< int >(val3);
19892 ecode4 = SWIG_AsVal_int(obj3, &val4);
19893 if (!SWIG_IsOK(ecode4)) {
19894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19895 }
19896 arg4 = static_cast< int >(val4);
19897 {
19898 PyThreadState* __tstate = wxPyBeginAllowThreads();
19899 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19900 wxPyEndAllowThreads(__tstate);
19901 if (PyErr_Occurred()) SWIG_fail;
19902 }
19903 resultobj = SWIG_Py_Void();
19904 return resultobj;
19905fail:
19906 return NULL;
19907}
19908
19909
19910SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19911 PyObject *resultobj = 0;
19912 wxDC *arg1 = (wxDC *) 0 ;
19913 wxIcon *arg2 = 0 ;
19914 wxPoint *arg3 = 0 ;
19915 void *argp1 = 0 ;
19916 int res1 = 0 ;
19917 void *argp2 = 0 ;
19918 int res2 = 0 ;
19919 wxPoint temp3 ;
19920 PyObject * obj0 = 0 ;
19921 PyObject * obj1 = 0 ;
19922 PyObject * obj2 = 0 ;
19923 char * kwnames[] = {
19924 (char *) "self",(char *) "icon",(char *) "pt", NULL
19925 };
19926
19927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19929 if (!SWIG_IsOK(res1)) {
19930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19931 }
19932 arg1 = reinterpret_cast< wxDC * >(argp1);
19933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19934 if (!SWIG_IsOK(res2)) {
19935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19936 }
19937 if (!argp2) {
19938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19939 }
19940 arg2 = reinterpret_cast< wxIcon * >(argp2);
19941 {
19942 arg3 = &temp3;
19943 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19944 }
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 resultobj = SWIG_Py_Void();
19952 return resultobj;
19953fail:
19954 return NULL;
19955}
19956
19957
19958SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj = 0;
19960 wxDC *arg1 = (wxDC *) 0 ;
19961 wxBitmap *arg2 = 0 ;
19962 int arg3 ;
19963 int arg4 ;
19964 bool arg5 = (bool) false ;
19965 void *argp1 = 0 ;
19966 int res1 = 0 ;
19967 void *argp2 = 0 ;
19968 int res2 = 0 ;
19969 int val3 ;
19970 int ecode3 = 0 ;
19971 int val4 ;
19972 int ecode4 = 0 ;
19973 bool val5 ;
19974 int ecode5 = 0 ;
19975 PyObject * obj0 = 0 ;
19976 PyObject * obj1 = 0 ;
19977 PyObject * obj2 = 0 ;
19978 PyObject * obj3 = 0 ;
19979 PyObject * obj4 = 0 ;
19980 char * kwnames[] = {
19981 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19982 };
19983
19984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19986 if (!SWIG_IsOK(res1)) {
19987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19988 }
19989 arg1 = reinterpret_cast< wxDC * >(argp1);
19990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19991 if (!SWIG_IsOK(res2)) {
19992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19993 }
19994 if (!argp2) {
19995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19996 }
19997 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19998 ecode3 = SWIG_AsVal_int(obj2, &val3);
19999 if (!SWIG_IsOK(ecode3)) {
20000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
20001 }
20002 arg3 = static_cast< int >(val3);
20003 ecode4 = SWIG_AsVal_int(obj3, &val4);
20004 if (!SWIG_IsOK(ecode4)) {
20005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
20006 }
20007 arg4 = static_cast< int >(val4);
20008 if (obj4) {
20009 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20010 if (!SWIG_IsOK(ecode5)) {
20011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
20012 }
20013 arg5 = static_cast< bool >(val5);
20014 }
20015 {
20016 PyThreadState* __tstate = wxPyBeginAllowThreads();
20017 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_Py_Void();
20022 return resultobj;
20023fail:
20024 return NULL;
20025}
20026
20027
20028SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20029 PyObject *resultobj = 0;
20030 wxDC *arg1 = (wxDC *) 0 ;
20031 wxBitmap *arg2 = 0 ;
20032 wxPoint *arg3 = 0 ;
20033 bool arg4 = (bool) false ;
20034 void *argp1 = 0 ;
20035 int res1 = 0 ;
20036 void *argp2 = 0 ;
20037 int res2 = 0 ;
20038 wxPoint temp3 ;
20039 bool val4 ;
20040 int ecode4 = 0 ;
20041 PyObject * obj0 = 0 ;
20042 PyObject * obj1 = 0 ;
20043 PyObject * obj2 = 0 ;
20044 PyObject * obj3 = 0 ;
20045 char * kwnames[] = {
20046 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
20047 };
20048
20049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20051 if (!SWIG_IsOK(res1)) {
20052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20053 }
20054 arg1 = reinterpret_cast< wxDC * >(argp1);
20055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20056 if (!SWIG_IsOK(res2)) {
20057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20058 }
20059 if (!argp2) {
20060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20061 }
20062 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20063 {
20064 arg3 = &temp3;
20065 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20066 }
20067 if (obj3) {
20068 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20069 if (!SWIG_IsOK(ecode4)) {
20070 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20071 }
20072 arg4 = static_cast< bool >(val4);
20073 }
20074 {
20075 PyThreadState* __tstate = wxPyBeginAllowThreads();
20076 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20077 wxPyEndAllowThreads(__tstate);
20078 if (PyErr_Occurred()) SWIG_fail;
20079 }
20080 resultobj = SWIG_Py_Void();
20081 return resultobj;
20082fail:
20083 return NULL;
20084}
20085
20086
20087SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20088 PyObject *resultobj = 0;
20089 wxDC *arg1 = (wxDC *) 0 ;
20090 wxString *arg2 = 0 ;
20091 int arg3 ;
20092 int arg4 ;
20093 void *argp1 = 0 ;
20094 int res1 = 0 ;
20095 bool temp2 = false ;
20096 int val3 ;
20097 int ecode3 = 0 ;
20098 int val4 ;
20099 int ecode4 = 0 ;
20100 PyObject * obj0 = 0 ;
20101 PyObject * obj1 = 0 ;
20102 PyObject * obj2 = 0 ;
20103 PyObject * obj3 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20112 }
20113 arg1 = reinterpret_cast< wxDC * >(argp1);
20114 {
20115 arg2 = wxString_in_helper(obj1);
20116 if (arg2 == NULL) SWIG_fail;
20117 temp2 = true;
20118 }
20119 ecode3 = SWIG_AsVal_int(obj2, &val3);
20120 if (!SWIG_IsOK(ecode3)) {
20121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20122 }
20123 arg3 = static_cast< int >(val3);
20124 ecode4 = SWIG_AsVal_int(obj3, &val4);
20125 if (!SWIG_IsOK(ecode4)) {
20126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20127 }
20128 arg4 = static_cast< int >(val4);
20129 {
20130 PyThreadState* __tstate = wxPyBeginAllowThreads();
20131 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20132 wxPyEndAllowThreads(__tstate);
20133 if (PyErr_Occurred()) SWIG_fail;
20134 }
20135 resultobj = SWIG_Py_Void();
20136 {
20137 if (temp2)
20138 delete arg2;
20139 }
20140 return resultobj;
20141fail:
20142 {
20143 if (temp2)
20144 delete arg2;
20145 }
20146 return NULL;
20147}
20148
20149
20150SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20151 PyObject *resultobj = 0;
20152 wxDC *arg1 = (wxDC *) 0 ;
20153 wxString *arg2 = 0 ;
20154 wxPoint *arg3 = 0 ;
20155 void *argp1 = 0 ;
20156 int res1 = 0 ;
20157 bool temp2 = false ;
20158 wxPoint temp3 ;
20159 PyObject * obj0 = 0 ;
20160 PyObject * obj1 = 0 ;
20161 PyObject * obj2 = 0 ;
20162 char * kwnames[] = {
20163 (char *) "self",(char *) "text",(char *) "pt", NULL
20164 };
20165
20166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20168 if (!SWIG_IsOK(res1)) {
20169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20170 }
20171 arg1 = reinterpret_cast< wxDC * >(argp1);
20172 {
20173 arg2 = wxString_in_helper(obj1);
20174 if (arg2 == NULL) SWIG_fail;
20175 temp2 = true;
20176 }
20177 {
20178 arg3 = &temp3;
20179 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20180 }
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = SWIG_Py_Void();
20188 {
20189 if (temp2)
20190 delete arg2;
20191 }
20192 return resultobj;
20193fail:
20194 {
20195 if (temp2)
20196 delete arg2;
20197 }
20198 return NULL;
20199}
20200
20201
20202SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20203 PyObject *resultobj = 0;
20204 wxDC *arg1 = (wxDC *) 0 ;
20205 wxString *arg2 = 0 ;
20206 int arg3 ;
20207 int arg4 ;
20208 double arg5 ;
20209 void *argp1 = 0 ;
20210 int res1 = 0 ;
20211 bool temp2 = false ;
20212 int val3 ;
20213 int ecode3 = 0 ;
20214 int val4 ;
20215 int ecode4 = 0 ;
20216 double val5 ;
20217 int ecode5 = 0 ;
20218 PyObject * obj0 = 0 ;
20219 PyObject * obj1 = 0 ;
20220 PyObject * obj2 = 0 ;
20221 PyObject * obj3 = 0 ;
20222 PyObject * obj4 = 0 ;
20223 char * kwnames[] = {
20224 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20225 };
20226
20227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20229 if (!SWIG_IsOK(res1)) {
20230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20231 }
20232 arg1 = reinterpret_cast< wxDC * >(argp1);
20233 {
20234 arg2 = wxString_in_helper(obj1);
20235 if (arg2 == NULL) SWIG_fail;
20236 temp2 = true;
20237 }
20238 ecode3 = SWIG_AsVal_int(obj2, &val3);
20239 if (!SWIG_IsOK(ecode3)) {
20240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20241 }
20242 arg3 = static_cast< int >(val3);
20243 ecode4 = SWIG_AsVal_int(obj3, &val4);
20244 if (!SWIG_IsOK(ecode4)) {
20245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20246 }
20247 arg4 = static_cast< int >(val4);
20248 ecode5 = SWIG_AsVal_double(obj4, &val5);
20249 if (!SWIG_IsOK(ecode5)) {
20250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20251 }
20252 arg5 = static_cast< double >(val5);
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_Py_Void();
20260 {
20261 if (temp2)
20262 delete arg2;
20263 }
20264 return resultobj;
20265fail:
20266 {
20267 if (temp2)
20268 delete arg2;
20269 }
20270 return NULL;
20271}
20272
20273
20274SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj = 0;
20276 wxDC *arg1 = (wxDC *) 0 ;
20277 wxString *arg2 = 0 ;
20278 wxPoint *arg3 = 0 ;
20279 double arg4 ;
20280 void *argp1 = 0 ;
20281 int res1 = 0 ;
20282 bool temp2 = false ;
20283 wxPoint temp3 ;
20284 double val4 ;
20285 int ecode4 = 0 ;
20286 PyObject * obj0 = 0 ;
20287 PyObject * obj1 = 0 ;
20288 PyObject * obj2 = 0 ;
20289 PyObject * obj3 = 0 ;
20290 char * kwnames[] = {
20291 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20292 };
20293
20294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20296 if (!SWIG_IsOK(res1)) {
20297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20298 }
20299 arg1 = reinterpret_cast< wxDC * >(argp1);
20300 {
20301 arg2 = wxString_in_helper(obj1);
20302 if (arg2 == NULL) SWIG_fail;
20303 temp2 = true;
20304 }
20305 {
20306 arg3 = &temp3;
20307 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20308 }
20309 ecode4 = SWIG_AsVal_double(obj3, &val4);
20310 if (!SWIG_IsOK(ecode4)) {
20311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20312 }
20313 arg4 = static_cast< double >(val4);
20314 {
20315 PyThreadState* __tstate = wxPyBeginAllowThreads();
20316 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20317 wxPyEndAllowThreads(__tstate);
20318 if (PyErr_Occurred()) SWIG_fail;
20319 }
20320 resultobj = SWIG_Py_Void();
20321 {
20322 if (temp2)
20323 delete arg2;
20324 }
20325 return resultobj;
20326fail:
20327 {
20328 if (temp2)
20329 delete arg2;
20330 }
20331 return NULL;
20332}
20333
20334
20335SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20336 PyObject *resultobj = 0;
20337 wxDC *arg1 = (wxDC *) 0 ;
20338 int arg2 ;
20339 int arg3 ;
20340 int arg4 ;
20341 int arg5 ;
20342 wxDC *arg6 = (wxDC *) 0 ;
20343 int arg7 ;
20344 int arg8 ;
20345 int arg9 = (int) wxCOPY ;
20346 bool arg10 = (bool) false ;
20347 int arg11 = (int) -1 ;
20348 int arg12 = (int) -1 ;
20349 bool result;
20350 void *argp1 = 0 ;
20351 int res1 = 0 ;
20352 int val2 ;
20353 int ecode2 = 0 ;
20354 int val3 ;
20355 int ecode3 = 0 ;
20356 int val4 ;
20357 int ecode4 = 0 ;
20358 int val5 ;
20359 int ecode5 = 0 ;
20360 void *argp6 = 0 ;
20361 int res6 = 0 ;
20362 int val7 ;
20363 int ecode7 = 0 ;
20364 int val8 ;
20365 int ecode8 = 0 ;
20366 int val9 ;
20367 int ecode9 = 0 ;
20368 bool val10 ;
20369 int ecode10 = 0 ;
20370 int val11 ;
20371 int ecode11 = 0 ;
20372 int val12 ;
20373 int ecode12 = 0 ;
20374 PyObject * obj0 = 0 ;
20375 PyObject * obj1 = 0 ;
20376 PyObject * obj2 = 0 ;
20377 PyObject * obj3 = 0 ;
20378 PyObject * obj4 = 0 ;
20379 PyObject * obj5 = 0 ;
20380 PyObject * obj6 = 0 ;
20381 PyObject * obj7 = 0 ;
20382 PyObject * obj8 = 0 ;
20383 PyObject * obj9 = 0 ;
20384 PyObject * obj10 = 0 ;
20385 PyObject * obj11 = 0 ;
20386 char * kwnames[] = {
20387 (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
20388 };
20389
20390 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;
20391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20392 if (!SWIG_IsOK(res1)) {
20393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20394 }
20395 arg1 = reinterpret_cast< wxDC * >(argp1);
20396 ecode2 = SWIG_AsVal_int(obj1, &val2);
20397 if (!SWIG_IsOK(ecode2)) {
20398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20399 }
20400 arg2 = static_cast< int >(val2);
20401 ecode3 = SWIG_AsVal_int(obj2, &val3);
20402 if (!SWIG_IsOK(ecode3)) {
20403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20404 }
20405 arg3 = static_cast< int >(val3);
20406 ecode4 = SWIG_AsVal_int(obj3, &val4);
20407 if (!SWIG_IsOK(ecode4)) {
20408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20409 }
20410 arg4 = static_cast< int >(val4);
20411 ecode5 = SWIG_AsVal_int(obj4, &val5);
20412 if (!SWIG_IsOK(ecode5)) {
20413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20414 }
20415 arg5 = static_cast< int >(val5);
20416 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20417 if (!SWIG_IsOK(res6)) {
20418 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20419 }
20420 arg6 = reinterpret_cast< wxDC * >(argp6);
20421 ecode7 = SWIG_AsVal_int(obj6, &val7);
20422 if (!SWIG_IsOK(ecode7)) {
20423 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20424 }
20425 arg7 = static_cast< int >(val7);
20426 ecode8 = SWIG_AsVal_int(obj7, &val8);
20427 if (!SWIG_IsOK(ecode8)) {
20428 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20429 }
20430 arg8 = static_cast< int >(val8);
20431 if (obj8) {
20432 ecode9 = SWIG_AsVal_int(obj8, &val9);
20433 if (!SWIG_IsOK(ecode9)) {
20434 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20435 }
20436 arg9 = static_cast< int >(val9);
20437 }
20438 if (obj9) {
20439 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20440 if (!SWIG_IsOK(ecode10)) {
20441 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20442 }
20443 arg10 = static_cast< bool >(val10);
20444 }
20445 if (obj10) {
20446 ecode11 = SWIG_AsVal_int(obj10, &val11);
20447 if (!SWIG_IsOK(ecode11)) {
20448 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20449 }
20450 arg11 = static_cast< int >(val11);
20451 }
20452 if (obj11) {
20453 ecode12 = SWIG_AsVal_int(obj11, &val12);
20454 if (!SWIG_IsOK(ecode12)) {
20455 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20456 }
20457 arg12 = static_cast< int >(val12);
20458 }
20459 {
20460 PyThreadState* __tstate = wxPyBeginAllowThreads();
20461 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20462 wxPyEndAllowThreads(__tstate);
20463 if (PyErr_Occurred()) SWIG_fail;
20464 }
20465 {
20466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20467 }
20468 return resultobj;
20469fail:
20470 return NULL;
20471}
20472
20473
20474SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20475 PyObject *resultobj = 0;
20476 wxDC *arg1 = (wxDC *) 0 ;
20477 wxPoint *arg2 = 0 ;
20478 wxSize *arg3 = 0 ;
20479 wxDC *arg4 = (wxDC *) 0 ;
20480 wxPoint *arg5 = 0 ;
20481 int arg6 = (int) wxCOPY ;
20482 bool arg7 = (bool) false ;
20483 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20484 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20485 bool result;
20486 void *argp1 = 0 ;
20487 int res1 = 0 ;
20488 wxPoint temp2 ;
20489 wxSize temp3 ;
20490 void *argp4 = 0 ;
20491 int res4 = 0 ;
20492 wxPoint temp5 ;
20493 int val6 ;
20494 int ecode6 = 0 ;
20495 bool val7 ;
20496 int ecode7 = 0 ;
20497 wxPoint temp8 ;
20498 PyObject * obj0 = 0 ;
20499 PyObject * obj1 = 0 ;
20500 PyObject * obj2 = 0 ;
20501 PyObject * obj3 = 0 ;
20502 PyObject * obj4 = 0 ;
20503 PyObject * obj5 = 0 ;
20504 PyObject * obj6 = 0 ;
20505 PyObject * obj7 = 0 ;
20506 char * kwnames[] = {
20507 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20508 };
20509
20510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20512 if (!SWIG_IsOK(res1)) {
20513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20514 }
20515 arg1 = reinterpret_cast< wxDC * >(argp1);
20516 {
20517 arg2 = &temp2;
20518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20519 }
20520 {
20521 arg3 = &temp3;
20522 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20523 }
20524 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20525 if (!SWIG_IsOK(res4)) {
20526 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20527 }
20528 arg4 = reinterpret_cast< wxDC * >(argp4);
20529 {
20530 arg5 = &temp5;
20531 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20532 }
20533 if (obj5) {
20534 ecode6 = SWIG_AsVal_int(obj5, &val6);
20535 if (!SWIG_IsOK(ecode6)) {
20536 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20537 }
20538 arg6 = static_cast< int >(val6);
20539 }
20540 if (obj6) {
20541 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20542 if (!SWIG_IsOK(ecode7)) {
20543 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20544 }
20545 arg7 = static_cast< bool >(val7);
20546 }
20547 if (obj7) {
093d3ff1 20548 {
554f62e9
RD
20549 arg8 = &temp8;
20550 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20551 }
554f62e9
RD
20552 }
20553 {
20554 PyThreadState* __tstate = wxPyBeginAllowThreads();
20555 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20556 wxPyEndAllowThreads(__tstate);
20557 if (PyErr_Occurred()) SWIG_fail;
20558 }
20559 {
20560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20561 }
20562 return resultobj;
20563fail:
20564 return NULL;
20565}
20566
20567
cbfc9df6
RD
20568SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20569 PyObject *resultobj = 0;
20570 wxDC *arg1 = (wxDC *) 0 ;
20571 int arg2 ;
20572 int arg3 ;
20573 int arg4 ;
20574 int arg5 ;
20575 wxDC *arg6 = (wxDC *) 0 ;
20576 int arg7 ;
20577 int arg8 ;
20578 int arg9 ;
20579 int arg10 ;
20580 int arg11 = (int) wxCOPY ;
20581 bool arg12 = (bool) false ;
20582 int arg13 = (int) wxDefaultCoord ;
20583 int arg14 = (int) wxDefaultCoord ;
20584 bool result;
20585 void *argp1 = 0 ;
20586 int res1 = 0 ;
20587 int val2 ;
20588 int ecode2 = 0 ;
20589 int val3 ;
20590 int ecode3 = 0 ;
20591 int val4 ;
20592 int ecode4 = 0 ;
20593 int val5 ;
20594 int ecode5 = 0 ;
20595 void *argp6 = 0 ;
20596 int res6 = 0 ;
20597 int val7 ;
20598 int ecode7 = 0 ;
20599 int val8 ;
20600 int ecode8 = 0 ;
20601 int val9 ;
20602 int ecode9 = 0 ;
20603 int val10 ;
20604 int ecode10 = 0 ;
20605 int val11 ;
20606 int ecode11 = 0 ;
20607 bool val12 ;
20608 int ecode12 = 0 ;
20609 int val13 ;
20610 int ecode13 = 0 ;
20611 int val14 ;
20612 int ecode14 = 0 ;
20613 PyObject * obj0 = 0 ;
20614 PyObject * obj1 = 0 ;
20615 PyObject * obj2 = 0 ;
20616 PyObject * obj3 = 0 ;
20617 PyObject * obj4 = 0 ;
20618 PyObject * obj5 = 0 ;
20619 PyObject * obj6 = 0 ;
20620 PyObject * obj7 = 0 ;
20621 PyObject * obj8 = 0 ;
20622 PyObject * obj9 = 0 ;
20623 PyObject * obj10 = 0 ;
20624 PyObject * obj11 = 0 ;
20625 PyObject * obj12 = 0 ;
20626 PyObject * obj13 = 0 ;
20627 char * kwnames[] = {
20628 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
20629 };
20630
20631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
20632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20633 if (!SWIG_IsOK(res1)) {
20634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
20635 }
20636 arg1 = reinterpret_cast< wxDC * >(argp1);
20637 ecode2 = SWIG_AsVal_int(obj1, &val2);
20638 if (!SWIG_IsOK(ecode2)) {
20639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
20640 }
20641 arg2 = static_cast< int >(val2);
20642 ecode3 = SWIG_AsVal_int(obj2, &val3);
20643 if (!SWIG_IsOK(ecode3)) {
20644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
20645 }
20646 arg3 = static_cast< int >(val3);
20647 ecode4 = SWIG_AsVal_int(obj3, &val4);
20648 if (!SWIG_IsOK(ecode4)) {
20649 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
20650 }
20651 arg4 = static_cast< int >(val4);
20652 ecode5 = SWIG_AsVal_int(obj4, &val5);
20653 if (!SWIG_IsOK(ecode5)) {
20654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
20655 }
20656 arg5 = static_cast< int >(val5);
20657 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20658 if (!SWIG_IsOK(res6)) {
20659 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20660 }
20661 arg6 = reinterpret_cast< wxDC * >(argp6);
20662 ecode7 = SWIG_AsVal_int(obj6, &val7);
20663 if (!SWIG_IsOK(ecode7)) {
20664 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20665 }
20666 arg7 = static_cast< int >(val7);
20667 ecode8 = SWIG_AsVal_int(obj7, &val8);
20668 if (!SWIG_IsOK(ecode8)) {
20669 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20670 }
20671 arg8 = static_cast< int >(val8);
20672 ecode9 = SWIG_AsVal_int(obj8, &val9);
20673 if (!SWIG_IsOK(ecode9)) {
20674 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20675 }
20676 arg9 = static_cast< int >(val9);
20677 ecode10 = SWIG_AsVal_int(obj9, &val10);
20678 if (!SWIG_IsOK(ecode10)) {
20679 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20680 }
20681 arg10 = static_cast< int >(val10);
20682 if (obj10) {
20683 ecode11 = SWIG_AsVal_int(obj10, &val11);
20684 if (!SWIG_IsOK(ecode11)) {
20685 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20686 }
20687 arg11 = static_cast< int >(val11);
20688 }
20689 if (obj11) {
20690 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20691 if (!SWIG_IsOK(ecode12)) {
20692 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20693 }
20694 arg12 = static_cast< bool >(val12);
20695 }
20696 if (obj12) {
20697 ecode13 = SWIG_AsVal_int(obj12, &val13);
20698 if (!SWIG_IsOK(ecode13)) {
20699 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20700 }
20701 arg13 = static_cast< int >(val13);
20702 }
20703 if (obj13) {
20704 ecode14 = SWIG_AsVal_int(obj13, &val14);
20705 if (!SWIG_IsOK(ecode14)) {
20706 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20707 }
20708 arg14 = static_cast< int >(val14);
20709 }
20710 {
20711 PyThreadState* __tstate = wxPyBeginAllowThreads();
20712 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20713 wxPyEndAllowThreads(__tstate);
20714 if (PyErr_Occurred()) SWIG_fail;
20715 }
20716 {
20717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20718 }
20719 return resultobj;
20720fail:
20721 return NULL;
20722}
20723
20724
20725SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20726 PyObject *resultobj = 0;
20727 wxDC *arg1 = (wxDC *) 0 ;
20728 wxPoint *arg2 = 0 ;
20729 wxSize *arg3 = 0 ;
20730 wxDC *arg4 = (wxDC *) 0 ;
20731 wxPoint *arg5 = 0 ;
20732 wxSize *arg6 = 0 ;
20733 int arg7 = (int) wxCOPY ;
20734 bool arg8 = (bool) false ;
20735 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20736 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20737 bool result;
20738 void *argp1 = 0 ;
20739 int res1 = 0 ;
20740 wxPoint temp2 ;
20741 wxSize temp3 ;
20742 void *argp4 = 0 ;
20743 int res4 = 0 ;
20744 wxPoint temp5 ;
20745 wxSize temp6 ;
20746 int val7 ;
20747 int ecode7 = 0 ;
20748 bool val8 ;
20749 int ecode8 = 0 ;
20750 wxPoint temp9 ;
20751 PyObject * obj0 = 0 ;
20752 PyObject * obj1 = 0 ;
20753 PyObject * obj2 = 0 ;
20754 PyObject * obj3 = 0 ;
20755 PyObject * obj4 = 0 ;
20756 PyObject * obj5 = 0 ;
20757 PyObject * obj6 = 0 ;
20758 PyObject * obj7 = 0 ;
20759 PyObject * obj8 = 0 ;
20760 char * kwnames[] = {
20761 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20762 };
20763
20764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20766 if (!SWIG_IsOK(res1)) {
20767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20768 }
20769 arg1 = reinterpret_cast< wxDC * >(argp1);
20770 {
20771 arg2 = &temp2;
20772 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20773 }
20774 {
20775 arg3 = &temp3;
20776 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20777 }
20778 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20779 if (!SWIG_IsOK(res4)) {
20780 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20781 }
20782 arg4 = reinterpret_cast< wxDC * >(argp4);
20783 {
20784 arg5 = &temp5;
20785 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20786 }
20787 {
20788 arg6 = &temp6;
20789 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20790 }
20791 if (obj6) {
20792 ecode7 = SWIG_AsVal_int(obj6, &val7);
20793 if (!SWIG_IsOK(ecode7)) {
20794 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20795 }
20796 arg7 = static_cast< int >(val7);
20797 }
20798 if (obj7) {
20799 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20800 if (!SWIG_IsOK(ecode8)) {
20801 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20802 }
20803 arg8 = static_cast< bool >(val8);
20804 }
20805 if (obj8) {
20806 {
20807 arg9 = &temp9;
20808 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20809 }
20810 }
20811 {
20812 PyThreadState* __tstate = wxPyBeginAllowThreads();
20813 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20814 wxPyEndAllowThreads(__tstate);
20815 if (PyErr_Occurred()) SWIG_fail;
20816 }
20817 {
20818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20819 }
20820 return resultobj;
20821fail:
20822 return NULL;
20823}
20824
20825
8f514ab4
RD
20826SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20827 PyObject *resultobj = 0;
20828 wxDC *arg1 = (wxDC *) 0 ;
20829 wxRect *arg2 = (wxRect *) NULL ;
20830 SwigValueWrapper<wxBitmap > result;
20831 void *argp1 = 0 ;
20832 int res1 = 0 ;
20833 void *argp2 = 0 ;
20834 int res2 = 0 ;
20835 PyObject * obj0 = 0 ;
20836 PyObject * obj1 = 0 ;
20837 char * kwnames[] = {
20838 (char *) "self",(char *) "subrect", NULL
20839 };
20840
20841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20843 if (!SWIG_IsOK(res1)) {
20844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20845 }
20846 arg1 = reinterpret_cast< wxDC * >(argp1);
20847 if (obj1) {
20848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20849 if (!SWIG_IsOK(res2)) {
20850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20851 }
20852 arg2 = reinterpret_cast< wxRect * >(argp2);
20853 }
20854 {
20855 PyThreadState* __tstate = wxPyBeginAllowThreads();
20856 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20857 wxPyEndAllowThreads(__tstate);
20858 if (PyErr_Occurred()) SWIG_fail;
20859 }
20860 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20861 return resultobj;
20862fail:
20863 return NULL;
20864}
20865
20866
554f62e9
RD
20867SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20868 PyObject *resultobj = 0;
20869 wxDC *arg1 = (wxDC *) 0 ;
20870 int arg2 ;
20871 int arg3 ;
20872 int arg4 ;
20873 int arg5 ;
20874 void *argp1 = 0 ;
20875 int res1 = 0 ;
20876 int val2 ;
20877 int ecode2 = 0 ;
20878 int val3 ;
20879 int ecode3 = 0 ;
20880 int val4 ;
20881 int ecode4 = 0 ;
20882 int val5 ;
20883 int ecode5 = 0 ;
20884 PyObject * obj0 = 0 ;
20885 PyObject * obj1 = 0 ;
20886 PyObject * obj2 = 0 ;
20887 PyObject * obj3 = 0 ;
20888 PyObject * obj4 = 0 ;
20889 char * kwnames[] = {
20890 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20891 };
20892
20893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20895 if (!SWIG_IsOK(res1)) {
20896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20897 }
20898 arg1 = reinterpret_cast< wxDC * >(argp1);
20899 ecode2 = SWIG_AsVal_int(obj1, &val2);
20900 if (!SWIG_IsOK(ecode2)) {
20901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20902 }
20903 arg2 = static_cast< int >(val2);
20904 ecode3 = SWIG_AsVal_int(obj2, &val3);
20905 if (!SWIG_IsOK(ecode3)) {
20906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20907 }
20908 arg3 = static_cast< int >(val3);
20909 ecode4 = SWIG_AsVal_int(obj3, &val4);
20910 if (!SWIG_IsOK(ecode4)) {
20911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20912 }
20913 arg4 = static_cast< int >(val4);
20914 ecode5 = SWIG_AsVal_int(obj4, &val5);
20915 if (!SWIG_IsOK(ecode5)) {
20916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20917 }
20918 arg5 = static_cast< int >(val5);
20919 {
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20922 wxPyEndAllowThreads(__tstate);
20923 if (PyErr_Occurred()) SWIG_fail;
20924 }
20925 resultobj = SWIG_Py_Void();
20926 return resultobj;
20927fail:
20928 return NULL;
20929}
20930
20931
20932SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20933 PyObject *resultobj = 0;
20934 wxDC *arg1 = (wxDC *) 0 ;
20935 wxPoint *arg2 = 0 ;
20936 wxSize *arg3 = 0 ;
20937 void *argp1 = 0 ;
20938 int res1 = 0 ;
20939 wxPoint temp2 ;
20940 wxSize temp3 ;
20941 PyObject * obj0 = 0 ;
20942 PyObject * obj1 = 0 ;
20943 PyObject * obj2 = 0 ;
20944 char * kwnames[] = {
20945 (char *) "self",(char *) "pt",(char *) "sz", NULL
20946 };
20947
20948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20950 if (!SWIG_IsOK(res1)) {
20951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20952 }
20953 arg1 = reinterpret_cast< wxDC * >(argp1);
20954 {
20955 arg2 = &temp2;
20956 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20957 }
20958 {
20959 arg3 = &temp3;
20960 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20961 }
20962 {
20963 PyThreadState* __tstate = wxPyBeginAllowThreads();
20964 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20965 wxPyEndAllowThreads(__tstate);
20966 if (PyErr_Occurred()) SWIG_fail;
20967 }
20968 resultobj = SWIG_Py_Void();
20969 return resultobj;
20970fail:
20971 return NULL;
20972}
20973
20974
20975SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20976 PyObject *resultobj = 0;
20977 wxDC *arg1 = (wxDC *) 0 ;
20978 wxRegion *arg2 = 0 ;
20979 void *argp1 = 0 ;
20980 int res1 = 0 ;
20981 void *argp2 = 0 ;
20982 int res2 = 0 ;
20983 PyObject * obj0 = 0 ;
20984 PyObject * obj1 = 0 ;
20985 char * kwnames[] = {
20986 (char *) "self",(char *) "region", NULL
20987 };
20988
20989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20991 if (!SWIG_IsOK(res1)) {
20992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20993 }
20994 arg1 = reinterpret_cast< wxDC * >(argp1);
20995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20996 if (!SWIG_IsOK(res2)) {
20997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20998 }
20999 if (!argp2) {
21000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
21001 }
21002 arg2 = reinterpret_cast< wxRegion * >(argp2);
21003 {
21004 PyThreadState* __tstate = wxPyBeginAllowThreads();
21005 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
21006 wxPyEndAllowThreads(__tstate);
21007 if (PyErr_Occurred()) SWIG_fail;
21008 }
21009 resultobj = SWIG_Py_Void();
21010 return resultobj;
21011fail:
21012 return NULL;
21013}
21014
21015
21016SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj = 0;
21018 wxDC *arg1 = (wxDC *) 0 ;
21019 wxRect *arg2 = 0 ;
21020 void *argp1 = 0 ;
21021 int res1 = 0 ;
21022 wxRect temp2 ;
21023 PyObject * obj0 = 0 ;
21024 PyObject * obj1 = 0 ;
21025 char * kwnames[] = {
21026 (char *) "self",(char *) "rect", NULL
21027 };
21028
21029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
21030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21031 if (!SWIG_IsOK(res1)) {
21032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21033 }
21034 arg1 = reinterpret_cast< wxDC * >(argp1);
21035 {
21036 arg2 = &temp2;
21037 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21038 }
21039 {
21040 PyThreadState* __tstate = wxPyBeginAllowThreads();
21041 (arg1)->SetClippingRegion((wxRect const &)*arg2);
21042 wxPyEndAllowThreads(__tstate);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 resultobj = SWIG_Py_Void();
21046 return resultobj;
21047fail:
21048 return NULL;
21049}
21050
21051
21052SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21053 PyObject *resultobj = 0;
21054 wxDC *arg1 = (wxDC *) 0 ;
21055 int arg2 ;
21056 wxPoint *arg3 = (wxPoint *) 0 ;
21057 int arg4 = (int) 0 ;
21058 int arg5 = (int) 0 ;
21059 void *argp1 = 0 ;
21060 int res1 = 0 ;
21061 int val4 ;
21062 int ecode4 = 0 ;
21063 int val5 ;
21064 int ecode5 = 0 ;
21065 PyObject * obj0 = 0 ;
21066 PyObject * obj1 = 0 ;
21067 PyObject * obj2 = 0 ;
21068 PyObject * obj3 = 0 ;
21069 char * kwnames[] = {
21070 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
21071 };
21072
21073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21075 if (!SWIG_IsOK(res1)) {
21076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
21077 }
21078 arg1 = reinterpret_cast< wxDC * >(argp1);
21079 {
21080 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21081 if (arg3 == NULL) SWIG_fail;
21082 }
21083 if (obj2) {
21084 ecode4 = SWIG_AsVal_int(obj2, &val4);
21085 if (!SWIG_IsOK(ecode4)) {
21086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
21087 }
21088 arg4 = static_cast< int >(val4);
21089 }
21090 if (obj3) {
21091 ecode5 = SWIG_AsVal_int(obj3, &val5);
21092 if (!SWIG_IsOK(ecode5)) {
21093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
21094 }
21095 arg5 = static_cast< int >(val5);
21096 }
21097 {
21098 PyThreadState* __tstate = wxPyBeginAllowThreads();
21099 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
21100 wxPyEndAllowThreads(__tstate);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 resultobj = SWIG_Py_Void();
21104 {
21105 if (arg3) delete [] arg3;
21106 }
21107 return resultobj;
21108fail:
21109 {
21110 if (arg3) delete [] arg3;
21111 }
21112 return NULL;
21113}
21114
21115
21116SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21117 PyObject *resultobj = 0;
21118 wxDC *arg1 = (wxDC *) 0 ;
21119 int arg2 ;
21120 wxPoint *arg3 = (wxPoint *) 0 ;
21121 int arg4 = (int) 0 ;
21122 int arg5 = (int) 0 ;
21123 int arg6 = (int) wxODDEVEN_RULE ;
21124 void *argp1 = 0 ;
21125 int res1 = 0 ;
21126 int val4 ;
21127 int ecode4 = 0 ;
21128 int val5 ;
21129 int ecode5 = 0 ;
21130 int val6 ;
21131 int ecode6 = 0 ;
21132 PyObject * obj0 = 0 ;
21133 PyObject * obj1 = 0 ;
21134 PyObject * obj2 = 0 ;
21135 PyObject * obj3 = 0 ;
21136 PyObject * obj4 = 0 ;
21137 char * kwnames[] = {
21138 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
21139 };
21140
21141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21143 if (!SWIG_IsOK(res1)) {
21144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
21145 }
21146 arg1 = reinterpret_cast< wxDC * >(argp1);
21147 {
21148 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21149 if (arg3 == NULL) SWIG_fail;
21150 }
21151 if (obj2) {
21152 ecode4 = SWIG_AsVal_int(obj2, &val4);
21153 if (!SWIG_IsOK(ecode4)) {
21154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
21155 }
21156 arg4 = static_cast< int >(val4);
21157 }
21158 if (obj3) {
21159 ecode5 = SWIG_AsVal_int(obj3, &val5);
21160 if (!SWIG_IsOK(ecode5)) {
21161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
21162 }
21163 arg5 = static_cast< int >(val5);
21164 }
21165 if (obj4) {
21166 ecode6 = SWIG_AsVal_int(obj4, &val6);
21167 if (!SWIG_IsOK(ecode6)) {
21168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
21169 }
21170 arg6 = static_cast< int >(val6);
21171 }
21172 {
21173 PyThreadState* __tstate = wxPyBeginAllowThreads();
21174 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 resultobj = SWIG_Py_Void();
21179 {
21180 if (arg3) delete [] arg3;
21181 }
21182 return resultobj;
21183fail:
21184 {
21185 if (arg3) delete [] arg3;
21186 }
21187 return NULL;
21188}
21189
21190
21191SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21192 PyObject *resultobj = 0;
21193 wxDC *arg1 = (wxDC *) 0 ;
21194 wxString *arg2 = 0 ;
21195 wxRect *arg3 = 0 ;
21196 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
21197 int arg5 = (int) -1 ;
21198 void *argp1 = 0 ;
21199 int res1 = 0 ;
21200 bool temp2 = false ;
21201 wxRect temp3 ;
21202 int val4 ;
21203 int ecode4 = 0 ;
21204 int val5 ;
21205 int ecode5 = 0 ;
21206 PyObject * obj0 = 0 ;
21207 PyObject * obj1 = 0 ;
21208 PyObject * obj2 = 0 ;
21209 PyObject * obj3 = 0 ;
21210 PyObject * obj4 = 0 ;
21211 char * kwnames[] = {
21212 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
21213 };
21214
21215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21217 if (!SWIG_IsOK(res1)) {
21218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
21219 }
21220 arg1 = reinterpret_cast< wxDC * >(argp1);
21221 {
21222 arg2 = wxString_in_helper(obj1);
21223 if (arg2 == NULL) SWIG_fail;
21224 temp2 = true;
21225 }
21226 {
21227 arg3 = &temp3;
21228 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
21229 }
21230 if (obj3) {
21231 ecode4 = SWIG_AsVal_int(obj3, &val4);
21232 if (!SWIG_IsOK(ecode4)) {
21233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
21234 }
21235 arg4 = static_cast< int >(val4);
21236 }
21237 if (obj4) {
21238 ecode5 = SWIG_AsVal_int(obj4, &val5);
21239 if (!SWIG_IsOK(ecode5)) {
21240 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
21241 }
21242 arg5 = static_cast< int >(val5);
21243 }
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 resultobj = SWIG_Py_Void();
21251 {
21252 if (temp2)
21253 delete arg2;
21254 }
21255 return resultobj;
21256fail:
21257 {
21258 if (temp2)
21259 delete arg2;
21260 }
21261 return NULL;
21262}
21263
21264
21265SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21266 PyObject *resultobj = 0;
21267 wxDC *arg1 = (wxDC *) 0 ;
21268 wxString *arg2 = 0 ;
21269 wxBitmap *arg3 = 0 ;
21270 wxRect *arg4 = 0 ;
21271 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
21272 int arg6 = (int) -1 ;
21273 wxRect result;
21274 void *argp1 = 0 ;
21275 int res1 = 0 ;
21276 bool temp2 = false ;
21277 void *argp3 = 0 ;
21278 int res3 = 0 ;
21279 wxRect temp4 ;
21280 int val5 ;
21281 int ecode5 = 0 ;
21282 int val6 ;
21283 int ecode6 = 0 ;
21284 PyObject * obj0 = 0 ;
21285 PyObject * obj1 = 0 ;
21286 PyObject * obj2 = 0 ;
21287 PyObject * obj3 = 0 ;
21288 PyObject * obj4 = 0 ;
21289 PyObject * obj5 = 0 ;
21290 char * kwnames[] = {
21291 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
21292 };
21293
21294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21296 if (!SWIG_IsOK(res1)) {
21297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
21298 }
21299 arg1 = reinterpret_cast< wxDC * >(argp1);
21300 {
21301 arg2 = wxString_in_helper(obj1);
21302 if (arg2 == NULL) SWIG_fail;
21303 temp2 = true;
21304 }
21305 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21306 if (!SWIG_IsOK(res3)) {
21307 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21308 }
21309 if (!argp3) {
21310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21311 }
21312 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21313 {
21314 arg4 = &temp4;
21315 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21316 }
21317 if (obj4) {
21318 ecode5 = SWIG_AsVal_int(obj4, &val5);
21319 if (!SWIG_IsOK(ecode5)) {
21320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21321 }
21322 arg5 = static_cast< int >(val5);
21323 }
21324 if (obj5) {
21325 ecode6 = SWIG_AsVal_int(obj5, &val6);
21326 if (!SWIG_IsOK(ecode6)) {
21327 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21328 }
21329 arg6 = static_cast< int >(val6);
21330 }
21331 {
21332 PyThreadState* __tstate = wxPyBeginAllowThreads();
21333 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21334 wxPyEndAllowThreads(__tstate);
21335 if (PyErr_Occurred()) SWIG_fail;
21336 }
21337 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21338 {
21339 if (temp2)
21340 delete arg2;
21341 }
21342 return resultobj;
21343fail:
21344 {
21345 if (temp2)
21346 delete arg2;
21347 }
21348 return NULL;
21349}
21350
21351
21352SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21353 PyObject *resultobj = 0;
21354 wxDC *arg1 = (wxDC *) 0 ;
21355 int arg2 ;
21356 wxPoint *arg3 = (wxPoint *) 0 ;
21357 void *argp1 = 0 ;
21358 int res1 = 0 ;
21359 PyObject * obj0 = 0 ;
21360 PyObject * obj1 = 0 ;
21361 char * kwnames[] = {
21362 (char *) "self",(char *) "points", NULL
21363 };
21364
21365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21367 if (!SWIG_IsOK(res1)) {
21368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21369 }
21370 arg1 = reinterpret_cast< wxDC * >(argp1);
21371 {
21372 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21373 if (arg3 == NULL) SWIG_fail;
21374 }
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 (arg1)->DrawSpline(arg2,arg3);
21378 wxPyEndAllowThreads(__tstate);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 resultobj = SWIG_Py_Void();
21382 {
21383 if (arg3) delete [] arg3;
21384 }
21385 return resultobj;
21386fail:
21387 {
21388 if (arg3) delete [] arg3;
21389 }
21390 return NULL;
21391}
21392
21393
21394SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21395 PyObject *resultobj = 0;
21396 wxDC *arg1 = (wxDC *) 0 ;
21397 void *argp1 = 0 ;
21398 int res1 = 0 ;
21399 PyObject *swig_obj[1] ;
21400
21401 if (!args) SWIG_fail;
21402 swig_obj[0] = args;
21403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21404 if (!SWIG_IsOK(res1)) {
21405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21406 }
21407 arg1 = reinterpret_cast< wxDC * >(argp1);
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 (arg1)->Clear();
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 resultobj = SWIG_Py_Void();
21415 return resultobj;
21416fail:
21417 return NULL;
21418}
21419
21420
21421SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21422 PyObject *resultobj = 0;
21423 wxDC *arg1 = (wxDC *) 0 ;
21424 wxString *arg2 = 0 ;
21425 bool result;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 bool temp2 = false ;
21429 PyObject * obj0 = 0 ;
21430 PyObject * obj1 = 0 ;
21431 char * kwnames[] = {
21432 (char *) "self",(char *) "message", NULL
21433 };
21434
21435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21437 if (!SWIG_IsOK(res1)) {
21438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21439 }
21440 arg1 = reinterpret_cast< wxDC * >(argp1);
21441 {
21442 arg2 = wxString_in_helper(obj1);
21443 if (arg2 == NULL) SWIG_fail;
21444 temp2 = true;
21445 }
21446 {
21447 PyThreadState* __tstate = wxPyBeginAllowThreads();
21448 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21449 wxPyEndAllowThreads(__tstate);
21450 if (PyErr_Occurred()) SWIG_fail;
21451 }
21452 {
21453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21454 }
21455 {
21456 if (temp2)
21457 delete arg2;
21458 }
21459 return resultobj;
21460fail:
21461 {
21462 if (temp2)
21463 delete arg2;
21464 }
21465 return NULL;
21466}
21467
21468
21469SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 PyObject *resultobj = 0;
21471 wxDC *arg1 = (wxDC *) 0 ;
21472 void *argp1 = 0 ;
21473 int res1 = 0 ;
21474 PyObject *swig_obj[1] ;
21475
21476 if (!args) SWIG_fail;
21477 swig_obj[0] = args;
21478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21479 if (!SWIG_IsOK(res1)) {
21480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21481 }
21482 arg1 = reinterpret_cast< wxDC * >(argp1);
21483 {
21484 PyThreadState* __tstate = wxPyBeginAllowThreads();
21485 (arg1)->EndDoc();
21486 wxPyEndAllowThreads(__tstate);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 }
21489 resultobj = SWIG_Py_Void();
21490 return resultobj;
21491fail:
21492 return NULL;
21493}
21494
21495
21496SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21497 PyObject *resultobj = 0;
21498 wxDC *arg1 = (wxDC *) 0 ;
21499 void *argp1 = 0 ;
21500 int res1 = 0 ;
21501 PyObject *swig_obj[1] ;
21502
21503 if (!args) SWIG_fail;
21504 swig_obj[0] = args;
21505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21506 if (!SWIG_IsOK(res1)) {
21507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21508 }
21509 arg1 = reinterpret_cast< wxDC * >(argp1);
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 (arg1)->StartPage();
21513 wxPyEndAllowThreads(__tstate);
21514 if (PyErr_Occurred()) SWIG_fail;
21515 }
21516 resultobj = SWIG_Py_Void();
21517 return resultobj;
21518fail:
21519 return NULL;
21520}
21521
21522
21523SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524 PyObject *resultobj = 0;
21525 wxDC *arg1 = (wxDC *) 0 ;
21526 void *argp1 = 0 ;
21527 int res1 = 0 ;
21528 PyObject *swig_obj[1] ;
21529
21530 if (!args) SWIG_fail;
21531 swig_obj[0] = args;
21532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21533 if (!SWIG_IsOK(res1)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21535 }
21536 arg1 = reinterpret_cast< wxDC * >(argp1);
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 (arg1)->EndPage();
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_Py_Void();
21544 return resultobj;
21545fail:
21546 return NULL;
21547}
21548
21549
21550SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21551 PyObject *resultobj = 0;
21552 wxDC *arg1 = (wxDC *) 0 ;
21553 wxFont *arg2 = 0 ;
21554 void *argp1 = 0 ;
21555 int res1 = 0 ;
21556 void *argp2 = 0 ;
21557 int res2 = 0 ;
21558 PyObject * obj0 = 0 ;
21559 PyObject * obj1 = 0 ;
21560 char * kwnames[] = {
21561 (char *) "self",(char *) "font", NULL
21562 };
21563
21564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21566 if (!SWIG_IsOK(res1)) {
21567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21568 }
21569 arg1 = reinterpret_cast< wxDC * >(argp1);
21570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21571 if (!SWIG_IsOK(res2)) {
21572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21573 }
21574 if (!argp2) {
21575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21576 }
21577 arg2 = reinterpret_cast< wxFont * >(argp2);
21578 {
21579 PyThreadState* __tstate = wxPyBeginAllowThreads();
21580 (arg1)->SetFont((wxFont const &)*arg2);
21581 wxPyEndAllowThreads(__tstate);
21582 if (PyErr_Occurred()) SWIG_fail;
21583 }
21584 resultobj = SWIG_Py_Void();
21585 return resultobj;
21586fail:
21587 return NULL;
21588}
21589
21590
21591SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21592 PyObject *resultobj = 0;
21593 wxDC *arg1 = (wxDC *) 0 ;
21594 wxPen *arg2 = 0 ;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 void *argp2 = 0 ;
21598 int res2 = 0 ;
21599 PyObject * obj0 = 0 ;
21600 PyObject * obj1 = 0 ;
21601 char * kwnames[] = {
21602 (char *) "self",(char *) "pen", NULL
21603 };
21604
21605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21607 if (!SWIG_IsOK(res1)) {
21608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21609 }
21610 arg1 = reinterpret_cast< wxDC * >(argp1);
21611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21612 if (!SWIG_IsOK(res2)) {
21613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21614 }
21615 if (!argp2) {
21616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21617 }
21618 arg2 = reinterpret_cast< wxPen * >(argp2);
21619 {
21620 PyThreadState* __tstate = wxPyBeginAllowThreads();
21621 (arg1)->SetPen((wxPen const &)*arg2);
21622 wxPyEndAllowThreads(__tstate);
21623 if (PyErr_Occurred()) SWIG_fail;
21624 }
21625 resultobj = SWIG_Py_Void();
21626 return resultobj;
21627fail:
21628 return NULL;
21629}
21630
21631
21632SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21633 PyObject *resultobj = 0;
21634 wxDC *arg1 = (wxDC *) 0 ;
21635 wxBrush *arg2 = 0 ;
21636 void *argp1 = 0 ;
21637 int res1 = 0 ;
21638 void *argp2 = 0 ;
21639 int res2 = 0 ;
21640 PyObject * obj0 = 0 ;
21641 PyObject * obj1 = 0 ;
21642 char * kwnames[] = {
21643 (char *) "self",(char *) "brush", NULL
21644 };
21645
21646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21648 if (!SWIG_IsOK(res1)) {
21649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21650 }
21651 arg1 = reinterpret_cast< wxDC * >(argp1);
21652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21653 if (!SWIG_IsOK(res2)) {
21654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21655 }
21656 if (!argp2) {
21657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21658 }
21659 arg2 = reinterpret_cast< wxBrush * >(argp2);
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 (arg1)->SetBrush((wxBrush const &)*arg2);
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 resultobj = SWIG_Py_Void();
21667 return resultobj;
21668fail:
21669 return NULL;
21670}
21671
21672
21673SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21674 PyObject *resultobj = 0;
21675 wxDC *arg1 = (wxDC *) 0 ;
21676 wxBrush *arg2 = 0 ;
21677 void *argp1 = 0 ;
21678 int res1 = 0 ;
21679 void *argp2 = 0 ;
21680 int res2 = 0 ;
21681 PyObject * obj0 = 0 ;
21682 PyObject * obj1 = 0 ;
21683 char * kwnames[] = {
21684 (char *) "self",(char *) "brush", NULL
21685 };
21686
21687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21689 if (!SWIG_IsOK(res1)) {
21690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21691 }
21692 arg1 = reinterpret_cast< wxDC * >(argp1);
21693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21694 if (!SWIG_IsOK(res2)) {
21695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21696 }
21697 if (!argp2) {
21698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21699 }
21700 arg2 = reinterpret_cast< wxBrush * >(argp2);
21701 {
21702 PyThreadState* __tstate = wxPyBeginAllowThreads();
21703 (arg1)->SetBackground((wxBrush const &)*arg2);
21704 wxPyEndAllowThreads(__tstate);
21705 if (PyErr_Occurred()) SWIG_fail;
21706 }
21707 resultobj = SWIG_Py_Void();
21708 return resultobj;
21709fail:
21710 return NULL;
21711}
21712
21713
21714SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21715 PyObject *resultobj = 0;
21716 wxDC *arg1 = (wxDC *) 0 ;
21717 int arg2 ;
21718 void *argp1 = 0 ;
21719 int res1 = 0 ;
21720 int val2 ;
21721 int ecode2 = 0 ;
21722 PyObject * obj0 = 0 ;
21723 PyObject * obj1 = 0 ;
21724 char * kwnames[] = {
21725 (char *) "self",(char *) "mode", NULL
21726 };
21727
21728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21730 if (!SWIG_IsOK(res1)) {
21731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21732 }
21733 arg1 = reinterpret_cast< wxDC * >(argp1);
21734 ecode2 = SWIG_AsVal_int(obj1, &val2);
21735 if (!SWIG_IsOK(ecode2)) {
21736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21737 }
21738 arg2 = static_cast< int >(val2);
21739 {
21740 PyThreadState* __tstate = wxPyBeginAllowThreads();
21741 (arg1)->SetBackgroundMode(arg2);
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 resultobj = SWIG_Py_Void();
21746 return resultobj;
21747fail:
21748 return NULL;
21749}
21750
21751
21752SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21753 PyObject *resultobj = 0;
21754 wxDC *arg1 = (wxDC *) 0 ;
21755 wxPalette *arg2 = 0 ;
21756 void *argp1 = 0 ;
21757 int res1 = 0 ;
21758 void *argp2 = 0 ;
21759 int res2 = 0 ;
21760 PyObject * obj0 = 0 ;
21761 PyObject * obj1 = 0 ;
21762 char * kwnames[] = {
21763 (char *) "self",(char *) "palette", NULL
21764 };
21765
21766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21768 if (!SWIG_IsOK(res1)) {
21769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21770 }
21771 arg1 = reinterpret_cast< wxDC * >(argp1);
21772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21773 if (!SWIG_IsOK(res2)) {
21774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21775 }
21776 if (!argp2) {
21777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21778 }
21779 arg2 = reinterpret_cast< wxPalette * >(argp2);
21780 {
21781 PyThreadState* __tstate = wxPyBeginAllowThreads();
21782 (arg1)->SetPalette((wxPalette const &)*arg2);
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 resultobj = SWIG_Py_Void();
21787 return resultobj;
21788fail:
21789 return NULL;
21790}
21791
21792
21793SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21794 PyObject *resultobj = 0;
21795 wxDC *arg1 = (wxDC *) 0 ;
21796 void *argp1 = 0 ;
21797 int res1 = 0 ;
21798 PyObject *swig_obj[1] ;
21799
21800 if (!args) SWIG_fail;
21801 swig_obj[0] = args;
21802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21803 if (!SWIG_IsOK(res1)) {
21804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21805 }
21806 arg1 = reinterpret_cast< wxDC * >(argp1);
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 (arg1)->DestroyClippingRegion();
21810 wxPyEndAllowThreads(__tstate);
21811 if (PyErr_Occurred()) SWIG_fail;
21812 }
21813 resultobj = SWIG_Py_Void();
21814 return resultobj;
21815fail:
21816 return NULL;
21817}
21818
21819
21820SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21821 PyObject *resultobj = 0;
21822 wxDC *arg1 = (wxDC *) 0 ;
21823 int *arg2 = (int *) 0 ;
21824 int *arg3 = (int *) 0 ;
21825 int *arg4 = (int *) 0 ;
21826 int *arg5 = (int *) 0 ;
21827 void *argp1 = 0 ;
21828 int res1 = 0 ;
21829 int temp2 ;
21830 int res2 = SWIG_TMPOBJ ;
21831 int temp3 ;
21832 int res3 = SWIG_TMPOBJ ;
21833 int temp4 ;
21834 int res4 = SWIG_TMPOBJ ;
21835 int temp5 ;
21836 int res5 = SWIG_TMPOBJ ;
21837 PyObject *swig_obj[1] ;
21838
21839 arg2 = &temp2;
21840 arg3 = &temp3;
21841 arg4 = &temp4;
21842 arg5 = &temp5;
21843 if (!args) SWIG_fail;
21844 swig_obj[0] = args;
21845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21846 if (!SWIG_IsOK(res1)) {
21847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21848 }
21849 arg1 = reinterpret_cast< wxDC * >(argp1);
21850 {
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
21852 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21853 wxPyEndAllowThreads(__tstate);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 }
21856 resultobj = SWIG_Py_Void();
21857 if (SWIG_IsTmpObj(res2)) {
21858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21859 } else {
21860 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21862 }
21863 if (SWIG_IsTmpObj(res3)) {
21864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21865 } else {
21866 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21868 }
21869 if (SWIG_IsTmpObj(res4)) {
21870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21871 } else {
21872 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21874 }
21875 if (SWIG_IsTmpObj(res5)) {
21876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21877 } else {
21878 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21880 }
21881 return resultobj;
21882fail:
21883 return NULL;
21884}
21885
21886
21887SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21888 PyObject *resultobj = 0;
21889 wxDC *arg1 = (wxDC *) 0 ;
21890 wxRect result;
21891 void *argp1 = 0 ;
21892 int res1 = 0 ;
21893 PyObject *swig_obj[1] ;
21894
21895 if (!args) SWIG_fail;
21896 swig_obj[0] = args;
21897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21900 }
21901 arg1 = reinterpret_cast< wxDC * >(argp1);
21902 {
21903 PyThreadState* __tstate = wxPyBeginAllowThreads();
21904 result = wxDC_GetClippingRect(arg1);
21905 wxPyEndAllowThreads(__tstate);
21906 if (PyErr_Occurred()) SWIG_fail;
21907 }
21908 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21909 return resultobj;
21910fail:
21911 return NULL;
21912}
21913
21914
21915SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21916 PyObject *resultobj = 0;
21917 wxDC *arg1 = (wxDC *) 0 ;
21918 int result;
21919 void *argp1 = 0 ;
21920 int res1 = 0 ;
21921 PyObject *swig_obj[1] ;
21922
21923 if (!args) SWIG_fail;
21924 swig_obj[0] = args;
21925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21926 if (!SWIG_IsOK(res1)) {
21927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21928 }
21929 arg1 = reinterpret_cast< wxDC * >(argp1);
21930 {
21931 PyThreadState* __tstate = wxPyBeginAllowThreads();
21932 result = (int)((wxDC const *)arg1)->GetCharHeight();
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 resultobj = SWIG_From_int(static_cast< int >(result));
21937 return resultobj;
21938fail:
21939 return NULL;
21940}
21941
21942
21943SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21944 PyObject *resultobj = 0;
21945 wxDC *arg1 = (wxDC *) 0 ;
21946 int result;
21947 void *argp1 = 0 ;
21948 int res1 = 0 ;
21949 PyObject *swig_obj[1] ;
21950
21951 if (!args) SWIG_fail;
21952 swig_obj[0] = args;
21953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21954 if (!SWIG_IsOK(res1)) {
21955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21956 }
21957 arg1 = reinterpret_cast< wxDC * >(argp1);
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = (int)((wxDC const *)arg1)->GetCharWidth();
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 resultobj = SWIG_From_int(static_cast< int >(result));
21965 return resultobj;
21966fail:
21967 return NULL;
21968}
21969
21970
21971SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21972 PyObject *resultobj = 0;
21973 wxDC *arg1 = (wxDC *) 0 ;
21974 wxString *arg2 = 0 ;
21975 int *arg3 = (int *) 0 ;
21976 int *arg4 = (int *) 0 ;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 bool temp2 = false ;
21980 int temp3 ;
21981 int res3 = SWIG_TMPOBJ ;
21982 int temp4 ;
21983 int res4 = SWIG_TMPOBJ ;
21984 PyObject * obj0 = 0 ;
21985 PyObject * obj1 = 0 ;
21986 char * kwnames[] = {
21987 (char *) "self",(char *) "string", NULL
21988 };
21989
21990 arg3 = &temp3;
21991 arg4 = &temp4;
21992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21994 if (!SWIG_IsOK(res1)) {
21995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21996 }
21997 arg1 = reinterpret_cast< wxDC * >(argp1);
21998 {
21999 arg2 = wxString_in_helper(obj1);
22000 if (arg2 == NULL) SWIG_fail;
22001 temp2 = true;
22002 }
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 resultobj = SWIG_Py_Void();
22010 if (SWIG_IsTmpObj(res3)) {
22011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22012 } else {
22013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22015 }
22016 if (SWIG_IsTmpObj(res4)) {
22017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22018 } else {
22019 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22021 }
22022 {
22023 if (temp2)
22024 delete arg2;
22025 }
22026 return resultobj;
22027fail:
22028 {
22029 if (temp2)
22030 delete arg2;
22031 }
22032 return NULL;
22033}
22034
22035
22036SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22037 PyObject *resultobj = 0;
22038 wxDC *arg1 = (wxDC *) 0 ;
22039 wxString *arg2 = 0 ;
22040 int *arg3 = (int *) 0 ;
22041 int *arg4 = (int *) 0 ;
22042 int *arg5 = (int *) 0 ;
22043 int *arg6 = (int *) 0 ;
22044 wxFont *arg7 = (wxFont *) NULL ;
22045 void *argp1 = 0 ;
22046 int res1 = 0 ;
22047 bool temp2 = false ;
22048 int temp3 ;
22049 int res3 = SWIG_TMPOBJ ;
22050 int temp4 ;
22051 int res4 = SWIG_TMPOBJ ;
22052 int temp5 ;
22053 int res5 = SWIG_TMPOBJ ;
22054 int temp6 ;
22055 int res6 = SWIG_TMPOBJ ;
22056 void *argp7 = 0 ;
22057 int res7 = 0 ;
22058 PyObject * obj0 = 0 ;
22059 PyObject * obj1 = 0 ;
22060 PyObject * obj2 = 0 ;
22061 char * kwnames[] = {
22062 (char *) "self",(char *) "string",(char *) "font", NULL
22063 };
22064
22065 arg3 = &temp3;
22066 arg4 = &temp4;
22067 arg5 = &temp5;
22068 arg6 = &temp6;
22069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22071 if (!SWIG_IsOK(res1)) {
22072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22073 }
22074 arg1 = reinterpret_cast< wxDC * >(argp1);
22075 {
22076 arg2 = wxString_in_helper(obj1);
22077 if (arg2 == NULL) SWIG_fail;
22078 temp2 = true;
22079 }
22080 if (obj2) {
22081 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
22082 if (!SWIG_IsOK(res7)) {
22083 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 22084 }
554f62e9
RD
22085 arg7 = reinterpret_cast< wxFont * >(argp7);
22086 }
22087 {
22088 PyThreadState* __tstate = wxPyBeginAllowThreads();
22089 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
22090 wxPyEndAllowThreads(__tstate);
22091 if (PyErr_Occurred()) SWIG_fail;
22092 }
22093 resultobj = SWIG_Py_Void();
22094 if (SWIG_IsTmpObj(res3)) {
22095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22096 } else {
22097 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22099 }
22100 if (SWIG_IsTmpObj(res4)) {
22101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22102 } else {
22103 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22105 }
22106 if (SWIG_IsTmpObj(res5)) {
22107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22108 } else {
22109 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22111 }
22112 if (SWIG_IsTmpObj(res6)) {
22113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
22114 } else {
22115 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
22117 }
22118 {
22119 if (temp2)
22120 delete arg2;
22121 }
22122 return resultobj;
22123fail:
22124 {
22125 if (temp2)
22126 delete arg2;
22127 }
22128 return NULL;
22129}
22130
22131
22132SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22133 PyObject *resultobj = 0;
22134 wxDC *arg1 = (wxDC *) 0 ;
22135 wxString *arg2 = 0 ;
22136 int *arg3 = (int *) 0 ;
22137 int *arg4 = (int *) 0 ;
22138 int *arg5 = (int *) 0 ;
22139 wxFont *arg6 = (wxFont *) NULL ;
22140 void *argp1 = 0 ;
22141 int res1 = 0 ;
22142 bool temp2 = false ;
22143 int temp3 ;
22144 int res3 = SWIG_TMPOBJ ;
22145 int temp4 ;
22146 int res4 = SWIG_TMPOBJ ;
22147 int temp5 ;
22148 int res5 = SWIG_TMPOBJ ;
22149 void *argp6 = 0 ;
22150 int res6 = 0 ;
22151 PyObject * obj0 = 0 ;
22152 PyObject * obj1 = 0 ;
22153 PyObject * obj2 = 0 ;
22154 char * kwnames[] = {
22155 (char *) "self",(char *) "text",(char *) "font", NULL
22156 };
22157
22158 arg3 = &temp3;
22159 arg4 = &temp4;
22160 arg5 = &temp5;
22161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22163 if (!SWIG_IsOK(res1)) {
22164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22165 }
22166 arg1 = reinterpret_cast< wxDC * >(argp1);
22167 {
22168 arg2 = wxString_in_helper(obj1);
22169 if (arg2 == NULL) SWIG_fail;
22170 temp2 = true;
22171 }
22172 if (obj2) {
22173 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
22174 if (!SWIG_IsOK(res6)) {
22175 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 22176 }
554f62e9
RD
22177 arg6 = reinterpret_cast< wxFont * >(argp6);
22178 }
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
22182 wxPyEndAllowThreads(__tstate);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 }
22185 resultobj = SWIG_Py_Void();
22186 if (SWIG_IsTmpObj(res3)) {
22187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22188 } else {
22189 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22191 }
22192 if (SWIG_IsTmpObj(res4)) {
22193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22194 } else {
22195 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22197 }
22198 if (SWIG_IsTmpObj(res5)) {
22199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22200 } else {
22201 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22203 }
22204 {
22205 if (temp2)
22206 delete arg2;
22207 }
22208 return resultobj;
22209fail:
22210 {
22211 if (temp2)
22212 delete arg2;
22213 }
22214 return NULL;
22215}
22216
22217
22218SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22219 PyObject *resultobj = 0;
22220 wxDC *arg1 = (wxDC *) 0 ;
22221 wxString *arg2 = 0 ;
22222 wxArrayInt result;
22223 void *argp1 = 0 ;
22224 int res1 = 0 ;
22225 bool temp2 = false ;
22226 PyObject * obj0 = 0 ;
22227 PyObject * obj1 = 0 ;
22228 char * kwnames[] = {
22229 (char *) "self",(char *) "text", NULL
22230 };
22231
22232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
22233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22234 if (!SWIG_IsOK(res1)) {
22235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
22236 }
22237 arg1 = reinterpret_cast< wxDC * >(argp1);
22238 {
22239 arg2 = wxString_in_helper(obj1);
22240 if (arg2 == NULL) SWIG_fail;
22241 temp2 = true;
22242 }
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 {
b39fe951 22250 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
22251 }
22252 {
22253 if (temp2)
22254 delete arg2;
22255 }
22256 return resultobj;
22257fail:
22258 {
22259 if (temp2)
22260 delete arg2;
22261 }
22262 return NULL;
22263}
22264
22265
22266SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22267 PyObject *resultobj = 0;
22268 wxDC *arg1 = (wxDC *) 0 ;
22269 wxSize result;
22270 void *argp1 = 0 ;
22271 int res1 = 0 ;
22272 PyObject *swig_obj[1] ;
22273
22274 if (!args) SWIG_fail;
22275 swig_obj[0] = args;
22276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22277 if (!SWIG_IsOK(res1)) {
22278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
22279 }
22280 arg1 = reinterpret_cast< wxDC * >(argp1);
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 result = (arg1)->GetSize();
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22288 return resultobj;
22289fail:
22290 return NULL;
22291}
22292
22293
22294SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22295 PyObject *resultobj = 0;
22296 wxDC *arg1 = (wxDC *) 0 ;
22297 int *arg2 = (int *) 0 ;
22298 int *arg3 = (int *) 0 ;
22299 void *argp1 = 0 ;
22300 int res1 = 0 ;
22301 int temp2 ;
22302 int res2 = SWIG_TMPOBJ ;
22303 int temp3 ;
22304 int res3 = SWIG_TMPOBJ ;
22305 PyObject *swig_obj[1] ;
22306
22307 arg2 = &temp2;
22308 arg3 = &temp3;
22309 if (!args) SWIG_fail;
22310 swig_obj[0] = args;
22311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22312 if (!SWIG_IsOK(res1)) {
22313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
22314 }
22315 arg1 = reinterpret_cast< wxDC * >(argp1);
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 (arg1)->GetSize(arg2,arg3);
22319 wxPyEndAllowThreads(__tstate);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 }
22322 resultobj = SWIG_Py_Void();
22323 if (SWIG_IsTmpObj(res2)) {
22324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22325 } else {
22326 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22328 }
22329 if (SWIG_IsTmpObj(res3)) {
22330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22331 } else {
22332 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22334 }
22335 return resultobj;
22336fail:
22337 return NULL;
22338}
22339
22340
22341SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22342 PyObject *resultobj = 0;
22343 wxDC *arg1 = (wxDC *) 0 ;
22344 wxSize result;
22345 void *argp1 = 0 ;
22346 int res1 = 0 ;
22347 PyObject *swig_obj[1] ;
22348
22349 if (!args) SWIG_fail;
22350 swig_obj[0] = args;
22351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22352 if (!SWIG_IsOK(res1)) {
22353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22354 }
22355 arg1 = reinterpret_cast< wxDC * >(argp1);
22356 {
22357 PyThreadState* __tstate = wxPyBeginAllowThreads();
22358 result = ((wxDC const *)arg1)->GetSizeMM();
22359 wxPyEndAllowThreads(__tstate);
22360 if (PyErr_Occurred()) SWIG_fail;
22361 }
22362 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22363 return resultobj;
22364fail:
22365 return NULL;
22366}
22367
22368
22369SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22370 PyObject *resultobj = 0;
22371 wxDC *arg1 = (wxDC *) 0 ;
22372 int *arg2 = (int *) 0 ;
22373 int *arg3 = (int *) 0 ;
22374 void *argp1 = 0 ;
22375 int res1 = 0 ;
22376 int temp2 ;
22377 int res2 = SWIG_TMPOBJ ;
22378 int temp3 ;
22379 int res3 = SWIG_TMPOBJ ;
22380 PyObject *swig_obj[1] ;
22381
22382 arg2 = &temp2;
22383 arg3 = &temp3;
22384 if (!args) SWIG_fail;
22385 swig_obj[0] = args;
22386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22387 if (!SWIG_IsOK(res1)) {
22388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22389 }
22390 arg1 = reinterpret_cast< wxDC * >(argp1);
22391 {
22392 PyThreadState* __tstate = wxPyBeginAllowThreads();
22393 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22394 wxPyEndAllowThreads(__tstate);
22395 if (PyErr_Occurred()) SWIG_fail;
22396 }
22397 resultobj = SWIG_Py_Void();
22398 if (SWIG_IsTmpObj(res2)) {
22399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22400 } else {
22401 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22403 }
22404 if (SWIG_IsTmpObj(res3)) {
22405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22406 } else {
22407 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22409 }
22410 return resultobj;
22411fail:
22412 return NULL;
22413}
22414
22415
22416SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22417 PyObject *resultobj = 0;
22418 wxDC *arg1 = (wxDC *) 0 ;
22419 int arg2 ;
22420 int result;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 int val2 ;
22424 int ecode2 = 0 ;
22425 PyObject * obj0 = 0 ;
22426 PyObject * obj1 = 0 ;
22427 char * kwnames[] = {
22428 (char *) "self",(char *) "x", NULL
22429 };
22430
22431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22433 if (!SWIG_IsOK(res1)) {
22434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22435 }
22436 arg1 = reinterpret_cast< wxDC * >(argp1);
22437 ecode2 = SWIG_AsVal_int(obj1, &val2);
22438 if (!SWIG_IsOK(ecode2)) {
22439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22440 }
22441 arg2 = static_cast< int >(val2);
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22445 wxPyEndAllowThreads(__tstate);
22446 if (PyErr_Occurred()) SWIG_fail;
22447 }
22448 resultobj = SWIG_From_int(static_cast< int >(result));
22449 return resultobj;
22450fail:
22451 return NULL;
22452}
22453
22454
22455SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22456 PyObject *resultobj = 0;
22457 wxDC *arg1 = (wxDC *) 0 ;
22458 int arg2 ;
22459 int result;
22460 void *argp1 = 0 ;
22461 int res1 = 0 ;
22462 int val2 ;
22463 int ecode2 = 0 ;
22464 PyObject * obj0 = 0 ;
22465 PyObject * obj1 = 0 ;
22466 char * kwnames[] = {
22467 (char *) "self",(char *) "y", NULL
22468 };
22469
22470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22472 if (!SWIG_IsOK(res1)) {
22473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22474 }
22475 arg1 = reinterpret_cast< wxDC * >(argp1);
22476 ecode2 = SWIG_AsVal_int(obj1, &val2);
22477 if (!SWIG_IsOK(ecode2)) {
22478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22479 }
22480 arg2 = static_cast< int >(val2);
22481 {
22482 PyThreadState* __tstate = wxPyBeginAllowThreads();
22483 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22484 wxPyEndAllowThreads(__tstate);
22485 if (PyErr_Occurred()) SWIG_fail;
22486 }
22487 resultobj = SWIG_From_int(static_cast< int >(result));
22488 return resultobj;
22489fail:
22490 return NULL;
22491}
22492
22493
22494SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22495 PyObject *resultobj = 0;
22496 wxDC *arg1 = (wxDC *) 0 ;
22497 int arg2 ;
22498 int result;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 int val2 ;
22502 int ecode2 = 0 ;
22503 PyObject * obj0 = 0 ;
22504 PyObject * obj1 = 0 ;
22505 char * kwnames[] = {
22506 (char *) "self",(char *) "x", NULL
22507 };
22508
22509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22511 if (!SWIG_IsOK(res1)) {
22512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22513 }
22514 arg1 = reinterpret_cast< wxDC * >(argp1);
22515 ecode2 = SWIG_AsVal_int(obj1, &val2);
22516 if (!SWIG_IsOK(ecode2)) {
22517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22518 }
22519 arg2 = static_cast< int >(val2);
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 resultobj = SWIG_From_int(static_cast< int >(result));
22527 return resultobj;
22528fail:
22529 return NULL;
22530}
22531
22532
22533SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22534 PyObject *resultobj = 0;
22535 wxDC *arg1 = (wxDC *) 0 ;
22536 int arg2 ;
22537 int result;
22538 void *argp1 = 0 ;
22539 int res1 = 0 ;
22540 int val2 ;
22541 int ecode2 = 0 ;
22542 PyObject * obj0 = 0 ;
22543 PyObject * obj1 = 0 ;
22544 char * kwnames[] = {
22545 (char *) "self",(char *) "y", NULL
22546 };
22547
22548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22550 if (!SWIG_IsOK(res1)) {
22551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22552 }
22553 arg1 = reinterpret_cast< wxDC * >(argp1);
22554 ecode2 = SWIG_AsVal_int(obj1, &val2);
22555 if (!SWIG_IsOK(ecode2)) {
22556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22557 }
22558 arg2 = static_cast< int >(val2);
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 resultobj = SWIG_From_int(static_cast< int >(result));
22566 return resultobj;
22567fail:
22568 return NULL;
22569}
22570
22571
22572SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22573 PyObject *resultobj = 0;
22574 wxDC *arg1 = (wxDC *) 0 ;
22575 int arg2 ;
22576 int result;
22577 void *argp1 = 0 ;
22578 int res1 = 0 ;
22579 int val2 ;
22580 int ecode2 = 0 ;
22581 PyObject * obj0 = 0 ;
22582 PyObject * obj1 = 0 ;
22583 char * kwnames[] = {
22584 (char *) "self",(char *) "x", NULL
22585 };
22586
22587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22589 if (!SWIG_IsOK(res1)) {
22590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22591 }
22592 arg1 = reinterpret_cast< wxDC * >(argp1);
22593 ecode2 = SWIG_AsVal_int(obj1, &val2);
22594 if (!SWIG_IsOK(ecode2)) {
22595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22596 }
22597 arg2 = static_cast< int >(val2);
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 resultobj = SWIG_From_int(static_cast< int >(result));
22605 return resultobj;
22606fail:
22607 return NULL;
22608}
22609
22610
22611SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22612 PyObject *resultobj = 0;
22613 wxDC *arg1 = (wxDC *) 0 ;
22614 int arg2 ;
22615 int result;
22616 void *argp1 = 0 ;
22617 int res1 = 0 ;
22618 int val2 ;
22619 int ecode2 = 0 ;
22620 PyObject * obj0 = 0 ;
22621 PyObject * obj1 = 0 ;
22622 char * kwnames[] = {
22623 (char *) "self",(char *) "y", NULL
22624 };
22625
22626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22628 if (!SWIG_IsOK(res1)) {
22629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22630 }
22631 arg1 = reinterpret_cast< wxDC * >(argp1);
22632 ecode2 = SWIG_AsVal_int(obj1, &val2);
22633 if (!SWIG_IsOK(ecode2)) {
22634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22635 }
22636 arg2 = static_cast< int >(val2);
22637 {
22638 PyThreadState* __tstate = wxPyBeginAllowThreads();
22639 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 resultobj = SWIG_From_int(static_cast< int >(result));
22644 return resultobj;
22645fail:
22646 return NULL;
22647}
22648
22649
22650SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22651 PyObject *resultobj = 0;
22652 wxDC *arg1 = (wxDC *) 0 ;
22653 int arg2 ;
22654 int result;
22655 void *argp1 = 0 ;
22656 int res1 = 0 ;
22657 int val2 ;
22658 int ecode2 = 0 ;
22659 PyObject * obj0 = 0 ;
22660 PyObject * obj1 = 0 ;
22661 char * kwnames[] = {
22662 (char *) "self",(char *) "x", NULL
22663 };
22664
22665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22667 if (!SWIG_IsOK(res1)) {
22668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22669 }
22670 arg1 = reinterpret_cast< wxDC * >(argp1);
22671 ecode2 = SWIG_AsVal_int(obj1, &val2);
22672 if (!SWIG_IsOK(ecode2)) {
22673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22674 }
22675 arg2 = static_cast< int >(val2);
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
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_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22690 PyObject *resultobj = 0;
22691 wxDC *arg1 = (wxDC *) 0 ;
22692 int arg2 ;
22693 int result;
22694 void *argp1 = 0 ;
22695 int res1 = 0 ;
22696 int val2 ;
22697 int ecode2 = 0 ;
22698 PyObject * obj0 = 0 ;
22699 PyObject * obj1 = 0 ;
22700 char * kwnames[] = {
22701 (char *) "self",(char *) "y", NULL
22702 };
22703
22704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22706 if (!SWIG_IsOK(res1)) {
22707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22708 }
22709 arg1 = reinterpret_cast< wxDC * >(argp1);
22710 ecode2 = SWIG_AsVal_int(obj1, &val2);
22711 if (!SWIG_IsOK(ecode2)) {
22712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22713 }
22714 arg2 = static_cast< int >(val2);
22715 {
22716 PyThreadState* __tstate = wxPyBeginAllowThreads();
22717 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22718 wxPyEndAllowThreads(__tstate);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 }
22721 resultobj = SWIG_From_int(static_cast< int >(result));
22722 return resultobj;
22723fail:
22724 return NULL;
22725}
22726
22727
22728SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22729 PyObject *resultobj = 0;
22730 wxDC *arg1 = (wxDC *) 0 ;
22731 bool result;
22732 void *argp1 = 0 ;
22733 int res1 = 0 ;
22734 PyObject *swig_obj[1] ;
22735
22736 if (!args) SWIG_fail;
22737 swig_obj[0] = args;
22738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22739 if (!SWIG_IsOK(res1)) {
22740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22741 }
22742 arg1 = reinterpret_cast< wxDC * >(argp1);
22743 {
22744 PyThreadState* __tstate = wxPyBeginAllowThreads();
22745 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22746 wxPyEndAllowThreads(__tstate);
22747 if (PyErr_Occurred()) SWIG_fail;
22748 }
22749 {
22750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22751 }
22752 return resultobj;
22753fail:
22754 return NULL;
22755}
22756
22757
22758SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxDC *arg1 = (wxDC *) 0 ;
22761 bool result;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 PyObject *swig_obj[1] ;
22765
22766 if (!args) SWIG_fail;
22767 swig_obj[0] = args;
22768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22769 if (!SWIG_IsOK(res1)) {
22770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22771 }
22772 arg1 = reinterpret_cast< wxDC * >(argp1);
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 {
22780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22781 }
22782 return resultobj;
22783fail:
22784 return NULL;
22785}
22786
22787
22788SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22789 PyObject *resultobj = 0;
22790 wxDC *arg1 = (wxDC *) 0 ;
22791 int result;
22792 void *argp1 = 0 ;
22793 int res1 = 0 ;
22794 PyObject *swig_obj[1] ;
22795
22796 if (!args) SWIG_fail;
22797 swig_obj[0] = args;
22798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22799 if (!SWIG_IsOK(res1)) {
22800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22801 }
22802 arg1 = reinterpret_cast< wxDC * >(argp1);
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 result = (int)((wxDC const *)arg1)->GetDepth();
22806 wxPyEndAllowThreads(__tstate);
22807 if (PyErr_Occurred()) SWIG_fail;
22808 }
22809 resultobj = SWIG_From_int(static_cast< int >(result));
22810 return resultobj;
22811fail:
22812 return NULL;
22813}
22814
22815
22816SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22817 PyObject *resultobj = 0;
22818 wxDC *arg1 = (wxDC *) 0 ;
22819 wxSize result;
22820 void *argp1 = 0 ;
22821 int res1 = 0 ;
22822 PyObject *swig_obj[1] ;
22823
22824 if (!args) SWIG_fail;
22825 swig_obj[0] = args;
22826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22827 if (!SWIG_IsOK(res1)) {
22828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22829 }
22830 arg1 = reinterpret_cast< wxDC * >(argp1);
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 result = ((wxDC const *)arg1)->GetPPI();
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22838 return resultobj;
22839fail:
22840 return NULL;
22841}
22842
22843
b39fe951 22844SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22845 PyObject *resultobj = 0;
22846 wxDC *arg1 = (wxDC *) 0 ;
22847 bool result;
22848 void *argp1 = 0 ;
22849 int res1 = 0 ;
22850 PyObject *swig_obj[1] ;
22851
22852 if (!args) SWIG_fail;
22853 swig_obj[0] = args;
22854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22855 if (!SWIG_IsOK(res1)) {
b39fe951 22856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22857 }
22858 arg1 = reinterpret_cast< wxDC * >(argp1);
22859 {
22860 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22861 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22862 wxPyEndAllowThreads(__tstate);
22863 if (PyErr_Occurred()) SWIG_fail;
22864 }
22865 {
22866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22867 }
22868 return resultobj;
22869fail:
22870 return NULL;
22871}
22872
22873
22874SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22875 PyObject *resultobj = 0;
22876 wxDC *arg1 = (wxDC *) 0 ;
22877 int result;
22878 void *argp1 = 0 ;
22879 int res1 = 0 ;
22880 PyObject *swig_obj[1] ;
22881
22882 if (!args) SWIG_fail;
22883 swig_obj[0] = args;
22884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22885 if (!SWIG_IsOK(res1)) {
22886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22887 }
22888 arg1 = reinterpret_cast< wxDC * >(argp1);
22889 {
22890 PyThreadState* __tstate = wxPyBeginAllowThreads();
22891 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 resultobj = SWIG_From_int(static_cast< int >(result));
22896 return resultobj;
22897fail:
22898 return NULL;
22899}
22900
22901
22902SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22903 PyObject *resultobj = 0;
22904 wxDC *arg1 = (wxDC *) 0 ;
22905 wxBrush *result = 0 ;
22906 void *argp1 = 0 ;
22907 int res1 = 0 ;
22908 PyObject *swig_obj[1] ;
22909
22910 if (!args) SWIG_fail;
22911 swig_obj[0] = args;
22912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22913 if (!SWIG_IsOK(res1)) {
22914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22915 }
22916 arg1 = reinterpret_cast< wxDC * >(argp1);
22917 {
22918 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22919 {
554f62e9
RD
22920 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22921 result = (wxBrush *) &_result_ref;
093d3ff1 22922 }
554f62e9
RD
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 {
22927 wxBrush* resultptr = new wxBrush(*result);
22928 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22929 }
22930 return resultobj;
22931fail:
22932 return NULL;
22933}
22934
22935
22936SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22937 PyObject *resultobj = 0;
22938 wxDC *arg1 = (wxDC *) 0 ;
22939 wxBrush *result = 0 ;
22940 void *argp1 = 0 ;
22941 int res1 = 0 ;
22942 PyObject *swig_obj[1] ;
22943
22944 if (!args) SWIG_fail;
22945 swig_obj[0] = args;
22946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22947 if (!SWIG_IsOK(res1)) {
22948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22949 }
22950 arg1 = reinterpret_cast< wxDC * >(argp1);
22951 {
22952 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22953 {
554f62e9
RD
22954 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22955 result = (wxBrush *) &_result_ref;
093d3ff1 22956 }
554f62e9
RD
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 {
22961 wxBrush* resultptr = new wxBrush(*result);
22962 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22963 }
22964 return resultobj;
22965fail:
22966 return NULL;
22967}
22968
22969
22970SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22971 PyObject *resultobj = 0;
22972 wxDC *arg1 = (wxDC *) 0 ;
22973 wxFont *result = 0 ;
22974 void *argp1 = 0 ;
22975 int res1 = 0 ;
22976 PyObject *swig_obj[1] ;
22977
22978 if (!args) SWIG_fail;
22979 swig_obj[0] = args;
22980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22981 if (!SWIG_IsOK(res1)) {
22982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22983 }
22984 arg1 = reinterpret_cast< wxDC * >(argp1);
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22987 {
554f62e9
RD
22988 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22989 result = (wxFont *) &_result_ref;
093d3ff1 22990 }
554f62e9
RD
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 {
22995 wxFont* resultptr = new wxFont(*result);
22996 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22997 }
22998 return resultobj;
22999fail:
23000 return NULL;
23001}
23002
23003
23004SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23005 PyObject *resultobj = 0;
23006 wxDC *arg1 = (wxDC *) 0 ;
23007 wxPen *result = 0 ;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 PyObject *swig_obj[1] ;
23011
23012 if (!args) SWIG_fail;
23013 swig_obj[0] = args;
23014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23015 if (!SWIG_IsOK(res1)) {
23016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
23017 }
23018 arg1 = reinterpret_cast< wxDC * >(argp1);
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23021 {
554f62e9
RD
23022 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
23023 result = (wxPen *) &_result_ref;
093d3ff1 23024 }
554f62e9
RD
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 {
23029 wxPen* resultptr = new wxPen(*result);
23030 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
23031 }
23032 return resultobj;
23033fail:
23034 return NULL;
23035}
23036
23037
23038SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23039 PyObject *resultobj = 0;
23040 wxDC *arg1 = (wxDC *) 0 ;
23041 wxColour *result = 0 ;
23042 void *argp1 = 0 ;
23043 int res1 = 0 ;
23044 PyObject *swig_obj[1] ;
23045
23046 if (!args) SWIG_fail;
23047 swig_obj[0] = args;
23048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23049 if (!SWIG_IsOK(res1)) {
23050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
23051 }
23052 arg1 = reinterpret_cast< wxDC * >(argp1);
23053 {
23054 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23055 {
554f62e9
RD
23056 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
23057 result = (wxColour *) &_result_ref;
093d3ff1 23058 }
554f62e9
RD
23059 wxPyEndAllowThreads(__tstate);
23060 if (PyErr_Occurred()) SWIG_fail;
23061 }
23062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23063 return resultobj;
23064fail:
23065 return NULL;
23066}
23067
23068
23069SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23070 PyObject *resultobj = 0;
23071 wxDC *arg1 = (wxDC *) 0 ;
23072 wxColour *result = 0 ;
23073 void *argp1 = 0 ;
23074 int res1 = 0 ;
23075 PyObject *swig_obj[1] ;
23076
23077 if (!args) SWIG_fail;
23078 swig_obj[0] = args;
23079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23080 if (!SWIG_IsOK(res1)) {
23081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
23082 }
23083 arg1 = reinterpret_cast< wxDC * >(argp1);
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23086 {
554f62e9
RD
23087 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
23088 result = (wxColour *) &_result_ref;
093d3ff1 23089 }
554f62e9
RD
23090 wxPyEndAllowThreads(__tstate);
23091 if (PyErr_Occurred()) SWIG_fail;
23092 }
23093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23094 return resultobj;
23095fail:
23096 return NULL;
23097}
23098
23099
23100SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23101 PyObject *resultobj = 0;
23102 wxDC *arg1 = (wxDC *) 0 ;
23103 wxColour *arg2 = 0 ;
23104 void *argp1 = 0 ;
23105 int res1 = 0 ;
23106 wxColour temp2 ;
23107 PyObject * obj0 = 0 ;
23108 PyObject * obj1 = 0 ;
23109 char * kwnames[] = {
23110 (char *) "self",(char *) "colour", NULL
23111 };
23112
23113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
23114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
23117 }
23118 arg1 = reinterpret_cast< wxDC * >(argp1);
23119 {
23120 arg2 = &temp2;
23121 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23122 }
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 (arg1)->SetTextForeground((wxColour const &)*arg2);
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_Py_Void();
23130 return resultobj;
23131fail:
23132 return NULL;
23133}
23134
23135
23136SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23137 PyObject *resultobj = 0;
23138 wxDC *arg1 = (wxDC *) 0 ;
23139 wxColour *arg2 = 0 ;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 wxColour temp2 ;
23143 PyObject * obj0 = 0 ;
23144 PyObject * obj1 = 0 ;
23145 char * kwnames[] = {
23146 (char *) "self",(char *) "colour", NULL
23147 };
23148
23149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
23150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 {
23156 arg2 = &temp2;
23157 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23158 }
23159 {
23160 PyThreadState* __tstate = wxPyBeginAllowThreads();
23161 (arg1)->SetTextBackground((wxColour const &)*arg2);
23162 wxPyEndAllowThreads(__tstate);
23163 if (PyErr_Occurred()) SWIG_fail;
23164 }
23165 resultobj = SWIG_Py_Void();
23166 return resultobj;
23167fail:
23168 return NULL;
23169}
23170
23171
23172SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23173 PyObject *resultobj = 0;
23174 wxDC *arg1 = (wxDC *) 0 ;
23175 int result;
23176 void *argp1 = 0 ;
23177 int res1 = 0 ;
23178 PyObject *swig_obj[1] ;
23179
23180 if (!args) SWIG_fail;
23181 swig_obj[0] = args;
23182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
23185 }
23186 arg1 = reinterpret_cast< wxDC * >(argp1);
23187 {
23188 PyThreadState* __tstate = wxPyBeginAllowThreads();
23189 result = (int)((wxDC const *)arg1)->GetMapMode();
23190 wxPyEndAllowThreads(__tstate);
23191 if (PyErr_Occurred()) SWIG_fail;
23192 }
23193 resultobj = SWIG_From_int(static_cast< int >(result));
23194 return resultobj;
23195fail:
23196 return NULL;
23197}
23198
23199
23200SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23201 PyObject *resultobj = 0;
23202 wxDC *arg1 = (wxDC *) 0 ;
23203 int arg2 ;
23204 void *argp1 = 0 ;
23205 int res1 = 0 ;
23206 int val2 ;
23207 int ecode2 = 0 ;
23208 PyObject * obj0 = 0 ;
23209 PyObject * obj1 = 0 ;
23210 char * kwnames[] = {
23211 (char *) "self",(char *) "mode", NULL
23212 };
23213
23214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
23215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23216 if (!SWIG_IsOK(res1)) {
23217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
23218 }
23219 arg1 = reinterpret_cast< wxDC * >(argp1);
23220 ecode2 = SWIG_AsVal_int(obj1, &val2);
23221 if (!SWIG_IsOK(ecode2)) {
23222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
23223 }
23224 arg2 = static_cast< int >(val2);
23225 {
23226 PyThreadState* __tstate = wxPyBeginAllowThreads();
23227 (arg1)->SetMapMode(arg2);
23228 wxPyEndAllowThreads(__tstate);
23229 if (PyErr_Occurred()) SWIG_fail;
23230 }
23231 resultobj = SWIG_Py_Void();
23232 return resultobj;
23233fail:
23234 return NULL;
23235}
23236
23237
23238SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23239 PyObject *resultobj = 0;
23240 wxDC *arg1 = (wxDC *) 0 ;
23241 double *arg2 = (double *) 0 ;
23242 double *arg3 = (double *) 0 ;
23243 void *argp1 = 0 ;
23244 int res1 = 0 ;
23245 double temp2 ;
23246 int res2 = SWIG_TMPOBJ ;
23247 double temp3 ;
23248 int res3 = SWIG_TMPOBJ ;
23249 PyObject *swig_obj[1] ;
23250
23251 arg2 = &temp2;
23252 arg3 = &temp3;
23253 if (!args) SWIG_fail;
23254 swig_obj[0] = args;
23255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
23258 }
23259 arg1 = reinterpret_cast< wxDC * >(argp1);
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 resultobj = SWIG_Py_Void();
23267 if (SWIG_IsTmpObj(res2)) {
23268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23269 } else {
23270 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23272 }
23273 if (SWIG_IsTmpObj(res3)) {
23274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23275 } else {
23276 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23278 }
23279 return resultobj;
23280fail:
23281 return NULL;
23282}
23283
23284
23285SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23286 PyObject *resultobj = 0;
23287 wxDC *arg1 = (wxDC *) 0 ;
23288 double arg2 ;
23289 double arg3 ;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 double val2 ;
23293 int ecode2 = 0 ;
23294 double val3 ;
23295 int ecode3 = 0 ;
23296 PyObject * obj0 = 0 ;
23297 PyObject * obj1 = 0 ;
23298 PyObject * obj2 = 0 ;
23299 char * kwnames[] = {
23300 (char *) "self",(char *) "x",(char *) "y", NULL
23301 };
23302
23303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23305 if (!SWIG_IsOK(res1)) {
23306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
23307 }
23308 arg1 = reinterpret_cast< wxDC * >(argp1);
23309 ecode2 = SWIG_AsVal_double(obj1, &val2);
23310 if (!SWIG_IsOK(ecode2)) {
23311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
23312 }
23313 arg2 = static_cast< double >(val2);
23314 ecode3 = SWIG_AsVal_double(obj2, &val3);
23315 if (!SWIG_IsOK(ecode3)) {
23316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
23317 }
23318 arg3 = static_cast< double >(val3);
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 (arg1)->SetUserScale(arg2,arg3);
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_Py_Void();
23326 return resultobj;
23327fail:
23328 return NULL;
23329}
23330
23331
23332SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23333 PyObject *resultobj = 0;
23334 wxDC *arg1 = (wxDC *) 0 ;
23335 double *arg2 = (double *) 0 ;
23336 double *arg3 = (double *) 0 ;
23337 void *argp1 = 0 ;
23338 int res1 = 0 ;
23339 double temp2 ;
23340 int res2 = SWIG_TMPOBJ ;
23341 double temp3 ;
23342 int res3 = SWIG_TMPOBJ ;
23343 PyObject *swig_obj[1] ;
23344
23345 arg2 = &temp2;
23346 arg3 = &temp3;
23347 if (!args) SWIG_fail;
23348 swig_obj[0] = args;
23349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23350 if (!SWIG_IsOK(res1)) {
23351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23352 }
23353 arg1 = reinterpret_cast< wxDC * >(argp1);
23354 {
23355 PyThreadState* __tstate = wxPyBeginAllowThreads();
23356 (arg1)->GetLogicalScale(arg2,arg3);
23357 wxPyEndAllowThreads(__tstate);
23358 if (PyErr_Occurred()) SWIG_fail;
23359 }
23360 resultobj = SWIG_Py_Void();
23361 if (SWIG_IsTmpObj(res2)) {
23362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23363 } else {
23364 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23366 }
23367 if (SWIG_IsTmpObj(res3)) {
23368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23369 } else {
23370 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23372 }
23373 return resultobj;
23374fail:
23375 return NULL;
23376}
23377
23378
23379SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23380 PyObject *resultobj = 0;
23381 wxDC *arg1 = (wxDC *) 0 ;
23382 double arg2 ;
23383 double arg3 ;
23384 void *argp1 = 0 ;
23385 int res1 = 0 ;
23386 double val2 ;
23387 int ecode2 = 0 ;
23388 double val3 ;
23389 int ecode3 = 0 ;
23390 PyObject * obj0 = 0 ;
23391 PyObject * obj1 = 0 ;
23392 PyObject * obj2 = 0 ;
23393 char * kwnames[] = {
23394 (char *) "self",(char *) "x",(char *) "y", NULL
23395 };
23396
23397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23399 if (!SWIG_IsOK(res1)) {
23400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23401 }
23402 arg1 = reinterpret_cast< wxDC * >(argp1);
23403 ecode2 = SWIG_AsVal_double(obj1, &val2);
23404 if (!SWIG_IsOK(ecode2)) {
23405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23406 }
23407 arg2 = static_cast< double >(val2);
23408 ecode3 = SWIG_AsVal_double(obj2, &val3);
23409 if (!SWIG_IsOK(ecode3)) {
23410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23411 }
23412 arg3 = static_cast< double >(val3);
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 (arg1)->SetLogicalScale(arg2,arg3);
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 resultobj = SWIG_Py_Void();
23420 return resultobj;
23421fail:
23422 return NULL;
23423}
23424
23425
23426SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23427 PyObject *resultobj = 0;
23428 wxDC *arg1 = (wxDC *) 0 ;
23429 wxPoint result;
23430 void *argp1 = 0 ;
23431 int res1 = 0 ;
23432 PyObject *swig_obj[1] ;
23433
23434 if (!args) SWIG_fail;
23435 swig_obj[0] = args;
23436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23439 }
23440 arg1 = reinterpret_cast< wxDC * >(argp1);
23441 {
23442 PyThreadState* __tstate = wxPyBeginAllowThreads();
23443 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23448 return resultobj;
23449fail:
23450 return NULL;
23451}
23452
23453
23454SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23455 PyObject *resultobj = 0;
23456 wxDC *arg1 = (wxDC *) 0 ;
23457 int *arg2 = (int *) 0 ;
23458 int *arg3 = (int *) 0 ;
23459 void *argp1 = 0 ;
23460 int res1 = 0 ;
23461 int temp2 ;
23462 int res2 = SWIG_TMPOBJ ;
23463 int temp3 ;
23464 int res3 = SWIG_TMPOBJ ;
23465 PyObject *swig_obj[1] ;
23466
23467 arg2 = &temp2;
23468 arg3 = &temp3;
23469 if (!args) SWIG_fail;
23470 swig_obj[0] = args;
23471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23472 if (!SWIG_IsOK(res1)) {
23473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23474 }
23475 arg1 = reinterpret_cast< wxDC * >(argp1);
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23479 wxPyEndAllowThreads(__tstate);
23480 if (PyErr_Occurred()) SWIG_fail;
23481 }
23482 resultobj = SWIG_Py_Void();
23483 if (SWIG_IsTmpObj(res2)) {
23484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23485 } else {
23486 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23488 }
23489 if (SWIG_IsTmpObj(res3)) {
23490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23491 } else {
23492 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23494 }
23495 return resultobj;
23496fail:
23497 return NULL;
23498}
23499
23500
23501SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23502 PyObject *resultobj = 0;
23503 wxDC *arg1 = (wxDC *) 0 ;
23504 int arg2 ;
23505 int arg3 ;
23506 void *argp1 = 0 ;
23507 int res1 = 0 ;
23508 int val2 ;
23509 int ecode2 = 0 ;
23510 int val3 ;
23511 int ecode3 = 0 ;
23512 PyObject * obj0 = 0 ;
23513 PyObject * obj1 = 0 ;
23514 PyObject * obj2 = 0 ;
23515 char * kwnames[] = {
23516 (char *) "self",(char *) "x",(char *) "y", NULL
23517 };
23518
23519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23521 if (!SWIG_IsOK(res1)) {
23522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23523 }
23524 arg1 = reinterpret_cast< wxDC * >(argp1);
23525 ecode2 = SWIG_AsVal_int(obj1, &val2);
23526 if (!SWIG_IsOK(ecode2)) {
23527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23528 }
23529 arg2 = static_cast< int >(val2);
23530 ecode3 = SWIG_AsVal_int(obj2, &val3);
23531 if (!SWIG_IsOK(ecode3)) {
23532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23533 }
23534 arg3 = static_cast< int >(val3);
23535 {
23536 PyThreadState* __tstate = wxPyBeginAllowThreads();
23537 (arg1)->SetLogicalOrigin(arg2,arg3);
23538 wxPyEndAllowThreads(__tstate);
23539 if (PyErr_Occurred()) SWIG_fail;
23540 }
23541 resultobj = SWIG_Py_Void();
23542 return resultobj;
23543fail:
23544 return NULL;
23545}
23546
23547
23548SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23549 PyObject *resultobj = 0;
23550 wxDC *arg1 = (wxDC *) 0 ;
23551 wxPoint *arg2 = 0 ;
23552 void *argp1 = 0 ;
23553 int res1 = 0 ;
23554 wxPoint temp2 ;
23555 PyObject * obj0 = 0 ;
23556 PyObject * obj1 = 0 ;
23557 char * kwnames[] = {
23558 (char *) "self",(char *) "point", NULL
23559 };
23560
23561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23563 if (!SWIG_IsOK(res1)) {
23564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23565 }
23566 arg1 = reinterpret_cast< wxDC * >(argp1);
23567 {
23568 arg2 = &temp2;
23569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23570 }
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 resultobj = SWIG_Py_Void();
23578 return resultobj;
23579fail:
23580 return NULL;
23581}
23582
23583
23584SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23585 PyObject *resultobj = 0;
23586 wxDC *arg1 = (wxDC *) 0 ;
23587 wxPoint result;
23588 void *argp1 = 0 ;
23589 int res1 = 0 ;
23590 PyObject *swig_obj[1] ;
23591
23592 if (!args) SWIG_fail;
23593 swig_obj[0] = args;
23594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23595 if (!SWIG_IsOK(res1)) {
23596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23597 }
23598 arg1 = reinterpret_cast< wxDC * >(argp1);
23599 {
23600 PyThreadState* __tstate = wxPyBeginAllowThreads();
23601 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23602 wxPyEndAllowThreads(__tstate);
23603 if (PyErr_Occurred()) SWIG_fail;
23604 }
23605 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23606 return resultobj;
23607fail:
23608 return NULL;
23609}
23610
23611
23612SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23613 PyObject *resultobj = 0;
23614 wxDC *arg1 = (wxDC *) 0 ;
23615 int *arg2 = (int *) 0 ;
23616 int *arg3 = (int *) 0 ;
23617 void *argp1 = 0 ;
23618 int res1 = 0 ;
23619 int temp2 ;
23620 int res2 = SWIG_TMPOBJ ;
23621 int temp3 ;
23622 int res3 = SWIG_TMPOBJ ;
23623 PyObject *swig_obj[1] ;
23624
23625 arg2 = &temp2;
23626 arg3 = &temp3;
23627 if (!args) SWIG_fail;
23628 swig_obj[0] = args;
23629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23630 if (!SWIG_IsOK(res1)) {
23631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23632 }
23633 arg1 = reinterpret_cast< wxDC * >(argp1);
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23637 wxPyEndAllowThreads(__tstate);
23638 if (PyErr_Occurred()) SWIG_fail;
23639 }
23640 resultobj = SWIG_Py_Void();
23641 if (SWIG_IsTmpObj(res2)) {
23642 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23643 } else {
23644 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23646 }
23647 if (SWIG_IsTmpObj(res3)) {
23648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23649 } else {
23650 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23652 }
23653 return resultobj;
23654fail:
23655 return NULL;
23656}
23657
23658
23659SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23660 PyObject *resultobj = 0;
23661 wxDC *arg1 = (wxDC *) 0 ;
23662 int arg2 ;
23663 int arg3 ;
23664 void *argp1 = 0 ;
23665 int res1 = 0 ;
23666 int val2 ;
23667 int ecode2 = 0 ;
23668 int val3 ;
23669 int ecode3 = 0 ;
23670 PyObject * obj0 = 0 ;
23671 PyObject * obj1 = 0 ;
23672 PyObject * obj2 = 0 ;
23673 char * kwnames[] = {
23674 (char *) "self",(char *) "x",(char *) "y", NULL
23675 };
23676
23677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23679 if (!SWIG_IsOK(res1)) {
23680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23681 }
23682 arg1 = reinterpret_cast< wxDC * >(argp1);
23683 ecode2 = SWIG_AsVal_int(obj1, &val2);
23684 if (!SWIG_IsOK(ecode2)) {
23685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23686 }
23687 arg2 = static_cast< int >(val2);
23688 ecode3 = SWIG_AsVal_int(obj2, &val3);
23689 if (!SWIG_IsOK(ecode3)) {
23690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23691 }
23692 arg3 = static_cast< int >(val3);
23693 {
23694 PyThreadState* __tstate = wxPyBeginAllowThreads();
23695 (arg1)->SetDeviceOrigin(arg2,arg3);
23696 wxPyEndAllowThreads(__tstate);
23697 if (PyErr_Occurred()) SWIG_fail;
23698 }
23699 resultobj = SWIG_Py_Void();
23700 return resultobj;
23701fail:
23702 return NULL;
23703}
23704
23705
23706SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23707 PyObject *resultobj = 0;
23708 wxDC *arg1 = (wxDC *) 0 ;
23709 wxPoint *arg2 = 0 ;
23710 void *argp1 = 0 ;
23711 int res1 = 0 ;
23712 wxPoint temp2 ;
23713 PyObject * obj0 = 0 ;
23714 PyObject * obj1 = 0 ;
23715 char * kwnames[] = {
23716 (char *) "self",(char *) "point", NULL
23717 };
23718
23719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23723 }
23724 arg1 = reinterpret_cast< wxDC * >(argp1);
23725 {
23726 arg2 = &temp2;
23727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23728 }
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_Py_Void();
23736 return resultobj;
23737fail:
23738 return NULL;
23739}
23740
23741
23742SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23743 PyObject *resultobj = 0;
23744 wxDC *arg1 = (wxDC *) 0 ;
23745 bool arg2 ;
23746 bool arg3 ;
23747 void *argp1 = 0 ;
23748 int res1 = 0 ;
23749 bool val2 ;
23750 int ecode2 = 0 ;
23751 bool val3 ;
23752 int ecode3 = 0 ;
23753 PyObject * obj0 = 0 ;
23754 PyObject * obj1 = 0 ;
23755 PyObject * obj2 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23764 }
23765 arg1 = reinterpret_cast< wxDC * >(argp1);
23766 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23767 if (!SWIG_IsOK(ecode2)) {
23768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23769 }
23770 arg2 = static_cast< bool >(val2);
23771 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23772 if (!SWIG_IsOK(ecode3)) {
23773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23774 }
23775 arg3 = static_cast< bool >(val3);
23776 {
23777 PyThreadState* __tstate = wxPyBeginAllowThreads();
23778 (arg1)->SetAxisOrientation(arg2,arg3);
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_Py_Void();
23783 return resultobj;
23784fail:
23785 return NULL;
23786}
23787
23788
23789SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23790 PyObject *resultobj = 0;
23791 wxDC *arg1 = (wxDC *) 0 ;
23792 int result;
23793 void *argp1 = 0 ;
23794 int res1 = 0 ;
23795 PyObject *swig_obj[1] ;
23796
23797 if (!args) SWIG_fail;
23798 swig_obj[0] = args;
23799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23800 if (!SWIG_IsOK(res1)) {
23801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23802 }
23803 arg1 = reinterpret_cast< wxDC * >(argp1);
23804 {
23805 PyThreadState* __tstate = wxPyBeginAllowThreads();
23806 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23807 wxPyEndAllowThreads(__tstate);
23808 if (PyErr_Occurred()) SWIG_fail;
23809 }
23810 resultobj = SWIG_From_int(static_cast< int >(result));
23811 return resultobj;
23812fail:
23813 return NULL;
23814}
23815
23816
23817SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23818 PyObject *resultobj = 0;
23819 wxDC *arg1 = (wxDC *) 0 ;
23820 int arg2 ;
23821 void *argp1 = 0 ;
23822 int res1 = 0 ;
23823 int val2 ;
23824 int ecode2 = 0 ;
23825 PyObject * obj0 = 0 ;
23826 PyObject * obj1 = 0 ;
23827 char * kwnames[] = {
23828 (char *) "self",(char *) "function", NULL
23829 };
23830
23831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23833 if (!SWIG_IsOK(res1)) {
23834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23835 }
23836 arg1 = reinterpret_cast< wxDC * >(argp1);
23837 ecode2 = SWIG_AsVal_int(obj1, &val2);
23838 if (!SWIG_IsOK(ecode2)) {
23839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23840 }
23841 arg2 = static_cast< int >(val2);
23842 {
23843 PyThreadState* __tstate = wxPyBeginAllowThreads();
23844 (arg1)->SetLogicalFunction(arg2);
23845 wxPyEndAllowThreads(__tstate);
23846 if (PyErr_Occurred()) SWIG_fail;
23847 }
23848 resultobj = SWIG_Py_Void();
23849 return resultobj;
23850fail:
23851 return NULL;
23852}
23853
23854
23855SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23856 PyObject *resultobj = 0;
23857 wxDC *arg1 = (wxDC *) 0 ;
23858 void *argp1 = 0 ;
23859 int res1 = 0 ;
23860 PyObject *swig_obj[1] ;
23861
23862 if (!args) SWIG_fail;
23863 swig_obj[0] = args;
23864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23865 if (!SWIG_IsOK(res1)) {
23866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23867 }
23868 arg1 = reinterpret_cast< wxDC * >(argp1);
23869 {
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 (arg1)->ComputeScaleAndOrigin();
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = SWIG_Py_Void();
23876 return resultobj;
23877fail:
23878 return NULL;
23879}
23880
23881
23882SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj = 0;
23884 wxDC *arg1 = (wxDC *) 0 ;
23885 int arg2 ;
23886 int arg3 ;
23887 void *argp1 = 0 ;
23888 int res1 = 0 ;
23889 int val2 ;
23890 int ecode2 = 0 ;
23891 int val3 ;
23892 int ecode3 = 0 ;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 PyObject * obj2 = 0 ;
23896 char * kwnames[] = {
23897 (char *) "self",(char *) "x",(char *) "y", NULL
23898 };
23899
23900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23902 if (!SWIG_IsOK(res1)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23904 }
23905 arg1 = reinterpret_cast< wxDC * >(argp1);
23906 ecode2 = SWIG_AsVal_int(obj1, &val2);
23907 if (!SWIG_IsOK(ecode2)) {
23908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23909 }
23910 arg2 = static_cast< int >(val2);
23911 ecode3 = SWIG_AsVal_int(obj2, &val3);
23912 if (!SWIG_IsOK(ecode3)) {
23913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23914 }
23915 arg3 = static_cast< int >(val3);
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 (arg1)->CalcBoundingBox(arg2,arg3);
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 resultobj = SWIG_Py_Void();
23923 return resultobj;
23924fail:
23925 return NULL;
23926}
23927
23928
23929SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23930 PyObject *resultobj = 0;
23931 wxDC *arg1 = (wxDC *) 0 ;
23932 wxPoint *arg2 = 0 ;
23933 void *argp1 = 0 ;
23934 int res1 = 0 ;
23935 wxPoint temp2 ;
23936 PyObject * obj0 = 0 ;
23937 PyObject * obj1 = 0 ;
23938 char * kwnames[] = {
23939 (char *) "self",(char *) "point", NULL
23940 };
23941
23942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23944 if (!SWIG_IsOK(res1)) {
23945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23946 }
23947 arg1 = reinterpret_cast< wxDC * >(argp1);
23948 {
23949 arg2 = &temp2;
23950 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23951 }
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23955 wxPyEndAllowThreads(__tstate);
23956 if (PyErr_Occurred()) SWIG_fail;
23957 }
23958 resultobj = SWIG_Py_Void();
23959 return resultobj;
23960fail:
23961 return NULL;
23962}
23963
23964
23965SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23966 PyObject *resultobj = 0;
23967 wxDC *arg1 = (wxDC *) 0 ;
23968 void *argp1 = 0 ;
23969 int res1 = 0 ;
23970 PyObject *swig_obj[1] ;
23971
23972 if (!args) SWIG_fail;
23973 swig_obj[0] = args;
23974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23975 if (!SWIG_IsOK(res1)) {
23976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23977 }
23978 arg1 = reinterpret_cast< wxDC * >(argp1);
23979 {
23980 PyThreadState* __tstate = wxPyBeginAllowThreads();
23981 (arg1)->ResetBoundingBox();
23982 wxPyEndAllowThreads(__tstate);
23983 if (PyErr_Occurred()) SWIG_fail;
23984 }
23985 resultobj = SWIG_Py_Void();
23986 return resultobj;
23987fail:
23988 return NULL;
23989}
23990
23991
23992SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23993 PyObject *resultobj = 0;
23994 wxDC *arg1 = (wxDC *) 0 ;
23995 int result;
23996 void *argp1 = 0 ;
23997 int res1 = 0 ;
23998 PyObject *swig_obj[1] ;
23999
24000 if (!args) SWIG_fail;
24001 swig_obj[0] = args;
24002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24003 if (!SWIG_IsOK(res1)) {
24004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
24005 }
24006 arg1 = reinterpret_cast< wxDC * >(argp1);
24007 {
24008 PyThreadState* __tstate = wxPyBeginAllowThreads();
24009 result = (int)((wxDC const *)arg1)->MinX();
24010 wxPyEndAllowThreads(__tstate);
24011 if (PyErr_Occurred()) SWIG_fail;
24012 }
24013 resultobj = SWIG_From_int(static_cast< int >(result));
24014 return resultobj;
24015fail:
24016 return NULL;
24017}
24018
24019
24020SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24021 PyObject *resultobj = 0;
24022 wxDC *arg1 = (wxDC *) 0 ;
24023 int result;
24024 void *argp1 = 0 ;
24025 int res1 = 0 ;
24026 PyObject *swig_obj[1] ;
24027
24028 if (!args) SWIG_fail;
24029 swig_obj[0] = args;
24030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24031 if (!SWIG_IsOK(res1)) {
24032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
24033 }
24034 arg1 = reinterpret_cast< wxDC * >(argp1);
24035 {
24036 PyThreadState* __tstate = wxPyBeginAllowThreads();
24037 result = (int)((wxDC const *)arg1)->MaxX();
24038 wxPyEndAllowThreads(__tstate);
24039 if (PyErr_Occurred()) SWIG_fail;
24040 }
24041 resultobj = SWIG_From_int(static_cast< int >(result));
24042 return resultobj;
24043fail:
24044 return NULL;
24045}
24046
24047
24048SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24049 PyObject *resultobj = 0;
24050 wxDC *arg1 = (wxDC *) 0 ;
24051 int result;
24052 void *argp1 = 0 ;
24053 int res1 = 0 ;
24054 PyObject *swig_obj[1] ;
24055
24056 if (!args) SWIG_fail;
24057 swig_obj[0] = args;
24058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24059 if (!SWIG_IsOK(res1)) {
24060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
24061 }
24062 arg1 = reinterpret_cast< wxDC * >(argp1);
24063 {
24064 PyThreadState* __tstate = wxPyBeginAllowThreads();
24065 result = (int)((wxDC const *)arg1)->MinY();
24066 wxPyEndAllowThreads(__tstate);
24067 if (PyErr_Occurred()) SWIG_fail;
24068 }
24069 resultobj = SWIG_From_int(static_cast< int >(result));
24070 return resultobj;
24071fail:
24072 return NULL;
24073}
24074
24075
24076SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24077 PyObject *resultobj = 0;
24078 wxDC *arg1 = (wxDC *) 0 ;
24079 int result;
24080 void *argp1 = 0 ;
24081 int res1 = 0 ;
24082 PyObject *swig_obj[1] ;
24083
24084 if (!args) SWIG_fail;
24085 swig_obj[0] = args;
24086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24087 if (!SWIG_IsOK(res1)) {
24088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
24089 }
24090 arg1 = reinterpret_cast< wxDC * >(argp1);
24091 {
24092 PyThreadState* __tstate = wxPyBeginAllowThreads();
24093 result = (int)((wxDC const *)arg1)->MaxY();
24094 wxPyEndAllowThreads(__tstate);
24095 if (PyErr_Occurred()) SWIG_fail;
24096 }
24097 resultobj = SWIG_From_int(static_cast< int >(result));
24098 return resultobj;
24099fail:
24100 return NULL;
24101}
24102
24103
24104SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24105 PyObject *resultobj = 0;
24106 wxDC *arg1 = (wxDC *) 0 ;
24107 int *arg2 = (int *) 0 ;
24108 int *arg3 = (int *) 0 ;
24109 int *arg4 = (int *) 0 ;
24110 int *arg5 = (int *) 0 ;
24111 void *argp1 = 0 ;
24112 int res1 = 0 ;
24113 int temp2 ;
24114 int res2 = SWIG_TMPOBJ ;
24115 int temp3 ;
24116 int res3 = SWIG_TMPOBJ ;
24117 int temp4 ;
24118 int res4 = SWIG_TMPOBJ ;
24119 int temp5 ;
24120 int res5 = SWIG_TMPOBJ ;
24121 PyObject *swig_obj[1] ;
24122
24123 arg2 = &temp2;
24124 arg3 = &temp3;
24125 arg4 = &temp4;
24126 arg5 = &temp5;
24127 if (!args) SWIG_fail;
24128 swig_obj[0] = args;
24129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24130 if (!SWIG_IsOK(res1)) {
24131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24132 }
24133 arg1 = reinterpret_cast< wxDC * >(argp1);
24134 {
24135 PyThreadState* __tstate = wxPyBeginAllowThreads();
24136 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
24137 wxPyEndAllowThreads(__tstate);
24138 if (PyErr_Occurred()) SWIG_fail;
24139 }
24140 resultobj = SWIG_Py_Void();
24141 if (SWIG_IsTmpObj(res2)) {
24142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
24143 } else {
24144 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
24146 }
24147 if (SWIG_IsTmpObj(res3)) {
24148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24149 } else {
24150 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24152 }
24153 if (SWIG_IsTmpObj(res4)) {
24154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24155 } else {
24156 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24158 }
24159 if (SWIG_IsTmpObj(res5)) {
24160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
24161 } else {
24162 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
24164 }
24165 return resultobj;
24166fail:
24167 return NULL;
24168}
24169
24170
b39fe951
RD
24171SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24172 PyObject *resultobj = 0;
24173 wxDC *arg1 = (wxDC *) 0 ;
24174 wxLayoutDirection result;
24175 void *argp1 = 0 ;
24176 int res1 = 0 ;
24177 PyObject *swig_obj[1] ;
24178
24179 if (!args) SWIG_fail;
24180 swig_obj[0] = args;
24181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24182 if (!SWIG_IsOK(res1)) {
24183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
24184 }
24185 arg1 = reinterpret_cast< wxDC * >(argp1);
24186 {
24187 PyThreadState* __tstate = wxPyBeginAllowThreads();
24188 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
24189 wxPyEndAllowThreads(__tstate);
24190 if (PyErr_Occurred()) SWIG_fail;
24191 }
24192 resultobj = SWIG_From_int(static_cast< int >(result));
24193 return resultobj;
24194fail:
24195 return NULL;
24196}
24197
24198
24199SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24200 PyObject *resultobj = 0;
24201 wxDC *arg1 = (wxDC *) 0 ;
24202 wxLayoutDirection arg2 ;
24203 void *argp1 = 0 ;
24204 int res1 = 0 ;
24205 int val2 ;
24206 int ecode2 = 0 ;
24207 PyObject * obj0 = 0 ;
24208 PyObject * obj1 = 0 ;
24209 char * kwnames[] = {
24210 (char *) "self",(char *) "dir", NULL
24211 };
24212
24213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
24214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24215 if (!SWIG_IsOK(res1)) {
24216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
24217 }
24218 arg1 = reinterpret_cast< wxDC * >(argp1);
24219 ecode2 = SWIG_AsVal_int(obj1, &val2);
24220 if (!SWIG_IsOK(ecode2)) {
24221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
24222 }
24223 arg2 = static_cast< wxLayoutDirection >(val2);
24224 {
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 (arg1)->SetLayoutDirection(arg2);
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 resultobj = SWIG_Py_Void();
24231 return resultobj;
24232fail:
24233 return NULL;
24234}
24235
24236
554f62e9
RD
24237SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24238 PyObject *resultobj = 0;
24239 wxDC *arg1 = (wxDC *) 0 ;
24240 long result;
24241 void *argp1 = 0 ;
24242 int res1 = 0 ;
24243 PyObject *swig_obj[1] ;
24244
24245 if (!args) SWIG_fail;
24246 swig_obj[0] = args;
24247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24248 if (!SWIG_IsOK(res1)) {
24249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
24250 }
24251 arg1 = reinterpret_cast< wxDC * >(argp1);
24252 {
24253 PyThreadState* __tstate = wxPyBeginAllowThreads();
24254 result = (long)(arg1)->GetHDC();
24255 wxPyEndAllowThreads(__tstate);
24256 if (PyErr_Occurred()) SWIG_fail;
24257 }
24258 resultobj = SWIG_From_long(static_cast< long >(result));
24259 return resultobj;
24260fail:
24261 return NULL;
24262}
24263
24264
24265SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24266 PyObject *resultobj = 0;
24267 wxDC *arg1 = (wxDC *) 0 ;
24268 PyObject *arg2 = (PyObject *) 0 ;
24269 PyObject *arg3 = (PyObject *) 0 ;
24270 PyObject *arg4 = (PyObject *) 0 ;
24271 PyObject *result = 0 ;
24272 void *argp1 = 0 ;
24273 int res1 = 0 ;
24274 PyObject * obj0 = 0 ;
24275 PyObject * obj1 = 0 ;
24276 PyObject * obj2 = 0 ;
24277 PyObject * obj3 = 0 ;
24278 char * kwnames[] = {
24279 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24280 };
24281
24282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
24286 }
24287 arg1 = reinterpret_cast< wxDC * >(argp1);
24288 arg2 = obj1;
24289 arg3 = obj2;
24290 arg4 = obj3;
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
24294 wxPyEndAllowThreads(__tstate);
24295 if (PyErr_Occurred()) SWIG_fail;
24296 }
24297 resultobj = result;
24298 return resultobj;
24299fail:
24300 return NULL;
24301}
24302
24303
24304SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24305 PyObject *resultobj = 0;
24306 wxDC *arg1 = (wxDC *) 0 ;
24307 PyObject *arg2 = (PyObject *) 0 ;
24308 PyObject *arg3 = (PyObject *) 0 ;
24309 PyObject *arg4 = (PyObject *) 0 ;
24310 PyObject *result = 0 ;
24311 void *argp1 = 0 ;
24312 int res1 = 0 ;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315 PyObject * obj2 = 0 ;
24316 PyObject * obj3 = 0 ;
24317 char * kwnames[] = {
24318 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24319 };
24320
24321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24323 if (!SWIG_IsOK(res1)) {
24324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24325 }
24326 arg1 = reinterpret_cast< wxDC * >(argp1);
24327 arg2 = obj1;
24328 arg3 = obj2;
24329 arg4 = obj3;
24330 {
24331 PyThreadState* __tstate = wxPyBeginAllowThreads();
24332 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24333 wxPyEndAllowThreads(__tstate);
24334 if (PyErr_Occurred()) SWIG_fail;
24335 }
24336 resultobj = result;
24337 return resultobj;
24338fail:
24339 return NULL;
24340}
24341
24342
24343SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24344 PyObject *resultobj = 0;
24345 wxDC *arg1 = (wxDC *) 0 ;
24346 PyObject *arg2 = (PyObject *) 0 ;
24347 PyObject *arg3 = (PyObject *) 0 ;
24348 PyObject *arg4 = (PyObject *) 0 ;
24349 PyObject *result = 0 ;
24350 void *argp1 = 0 ;
24351 int res1 = 0 ;
24352 PyObject * obj0 = 0 ;
24353 PyObject * obj1 = 0 ;
24354 PyObject * obj2 = 0 ;
24355 PyObject * obj3 = 0 ;
24356 char * kwnames[] = {
24357 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24358 };
24359
24360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24362 if (!SWIG_IsOK(res1)) {
24363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24364 }
24365 arg1 = reinterpret_cast< wxDC * >(argp1);
24366 arg2 = obj1;
24367 arg3 = obj2;
24368 arg4 = obj3;
24369 {
24370 PyThreadState* __tstate = wxPyBeginAllowThreads();
24371 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24372 wxPyEndAllowThreads(__tstate);
24373 if (PyErr_Occurred()) SWIG_fail;
24374 }
24375 resultobj = result;
24376 return resultobj;
24377fail:
24378 return NULL;
24379}
24380
24381
24382SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24383 PyObject *resultobj = 0;
24384 wxDC *arg1 = (wxDC *) 0 ;
24385 PyObject *arg2 = (PyObject *) 0 ;
24386 PyObject *arg3 = (PyObject *) 0 ;
24387 PyObject *arg4 = (PyObject *) 0 ;
24388 PyObject *result = 0 ;
24389 void *argp1 = 0 ;
24390 int res1 = 0 ;
24391 PyObject * obj0 = 0 ;
24392 PyObject * obj1 = 0 ;
24393 PyObject * obj2 = 0 ;
24394 PyObject * obj3 = 0 ;
24395 char * kwnames[] = {
24396 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24397 };
24398
24399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24401 if (!SWIG_IsOK(res1)) {
24402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24403 }
24404 arg1 = reinterpret_cast< wxDC * >(argp1);
24405 arg2 = obj1;
24406 arg3 = obj2;
24407 arg4 = obj3;
24408 {
24409 PyThreadState* __tstate = wxPyBeginAllowThreads();
24410 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
24414 resultobj = result;
24415 return resultobj;
24416fail:
24417 return NULL;
24418}
24419
24420
24421SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24422 PyObject *resultobj = 0;
24423 wxDC *arg1 = (wxDC *) 0 ;
24424 PyObject *arg2 = (PyObject *) 0 ;
24425 PyObject *arg3 = (PyObject *) 0 ;
24426 PyObject *arg4 = (PyObject *) 0 ;
24427 PyObject *result = 0 ;
24428 void *argp1 = 0 ;
24429 int res1 = 0 ;
24430 PyObject * obj0 = 0 ;
24431 PyObject * obj1 = 0 ;
24432 PyObject * obj2 = 0 ;
24433 PyObject * obj3 = 0 ;
24434 char * kwnames[] = {
24435 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24436 };
24437
24438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24440 if (!SWIG_IsOK(res1)) {
24441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24442 }
24443 arg1 = reinterpret_cast< wxDC * >(argp1);
24444 arg2 = obj1;
24445 arg3 = obj2;
24446 arg4 = obj3;
24447 {
24448 PyThreadState* __tstate = wxPyBeginAllowThreads();
24449 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 resultobj = result;
24454 return resultobj;
24455fail:
24456 return NULL;
24457}
24458
24459
24460SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24461 PyObject *resultobj = 0;
24462 wxDC *arg1 = (wxDC *) 0 ;
24463 PyObject *arg2 = (PyObject *) 0 ;
24464 PyObject *arg3 = (PyObject *) 0 ;
24465 PyObject *arg4 = (PyObject *) 0 ;
24466 PyObject *arg5 = (PyObject *) 0 ;
24467 PyObject *result = 0 ;
24468 void *argp1 = 0 ;
24469 int res1 = 0 ;
24470 PyObject * obj0 = 0 ;
24471 PyObject * obj1 = 0 ;
24472 PyObject * obj2 = 0 ;
24473 PyObject * obj3 = 0 ;
24474 PyObject * obj4 = 0 ;
24475 char * kwnames[] = {
24476 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24477 };
24478
24479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24481 if (!SWIG_IsOK(res1)) {
24482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24483 }
24484 arg1 = reinterpret_cast< wxDC * >(argp1);
24485 arg2 = obj1;
24486 arg3 = obj2;
24487 arg4 = obj3;
24488 arg5 = obj4;
24489 {
24490 PyThreadState* __tstate = wxPyBeginAllowThreads();
24491 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24492 wxPyEndAllowThreads(__tstate);
24493 if (PyErr_Occurred()) SWIG_fail;
24494 }
24495 resultobj = result;
24496 return resultobj;
24497fail:
24498 return NULL;
24499}
24500
24501
24502SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24503 PyObject *obj;
24504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24505 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24506 return SWIG_Py_Void();
24507}
24508
70d7cb34
RD
24509SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24510 PyObject *resultobj = 0;
24511 wxDC *arg1 = 0 ;
24512 wxColour *arg2 = 0 ;
24513 wxDCTextColourChanger *result = 0 ;
24514 void *argp1 = 0 ;
24515 int res1 = 0 ;
24516 wxColour temp2 ;
24517 PyObject * obj0 = 0 ;
24518 PyObject * obj1 = 0 ;
24519 char * kwnames[] = {
24520 (char *) "dc",(char *) "col", NULL
24521 };
24522
24523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24524 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24525 if (!SWIG_IsOK(res1)) {
24526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24527 }
24528 if (!argp1) {
24529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24530 }
24531 arg1 = reinterpret_cast< wxDC * >(argp1);
24532 {
24533 arg2 = &temp2;
24534 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24535 }
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24543 return resultobj;
24544fail:
24545 return NULL;
24546}
24547
24548
24549SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24550 PyObject *resultobj = 0;
24551 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24552 void *argp1 = 0 ;
24553 int res1 = 0 ;
24554 PyObject *swig_obj[1] ;
24555
24556 if (!args) SWIG_fail;
24557 swig_obj[0] = args;
24558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24559 if (!SWIG_IsOK(res1)) {
24560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24561 }
24562 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 delete arg1;
24566
24567 wxPyEndAllowThreads(__tstate);
24568 if (PyErr_Occurred()) SWIG_fail;
24569 }
24570 resultobj = SWIG_Py_Void();
24571 return resultobj;
24572fail:
24573 return NULL;
24574}
24575
24576
24577SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24578 PyObject *obj;
24579 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24580 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24581 return SWIG_Py_Void();
24582}
24583
24584SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24585 return SWIG_Python_InitShadowInstance(args);
24586}
24587
24588SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24589 PyObject *resultobj = 0;
24590 wxDC *arg1 = 0 ;
24591 wxPen *arg2 = 0 ;
24592 wxDCPenChanger *result = 0 ;
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 void *argp2 = 0 ;
24596 int res2 = 0 ;
24597 PyObject * obj0 = 0 ;
24598 PyObject * obj1 = 0 ;
24599 char * kwnames[] = {
24600 (char *) "dc",(char *) "pen", NULL
24601 };
24602
24603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24604 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24605 if (!SWIG_IsOK(res1)) {
24606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24607 }
24608 if (!argp1) {
24609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24610 }
24611 arg1 = reinterpret_cast< wxDC * >(argp1);
24612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24613 if (!SWIG_IsOK(res2)) {
24614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24615 }
24616 if (!argp2) {
24617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24618 }
24619 arg2 = reinterpret_cast< wxPen * >(argp2);
24620 {
24621 PyThreadState* __tstate = wxPyBeginAllowThreads();
24622 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24623 wxPyEndAllowThreads(__tstate);
24624 if (PyErr_Occurred()) SWIG_fail;
24625 }
24626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24627 return resultobj;
24628fail:
24629 return NULL;
24630}
24631
24632
24633SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24634 PyObject *resultobj = 0;
24635 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24636 void *argp1 = 0 ;
24637 int res1 = 0 ;
24638 PyObject *swig_obj[1] ;
24639
24640 if (!args) SWIG_fail;
24641 swig_obj[0] = args;
24642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24643 if (!SWIG_IsOK(res1)) {
24644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24645 }
24646 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24647 {
24648 PyThreadState* __tstate = wxPyBeginAllowThreads();
24649 delete arg1;
24650
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 resultobj = SWIG_Py_Void();
24655 return resultobj;
24656fail:
24657 return NULL;
24658}
24659
24660
24661SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24662 PyObject *obj;
24663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24664 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24665 return SWIG_Py_Void();
24666}
24667
24668SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24669 return SWIG_Python_InitShadowInstance(args);
24670}
24671
24672SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24673 PyObject *resultobj = 0;
24674 wxDC *arg1 = 0 ;
24675 wxBrush *arg2 = 0 ;
24676 wxDCBrushChanger *result = 0 ;
24677 void *argp1 = 0 ;
24678 int res1 = 0 ;
24679 void *argp2 = 0 ;
24680 int res2 = 0 ;
24681 PyObject * obj0 = 0 ;
24682 PyObject * obj1 = 0 ;
24683 char * kwnames[] = {
24684 (char *) "dc",(char *) "brush", NULL
24685 };
24686
24687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24688 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24689 if (!SWIG_IsOK(res1)) {
24690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24691 }
24692 if (!argp1) {
24693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24694 }
24695 arg1 = reinterpret_cast< wxDC * >(argp1);
24696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24697 if (!SWIG_IsOK(res2)) {
24698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24699 }
24700 if (!argp2) {
24701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24702 }
24703 arg2 = reinterpret_cast< wxBrush * >(argp2);
24704 {
24705 PyThreadState* __tstate = wxPyBeginAllowThreads();
24706 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24707 wxPyEndAllowThreads(__tstate);
24708 if (PyErr_Occurred()) SWIG_fail;
24709 }
24710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24711 return resultobj;
24712fail:
24713 return NULL;
24714}
24715
24716
24717SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24718 PyObject *resultobj = 0;
24719 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24720 void *argp1 = 0 ;
24721 int res1 = 0 ;
24722 PyObject *swig_obj[1] ;
24723
24724 if (!args) SWIG_fail;
24725 swig_obj[0] = args;
24726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24727 if (!SWIG_IsOK(res1)) {
24728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24729 }
24730 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24731 {
24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24733 delete arg1;
24734
24735 wxPyEndAllowThreads(__tstate);
24736 if (PyErr_Occurred()) SWIG_fail;
24737 }
24738 resultobj = SWIG_Py_Void();
24739 return resultobj;
24740fail:
24741 return NULL;
24742}
24743
24744
24745SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24746 PyObject *obj;
24747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24748 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24749 return SWIG_Py_Void();
24750}
24751
24752SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24753 return SWIG_Python_InitShadowInstance(args);
24754}
24755
24756SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24757 PyObject *resultobj = 0;
24758 wxDC *arg1 = 0 ;
24759 wxRegion *arg2 = 0 ;
24760 wxDCClipper *result = 0 ;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 void *argp2 = 0 ;
24764 int res2 = 0 ;
24765
24766 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24768 if (!SWIG_IsOK(res1)) {
24769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24770 }
24771 if (!argp1) {
24772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24773 }
24774 arg1 = reinterpret_cast< wxDC * >(argp1);
24775 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24776 if (!SWIG_IsOK(res2)) {
24777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24778 }
24779 if (!argp2) {
24780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24781 }
24782 arg2 = reinterpret_cast< wxRegion * >(argp2);
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24790 return resultobj;
24791fail:
24792 return NULL;
24793}
24794
24795
24796SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24797 PyObject *resultobj = 0;
24798 wxDC *arg1 = 0 ;
24799 wxRect *arg2 = 0 ;
24800 wxDCClipper *result = 0 ;
24801 void *argp1 = 0 ;
24802 int res1 = 0 ;
24803 wxRect temp2 ;
24804
24805 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24807 if (!SWIG_IsOK(res1)) {
24808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24809 }
24810 if (!argp1) {
24811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24812 }
24813 arg1 = reinterpret_cast< wxDC * >(argp1);
24814 {
24815 arg2 = &temp2;
24816 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24817 }
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24821 wxPyEndAllowThreads(__tstate);
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24825 return resultobj;
24826fail:
24827 return NULL;
24828}
24829
24830
24831SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24832 PyObject *resultobj = 0;
24833 wxDC *arg1 = 0 ;
24834 int arg2 ;
24835 int arg3 ;
24836 int arg4 ;
24837 int arg5 ;
24838 wxDCClipper *result = 0 ;
24839 void *argp1 = 0 ;
24840 int res1 = 0 ;
24841 int val2 ;
24842 int ecode2 = 0 ;
24843 int val3 ;
24844 int ecode3 = 0 ;
24845 int val4 ;
24846 int ecode4 = 0 ;
24847 int val5 ;
24848 int ecode5 = 0 ;
24849
24850 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24852 if (!SWIG_IsOK(res1)) {
24853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24854 }
24855 if (!argp1) {
24856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24857 }
24858 arg1 = reinterpret_cast< wxDC * >(argp1);
24859 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24860 if (!SWIG_IsOK(ecode2)) {
24861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24862 }
24863 arg2 = static_cast< int >(val2);
24864 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24865 if (!SWIG_IsOK(ecode3)) {
24866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24867 }
24868 arg3 = static_cast< int >(val3);
24869 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24870 if (!SWIG_IsOK(ecode4)) {
24871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24872 }
24873 arg4 = static_cast< int >(val4);
24874 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24875 if (!SWIG_IsOK(ecode5)) {
24876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24877 }
24878 arg5 = static_cast< int >(val5);
24879 {
24880 PyThreadState* __tstate = wxPyBeginAllowThreads();
24881 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24882 wxPyEndAllowThreads(__tstate);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 }
24885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24886 return resultobj;
24887fail:
24888 return NULL;
24889}
24890
24891
24892SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24893 int argc;
24894 PyObject *argv[6];
24895
24896 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24897 --argc;
24898 if (argc == 2) {
24899 int _v = 0;
24900 {
24901 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24902 _v = SWIG_CheckState(res);
24903 }
24904 if (!_v) goto check_1;
24905 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24906 }
24907check_1:
24908
24909 if (argc == 2) {
24910 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24911 }
24912 if (argc == 5) {
24913 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24914 }
24915
24916fail:
24917 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24918 return NULL;
24919}
24920
24921
24922SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24923 PyObject *resultobj = 0;
24924 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24925 void *argp1 = 0 ;
24926 int res1 = 0 ;
24927 PyObject *swig_obj[1] ;
24928
24929 if (!args) SWIG_fail;
24930 swig_obj[0] = args;
24931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24932 if (!SWIG_IsOK(res1)) {
24933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24934 }
24935 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24936 {
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 delete arg1;
24939
24940 wxPyEndAllowThreads(__tstate);
24941 if (PyErr_Occurred()) SWIG_fail;
24942 }
24943 resultobj = SWIG_Py_Void();
24944 return resultobj;
24945fail:
24946 return NULL;
24947}
24948
24949
24950SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24951 PyObject *obj;
24952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24953 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24954 return SWIG_Py_Void();
24955}
24956
24957SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24958 return SWIG_Python_InitShadowInstance(args);
24959}
24960
24f6c4e8
RD
24961SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24962 PyObject *resultobj = 0;
24963 wxScreenDC *result = 0 ;
24964
24965 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24966 {
24967 if (!wxPyCheckForApp()) SWIG_fail;
24968 PyThreadState* __tstate = wxPyBeginAllowThreads();
24969 result = (wxScreenDC *)new wxScreenDC();
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24974 return resultobj;
24975fail:
24976 return NULL;
24977}
24978
24979
24980SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24981 PyObject *resultobj = 0;
24982 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24983 wxWindow *arg2 = (wxWindow *) 0 ;
24984 bool result;
24985 void *argp1 = 0 ;
24986 int res1 = 0 ;
24987 void *argp2 = 0 ;
24988 int res2 = 0 ;
24989 PyObject * obj0 = 0 ;
24990 PyObject * obj1 = 0 ;
24991 char * kwnames[] = {
24992 (char *) "self",(char *) "window", NULL
24993 };
24994
24995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24997 if (!SWIG_IsOK(res1)) {
24998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24999 }
25000 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25001 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25002 if (!SWIG_IsOK(res2)) {
25003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
25004 }
25005 arg2 = reinterpret_cast< wxWindow * >(argp2);
25006 {
25007 PyThreadState* __tstate = wxPyBeginAllowThreads();
25008 result = (bool)(arg1)->StartDrawingOnTop(arg2);
25009 wxPyEndAllowThreads(__tstate);
25010 if (PyErr_Occurred()) SWIG_fail;
25011 }
25012 {
25013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25014 }
25015 return resultobj;
25016fail:
25017 return NULL;
25018}
25019
25020
25021SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25022 PyObject *resultobj = 0;
25023 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25024 wxRect *arg2 = (wxRect *) NULL ;
25025 bool result;
25026 void *argp1 = 0 ;
25027 int res1 = 0 ;
25028 void *argp2 = 0 ;
25029 int res2 = 0 ;
25030 PyObject * obj0 = 0 ;
25031 PyObject * obj1 = 0 ;
25032 char * kwnames[] = {
25033 (char *) "self",(char *) "rect", NULL
25034 };
25035
25036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
25037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25038 if (!SWIG_IsOK(res1)) {
25039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25040 }
25041 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25042 if (obj1) {
25043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
25044 if (!SWIG_IsOK(res2)) {
25045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
25046 }
25047 arg2 = reinterpret_cast< wxRect * >(argp2);
25048 }
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 result = (bool)(arg1)->StartDrawingOnTop(arg2);
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 {
25056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25057 }
25058 return resultobj;
25059fail:
25060 return NULL;
25061}
25062
25063
25064SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25065 PyObject *resultobj = 0;
25066 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25067 bool result;
25068 void *argp1 = 0 ;
25069 int res1 = 0 ;
25070 PyObject *swig_obj[1] ;
25071
25072 if (!args) SWIG_fail;
25073 swig_obj[0] = args;
25074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25075 if (!SWIG_IsOK(res1)) {
25076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25077 }
25078 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25079 {
25080 PyThreadState* __tstate = wxPyBeginAllowThreads();
25081 result = (bool)(arg1)->EndDrawingOnTop();
25082 wxPyEndAllowThreads(__tstate);
25083 if (PyErr_Occurred()) SWIG_fail;
25084 }
25085 {
25086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25087 }
25088 return resultobj;
25089fail:
25090 return NULL;
25091}
25092
25093
25094SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25095 PyObject *obj;
25096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25097 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
25098 return SWIG_Py_Void();
25099}
25100
25101SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25102 return SWIG_Python_InitShadowInstance(args);
25103}
25104
25105SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25106 PyObject *resultobj = 0;
25107 wxWindow *arg1 = (wxWindow *) 0 ;
25108 wxWindowDC *result = 0 ;
25109 void *argp1 = 0 ;
25110 int res1 = 0 ;
25111 PyObject * obj0 = 0 ;
25112 char * kwnames[] = {
25113 (char *) "win", NULL
25114 };
25115
25116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
25117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25120 }
25121 arg1 = reinterpret_cast< wxWindow * >(argp1);
25122 {
25123 if (!wxPyCheckForApp()) SWIG_fail;
25124 PyThreadState* __tstate = wxPyBeginAllowThreads();
25125 result = (wxWindowDC *)new wxWindowDC(arg1);
25126 wxPyEndAllowThreads(__tstate);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
25130 return resultobj;
25131fail:
25132 return NULL;
25133}
25134
25135
25136SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25137 PyObject *obj;
25138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25139 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
25140 return SWIG_Py_Void();
25141}
25142
25143SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25144 return SWIG_Python_InitShadowInstance(args);
25145}
25146
25147SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25148 PyObject *resultobj = 0;
25149 wxWindow *arg1 = (wxWindow *) 0 ;
25150 wxClientDC *result = 0 ;
25151 void *argp1 = 0 ;
25152 int res1 = 0 ;
25153 PyObject * obj0 = 0 ;
25154 char * kwnames[] = {
25155 (char *) "win", NULL
25156 };
25157
25158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
25159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25160 if (!SWIG_IsOK(res1)) {
25161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25162 }
25163 arg1 = reinterpret_cast< wxWindow * >(argp1);
25164 {
25165 if (!wxPyCheckForApp()) SWIG_fail;
25166 PyThreadState* __tstate = wxPyBeginAllowThreads();
25167 result = (wxClientDC *)new wxClientDC(arg1);
25168 wxPyEndAllowThreads(__tstate);
25169 if (PyErr_Occurred()) SWIG_fail;
25170 }
25171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
25172 return resultobj;
25173fail:
25174 return NULL;
25175}
25176
25177
25178SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25179 PyObject *obj;
25180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25181 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
25182 return SWIG_Py_Void();
25183}
25184
25185SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25186 return SWIG_Python_InitShadowInstance(args);
25187}
25188
25189SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25190 PyObject *resultobj = 0;
25191 wxWindow *arg1 = (wxWindow *) 0 ;
25192 wxPaintDC *result = 0 ;
25193 void *argp1 = 0 ;
25194 int res1 = 0 ;
25195 PyObject * obj0 = 0 ;
25196 char * kwnames[] = {
25197 (char *) "win", NULL
25198 };
25199
25200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
25201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25202 if (!SWIG_IsOK(res1)) {
25203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25204 }
25205 arg1 = reinterpret_cast< wxWindow * >(argp1);
25206 {
25207 if (!wxPyCheckForApp()) SWIG_fail;
25208 PyThreadState* __tstate = wxPyBeginAllowThreads();
25209 result = (wxPaintDC *)new wxPaintDC(arg1);
25210 wxPyEndAllowThreads(__tstate);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
25214 return resultobj;
25215fail:
25216 return NULL;
25217}
25218
25219
25220SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25221 PyObject *obj;
25222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25223 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
25224 return SWIG_Py_Void();
25225}
25226
25227SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25228 return SWIG_Python_InitShadowInstance(args);
25229}
25230
26c4d26f
RD
25231SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj = 0;
25233 wxBitmap &arg1_defvalue = wxNullBitmap ;
25234 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25235 wxMemoryDC *result = 0 ;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 PyObject * obj0 = 0 ;
25239 char * kwnames[] = {
25240 (char *) "bitmap", NULL
25241 };
25242
25243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
25244 if (obj0) {
25245 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
25246 if (!SWIG_IsOK(res1)) {
25247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
25248 }
25249 if (!argp1) {
25250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
25251 }
25252 arg1 = reinterpret_cast< wxBitmap * >(argp1);
25253 }
25254 {
25255 if (!wxPyCheckForApp()) SWIG_fail;
25256 PyThreadState* __tstate = wxPyBeginAllowThreads();
25257 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
25258 wxPyEndAllowThreads(__tstate);
25259 if (PyErr_Occurred()) SWIG_fail;
25260 }
25261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
25262 return resultobj;
25263fail:
25264 return NULL;
25265}
25266
25267
25268SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25269 PyObject *resultobj = 0;
25270 wxDC *arg1 = (wxDC *) 0 ;
25271 wxMemoryDC *result = 0 ;
25272 void *argp1 = 0 ;
25273 int res1 = 0 ;
25274 PyObject * obj0 = 0 ;
25275 char * kwnames[] = {
25276 (char *) "oldDC", NULL
25277 };
25278
25279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
25280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25281 if (!SWIG_IsOK(res1)) {
25282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
25283 }
25284 arg1 = reinterpret_cast< wxDC * >(argp1);
25285 {
25286 if (!wxPyCheckForApp()) SWIG_fail;
25287 PyThreadState* __tstate = wxPyBeginAllowThreads();
25288 result = (wxMemoryDC *)new wxMemoryDC(arg1);
25289 wxPyEndAllowThreads(__tstate);
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
25293 return resultobj;
25294fail:
25295 return NULL;
25296}
25297
25298
25299SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25300 PyObject *resultobj = 0;
25301 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25302 wxBitmap *arg2 = 0 ;
25303 void *argp1 = 0 ;
25304 int res1 = 0 ;
25305 void *argp2 = 0 ;
25306 int res2 = 0 ;
25307 PyObject * obj0 = 0 ;
25308 PyObject * obj1 = 0 ;
25309 char * kwnames[] = {
25310 (char *) "self",(char *) "bitmap", NULL
25311 };
25312
25313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
25314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25315 if (!SWIG_IsOK(res1)) {
25316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25317 }
25318 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25320 if (!SWIG_IsOK(res2)) {
25321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25322 }
25323 if (!argp2) {
25324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25325 }
25326 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25327 {
25328 PyThreadState* __tstate = wxPyBeginAllowThreads();
25329 (arg1)->SelectObject(*arg2);
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_Py_Void();
25334 return resultobj;
25335fail:
25336 return NULL;
25337}
25338
25339
25340SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25341 PyObject *resultobj = 0;
25342 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25343 wxBitmap *arg2 = 0 ;
25344 void *argp1 = 0 ;
25345 int res1 = 0 ;
25346 void *argp2 = 0 ;
25347 int res2 = 0 ;
25348 PyObject * obj0 = 0 ;
25349 PyObject * obj1 = 0 ;
25350 char * kwnames[] = {
25351 (char *) "self",(char *) "bmp", NULL
25352 };
25353
25354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25356 if (!SWIG_IsOK(res1)) {
25357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25358 }
25359 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25361 if (!SWIG_IsOK(res2)) {
25362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25363 }
25364 if (!argp2) {
25365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25366 }
25367 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25368 {
25369 PyThreadState* __tstate = wxPyBeginAllowThreads();
25370 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25371 wxPyEndAllowThreads(__tstate);
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 resultobj = SWIG_Py_Void();
25375 return resultobj;
25376fail:
25377 return NULL;
25378}
25379
25380
25381SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25382 PyObject *obj;
25383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25384 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25385 return SWIG_Py_Void();
25386}
25387
25388SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25389 return SWIG_Python_InitShadowInstance(args);
25390}
25391
554f62e9
RD
25392SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25393 PyObject *resultobj = 0;
25394 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 25395 wxBitmap &arg2_defvalue = wxNullBitmap ;
554f62e9
RD
25396 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25397 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25398 wxBufferedDC *result = 0 ;
25399 void *argp1 = 0 ;
25400 int res1 = 0 ;
25401 void *argp2 = 0 ;
25402 int res2 = 0 ;
25403 int val3 ;
25404 int ecode3 = 0 ;
25405
25406 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25408 if (!SWIG_IsOK(res1)) {
25409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25410 }
25411 arg1 = reinterpret_cast< wxDC * >(argp1);
25412 if (swig_obj[1]) {
b6df5cf9 25413 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
554f62e9 25414 if (!SWIG_IsOK(res2)) {
b6df5cf9 25415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25416 }
554f62e9 25417 if (!argp2) {
b6df5cf9 25418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25419 }
554f62e9
RD
25420 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25421 }
25422 if (swig_obj[2]) {
25423 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25424 if (!SWIG_IsOK(ecode3)) {
25425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25426 }
25427 arg3 = static_cast< int >(val3);
25428 }
25429 {
25430 if (!wxPyCheckForApp()) SWIG_fail;
25431 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25432 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
554f62e9
RD
25433 wxPyEndAllowThreads(__tstate);
25434 if (PyErr_Occurred()) SWIG_fail;
25435 }
25436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25437 return resultobj;
25438fail:
25439 return NULL;
25440}
25441
25442
25443SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25444 PyObject *resultobj = 0;
25445 wxDC *arg1 = (wxDC *) 0 ;
25446 wxSize *arg2 = 0 ;
25447 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25448 wxBufferedDC *result = 0 ;
25449 void *argp1 = 0 ;
25450 int res1 = 0 ;
25451 wxSize temp2 ;
25452 int val3 ;
25453 int ecode3 = 0 ;
25454
25455 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25457 if (!SWIG_IsOK(res1)) {
25458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25459 }
25460 arg1 = reinterpret_cast< wxDC * >(argp1);
25461 {
25462 arg2 = &temp2;
25463 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25464 }
25465 if (swig_obj[2]) {
25466 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25467 if (!SWIG_IsOK(ecode3)) {
25468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25469 }
25470 arg3 = static_cast< int >(val3);
25471 }
25472 {
25473 if (!wxPyCheckForApp()) SWIG_fail;
25474 PyThreadState* __tstate = wxPyBeginAllowThreads();
25475 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25476 wxPyEndAllowThreads(__tstate);
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25480 return resultobj;
25481fail:
25482 return NULL;
25483}
25484
25485
25486SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25487 int argc;
8e99bda9 25488 PyObject *argv[4];
554f62e9 25489
8e99bda9 25490 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
25491 --argc;
25492 if ((argc >= 1) && (argc <= 3)) {
25493 int _v = 0;
25494 if (argc > 1) {
25495 {
b6df5cf9
RD
25496 void *vptr = 0;
25497 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
554f62e9
RD
25498 _v = SWIG_CheckState(res);
25499 }
25500 if (!_v) goto check_1;
093d3ff1 25501 }
554f62e9
RD
25502 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25503 }
25504check_1:
25505
25506 if ((argc >= 2) && (argc <= 3)) {
25507 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25508 }
25509
25510fail:
25511 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25512 return NULL;
25513}
25514
25515
25516SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25517 PyObject *resultobj = 0;
25518 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25519 void *argp1 = 0 ;
25520 int res1 = 0 ;
25521 PyObject *swig_obj[1] ;
25522
25523 if (!args) SWIG_fail;
25524 swig_obj[0] = args;
25525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25526 if (!SWIG_IsOK(res1)) {
25527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25528 }
25529 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25530 {
25531 PyThreadState* __tstate = wxPyBeginAllowThreads();
25532 delete arg1;
25533
25534 wxPyEndAllowThreads(__tstate);
25535 if (PyErr_Occurred()) SWIG_fail;
25536 }
25537 resultobj = SWIG_Py_Void();
25538 return resultobj;
25539fail:
25540 return NULL;
25541}
25542
25543
25544SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25545 PyObject *resultobj = 0;
25546 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25547 void *argp1 = 0 ;
25548 int res1 = 0 ;
25549 PyObject *swig_obj[1] ;
25550
25551 if (!args) SWIG_fail;
25552 swig_obj[0] = args;
25553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25554 if (!SWIG_IsOK(res1)) {
25555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25556 }
25557 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 (arg1)->UnMask();
25561 wxPyEndAllowThreads(__tstate);
25562 if (PyErr_Occurred()) SWIG_fail;
25563 }
25564 resultobj = SWIG_Py_Void();
25565 return resultobj;
25566fail:
25567 return NULL;
25568}
25569
25570
b6df5cf9
RD
25571SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25572 PyObject *resultobj = 0;
25573 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25574 int arg2 ;
25575 void *argp1 = 0 ;
25576 int res1 = 0 ;
25577 int val2 ;
25578 int ecode2 = 0 ;
25579 PyObject * obj0 = 0 ;
25580 PyObject * obj1 = 0 ;
25581 char * kwnames[] = {
25582 (char *) "self",(char *) "style", NULL
25583 };
25584
25585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25587 if (!SWIG_IsOK(res1)) {
25588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25589 }
25590 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25591 ecode2 = SWIG_AsVal_int(obj1, &val2);
25592 if (!SWIG_IsOK(ecode2)) {
25593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25594 }
25595 arg2 = static_cast< int >(val2);
25596 {
25597 PyThreadState* __tstate = wxPyBeginAllowThreads();
25598 (arg1)->SetStyle(arg2);
25599 wxPyEndAllowThreads(__tstate);
25600 if (PyErr_Occurred()) SWIG_fail;
25601 }
25602 resultobj = SWIG_Py_Void();
25603 return resultobj;
25604fail:
25605 return NULL;
25606}
25607
25608
25609SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25610 PyObject *resultobj = 0;
25611 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25612 int result;
25613 void *argp1 = 0 ;
25614 int res1 = 0 ;
25615 PyObject *swig_obj[1] ;
25616
25617 if (!args) SWIG_fail;
25618 swig_obj[0] = args;
25619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25620 if (!SWIG_IsOK(res1)) {
25621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25622 }
25623 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25627 wxPyEndAllowThreads(__tstate);
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 resultobj = SWIG_From_int(static_cast< int >(result));
25631 return resultobj;
25632fail:
25633 return NULL;
25634}
25635
25636
554f62e9
RD
25637SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25638 PyObject *obj;
25639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25640 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25641 return SWIG_Py_Void();
25642}
25643
25644SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25645 return SWIG_Python_InitShadowInstance(args);
25646}
25647
25648SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25649 PyObject *resultobj = 0;
25650 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 25651 wxBitmap &arg2_defvalue = wxNullBitmap ;
554f62e9
RD
25652 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25653 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25654 wxBufferedPaintDC *result = 0 ;
25655 void *argp1 = 0 ;
25656 int res1 = 0 ;
25657 void *argp2 = 0 ;
25658 int res2 = 0 ;
25659 int val3 ;
25660 int ecode3 = 0 ;
25661 PyObject * obj0 = 0 ;
25662 PyObject * obj1 = 0 ;
25663 PyObject * obj2 = 0 ;
25664 char * kwnames[] = {
25665 (char *) "window",(char *) "buffer",(char *) "style", NULL
25666 };
25667
25668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25670 if (!SWIG_IsOK(res1)) {
25671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25672 }
25673 arg1 = reinterpret_cast< wxWindow * >(argp1);
25674 if (obj1) {
b6df5cf9 25675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
554f62e9 25676 if (!SWIG_IsOK(res2)) {
b6df5cf9 25677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25678 }
554f62e9 25679 if (!argp2) {
b6df5cf9 25680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 25681 }
554f62e9
RD
25682 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25683 }
25684 if (obj2) {
25685 ecode3 = SWIG_AsVal_int(obj2, &val3);
25686 if (!SWIG_IsOK(ecode3)) {
25687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25688 }
25689 arg3 = static_cast< int >(val3);
25690 }
25691 {
25692 if (!wxPyCheckForApp()) SWIG_fail;
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 25694 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
554f62e9
RD
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25699 return resultobj;
25700fail:
25701 return NULL;
25702}
25703
25704
25705SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25706 PyObject *obj;
25707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25708 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25709 return SWIG_Py_Void();
25710}
25711
25712SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25713 return SWIG_Python_InitShadowInstance(args);
25714}
25715
24f6c4e8 25716SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25717 PyObject *resultobj = 0;
25718 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25719 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
25720 void *argp1 = 0 ;
25721 int res1 = 0 ;
25722 PyObject * obj0 = 0 ;
25723 char * kwnames[] = {
25724 (char *) "win", NULL
25725 };
25726
24f6c4e8 25727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
25728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25729 if (!SWIG_IsOK(res1)) {
24f6c4e8 25730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
25731 }
25732 arg1 = reinterpret_cast< wxWindow * >(argp1);
25733 {
554f62e9 25734 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25735 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
25736 wxPyEndAllowThreads(__tstate);
25737 if (PyErr_Occurred()) SWIG_fail;
25738 }
24f6c4e8 25739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
25740 return resultobj;
25741fail:
25742 return NULL;
25743}
25744
25745
24f6c4e8 25746SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25747 PyObject *obj;
25748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25749 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
25750 return SWIG_Py_Void();
25751}
25752
24f6c4e8 25753SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25754 return SWIG_Python_InitShadowInstance(args);
25755}
25756
8e99bda9
RD
25757SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25758 PyObject *resultobj = 0;
25759 wxWindow *arg1 = (wxWindow *) 0 ;
25760 wxDC *result = 0 ;
25761 void *argp1 = 0 ;
25762 int res1 = 0 ;
25763 PyObject * obj0 = 0 ;
25764 char * kwnames[] = {
25765 (char *) "window", NULL
25766 };
25767
25768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25770 if (!SWIG_IsOK(res1)) {
25771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25772 }
25773 arg1 = reinterpret_cast< wxWindow * >(argp1);
25774 {
25775 PyThreadState* __tstate = wxPyBeginAllowThreads();
25776 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25777 wxPyEndAllowThreads(__tstate);
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 {
25781 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25782 }
25783 return resultobj;
25784fail:
25785 return NULL;
25786}
25787
25788
554f62e9
RD
25789SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25790 PyObject *resultobj = 0;
25791 wxDC *arg1 = 0 ;
25792 bool arg2 ;
25793 wxMirrorDC *result = 0 ;
25794 void *argp1 = 0 ;
25795 int res1 = 0 ;
25796 bool val2 ;
25797 int ecode2 = 0 ;
25798 PyObject * obj0 = 0 ;
25799 PyObject * obj1 = 0 ;
25800 char * kwnames[] = {
25801 (char *) "dc",(char *) "mirror", NULL
25802 };
25803
25804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25805 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25806 if (!SWIG_IsOK(res1)) {
25807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25808 }
25809 if (!argp1) {
25810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25811 }
25812 arg1 = reinterpret_cast< wxDC * >(argp1);
25813 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25814 if (!SWIG_IsOK(ecode2)) {
25815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25816 }
25817 arg2 = static_cast< bool >(val2);
25818 {
25819 if (!wxPyCheckForApp()) SWIG_fail;
25820 PyThreadState* __tstate = wxPyBeginAllowThreads();
25821 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25822 wxPyEndAllowThreads(__tstate);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25826 return resultobj;
25827fail:
25828 return NULL;
25829}
25830
25831
25832SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25833 PyObject *obj;
25834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25835 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25836 return SWIG_Py_Void();
25837}
25838
25839SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25840 return SWIG_Python_InitShadowInstance(args);
25841}
25842
25843SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25844 PyObject *resultobj = 0;
25845 wxPrintData *arg1 = 0 ;
25846 wxPostScriptDC *result = 0 ;
25847 void *argp1 = 0 ;
25848 int res1 = 0 ;
25849 PyObject * obj0 = 0 ;
25850 char * kwnames[] = {
25851 (char *) "printData", NULL
25852 };
25853
25854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25855 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25856 if (!SWIG_IsOK(res1)) {
25857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25858 }
25859 if (!argp1) {
25860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25861 }
25862 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25863 {
25864 if (!wxPyCheckForApp()) SWIG_fail;
25865 PyThreadState* __tstate = wxPyBeginAllowThreads();
25866 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25867 wxPyEndAllowThreads(__tstate);
25868 if (PyErr_Occurred()) SWIG_fail;
25869 }
25870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25871 return resultobj;
25872fail:
25873 return NULL;
25874}
25875
25876
25877SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25878 PyObject *resultobj = 0;
25879 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25880 wxPrintData *result = 0 ;
25881 void *argp1 = 0 ;
25882 int res1 = 0 ;
25883 PyObject *swig_obj[1] ;
25884
25885 if (!args) SWIG_fail;
25886 swig_obj[0] = args;
25887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25888 if (!SWIG_IsOK(res1)) {
25889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25890 }
25891 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25892 {
25893 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25894 {
554f62e9
RD
25895 wxPrintData &_result_ref = (arg1)->GetPrintData();
25896 result = (wxPrintData *) &_result_ref;
093d3ff1 25897 }
554f62e9
RD
25898 wxPyEndAllowThreads(__tstate);
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25902 return resultobj;
25903fail:
25904 return NULL;
25905}
25906
25907
25908SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25909 PyObject *resultobj = 0;
25910 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25911 wxPrintData *arg2 = 0 ;
25912 void *argp1 = 0 ;
25913 int res1 = 0 ;
25914 void *argp2 = 0 ;
25915 int res2 = 0 ;
25916 PyObject * obj0 = 0 ;
25917 PyObject * obj1 = 0 ;
25918 char * kwnames[] = {
25919 (char *) "self",(char *) "data", NULL
25920 };
25921
25922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25924 if (!SWIG_IsOK(res1)) {
25925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25926 }
25927 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25929 if (!SWIG_IsOK(res2)) {
25930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25931 }
25932 if (!argp2) {
25933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25934 }
25935 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25936 {
25937 PyThreadState* __tstate = wxPyBeginAllowThreads();
25938 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25939 wxPyEndAllowThreads(__tstate);
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 resultobj = SWIG_Py_Void();
25943 return resultobj;
25944fail:
25945 return NULL;
25946}
25947
25948
25949SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25950 PyObject *resultobj = 0;
25951 int arg1 ;
25952 int val1 ;
25953 int ecode1 = 0 ;
25954 PyObject * obj0 = 0 ;
25955 char * kwnames[] = {
25956 (char *) "ppi", NULL
25957 };
25958
25959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25960 ecode1 = SWIG_AsVal_int(obj0, &val1);
25961 if (!SWIG_IsOK(ecode1)) {
25962 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25963 }
25964 arg1 = static_cast< int >(val1);
25965 {
25966 PyThreadState* __tstate = wxPyBeginAllowThreads();
25967 wxPostScriptDC::SetResolution(arg1);
25968 wxPyEndAllowThreads(__tstate);
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 resultobj = SWIG_Py_Void();
25972 return resultobj;
25973fail:
25974 return NULL;
25975}
25976
25977
25978SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25979 PyObject *resultobj = 0;
25980 int result;
25981
25982 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25983 {
25984 PyThreadState* __tstate = wxPyBeginAllowThreads();
25985 result = (int)wxPostScriptDC::GetResolution();
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 resultobj = SWIG_From_int(static_cast< int >(result));
25990 return resultobj;
25991fail:
25992 return NULL;
25993}
25994
25995
25996SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25997 PyObject *obj;
25998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25999 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
26000 return SWIG_Py_Void();
26001}
26002
26003SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26004 return SWIG_Python_InitShadowInstance(args);
26005}
26006
26007SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26008 PyObject *resultobj = 0;
26009 wxString const &arg1_defvalue = wxPyEmptyString ;
26010 wxString *arg1 = (wxString *) &arg1_defvalue ;
26011 wxMetaFile *result = 0 ;
26012 bool temp1 = false ;
26013 PyObject * obj0 = 0 ;
26014 char * kwnames[] = {
26015 (char *) "filename", NULL
26016 };
26017
26018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
26019 if (obj0) {
093d3ff1 26020 {
554f62e9
RD
26021 arg1 = wxString_in_helper(obj0);
26022 if (arg1 == NULL) SWIG_fail;
26023 temp1 = true;
093d3ff1 26024 }
554f62e9
RD
26025 }
26026 {
26027 if (!wxPyCheckForApp()) SWIG_fail;
26028 PyThreadState* __tstate = wxPyBeginAllowThreads();
26029 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
26030 wxPyEndAllowThreads(__tstate);
26031 if (PyErr_Occurred()) SWIG_fail;
26032 }
26033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
26034 {
26035 if (temp1)
26036 delete arg1;
26037 }
26038 return resultobj;
26039fail:
26040 {
26041 if (temp1)
26042 delete arg1;
26043 }
26044 return NULL;
26045}
26046
26047
26048SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26049 PyObject *resultobj = 0;
26050 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26051 void *argp1 = 0 ;
26052 int res1 = 0 ;
26053 PyObject *swig_obj[1] ;
26054
26055 if (!args) SWIG_fail;
26056 swig_obj[0] = args;
26057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
26058 if (!SWIG_IsOK(res1)) {
26059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26060 }
26061 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26062 {
26063 PyThreadState* __tstate = wxPyBeginAllowThreads();
26064 delete arg1;
26065
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_Py_Void();
26070 return resultobj;
26071fail:
26072 return NULL;
26073}
26074
26075
b39fe951 26076SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
26077 PyObject *resultobj = 0;
26078 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26079 bool result;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 PyObject *swig_obj[1] ;
26083
26084 if (!args) SWIG_fail;
26085 swig_obj[0] = args;
26086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26087 if (!SWIG_IsOK(res1)) {
b39fe951 26088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
26089 }
26090 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26091 {
26092 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 26093 result = (bool)(arg1)->IsOk();
554f62e9
RD
26094 wxPyEndAllowThreads(__tstate);
26095 if (PyErr_Occurred()) SWIG_fail;
26096 }
26097 {
26098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26099 }
26100 return resultobj;
26101fail:
26102 return NULL;
26103}
26104
26105
26106SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj = 0;
26108 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26109 int arg2 = (int) 0 ;
26110 int arg3 = (int) 0 ;
26111 bool result;
26112 void *argp1 = 0 ;
26113 int res1 = 0 ;
26114 int val2 ;
26115 int ecode2 = 0 ;
26116 int val3 ;
26117 int ecode3 = 0 ;
26118 PyObject * obj0 = 0 ;
26119 PyObject * obj1 = 0 ;
26120 PyObject * obj2 = 0 ;
26121 char * kwnames[] = {
26122 (char *) "self",(char *) "width",(char *) "height", NULL
26123 };
26124
26125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26127 if (!SWIG_IsOK(res1)) {
26128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26129 }
26130 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26131 if (obj1) {
26132 ecode2 = SWIG_AsVal_int(obj1, &val2);
26133 if (!SWIG_IsOK(ecode2)) {
26134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
26135 }
26136 arg2 = static_cast< int >(val2);
26137 }
26138 if (obj2) {
26139 ecode3 = SWIG_AsVal_int(obj2, &val3);
26140 if (!SWIG_IsOK(ecode3)) {
26141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
26142 }
26143 arg3 = static_cast< int >(val3);
26144 }
26145 {
26146 PyThreadState* __tstate = wxPyBeginAllowThreads();
26147 result = (bool)(arg1)->SetClipboard(arg2,arg3);
26148 wxPyEndAllowThreads(__tstate);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 {
26152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26153 }
26154 return resultobj;
26155fail:
26156 return NULL;
26157}
26158
26159
26160SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26161 PyObject *resultobj = 0;
26162 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26163 wxSize result;
26164 void *argp1 = 0 ;
26165 int res1 = 0 ;
26166 PyObject *swig_obj[1] ;
26167
26168 if (!args) SWIG_fail;
26169 swig_obj[0] = args;
26170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26171 if (!SWIG_IsOK(res1)) {
26172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26173 }
26174 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26175 {
26176 PyThreadState* __tstate = wxPyBeginAllowThreads();
26177 result = (arg1)->GetSize();
26178 wxPyEndAllowThreads(__tstate);
26179 if (PyErr_Occurred()) SWIG_fail;
26180 }
26181 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
26182 return resultobj;
26183fail:
26184 return NULL;
26185}
26186
26187
26188SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26189 PyObject *resultobj = 0;
26190 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26191 int result;
26192 void *argp1 = 0 ;
26193 int res1 = 0 ;
26194 PyObject *swig_obj[1] ;
26195
26196 if (!args) SWIG_fail;
26197 swig_obj[0] = args;
26198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26199 if (!SWIG_IsOK(res1)) {
26200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26201 }
26202 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26203 {
26204 PyThreadState* __tstate = wxPyBeginAllowThreads();
26205 result = (int)(arg1)->GetWidth();
26206 wxPyEndAllowThreads(__tstate);
26207 if (PyErr_Occurred()) SWIG_fail;
26208 }
26209 resultobj = SWIG_From_int(static_cast< int >(result));
26210 return resultobj;
26211fail:
26212 return NULL;
26213}
26214
26215
26216SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26217 PyObject *resultobj = 0;
26218 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26219 int result;
26220 void *argp1 = 0 ;
26221 int res1 = 0 ;
26222 PyObject *swig_obj[1] ;
26223
26224 if (!args) SWIG_fail;
26225 swig_obj[0] = args;
26226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26227 if (!SWIG_IsOK(res1)) {
26228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26229 }
26230 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26231 {
26232 PyThreadState* __tstate = wxPyBeginAllowThreads();
26233 result = (int)(arg1)->GetHeight();
26234 wxPyEndAllowThreads(__tstate);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
26237 resultobj = SWIG_From_int(static_cast< int >(result));
26238 return resultobj;
26239fail:
26240 return NULL;
26241}
26242
26243
26244SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26245 PyObject *resultobj = 0;
26246 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26247 wxString *result = 0 ;
26248 void *argp1 = 0 ;
26249 int res1 = 0 ;
26250 PyObject *swig_obj[1] ;
26251
26252 if (!args) SWIG_fail;
26253 swig_obj[0] = args;
26254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26255 if (!SWIG_IsOK(res1)) {
26256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
26257 }
26258 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26259 {
26260 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 26261 {
554f62e9
RD
26262 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
26263 result = (wxString *) &_result_ref;
e2950dbb 26264 }
554f62e9
RD
26265 wxPyEndAllowThreads(__tstate);
26266 if (PyErr_Occurred()) SWIG_fail;
26267 }
26268 {
26269#if wxUSE_UNICODE
26270 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26271#else
26272 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26273#endif
26274 }
26275 return resultobj;
26276fail:
26277 return NULL;
26278}
26279
26280
26281SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26282 PyObject *obj;
26283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26284 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
26285 return SWIG_Py_Void();
26286}
26287
26288SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26289 return SWIG_Python_InitShadowInstance(args);
26290}
26291
26292SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26293 PyObject *resultobj = 0;
26294 wxString const &arg1_defvalue = wxPyEmptyString ;
26295 wxString *arg1 = (wxString *) &arg1_defvalue ;
26296 int arg2 = (int) 0 ;
26297 int arg3 = (int) 0 ;
26298 wxString const &arg4_defvalue = wxPyEmptyString ;
26299 wxString *arg4 = (wxString *) &arg4_defvalue ;
26300 wxMetaFileDC *result = 0 ;
26301 bool temp1 = false ;
26302 int val2 ;
26303 int ecode2 = 0 ;
26304 int val3 ;
26305 int ecode3 = 0 ;
26306 bool temp4 = false ;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 PyObject * obj2 = 0 ;
26310 PyObject * obj3 = 0 ;
26311 char * kwnames[] = {
26312 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
26313 };
26314
26315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26316 if (obj0) {
e2950dbb 26317 {
554f62e9
RD
26318 arg1 = wxString_in_helper(obj0);
26319 if (arg1 == NULL) SWIG_fail;
26320 temp1 = true;
e2950dbb 26321 }
554f62e9
RD
26322 }
26323 if (obj1) {
26324 ecode2 = SWIG_AsVal_int(obj1, &val2);
26325 if (!SWIG_IsOK(ecode2)) {
26326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26327 }
26328 arg2 = static_cast< int >(val2);
26329 }
26330 if (obj2) {
26331 ecode3 = SWIG_AsVal_int(obj2, &val3);
26332 if (!SWIG_IsOK(ecode3)) {
26333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26334 }
26335 arg3 = static_cast< int >(val3);
26336 }
26337 if (obj3) {
093d3ff1 26338 {
554f62e9
RD
26339 arg4 = wxString_in_helper(obj3);
26340 if (arg4 == NULL) SWIG_fail;
26341 temp4 = true;
093d3ff1 26342 }
554f62e9
RD
26343 }
26344 {
26345 if (!wxPyCheckForApp()) SWIG_fail;
26346 PyThreadState* __tstate = wxPyBeginAllowThreads();
26347 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26348 wxPyEndAllowThreads(__tstate);
26349 if (PyErr_Occurred()) SWIG_fail;
26350 }
26351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26352 {
26353 if (temp1)
26354 delete arg1;
26355 }
26356 {
26357 if (temp4)
26358 delete arg4;
26359 }
26360 return resultobj;
26361fail:
26362 {
26363 if (temp1)
26364 delete arg1;
26365 }
26366 {
26367 if (temp4)
26368 delete arg4;
26369 }
26370 return NULL;
26371}
26372
26373
26374SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26375 PyObject *resultobj = 0;
26376 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26377 wxMetaFile *result = 0 ;
26378 void *argp1 = 0 ;
26379 int res1 = 0 ;
26380 PyObject *swig_obj[1] ;
26381
26382 if (!args) SWIG_fail;
26383 swig_obj[0] = args;
26384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26385 if (!SWIG_IsOK(res1)) {
26386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26387 }
26388 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26389 {
26390 PyThreadState* __tstate = wxPyBeginAllowThreads();
26391 result = (wxMetaFile *)(arg1)->Close();
26392 wxPyEndAllowThreads(__tstate);
26393 if (PyErr_Occurred()) SWIG_fail;
26394 }
26395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26396 return resultobj;
26397fail:
26398 return NULL;
26399}
26400
26401
26402SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26403 PyObject *obj;
26404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26405 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26406 return SWIG_Py_Void();
26407}
26408
26409SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26410 return SWIG_Python_InitShadowInstance(args);
26411}
26412
26413SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26414 PyObject *resultobj = 0;
26415 wxPrintData *arg1 = 0 ;
26416 wxPrinterDC *result = 0 ;
26417 void *argp1 = 0 ;
26418 int res1 = 0 ;
26419 PyObject * obj0 = 0 ;
26420 char * kwnames[] = {
26421 (char *) "printData", NULL
26422 };
26423
26424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26425 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26426 if (!SWIG_IsOK(res1)) {
26427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26428 }
26429 if (!argp1) {
26430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26431 }
26432 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26433 {
26434 if (!wxPyCheckForApp()) SWIG_fail;
26435 PyThreadState* __tstate = wxPyBeginAllowThreads();
26436 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26441 return resultobj;
26442fail:
26443 return NULL;
26444}
26445
26446
26447SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26448 PyObject *obj;
26449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26450 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26451 return SWIG_Py_Void();
26452}
26453
26454SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26455 return SWIG_Python_InitShadowInstance(args);
26456}
26457
70d7cb34
RD
26458SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26459 PyObject *resultobj = 0;
26460 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26461 wxGraphicsObject *result = 0 ;
26462 void *argp1 = 0 ;
26463 int res1 = 0 ;
26464 PyObject * obj0 = 0 ;
26465 char * kwnames[] = {
26466 (char *) "renderer", NULL
26467 };
26468
26469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26470 if (obj0) {
26471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26472 if (!SWIG_IsOK(res1)) {
26473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26474 }
26475 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26476 }
26477 {
26478 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26482 return resultobj;
26483fail:
26484 return NULL;
26485}
26486
26487
26488SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26489 PyObject *resultobj = 0;
26490 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26491 void *argp1 = 0 ;
26492 int res1 = 0 ;
26493 PyObject *swig_obj[1] ;
26494
26495 if (!args) SWIG_fail;
26496 swig_obj[0] = args;
26497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26498 if (!SWIG_IsOK(res1)) {
26499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26500 }
26501 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26502 {
26503 delete arg1;
26504
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_Py_Void();
26508 return resultobj;
26509fail:
26510 return NULL;
26511}
26512
26513
26514SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26515 PyObject *resultobj = 0;
26516 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26517 bool result;
26518 void *argp1 = 0 ;
26519 int res1 = 0 ;
26520 PyObject *swig_obj[1] ;
26521
26522 if (!args) SWIG_fail;
26523 swig_obj[0] = args;
26524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26525 if (!SWIG_IsOK(res1)) {
26526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26527 }
26528 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26529 {
26530 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26531 if (PyErr_Occurred()) SWIG_fail;
26532 }
26533 {
26534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26535 }
26536 return resultobj;
26537fail:
26538 return NULL;
26539}
26540
26541
26542SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26543 PyObject *resultobj = 0;
26544 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26545 wxGraphicsRenderer *result = 0 ;
26546 void *argp1 = 0 ;
26547 int res1 = 0 ;
26548 PyObject *swig_obj[1] ;
26549
26550 if (!args) SWIG_fail;
26551 swig_obj[0] = args;
26552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26553 if (!SWIG_IsOK(res1)) {
26554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26555 }
26556 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26557 {
26558 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26562 return resultobj;
26563fail:
26564 return NULL;
26565}
26566
26567
26568SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26569 PyObject *obj;
26570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26571 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26572 return SWIG_Py_Void();
26573}
26574
26575SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26576 return SWIG_Python_InitShadowInstance(args);
26577}
26578
26579SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26580 PyObject *resultobj = 0;
26581 wxGraphicsPen *result = 0 ;
26582
26583 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26584 {
26585 result = (wxGraphicsPen *)new wxGraphicsPen();
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26589 return resultobj;
26590fail:
26591 return NULL;
26592}
26593
26594
26595SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26596 PyObject *resultobj = 0;
26597 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26598 void *argp1 = 0 ;
26599 int res1 = 0 ;
26600 PyObject *swig_obj[1] ;
26601
26602 if (!args) SWIG_fail;
26603 swig_obj[0] = args;
26604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26605 if (!SWIG_IsOK(res1)) {
26606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26607 }
26608 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26609 {
26610 delete arg1;
26611
26612 if (PyErr_Occurred()) SWIG_fail;
26613 }
26614 resultobj = SWIG_Py_Void();
26615 return resultobj;
26616fail:
26617 return NULL;
26618}
26619
26620
26621SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26622 PyObject *obj;
26623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26624 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26625 return SWIG_Py_Void();
26626}
26627
26628SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26629 return SWIG_Python_InitShadowInstance(args);
26630}
26631
26632SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26633 PyObject *resultobj = 0;
26634 wxGraphicsBrush *result = 0 ;
26635
26636 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26637 {
26638 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26639 if (PyErr_Occurred()) SWIG_fail;
26640 }
26641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26642 return resultobj;
26643fail:
26644 return NULL;
26645}
26646
26647
26648SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26649 PyObject *resultobj = 0;
26650 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26651 void *argp1 = 0 ;
26652 int res1 = 0 ;
26653 PyObject *swig_obj[1] ;
26654
26655 if (!args) SWIG_fail;
26656 swig_obj[0] = args;
26657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26658 if (!SWIG_IsOK(res1)) {
26659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26660 }
26661 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26662 {
26663 delete arg1;
26664
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
26667 resultobj = SWIG_Py_Void();
26668 return resultobj;
26669fail:
26670 return NULL;
26671}
26672
26673
26674SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26675 PyObject *obj;
26676 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26677 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26678 return SWIG_Py_Void();
26679}
26680
26681SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26682 return SWIG_Python_InitShadowInstance(args);
26683}
26684
26685SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26686 PyObject *resultobj = 0;
26687 wxGraphicsFont *result = 0 ;
26688
26689 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26690 {
26691 result = (wxGraphicsFont *)new wxGraphicsFont();
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
26694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26695 return resultobj;
26696fail:
26697 return NULL;
26698}
26699
26700
26701SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26702 PyObject *resultobj = 0;
26703 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26704 void *argp1 = 0 ;
26705 int res1 = 0 ;
26706 PyObject *swig_obj[1] ;
26707
26708 if (!args) SWIG_fail;
26709 swig_obj[0] = args;
26710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26711 if (!SWIG_IsOK(res1)) {
26712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26713 }
26714 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26715 {
26716 delete arg1;
26717
26718 if (PyErr_Occurred()) SWIG_fail;
26719 }
26720 resultobj = SWIG_Py_Void();
26721 return resultobj;
26722fail:
26723 return NULL;
26724}
26725
26726
26727SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26728 PyObject *obj;
26729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26730 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26731 return SWIG_Py_Void();
26732}
26733
26734SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26735 return SWIG_Python_InitShadowInstance(args);
26736}
26737
5c8c7dd3 26738SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26739 PyObject *resultobj = 0;
5c8c7dd3 26740 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26741 void *argp1 = 0 ;
26742 int res1 = 0 ;
26743 PyObject *swig_obj[1] ;
26744
26745 if (!args) SWIG_fail;
26746 swig_obj[0] = args;
5c8c7dd3 26747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
554f62e9 26748 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26750 }
5c8c7dd3 26751 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26752 {
554f62e9
RD
26753 delete arg1;
26754
554f62e9
RD
26755 if (PyErr_Occurred()) SWIG_fail;
26756 }
26757 resultobj = SWIG_Py_Void();
26758 return resultobj;
26759fail:
26760 return NULL;
26761}
26762
26763
5c8c7dd3 26764SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26765 PyObject *resultobj = 0;
5c8c7dd3
RD
26766 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26767 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26768 void *argp1 = 0 ;
26769 int res1 = 0 ;
5c8c7dd3
RD
26770 void *argp2 = 0 ;
26771 int res2 = 0 ;
26772 PyObject * obj0 = 0 ;
26773 PyObject * obj1 = 0 ;
26774 char * kwnames[] = {
26775 (char *) "self",(char *) "t", NULL
26776 };
70d7cb34 26777
5c8c7dd3
RD
26778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26780 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26782 }
5c8c7dd3
RD
26783 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26785 if (!SWIG_IsOK(res2)) {
26786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26787 }
26788 if (!argp2) {
26789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26790 }
26791 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26792 {
5c8c7dd3 26793 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
5c8c7dd3 26796 resultobj = SWIG_Py_Void();
70d7cb34
RD
26797 return resultobj;
26798fail:
26799 return NULL;
26800}
26801
26802
5c8c7dd3 26803SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26804 PyObject *resultobj = 0;
5c8c7dd3
RD
26805 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26806 wxDouble arg2 = (wxDouble) 1.0 ;
26807 wxDouble arg3 = (wxDouble) 0.0 ;
26808 wxDouble arg4 = (wxDouble) 0.0 ;
26809 wxDouble arg5 = (wxDouble) 1.0 ;
26810 wxDouble arg6 = (wxDouble) 0.0 ;
26811 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26812 void *argp1 = 0 ;
26813 int res1 = 0 ;
5c8c7dd3
RD
26814 double val2 ;
26815 int ecode2 = 0 ;
26816 double val3 ;
26817 int ecode3 = 0 ;
26818 double val4 ;
26819 int ecode4 = 0 ;
26820 double val5 ;
26821 int ecode5 = 0 ;
26822 double val6 ;
26823 int ecode6 = 0 ;
26824 double val7 ;
26825 int ecode7 = 0 ;
26826 PyObject * obj0 = 0 ;
26827 PyObject * obj1 = 0 ;
26828 PyObject * obj2 = 0 ;
26829 PyObject * obj3 = 0 ;
26830 PyObject * obj4 = 0 ;
26831 PyObject * obj5 = 0 ;
26832 PyObject * obj6 = 0 ;
26833 char * kwnames[] = {
26834 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26835 };
70d7cb34 26836
5c8c7dd3
RD
26837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26839 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26841 }
5c8c7dd3
RD
26842 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26843 if (obj1) {
26844 ecode2 = SWIG_AsVal_double(obj1, &val2);
26845 if (!SWIG_IsOK(ecode2)) {
26846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26847 }
26848 arg2 = static_cast< wxDouble >(val2);
26849 }
26850 if (obj2) {
26851 ecode3 = SWIG_AsVal_double(obj2, &val3);
26852 if (!SWIG_IsOK(ecode3)) {
26853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26854 }
26855 arg3 = static_cast< wxDouble >(val3);
26856 }
26857 if (obj3) {
26858 ecode4 = SWIG_AsVal_double(obj3, &val4);
26859 if (!SWIG_IsOK(ecode4)) {
26860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26861 }
26862 arg4 = static_cast< wxDouble >(val4);
26863 }
26864 if (obj4) {
26865 ecode5 = SWIG_AsVal_double(obj4, &val5);
26866 if (!SWIG_IsOK(ecode5)) {
26867 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26868 }
26869 arg5 = static_cast< wxDouble >(val5);
26870 }
26871 if (obj5) {
26872 ecode6 = SWIG_AsVal_double(obj5, &val6);
26873 if (!SWIG_IsOK(ecode6)) {
26874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26875 }
26876 arg6 = static_cast< wxDouble >(val6);
26877 }
26878 if (obj6) {
26879 ecode7 = SWIG_AsVal_double(obj6, &val7);
26880 if (!SWIG_IsOK(ecode7)) {
26881 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26882 }
26883 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26884 }
26885 {
5c8c7dd3 26886 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26887 if (PyErr_Occurred()) SWIG_fail;
26888 }
26889 resultobj = SWIG_Py_Void();
26890 return resultobj;
26891fail:
26892 return NULL;
26893}
26894
26895
248802d0
RD
26896SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26897 PyObject *resultobj = 0;
26898 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26899 wxDouble *arg2 = (wxDouble *) 0 ;
26900 wxDouble *arg3 = (wxDouble *) 0 ;
26901 wxDouble *arg4 = (wxDouble *) 0 ;
26902 wxDouble *arg5 = (wxDouble *) 0 ;
26903 wxDouble *arg6 = (wxDouble *) 0 ;
26904 wxDouble *arg7 = (wxDouble *) 0 ;
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 wxDouble temp2 ;
26908 int res2 = SWIG_TMPOBJ ;
26909 wxDouble temp3 ;
26910 int res3 = SWIG_TMPOBJ ;
26911 wxDouble temp4 ;
26912 int res4 = SWIG_TMPOBJ ;
26913 wxDouble temp5 ;
26914 int res5 = SWIG_TMPOBJ ;
26915 wxDouble temp6 ;
26916 int res6 = SWIG_TMPOBJ ;
26917 wxDouble temp7 ;
26918 int res7 = SWIG_TMPOBJ ;
26919 PyObject *swig_obj[1] ;
26920
26921 arg2 = &temp2;
26922 arg3 = &temp3;
26923 arg4 = &temp4;
26924 arg5 = &temp5;
26925 arg6 = &temp6;
26926 arg7 = &temp7;
26927 if (!args) SWIG_fail;
26928 swig_obj[0] = args;
26929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26930 if (!SWIG_IsOK(res1)) {
26931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26932 }
26933 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26934 {
26935 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26936 if (PyErr_Occurred()) SWIG_fail;
26937 }
26938 resultobj = SWIG_Py_Void();
26939 if (SWIG_IsTmpObj(res2)) {
26940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26941 } else {
26942 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26944 }
26945 if (SWIG_IsTmpObj(res3)) {
26946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26947 } else {
26948 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26950 }
26951 if (SWIG_IsTmpObj(res4)) {
26952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26953 } else {
26954 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26956 }
26957 if (SWIG_IsTmpObj(res5)) {
26958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26959 } else {
26960 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26962 }
26963 if (SWIG_IsTmpObj(res6)) {
26964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26965 } else {
26966 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26968 }
26969 if (SWIG_IsTmpObj(res7)) {
26970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26971 } else {
26972 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26974 }
26975 return resultobj;
26976fail:
26977 return NULL;
26978}
26979
26980
5c8c7dd3 26981SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26982 PyObject *resultobj = 0;
5c8c7dd3 26983 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26984 void *argp1 = 0 ;
26985 int res1 = 0 ;
5c8c7dd3 26986 PyObject *swig_obj[1] ;
554f62e9 26987
5c8c7dd3
RD
26988 if (!args) SWIG_fail;
26989 swig_obj[0] = args;
26990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26991 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26993 }
5c8c7dd3 26994 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26995 {
5c8c7dd3 26996 (arg1)->Invert();
554f62e9
RD
26997 if (PyErr_Occurred()) SWIG_fail;
26998 }
72ef6efb 26999 resultobj = SWIG_Py_Void();
554f62e9
RD
27000 return resultobj;
27001fail:
27002 return NULL;
27003}
27004
27005
5c8c7dd3 27006SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27007 PyObject *resultobj = 0;
5c8c7dd3
RD
27008 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27009 wxGraphicsMatrix *arg2 = 0 ;
27010 bool result;
70d7cb34
RD
27011 void *argp1 = 0 ;
27012 int res1 = 0 ;
5c8c7dd3
RD
27013 void *argp2 = 0 ;
27014 int res2 = 0 ;
27015 PyObject * obj0 = 0 ;
27016 PyObject * obj1 = 0 ;
27017 char * kwnames[] = {
27018 (char *) "self",(char *) "t", NULL
27019 };
70d7cb34 27020
5c8c7dd3
RD
27021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
27022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 27023 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 27025 }
5c8c7dd3
RD
27026 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27028 if (!SWIG_IsOK(res2)) {
27029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27030 }
27031 if (!argp2) {
27032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 27033 }
5c8c7dd3 27034 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27035 {
5c8c7dd3 27036 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27037 if (PyErr_Occurred()) SWIG_fail;
27038 }
5c8c7dd3
RD
27039 {
27040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27041 }
70d7cb34
RD
27042 return resultobj;
27043fail:
27044 return NULL;
27045}
27046
27047
5c8c7dd3
RD
27048SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27049 PyObject *resultobj = 0;
27050 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27051 bool result;
27052 void *argp1 = 0 ;
27053 int res1 = 0 ;
27054 PyObject *swig_obj[1] ;
70d7cb34 27055
5c8c7dd3
RD
27056 if (!args) SWIG_fail;
27057 swig_obj[0] = args;
27058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27059 if (!SWIG_IsOK(res1)) {
8f514ab4 27060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 27061 }
5c8c7dd3
RD
27062 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27063 {
8f514ab4 27064 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 27065 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27066 }
5c8c7dd3
RD
27067 {
27068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27069 }
27070 return resultobj;
70d7cb34 27071fail:
70d7cb34
RD
27072 return NULL;
27073}
27074
27075
5c8c7dd3 27076SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 27077 PyObject *resultobj = 0;
5c8c7dd3 27078 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
27079 wxDouble arg2 ;
27080 wxDouble arg3 ;
554f62e9
RD
27081 void *argp1 = 0 ;
27082 int res1 = 0 ;
72ef6efb
RD
27083 double val2 ;
27084 int ecode2 = 0 ;
27085 double val3 ;
27086 int ecode3 = 0 ;
5c8c7dd3
RD
27087 PyObject * obj0 = 0 ;
27088 PyObject * obj1 = 0 ;
27089 PyObject * obj2 = 0 ;
27090 char * kwnames[] = {
27091 (char *) "self",(char *) "dx",(char *) "dy", NULL
27092 };
72ef6efb 27093
5c8c7dd3
RD
27094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 27096 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 27098 }
5c8c7dd3
RD
27099 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27100 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 27101 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27103 }
27104 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27105 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 27106 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27108 }
27109 arg3 = static_cast< wxDouble >(val3);
72ef6efb 27110 {
5c8c7dd3 27111 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 resultobj = SWIG_Py_Void();
27115 return resultobj;
27116fail:
27117 return NULL;
27118}
27119
27120
5c8c7dd3 27121SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27122 PyObject *resultobj = 0;
5c8c7dd3
RD
27123 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27124 wxDouble arg2 ;
27125 wxDouble arg3 ;
70d7cb34
RD
27126 void *argp1 = 0 ;
27127 int res1 = 0 ;
5c8c7dd3
RD
27128 double val2 ;
27129 int ecode2 = 0 ;
27130 double val3 ;
27131 int ecode3 = 0 ;
27132 PyObject * obj0 = 0 ;
27133 PyObject * obj1 = 0 ;
27134 PyObject * obj2 = 0 ;
27135 char * kwnames[] = {
27136 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
27137 };
70d7cb34 27138
5c8c7dd3
RD
27139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 27141 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 27143 }
5c8c7dd3
RD
27144 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27145 ecode2 = SWIG_AsVal_double(obj1, &val2);
27146 if (!SWIG_IsOK(ecode2)) {
27147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
27148 }
27149 arg2 = static_cast< wxDouble >(val2);
27150 ecode3 = SWIG_AsVal_double(obj2, &val3);
27151 if (!SWIG_IsOK(ecode3)) {
27152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
27153 }
27154 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27155 {
5c8c7dd3 27156 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
27157 if (PyErr_Occurred()) SWIG_fail;
27158 }
27159 resultobj = SWIG_Py_Void();
27160 return resultobj;
27161fail:
27162 return NULL;
27163}
27164
27165
5c8c7dd3 27166SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27167 PyObject *resultobj = 0;
5c8c7dd3
RD
27168 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27169 wxDouble arg2 ;
70d7cb34
RD
27170 void *argp1 = 0 ;
27171 int res1 = 0 ;
5c8c7dd3
RD
27172 double val2 ;
27173 int ecode2 = 0 ;
70d7cb34
RD
27174 PyObject * obj0 = 0 ;
27175 PyObject * obj1 = 0 ;
27176 char * kwnames[] = {
5c8c7dd3 27177 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
27178 };
27179
5c8c7dd3
RD
27180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
27181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 27182 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 27184 }
5c8c7dd3
RD
27185 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27186 ecode2 = SWIG_AsVal_double(obj1, &val2);
27187 if (!SWIG_IsOK(ecode2)) {
27188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
27189 }
27190 arg2 = static_cast< wxDouble >(val2);
70d7cb34 27191 {
5c8c7dd3 27192 (arg1)->Rotate(arg2);
70d7cb34
RD
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 resultobj = SWIG_Py_Void();
27196 return resultobj;
27197fail:
27198 return NULL;
27199}
27200
27201
5c8c7dd3 27202SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27203 PyObject *resultobj = 0;
5c8c7dd3
RD
27204 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27205 wxDouble *arg2 = (wxDouble *) 0 ;
27206 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
27207 void *argp1 = 0 ;
27208 int res1 = 0 ;
5c8c7dd3
RD
27209 wxDouble temp2 ;
27210 int res2 = 0 ;
27211 wxDouble temp3 ;
27212 int res3 = 0 ;
27213 PyObject * obj0 = 0 ;
27214 PyObject * obj1 = 0 ;
27215 PyObject * obj2 = 0 ;
27216 char * kwnames[] = {
27217 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27218 };
72ef6efb 27219
5c8c7dd3
RD
27220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 27222 if (!SWIG_IsOK(res1)) {
8f514ab4 27223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 27224 }
5c8c7dd3
RD
27225 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27226 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27227 double val;
27228 int ecode = SWIG_AsVal_double(obj1, &val);
27229 if (!SWIG_IsOK(ecode)) {
27230 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27231 }
27232 temp2 = static_cast< wxDouble >(val);
27233 arg2 = &temp2;
27234 res2 = SWIG_AddTmpMask(ecode);
27235 }
27236 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27237 double val;
27238 int ecode = SWIG_AsVal_double(obj2, &val);
27239 if (!SWIG_IsOK(ecode)) {
27240 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27241 }
27242 temp3 = static_cast< wxDouble >(val);
27243 arg3 = &temp3;
27244 res3 = SWIG_AddTmpMask(ecode);
27245 }
27246 {
8f514ab4 27247 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
27251 if (SWIG_IsTmpObj(res2)) {
27252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27253 } else {
27254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27256 }
27257 if (SWIG_IsTmpObj(res3)) {
27258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27259 } else {
27260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27262 }
72ef6efb
RD
27263 return resultobj;
27264fail:
27265 return NULL;
27266}
27267
27268
5c8c7dd3
RD
27269SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27270 PyObject *resultobj = 0;
27271 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27272 wxDouble *arg2 = (wxDouble *) 0 ;
27273 wxDouble *arg3 = (wxDouble *) 0 ;
27274 void *argp1 = 0 ;
27275 int res1 = 0 ;
27276 wxDouble temp2 ;
27277 int res2 = 0 ;
27278 wxDouble temp3 ;
27279 int res3 = 0 ;
27280 PyObject * obj0 = 0 ;
27281 PyObject * obj1 = 0 ;
27282 PyObject * obj2 = 0 ;
27283 char * kwnames[] = {
27284 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27285 };
27286
27287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27289 if (!SWIG_IsOK(res1)) {
8f514ab4 27290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
27291 }
27292 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27293 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27294 double val;
27295 int ecode = SWIG_AsVal_double(obj1, &val);
27296 if (!SWIG_IsOK(ecode)) {
27297 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
27298 }
27299 temp2 = static_cast< wxDouble >(val);
27300 arg2 = &temp2;
27301 res2 = SWIG_AddTmpMask(ecode);
27302 }
27303 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27304 double val;
27305 int ecode = SWIG_AsVal_double(obj2, &val);
27306 if (!SWIG_IsOK(ecode)) {
27307 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27308 }
27309 temp3 = static_cast< wxDouble >(val);
27310 arg3 = &temp3;
27311 res3 = SWIG_AddTmpMask(ecode);
27312 }
27313 {
8f514ab4 27314 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
27315 if (PyErr_Occurred()) SWIG_fail;
27316 }
27317 resultobj = SWIG_Py_Void();
27318 if (SWIG_IsTmpObj(res2)) {
27319 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27320 } else {
27321 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27322 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27323 }
27324 if (SWIG_IsTmpObj(res3)) {
27325 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27326 } else {
27327 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27329 }
27330 return resultobj;
27331fail:
27332 return NULL;
27333}
27334
27335
27336SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27337 PyObject *resultobj = 0;
27338 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27339 void *result = 0 ;
27340 void *argp1 = 0 ;
27341 int res1 = 0 ;
27342 PyObject *swig_obj[1] ;
27343
27344 if (!args) SWIG_fail;
27345 swig_obj[0] = args;
27346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27347 if (!SWIG_IsOK(res1)) {
27348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27349 }
27350 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27351 {
27352 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27353 if (PyErr_Occurred()) SWIG_fail;
27354 }
27355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27356 return resultobj;
27357fail:
27358 return NULL;
27359}
27360
27361
27362SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27363 PyObject *obj;
27364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27365 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27366 return SWIG_Py_Void();
27367}
27368
27369SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
27370 PyObject *resultobj = 0;
27371 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
27372 void *argp1 = 0 ;
27373 int res1 = 0 ;
27374 PyObject *swig_obj[1] ;
27375
27376 if (!args) SWIG_fail;
27377 swig_obj[0] = args;
5c8c7dd3 27378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 27379 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
27381 }
27382 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27383 {
5c8c7dd3
RD
27384 delete arg1;
27385
72ef6efb
RD
27386 if (PyErr_Occurred()) SWIG_fail;
27387 }
5c8c7dd3 27388 resultobj = SWIG_Py_Void();
70d7cb34
RD
27389 return resultobj;
27390fail:
27391 return NULL;
27392}
27393
27394
5c8c7dd3 27395SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27396 PyObject *resultobj = 0;
27397 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27398 wxDouble arg2 ;
27399 wxDouble arg3 ;
70d7cb34
RD
27400 void *argp1 = 0 ;
27401 int res1 = 0 ;
27402 double val2 ;
27403 int ecode2 = 0 ;
27404 double val3 ;
27405 int ecode3 = 0 ;
70d7cb34 27406
5c8c7dd3 27407 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
27408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27409 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27411 }
27412 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27413 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27414 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27416 }
27417 arg2 = static_cast< wxDouble >(val2);
27418 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27419 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27421 }
27422 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27423 {
5c8c7dd3 27424 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
27425 if (PyErr_Occurred()) SWIG_fail;
27426 }
27427 resultobj = SWIG_Py_Void();
27428 return resultobj;
27429fail:
27430 return NULL;
27431}
27432
27433
5c8c7dd3 27434SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27435 PyObject *resultobj = 0;
27436 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27437 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27438 void *argp1 = 0 ;
27439 int res1 = 0 ;
27440 wxPoint2D temp2 ;
70d7cb34 27441
5c8c7dd3 27442 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
27443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27444 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27446 }
27447 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27448 {
27449 arg2 = &temp2;
27450 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27451 }
70d7cb34 27452 {
5c8c7dd3 27453 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27454 if (PyErr_Occurred()) SWIG_fail;
27455 }
27456 resultobj = SWIG_Py_Void();
27457 return resultobj;
27458fail:
27459 return NULL;
27460}
27461
27462
5c8c7dd3 27463SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 27464 int argc;
5c8c7dd3 27465 PyObject *argv[4];
70d7cb34 27466
5c8c7dd3 27467 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 27468 --argc;
5c8c7dd3
RD
27469 if (argc == 2) {
27470 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27471 }
5c8c7dd3
RD
27472 if (argc == 3) {
27473 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
27474 }
27475
27476fail:
5c8c7dd3 27477 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
27478 return NULL;
27479}
27480
27481
5c8c7dd3 27482SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27483 PyObject *resultobj = 0;
27484 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27485 wxDouble arg2 ;
27486 wxDouble arg3 ;
70d7cb34
RD
27487 void *argp1 = 0 ;
27488 int res1 = 0 ;
27489 double val2 ;
27490 int ecode2 = 0 ;
27491 double val3 ;
27492 int ecode3 = 0 ;
70d7cb34 27493
5c8c7dd3
RD
27494 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27496 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27498 }
27499 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27500 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27501 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27503 }
27504 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27505 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27506 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27508 }
27509 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27510 {
5c8c7dd3 27511 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
27512 if (PyErr_Occurred()) SWIG_fail;
27513 }
27514 resultobj = SWIG_Py_Void();
27515 return resultobj;
27516fail:
27517 return NULL;
27518}
27519
27520
5c8c7dd3 27521SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27522 PyObject *resultobj = 0;
27523 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27524 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27525 void *argp1 = 0 ;
27526 int res1 = 0 ;
5c8c7dd3 27527 wxPoint2D temp2 ;
70d7cb34 27528
5c8c7dd3
RD
27529 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27531 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27533 }
27534 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27535 {
5c8c7dd3
RD
27536 arg2 = &temp2;
27537 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27538 }
27539 {
27540 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27541 if (PyErr_Occurred()) SWIG_fail;
27542 }
27543 resultobj = SWIG_Py_Void();
27544 return resultobj;
27545fail:
27546 return NULL;
27547}
27548
27549
5c8c7dd3
RD
27550SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27551 int argc;
27552 PyObject *argv[4];
70d7cb34 27553
5c8c7dd3
RD
27554 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27555 --argc;
27556 if (argc == 2) {
27557 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 27558 }
5c8c7dd3
RD
27559 if (argc == 3) {
27560 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 27561 }
5c8c7dd3 27562
70d7cb34 27563fail:
5c8c7dd3 27564 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
27565 return NULL;
27566}
27567
27568
5c8c7dd3 27569SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27570 PyObject *resultobj = 0;
27571 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27572 wxDouble arg2 ;
27573 wxDouble arg3 ;
27574 wxDouble arg4 ;
27575 wxDouble arg5 ;
27576 wxDouble arg6 ;
5c8c7dd3 27577 wxDouble arg7 ;
70d7cb34
RD
27578 void *argp1 = 0 ;
27579 int res1 = 0 ;
27580 double val2 ;
27581 int ecode2 = 0 ;
27582 double val3 ;
27583 int ecode3 = 0 ;
27584 double val4 ;
27585 int ecode4 = 0 ;
27586 double val5 ;
27587 int ecode5 = 0 ;
27588 double val6 ;
27589 int ecode6 = 0 ;
5c8c7dd3
RD
27590 double val7 ;
27591 int ecode7 = 0 ;
70d7cb34 27592
5c8c7dd3
RD
27593 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27595 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27597 }
27598 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27599 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27600 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27602 }
27603 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27604 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27605 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27607 }
27608 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 27609 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 27610 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 27611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
27612 }
27613 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 27614 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 27615 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 27616 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
27617 }
27618 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 27619 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 27620 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 27621 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
27622 }
27623 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
27624 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27625 if (!SWIG_IsOK(ecode7)) {
27626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27627 }
27628 arg7 = static_cast< wxDouble >(val7);
70d7cb34 27629 {
5c8c7dd3 27630 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27631 if (PyErr_Occurred()) SWIG_fail;
27632 }
27633 resultobj = SWIG_Py_Void();
27634 return resultobj;
27635fail:
27636 return NULL;
27637}
27638
27639
5c8c7dd3 27640SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27641 PyObject *resultobj = 0;
27642 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27643 wxPoint2D *arg2 = 0 ;
27644 wxPoint2D *arg3 = 0 ;
27645 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
27646 void *argp1 = 0 ;
27647 int res1 = 0 ;
5c8c7dd3
RD
27648 wxPoint2D temp2 ;
27649 wxPoint2D temp3 ;
27650 wxPoint2D temp4 ;
70d7cb34 27651
5c8c7dd3
RD
27652 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27654 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27656 }
27657 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27658 {
5c8c7dd3
RD
27659 arg2 = &temp2;
27660 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27661 }
5c8c7dd3
RD
27662 {
27663 arg3 = &temp3;
27664 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 27665 }
70d7cb34 27666 {
5c8c7dd3
RD
27667 arg4 = &temp4;
27668 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27669 }
27670 {
27671 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 resultobj = SWIG_Py_Void();
27675 return resultobj;
27676fail:
27677 return NULL;
27678}
27679
27680
5c8c7dd3
RD
27681SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27682 int argc;
27683 PyObject *argv[8];
70d7cb34 27684
5c8c7dd3
RD
27685 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27686 --argc;
27687 if (argc == 4) {
27688 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27689 }
5c8c7dd3
RD
27690 if (argc == 7) {
27691 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 27692 }
5c8c7dd3 27693
70d7cb34 27694fail:
5c8c7dd3 27695 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
27696 return NULL;
27697}
27698
27699
5c8c7dd3 27700SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
27701 PyObject *resultobj = 0;
27702 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27703 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
27704 void *argp1 = 0 ;
27705 int res1 = 0 ;
5c8c7dd3
RD
27706 void *argp2 = 0 ;
27707 int res2 = 0 ;
70d7cb34
RD
27708 PyObject * obj0 = 0 ;
27709 PyObject * obj1 = 0 ;
27710 char * kwnames[] = {
5c8c7dd3 27711 (char *) "self",(char *) "path", NULL
70d7cb34
RD
27712 };
27713
5c8c7dd3 27714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
27715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27716 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27718 }
27719 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 27721 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
27722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27723 }
27724 if (!argp2) {
27725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 27726 }
5c8c7dd3 27727 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 27728 {
5c8c7dd3 27729 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
27730 if (PyErr_Occurred()) SWIG_fail;
27731 }
27732 resultobj = SWIG_Py_Void();
27733 return resultobj;
27734fail:
27735 return NULL;
27736}
27737
27738
5c8c7dd3 27739SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27740 PyObject *resultobj = 0;
27741 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27742 void *argp1 = 0 ;
27743 int res1 = 0 ;
5c8c7dd3 27744 PyObject *swig_obj[1] ;
70d7cb34 27745
5c8c7dd3
RD
27746 if (!args) SWIG_fail;
27747 swig_obj[0] = args;
27748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27749 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27751 }
27752 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27753 {
5c8c7dd3 27754 (arg1)->CloseSubpath();
70d7cb34
RD
27755 if (PyErr_Occurred()) SWIG_fail;
27756 }
27757 resultobj = SWIG_Py_Void();
27758 return resultobj;
27759fail:
27760 return NULL;
27761}
27762
27763
5c8c7dd3 27764SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27765 PyObject *resultobj = 0;
27766 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27767 wxPoint2D result;
70d7cb34
RD
27768 void *argp1 = 0 ;
27769 int res1 = 0 ;
27770 PyObject *swig_obj[1] ;
27771
27772 if (!args) SWIG_fail;
27773 swig_obj[0] = args;
27774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27775 if (!SWIG_IsOK(res1)) {
8f514ab4 27776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
27777 }
27778 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27779 {
8f514ab4 27780 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
27781 if (PyErr_Occurred()) SWIG_fail;
27782 }
5c8c7dd3 27783 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27784 return resultobj;
27785fail:
27786 return NULL;
27787}
27788
27789
5c8c7dd3 27790SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27791 PyObject *resultobj = 0;
27792 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27793 wxDouble arg2 ;
27794 wxDouble arg3 ;
5c8c7dd3
RD
27795 wxDouble arg4 ;
27796 wxDouble arg5 ;
27797 wxDouble arg6 ;
89d1e2ee 27798 bool arg7 = (bool) true ;
70d7cb34
RD
27799 void *argp1 = 0 ;
27800 int res1 = 0 ;
27801 double val2 ;
27802 int ecode2 = 0 ;
27803 double val3 ;
27804 int ecode3 = 0 ;
5c8c7dd3 27805 double val4 ;
70d7cb34 27806 int ecode4 = 0 ;
5c8c7dd3
RD
27807 double val5 ;
27808 int ecode5 = 0 ;
27809 double val6 ;
27810 int ecode6 = 0 ;
27811 bool val7 ;
27812 int ecode7 = 0 ;
70d7cb34 27813
89d1e2ee 27814 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27816 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27818 }
27819 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27820 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27821 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27823 }
27824 arg2 = static_cast< wxDouble >(val2);
27825 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27826 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27828 }
27829 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27830 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27831 if (!SWIG_IsOK(ecode4)) {
27832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27833 }
27834 arg4 = static_cast< wxDouble >(val4);
27835 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27836 if (!SWIG_IsOK(ecode5)) {
27837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27838 }
27839 arg5 = static_cast< wxDouble >(val5);
27840 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27841 if (!SWIG_IsOK(ecode6)) {
27842 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27843 }
27844 arg6 = static_cast< wxDouble >(val6);
89d1e2ee
RD
27845 if (swig_obj[6]) {
27846 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27847 if (!SWIG_IsOK(ecode7)) {
27848 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27849 }
27850 arg7 = static_cast< bool >(val7);
27851 }
70d7cb34 27852 {
5c8c7dd3 27853 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27854 if (PyErr_Occurred()) SWIG_fail;
27855 }
5c8c7dd3 27856 resultobj = SWIG_Py_Void();
70d7cb34
RD
27857 return resultobj;
27858fail:
27859 return NULL;
27860}
27861
27862
5c8c7dd3 27863SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27864 PyObject *resultobj = 0;
27865 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27866 wxPoint2D *arg2 = 0 ;
27867 wxDouble arg3 ;
27868 wxDouble arg4 ;
27869 wxDouble arg5 ;
89d1e2ee 27870 bool arg6 = (bool) true ;
70d7cb34
RD
27871 void *argp1 = 0 ;
27872 int res1 = 0 ;
5c8c7dd3
RD
27873 wxPoint2D temp2 ;
27874 double val3 ;
70d7cb34 27875 int ecode3 = 0 ;
5c8c7dd3
RD
27876 double val4 ;
27877 int ecode4 = 0 ;
27878 double val5 ;
27879 int ecode5 = 0 ;
27880 bool val6 ;
27881 int ecode6 = 0 ;
70d7cb34 27882
89d1e2ee 27883 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27885 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27887 }
27888 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27889 {
5c8c7dd3
RD
27890 arg2 = &temp2;
27891 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27892 }
5c8c7dd3
RD
27893 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27894 if (!SWIG_IsOK(ecode3)) {
27895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27896 }
27897 arg3 = static_cast< wxDouble >(val3);
27898 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27899 if (!SWIG_IsOK(ecode4)) {
27900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27901 }
27902 arg4 = static_cast< wxDouble >(val4);
27903 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27904 if (!SWIG_IsOK(ecode5)) {
27905 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27906 }
27907 arg5 = static_cast< wxDouble >(val5);
89d1e2ee
RD
27908 if (swig_obj[5]) {
27909 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27910 if (!SWIG_IsOK(ecode6)) {
27911 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27912 }
27913 arg6 = static_cast< bool >(val6);
27914 }
70d7cb34 27915 {
5c8c7dd3
RD
27916 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27917 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27918 }
5c8c7dd3 27919 resultobj = SWIG_Py_Void();
70d7cb34
RD
27920 return resultobj;
27921fail:
27922 return NULL;
27923}
27924
27925
5c8c7dd3 27926SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27927 int argc;
5c8c7dd3 27928 PyObject *argv[8];
70d7cb34 27929
5c8c7dd3 27930 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27931 --argc;
89d1e2ee
RD
27932 if ((argc >= 5) && (argc <= 6)) {
27933 int _v = 0;
27934 {
27935 {
27936 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27937 }
27938 }
27939 if (!_v) goto check_1;
27940 if (argc > 5) {
27941 {
27942 {
27943 int res = SWIG_AsVal_bool(argv[5], NULL);
27944 _v = SWIG_CheckState(res);
27945 }
27946 }
27947 if (!_v) goto check_1;
27948 }
5c8c7dd3 27949 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27950 }
89d1e2ee
RD
27951check_1:
27952
27953 if ((argc >= 6) && (argc <= 7)) {
5c8c7dd3 27954 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27955 }
27956
27957fail:
5c8c7dd3 27958 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27959 return NULL;
27960}
27961
27962
5c8c7dd3 27963SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27964 PyObject *resultobj = 0;
5c8c7dd3
RD
27965 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27966 wxDouble arg2 ;
27967 wxDouble arg3 ;
27968 wxDouble arg4 ;
27969 wxDouble arg5 ;
70d7cb34
RD
27970 void *argp1 = 0 ;
27971 int res1 = 0 ;
5c8c7dd3
RD
27972 double val2 ;
27973 int ecode2 = 0 ;
27974 double val3 ;
27975 int ecode3 = 0 ;
27976 double val4 ;
27977 int ecode4 = 0 ;
27978 double val5 ;
27979 int ecode5 = 0 ;
27980 PyObject * obj0 = 0 ;
27981 PyObject * obj1 = 0 ;
27982 PyObject * obj2 = 0 ;
27983 PyObject * obj3 = 0 ;
27984 PyObject * obj4 = 0 ;
27985 char * kwnames[] = {
27986 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27987 };
70d7cb34 27988
5c8c7dd3
RD
27989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27991 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27993 }
5c8c7dd3
RD
27994 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27995 ecode2 = SWIG_AsVal_double(obj1, &val2);
27996 if (!SWIG_IsOK(ecode2)) {
27997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27998 }
27999 arg2 = static_cast< wxDouble >(val2);
28000 ecode3 = SWIG_AsVal_double(obj2, &val3);
28001 if (!SWIG_IsOK(ecode3)) {
28002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
28003 }
28004 arg3 = static_cast< wxDouble >(val3);
28005 ecode4 = SWIG_AsVal_double(obj3, &val4);
28006 if (!SWIG_IsOK(ecode4)) {
28007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
28008 }
28009 arg4 = static_cast< wxDouble >(val4);
28010 ecode5 = SWIG_AsVal_double(obj4, &val5);
28011 if (!SWIG_IsOK(ecode5)) {
28012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
28013 }
28014 arg5 = static_cast< wxDouble >(val5);
70d7cb34 28015 {
5c8c7dd3 28016 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 resultobj = SWIG_Py_Void();
28020 return resultobj;
28021fail:
28022 return NULL;
28023}
28024
28025
5c8c7dd3 28026SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28027 PyObject *resultobj = 0;
5c8c7dd3
RD
28028 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28029 wxDouble arg2 ;
28030 wxDouble arg3 ;
28031 wxDouble arg4 ;
28032 wxDouble arg5 ;
70d7cb34
RD
28033 void *argp1 = 0 ;
28034 int res1 = 0 ;
5c8c7dd3
RD
28035 double val2 ;
28036 int ecode2 = 0 ;
28037 double val3 ;
28038 int ecode3 = 0 ;
28039 double val4 ;
28040 int ecode4 = 0 ;
28041 double val5 ;
28042 int ecode5 = 0 ;
70d7cb34
RD
28043 PyObject * obj0 = 0 ;
28044 PyObject * obj1 = 0 ;
5c8c7dd3
RD
28045 PyObject * obj2 = 0 ;
28046 PyObject * obj3 = 0 ;
28047 PyObject * obj4 = 0 ;
70d7cb34 28048 char * kwnames[] = {
5c8c7dd3 28049 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
28050 };
28051
5c8c7dd3
RD
28052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28054 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28056 }
5c8c7dd3
RD
28057 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28058 ecode2 = SWIG_AsVal_double(obj1, &val2);
28059 if (!SWIG_IsOK(ecode2)) {
28060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28061 }
28062 arg2 = static_cast< wxDouble >(val2);
28063 ecode3 = SWIG_AsVal_double(obj2, &val3);
28064 if (!SWIG_IsOK(ecode3)) {
28065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28066 }
28067 arg3 = static_cast< wxDouble >(val3);
28068 ecode4 = SWIG_AsVal_double(obj3, &val4);
28069 if (!SWIG_IsOK(ecode4)) {
28070 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28071 }
28072 arg4 = static_cast< wxDouble >(val4);
28073 ecode5 = SWIG_AsVal_double(obj4, &val5);
28074 if (!SWIG_IsOK(ecode5)) {
28075 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28076 }
28077 arg5 = static_cast< wxDouble >(val5);
70d7cb34 28078 {
5c8c7dd3 28079 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
28080 if (PyErr_Occurred()) SWIG_fail;
28081 }
28082 resultobj = SWIG_Py_Void();
28083 return resultobj;
28084fail:
28085 return NULL;
28086}
28087
28088
5c8c7dd3 28089SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28090 PyObject *resultobj = 0;
5c8c7dd3
RD
28091 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28092 wxDouble arg2 ;
28093 wxDouble arg3 ;
28094 wxDouble arg4 ;
70d7cb34
RD
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
5c8c7dd3
RD
28097 double val2 ;
28098 int ecode2 = 0 ;
28099 double val3 ;
28100 int ecode3 = 0 ;
28101 double val4 ;
28102 int ecode4 = 0 ;
70d7cb34
RD
28103 PyObject * obj0 = 0 ;
28104 PyObject * obj1 = 0 ;
5c8c7dd3
RD
28105 PyObject * obj2 = 0 ;
28106 PyObject * obj3 = 0 ;
70d7cb34 28107 char * kwnames[] = {
5c8c7dd3 28108 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
28109 };
28110
5c8c7dd3
RD
28111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28113 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28115 }
5c8c7dd3
RD
28116 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28117 ecode2 = SWIG_AsVal_double(obj1, &val2);
28118 if (!SWIG_IsOK(ecode2)) {
28119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
28120 }
28121 arg2 = static_cast< wxDouble >(val2);
28122 ecode3 = SWIG_AsVal_double(obj2, &val3);
28123 if (!SWIG_IsOK(ecode3)) {
28124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
28125 }
28126 arg3 = static_cast< wxDouble >(val3);
28127 ecode4 = SWIG_AsVal_double(obj3, &val4);
28128 if (!SWIG_IsOK(ecode4)) {
28129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
28130 }
28131 arg4 = static_cast< wxDouble >(val4);
70d7cb34 28132 {
5c8c7dd3 28133 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 resultobj = SWIG_Py_Void();
28137 return resultobj;
28138fail:
28139 return NULL;
28140}
28141
28142
5c8c7dd3 28143SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28144 PyObject *resultobj = 0;
5c8c7dd3
RD
28145 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28146 wxDouble arg2 ;
28147 wxDouble arg3 ;
28148 wxDouble arg4 ;
28149 wxDouble arg5 ;
28150 wxDouble arg6 ;
70d7cb34
RD
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 double val2 ;
28154 int ecode2 = 0 ;
28155 double val3 ;
28156 int ecode3 = 0 ;
28157 double val4 ;
28158 int ecode4 = 0 ;
28159 double val5 ;
28160 int ecode5 = 0 ;
28161 double val6 ;
28162 int ecode6 = 0 ;
70d7cb34
RD
28163 PyObject * obj0 = 0 ;
28164 PyObject * obj1 = 0 ;
28165 PyObject * obj2 = 0 ;
28166 PyObject * obj3 = 0 ;
28167 PyObject * obj4 = 0 ;
28168 PyObject * obj5 = 0 ;
70d7cb34 28169 char * kwnames[] = {
5c8c7dd3 28170 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
28171 };
28172
5c8c7dd3
RD
28173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28175 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28177 }
5c8c7dd3
RD
28178 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28179 ecode2 = SWIG_AsVal_double(obj1, &val2);
28180 if (!SWIG_IsOK(ecode2)) {
28181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
28182 }
28183 arg2 = static_cast< wxDouble >(val2);
28184 ecode3 = SWIG_AsVal_double(obj2, &val3);
28185 if (!SWIG_IsOK(ecode3)) {
28186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
28187 }
28188 arg3 = static_cast< wxDouble >(val3);
28189 ecode4 = SWIG_AsVal_double(obj3, &val4);
28190 if (!SWIG_IsOK(ecode4)) {
28191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
28192 }
28193 arg4 = static_cast< wxDouble >(val4);
28194 ecode5 = SWIG_AsVal_double(obj4, &val5);
28195 if (!SWIG_IsOK(ecode5)) {
28196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
28197 }
28198 arg5 = static_cast< wxDouble >(val5);
28199 ecode6 = SWIG_AsVal_double(obj5, &val6);
28200 if (!SWIG_IsOK(ecode6)) {
28201 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
28202 }
28203 arg6 = static_cast< wxDouble >(val6);
70d7cb34 28204 {
5c8c7dd3 28205 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 resultobj = SWIG_Py_Void();
28209 return resultobj;
28210fail:
28211 return NULL;
28212}
28213
28214
5c8c7dd3 28215SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28216 PyObject *resultobj = 0;
5c8c7dd3
RD
28217 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28218 wxDouble arg2 ;
28219 wxDouble arg3 ;
28220 wxDouble arg4 ;
28221 wxDouble arg5 ;
70d7cb34
RD
28222 void *argp1 = 0 ;
28223 int res1 = 0 ;
5c8c7dd3
RD
28224 double val2 ;
28225 int ecode2 = 0 ;
28226 double val3 ;
28227 int ecode3 = 0 ;
28228 double val4 ;
28229 int ecode4 = 0 ;
28230 double val5 ;
28231 int ecode5 = 0 ;
28232 PyObject * obj0 = 0 ;
28233 PyObject * obj1 = 0 ;
28234 PyObject * obj2 = 0 ;
28235 PyObject * obj3 = 0 ;
28236 PyObject * obj4 = 0 ;
28237 char * kwnames[] = {
28238 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28239 };
70d7cb34 28240
5c8c7dd3
RD
28241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28243 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28245 }
5c8c7dd3
RD
28246 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28247 ecode2 = SWIG_AsVal_double(obj1, &val2);
28248 if (!SWIG_IsOK(ecode2)) {
28249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
28250 }
28251 arg2 = static_cast< wxDouble >(val2);
28252 ecode3 = SWIG_AsVal_double(obj2, &val3);
28253 if (!SWIG_IsOK(ecode3)) {
28254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
28255 }
28256 arg3 = static_cast< wxDouble >(val3);
28257 ecode4 = SWIG_AsVal_double(obj3, &val4);
28258 if (!SWIG_IsOK(ecode4)) {
28259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
28260 }
28261 arg4 = static_cast< wxDouble >(val4);
28262 ecode5 = SWIG_AsVal_double(obj4, &val5);
28263 if (!SWIG_IsOK(ecode5)) {
28264 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
28265 }
28266 arg5 = static_cast< wxDouble >(val5);
70d7cb34 28267 {
5c8c7dd3 28268 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
28269 if (PyErr_Occurred()) SWIG_fail;
28270 }
28271 resultobj = SWIG_Py_Void();
28272 return resultobj;
28273fail:
28274 return NULL;
28275}
28276
28277
5c8c7dd3 28278SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28279 PyObject *resultobj = 0;
5c8c7dd3
RD
28280 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28281 wxDouble arg2 ;
28282 wxDouble arg3 ;
28283 wxDouble arg4 ;
28284 wxDouble arg5 ;
28285 wxDouble arg6 ;
70d7cb34
RD
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
5c8c7dd3
RD
28288 double val2 ;
28289 int ecode2 = 0 ;
28290 double val3 ;
28291 int ecode3 = 0 ;
28292 double val4 ;
28293 int ecode4 = 0 ;
28294 double val5 ;
28295 int ecode5 = 0 ;
28296 double val6 ;
28297 int ecode6 = 0 ;
70d7cb34
RD
28298 PyObject * obj0 = 0 ;
28299 PyObject * obj1 = 0 ;
5c8c7dd3
RD
28300 PyObject * obj2 = 0 ;
28301 PyObject * obj3 = 0 ;
28302 PyObject * obj4 = 0 ;
28303 PyObject * obj5 = 0 ;
70d7cb34 28304 char * kwnames[] = {
5c8c7dd3 28305 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
28306 };
28307
5c8c7dd3
RD
28308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28310 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28312 }
5c8c7dd3
RD
28313 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28314 ecode2 = SWIG_AsVal_double(obj1, &val2);
28315 if (!SWIG_IsOK(ecode2)) {
28316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28317 }
28318 arg2 = static_cast< wxDouble >(val2);
28319 ecode3 = SWIG_AsVal_double(obj2, &val3);
28320 if (!SWIG_IsOK(ecode3)) {
28321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28322 }
28323 arg3 = static_cast< wxDouble >(val3);
28324 ecode4 = SWIG_AsVal_double(obj3, &val4);
28325 if (!SWIG_IsOK(ecode4)) {
28326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28327 }
28328 arg4 = static_cast< wxDouble >(val4);
28329 ecode5 = SWIG_AsVal_double(obj4, &val5);
28330 if (!SWIG_IsOK(ecode5)) {
28331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28332 }
28333 arg5 = static_cast< wxDouble >(val5);
28334 ecode6 = SWIG_AsVal_double(obj5, &val6);
28335 if (!SWIG_IsOK(ecode6)) {
28336 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
28337 }
28338 arg6 = static_cast< wxDouble >(val6);
70d7cb34 28339 {
5c8c7dd3 28340 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
28341 if (PyErr_Occurred()) SWIG_fail;
28342 }
5c8c7dd3 28343 resultobj = SWIG_Py_Void();
70d7cb34
RD
28344 return resultobj;
28345fail:
28346 return NULL;
28347}
28348
28349
5c8c7dd3 28350SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 28351 PyObject *resultobj = 0;
5c8c7dd3
RD
28352 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28353 void *result = 0 ;
70d7cb34
RD
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 PyObject *swig_obj[1] ;
28357
28358 if (!args) SWIG_fail;
28359 swig_obj[0] = args;
5c8c7dd3 28360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28361 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28363 }
5c8c7dd3 28364 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 28365 {
5c8c7dd3 28366 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
28367 if (PyErr_Occurred()) SWIG_fail;
28368 }
5c8c7dd3 28369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
28370 return resultobj;
28371fail:
28372 return NULL;
28373}
28374
28375
5c8c7dd3 28376SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28377 PyObject *resultobj = 0;
5c8c7dd3
RD
28378 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28379 void *arg2 = (void *) 0 ;
70d7cb34
RD
28380 void *argp1 = 0 ;
28381 int res1 = 0 ;
5c8c7dd3 28382 int res2 ;
70d7cb34
RD
28383 PyObject * obj0 = 0 ;
28384 PyObject * obj1 = 0 ;
70d7cb34 28385 char * kwnames[] = {
5c8c7dd3 28386 (char *) "self",(char *) "p", NULL
70d7cb34
RD
28387 };
28388
5c8c7dd3
RD
28389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28391 if (!SWIG_IsOK(res1)) {
8f514ab4 28392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
28393 }
28394 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28395 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28396 if (!SWIG_IsOK(res2)) {
28397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 28398 }
70d7cb34 28399 {
8f514ab4 28400 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
28401 if (PyErr_Occurred()) SWIG_fail;
28402 }
28403 resultobj = SWIG_Py_Void();
28404 return resultobj;
28405fail:
28406 return NULL;
28407}
28408
28409
5c8c7dd3 28410SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 28411 PyObject *resultobj = 0;
5c8c7dd3
RD
28412 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28413 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
28414 void *argp1 = 0 ;
28415 int res1 = 0 ;
5c8c7dd3
RD
28416 void *argp2 = 0 ;
28417 int res2 = 0 ;
70d7cb34
RD
28418 PyObject * obj0 = 0 ;
28419 PyObject * obj1 = 0 ;
70d7cb34 28420 char * kwnames[] = {
5c8c7dd3 28421 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
28422 };
28423
5c8c7dd3
RD
28424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28426 if (!SWIG_IsOK(res1)) {
5c8c7dd3 28427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 28428 }
5c8c7dd3
RD
28429 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28430 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28431 if (!SWIG_IsOK(res2)) {
28432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28433 }
28434 if (!argp2) {
28435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28436 }
28437 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 28438 {
5c8c7dd3 28439 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
28440 if (PyErr_Occurred()) SWIG_fail;
28441 }
28442 resultobj = SWIG_Py_Void();
28443 return resultobj;
28444fail:
28445 return NULL;
28446}
28447
28448
5c8c7dd3 28449SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 28450 PyObject *resultobj = 0;
5c8c7dd3 28451 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 28452 wxRect2D result;
70d7cb34
RD
28453 void *argp1 = 0 ;
28454 int res1 = 0 ;
5c8c7dd3 28455 PyObject *swig_obj[1] ;
70d7cb34 28456
5c8c7dd3
RD
28457 if (!args) SWIG_fail;
28458 swig_obj[0] = args;
28459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28460 if (!SWIG_IsOK(res1)) {
8f514ab4 28461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28462 }
5c8c7dd3 28463 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 28464 {
8f514ab4 28465 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
28466 if (PyErr_Occurred()) SWIG_fail;
28467 }
4fe9ce47 28468 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
28469 return resultobj;
28470fail:
28471 return NULL;
28472}
28473
28474
5c8c7dd3 28475SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28476 PyObject *resultobj = 0;
5c8c7dd3
RD
28477 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28478 wxDouble arg2 ;
28479 wxDouble arg3 ;
8f514ab4 28480 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28481 bool result;
70d7cb34
RD
28482 void *argp1 = 0 ;
28483 int res1 = 0 ;
5c8c7dd3
RD
28484 double val2 ;
28485 int ecode2 = 0 ;
28486 double val3 ;
28487 int ecode3 = 0 ;
28488 int val4 ;
28489 int ecode4 = 0 ;
70d7cb34 28490
5c8c7dd3
RD
28491 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28493 if (!SWIG_IsOK(res1)) {
8f514ab4 28494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28495 }
5c8c7dd3
RD
28496 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28497 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28498 if (!SWIG_IsOK(ecode2)) {
28499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28500 }
28501 arg2 = static_cast< wxDouble >(val2);
28502 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28503 if (!SWIG_IsOK(ecode3)) {
28504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28505 }
28506 arg3 = static_cast< wxDouble >(val3);
28507 if (swig_obj[3]) {
28508 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28509 if (!SWIG_IsOK(ecode4)) {
28510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28511 }
28512 arg4 = static_cast< int >(val4);
70d7cb34
RD
28513 }
28514 {
8f514ab4 28515 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
5c8c7dd3
RD
28518 {
28519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28520 }
28521 return resultobj;
28522fail:
28523 return NULL;
28524}
28525
28526
5c8c7dd3 28527SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28528 PyObject *resultobj = 0;
5c8c7dd3 28529 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 28530 wxPoint2D *arg2 = 0 ;
8f514ab4 28531 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28532 bool result;
70d7cb34
RD
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
4fe9ce47 28535 wxPoint2D temp2 ;
5c8c7dd3
RD
28536 int val3 ;
28537 int ecode3 = 0 ;
70d7cb34 28538
5c8c7dd3
RD
28539 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28541 if (!SWIG_IsOK(res1)) {
8f514ab4 28542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28543 }
5c8c7dd3 28544 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
28545 {
28546 arg2 = &temp2;
28547 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 28548 }
5c8c7dd3
RD
28549 if (swig_obj[2]) {
28550 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28551 if (!SWIG_IsOK(ecode3)) {
28552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28553 }
28554 arg3 = static_cast< int >(val3);
70d7cb34
RD
28555 }
28556 {
4fe9ce47 28557 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
5c8c7dd3
RD
28560 {
28561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28562 }
28563 return resultobj;
28564fail:
28565 return NULL;
28566}
28567
28568
5c8c7dd3
RD
28569SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28570 int argc;
28571 PyObject *argv[5];
70d7cb34 28572
5c8c7dd3
RD
28573 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28574 --argc;
28575 if ((argc >= 2) && (argc <= 3)) {
28576 int _v = 0;
28577 {
4fe9ce47
RD
28578 {
28579 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28580 }
5c8c7dd3
RD
28581 }
28582 if (!_v) goto check_1;
28583 if (argc > 2) {
28584 {
28585 {
28586 int res = SWIG_AsVal_int(argv[2], NULL);
28587 _v = SWIG_CheckState(res);
28588 }
28589 }
28590 if (!_v) goto check_1;
28591 }
28592 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 28593 }
5c8c7dd3
RD
28594check_1:
28595
28596 if ((argc >= 3) && (argc <= 4)) {
28597 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 28598 }
5c8c7dd3 28599
70d7cb34 28600fail:
5c8c7dd3 28601 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
28602 return NULL;
28603}
28604
28605
5c8c7dd3 28606SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
28607 PyObject *obj;
28608 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 28609 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
28610 return SWIG_Py_Void();
28611}
28612
5c8c7dd3
RD
28613SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28614 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28615 return 1;
28616}
28617
28618
28619SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28620 PyObject *pyobj = 0;
28621
28622 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28623 return pyobj;
28624}
28625
28626
28627SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28628 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28629 return 1;
28630}
28631
28632
28633SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28634 PyObject *pyobj = 0;
28635
28636 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28637 return pyobj;
28638}
28639
28640
28641SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28642 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28643 return 1;
28644}
28645
28646
28647SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28648 PyObject *pyobj = 0;
28649
28650 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28651 return pyobj;
28652}
28653
28654
28655SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28656 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28657 return 1;
28658}
28659
28660
28661SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28662 PyObject *pyobj = 0;
28663
28664 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28665 return pyobj;
28666}
28667
28668
28669SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28670 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28671 return 1;
28672}
28673
28674
28675SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28676 PyObject *pyobj = 0;
28677
28678 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28679 return pyobj;
28680}
28681
28682
70d7cb34
RD
28683SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28684 PyObject *resultobj = 0;
28685 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28686 void *argp1 = 0 ;
28687 int res1 = 0 ;
28688 PyObject *swig_obj[1] ;
28689
28690 if (!args) SWIG_fail;
28691 swig_obj[0] = args;
28692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28693 if (!SWIG_IsOK(res1)) {
28694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28695 }
28696 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28697 {
28698 delete arg1;
28699
28700 if (PyErr_Occurred()) SWIG_fail;
28701 }
28702 resultobj = SWIG_Py_Void();
28703 return resultobj;
28704fail:
28705 return NULL;
28706}
28707
28708
28709SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28710 PyObject *resultobj = 0;
28711 wxWindowDC *arg1 = 0 ;
28712 wxGraphicsContext *result = 0 ;
28713 void *argp1 = 0 ;
28714 int res1 = 0 ;
28715
28716 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28718 if (!SWIG_IsOK(res1)) {
28719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28720 }
28721 if (!argp1) {
28722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28723 }
28724 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28725 {
28726 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28727 if (PyErr_Occurred()) SWIG_fail;
28728 }
28729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28730 return resultobj;
28731fail:
28732 return NULL;
28733}
28734
28735
28736SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28737 PyObject *resultobj = 0;
28738 wxWindow *arg1 = (wxWindow *) 0 ;
28739 wxGraphicsContext *result = 0 ;
28740 void *argp1 = 0 ;
28741 int res1 = 0 ;
28742
28743 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28745 if (!SWIG_IsOK(res1)) {
28746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28747 }
28748 arg1 = reinterpret_cast< wxWindow * >(argp1);
28749 {
28750 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28751 if (PyErr_Occurred()) SWIG_fail;
28752 }
28753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28754 return resultobj;
28755fail:
28756 return NULL;
28757}
28758
28759
28760SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28761 int argc;
28762 PyObject *argv[2];
28763
28764 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28765 --argc;
28766 if (argc == 1) {
28767 int _v = 0;
28768 {
28769 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28770 _v = SWIG_CheckState(res);
28771 }
28772 if (!_v) goto check_1;
28773 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28774 }
28775check_1:
28776
28777 if (argc == 1) {
28778 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28779 }
28780
28781fail:
28782 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28783 return NULL;
28784}
28785
28786
f89238b9
RD
28787SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28788 PyObject *resultobj = 0;
28789 wxGraphicsContext *result = 0 ;
28790
28791 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28792 {
28793 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28794 if (PyErr_Occurred()) SWIG_fail;
28795 }
28796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28797 return resultobj;
28798fail:
28799 return NULL;
28800}
28801
28802
70d7cb34
RD
28803SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28804 PyObject *resultobj = 0;
28805 void *arg1 = (void *) 0 ;
28806 wxGraphicsContext *result = 0 ;
28807 int res1 ;
28808 PyObject * obj0 = 0 ;
28809 char * kwnames[] = {
28810 (char *) "context", NULL
28811 };
28812
28813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28814 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28815 if (!SWIG_IsOK(res1)) {
28816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28817 }
28818 {
28819 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28820 if (PyErr_Occurred()) SWIG_fail;
28821 }
28822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28823 return resultobj;
28824fail:
28825 return NULL;
28826}
28827
28828
28829SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28830 PyObject *resultobj = 0;
28831 void *arg1 = (void *) 0 ;
28832 wxGraphicsContext *result = 0 ;
28833 int res1 ;
28834 PyObject * obj0 = 0 ;
28835 char * kwnames[] = {
28836 (char *) "window", NULL
28837 };
28838
28839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28840 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28841 if (!SWIG_IsOK(res1)) {
28842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28843 }
28844 {
28845 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28846 if (PyErr_Occurred()) SWIG_fail;
28847 }
28848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28849 return resultobj;
28850fail:
28851 return NULL;
28852}
28853
28854
28855SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28856 PyObject *resultobj = 0;
28857 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28858 wxGraphicsPath result;
70d7cb34
RD
28859 void *argp1 = 0 ;
28860 int res1 = 0 ;
28861 PyObject *swig_obj[1] ;
28862
28863 if (!args) SWIG_fail;
28864 swig_obj[0] = args;
28865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28866 if (!SWIG_IsOK(res1)) {
28867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28868 }
28869 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28870 {
5c8c7dd3 28871 result = (arg1)->CreatePath();
70d7cb34
RD
28872 if (PyErr_Occurred()) SWIG_fail;
28873 }
5c8c7dd3 28874 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28875 return resultobj;
28876fail:
28877 return NULL;
28878}
28879
28880
70d7cb34 28881SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28882 PyObject *resultobj = 0;
70d7cb34
RD
28883 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28884 wxPen *arg2 = 0 ;
28885 wxGraphicsPen result;
72ef6efb
RD
28886 void *argp1 = 0 ;
28887 int res1 = 0 ;
70d7cb34
RD
28888 void *argp2 = 0 ;
28889 int res2 = 0 ;
72ef6efb
RD
28890 PyObject * obj0 = 0 ;
28891 PyObject * obj1 = 0 ;
72ef6efb 28892 char * kwnames[] = {
70d7cb34 28893 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28894 };
28895
70d7cb34
RD
28896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28898 if (!SWIG_IsOK(res1)) {
70d7cb34 28899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28900 }
70d7cb34
RD
28901 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28903 if (!SWIG_IsOK(res2)) {
28904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28905 }
28906 if (!argp2) {
28907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28908 }
28909 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28910 {
70d7cb34 28911 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28912 if (PyErr_Occurred()) SWIG_fail;
28913 }
70d7cb34 28914 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28915 return resultobj;
28916fail:
28917 return NULL;
28918}
28919
28920
70d7cb34 28921SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28922 PyObject *resultobj = 0;
70d7cb34
RD
28923 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28924 wxBrush *arg2 = 0 ;
28925 wxGraphicsBrush result;
72ef6efb
RD
28926 void *argp1 = 0 ;
28927 int res1 = 0 ;
70d7cb34
RD
28928 void *argp2 = 0 ;
28929 int res2 = 0 ;
72ef6efb
RD
28930 PyObject * obj0 = 0 ;
28931 PyObject * obj1 = 0 ;
72ef6efb 28932 char * kwnames[] = {
70d7cb34 28933 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28934 };
28935
70d7cb34
RD
28936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28938 if (!SWIG_IsOK(res1)) {
70d7cb34 28939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28940 }
70d7cb34
RD
28941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28943 if (!SWIG_IsOK(res2)) {
28944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28945 }
28946 if (!argp2) {
28947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28948 }
28949 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28950 {
70d7cb34 28951 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
70d7cb34 28954 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28955 return resultobj;
28956fail:
28957 return NULL;
28958}
28959
28960
70d7cb34 28961SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28962 PyObject *resultobj = 0;
70d7cb34 28963 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28964 wxDouble arg2 ;
28965 wxDouble arg3 ;
28966 wxDouble arg4 ;
28967 wxDouble arg5 ;
70d7cb34
RD
28968 wxColour *arg6 = 0 ;
28969 wxColour *arg7 = 0 ;
28970 wxGraphicsBrush result;
72ef6efb
RD
28971 void *argp1 = 0 ;
28972 int res1 = 0 ;
28973 double val2 ;
28974 int ecode2 = 0 ;
28975 double val3 ;
28976 int ecode3 = 0 ;
28977 double val4 ;
28978 int ecode4 = 0 ;
28979 double val5 ;
28980 int ecode5 = 0 ;
70d7cb34
RD
28981 wxColour temp6 ;
28982 wxColour temp7 ;
72ef6efb
RD
28983 PyObject * obj0 = 0 ;
28984 PyObject * obj1 = 0 ;
28985 PyObject * obj2 = 0 ;
28986 PyObject * obj3 = 0 ;
28987 PyObject * obj4 = 0 ;
70d7cb34
RD
28988 PyObject * obj5 = 0 ;
28989 PyObject * obj6 = 0 ;
72ef6efb 28990 char * kwnames[] = {
70d7cb34 28991 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28992 };
28993
70d7cb34
RD
28994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28996 if (!SWIG_IsOK(res1)) {
70d7cb34 28997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28998 }
70d7cb34 28999 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
29000 ecode2 = SWIG_AsVal_double(obj1, &val2);
29001 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29003 }
29004 arg2 = static_cast< wxDouble >(val2);
29005 ecode3 = SWIG_AsVal_double(obj2, &val3);
29006 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29008 }
29009 arg3 = static_cast< wxDouble >(val3);
29010 ecode4 = SWIG_AsVal_double(obj3, &val4);
29011 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29013 }
29014 arg4 = static_cast< wxDouble >(val4);
29015 ecode5 = SWIG_AsVal_double(obj4, &val5);
29016 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29018 }
29019 arg5 = static_cast< wxDouble >(val5);
29020 {
70d7cb34
RD
29021 arg6 = &temp6;
29022 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 29023 }
70d7cb34
RD
29024 {
29025 arg7 = &temp7;
29026 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 29027 }
72ef6efb 29028 {
70d7cb34 29029 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
29030 if (PyErr_Occurred()) SWIG_fail;
29031 }
70d7cb34 29032 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29033 return resultobj;
29034fail:
29035 return NULL;
29036}
29037
29038
70d7cb34 29039SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29040 PyObject *resultobj = 0;
70d7cb34 29041 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
29042 wxDouble arg2 ;
29043 wxDouble arg3 ;
29044 wxDouble arg4 ;
29045 wxDouble arg5 ;
29046 wxDouble arg6 ;
70d7cb34
RD
29047 wxColour *arg7 = 0 ;
29048 wxColour *arg8 = 0 ;
29049 wxGraphicsBrush result;
72ef6efb
RD
29050 void *argp1 = 0 ;
29051 int res1 = 0 ;
29052 double val2 ;
29053 int ecode2 = 0 ;
29054 double val3 ;
29055 int ecode3 = 0 ;
29056 double val4 ;
29057 int ecode4 = 0 ;
29058 double val5 ;
29059 int ecode5 = 0 ;
29060 double val6 ;
29061 int ecode6 = 0 ;
70d7cb34
RD
29062 wxColour temp7 ;
29063 wxColour temp8 ;
72ef6efb
RD
29064 PyObject * obj0 = 0 ;
29065 PyObject * obj1 = 0 ;
29066 PyObject * obj2 = 0 ;
29067 PyObject * obj3 = 0 ;
29068 PyObject * obj4 = 0 ;
29069 PyObject * obj5 = 0 ;
70d7cb34
RD
29070 PyObject * obj6 = 0 ;
29071 PyObject * obj7 = 0 ;
72ef6efb 29072 char * kwnames[] = {
70d7cb34 29073 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
29074 };
29075
70d7cb34
RD
29076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29078 if (!SWIG_IsOK(res1)) {
70d7cb34 29079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 29080 }
70d7cb34 29081 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
29082 ecode2 = SWIG_AsVal_double(obj1, &val2);
29083 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29085 }
29086 arg2 = static_cast< wxDouble >(val2);
29087 ecode3 = SWIG_AsVal_double(obj2, &val3);
29088 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29090 }
29091 arg3 = static_cast< wxDouble >(val3);
29092 ecode4 = SWIG_AsVal_double(obj3, &val4);
29093 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29095 }
29096 arg4 = static_cast< wxDouble >(val4);
29097 ecode5 = SWIG_AsVal_double(obj4, &val5);
29098 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29100 }
29101 arg5 = static_cast< wxDouble >(val5);
29102 ecode6 = SWIG_AsVal_double(obj5, &val6);
29103 if (!SWIG_IsOK(ecode6)) {
70d7cb34 29104 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
29105 }
29106 arg6 = static_cast< wxDouble >(val6);
29107 {
70d7cb34
RD
29108 arg7 = &temp7;
29109 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29110 }
29111 {
29112 arg8 = &temp8;
29113 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
29114 }
29115 {
29116 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
29117 if (PyErr_Occurred()) SWIG_fail;
29118 }
70d7cb34 29119 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29120 return resultobj;
29121fail:
29122 return NULL;
29123}
29124
29125
70d7cb34 29126SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29127 PyObject *resultobj = 0;
29128 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
29129 wxFont *arg2 = 0 ;
29130 wxColour const &arg3_defvalue = *wxBLACK ;
29131 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29132 wxGraphicsFont result;
72ef6efb
RD
29133 void *argp1 = 0 ;
29134 int res1 = 0 ;
70d7cb34
RD
29135 void *argp2 = 0 ;
29136 int res2 = 0 ;
29137 wxColour temp3 ;
29138 PyObject * obj0 = 0 ;
29139 PyObject * obj1 = 0 ;
29140 PyObject * obj2 = 0 ;
29141 char * kwnames[] = {
29142 (char *) "self",(char *) "font",(char *) "col", NULL
29143 };
72ef6efb 29144
70d7cb34
RD
29145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29147 if (!SWIG_IsOK(res1)) {
70d7cb34 29148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29149 }
29150 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29152 if (!SWIG_IsOK(res2)) {
29153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 29154 }
70d7cb34
RD
29155 if (!argp2) {
29156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 29157 }
70d7cb34
RD
29158 arg2 = reinterpret_cast< wxFont * >(argp2);
29159 if (obj2) {
29160 {
29161 arg3 = &temp3;
29162 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29163 }
72ef6efb 29164 }
72ef6efb 29165 {
70d7cb34 29166 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29167 if (PyErr_Occurred()) SWIG_fail;
29168 }
70d7cb34 29169 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29170 return resultobj;
29171fail:
29172 return NULL;
29173}
29174
29175
70d7cb34 29176SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 29177 PyObject *resultobj = 0;
70d7cb34
RD
29178 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29179 wxDouble arg2 = (wxDouble) 1.0 ;
29180 wxDouble arg3 = (wxDouble) 0.0 ;
29181 wxDouble arg4 = (wxDouble) 0.0 ;
29182 wxDouble arg5 = (wxDouble) 1.0 ;
29183 wxDouble arg6 = (wxDouble) 0.0 ;
29184 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 29185 wxGraphicsMatrix result;
0a27f394
RD
29186 void *argp1 = 0 ;
29187 int res1 = 0 ;
70d7cb34
RD
29188 double val2 ;
29189 int ecode2 = 0 ;
29190 double val3 ;
29191 int ecode3 = 0 ;
29192 double val4 ;
29193 int ecode4 = 0 ;
29194 double val5 ;
29195 int ecode5 = 0 ;
29196 double val6 ;
29197 int ecode6 = 0 ;
29198 double val7 ;
29199 int ecode7 = 0 ;
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 PyObject * obj6 = 0 ;
29207 char * kwnames[] = {
29208 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
29209 };
0a27f394 29210
70d7cb34
RD
29211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 29213 if (!SWIG_IsOK(res1)) {
70d7cb34 29214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 29215 }
70d7cb34
RD
29216 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29217 if (obj1) {
29218 ecode2 = SWIG_AsVal_double(obj1, &val2);
29219 if (!SWIG_IsOK(ecode2)) {
29220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29221 }
29222 arg2 = static_cast< wxDouble >(val2);
0a27f394 29223 }
70d7cb34
RD
29224 if (obj2) {
29225 ecode3 = SWIG_AsVal_double(obj2, &val3);
29226 if (!SWIG_IsOK(ecode3)) {
29227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29228 }
29229 arg3 = static_cast< wxDouble >(val3);
0a27f394 29230 }
70d7cb34
RD
29231 if (obj3) {
29232 ecode4 = SWIG_AsVal_double(obj3, &val4);
29233 if (!SWIG_IsOK(ecode4)) {
29234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29235 }
29236 arg4 = static_cast< wxDouble >(val4);
0a27f394 29237 }
70d7cb34
RD
29238 if (obj4) {
29239 ecode5 = SWIG_AsVal_double(obj4, &val5);
29240 if (!SWIG_IsOK(ecode5)) {
29241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29242 }
29243 arg5 = static_cast< wxDouble >(val5);
0a27f394 29244 }
70d7cb34
RD
29245 if (obj5) {
29246 ecode6 = SWIG_AsVal_double(obj5, &val6);
29247 if (!SWIG_IsOK(ecode6)) {
29248 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29249 }
29250 arg6 = static_cast< wxDouble >(val6);
0a27f394 29251 }
70d7cb34
RD
29252 if (obj6) {
29253 ecode7 = SWIG_AsVal_double(obj6, &val7);
29254 if (!SWIG_IsOK(ecode7)) {
29255 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29256 }
29257 arg7 = static_cast< wxDouble >(val7);
72ef6efb 29258 }
72ef6efb 29259 {
5c8c7dd3 29260 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
29261 if (PyErr_Occurred()) SWIG_fail;
29262 }
5c8c7dd3 29263 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29264 return resultobj;
29265fail:
29266 return NULL;
29267}
29268
29269
29270SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29271 PyObject *resultobj = 0;
29272 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29273 void *argp1 = 0 ;
29274 int res1 = 0 ;
29275 PyObject *swig_obj[1] ;
29276
29277 if (!args) SWIG_fail;
29278 swig_obj[0] = args;
29279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29280 if (!SWIG_IsOK(res1)) {
29281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29282 }
29283 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29284 {
72ef6efb 29285 (arg1)->PushState();
72ef6efb
RD
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
29288 resultobj = SWIG_Py_Void();
29289 return resultobj;
29290fail:
29291 return NULL;
29292}
29293
29294
29295SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29296 PyObject *resultobj = 0;
29297 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29298 void *argp1 = 0 ;
29299 int res1 = 0 ;
29300 PyObject *swig_obj[1] ;
29301
29302 if (!args) SWIG_fail;
29303 swig_obj[0] = args;
29304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29305 if (!SWIG_IsOK(res1)) {
29306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29307 }
29308 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29309 {
72ef6efb 29310 (arg1)->PopState();
72ef6efb
RD
29311 if (PyErr_Occurred()) SWIG_fail;
29312 }
29313 resultobj = SWIG_Py_Void();
29314 return resultobj;
29315fail:
29316 return NULL;
29317}
29318
29319
0a27f394 29320SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29321 PyObject *resultobj = 0;
29322 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29323 wxRegion *arg2 = 0 ;
29324 void *argp1 = 0 ;
29325 int res1 = 0 ;
29326 void *argp2 = 0 ;
29327 int res2 = 0 ;
29328 PyObject * obj0 = 0 ;
29329 PyObject * obj1 = 0 ;
29330 char * kwnames[] = {
29331 (char *) "self",(char *) "region", NULL
29332 };
29333
0a27f394 29334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29336 if (!SWIG_IsOK(res1)) {
0a27f394 29337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29338 }
29339 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
29341 if (!SWIG_IsOK(res2)) {
0a27f394 29342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
29343 }
29344 if (!argp2) {
0a27f394 29345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
29346 }
29347 arg2 = reinterpret_cast< wxRegion * >(argp2);
29348 {
72ef6efb 29349 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
29350 if (PyErr_Occurred()) SWIG_fail;
29351 }
29352 resultobj = SWIG_Py_Void();
29353 return resultobj;
29354fail:
29355 return NULL;
29356}
29357
29358
0a27f394
RD
29359SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29360 PyObject *resultobj = 0;
29361 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29362 wxDouble arg2 ;
29363 wxDouble arg3 ;
29364 wxDouble arg4 ;
29365 wxDouble arg5 ;
29366 void *argp1 = 0 ;
29367 int res1 = 0 ;
29368 double val2 ;
29369 int ecode2 = 0 ;
29370 double val3 ;
29371 int ecode3 = 0 ;
29372 double val4 ;
29373 int ecode4 = 0 ;
29374 double val5 ;
29375 int ecode5 = 0 ;
29376 PyObject * obj0 = 0 ;
29377 PyObject * obj1 = 0 ;
29378 PyObject * obj2 = 0 ;
29379 PyObject * obj3 = 0 ;
29380 PyObject * obj4 = 0 ;
29381 char * kwnames[] = {
29382 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29383 };
29384
29385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29387 if (!SWIG_IsOK(res1)) {
29388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29389 }
29390 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29391 ecode2 = SWIG_AsVal_double(obj1, &val2);
29392 if (!SWIG_IsOK(ecode2)) {
29393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29394 }
29395 arg2 = static_cast< wxDouble >(val2);
29396 ecode3 = SWIG_AsVal_double(obj2, &val3);
29397 if (!SWIG_IsOK(ecode3)) {
29398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29399 }
29400 arg3 = static_cast< wxDouble >(val3);
29401 ecode4 = SWIG_AsVal_double(obj3, &val4);
29402 if (!SWIG_IsOK(ecode4)) {
29403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29404 }
29405 arg4 = static_cast< wxDouble >(val4);
29406 ecode5 = SWIG_AsVal_double(obj4, &val5);
29407 if (!SWIG_IsOK(ecode5)) {
29408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29409 }
29410 arg5 = static_cast< wxDouble >(val5);
29411 {
29412 (arg1)->Clip(arg2,arg3,arg4,arg5);
29413 if (PyErr_Occurred()) SWIG_fail;
29414 }
29415 resultobj = SWIG_Py_Void();
29416 return resultobj;
29417fail:
29418 return NULL;
29419}
29420
29421
29422SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29423 PyObject *resultobj = 0;
29424 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29425 void *argp1 = 0 ;
29426 int res1 = 0 ;
29427 PyObject *swig_obj[1] ;
29428
29429 if (!args) SWIG_fail;
29430 swig_obj[0] = args;
29431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29432 if (!SWIG_IsOK(res1)) {
29433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29434 }
29435 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29436 {
29437 (arg1)->ResetClip();
29438 if (PyErr_Occurred()) SWIG_fail;
29439 }
29440 resultobj = SWIG_Py_Void();
29441 return resultobj;
29442fail:
29443 return NULL;
29444}
29445
29446
29447SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29448 PyObject *resultobj = 0;
29449 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29450 void *result = 0 ;
29451 void *argp1 = 0 ;
29452 int res1 = 0 ;
29453 PyObject *swig_obj[1] ;
29454
29455 if (!args) SWIG_fail;
29456 swig_obj[0] = args;
29457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29458 if (!SWIG_IsOK(res1)) {
29459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29460 }
29461 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29462 {
29463 result = (void *)(arg1)->GetNativeContext();
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29467 return resultobj;
29468fail:
29469 return NULL;
29470}
29471
29472
c8aaaf9e
RD
29473SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29474 PyObject *resultobj = 0;
29475 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29476 int result;
29477 void *argp1 = 0 ;
29478 int res1 = 0 ;
29479 PyObject *swig_obj[1] ;
29480
29481 if (!args) SWIG_fail;
29482 swig_obj[0] = args;
29483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29484 if (!SWIG_IsOK(res1)) {
29485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29486 }
29487 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29488 {
29489 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 resultobj = SWIG_From_int(static_cast< int >(result));
29493 return resultobj;
29494fail:
29495 return NULL;
29496}
29497
29498
29499SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29500 PyObject *resultobj = 0;
29501 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29502 int arg2 ;
29503 bool result;
29504 void *argp1 = 0 ;
29505 int res1 = 0 ;
29506 int val2 ;
29507 int ecode2 = 0 ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 char * kwnames[] = {
29511 (char *) "self",(char *) "function", NULL
29512 };
29513
29514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
29515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29516 if (!SWIG_IsOK(res1)) {
29517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29518 }
29519 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29520 ecode2 = SWIG_AsVal_int(obj1, &val2);
29521 if (!SWIG_IsOK(ecode2)) {
29522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
29523 }
29524 arg2 = static_cast< int >(val2);
29525 {
29526 result = (bool)(arg1)->SetLogicalFunction(arg2);
29527 if (PyErr_Occurred()) SWIG_fail;
29528 }
29529 {
29530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29531 }
29532 return resultobj;
29533fail:
29534 return NULL;
29535}
29536
29537
72ef6efb
RD
29538SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29539 PyObject *resultobj = 0;
29540 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29541 wxDouble arg2 ;
29542 wxDouble arg3 ;
29543 void *argp1 = 0 ;
29544 int res1 = 0 ;
29545 double val2 ;
29546 int ecode2 = 0 ;
29547 double val3 ;
29548 int ecode3 = 0 ;
29549 PyObject * obj0 = 0 ;
29550 PyObject * obj1 = 0 ;
29551 PyObject * obj2 = 0 ;
29552 char * kwnames[] = {
29553 (char *) "self",(char *) "dx",(char *) "dy", NULL
29554 };
29555
29556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29558 if (!SWIG_IsOK(res1)) {
29559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29560 }
29561 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29562 ecode2 = SWIG_AsVal_double(obj1, &val2);
29563 if (!SWIG_IsOK(ecode2)) {
29564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29565 }
29566 arg2 = static_cast< wxDouble >(val2);
29567 ecode3 = SWIG_AsVal_double(obj2, &val3);
29568 if (!SWIG_IsOK(ecode3)) {
29569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29570 }
29571 arg3 = static_cast< wxDouble >(val3);
29572 {
72ef6efb 29573 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
29574 if (PyErr_Occurred()) SWIG_fail;
29575 }
29576 resultobj = SWIG_Py_Void();
29577 return resultobj;
29578fail:
29579 return NULL;
29580}
29581
29582
29583SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj = 0;
29585 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29586 wxDouble arg2 ;
29587 wxDouble arg3 ;
29588 void *argp1 = 0 ;
29589 int res1 = 0 ;
29590 double val2 ;
29591 int ecode2 = 0 ;
29592 double val3 ;
29593 int ecode3 = 0 ;
29594 PyObject * obj0 = 0 ;
29595 PyObject * obj1 = 0 ;
29596 PyObject * obj2 = 0 ;
29597 char * kwnames[] = {
29598 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29599 };
29600
29601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29603 if (!SWIG_IsOK(res1)) {
29604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29605 }
29606 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29607 ecode2 = SWIG_AsVal_double(obj1, &val2);
29608 if (!SWIG_IsOK(ecode2)) {
29609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29610 }
29611 arg2 = static_cast< wxDouble >(val2);
29612 ecode3 = SWIG_AsVal_double(obj2, &val3);
29613 if (!SWIG_IsOK(ecode3)) {
29614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29615 }
29616 arg3 = static_cast< wxDouble >(val3);
29617 {
72ef6efb 29618 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
29619 if (PyErr_Occurred()) SWIG_fail;
29620 }
29621 resultobj = SWIG_Py_Void();
29622 return resultobj;
29623fail:
29624 return NULL;
29625}
29626
29627
29628SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29629 PyObject *resultobj = 0;
29630 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29631 wxDouble arg2 ;
29632 void *argp1 = 0 ;
29633 int res1 = 0 ;
29634 double val2 ;
29635 int ecode2 = 0 ;
29636 PyObject * obj0 = 0 ;
29637 PyObject * obj1 = 0 ;
29638 char * kwnames[] = {
29639 (char *) "self",(char *) "angle", NULL
29640 };
29641
29642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29644 if (!SWIG_IsOK(res1)) {
29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29646 }
29647 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29648 ecode2 = SWIG_AsVal_double(obj1, &val2);
29649 if (!SWIG_IsOK(ecode2)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29651 }
29652 arg2 = static_cast< wxDouble >(val2);
29653 {
72ef6efb 29654 (arg1)->Rotate(arg2);
72ef6efb
RD
29655 if (PyErr_Occurred()) SWIG_fail;
29656 }
29657 resultobj = SWIG_Py_Void();
29658 return resultobj;
29659fail:
29660 return NULL;
29661}
29662
29663
5c8c7dd3
RD
29664SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29665 PyObject *resultobj = 0;
29666 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29667 wxGraphicsMatrix *arg2 = 0 ;
29668 void *argp1 = 0 ;
29669 int res1 = 0 ;
29670 void *argp2 = 0 ;
29671 int res2 = 0 ;
29672 PyObject * obj0 = 0 ;
29673 PyObject * obj1 = 0 ;
29674 char * kwnames[] = {
29675 (char *) "self",(char *) "matrix", NULL
29676 };
29677
29678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29682 }
29683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29685 if (!SWIG_IsOK(res2)) {
29686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29687 }
29688 if (!argp2) {
29689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29690 }
29691 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29692 {
29693 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29694 if (PyErr_Occurred()) SWIG_fail;
29695 }
29696 resultobj = SWIG_Py_Void();
29697 return resultobj;
29698fail:
29699 return NULL;
29700}
29701
29702
29703SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29704 PyObject *resultobj = 0;
29705 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29706 wxGraphicsMatrix *arg2 = 0 ;
29707 void *argp1 = 0 ;
29708 int res1 = 0 ;
29709 void *argp2 = 0 ;
29710 int res2 = 0 ;
29711 PyObject * obj0 = 0 ;
29712 PyObject * obj1 = 0 ;
29713 char * kwnames[] = {
29714 (char *) "self",(char *) "matrix", NULL
29715 };
29716
29717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29719 if (!SWIG_IsOK(res1)) {
29720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29721 }
29722 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29724 if (!SWIG_IsOK(res2)) {
29725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29726 }
29727 if (!argp2) {
29728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29729 }
29730 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29731 {
29732 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29733 if (PyErr_Occurred()) SWIG_fail;
29734 }
29735 resultobj = SWIG_Py_Void();
29736 return resultobj;
29737fail:
29738 return NULL;
29739}
29740
29741
29742SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29743 PyObject *resultobj = 0;
29744 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29745 wxGraphicsMatrix result;
29746 void *argp1 = 0 ;
29747 int res1 = 0 ;
29748 PyObject *swig_obj[1] ;
29749
29750 if (!args) SWIG_fail;
29751 swig_obj[0] = args;
29752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29753 if (!SWIG_IsOK(res1)) {
29754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29755 }
29756 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29757 {
29758 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29759 if (PyErr_Occurred()) SWIG_fail;
29760 }
29761 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29762 return resultobj;
29763fail:
29764 return NULL;
29765}
29766
29767
70d7cb34
RD
29768SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29769 PyObject *resultobj = 0;
29770 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29771 wxGraphicsPen *arg2 = 0 ;
29772 void *argp1 = 0 ;
29773 int res1 = 0 ;
29774 void *argp2 = 0 ;
29775 int res2 = 0 ;
29776
29777 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29779 if (!SWIG_IsOK(res1)) {
29780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29781 }
29782 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29783 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29784 if (!SWIG_IsOK(res2)) {
29785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29786 }
29787 if (!argp2) {
29788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29789 }
29790 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29791 {
29792 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29793 if (PyErr_Occurred()) SWIG_fail;
29794 }
29795 resultobj = SWIG_Py_Void();
29796 return resultobj;
29797fail:
29798 return NULL;
29799}
29800
29801
29802SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29803 PyObject *resultobj = 0;
29804 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29805 wxPen *arg2 = 0 ;
29806 void *argp1 = 0 ;
29807 int res1 = 0 ;
29808 void *argp2 = 0 ;
29809 int res2 = 0 ;
72ef6efb 29810
70d7cb34
RD
29811 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29815 }
29816 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29817 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29818 if (!SWIG_IsOK(res2)) {
29819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29820 }
29821 if (!argp2) {
29822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29823 }
29824 arg2 = reinterpret_cast< wxPen * >(argp2);
29825 {
72ef6efb 29826 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 resultobj = SWIG_Py_Void();
29830 return resultobj;
29831fail:
29832 return NULL;
29833}
29834
29835
70d7cb34
RD
29836SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29837 int argc;
29838 PyObject *argv[3];
29839
29840 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29841 --argc;
29842 if (argc == 2) {
29843 int _v = 0;
29844 {
29845 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29846 _v = SWIG_CheckState(res);
29847 }
29848 if (!_v) goto check_1;
29849 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29850 }
29851check_1:
29852
29853 if (argc == 2) {
29854 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29855 }
29856
29857fail:
29858 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29859 return NULL;
29860}
29861
29862
29863SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29864 PyObject *resultobj = 0;
29865 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29866 wxGraphicsBrush *arg2 = 0 ;
29867 void *argp1 = 0 ;
29868 int res1 = 0 ;
29869 void *argp2 = 0 ;
29870 int res2 = 0 ;
29871
29872 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29874 if (!SWIG_IsOK(res1)) {
29875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29876 }
29877 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29878 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29879 if (!SWIG_IsOK(res2)) {
29880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29881 }
29882 if (!argp2) {
29883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29884 }
29885 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29886 {
29887 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29888 if (PyErr_Occurred()) SWIG_fail;
29889 }
29890 resultobj = SWIG_Py_Void();
29891 return resultobj;
29892fail:
29893 return NULL;
29894}
29895
29896
29897SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29898 PyObject *resultobj = 0;
29899 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29900 wxBrush *arg2 = 0 ;
29901 void *argp1 = 0 ;
29902 int res1 = 0 ;
29903 void *argp2 = 0 ;
29904 int res2 = 0 ;
72ef6efb 29905
70d7cb34
RD
29906 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29908 if (!SWIG_IsOK(res1)) {
29909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29910 }
29911 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29912 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29913 if (!SWIG_IsOK(res2)) {
29914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29915 }
29916 if (!argp2) {
29917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29918 }
29919 arg2 = reinterpret_cast< wxBrush * >(argp2);
29920 {
72ef6efb 29921 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29922 if (PyErr_Occurred()) SWIG_fail;
29923 }
29924 resultobj = SWIG_Py_Void();
29925 return resultobj;
29926fail:
29927 return NULL;
29928}
29929
29930
70d7cb34
RD
29931SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29932 int argc;
29933 PyObject *argv[3];
72ef6efb 29934
70d7cb34
RD
29935 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29936 --argc;
29937 if (argc == 2) {
29938 int _v = 0;
29939 {
29940 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29941 _v = SWIG_CheckState(res);
29942 }
29943 if (!_v) goto check_1;
29944 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29945 }
70d7cb34
RD
29946check_1:
29947
29948 if (argc == 2) {
29949 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29950 }
70d7cb34 29951
72ef6efb 29952fail:
70d7cb34 29953 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29954 return NULL;
29955}
29956
29957
70d7cb34 29958SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29959 PyObject *resultobj = 0;
29960 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29961 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29962 void *argp1 = 0 ;
29963 int res1 = 0 ;
70d7cb34
RD
29964 void *argp2 = 0 ;
29965 int res2 = 0 ;
72ef6efb 29966
70d7cb34
RD
29967 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29969 if (!SWIG_IsOK(res1)) {
70d7cb34 29970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29971 }
29972 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29973 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29974 if (!SWIG_IsOK(res2)) {
29975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29976 }
70d7cb34
RD
29977 if (!argp2) {
29978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29979 }
70d7cb34 29980 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29981 {
70d7cb34 29982 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29983 if (PyErr_Occurred()) SWIG_fail;
29984 }
29985 resultobj = SWIG_Py_Void();
29986 return resultobj;
29987fail:
29988 return NULL;
29989}
29990
29991
70d7cb34 29992SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29993 PyObject *resultobj = 0;
29994 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29995 wxFont *arg2 = 0 ;
70d7cb34
RD
29996 wxColour const &arg3_defvalue = *wxBLACK ;
29997 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29998 void *argp1 = 0 ;
29999 int res1 = 0 ;
30000 void *argp2 = 0 ;
30001 int res2 = 0 ;
70d7cb34 30002 wxColour temp3 ;
72ef6efb 30003
70d7cb34
RD
30004 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
30005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
30006 if (!SWIG_IsOK(res1)) {
30007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30008 }
30009 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 30010 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
30011 if (!SWIG_IsOK(res2)) {
30012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30013 }
30014 if (!argp2) {
30015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30016 }
30017 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
30018 if (swig_obj[2]) {
30019 {
30020 arg3 = &temp3;
30021 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
30022 }
30023 }
72ef6efb 30024 {
70d7cb34 30025 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
30026 if (PyErr_Occurred()) SWIG_fail;
30027 }
30028 resultobj = SWIG_Py_Void();
30029 return resultobj;
30030fail:
30031 return NULL;
30032}
30033
30034
70d7cb34
RD
30035SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
30036 int argc;
30037 PyObject *argv[4];
72ef6efb 30038
70d7cb34
RD
30039 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
30040 --argc;
30041 if (argc == 2) {
30042 int _v = 0;
30043 {
30044 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
30045 _v = SWIG_CheckState(res);
30046 }
30047 if (!_v) goto check_1;
30048 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 30049 }
70d7cb34
RD
30050check_1:
30051
30052 if ((argc >= 2) && (argc <= 3)) {
30053 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 30054 }
70d7cb34 30055
72ef6efb 30056fail:
70d7cb34 30057 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
30058 return NULL;
30059}
30060
30061
30062SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30063 PyObject *resultobj = 0;
30064 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 30065 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
30066 void *argp1 = 0 ;
30067 int res1 = 0 ;
30068 void *argp2 = 0 ;
30069 int res2 = 0 ;
30070 PyObject * obj0 = 0 ;
30071 PyObject * obj1 = 0 ;
30072 char * kwnames[] = {
30073 (char *) "self",(char *) "path", NULL
30074 };
30075
30076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
30077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30078 if (!SWIG_IsOK(res1)) {
30079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30080 }
30081 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 30082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 30083 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
30084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30085 }
30086 if (!argp2) {
30087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
30088 }
30089 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30090 {
5c8c7dd3 30091 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
30092 if (PyErr_Occurred()) SWIG_fail;
30093 }
30094 resultobj = SWIG_Py_Void();
30095 return resultobj;
30096fail:
30097 return NULL;
30098}
30099
30100
30101SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30102 PyObject *resultobj = 0;
30103 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 30104 wxGraphicsPath *arg2 = 0 ;
8f514ab4 30105 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
30106 void *argp1 = 0 ;
30107 int res1 = 0 ;
30108 void *argp2 = 0 ;
30109 int res2 = 0 ;
30110 int val3 ;
30111 int ecode3 = 0 ;
30112 PyObject * obj0 = 0 ;
30113 PyObject * obj1 = 0 ;
30114 PyObject * obj2 = 0 ;
30115 char * kwnames[] = {
30116 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
30117 };
30118
30119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30121 if (!SWIG_IsOK(res1)) {
30122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30123 }
30124 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 30125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 30126 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
30127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30128 }
30129 if (!argp2) {
30130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
30131 }
30132 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30133 if (obj2) {
30134 ecode3 = SWIG_AsVal_int(obj2, &val3);
30135 if (!SWIG_IsOK(ecode3)) {
30136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
30137 }
30138 arg3 = static_cast< int >(val3);
30139 }
30140 {
5c8c7dd3 30141 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
30142 if (PyErr_Occurred()) SWIG_fail;
30143 }
30144 resultobj = SWIG_Py_Void();
30145 return resultobj;
30146fail:
30147 return NULL;
30148}
30149
30150
30151SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30152 PyObject *resultobj = 0;
30153 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 30154 wxGraphicsPath *arg2 = 0 ;
8f514ab4 30155 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
30156 void *argp1 = 0 ;
30157 int res1 = 0 ;
30158 void *argp2 = 0 ;
30159 int res2 = 0 ;
30160 int val3 ;
30161 int ecode3 = 0 ;
30162 PyObject * obj0 = 0 ;
30163 PyObject * obj1 = 0 ;
30164 PyObject * obj2 = 0 ;
30165 char * kwnames[] = {
30166 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
30167 };
30168
30169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30171 if (!SWIG_IsOK(res1)) {
30172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30173 }
30174 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 30175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 30176 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
30177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30178 }
30179 if (!argp2) {
30180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
30181 }
30182 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30183 if (obj2) {
30184 ecode3 = SWIG_AsVal_int(obj2, &val3);
30185 if (!SWIG_IsOK(ecode3)) {
30186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
30187 }
30188 arg3 = static_cast< int >(val3);
30189 }
30190 {
5c8c7dd3 30191 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
30192 if (PyErr_Occurred()) SWIG_fail;
30193 }
30194 resultobj = SWIG_Py_Void();
30195 return resultobj;
30196fail:
30197 return NULL;
30198}
30199
30200
b39fe951 30201SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30202 PyObject *resultobj = 0;
30203 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30204 wxString *arg2 = 0 ;
30205 wxDouble arg3 ;
30206 wxDouble arg4 ;
f89238b9
RD
30207 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
30208 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
30209 void *argp1 = 0 ;
30210 int res1 = 0 ;
30211 bool temp2 = false ;
30212 double val3 ;
30213 int ecode3 = 0 ;
30214 double val4 ;
30215 int ecode4 = 0 ;
f89238b9
RD
30216 void *argp5 = 0 ;
30217 int res5 = 0 ;
b39fe951
RD
30218 PyObject * obj0 = 0 ;
30219 PyObject * obj1 = 0 ;
30220 PyObject * obj2 = 0 ;
30221 PyObject * obj3 = 0 ;
f89238b9 30222 PyObject * obj4 = 0 ;
b39fe951 30223 char * kwnames[] = {
f89238b9 30224 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 30225 };
72ef6efb 30226
f89238b9 30227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 30228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
30229 if (!SWIG_IsOK(res1)) {
30230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30231 }
30232 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30233 {
b39fe951 30234 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
30235 if (arg2 == NULL) SWIG_fail;
30236 temp2 = true;
30237 }
b39fe951 30238 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
30239 if (!SWIG_IsOK(ecode3)) {
30240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
30241 }
30242 arg3 = static_cast< wxDouble >(val3);
b39fe951 30243 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
30244 if (!SWIG_IsOK(ecode4)) {
30245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
30246 }
30247 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
30248 if (obj4) {
30249 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30250 if (!SWIG_IsOK(res5)) {
30251 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
30252 }
30253 if (!argp5) {
30254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
30255 }
30256 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
30257 }
72ef6efb 30258 {
f89238b9 30259 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
30260 if (PyErr_Occurred()) SWIG_fail;
30261 }
30262 resultobj = SWIG_Py_Void();
30263 {
30264 if (temp2)
30265 delete arg2;
30266 }
30267 return resultobj;
30268fail:
30269 {
30270 if (temp2)
30271 delete arg2;
30272 }
30273 return NULL;
30274}
30275
30276
b39fe951 30277SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30278 PyObject *resultobj = 0;
30279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30280 wxString *arg2 = 0 ;
30281 wxDouble arg3 ;
30282 wxDouble arg4 ;
30283 wxDouble arg5 ;
f89238b9
RD
30284 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
30285 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
30286 void *argp1 = 0 ;
30287 int res1 = 0 ;
30288 bool temp2 = false ;
30289 double val3 ;
30290 int ecode3 = 0 ;
30291 double val4 ;
30292 int ecode4 = 0 ;
30293 double val5 ;
30294 int ecode5 = 0 ;
f89238b9
RD
30295 void *argp6 = 0 ;
30296 int res6 = 0 ;
b39fe951
RD
30297 PyObject * obj0 = 0 ;
30298 PyObject * obj1 = 0 ;
30299 PyObject * obj2 = 0 ;
30300 PyObject * obj3 = 0 ;
30301 PyObject * obj4 = 0 ;
f89238b9 30302 PyObject * obj5 = 0 ;
b39fe951 30303 char * kwnames[] = {
f89238b9 30304 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 30305 };
72ef6efb 30306
f89238b9 30307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 30308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30309 if (!SWIG_IsOK(res1)) {
b39fe951 30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30311 }
30312 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30313 {
b39fe951 30314 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
30315 if (arg2 == NULL) SWIG_fail;
30316 temp2 = true;
30317 }
b39fe951 30318 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 30319 if (!SWIG_IsOK(ecode3)) {
b39fe951 30320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30321 }
30322 arg3 = static_cast< wxDouble >(val3);
b39fe951 30323 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 30324 if (!SWIG_IsOK(ecode4)) {
b39fe951 30325 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30326 }
30327 arg4 = static_cast< wxDouble >(val4);
b39fe951 30328 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 30329 if (!SWIG_IsOK(ecode5)) {
b39fe951 30330 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30331 }
30332 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
30333 if (obj5) {
30334 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30335 if (!SWIG_IsOK(res6)) {
30336 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30337 }
30338 if (!argp6) {
30339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30340 }
30341 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
30342 }
72ef6efb 30343 {
f89238b9 30344 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
30345 if (PyErr_Occurred()) SWIG_fail;
30346 }
30347 resultobj = SWIG_Py_Void();
30348 {
30349 if (temp2)
30350 delete arg2;
30351 }
30352 return resultobj;
30353fail:
30354 {
30355 if (temp2)
30356 delete arg2;
30357 }
30358 return NULL;
30359}
30360
30361
be68621e 30362SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30363 PyObject *resultobj = 0;
30364 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30365 wxString *arg2 = 0 ;
30366 wxDouble *arg3 = (wxDouble *) 0 ;
30367 wxDouble *arg4 = (wxDouble *) 0 ;
30368 wxDouble *arg5 = (wxDouble *) 0 ;
30369 wxDouble *arg6 = (wxDouble *) 0 ;
30370 void *argp1 = 0 ;
30371 int res1 = 0 ;
30372 bool temp2 = false ;
30373 wxDouble temp3 ;
30374 int res3 = SWIG_TMPOBJ ;
30375 wxDouble temp4 ;
30376 int res4 = SWIG_TMPOBJ ;
30377 wxDouble temp5 ;
30378 int res5 = SWIG_TMPOBJ ;
30379 wxDouble temp6 ;
30380 int res6 = SWIG_TMPOBJ ;
30381 PyObject * obj0 = 0 ;
30382 PyObject * obj1 = 0 ;
30383 char * kwnames[] = {
30384 (char *) "self",(char *) "text", NULL
30385 };
30386
30387 arg3 = &temp3;
30388 arg4 = &temp4;
30389 arg5 = &temp5;
30390 arg6 = &temp6;
be68621e 30391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
30392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30393 if (!SWIG_IsOK(res1)) {
be68621e 30394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30395 }
30396 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30397 {
30398 arg2 = wxString_in_helper(obj1);
30399 if (arg2 == NULL) SWIG_fail;
30400 temp2 = true;
30401 }
30402 {
72ef6efb 30403 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30404 if (PyErr_Occurred()) SWIG_fail;
30405 }
30406 resultobj = SWIG_Py_Void();
30407 if (SWIG_IsTmpObj(res3)) {
30408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
30409 } else {
30410 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
30412 }
30413 if (SWIG_IsTmpObj(res4)) {
30414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
30415 } else {
30416 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
30418 }
30419 if (SWIG_IsTmpObj(res5)) {
30420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
30421 } else {
30422 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
30424 }
30425 if (SWIG_IsTmpObj(res6)) {
30426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
30427 } else {
30428 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
30430 }
30431 {
30432 if (temp2)
30433 delete arg2;
30434 }
30435 return resultobj;
30436fail:
30437 {
30438 if (temp2)
30439 delete arg2;
30440 }
30441 return NULL;
30442}
30443
30444
be68621e
RD
30445SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30446 PyObject *resultobj = 0;
30447 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30448 wxString *arg2 = 0 ;
30449 PyObject *result = 0 ;
30450 void *argp1 = 0 ;
30451 int res1 = 0 ;
30452 bool temp2 = false ;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 char * kwnames[] = {
30456 (char *) "self",(char *) "text", NULL
30457 };
30458
30459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30461 if (!SWIG_IsOK(res1)) {
30462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30463 }
30464 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30465 {
30466 arg2 = wxString_in_helper(obj1);
30467 if (arg2 == NULL) SWIG_fail;
30468 temp2 = true;
30469 }
30470 {
30471 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30472 if (PyErr_Occurred()) SWIG_fail;
30473 }
30474 resultobj = result;
30475 {
30476 if (temp2)
30477 delete arg2;
30478 }
30479 return resultobj;
30480fail:
30481 {
30482 if (temp2)
30483 delete arg2;
30484 }
30485 return NULL;
30486}
30487
30488
72ef6efb
RD
30489SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30490 PyObject *resultobj = 0;
30491 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30492 wxString *arg2 = 0 ;
b39fe951 30493 wxArrayDouble result;
72ef6efb
RD
30494 void *argp1 = 0 ;
30495 int res1 = 0 ;
30496 bool temp2 = false ;
72ef6efb
RD
30497 PyObject * obj0 = 0 ;
30498 PyObject * obj1 = 0 ;
72ef6efb 30499 char * kwnames[] = {
b39fe951 30500 (char *) "self",(char *) "text", NULL
72ef6efb
RD
30501 };
30502
b39fe951 30503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
30504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30505 if (!SWIG_IsOK(res1)) {
b39fe951 30506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30507 }
30508 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30509 {
30510 arg2 = wxString_in_helper(obj1);
30511 if (arg2 == NULL) SWIG_fail;
30512 temp2 = true;
30513 }
72ef6efb 30514 {
b39fe951 30515 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
30516 if (PyErr_Occurred()) SWIG_fail;
30517 }
b39fe951
RD
30518 {
30519 resultobj = wxArrayDouble2PyList_helper(result);
30520 }
72ef6efb
RD
30521 {
30522 if (temp2)
30523 delete arg2;
30524 }
30525 return resultobj;
30526fail:
30527 {
30528 if (temp2)
30529 delete arg2;
30530 }
30531 return NULL;
30532}
30533
30534
30535SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30536 PyObject *resultobj = 0;
30537 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30538 wxBitmap *arg2 = 0 ;
30539 wxDouble arg3 ;
30540 wxDouble arg4 ;
30541 wxDouble arg5 ;
30542 wxDouble arg6 ;
30543 void *argp1 = 0 ;
30544 int res1 = 0 ;
30545 void *argp2 = 0 ;
30546 int res2 = 0 ;
30547 double val3 ;
30548 int ecode3 = 0 ;
30549 double val4 ;
30550 int ecode4 = 0 ;
30551 double val5 ;
30552 int ecode5 = 0 ;
30553 double val6 ;
30554 int ecode6 = 0 ;
30555 PyObject * obj0 = 0 ;
30556 PyObject * obj1 = 0 ;
30557 PyObject * obj2 = 0 ;
30558 PyObject * obj3 = 0 ;
30559 PyObject * obj4 = 0 ;
30560 PyObject * obj5 = 0 ;
30561 char * kwnames[] = {
30562 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30563 };
30564
30565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30567 if (!SWIG_IsOK(res1)) {
30568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30569 }
30570 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30572 if (!SWIG_IsOK(res2)) {
30573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30574 }
30575 if (!argp2) {
30576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30577 }
30578 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30579 ecode3 = SWIG_AsVal_double(obj2, &val3);
30580 if (!SWIG_IsOK(ecode3)) {
30581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30582 }
30583 arg3 = static_cast< wxDouble >(val3);
30584 ecode4 = SWIG_AsVal_double(obj3, &val4);
30585 if (!SWIG_IsOK(ecode4)) {
30586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30587 }
30588 arg4 = static_cast< wxDouble >(val4);
30589 ecode5 = SWIG_AsVal_double(obj4, &val5);
30590 if (!SWIG_IsOK(ecode5)) {
30591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30592 }
30593 arg5 = static_cast< wxDouble >(val5);
30594 ecode6 = SWIG_AsVal_double(obj5, &val6);
30595 if (!SWIG_IsOK(ecode6)) {
30596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30597 }
30598 arg6 = static_cast< wxDouble >(val6);
30599 {
72ef6efb 30600 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30601 if (PyErr_Occurred()) SWIG_fail;
30602 }
30603 resultobj = SWIG_Py_Void();
30604 return resultobj;
30605fail:
30606 return NULL;
30607}
30608
30609
30610SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30611 PyObject *resultobj = 0;
30612 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30613 wxIcon *arg2 = 0 ;
30614 wxDouble arg3 ;
30615 wxDouble arg4 ;
30616 wxDouble arg5 ;
30617 wxDouble arg6 ;
30618 void *argp1 = 0 ;
30619 int res1 = 0 ;
30620 void *argp2 = 0 ;
30621 int res2 = 0 ;
30622 double val3 ;
30623 int ecode3 = 0 ;
30624 double val4 ;
30625 int ecode4 = 0 ;
30626 double val5 ;
30627 int ecode5 = 0 ;
70d7cb34
RD
30628 double val6 ;
30629 int ecode6 = 0 ;
30630 PyObject * obj0 = 0 ;
30631 PyObject * obj1 = 0 ;
30632 PyObject * obj2 = 0 ;
30633 PyObject * obj3 = 0 ;
30634 PyObject * obj4 = 0 ;
30635 PyObject * obj5 = 0 ;
30636 char * kwnames[] = {
30637 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30638 };
30639
30640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30642 if (!SWIG_IsOK(res1)) {
30643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30644 }
30645 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30647 if (!SWIG_IsOK(res2)) {
30648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30649 }
30650 if (!argp2) {
30651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30652 }
30653 arg2 = reinterpret_cast< wxIcon * >(argp2);
30654 ecode3 = SWIG_AsVal_double(obj2, &val3);
30655 if (!SWIG_IsOK(ecode3)) {
30656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30657 }
30658 arg3 = static_cast< wxDouble >(val3);
30659 ecode4 = SWIG_AsVal_double(obj3, &val4);
30660 if (!SWIG_IsOK(ecode4)) {
30661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30662 }
30663 arg4 = static_cast< wxDouble >(val4);
30664 ecode5 = SWIG_AsVal_double(obj4, &val5);
30665 if (!SWIG_IsOK(ecode5)) {
30666 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30667 }
30668 arg5 = static_cast< wxDouble >(val5);
30669 ecode6 = SWIG_AsVal_double(obj5, &val6);
30670 if (!SWIG_IsOK(ecode6)) {
30671 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30672 }
30673 arg6 = static_cast< wxDouble >(val6);
30674 {
30675 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30676 if (PyErr_Occurred()) SWIG_fail;
30677 }
30678 resultobj = SWIG_Py_Void();
30679 return resultobj;
30680fail:
30681 return NULL;
30682}
30683
30684
30685SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30686 PyObject *resultobj = 0;
30687 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30688 wxDouble arg2 ;
30689 wxDouble arg3 ;
30690 wxDouble arg4 ;
30691 wxDouble arg5 ;
30692 void *argp1 = 0 ;
30693 int res1 = 0 ;
30694 double val2 ;
30695 int ecode2 = 0 ;
30696 double val3 ;
30697 int ecode3 = 0 ;
30698 double val4 ;
30699 int ecode4 = 0 ;
30700 double val5 ;
30701 int ecode5 = 0 ;
30702 PyObject * obj0 = 0 ;
30703 PyObject * obj1 = 0 ;
30704 PyObject * obj2 = 0 ;
30705 PyObject * obj3 = 0 ;
30706 PyObject * obj4 = 0 ;
30707 char * kwnames[] = {
30708 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30709 };
30710
30711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30713 if (!SWIG_IsOK(res1)) {
30714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30715 }
30716 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30717 ecode2 = SWIG_AsVal_double(obj1, &val2);
30718 if (!SWIG_IsOK(ecode2)) {
30719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30720 }
30721 arg2 = static_cast< wxDouble >(val2);
30722 ecode3 = SWIG_AsVal_double(obj2, &val3);
30723 if (!SWIG_IsOK(ecode3)) {
30724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30725 }
30726 arg3 = static_cast< wxDouble >(val3);
30727 ecode4 = SWIG_AsVal_double(obj3, &val4);
30728 if (!SWIG_IsOK(ecode4)) {
30729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30730 }
30731 arg4 = static_cast< wxDouble >(val4);
30732 ecode5 = SWIG_AsVal_double(obj4, &val5);
30733 if (!SWIG_IsOK(ecode5)) {
30734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30735 }
30736 arg5 = static_cast< wxDouble >(val5);
30737 {
30738 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 resultobj = SWIG_Py_Void();
30742 return resultobj;
30743fail:
30744 return NULL;
30745}
30746
30747
30748SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30749 PyObject *resultobj = 0;
30750 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30751 size_t arg2 ;
30752 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30753 void *argp1 = 0 ;
30754 int res1 = 0 ;
30755 PyObject * obj0 = 0 ;
30756 PyObject * obj1 = 0 ;
30757 char * kwnames[] = {
30758 (char *) "self",(char *) "points", NULL
30759 };
30760
30761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30765 }
30766 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30767 {
30768 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30769 if (arg3 == NULL) SWIG_fail;
30770 }
30771 {
30772 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_Py_Void();
30776 {
30777 if (arg3) delete [] arg3;
30778 }
30779 return resultobj;
30780fail:
30781 {
30782 if (arg3) delete [] arg3;
30783 }
30784 return NULL;
30785}
30786
30787
30788SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30789 PyObject *resultobj = 0;
30790 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30791 PyObject *arg2 = (PyObject *) 0 ;
30792 PyObject *arg3 = (PyObject *) 0 ;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 PyObject * obj0 = 0 ;
30796 PyObject * obj1 = 0 ;
30797 PyObject * obj2 = 0 ;
30798 char * kwnames[] = {
30799 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30800 };
30801
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30806 }
30807 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30808 arg2 = obj1;
30809 arg3 = obj2;
30810 {
30811 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30812 if (PyErr_Occurred()) SWIG_fail;
30813 }
30814 resultobj = SWIG_Py_Void();
30815 return resultobj;
30816fail:
30817 return NULL;
30818}
30819
30820
30821SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30822 PyObject *resultobj = 0;
30823 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30824 size_t arg2 ;
30825 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 30826 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 int val4 ;
30830 int ecode4 = 0 ;
30831 PyObject * obj0 = 0 ;
30832 PyObject * obj1 = 0 ;
30833 PyObject * obj2 = 0 ;
30834 char * kwnames[] = {
30835 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30836 };
30837
30838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30840 if (!SWIG_IsOK(res1)) {
30841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30842 }
30843 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30844 {
30845 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30846 if (arg3 == NULL) SWIG_fail;
30847 }
30848 if (obj2) {
30849 ecode4 = SWIG_AsVal_int(obj2, &val4);
30850 if (!SWIG_IsOK(ecode4)) {
30851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30852 }
30853 arg4 = static_cast< int >(val4);
30854 }
30855 {
30856 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30857 if (PyErr_Occurred()) SWIG_fail;
30858 }
30859 resultobj = SWIG_Py_Void();
30860 {
30861 if (arg3) delete [] arg3;
30862 }
30863 return resultobj;
30864fail:
30865 {
30866 if (arg3) delete [] arg3;
30867 }
30868 return NULL;
30869}
30870
30871
30872SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30873 PyObject *resultobj = 0;
30874 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30875 wxDouble arg2 ;
30876 wxDouble arg3 ;
30877 wxDouble arg4 ;
30878 wxDouble arg5 ;
30879 void *argp1 = 0 ;
30880 int res1 = 0 ;
30881 double val2 ;
30882 int ecode2 = 0 ;
30883 double val3 ;
30884 int ecode3 = 0 ;
30885 double val4 ;
30886 int ecode4 = 0 ;
30887 double val5 ;
30888 int ecode5 = 0 ;
30889 PyObject * obj0 = 0 ;
30890 PyObject * obj1 = 0 ;
30891 PyObject * obj2 = 0 ;
30892 PyObject * obj3 = 0 ;
30893 PyObject * obj4 = 0 ;
30894 char * kwnames[] = {
30895 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30896 };
30897
30898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30902 }
30903 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30904 ecode2 = SWIG_AsVal_double(obj1, &val2);
30905 if (!SWIG_IsOK(ecode2)) {
30906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30907 }
30908 arg2 = static_cast< wxDouble >(val2);
30909 ecode3 = SWIG_AsVal_double(obj2, &val3);
30910 if (!SWIG_IsOK(ecode3)) {
30911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30912 }
30913 arg3 = static_cast< wxDouble >(val3);
30914 ecode4 = SWIG_AsVal_double(obj3, &val4);
30915 if (!SWIG_IsOK(ecode4)) {
30916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30917 }
30918 arg4 = static_cast< wxDouble >(val4);
30919 ecode5 = SWIG_AsVal_double(obj4, &val5);
30920 if (!SWIG_IsOK(ecode5)) {
30921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30922 }
30923 arg5 = static_cast< wxDouble >(val5);
30924 {
30925 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30926 if (PyErr_Occurred()) SWIG_fail;
30927 }
30928 resultobj = SWIG_Py_Void();
30929 return resultobj;
30930fail:
30931 return NULL;
30932}
30933
30934
30935SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30936 PyObject *resultobj = 0;
30937 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30938 wxDouble arg2 ;
30939 wxDouble arg3 ;
30940 wxDouble arg4 ;
30941 wxDouble arg5 ;
30942 void *argp1 = 0 ;
30943 int res1 = 0 ;
30944 double val2 ;
30945 int ecode2 = 0 ;
30946 double val3 ;
30947 int ecode3 = 0 ;
30948 double val4 ;
30949 int ecode4 = 0 ;
30950 double val5 ;
30951 int ecode5 = 0 ;
72ef6efb
RD
30952 PyObject * obj0 = 0 ;
30953 PyObject * obj1 = 0 ;
30954 PyObject * obj2 = 0 ;
30955 PyObject * obj3 = 0 ;
30956 PyObject * obj4 = 0 ;
72ef6efb 30957 char * kwnames[] = {
70d7cb34 30958 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30959 };
30960
70d7cb34 30961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30963 if (!SWIG_IsOK(res1)) {
70d7cb34 30964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30965 }
30966 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30967 ecode2 = SWIG_AsVal_double(obj1, &val2);
30968 if (!SWIG_IsOK(ecode2)) {
30969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30970 }
30971 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30972 ecode3 = SWIG_AsVal_double(obj2, &val3);
30973 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30975 }
30976 arg3 = static_cast< wxDouble >(val3);
30977 ecode4 = SWIG_AsVal_double(obj3, &val4);
30978 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30980 }
30981 arg4 = static_cast< wxDouble >(val4);
30982 ecode5 = SWIG_AsVal_double(obj4, &val5);
30983 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30985 }
30986 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30987 {
70d7cb34 30988 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30989 if (PyErr_Occurred()) SWIG_fail;
30990 }
30991 resultobj = SWIG_Py_Void();
30992 return resultobj;
30993fail:
30994 return NULL;
30995}
30996
30997
70d7cb34 30998SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30999 PyObject *resultobj = 0;
31000 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31001 wxDouble arg2 ;
31002 wxDouble arg3 ;
31003 wxDouble arg4 ;
31004 wxDouble arg5 ;
70d7cb34 31005 wxDouble arg6 ;
72ef6efb
RD
31006 void *argp1 = 0 ;
31007 int res1 = 0 ;
31008 double val2 ;
31009 int ecode2 = 0 ;
31010 double val3 ;
31011 int ecode3 = 0 ;
31012 double val4 ;
31013 int ecode4 = 0 ;
31014 double val5 ;
31015 int ecode5 = 0 ;
70d7cb34
RD
31016 double val6 ;
31017 int ecode6 = 0 ;
72ef6efb
RD
31018 PyObject * obj0 = 0 ;
31019 PyObject * obj1 = 0 ;
31020 PyObject * obj2 = 0 ;
31021 PyObject * obj3 = 0 ;
31022 PyObject * obj4 = 0 ;
70d7cb34 31023 PyObject * obj5 = 0 ;
72ef6efb 31024 char * kwnames[] = {
70d7cb34 31025 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
31026 };
31027
70d7cb34 31028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
31029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31030 if (!SWIG_IsOK(res1)) {
70d7cb34 31031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
31032 }
31033 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31034 ecode2 = SWIG_AsVal_double(obj1, &val2);
31035 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31037 }
31038 arg2 = static_cast< wxDouble >(val2);
31039 ecode3 = SWIG_AsVal_double(obj2, &val3);
31040 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31042 }
31043 arg3 = static_cast< wxDouble >(val3);
31044 ecode4 = SWIG_AsVal_double(obj3, &val4);
31045 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31047 }
31048 arg4 = static_cast< wxDouble >(val4);
31049 ecode5 = SWIG_AsVal_double(obj4, &val5);
31050 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31052 }
31053 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
31054 ecode6 = SWIG_AsVal_double(obj5, &val6);
31055 if (!SWIG_IsOK(ecode6)) {
31056 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
31057 }
31058 arg6 = static_cast< wxDouble >(val6);
72ef6efb 31059 {
70d7cb34 31060 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
31061 if (PyErr_Occurred()) SWIG_fail;
31062 }
31063 resultobj = SWIG_Py_Void();
31064 return resultobj;
31065fail:
31066 return NULL;
31067}
31068
31069
70d7cb34 31070SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31071 PyObject *resultobj = 0;
31072 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 31073 bool result;
72ef6efb
RD
31074 void *argp1 = 0 ;
31075 int res1 = 0 ;
70d7cb34 31076 PyObject *swig_obj[1] ;
72ef6efb 31077
70d7cb34
RD
31078 if (!args) SWIG_fail;
31079 swig_obj[0] = args;
31080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 31081 if (!SWIG_IsOK(res1)) {
70d7cb34 31082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
31083 }
31084 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 31085 {
70d7cb34
RD
31086 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
31087 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 31088 }
72ef6efb 31089 {
70d7cb34
RD
31090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31091 }
31092 return resultobj;
31093fail:
31094 return NULL;
31095}
31096
31097
31098SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31099 PyObject *obj;
31100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31101 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
31102 return SWIG_Py_Void();
31103}
31104
31105SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31106 PyObject *resultobj = 0;
31107 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31108 void *argp1 = 0 ;
31109 int res1 = 0 ;
31110 PyObject *swig_obj[1] ;
31111
31112 if (!args) SWIG_fail;
31113 swig_obj[0] = args;
31114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
31115 if (!SWIG_IsOK(res1)) {
31116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31117 }
31118 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31119 {
31120 delete arg1;
31121
72ef6efb
RD
31122 if (PyErr_Occurred()) SWIG_fail;
31123 }
31124 resultobj = SWIG_Py_Void();
70d7cb34
RD
31125 return resultobj;
31126fail:
31127 return NULL;
31128}
31129
31130
31131SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31132 PyObject *resultobj = 0;
31133 wxGraphicsRenderer *result = 0 ;
31134
31135 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 31136 {
70d7cb34
RD
31137 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
31138 if (PyErr_Occurred()) SWIG_fail;
31139 }
31140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31141 return resultobj;
31142fail:
31143 return NULL;
31144}
31145
31146
31147SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31148 PyObject *resultobj = 0;
31149 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31150 wxWindowDC *arg2 = 0 ;
31151 wxGraphicsContext *result = 0 ;
31152 void *argp1 = 0 ;
31153 int res1 = 0 ;
31154 void *argp2 = 0 ;
31155 int res2 = 0 ;
31156
31157 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31159 if (!SWIG_IsOK(res1)) {
31160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31161 }
31162 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31163 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
31164 if (!SWIG_IsOK(res2)) {
31165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
31166 }
31167 if (!argp2) {
31168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
31169 }
31170 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31171 {
31172 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
31173 if (PyErr_Occurred()) SWIG_fail;
b39fe951 31174 }
70d7cb34 31175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31176 return resultobj;
31177fail:
70d7cb34
RD
31178 return NULL;
31179}
31180
31181
31182SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31183 PyObject *resultobj = 0;
31184 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31185 wxWindow *arg2 = (wxWindow *) 0 ;
31186 wxGraphicsContext *result = 0 ;
31187 void *argp1 = 0 ;
31188 int res1 = 0 ;
31189 void *argp2 = 0 ;
31190 int res2 = 0 ;
31191
31192 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31196 }
31197 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31198 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31199 if (!SWIG_IsOK(res2)) {
31200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
31201 }
31202 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 31203 {
70d7cb34
RD
31204 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
31205 if (PyErr_Occurred()) SWIG_fail;
b39fe951 31206 }
70d7cb34
RD
31207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31208 return resultobj;
31209fail:
72ef6efb
RD
31210 return NULL;
31211}
31212
31213
70d7cb34
RD
31214SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
31215 int argc;
31216 PyObject *argv[3];
31217
31218 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
31219 --argc;
31220 if (argc == 2) {
31221 int _v = 0;
31222 {
31223 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
31224 _v = SWIG_CheckState(res);
31225 }
31226 if (!_v) goto check_1;
31227 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
31228 }
31229check_1:
31230
31231 if (argc == 2) {
31232 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
31233 }
31234
31235fail:
31236 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
31237 return NULL;
31238}
31239
31240
f89238b9
RD
31241SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31242 PyObject *resultobj = 0;
31243 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31244 wxGraphicsContext *result = 0 ;
31245 void *argp1 = 0 ;
31246 int res1 = 0 ;
31247 PyObject *swig_obj[1] ;
31248
31249 if (!args) SWIG_fail;
31250 swig_obj[0] = args;
31251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31252 if (!SWIG_IsOK(res1)) {
31253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31254 }
31255 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31256 {
31257 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
31258 if (PyErr_Occurred()) SWIG_fail;
31259 }
31260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31261 return resultobj;
31262fail:
31263 return NULL;
31264}
31265
31266
70d7cb34 31267SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31268 PyObject *resultobj = 0;
70d7cb34
RD
31269 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31270 void *arg2 = (void *) 0 ;
31271 wxGraphicsContext *result = 0 ;
72ef6efb
RD
31272 void *argp1 = 0 ;
31273 int res1 = 0 ;
70d7cb34 31274 int res2 ;
b39fe951
RD
31275 PyObject * obj0 = 0 ;
31276 PyObject * obj1 = 0 ;
b39fe951 31277 char * kwnames[] = {
70d7cb34 31278 (char *) "self",(char *) "context", NULL
b39fe951 31279 };
72ef6efb 31280
70d7cb34
RD
31281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
31282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31283 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
31284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31285 }
31286 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31287 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31288 if (!SWIG_IsOK(res2)) {
31289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 31290 }
72ef6efb 31291 {
70d7cb34 31292 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
31293 if (PyErr_Occurred()) SWIG_fail;
31294 }
70d7cb34 31295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31296 return resultobj;
31297fail:
31298 return NULL;
31299}
31300
31301
70d7cb34 31302SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31303 PyObject *resultobj = 0;
70d7cb34
RD
31304 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31305 void *arg2 = (void *) 0 ;
31306 wxGraphicsContext *result = 0 ;
72ef6efb
RD
31307 void *argp1 = 0 ;
31308 int res1 = 0 ;
70d7cb34 31309 int res2 ;
72ef6efb
RD
31310 PyObject * obj0 = 0 ;
31311 PyObject * obj1 = 0 ;
72ef6efb 31312 char * kwnames[] = {
70d7cb34 31313 (char *) "self",(char *) "window", NULL
72ef6efb
RD
31314 };
31315
70d7cb34
RD
31316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
31317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31318 if (!SWIG_IsOK(res1)) {
70d7cb34 31319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31320 }
70d7cb34
RD
31321 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31322 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31323 if (!SWIG_IsOK(res2)) {
31324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
31325 }
31326 {
70d7cb34 31327 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
70d7cb34 31330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31331 return resultobj;
31332fail:
70d7cb34
RD
31333 return NULL;
31334}
31335
31336
31337SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31338 PyObject *resultobj = 0;
31339 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 31340 wxGraphicsPath result;
70d7cb34
RD
31341 void *argp1 = 0 ;
31342 int res1 = 0 ;
31343 PyObject *swig_obj[1] ;
31344
31345 if (!args) SWIG_fail;
31346 swig_obj[0] = args;
31347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31348 if (!SWIG_IsOK(res1)) {
31349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31350 }
31351 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 31352 {
5c8c7dd3 31353 result = (arg1)->CreatePath();
70d7cb34 31354 if (PyErr_Occurred()) SWIG_fail;
b39fe951 31355 }
5c8c7dd3 31356 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
31357 return resultobj;
31358fail:
72ef6efb
RD
31359 return NULL;
31360}
31361
31362
70d7cb34 31363SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31364 PyObject *resultobj = 0;
70d7cb34
RD
31365 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31366 wxDouble arg2 = (wxDouble) 1.0 ;
31367 wxDouble arg3 = (wxDouble) 0.0 ;
31368 wxDouble arg4 = (wxDouble) 0.0 ;
31369 wxDouble arg5 = (wxDouble) 1.0 ;
31370 wxDouble arg6 = (wxDouble) 0.0 ;
31371 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 31372 wxGraphicsMatrix result;
72ef6efb
RD
31373 void *argp1 = 0 ;
31374 int res1 = 0 ;
31375 double val2 ;
31376 int ecode2 = 0 ;
31377 double val3 ;
31378 int ecode3 = 0 ;
31379 double val4 ;
31380 int ecode4 = 0 ;
31381 double val5 ;
31382 int ecode5 = 0 ;
70d7cb34
RD
31383 double val6 ;
31384 int ecode6 = 0 ;
31385 double val7 ;
31386 int ecode7 = 0 ;
72ef6efb
RD
31387 PyObject * obj0 = 0 ;
31388 PyObject * obj1 = 0 ;
31389 PyObject * obj2 = 0 ;
31390 PyObject * obj3 = 0 ;
31391 PyObject * obj4 = 0 ;
70d7cb34
RD
31392 PyObject * obj5 = 0 ;
31393 PyObject * obj6 = 0 ;
72ef6efb 31394 char * kwnames[] = {
70d7cb34 31395 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
31396 };
31397
70d7cb34
RD
31398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31400 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
31401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31402 }
31403 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31404 if (obj1) {
31405 ecode2 = SWIG_AsVal_double(obj1, &val2);
31406 if (!SWIG_IsOK(ecode2)) {
31407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
31408 }
31409 arg2 = static_cast< wxDouble >(val2);
31410 }
31411 if (obj2) {
31412 ecode3 = SWIG_AsVal_double(obj2, &val3);
31413 if (!SWIG_IsOK(ecode3)) {
31414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
31415 }
31416 arg3 = static_cast< wxDouble >(val3);
31417 }
31418 if (obj3) {
31419 ecode4 = SWIG_AsVal_double(obj3, &val4);
31420 if (!SWIG_IsOK(ecode4)) {
31421 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
31422 }
31423 arg4 = static_cast< wxDouble >(val4);
31424 }
31425 if (obj4) {
31426 ecode5 = SWIG_AsVal_double(obj4, &val5);
31427 if (!SWIG_IsOK(ecode5)) {
31428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
31429 }
31430 arg5 = static_cast< wxDouble >(val5);
31431 }
31432 if (obj5) {
31433 ecode6 = SWIG_AsVal_double(obj5, &val6);
31434 if (!SWIG_IsOK(ecode6)) {
31435 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
31436 }
31437 arg6 = static_cast< wxDouble >(val6);
31438 }
31439 if (obj6) {
31440 ecode7 = SWIG_AsVal_double(obj6, &val7);
31441 if (!SWIG_IsOK(ecode7)) {
31442 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
31443 }
31444 arg7 = static_cast< wxDouble >(val7);
72ef6efb 31445 }
72ef6efb 31446 {
5c8c7dd3 31447 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
31448 if (PyErr_Occurred()) SWIG_fail;
31449 }
5c8c7dd3 31450 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31451 return resultobj;
31452fail:
31453 return NULL;
31454}
31455
31456
70d7cb34 31457SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31458 PyObject *resultobj = 0;
70d7cb34
RD
31459 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31460 wxPen *arg2 = 0 ;
31461 wxGraphicsPen result;
31462 void *argp1 = 0 ;
31463 int res1 = 0 ;
31464 void *argp2 = 0 ;
31465 int res2 = 0 ;
31466 PyObject * obj0 = 0 ;
31467 PyObject * obj1 = 0 ;
31468 char * kwnames[] = {
31469 (char *) "self",(char *) "pen", NULL
31470 };
31471
31472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31474 if (!SWIG_IsOK(res1)) {
31475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31476 }
31477 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31478 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31479 if (!SWIG_IsOK(res2)) {
31480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31481 }
31482 if (!argp2) {
31483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31484 }
31485 arg2 = reinterpret_cast< wxPen * >(argp2);
31486 {
31487 result = (arg1)->CreatePen((wxPen const &)*arg2);
31488 if (PyErr_Occurred()) SWIG_fail;
31489 }
31490 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31491 return resultobj;
31492fail:
31493 return NULL;
31494}
31495
31496
31497SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31498 PyObject *resultobj = 0;
31499 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31500 wxBrush *arg2 = 0 ;
31501 wxGraphicsBrush result;
31502 void *argp1 = 0 ;
31503 int res1 = 0 ;
31504 void *argp2 = 0 ;
31505 int res2 = 0 ;
31506 PyObject * obj0 = 0 ;
31507 PyObject * obj1 = 0 ;
31508 char * kwnames[] = {
31509 (char *) "self",(char *) "brush", NULL
31510 };
31511
31512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31514 if (!SWIG_IsOK(res1)) {
31515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31516 }
31517 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31519 if (!SWIG_IsOK(res2)) {
31520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31521 }
31522 if (!argp2) {
31523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31524 }
31525 arg2 = reinterpret_cast< wxBrush * >(argp2);
31526 {
31527 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31528 if (PyErr_Occurred()) SWIG_fail;
31529 }
31530 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31531 return resultobj;
31532fail:
31533 return NULL;
31534}
31535
31536
31537SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31538 PyObject *resultobj = 0;
31539 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31540 wxDouble arg2 ;
31541 wxDouble arg3 ;
31542 wxDouble arg4 ;
31543 wxDouble arg5 ;
70d7cb34
RD
31544 wxColour *arg6 = 0 ;
31545 wxColour *arg7 = 0 ;
31546 wxGraphicsBrush result;
72ef6efb
RD
31547 void *argp1 = 0 ;
31548 int res1 = 0 ;
31549 double val2 ;
31550 int ecode2 = 0 ;
31551 double val3 ;
31552 int ecode3 = 0 ;
31553 double val4 ;
31554 int ecode4 = 0 ;
31555 double val5 ;
31556 int ecode5 = 0 ;
70d7cb34
RD
31557 wxColour temp6 ;
31558 wxColour temp7 ;
72ef6efb
RD
31559 PyObject * obj0 = 0 ;
31560 PyObject * obj1 = 0 ;
31561 PyObject * obj2 = 0 ;
31562 PyObject * obj3 = 0 ;
31563 PyObject * obj4 = 0 ;
70d7cb34
RD
31564 PyObject * obj5 = 0 ;
31565 PyObject * obj6 = 0 ;
72ef6efb 31566 char * kwnames[] = {
70d7cb34 31567 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
31568 };
31569
70d7cb34
RD
31570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31572 if (!SWIG_IsOK(res1)) {
70d7cb34 31573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31574 }
70d7cb34 31575 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31576 ecode2 = SWIG_AsVal_double(obj1, &val2);
31577 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31579 }
31580 arg2 = static_cast< wxDouble >(val2);
31581 ecode3 = SWIG_AsVal_double(obj2, &val3);
31582 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31584 }
31585 arg3 = static_cast< wxDouble >(val3);
31586 ecode4 = SWIG_AsVal_double(obj3, &val4);
31587 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31589 }
31590 arg4 = static_cast< wxDouble >(val4);
31591 ecode5 = SWIG_AsVal_double(obj4, &val5);
31592 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31594 }
31595 arg5 = static_cast< wxDouble >(val5);
31596 {
70d7cb34
RD
31597 arg6 = &temp6;
31598 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31599 }
31600 {
31601 arg7 = &temp7;
31602 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31603 }
31604 {
31605 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
70d7cb34 31608 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31609 return resultobj;
31610fail:
31611 return NULL;
31612}
31613
31614
70d7cb34 31615SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31616 PyObject *resultobj = 0;
70d7cb34 31617 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31618 wxDouble arg2 ;
31619 wxDouble arg3 ;
31620 wxDouble arg4 ;
31621 wxDouble arg5 ;
31622 wxDouble arg6 ;
70d7cb34
RD
31623 wxColour *arg7 = 0 ;
31624 wxColour *arg8 = 0 ;
31625 wxGraphicsBrush result;
72ef6efb
RD
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 double val2 ;
31629 int ecode2 = 0 ;
31630 double val3 ;
31631 int ecode3 = 0 ;
31632 double val4 ;
31633 int ecode4 = 0 ;
31634 double val5 ;
31635 int ecode5 = 0 ;
31636 double val6 ;
31637 int ecode6 = 0 ;
70d7cb34
RD
31638 wxColour temp7 ;
31639 wxColour temp8 ;
72ef6efb
RD
31640 PyObject * obj0 = 0 ;
31641 PyObject * obj1 = 0 ;
31642 PyObject * obj2 = 0 ;
31643 PyObject * obj3 = 0 ;
31644 PyObject * obj4 = 0 ;
31645 PyObject * obj5 = 0 ;
70d7cb34
RD
31646 PyObject * obj6 = 0 ;
31647 PyObject * obj7 = 0 ;
72ef6efb 31648 char * kwnames[] = {
70d7cb34 31649 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
31650 };
31651
70d7cb34
RD
31652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31654 if (!SWIG_IsOK(res1)) {
70d7cb34 31655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31656 }
70d7cb34 31657 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31658 ecode2 = SWIG_AsVal_double(obj1, &val2);
31659 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31661 }
31662 arg2 = static_cast< wxDouble >(val2);
31663 ecode3 = SWIG_AsVal_double(obj2, &val3);
31664 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31666 }
31667 arg3 = static_cast< wxDouble >(val3);
31668 ecode4 = SWIG_AsVal_double(obj3, &val4);
31669 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31671 }
31672 arg4 = static_cast< wxDouble >(val4);
31673 ecode5 = SWIG_AsVal_double(obj4, &val5);
31674 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31676 }
31677 arg5 = static_cast< wxDouble >(val5);
31678 ecode6 = SWIG_AsVal_double(obj5, &val6);
31679 if (!SWIG_IsOK(ecode6)) {
70d7cb34 31680 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
31681 }
31682 arg6 = static_cast< wxDouble >(val6);
31683 {
70d7cb34
RD
31684 arg7 = &temp7;
31685 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31686 }
31687 {
31688 arg8 = &temp8;
31689 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31690 }
31691 {
31692 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
31693 if (PyErr_Occurred()) SWIG_fail;
31694 }
70d7cb34 31695 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31696 return resultobj;
31697fail:
31698 return NULL;
31699}
31700
31701
70d7cb34
RD
31702SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31703 PyObject *resultobj = 0;
31704 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31705 wxFont *arg2 = 0 ;
31706 wxColour const &arg3_defvalue = *wxBLACK ;
31707 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31708 wxGraphicsFont result;
31709 void *argp1 = 0 ;
31710 int res1 = 0 ;
31711 void *argp2 = 0 ;
31712 int res2 = 0 ;
31713 wxColour temp3 ;
31714 PyObject * obj0 = 0 ;
31715 PyObject * obj1 = 0 ;
31716 PyObject * obj2 = 0 ;
31717 char * kwnames[] = {
31718 (char *) "self",(char *) "font",(char *) "col", NULL
31719 };
31720
31721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31723 if (!SWIG_IsOK(res1)) {
31724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31725 }
31726 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31728 if (!SWIG_IsOK(res2)) {
31729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31730 }
31731 if (!argp2) {
31732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31733 }
31734 arg2 = reinterpret_cast< wxFont * >(argp2);
31735 if (obj2) {
31736 {
31737 arg3 = &temp3;
31738 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31739 }
31740 }
31741 {
31742 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31743 if (PyErr_Occurred()) SWIG_fail;
31744 }
31745 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31746 return resultobj;
31747fail:
31748 return NULL;
31749}
31750
31751
31752SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31753 PyObject *obj;
31754 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 31755 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
31756 return SWIG_Py_Void();
31757}
31758
48a0c021 31759SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
31760 PyObject *resultobj = 0;
31761 wxWindowDC *arg1 = 0 ;
31762 wxGCDC *result = 0 ;
31763 void *argp1 = 0 ;
31764 int res1 = 0 ;
72ef6efb 31765
48a0c021
RD
31766 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
31768 if (!SWIG_IsOK(res1)) {
31769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31770 }
31771 if (!argp1) {
31772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31773 }
31774 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31775 {
31776 if (!wxPyCheckForApp()) SWIG_fail;
31777 PyThreadState* __tstate = wxPyBeginAllowThreads();
31778 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31779 wxPyEndAllowThreads(__tstate);
31780 if (PyErr_Occurred()) SWIG_fail;
31781 }
31782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31783 return resultobj;
31784fail:
31785 return NULL;
31786}
31787
31788
48a0c021
RD
31789SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31790 PyObject *resultobj = 0;
31791 wxWindow *arg1 = (wxWindow *) 0 ;
31792 wxGCDC *result = 0 ;
31793 void *argp1 = 0 ;
31794 int res1 = 0 ;
31795
31796 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31798 if (!SWIG_IsOK(res1)) {
31799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31800 }
31801 arg1 = reinterpret_cast< wxWindow * >(argp1);
31802 {
31803 if (!wxPyCheckForApp()) SWIG_fail;
31804 PyThreadState* __tstate = wxPyBeginAllowThreads();
31805 result = (wxGCDC *)new wxGCDC(arg1);
31806 wxPyEndAllowThreads(__tstate);
31807 if (PyErr_Occurred()) SWIG_fail;
31808 }
31809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31810 return resultobj;
31811fail:
31812 return NULL;
31813}
31814
31815
31816SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31817 int argc;
31818 PyObject *argv[2];
31819
31820 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31821 --argc;
31822 if (argc == 1) {
31823 int _v = 0;
31824 {
31825 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31826 _v = SWIG_CheckState(res);
31827 }
31828 if (!_v) goto check_1;
31829 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31830 }
31831check_1:
31832
31833 if (argc == 1) {
31834 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31835 }
31836
31837fail:
31838 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31839 return NULL;
31840}
31841
31842
72ef6efb
RD
31843SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31844 PyObject *resultobj = 0;
31845 wxGCDC *arg1 = (wxGCDC *) 0 ;
31846 void *argp1 = 0 ;
31847 int res1 = 0 ;
31848 PyObject *swig_obj[1] ;
31849
31850 if (!args) SWIG_fail;
31851 swig_obj[0] = args;
31852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31853 if (!SWIG_IsOK(res1)) {
31854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31855 }
31856 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31857 {
72ef6efb
RD
31858 delete arg1;
31859
72ef6efb
RD
31860 if (PyErr_Occurred()) SWIG_fail;
31861 }
31862 resultobj = SWIG_Py_Void();
31863 return resultobj;
31864fail:
31865 return NULL;
31866}
31867
31868
0a27f394 31869SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31870 PyObject *resultobj = 0;
31871 wxGCDC *arg1 = (wxGCDC *) 0 ;
31872 wxGraphicsContext *result = 0 ;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 PyObject *swig_obj[1] ;
31876
31877 if (!args) SWIG_fail;
31878 swig_obj[0] = args;
31879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31880 if (!SWIG_IsOK(res1)) {
0a27f394 31881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
31882 }
31883 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31884 {
0a27f394 31885 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31886 if (PyErr_Occurred()) SWIG_fail;
31887 }
31888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31889 return resultobj;
31890fail:
31891 return NULL;
31892}
31893
31894
0a27f394
RD
31895SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31896 PyObject *resultobj = 0;
31897 wxGCDC *arg1 = (wxGCDC *) 0 ;
31898 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31899 void *argp1 = 0 ;
31900 int res1 = 0 ;
31901 void *argp2 = 0 ;
31902 int res2 = 0 ;
31903 PyObject * obj0 = 0 ;
31904 PyObject * obj1 = 0 ;
31905 char * kwnames[] = {
31906 (char *) "self",(char *) "ctx", NULL
31907 };
31908
31909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31911 if (!SWIG_IsOK(res1)) {
31912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31913 }
31914 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31915 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31916 if (!SWIG_IsOK(res2)) {
31917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31918 }
31919 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31920 {
31921 (arg1)->SetGraphicsContext(arg2);
31922 if (PyErr_Occurred()) SWIG_fail;
31923 }
31924 resultobj = SWIG_Py_Void();
31925 return resultobj;
31926fail:
31927 return NULL;
31928}
31929
31930
72ef6efb
RD
31931SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31932 PyObject *obj;
31933 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31934 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31935 return SWIG_Py_Void();
31936}
31937
31938SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31939 return SWIG_Python_InitShadowInstance(args);
31940}
31941
b39fe951
RD
31942SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31943 PyObject *resultobj = 0;
31944 wxOverlay *result = 0 ;
31945
31946 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31947 {
31948 PyThreadState* __tstate = wxPyBeginAllowThreads();
31949 result = (wxOverlay *)new wxOverlay();
31950 wxPyEndAllowThreads(__tstate);
31951 if (PyErr_Occurred()) SWIG_fail;
31952 }
31953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31954 return resultobj;
31955fail:
31956 return NULL;
31957}
31958
31959
31960SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31961 PyObject *resultobj = 0;
31962 wxOverlay *arg1 = (wxOverlay *) 0 ;
31963 void *argp1 = 0 ;
31964 int res1 = 0 ;
31965 PyObject *swig_obj[1] ;
31966
31967 if (!args) SWIG_fail;
31968 swig_obj[0] = args;
31969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31970 if (!SWIG_IsOK(res1)) {
31971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31972 }
31973 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31974 {
31975 PyThreadState* __tstate = wxPyBeginAllowThreads();
31976 delete arg1;
31977
31978 wxPyEndAllowThreads(__tstate);
31979 if (PyErr_Occurred()) SWIG_fail;
31980 }
31981 resultobj = SWIG_Py_Void();
31982 return resultobj;
31983fail:
31984 return NULL;
31985}
31986
31987
31988SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31989 PyObject *resultobj = 0;
31990 wxOverlay *arg1 = (wxOverlay *) 0 ;
31991 void *argp1 = 0 ;
31992 int res1 = 0 ;
31993 PyObject *swig_obj[1] ;
31994
31995 if (!args) SWIG_fail;
31996 swig_obj[0] = args;
31997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31998 if (!SWIG_IsOK(res1)) {
31999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
32000 }
32001 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32002 {
32003 PyThreadState* __tstate = wxPyBeginAllowThreads();
32004 (arg1)->Reset();
32005 wxPyEndAllowThreads(__tstate);
32006 if (PyErr_Occurred()) SWIG_fail;
32007 }
32008 resultobj = SWIG_Py_Void();
32009 return resultobj;
32010fail:
32011 return NULL;
32012}
32013
32014
32015SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32016 PyObject *obj;
32017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32018 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
32019 return SWIG_Py_Void();
32020}
32021
32022SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32023 return SWIG_Python_InitShadowInstance(args);
32024}
32025
32026SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32027 PyObject *resultobj = 0;
32028 wxOverlay *arg1 = 0 ;
32029 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
32030 int arg3 ;
32031 int arg4 ;
32032 int arg5 ;
32033 int arg6 ;
32034 wxDCOverlay *result = 0 ;
32035 void *argp1 = 0 ;
32036 int res1 = 0 ;
32037 void *argp2 = 0 ;
32038 int res2 = 0 ;
32039 int val3 ;
32040 int ecode3 = 0 ;
32041 int val4 ;
32042 int ecode4 = 0 ;
32043 int val5 ;
32044 int ecode5 = 0 ;
32045 int val6 ;
32046 int ecode6 = 0 ;
32047
32048 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
32049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
32050 if (!SWIG_IsOK(res1)) {
32051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32052 }
32053 if (!argp1) {
32054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32055 }
32056 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32057 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
32058 if (!SWIG_IsOK(res2)) {
32059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
32060 }
32061 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
32062 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32063 if (!SWIG_IsOK(ecode3)) {
32064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
32065 }
32066 arg3 = static_cast< int >(val3);
32067 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32068 if (!SWIG_IsOK(ecode4)) {
32069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
32070 }
32071 arg4 = static_cast< int >(val4);
32072 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
32073 if (!SWIG_IsOK(ecode5)) {
32074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
32075 }
32076 arg5 = static_cast< int >(val5);
32077 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
32078 if (!SWIG_IsOK(ecode6)) {
32079 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
32080 }
32081 arg6 = static_cast< int >(val6);
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
32089 return resultobj;
32090fail:
32091 return NULL;
32092}
32093
32094
32095SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32096 PyObject *resultobj = 0;
32097 wxOverlay *arg1 = 0 ;
32098 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
32099 wxDCOverlay *result = 0 ;
32100 void *argp1 = 0 ;
32101 int res1 = 0 ;
32102 void *argp2 = 0 ;
32103 int res2 = 0 ;
32104
32105 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
32107 if (!SWIG_IsOK(res1)) {
32108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32109 }
32110 if (!argp1) {
32111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32112 }
32113 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32114 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
32115 if (!SWIG_IsOK(res2)) {
32116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
32117 }
32118 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
32119 {
32120 PyThreadState* __tstate = wxPyBeginAllowThreads();
32121 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
32122 wxPyEndAllowThreads(__tstate);
32123 if (PyErr_Occurred()) SWIG_fail;
32124 }
32125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
32126 return resultobj;
32127fail:
32128 return NULL;
32129}
32130
32131
32132SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
32133 int argc;
32134 PyObject *argv[7];
32135
32136 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
32137 --argc;
32138 if (argc == 2) {
32139 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
32140 }
32141 if (argc == 6) {
32142 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
32143 }
32144
32145fail:
32146 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
32147 return NULL;
32148}
32149
32150
32151SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32152 PyObject *resultobj = 0;
32153 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
32154 void *argp1 = 0 ;
32155 int res1 = 0 ;
32156 PyObject *swig_obj[1] ;
32157
32158 if (!args) SWIG_fail;
32159 swig_obj[0] = args;
32160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
32161 if (!SWIG_IsOK(res1)) {
32162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
32163 }
32164 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
32165 {
32166 PyThreadState* __tstate = wxPyBeginAllowThreads();
32167 delete arg1;
32168
32169 wxPyEndAllowThreads(__tstate);
32170 if (PyErr_Occurred()) SWIG_fail;
32171 }
32172 resultobj = SWIG_Py_Void();
32173 return resultobj;
32174fail:
32175 return NULL;
32176}
32177
32178
32179SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32180 PyObject *resultobj = 0;
32181 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
32182 void *argp1 = 0 ;
32183 int res1 = 0 ;
32184 PyObject *swig_obj[1] ;
32185
32186 if (!args) SWIG_fail;
32187 swig_obj[0] = args;
32188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
32189 if (!SWIG_IsOK(res1)) {
32190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
32191 }
32192 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
32193 {
32194 PyThreadState* __tstate = wxPyBeginAllowThreads();
32195 (arg1)->Clear();
32196 wxPyEndAllowThreads(__tstate);
32197 if (PyErr_Occurred()) SWIG_fail;
32198 }
32199 resultobj = SWIG_Py_Void();
32200 return resultobj;
32201fail:
32202 return NULL;
32203}
32204
32205
32206SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32207 PyObject *obj;
32208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32209 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
32210 return SWIG_Py_Void();
32211}
32212
32213SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32214 return SWIG_Python_InitShadowInstance(args);
32215}
32216
72ef6efb
RD
32217SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32218 PyObject *resultobj = 0;
32219 int arg1 ;
32220 int arg2 ;
32221 int arg3 = (int) true ;
32222 int arg4 = (int) 1 ;
32223 wxImageList *result = 0 ;
32224 int val1 ;
32225 int ecode1 = 0 ;
32226 int val2 ;
32227 int ecode2 = 0 ;
32228 int val3 ;
32229 int ecode3 = 0 ;
32230 int val4 ;
32231 int ecode4 = 0 ;
32232 PyObject * obj0 = 0 ;
32233 PyObject * obj1 = 0 ;
32234 PyObject * obj2 = 0 ;
32235 PyObject * obj3 = 0 ;
32236 char * kwnames[] = {
32237 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
32238 };
32239
32240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32241 ecode1 = SWIG_AsVal_int(obj0, &val1);
32242 if (!SWIG_IsOK(ecode1)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
32244 }
32245 arg1 = static_cast< int >(val1);
32246 ecode2 = SWIG_AsVal_int(obj1, &val2);
32247 if (!SWIG_IsOK(ecode2)) {
32248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
32249 }
32250 arg2 = static_cast< int >(val2);
32251 if (obj2) {
32252 ecode3 = SWIG_AsVal_int(obj2, &val3);
32253 if (!SWIG_IsOK(ecode3)) {
32254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
32255 }
32256 arg3 = static_cast< int >(val3);
32257 }
32258 if (obj3) {
32259 ecode4 = SWIG_AsVal_int(obj3, &val4);
32260 if (!SWIG_IsOK(ecode4)) {
32261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
32262 }
32263 arg4 = static_cast< int >(val4);
32264 }
32265 {
32266 if (!wxPyCheckForApp()) SWIG_fail;
32267 PyThreadState* __tstate = wxPyBeginAllowThreads();
32268 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
32269 wxPyEndAllowThreads(__tstate);
32270 if (PyErr_Occurred()) SWIG_fail;
32271 }
e02c0a13 32272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
32273 return resultobj;
32274fail:
32275 return NULL;
32276}
32277
32278
32279SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32280 PyObject *resultobj = 0;
32281 wxImageList *arg1 = (wxImageList *) 0 ;
32282 void *argp1 = 0 ;
32283 int res1 = 0 ;
32284 PyObject *swig_obj[1] ;
32285
32286 if (!args) SWIG_fail;
32287 swig_obj[0] = args;
32288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
32289 if (!SWIG_IsOK(res1)) {
32290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
32291 }
32292 arg1 = reinterpret_cast< wxImageList * >(argp1);
32293 {
32294 PyThreadState* __tstate = wxPyBeginAllowThreads();
32295 delete arg1;
32296
32297 wxPyEndAllowThreads(__tstate);
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
32300 resultobj = SWIG_Py_Void();
32301 return resultobj;
32302fail:
32303 return NULL;
32304}
32305
32306
32307SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32308 PyObject *resultobj = 0;
32309 wxImageList *arg1 = (wxImageList *) 0 ;
32310 wxBitmap *arg2 = 0 ;
32311 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32312 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32313 int result;
32314 void *argp1 = 0 ;
32315 int res1 = 0 ;
32316 void *argp2 = 0 ;
32317 int res2 = 0 ;
32318 void *argp3 = 0 ;
32319 int res3 = 0 ;
32320 PyObject * obj0 = 0 ;
32321 PyObject * obj1 = 0 ;
32322 PyObject * obj2 = 0 ;
32323 char * kwnames[] = {
32324 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
32325 };
32326
32327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32329 if (!SWIG_IsOK(res1)) {
32330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
32331 }
32332 arg1 = reinterpret_cast< wxImageList * >(argp1);
32333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32334 if (!SWIG_IsOK(res2)) {
32335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32336 }
32337 if (!argp2) {
32338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32339 }
32340 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32341 if (obj2) {
32342 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32343 if (!SWIG_IsOK(res3)) {
32344 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32345 }
32346 if (!argp3) {
32347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32348 }
32349 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32350 }
32351 {
32352 PyThreadState* __tstate = wxPyBeginAllowThreads();
32353 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32354 wxPyEndAllowThreads(__tstate);
32355 if (PyErr_Occurred()) SWIG_fail;
32356 }
32357 resultobj = SWIG_From_int(static_cast< int >(result));
32358 return resultobj;
32359fail:
32360 return NULL;
32361}
32362
32363
32364SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32365 PyObject *resultobj = 0;
32366 wxImageList *arg1 = (wxImageList *) 0 ;
32367 wxBitmap *arg2 = 0 ;
32368 wxColour *arg3 = 0 ;
32369 int result;
32370 void *argp1 = 0 ;
32371 int res1 = 0 ;
32372 void *argp2 = 0 ;
32373 int res2 = 0 ;
32374 wxColour temp3 ;
32375 PyObject * obj0 = 0 ;
32376 PyObject * obj1 = 0 ;
32377 PyObject * obj2 = 0 ;
32378 char * kwnames[] = {
32379 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
32380 };
32381
32382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32384 if (!SWIG_IsOK(res1)) {
32385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
32386 }
32387 arg1 = reinterpret_cast< wxImageList * >(argp1);
32388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32389 if (!SWIG_IsOK(res2)) {
32390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32391 }
32392 if (!argp2) {
32393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32394 }
32395 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32396 {
32397 arg3 = &temp3;
32398 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32399 }
32400 {
32401 PyThreadState* __tstate = wxPyBeginAllowThreads();
32402 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
32403 wxPyEndAllowThreads(__tstate);
32404 if (PyErr_Occurred()) SWIG_fail;
32405 }
32406 resultobj = SWIG_From_int(static_cast< int >(result));
32407 return resultobj;
32408fail:
32409 return NULL;
32410}
32411
32412
32413SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32414 PyObject *resultobj = 0;
32415 wxImageList *arg1 = (wxImageList *) 0 ;
32416 wxIcon *arg2 = 0 ;
32417 int result;
32418 void *argp1 = 0 ;
32419 int res1 = 0 ;
32420 void *argp2 = 0 ;
32421 int res2 = 0 ;
32422 PyObject * obj0 = 0 ;
32423 PyObject * obj1 = 0 ;
32424 char * kwnames[] = {
32425 (char *) "self",(char *) "icon", NULL
32426 };
32427
32428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32430 if (!SWIG_IsOK(res1)) {
32431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
32432 }
554f62e9
RD
32433 arg1 = reinterpret_cast< wxImageList * >(argp1);
32434 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32435 if (!SWIG_IsOK(res2)) {
32436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32437 }
32438 if (!argp2) {
32439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32440 }
32441 arg2 = reinterpret_cast< wxIcon * >(argp2);
32442 {
32443 PyThreadState* __tstate = wxPyBeginAllowThreads();
32444 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32445 wxPyEndAllowThreads(__tstate);
32446 if (PyErr_Occurred()) SWIG_fail;
32447 }
32448 resultobj = SWIG_From_int(static_cast< int >(result));
32449 return resultobj;
32450fail:
32451 return NULL;
32452}
32453
32454
32455SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32456 PyObject *resultobj = 0;
32457 wxImageList *arg1 = (wxImageList *) 0 ;
32458 int arg2 ;
32459 SwigValueWrapper<wxBitmap > result;
32460 void *argp1 = 0 ;
32461 int res1 = 0 ;
32462 int val2 ;
32463 int ecode2 = 0 ;
32464 PyObject * obj0 = 0 ;
32465 PyObject * obj1 = 0 ;
32466 char * kwnames[] = {
32467 (char *) "self",(char *) "index", NULL
32468 };
32469
32470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32472 if (!SWIG_IsOK(res1)) {
32473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32474 }
32475 arg1 = reinterpret_cast< wxImageList * >(argp1);
32476 ecode2 = SWIG_AsVal_int(obj1, &val2);
32477 if (!SWIG_IsOK(ecode2)) {
32478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32479 }
32480 arg2 = static_cast< int >(val2);
32481 {
32482 PyThreadState* __tstate = wxPyBeginAllowThreads();
32483 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32484 wxPyEndAllowThreads(__tstate);
32485 if (PyErr_Occurred()) SWIG_fail;
32486 }
32487 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32488 return resultobj;
32489fail:
32490 return NULL;
32491}
32492
32493
32494SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32495 PyObject *resultobj = 0;
32496 wxImageList *arg1 = (wxImageList *) 0 ;
32497 int arg2 ;
32498 wxIcon result;
32499 void *argp1 = 0 ;
32500 int res1 = 0 ;
32501 int val2 ;
32502 int ecode2 = 0 ;
32503 PyObject * obj0 = 0 ;
32504 PyObject * obj1 = 0 ;
32505 char * kwnames[] = {
32506 (char *) "self",(char *) "index", NULL
32507 };
32508
32509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32511 if (!SWIG_IsOK(res1)) {
32512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32513 }
32514 arg1 = reinterpret_cast< wxImageList * >(argp1);
32515 ecode2 = SWIG_AsVal_int(obj1, &val2);
32516 if (!SWIG_IsOK(ecode2)) {
32517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32518 }
32519 arg2 = static_cast< int >(val2);
32520 {
32521 PyThreadState* __tstate = wxPyBeginAllowThreads();
32522 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32523 wxPyEndAllowThreads(__tstate);
32524 if (PyErr_Occurred()) SWIG_fail;
32525 }
32526 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32527 return resultobj;
32528fail:
32529 return NULL;
32530}
32531
32532
32533SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32534 PyObject *resultobj = 0;
32535 wxImageList *arg1 = (wxImageList *) 0 ;
32536 int arg2 ;
32537 wxBitmap *arg3 = 0 ;
32538 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32539 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32540 bool result;
32541 void *argp1 = 0 ;
32542 int res1 = 0 ;
32543 int val2 ;
32544 int ecode2 = 0 ;
32545 void *argp3 = 0 ;
32546 int res3 = 0 ;
32547 void *argp4 = 0 ;
32548 int res4 = 0 ;
32549 PyObject * obj0 = 0 ;
32550 PyObject * obj1 = 0 ;
32551 PyObject * obj2 = 0 ;
32552 PyObject * obj3 = 0 ;
32553 char * kwnames[] = {
32554 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32555 };
32556
32557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32559 if (!SWIG_IsOK(res1)) {
32560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32561 }
32562 arg1 = reinterpret_cast< wxImageList * >(argp1);
32563 ecode2 = SWIG_AsVal_int(obj1, &val2);
32564 if (!SWIG_IsOK(ecode2)) {
32565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32566 }
32567 arg2 = static_cast< int >(val2);
32568 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32569 if (!SWIG_IsOK(res3)) {
32570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32571 }
32572 if (!argp3) {
32573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32574 }
32575 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32576 if (obj3) {
32577 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32578 if (!SWIG_IsOK(res4)) {
32579 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 32580 }
554f62e9
RD
32581 if (!argp4) {
32582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 32583 }
554f62e9
RD
32584 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32585 }
32586 {
32587 PyThreadState* __tstate = wxPyBeginAllowThreads();
32588 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32589 wxPyEndAllowThreads(__tstate);
32590 if (PyErr_Occurred()) SWIG_fail;
32591 }
32592 {
32593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32594 }
32595 return resultobj;
32596fail:
32597 return NULL;
32598}
32599
32600
32601SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32602 PyObject *resultobj = 0;
32603 wxImageList *arg1 = (wxImageList *) 0 ;
32604 int arg2 ;
32605 wxDC *arg3 = 0 ;
32606 int arg4 ;
32607 int arg5 ;
32608 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32609 bool arg7 = (bool) (bool)false ;
32610 bool result;
32611 void *argp1 = 0 ;
32612 int res1 = 0 ;
32613 int val2 ;
32614 int ecode2 = 0 ;
32615 void *argp3 = 0 ;
32616 int res3 = 0 ;
32617 int val4 ;
32618 int ecode4 = 0 ;
32619 int val5 ;
32620 int ecode5 = 0 ;
32621 int val6 ;
32622 int ecode6 = 0 ;
32623 bool val7 ;
32624 int ecode7 = 0 ;
32625 PyObject * obj0 = 0 ;
32626 PyObject * obj1 = 0 ;
32627 PyObject * obj2 = 0 ;
32628 PyObject * obj3 = 0 ;
32629 PyObject * obj4 = 0 ;
32630 PyObject * obj5 = 0 ;
32631 PyObject * obj6 = 0 ;
32632 char * kwnames[] = {
32633 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32634 };
32635
32636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32638 if (!SWIG_IsOK(res1)) {
32639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32640 }
32641 arg1 = reinterpret_cast< wxImageList * >(argp1);
32642 ecode2 = SWIG_AsVal_int(obj1, &val2);
32643 if (!SWIG_IsOK(ecode2)) {
32644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32645 }
32646 arg2 = static_cast< int >(val2);
32647 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32648 if (!SWIG_IsOK(res3)) {
32649 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32650 }
32651 if (!argp3) {
32652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32653 }
32654 arg3 = reinterpret_cast< wxDC * >(argp3);
32655 ecode4 = SWIG_AsVal_int(obj3, &val4);
32656 if (!SWIG_IsOK(ecode4)) {
32657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32658 }
32659 arg4 = static_cast< int >(val4);
32660 ecode5 = SWIG_AsVal_int(obj4, &val5);
32661 if (!SWIG_IsOK(ecode5)) {
32662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32663 }
32664 arg5 = static_cast< int >(val5);
32665 if (obj5) {
32666 ecode6 = SWIG_AsVal_int(obj5, &val6);
32667 if (!SWIG_IsOK(ecode6)) {
32668 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32669 }
32670 arg6 = static_cast< int >(val6);
32671 }
32672 if (obj6) {
32673 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32674 if (!SWIG_IsOK(ecode7)) {
32675 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32676 }
32677 arg7 = static_cast< bool >(val7);
32678 }
32679 {
32680 PyThreadState* __tstate = wxPyBeginAllowThreads();
32681 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32682 wxPyEndAllowThreads(__tstate);
32683 if (PyErr_Occurred()) SWIG_fail;
32684 }
32685 {
32686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32687 }
32688 return resultobj;
32689fail:
32690 return NULL;
32691}
32692
32693
32694SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32695 PyObject *resultobj = 0;
32696 wxImageList *arg1 = (wxImageList *) 0 ;
32697 int result;
32698 void *argp1 = 0 ;
32699 int res1 = 0 ;
32700 PyObject *swig_obj[1] ;
32701
32702 if (!args) SWIG_fail;
32703 swig_obj[0] = args;
32704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32705 if (!SWIG_IsOK(res1)) {
32706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32707 }
32708 arg1 = reinterpret_cast< wxImageList * >(argp1);
32709 {
32710 PyThreadState* __tstate = wxPyBeginAllowThreads();
32711 result = (int)(arg1)->GetImageCount();
32712 wxPyEndAllowThreads(__tstate);
32713 if (PyErr_Occurred()) SWIG_fail;
32714 }
32715 resultobj = SWIG_From_int(static_cast< int >(result));
32716 return resultobj;
32717fail:
32718 return NULL;
32719}
32720
32721
32722SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32723 PyObject *resultobj = 0;
32724 wxImageList *arg1 = (wxImageList *) 0 ;
32725 int arg2 ;
32726 bool result;
32727 void *argp1 = 0 ;
32728 int res1 = 0 ;
32729 int val2 ;
32730 int ecode2 = 0 ;
32731 PyObject * obj0 = 0 ;
32732 PyObject * obj1 = 0 ;
32733 char * kwnames[] = {
32734 (char *) "self",(char *) "index", NULL
32735 };
32736
32737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32739 if (!SWIG_IsOK(res1)) {
32740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32741 }
32742 arg1 = reinterpret_cast< wxImageList * >(argp1);
32743 ecode2 = SWIG_AsVal_int(obj1, &val2);
32744 if (!SWIG_IsOK(ecode2)) {
32745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32746 }
32747 arg2 = static_cast< int >(val2);
32748 {
32749 PyThreadState* __tstate = wxPyBeginAllowThreads();
32750 result = (bool)(arg1)->Remove(arg2);
32751 wxPyEndAllowThreads(__tstate);
32752 if (PyErr_Occurred()) SWIG_fail;
32753 }
32754 {
32755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32756 }
32757 return resultobj;
32758fail:
32759 return NULL;
32760}
32761
32762
32763SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32764 PyObject *resultobj = 0;
32765 wxImageList *arg1 = (wxImageList *) 0 ;
32766 bool result;
32767 void *argp1 = 0 ;
32768 int res1 = 0 ;
32769 PyObject *swig_obj[1] ;
32770
32771 if (!args) SWIG_fail;
32772 swig_obj[0] = args;
32773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32776 }
32777 arg1 = reinterpret_cast< wxImageList * >(argp1);
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 result = (bool)(arg1)->RemoveAll();
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
32784 {
32785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32786 }
32787 return resultobj;
32788fail:
32789 return NULL;
32790}
32791
32792
32793SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32794 PyObject *resultobj = 0;
32795 wxImageList *arg1 = (wxImageList *) 0 ;
32796 int arg2 ;
32797 int *arg3 = 0 ;
32798 int *arg4 = 0 ;
32799 void *argp1 = 0 ;
32800 int res1 = 0 ;
32801 int val2 ;
32802 int ecode2 = 0 ;
32803 int temp3 ;
32804 int res3 = SWIG_TMPOBJ ;
32805 int temp4 ;
32806 int res4 = SWIG_TMPOBJ ;
32807 PyObject * obj0 = 0 ;
32808 PyObject * obj1 = 0 ;
32809 char * kwnames[] = {
32810 (char *) "self",(char *) "index", NULL
32811 };
32812
32813 arg3 = &temp3;
32814 arg4 = &temp4;
32815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32817 if (!SWIG_IsOK(res1)) {
32818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32819 }
32820 arg1 = reinterpret_cast< wxImageList * >(argp1);
32821 ecode2 = SWIG_AsVal_int(obj1, &val2);
32822 if (!SWIG_IsOK(ecode2)) {
32823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32824 }
32825 arg2 = static_cast< int >(val2);
32826 {
32827 PyThreadState* __tstate = wxPyBeginAllowThreads();
32828 (arg1)->GetSize(arg2,*arg3,*arg4);
32829 wxPyEndAllowThreads(__tstate);
32830 if (PyErr_Occurred()) SWIG_fail;
32831 }
32832 resultobj = SWIG_Py_Void();
32833 if (SWIG_IsTmpObj(res3)) {
32834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32835 } else {
32836 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32838 }
32839 if (SWIG_IsTmpObj(res4)) {
32840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32841 } else {
32842 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32844 }
32845 return resultobj;
32846fail:
32847 return NULL;
32848}
32849
32850
32851SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32852 PyObject *obj;
32853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32854 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32855 return SWIG_Py_Void();
32856}
32857
32858SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32859 return SWIG_Python_InitShadowInstance(args);
32860}
32861
50efceee
RD
32862SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32863 PyObject *resultobj = 0;
32864 wxStockGDI *result = 0 ;
554f62e9 32865
50efceee
RD
32866 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32867 {
32868 PyThreadState* __tstate = wxPyBeginAllowThreads();
32869 result = (wxStockGDI *)new wxStockGDI();
32870 wxPyEndAllowThreads(__tstate);
32871 if (PyErr_Occurred()) SWIG_fail;
32872 }
32873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32874 return resultobj;
32875fail:
32876 return NULL;
554f62e9
RD
32877}
32878
32879
50efceee
RD
32880SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32881 PyObject *resultobj = 0;
32882 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32883 void *argp1 = 0 ;
32884 int res1 = 0 ;
32885 PyObject *swig_obj[1] ;
554f62e9 32886
50efceee
RD
32887 if (!args) SWIG_fail;
32888 swig_obj[0] = args;
32889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32890 if (!SWIG_IsOK(res1)) {
32891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32892 }
32893 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32894 {
32895 PyThreadState* __tstate = wxPyBeginAllowThreads();
32896 delete arg1;
32897
32898 wxPyEndAllowThreads(__tstate);
32899 if (PyErr_Occurred()) SWIG_fail;
32900 }
32901 resultobj = SWIG_Py_Void();
32902 return resultobj;
32903fail:
32904 return NULL;
554f62e9
RD
32905}
32906
32907
50efceee
RD
32908SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32909 PyObject *resultobj = 0;
554f62e9 32910
50efceee
RD
32911 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32912 {
32913 PyThreadState* __tstate = wxPyBeginAllowThreads();
32914 wxStockGDI::DeleteAll();
32915 wxPyEndAllowThreads(__tstate);
32916 if (PyErr_Occurred()) SWIG_fail;
32917 }
32918 resultobj = SWIG_Py_Void();
32919 return resultobj;
32920fail:
32921 return NULL;
554f62e9
RD
32922}
32923
32924
50efceee
RD
32925SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32926 PyObject *resultobj = 0;
32927 wxStockGDI *result = 0 ;
554f62e9 32928
50efceee
RD
32929 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32930 {
32931 PyThreadState* __tstate = wxPyBeginAllowThreads();
32932 {
32933 wxStockGDI &_result_ref = wxStockGDI::instance();
32934 result = (wxStockGDI *) &_result_ref;
32935 }
32936 wxPyEndAllowThreads(__tstate);
32937 if (PyErr_Occurred()) SWIG_fail;
32938 }
32939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32940 return resultobj;
32941fail:
32942 return NULL;
554f62e9
RD
32943}
32944
32945
50efceee
RD
32946SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32947 PyObject *resultobj = 0;
32948 wxStockGDI::Item arg1 ;
32949 wxBrush *result = 0 ;
32950 int val1 ;
32951 int ecode1 = 0 ;
32952 PyObject * obj0 = 0 ;
32953 char * kwnames[] = {
32954 (char *) "item", NULL
32955 };
32956
32957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32958 ecode1 = SWIG_AsVal_int(obj0, &val1);
32959 if (!SWIG_IsOK(ecode1)) {
32960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32961 }
32962 arg1 = static_cast< wxStockGDI::Item >(val1);
32963 {
32964 PyThreadState* __tstate = wxPyBeginAllowThreads();
32965 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32966 wxPyEndAllowThreads(__tstate);
32967 if (PyErr_Occurred()) SWIG_fail;
32968 }
32969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32970 return resultobj;
32971fail:
32972 return NULL;
554f62e9
RD
32973}
32974
32975
50efceee
RD
32976SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32977 PyObject *resultobj = 0;
32978 wxStockGDI::Item arg1 ;
32979 wxColour *result = 0 ;
32980 int val1 ;
32981 int ecode1 = 0 ;
32982 PyObject * obj0 = 0 ;
32983 char * kwnames[] = {
32984 (char *) "item", NULL
32985 };
554f62e9 32986
50efceee
RD
32987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32988 ecode1 = SWIG_AsVal_int(obj0, &val1);
32989 if (!SWIG_IsOK(ecode1)) {
32990 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32991 }
32992 arg1 = static_cast< wxStockGDI::Item >(val1);
32993 {
32994 PyThreadState* __tstate = wxPyBeginAllowThreads();
32995 result = (wxColour *)wxStockGDI::GetColour(arg1);
32996 wxPyEndAllowThreads(__tstate);
32997 if (PyErr_Occurred()) SWIG_fail;
32998 }
32999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33000 return resultobj;
33001fail:
33002 return NULL;
554f62e9
RD
33003}
33004
33005
50efceee
RD
33006SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33007 PyObject *resultobj = 0;
33008 wxStockGDI::Item arg1 ;
33009 wxCursor *result = 0 ;
33010 int val1 ;
33011 int ecode1 = 0 ;
33012 PyObject * obj0 = 0 ;
33013 char * kwnames[] = {
33014 (char *) "item", NULL
33015 };
33016
33017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
33018 ecode1 = SWIG_AsVal_int(obj0, &val1);
33019 if (!SWIG_IsOK(ecode1)) {
33020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33021 }
33022 arg1 = static_cast< wxStockGDI::Item >(val1);
33023 {
33024 PyThreadState* __tstate = wxPyBeginAllowThreads();
33025 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
33026 wxPyEndAllowThreads(__tstate);
33027 if (PyErr_Occurred()) SWIG_fail;
33028 }
33029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
33030 return resultobj;
33031fail:
33032 return NULL;
554f62e9
RD
33033}
33034
33035
50efceee
RD
33036SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33037 PyObject *resultobj = 0;
33038 wxStockGDI::Item arg1 ;
33039 wxPen *result = 0 ;
33040 int val1 ;
33041 int ecode1 = 0 ;
33042 PyObject * obj0 = 0 ;
33043 char * kwnames[] = {
33044 (char *) "item", NULL
33045 };
33046
33047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
33048 ecode1 = SWIG_AsVal_int(obj0, &val1);
33049 if (!SWIG_IsOK(ecode1)) {
33050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33051 }
33052 arg1 = static_cast< wxStockGDI::Item >(val1);
33053 {
33054 PyThreadState* __tstate = wxPyBeginAllowThreads();
33055 result = (wxPen *)wxStockGDI::GetPen(arg1);
33056 wxPyEndAllowThreads(__tstate);
33057 if (PyErr_Occurred()) SWIG_fail;
33058 }
33059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33060 return resultobj;
33061fail:
33062 return NULL;
554f62e9
RD
33063}
33064
33065
50efceee
RD
33066SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33067 PyObject *resultobj = 0;
33068 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
33069 wxStockGDI::Item arg2 ;
33070 wxFont *result = 0 ;
33071 void *argp1 = 0 ;
33072 int res1 = 0 ;
33073 int val2 ;
33074 int ecode2 = 0 ;
33075 PyObject * obj0 = 0 ;
33076 PyObject * obj1 = 0 ;
33077 char * kwnames[] = {
33078 (char *) "self",(char *) "item", NULL
33079 };
554f62e9 33080
50efceee
RD
33081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
33085 }
33086 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
33087 ecode2 = SWIG_AsVal_int(obj1, &val2);
33088 if (!SWIG_IsOK(ecode2)) {
33089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
33090 }
33091 arg2 = static_cast< wxStockGDI::Item >(val2);
33092 {
33093 PyThreadState* __tstate = wxPyBeginAllowThreads();
33094 result = (wxFont *)(arg1)->GetFont(arg2);
33095 wxPyEndAllowThreads(__tstate);
33096 if (PyErr_Occurred()) SWIG_fail;
33097 }
33098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33099 return resultobj;
33100fail:
33101 return NULL;
554f62e9
RD
33102}
33103
33104
50efceee
RD
33105SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33106 PyObject *obj;
33107 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33108 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
33109 return SWIG_Py_Void();
554f62e9
RD
33110}
33111
50efceee
RD
33112SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33113 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
33114}
33115
554f62e9
RD
33116SWIGINTERN int NullBitmap_set(PyObject *) {
33117 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
33118 return 1;
33119}
33120
33121
33122SWIGINTERN PyObject *NullBitmap_get(void) {
33123 PyObject *pyobj = 0;
33124
33125 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
33126 return pyobj;
33127}
33128
33129
33130SWIGINTERN int NullIcon_set(PyObject *) {
33131 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
33132 return 1;
33133}
33134
33135
33136SWIGINTERN PyObject *NullIcon_get(void) {
33137 PyObject *pyobj = 0;
33138
33139 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
33140 return pyobj;
33141}
33142
33143
33144SWIGINTERN int NullCursor_set(PyObject *) {
33145 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
33146 return 1;
33147}
33148
33149
33150SWIGINTERN PyObject *NullCursor_get(void) {
33151 PyObject *pyobj = 0;
33152
33153 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
33154 return pyobj;
33155}
33156
33157
33158SWIGINTERN int NullPen_set(PyObject *) {
33159 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
33160 return 1;
33161}
33162
33163
33164SWIGINTERN PyObject *NullPen_get(void) {
33165 PyObject *pyobj = 0;
33166
33167 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
33168 return pyobj;
33169}
33170
33171
33172SWIGINTERN int NullBrush_set(PyObject *) {
33173 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
33174 return 1;
33175}
33176
33177
33178SWIGINTERN PyObject *NullBrush_get(void) {
33179 PyObject *pyobj = 0;
33180
33181 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
33182 return pyobj;
33183}
33184
33185
33186SWIGINTERN int NullPalette_set(PyObject *) {
33187 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
33188 return 1;
33189}
33190
33191
33192SWIGINTERN PyObject *NullPalette_get(void) {
33193 PyObject *pyobj = 0;
33194
33195 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
33196 return pyobj;
33197}
33198
33199
33200SWIGINTERN int NullFont_set(PyObject *) {
33201 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
33202 return 1;
33203}
33204
33205
33206SWIGINTERN PyObject *NullFont_get(void) {
33207 PyObject *pyobj = 0;
33208
33209 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
33210 return pyobj;
33211}
33212
33213
33214SWIGINTERN int NullColour_set(PyObject *) {
33215 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
33216 return 1;
33217}
33218
33219
33220SWIGINTERN PyObject *NullColour_get(void) {
33221 PyObject *pyobj = 0;
33222
33223 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
33224 return pyobj;
33225}
33226
33227
50efceee 33228SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33229 PyObject *resultobj = 0;
50efceee
RD
33230 wxGDIObjListBase *result = 0 ;
33231
33232 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
33233 {
33234 PyThreadState* __tstate = wxPyBeginAllowThreads();
33235 result = (wxGDIObjListBase *)new wxGDIObjListBase();
33236 wxPyEndAllowThreads(__tstate);
33237 if (PyErr_Occurred()) SWIG_fail;
33238 }
33239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
33240 return resultobj;
33241fail:
33242 return NULL;
33243}
33244
33245
33246SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33247 PyObject *resultobj = 0;
33248 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
33249 void *argp1 = 0 ;
33250 int res1 = 0 ;
50efceee 33251 PyObject *swig_obj[1] ;
554f62e9 33252
50efceee
RD
33253 if (!args) SWIG_fail;
33254 swig_obj[0] = args;
33255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 33256 if (!SWIG_IsOK(res1)) {
50efceee 33257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 33258 }
50efceee 33259 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
33262 delete arg1;
33263
554f62e9
RD
33264 wxPyEndAllowThreads(__tstate);
33265 if (PyErr_Occurred()) SWIG_fail;
33266 }
33267 resultobj = SWIG_Py_Void();
33268 return resultobj;
33269fail:
33270 return NULL;
33271}
33272
33273
50efceee
RD
33274SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33275 PyObject *obj;
33276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33277 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
33278 return SWIG_Py_Void();
33279}
33280
33281SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33282 return SWIG_Python_InitShadowInstance(args);
33283}
33284
554f62e9
RD
33285SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33286 PyObject *resultobj = 0;
33287 wxPenList *arg1 = (wxPenList *) 0 ;
33288 wxColour *arg2 = 0 ;
33289 int arg3 ;
33290 int arg4 ;
33291 wxPen *result = 0 ;
33292 void *argp1 = 0 ;
33293 int res1 = 0 ;
33294 wxColour temp2 ;
33295 int val3 ;
33296 int ecode3 = 0 ;
33297 int val4 ;
33298 int ecode4 = 0 ;
33299 PyObject * obj0 = 0 ;
33300 PyObject * obj1 = 0 ;
33301 PyObject * obj2 = 0 ;
33302 PyObject * obj3 = 0 ;
33303 char * kwnames[] = {
33304 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
33305 };
33306
33307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33309 if (!SWIG_IsOK(res1)) {
33310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33311 }
33312 arg1 = reinterpret_cast< wxPenList * >(argp1);
33313 {
33314 arg2 = &temp2;
33315 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33316 }
33317 ecode3 = SWIG_AsVal_int(obj2, &val3);
33318 if (!SWIG_IsOK(ecode3)) {
33319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
33320 }
33321 arg3 = static_cast< int >(val3);
33322 ecode4 = SWIG_AsVal_int(obj3, &val4);
33323 if (!SWIG_IsOK(ecode4)) {
33324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
33325 }
33326 arg4 = static_cast< int >(val4);
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33334 return resultobj;
33335fail:
33336 return NULL;
33337}
33338
33339
554f62e9
RD
33340SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33341 PyObject *obj;
33342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33343 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
33344 return SWIG_Py_Void();
33345}
33346
50efceee
RD
33347SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33348 PyObject *resultobj = 0;
33349 wxBrushList *arg1 = (wxBrushList *) 0 ;
33350 wxColour *arg2 = 0 ;
33351 int arg3 = (int) wxSOLID ;
33352 wxBrush *result = 0 ;
33353 void *argp1 = 0 ;
33354 int res1 = 0 ;
33355 wxColour temp2 ;
33356 int val3 ;
33357 int ecode3 = 0 ;
33358 PyObject * obj0 = 0 ;
33359 PyObject * obj1 = 0 ;
33360 PyObject * obj2 = 0 ;
33361 char * kwnames[] = {
33362 (char *) "self",(char *) "colour",(char *) "style", NULL
33363 };
33364
33365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33367 if (!SWIG_IsOK(res1)) {
33368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33369 }
33370 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33371 {
33372 arg2 = &temp2;
33373 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33374 }
33375 if (obj2) {
33376 ecode3 = SWIG_AsVal_int(obj2, &val3);
33377 if (!SWIG_IsOK(ecode3)) {
33378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33379 }
33380 arg3 = static_cast< int >(val3);
33381 }
33382 {
33383 PyThreadState* __tstate = wxPyBeginAllowThreads();
33384 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33385 wxPyEndAllowThreads(__tstate);
33386 if (PyErr_Occurred()) SWIG_fail;
33387 }
33388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33389 return resultobj;
33390fail:
33391 return NULL;
33392}
33393
33394
50efceee
RD
33395SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33396 PyObject *obj;
33397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33398 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33399 return SWIG_Py_Void();
33400}
33401
33402SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33403 PyObject *resultobj = 0;
33404 wxFontList *arg1 = (wxFontList *) 0 ;
33405 int arg2 ;
33406 int arg3 ;
33407 int arg4 ;
33408 int arg5 ;
33409 bool arg6 = (bool) false ;
33410 wxString const &arg7_defvalue = wxPyEmptyString ;
33411 wxString *arg7 = (wxString *) &arg7_defvalue ;
33412 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33413 wxFont *result = 0 ;
33414 void *argp1 = 0 ;
33415 int res1 = 0 ;
33416 int val2 ;
33417 int ecode2 = 0 ;
554f62e9
RD
33418 int val3 ;
33419 int ecode3 = 0 ;
50efceee
RD
33420 int val4 ;
33421 int ecode4 = 0 ;
33422 int val5 ;
33423 int ecode5 = 0 ;
33424 bool val6 ;
33425 int ecode6 = 0 ;
33426 bool temp7 = false ;
33427 int val8 ;
33428 int ecode8 = 0 ;
554f62e9
RD
33429 PyObject * obj0 = 0 ;
33430 PyObject * obj1 = 0 ;
33431 PyObject * obj2 = 0 ;
50efceee
RD
33432 PyObject * obj3 = 0 ;
33433 PyObject * obj4 = 0 ;
33434 PyObject * obj5 = 0 ;
33435 PyObject * obj6 = 0 ;
33436 PyObject * obj7 = 0 ;
554f62e9 33437 char * kwnames[] = {
50efceee 33438 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
33439 };
33440
50efceee
RD
33441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33443 if (!SWIG_IsOK(res1)) {
50efceee 33444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33445 }
50efceee
RD
33446 arg1 = reinterpret_cast< wxFontList * >(argp1);
33447 ecode2 = SWIG_AsVal_int(obj1, &val2);
33448 if (!SWIG_IsOK(ecode2)) {
33449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33450 }
33451 arg2 = static_cast< int >(val2);
33452 ecode3 = SWIG_AsVal_int(obj2, &val3);
33453 if (!SWIG_IsOK(ecode3)) {
33454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33455 }
33456 arg3 = static_cast< int >(val3);
33457 ecode4 = SWIG_AsVal_int(obj3, &val4);
33458 if (!SWIG_IsOK(ecode4)) {
33459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33460 }
33461 arg4 = static_cast< int >(val4);
33462 ecode5 = SWIG_AsVal_int(obj4, &val5);
33463 if (!SWIG_IsOK(ecode5)) {
33464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33465 }
33466 arg5 = static_cast< int >(val5);
33467 if (obj5) {
33468 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33469 if (!SWIG_IsOK(ecode6)) {
33470 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33471 }
33472 arg6 = static_cast< bool >(val6);
554f62e9 33473 }
50efceee
RD
33474 if (obj6) {
33475 {
33476 arg7 = wxString_in_helper(obj6);
33477 if (arg7 == NULL) SWIG_fail;
33478 temp7 = true;
33479 }
33480 }
33481 if (obj7) {
33482 ecode8 = SWIG_AsVal_int(obj7, &val8);
33483 if (!SWIG_IsOK(ecode8)) {
33484 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 33485 }
50efceee 33486 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
33487 }
33488 {
33489 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33490 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
33491 wxPyEndAllowThreads(__tstate);
33492 if (PyErr_Occurred()) SWIG_fail;
33493 }
50efceee
RD
33494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33495 {
33496 if (temp7)
33497 delete arg7;
33498 }
554f62e9
RD
33499 return resultobj;
33500fail:
50efceee
RD
33501 {
33502 if (temp7)
33503 delete arg7;
33504 }
554f62e9
RD
33505 return NULL;
33506}
33507
33508
50efceee 33509SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
33510 PyObject *obj;
33511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 33512 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
33513 return SWIG_Py_Void();
33514}
33515
33516SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33517 PyObject *resultobj = 0;
33518 wxColourDatabase *result = 0 ;
33519
33520 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33521 {
33522 if (!wxPyCheckForApp()) SWIG_fail;
33523 PyThreadState* __tstate = wxPyBeginAllowThreads();
33524 result = (wxColourDatabase *)new wxColourDatabase();
33525 wxPyEndAllowThreads(__tstate);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 }
33528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33529 return resultobj;
33530fail:
33531 return NULL;
33532}
33533
33534
33535SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33536 PyObject *resultobj = 0;
33537 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33538 void *argp1 = 0 ;
33539 int res1 = 0 ;
33540 PyObject *swig_obj[1] ;
33541
33542 if (!args) SWIG_fail;
33543 swig_obj[0] = args;
33544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33545 if (!SWIG_IsOK(res1)) {
33546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33547 }
33548 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33549 {
33550 PyThreadState* __tstate = wxPyBeginAllowThreads();
33551 delete arg1;
33552
33553 wxPyEndAllowThreads(__tstate);
33554 if (PyErr_Occurred()) SWIG_fail;
33555 }
33556 resultobj = SWIG_Py_Void();
33557 return resultobj;
33558fail:
33559 return NULL;
33560}
33561
33562
33563SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33564 PyObject *resultobj = 0;
33565 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33566 wxString *arg2 = 0 ;
33567 wxColour result;
33568 void *argp1 = 0 ;
33569 int res1 = 0 ;
33570 bool temp2 = false ;
33571 PyObject * obj0 = 0 ;
33572 PyObject * obj1 = 0 ;
33573 char * kwnames[] = {
33574 (char *) "self",(char *) "name", NULL
33575 };
33576
33577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33579 if (!SWIG_IsOK(res1)) {
33580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33581 }
33582 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33583 {
33584 arg2 = wxString_in_helper(obj1);
33585 if (arg2 == NULL) SWIG_fail;
33586 temp2 = true;
33587 }
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33595 {
33596 if (temp2)
33597 delete arg2;
33598 }
33599 return resultobj;
33600fail:
33601 {
33602 if (temp2)
33603 delete arg2;
33604 }
33605 return NULL;
33606}
33607
33608
33609SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33610 PyObject *resultobj = 0;
33611 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33612 wxColour *arg2 = 0 ;
33613 wxString result;
33614 void *argp1 = 0 ;
33615 int res1 = 0 ;
33616 wxColour temp2 ;
33617 PyObject * obj0 = 0 ;
33618 PyObject * obj1 = 0 ;
33619 char * kwnames[] = {
33620 (char *) "self",(char *) "colour", NULL
33621 };
33622
33623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33625 if (!SWIG_IsOK(res1)) {
33626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33627 }
33628 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33629 {
33630 arg2 = &temp2;
33631 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33632 }
33633 {
33634 PyThreadState* __tstate = wxPyBeginAllowThreads();
33635 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33636 wxPyEndAllowThreads(__tstate);
33637 if (PyErr_Occurred()) SWIG_fail;
33638 }
33639 {
33640#if wxUSE_UNICODE
33641 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33642#else
33643 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33644#endif
33645 }
33646 return resultobj;
33647fail:
33648 return NULL;
33649}
33650
33651
33652SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33653 PyObject *resultobj = 0;
33654 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33655 wxString *arg2 = 0 ;
33656 wxColour *arg3 = 0 ;
33657 void *argp1 = 0 ;
33658 int res1 = 0 ;
33659 bool temp2 = false ;
33660 wxColour temp3 ;
33661 PyObject * obj0 = 0 ;
33662 PyObject * obj1 = 0 ;
33663 PyObject * obj2 = 0 ;
33664 char * kwnames[] = {
33665 (char *) "self",(char *) "name",(char *) "colour", NULL
33666 };
33667
33668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33670 if (!SWIG_IsOK(res1)) {
33671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33672 }
33673 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33674 {
33675 arg2 = wxString_in_helper(obj1);
33676 if (arg2 == NULL) SWIG_fail;
33677 temp2 = true;
33678 }
33679 {
33680 arg3 = &temp3;
33681 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33682 }
33683 {
33684 PyThreadState* __tstate = wxPyBeginAllowThreads();
33685 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33686 wxPyEndAllowThreads(__tstate);
33687 if (PyErr_Occurred()) SWIG_fail;
33688 }
33689 resultobj = SWIG_Py_Void();
33690 {
33691 if (temp2)
33692 delete arg2;
33693 }
33694 return resultobj;
33695fail:
33696 {
33697 if (temp2)
33698 delete arg2;
33699 }
33700 return NULL;
33701}
33702
33703
33704SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33705 PyObject *resultobj = 0;
33706 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33707 wxString *arg2 = 0 ;
33708 int arg3 ;
33709 int arg4 ;
33710 int arg5 ;
33711 void *argp1 = 0 ;
33712 int res1 = 0 ;
33713 bool temp2 = false ;
33714 int val3 ;
33715 int ecode3 = 0 ;
33716 int val4 ;
33717 int ecode4 = 0 ;
50efceee
RD
33718 int val5 ;
33719 int ecode5 = 0 ;
554f62e9
RD
33720 PyObject * obj0 = 0 ;
33721 PyObject * obj1 = 0 ;
33722 PyObject * obj2 = 0 ;
33723 PyObject * obj3 = 0 ;
33724 PyObject * obj4 = 0 ;
554f62e9 33725 char * kwnames[] = {
50efceee 33726 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
33727 };
33728
50efceee
RD
33729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 33731 if (!SWIG_IsOK(res1)) {
50efceee
RD
33732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33733 }
33734 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33735 {
33736 arg2 = wxString_in_helper(obj1);
33737 if (arg2 == NULL) SWIG_fail;
33738 temp2 = true;
554f62e9 33739 }
554f62e9
RD
33740 ecode3 = SWIG_AsVal_int(obj2, &val3);
33741 if (!SWIG_IsOK(ecode3)) {
50efceee 33742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
33743 }
33744 arg3 = static_cast< int >(val3);
33745 ecode4 = SWIG_AsVal_int(obj3, &val4);
33746 if (!SWIG_IsOK(ecode4)) {
50efceee 33747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
33748 }
33749 arg4 = static_cast< int >(val4);
33750 ecode5 = SWIG_AsVal_int(obj4, &val5);
33751 if (!SWIG_IsOK(ecode5)) {
50efceee 33752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
33753 }
33754 arg5 = static_cast< int >(val5);
554f62e9
RD
33755 {
33756 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33757 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
33758 wxPyEndAllowThreads(__tstate);
33759 if (PyErr_Occurred()) SWIG_fail;
33760 }
50efceee 33761 resultobj = SWIG_Py_Void();
554f62e9 33762 {
50efceee
RD
33763 if (temp2)
33764 delete arg2;
554f62e9
RD
33765 }
33766 return resultobj;
33767fail:
33768 {
50efceee
RD
33769 if (temp2)
33770 delete arg2;
554f62e9
RD
33771 }
33772 return NULL;
33773}
33774
33775
50efceee
RD
33776SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33777 PyObject *obj;
33778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33779 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33780 return SWIG_Py_Void();
33781}
33782
33783SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33784 return SWIG_Python_InitShadowInstance(args);
33785}
33786
33787SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33788 PyObject *resultobj = 0;
50efceee 33789 wxFontList *result = 0 ;
554f62e9 33790
50efceee 33791 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
33792 {
33793 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33794 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
33795 wxPyEndAllowThreads(__tstate);
33796 if (PyErr_Occurred()) SWIG_fail;
33797 }
50efceee 33798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
33799 return resultobj;
33800fail:
33801 return NULL;
33802}
33803
33804
50efceee 33805SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33806 PyObject *resultobj = 0;
50efceee 33807 wxPenList *result = 0 ;
554f62e9 33808
50efceee 33809 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
33810 {
33811 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33812 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
33813 wxPyEndAllowThreads(__tstate);
33814 if (PyErr_Occurred()) SWIG_fail;
33815 }
50efceee 33816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
33817 return resultobj;
33818fail:
33819 return NULL;
33820}
33821
33822
50efceee
RD
33823SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33824 PyObject *resultobj = 0;
33825 wxBrushList *result = 0 ;
554f62e9 33826
50efceee
RD
33827 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33828 {
33829 PyThreadState* __tstate = wxPyBeginAllowThreads();
33830 result = (wxBrushList *)_wxPyInitTheBrushList();
33831 wxPyEndAllowThreads(__tstate);
33832 if (PyErr_Occurred()) SWIG_fail;
33833 }
33834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33835 return resultobj;
33836fail:
33837 return NULL;
554f62e9
RD
33838}
33839
33840
50efceee
RD
33841SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33842 PyObject *resultobj = 0;
33843 wxColourDatabase *result = 0 ;
554f62e9 33844
50efceee
RD
33845 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33846 {
33847 PyThreadState* __tstate = wxPyBeginAllowThreads();
33848 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33849 wxPyEndAllowThreads(__tstate);
33850 if (PyErr_Occurred()) SWIG_fail;
33851 }
33852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33853 return resultobj;
33854fail:
33855 return NULL;
554f62e9
RD
33856}
33857
33858
33859SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33860 PyObject *resultobj = 0;
33861 wxEffects *result = 0 ;
33862
33863 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33864 {
33865 PyThreadState* __tstate = wxPyBeginAllowThreads();
33866 result = (wxEffects *)new wxEffects();
33867 wxPyEndAllowThreads(__tstate);
33868 if (PyErr_Occurred()) SWIG_fail;
33869 }
33870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33871 return resultobj;
33872fail:
33873 return NULL;
33874}
33875
33876
33877SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33878 PyObject *resultobj = 0;
33879 wxEffects *arg1 = (wxEffects *) 0 ;
33880 wxColour result;
33881 void *argp1 = 0 ;
33882 int res1 = 0 ;
33883 PyObject *swig_obj[1] ;
33884
33885 if (!args) SWIG_fail;
33886 swig_obj[0] = args;
33887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33888 if (!SWIG_IsOK(res1)) {
33889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33890 }
33891 arg1 = reinterpret_cast< wxEffects * >(argp1);
33892 {
33893 PyThreadState* __tstate = wxPyBeginAllowThreads();
33894 result = ((wxEffects const *)arg1)->GetHighlightColour();
33895 wxPyEndAllowThreads(__tstate);
33896 if (PyErr_Occurred()) SWIG_fail;
33897 }
33898 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33899 return resultobj;
33900fail:
33901 return NULL;
33902}
33903
33904
33905SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33906 PyObject *resultobj = 0;
33907 wxEffects *arg1 = (wxEffects *) 0 ;
33908 wxColour result;
33909 void *argp1 = 0 ;
33910 int res1 = 0 ;
33911 PyObject *swig_obj[1] ;
33912
33913 if (!args) SWIG_fail;
33914 swig_obj[0] = args;
33915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33916 if (!SWIG_IsOK(res1)) {
33917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33918 }
33919 arg1 = reinterpret_cast< wxEffects * >(argp1);
33920 {
33921 PyThreadState* __tstate = wxPyBeginAllowThreads();
33922 result = ((wxEffects const *)arg1)->GetLightShadow();
33923 wxPyEndAllowThreads(__tstate);
33924 if (PyErr_Occurred()) SWIG_fail;
33925 }
33926 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33927 return resultobj;
33928fail:
33929 return NULL;
33930}
33931
33932
33933SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33934 PyObject *resultobj = 0;
33935 wxEffects *arg1 = (wxEffects *) 0 ;
33936 wxColour result;
33937 void *argp1 = 0 ;
33938 int res1 = 0 ;
33939 PyObject *swig_obj[1] ;
33940
33941 if (!args) SWIG_fail;
33942 swig_obj[0] = args;
33943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33944 if (!SWIG_IsOK(res1)) {
33945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33946 }
33947 arg1 = reinterpret_cast< wxEffects * >(argp1);
33948 {
33949 PyThreadState* __tstate = wxPyBeginAllowThreads();
33950 result = ((wxEffects const *)arg1)->GetFaceColour();
33951 wxPyEndAllowThreads(__tstate);
33952 if (PyErr_Occurred()) SWIG_fail;
33953 }
33954 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33955 return resultobj;
33956fail:
33957 return NULL;
33958}
33959
33960
33961SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33962 PyObject *resultobj = 0;
33963 wxEffects *arg1 = (wxEffects *) 0 ;
33964 wxColour result;
33965 void *argp1 = 0 ;
33966 int res1 = 0 ;
33967 PyObject *swig_obj[1] ;
33968
33969 if (!args) SWIG_fail;
33970 swig_obj[0] = args;
33971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33972 if (!SWIG_IsOK(res1)) {
33973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33974 }
33975 arg1 = reinterpret_cast< wxEffects * >(argp1);
33976 {
33977 PyThreadState* __tstate = wxPyBeginAllowThreads();
33978 result = ((wxEffects const *)arg1)->GetMediumShadow();
33979 wxPyEndAllowThreads(__tstate);
33980 if (PyErr_Occurred()) SWIG_fail;
33981 }
33982 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33983 return resultobj;
33984fail:
33985 return NULL;
33986}
33987
33988
33989SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33990 PyObject *resultobj = 0;
33991 wxEffects *arg1 = (wxEffects *) 0 ;
33992 wxColour result;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 PyObject *swig_obj[1] ;
33996
33997 if (!args) SWIG_fail;
33998 swig_obj[0] = args;
33999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34002 }
34003 arg1 = reinterpret_cast< wxEffects * >(argp1);
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 result = ((wxEffects const *)arg1)->GetDarkShadow();
34007 wxPyEndAllowThreads(__tstate);
34008 if (PyErr_Occurred()) SWIG_fail;
34009 }
34010 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34011 return resultobj;
34012fail:
34013 return NULL;
34014}
34015
34016
34017SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34018 PyObject *resultobj = 0;
34019 wxEffects *arg1 = (wxEffects *) 0 ;
34020 wxColour *arg2 = 0 ;
34021 void *argp1 = 0 ;
34022 int res1 = 0 ;
34023 wxColour temp2 ;
34024 PyObject * obj0 = 0 ;
34025 PyObject * obj1 = 0 ;
34026 char * kwnames[] = {
34027 (char *) "self",(char *) "c", NULL
34028 };
34029
34030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
34031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34034 }
34035 arg1 = reinterpret_cast< wxEffects * >(argp1);
34036 {
34037 arg2 = &temp2;
34038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34039 }
34040 {
34041 PyThreadState* __tstate = wxPyBeginAllowThreads();
34042 (arg1)->SetHighlightColour((wxColour const &)*arg2);
34043 wxPyEndAllowThreads(__tstate);
34044 if (PyErr_Occurred()) SWIG_fail;
34045 }
34046 resultobj = SWIG_Py_Void();
34047 return resultobj;
34048fail:
34049 return NULL;
34050}
34051
34052
34053SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34054 PyObject *resultobj = 0;
34055 wxEffects *arg1 = (wxEffects *) 0 ;
34056 wxColour *arg2 = 0 ;
34057 void *argp1 = 0 ;
34058 int res1 = 0 ;
34059 wxColour temp2 ;
34060 PyObject * obj0 = 0 ;
34061 PyObject * obj1 = 0 ;
34062 char * kwnames[] = {
34063 (char *) "self",(char *) "c", NULL
34064 };
34065
34066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34068 if (!SWIG_IsOK(res1)) {
34069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34070 }
34071 arg1 = reinterpret_cast< wxEffects * >(argp1);
34072 {
34073 arg2 = &temp2;
34074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34075 }
34076 {
34077 PyThreadState* __tstate = wxPyBeginAllowThreads();
34078 (arg1)->SetLightShadow((wxColour const &)*arg2);
34079 wxPyEndAllowThreads(__tstate);
34080 if (PyErr_Occurred()) SWIG_fail;
34081 }
34082 resultobj = SWIG_Py_Void();
34083 return resultobj;
34084fail:
34085 return NULL;
34086}
34087
34088
34089SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34090 PyObject *resultobj = 0;
34091 wxEffects *arg1 = (wxEffects *) 0 ;
34092 wxColour *arg2 = 0 ;
34093 void *argp1 = 0 ;
34094 int res1 = 0 ;
34095 wxColour temp2 ;
34096 PyObject * obj0 = 0 ;
34097 PyObject * obj1 = 0 ;
34098 char * kwnames[] = {
34099 (char *) "self",(char *) "c", NULL
34100 };
34101
34102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
34103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34104 if (!SWIG_IsOK(res1)) {
34105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34106 }
34107 arg1 = reinterpret_cast< wxEffects * >(argp1);
34108 {
34109 arg2 = &temp2;
34110 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34111 }
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 (arg1)->SetFaceColour((wxColour const &)*arg2);
34115 wxPyEndAllowThreads(__tstate);
34116 if (PyErr_Occurred()) SWIG_fail;
34117 }
34118 resultobj = SWIG_Py_Void();
34119 return resultobj;
34120fail:
34121 return NULL;
34122}
34123
34124
34125SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34126 PyObject *resultobj = 0;
34127 wxEffects *arg1 = (wxEffects *) 0 ;
34128 wxColour *arg2 = 0 ;
34129 void *argp1 = 0 ;
34130 int res1 = 0 ;
34131 wxColour temp2 ;
34132 PyObject * obj0 = 0 ;
34133 PyObject * obj1 = 0 ;
34134 char * kwnames[] = {
34135 (char *) "self",(char *) "c", NULL
34136 };
34137
34138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34140 if (!SWIG_IsOK(res1)) {
34141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34142 }
34143 arg1 = reinterpret_cast< wxEffects * >(argp1);
34144 {
34145 arg2 = &temp2;
34146 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34147 }
34148 {
34149 PyThreadState* __tstate = wxPyBeginAllowThreads();
34150 (arg1)->SetMediumShadow((wxColour const &)*arg2);
34151 wxPyEndAllowThreads(__tstate);
34152 if (PyErr_Occurred()) SWIG_fail;
34153 }
34154 resultobj = SWIG_Py_Void();
34155 return resultobj;
34156fail:
34157 return NULL;
34158}
34159
34160
34161SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34162 PyObject *resultobj = 0;
34163 wxEffects *arg1 = (wxEffects *) 0 ;
34164 wxColour *arg2 = 0 ;
34165 void *argp1 = 0 ;
34166 int res1 = 0 ;
34167 wxColour temp2 ;
34168 PyObject * obj0 = 0 ;
34169 PyObject * obj1 = 0 ;
34170 char * kwnames[] = {
34171 (char *) "self",(char *) "c", NULL
34172 };
34173
34174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34176 if (!SWIG_IsOK(res1)) {
34177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34178 }
34179 arg1 = reinterpret_cast< wxEffects * >(argp1);
34180 {
34181 arg2 = &temp2;
34182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34183 }
34184 {
34185 PyThreadState* __tstate = wxPyBeginAllowThreads();
34186 (arg1)->SetDarkShadow((wxColour const &)*arg2);
34187 wxPyEndAllowThreads(__tstate);
34188 if (PyErr_Occurred()) SWIG_fail;
34189 }
34190 resultobj = SWIG_Py_Void();
34191 return resultobj;
34192fail:
34193 return NULL;
34194}
34195
34196
34197SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34198 PyObject *resultobj = 0;
34199 wxEffects *arg1 = (wxEffects *) 0 ;
34200 wxColour *arg2 = 0 ;
34201 wxColour *arg3 = 0 ;
34202 wxColour *arg4 = 0 ;
34203 wxColour *arg5 = 0 ;
34204 wxColour *arg6 = 0 ;
34205 void *argp1 = 0 ;
34206 int res1 = 0 ;
34207 wxColour temp2 ;
34208 wxColour temp3 ;
34209 wxColour temp4 ;
34210 wxColour temp5 ;
34211 wxColour temp6 ;
34212 PyObject * obj0 = 0 ;
34213 PyObject * obj1 = 0 ;
34214 PyObject * obj2 = 0 ;
34215 PyObject * obj3 = 0 ;
34216 PyObject * obj4 = 0 ;
34217 PyObject * obj5 = 0 ;
34218 char * kwnames[] = {
34219 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34220 };
34221
34222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34224 if (!SWIG_IsOK(res1)) {
34225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34226 }
34227 arg1 = reinterpret_cast< wxEffects * >(argp1);
34228 {
34229 arg2 = &temp2;
34230 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34231 }
34232 {
34233 arg3 = &temp3;
34234 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34235 }
34236 {
34237 arg4 = &temp4;
34238 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34239 }
34240 {
34241 arg5 = &temp5;
34242 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34243 }
34244 {
34245 arg6 = &temp6;
34246 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34247 }
34248 {
34249 PyThreadState* __tstate = wxPyBeginAllowThreads();
34250 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34251 wxPyEndAllowThreads(__tstate);
34252 if (PyErr_Occurred()) SWIG_fail;
34253 }
34254 resultobj = SWIG_Py_Void();
34255 return resultobj;
34256fail:
34257 return NULL;
34258}
34259
34260
34261SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34262 PyObject *resultobj = 0;
34263 wxEffects *arg1 = (wxEffects *) 0 ;
34264 wxDC *arg2 = 0 ;
34265 wxRect *arg3 = 0 ;
34266 int arg4 = (int) 1 ;
34267 void *argp1 = 0 ;
34268 int res1 = 0 ;
34269 void *argp2 = 0 ;
34270 int res2 = 0 ;
34271 wxRect temp3 ;
34272 int val4 ;
34273 int ecode4 = 0 ;
34274 PyObject * obj0 = 0 ;
34275 PyObject * obj1 = 0 ;
34276 PyObject * obj2 = 0 ;
34277 PyObject * obj3 = 0 ;
34278 char * kwnames[] = {
34279 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34280 };
34281
34282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34284 if (!SWIG_IsOK(res1)) {
34285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34286 }
34287 arg1 = reinterpret_cast< wxEffects * >(argp1);
34288 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34289 if (!SWIG_IsOK(res2)) {
34290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34291 }
34292 if (!argp2) {
34293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34294 }
34295 arg2 = reinterpret_cast< wxDC * >(argp2);
34296 {
34297 arg3 = &temp3;
34298 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34299 }
34300 if (obj3) {
34301 ecode4 = SWIG_AsVal_int(obj3, &val4);
34302 if (!SWIG_IsOK(ecode4)) {
34303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34304 }
34305 arg4 = static_cast< int >(val4);
34306 }
34307 {
34308 PyThreadState* __tstate = wxPyBeginAllowThreads();
34309 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34310 wxPyEndAllowThreads(__tstate);
34311 if (PyErr_Occurred()) SWIG_fail;
34312 }
34313 resultobj = SWIG_Py_Void();
34314 return resultobj;
34315fail:
34316 return NULL;
34317}
34318
34319
34320SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34321 PyObject *resultobj = 0;
34322 wxEffects *arg1 = (wxEffects *) 0 ;
34323 wxRect *arg2 = 0 ;
34324 wxDC *arg3 = 0 ;
34325 wxBitmap *arg4 = 0 ;
34326 bool result;
34327 void *argp1 = 0 ;
34328 int res1 = 0 ;
34329 wxRect temp2 ;
34330 void *argp3 = 0 ;
34331 int res3 = 0 ;
34332 void *argp4 = 0 ;
34333 int res4 = 0 ;
34334 PyObject * obj0 = 0 ;
34335 PyObject * obj1 = 0 ;
34336 PyObject * obj2 = 0 ;
34337 PyObject * obj3 = 0 ;
34338 char * kwnames[] = {
34339 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34340 };
34341
34342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34344 if (!SWIG_IsOK(res1)) {
34345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34346 }
34347 arg1 = reinterpret_cast< wxEffects * >(argp1);
34348 {
34349 arg2 = &temp2;
34350 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34351 }
34352 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34353 if (!SWIG_IsOK(res3)) {
34354 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34355 }
34356 if (!argp3) {
34357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34358 }
34359 arg3 = reinterpret_cast< wxDC * >(argp3);
34360 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34361 if (!SWIG_IsOK(res4)) {
34362 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34363 }
34364 if (!argp4) {
34365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34366 }
34367 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34371 wxPyEndAllowThreads(__tstate);
34372 if (PyErr_Occurred()) SWIG_fail;
34373 }
34374 {
34375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34376 }
34377 return resultobj;
34378fail:
34379 return NULL;
34380}
34381
34382
34383SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34384 PyObject *obj;
34385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34386 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34387 return SWIG_Py_Void();
34388}
34389
34390SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34391 return SWIG_Python_InitShadowInstance(args);
34392}
34393
34394SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 int arg1 ;
34397 int arg2 ;
34398 bool arg3 ;
34399 wxSplitterRenderParams *result = 0 ;
34400 int val1 ;
34401 int ecode1 = 0 ;
34402 int val2 ;
34403 int ecode2 = 0 ;
34404 bool val3 ;
34405 int ecode3 = 0 ;
34406 PyObject * obj0 = 0 ;
34407 PyObject * obj1 = 0 ;
34408 PyObject * obj2 = 0 ;
34409 char * kwnames[] = {
34410 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34411 };
34412
34413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34414 ecode1 = SWIG_AsVal_int(obj0, &val1);
34415 if (!SWIG_IsOK(ecode1)) {
34416 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34417 }
34418 arg1 = static_cast< int >(val1);
34419 ecode2 = SWIG_AsVal_int(obj1, &val2);
34420 if (!SWIG_IsOK(ecode2)) {
34421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34422 }
34423 arg2 = static_cast< int >(val2);
34424 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34425 if (!SWIG_IsOK(ecode3)) {
34426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34427 }
34428 arg3 = static_cast< bool >(val3);
34429 {
34430 PyThreadState* __tstate = wxPyBeginAllowThreads();
34431 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34432 wxPyEndAllowThreads(__tstate);
34433 if (PyErr_Occurred()) SWIG_fail;
34434 }
34435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34436 return resultobj;
34437fail:
34438 return NULL;
34439}
34440
34441
34442SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34443 PyObject *resultobj = 0;
34444 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34445 void *argp1 = 0 ;
34446 int res1 = 0 ;
34447 PyObject *swig_obj[1] ;
34448
34449 if (!args) SWIG_fail;
34450 swig_obj[0] = args;
34451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34452 if (!SWIG_IsOK(res1)) {
34453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34454 }
34455 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34456 {
34457 PyThreadState* __tstate = wxPyBeginAllowThreads();
34458 delete arg1;
34459
34460 wxPyEndAllowThreads(__tstate);
34461 if (PyErr_Occurred()) SWIG_fail;
34462 }
34463 resultobj = SWIG_Py_Void();
34464 return resultobj;
34465fail:
34466 return NULL;
34467}
34468
34469
34470SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34471 PyObject *resultobj = 0;
34472 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34473 int result;
34474 void *argp1 = 0 ;
34475 int res1 = 0 ;
34476 PyObject *swig_obj[1] ;
34477
34478 if (!args) SWIG_fail;
34479 swig_obj[0] = args;
34480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34481 if (!SWIG_IsOK(res1)) {
34482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34483 }
34484 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34485 result = (int)(int) ((arg1)->widthSash);
34486 resultobj = SWIG_From_int(static_cast< int >(result));
34487 return resultobj;
34488fail:
34489 return NULL;
34490}
34491
34492
34493SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34494 PyObject *resultobj = 0;
34495 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34496 int result;
34497 void *argp1 = 0 ;
34498 int res1 = 0 ;
34499 PyObject *swig_obj[1] ;
34500
34501 if (!args) SWIG_fail;
34502 swig_obj[0] = args;
34503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34504 if (!SWIG_IsOK(res1)) {
34505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34506 }
34507 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34508 result = (int)(int) ((arg1)->border);
34509 resultobj = SWIG_From_int(static_cast< int >(result));
34510 return resultobj;
34511fail:
34512 return NULL;
34513}
34514
34515
34516SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34517 PyObject *resultobj = 0;
34518 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34519 bool result;
34520 void *argp1 = 0 ;
34521 int res1 = 0 ;
34522 PyObject *swig_obj[1] ;
34523
34524 if (!args) SWIG_fail;
34525 swig_obj[0] = args;
34526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34527 if (!SWIG_IsOK(res1)) {
34528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34529 }
34530 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34531 result = (bool)(bool) ((arg1)->isHotSensitive);
34532 resultobj = SWIG_From_bool(static_cast< bool >(result));
34533 return resultobj;
34534fail:
34535 return NULL;
34536}
34537
34538
34539SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34540 PyObject *obj;
34541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34542 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34543 return SWIG_Py_Void();
34544}
34545
34546SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34547 return SWIG_Python_InitShadowInstance(args);
34548}
34549
33d6fd3b
RD
34550SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34551 PyObject *resultobj = 0;
34552 wxHeaderButtonParams *result = 0 ;
34553
34554 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34555 {
34556 PyThreadState* __tstate = wxPyBeginAllowThreads();
34557 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34558 wxPyEndAllowThreads(__tstate);
34559 if (PyErr_Occurred()) SWIG_fail;
34560 }
34561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34562 return resultobj;
34563fail:
34564 return NULL;
34565}
34566
34567
34568SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34569 PyObject *resultobj = 0;
34570 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34571 void *argp1 = 0 ;
34572 int res1 = 0 ;
34573 PyObject *swig_obj[1] ;
34574
34575 if (!args) SWIG_fail;
34576 swig_obj[0] = args;
34577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34578 if (!SWIG_IsOK(res1)) {
34579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34580 }
34581 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34582 {
34583 PyThreadState* __tstate = wxPyBeginAllowThreads();
34584 delete arg1;
34585
34586 wxPyEndAllowThreads(__tstate);
34587 if (PyErr_Occurred()) SWIG_fail;
34588 }
34589 resultobj = SWIG_Py_Void();
34590 return resultobj;
34591fail:
34592 return NULL;
34593}
34594
34595
34596SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34597 PyObject *resultobj = 0;
34598 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34599 wxColour *arg2 = (wxColour *) 0 ;
34600 void *argp1 = 0 ;
34601 int res1 = 0 ;
34602 wxColour temp2 ;
34603 PyObject *swig_obj[2] ;
34604
34605 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34607 if (!SWIG_IsOK(res1)) {
34608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34609 }
34610 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34611 {
34612 arg2 = &temp2;
34613 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34614 }
34615 if (arg1) (arg1)->m_arrowColour = *arg2;
34616
34617 resultobj = SWIG_Py_Void();
34618 return resultobj;
34619fail:
34620 return NULL;
34621}
34622
34623
34624SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34625 PyObject *resultobj = 0;
34626 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34627 wxColour *result = 0 ;
34628 void *argp1 = 0 ;
34629 int res1 = 0 ;
34630 PyObject *swig_obj[1] ;
34631
34632 if (!args) SWIG_fail;
34633 swig_obj[0] = args;
34634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34635 if (!SWIG_IsOK(res1)) {
34636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34637 }
34638 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34639 result = (wxColour *)& ((arg1)->m_arrowColour);
34640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34641 return resultobj;
34642fail:
34643 return NULL;
34644}
34645
34646
34647SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34648 PyObject *resultobj = 0;
34649 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34650 wxColour *arg2 = (wxColour *) 0 ;
34651 void *argp1 = 0 ;
34652 int res1 = 0 ;
34653 wxColour temp2 ;
34654 PyObject *swig_obj[2] ;
34655
34656 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34658 if (!SWIG_IsOK(res1)) {
34659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34660 }
34661 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34662 {
34663 arg2 = &temp2;
34664 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34665 }
34666 if (arg1) (arg1)->m_selectionColour = *arg2;
34667
34668 resultobj = SWIG_Py_Void();
34669 return resultobj;
34670fail:
34671 return NULL;
34672}
34673
34674
34675SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34676 PyObject *resultobj = 0;
34677 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34678 wxColour *result = 0 ;
34679 void *argp1 = 0 ;
34680 int res1 = 0 ;
34681 PyObject *swig_obj[1] ;
34682
34683 if (!args) SWIG_fail;
34684 swig_obj[0] = args;
34685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34686 if (!SWIG_IsOK(res1)) {
34687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34688 }
34689 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34690 result = (wxColour *)& ((arg1)->m_selectionColour);
34691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34692 return resultobj;
34693fail:
34694 return NULL;
34695}
34696
34697
34698SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34699 PyObject *resultobj = 0;
34700 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34701 wxString *arg2 = (wxString *) 0 ;
34702 void *argp1 = 0 ;
34703 int res1 = 0 ;
34704 bool temp2 = false ;
34705 PyObject *swig_obj[2] ;
34706
34707 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34709 if (!SWIG_IsOK(res1)) {
34710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34711 }
34712 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34713 {
34714 arg2 = wxString_in_helper(swig_obj[1]);
34715 if (arg2 == NULL) SWIG_fail;
34716 temp2 = true;
34717 }
34718 if (arg1) (arg1)->m_labelText = *arg2;
34719
34720 resultobj = SWIG_Py_Void();
34721 {
34722 if (temp2)
34723 delete arg2;
34724 }
34725 return resultobj;
34726fail:
34727 {
34728 if (temp2)
34729 delete arg2;
34730 }
34731 return NULL;
34732}
34733
34734
34735SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34736 PyObject *resultobj = 0;
34737 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34738 wxString *result = 0 ;
34739 void *argp1 = 0 ;
34740 int res1 = 0 ;
34741 PyObject *swig_obj[1] ;
34742
34743 if (!args) SWIG_fail;
34744 swig_obj[0] = args;
34745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34746 if (!SWIG_IsOK(res1)) {
34747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34748 }
34749 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34750 result = (wxString *)& ((arg1)->m_labelText);
34751 {
34752#if wxUSE_UNICODE
34753 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34754#else
34755 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34756#endif
34757 }
34758 return resultobj;
34759fail:
34760 return NULL;
34761}
34762
34763
34764SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34765 PyObject *resultobj = 0;
34766 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34767 wxFont *arg2 = (wxFont *) 0 ;
34768 void *argp1 = 0 ;
34769 int res1 = 0 ;
34770 void *argp2 = 0 ;
34771 int res2 = 0 ;
34772 PyObject *swig_obj[2] ;
34773
34774 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34776 if (!SWIG_IsOK(res1)) {
34777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34778 }
34779 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34780 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34781 if (!SWIG_IsOK(res2)) {
34782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34783 }
34784 arg2 = reinterpret_cast< wxFont * >(argp2);
34785 if (arg1) (arg1)->m_labelFont = *arg2;
34786
34787 resultobj = SWIG_Py_Void();
34788 return resultobj;
34789fail:
34790 return NULL;
34791}
34792
34793
34794SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34795 PyObject *resultobj = 0;
34796 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34797 wxFont *result = 0 ;
34798 void *argp1 = 0 ;
34799 int res1 = 0 ;
34800 PyObject *swig_obj[1] ;
34801
34802 if (!args) SWIG_fail;
34803 swig_obj[0] = args;
34804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34805 if (!SWIG_IsOK(res1)) {
34806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34807 }
34808 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34809 result = (wxFont *)& ((arg1)->m_labelFont);
34810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34811 return resultobj;
34812fail:
34813 return NULL;
34814}
34815
34816
34817SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34818 PyObject *resultobj = 0;
34819 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34820 wxColour *arg2 = (wxColour *) 0 ;
34821 void *argp1 = 0 ;
34822 int res1 = 0 ;
34823 wxColour temp2 ;
34824 PyObject *swig_obj[2] ;
34825
34826 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34828 if (!SWIG_IsOK(res1)) {
34829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34830 }
34831 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34832 {
34833 arg2 = &temp2;
34834 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34835 }
34836 if (arg1) (arg1)->m_labelColour = *arg2;
34837
34838 resultobj = SWIG_Py_Void();
34839 return resultobj;
34840fail:
34841 return NULL;
34842}
34843
34844
34845SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34846 PyObject *resultobj = 0;
34847 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34848 wxColour *result = 0 ;
34849 void *argp1 = 0 ;
34850 int res1 = 0 ;
34851 PyObject *swig_obj[1] ;
34852
34853 if (!args) SWIG_fail;
34854 swig_obj[0] = args;
34855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34856 if (!SWIG_IsOK(res1)) {
34857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34858 }
34859 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34860 result = (wxColour *)& ((arg1)->m_labelColour);
34861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34862 return resultobj;
34863fail:
34864 return NULL;
34865}
34866
34867
34868SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34869 PyObject *resultobj = 0;
34870 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34871 wxBitmap *arg2 = (wxBitmap *) 0 ;
34872 void *argp1 = 0 ;
34873 int res1 = 0 ;
34874 void *argp2 = 0 ;
34875 int res2 = 0 ;
34876 PyObject *swig_obj[2] ;
34877
34878 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34880 if (!SWIG_IsOK(res1)) {
34881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34882 }
34883 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34884 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34885 if (!SWIG_IsOK(res2)) {
34886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34887 }
34888 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34889 if (arg1) (arg1)->m_labelBitmap = *arg2;
34890
34891 resultobj = SWIG_Py_Void();
34892 return resultobj;
34893fail:
34894 return NULL;
34895}
34896
34897
34898SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34899 PyObject *resultobj = 0;
34900 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34901 wxBitmap *result = 0 ;
34902 void *argp1 = 0 ;
34903 int res1 = 0 ;
34904 PyObject *swig_obj[1] ;
34905
34906 if (!args) SWIG_fail;
34907 swig_obj[0] = args;
34908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34909 if (!SWIG_IsOK(res1)) {
34910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34911 }
34912 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34913 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34915 return resultobj;
34916fail:
34917 return NULL;
34918}
34919
34920
34921SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34922 PyObject *resultobj = 0;
34923 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34924 int arg2 ;
34925 void *argp1 = 0 ;
34926 int res1 = 0 ;
34927 int val2 ;
34928 int ecode2 = 0 ;
34929 PyObject *swig_obj[2] ;
34930
34931 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34933 if (!SWIG_IsOK(res1)) {
34934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34935 }
34936 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34937 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34938 if (!SWIG_IsOK(ecode2)) {
34939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34940 }
34941 arg2 = static_cast< int >(val2);
34942 if (arg1) (arg1)->m_labelAlignment = arg2;
34943
34944 resultobj = SWIG_Py_Void();
34945 return resultobj;
34946fail:
34947 return NULL;
34948}
34949
34950
34951SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34952 PyObject *resultobj = 0;
34953 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34954 int result;
34955 void *argp1 = 0 ;
34956 int res1 = 0 ;
34957 PyObject *swig_obj[1] ;
34958
34959 if (!args) SWIG_fail;
34960 swig_obj[0] = args;
34961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34962 if (!SWIG_IsOK(res1)) {
34963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34964 }
34965 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34966 result = (int) ((arg1)->m_labelAlignment);
34967 resultobj = SWIG_From_int(static_cast< int >(result));
34968 return resultobj;
34969fail:
34970 return NULL;
34971}
34972
34973
34974SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34975 PyObject *obj;
34976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34977 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34978 return SWIG_Py_Void();
34979}
34980
34981SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34982 return SWIG_Python_InitShadowInstance(args);
34983}
34984
554f62e9
RD
34985SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34986 PyObject *resultobj = 0;
34987 int arg1 ;
34988 int arg2 ;
34989 wxRendererVersion *result = 0 ;
34990 int val1 ;
34991 int ecode1 = 0 ;
34992 int val2 ;
34993 int ecode2 = 0 ;
34994 PyObject * obj0 = 0 ;
34995 PyObject * obj1 = 0 ;
34996 char * kwnames[] = {
34997 (char *) "version_",(char *) "age_", NULL
34998 };
34999
35000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
35001 ecode1 = SWIG_AsVal_int(obj0, &val1);
35002 if (!SWIG_IsOK(ecode1)) {
35003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
35004 }
35005 arg1 = static_cast< int >(val1);
35006 ecode2 = SWIG_AsVal_int(obj1, &val2);
35007 if (!SWIG_IsOK(ecode2)) {
35008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
35009 }
35010 arg2 = static_cast< int >(val2);
35011 {
35012 PyThreadState* __tstate = wxPyBeginAllowThreads();
35013 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
35014 wxPyEndAllowThreads(__tstate);
35015 if (PyErr_Occurred()) SWIG_fail;
35016 }
35017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
35018 return resultobj;
35019fail:
35020 return NULL;
35021}
35022
35023
35024SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35025 PyObject *resultobj = 0;
35026 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 PyObject *swig_obj[1] ;
35030
35031 if (!args) SWIG_fail;
35032 swig_obj[0] = args;
35033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35036 }
35037 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35038 {
35039 PyThreadState* __tstate = wxPyBeginAllowThreads();
35040 delete arg1;
35041
35042 wxPyEndAllowThreads(__tstate);
35043 if (PyErr_Occurred()) SWIG_fail;
35044 }
35045 resultobj = SWIG_Py_Void();
35046 return resultobj;
35047fail:
35048 return NULL;
35049}
35050
35051
35052SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35053 PyObject *resultobj = 0;
35054 wxRendererVersion *arg1 = 0 ;
35055 bool result;
35056 void *argp1 = 0 ;
35057 int res1 = 0 ;
35058 PyObject * obj0 = 0 ;
35059 char * kwnames[] = {
35060 (char *) "ver", NULL
35061 };
35062
35063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
35064 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
35065 if (!SWIG_IsOK(res1)) {
35066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35067 }
35068 if (!argp1) {
35069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35070 }
35071 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35072 {
35073 PyThreadState* __tstate = wxPyBeginAllowThreads();
35074 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
35075 wxPyEndAllowThreads(__tstate);
35076 if (PyErr_Occurred()) SWIG_fail;
35077 }
35078 {
35079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35080 }
35081 return resultobj;
35082fail:
35083 return NULL;
35084}
35085
35086
35087SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35088 PyObject *resultobj = 0;
35089 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35090 int result;
35091 void *argp1 = 0 ;
35092 int res1 = 0 ;
35093 PyObject *swig_obj[1] ;
35094
35095 if (!args) SWIG_fail;
35096 swig_obj[0] = args;
35097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35098 if (!SWIG_IsOK(res1)) {
35099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35100 }
35101 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35102 result = (int)(int) ((arg1)->version);
35103 resultobj = SWIG_From_int(static_cast< int >(result));
35104 return resultobj;
35105fail:
35106 return NULL;
35107}
35108
35109
35110SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35111 PyObject *resultobj = 0;
35112 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35113 int result;
35114 void *argp1 = 0 ;
35115 int res1 = 0 ;
35116 PyObject *swig_obj[1] ;
35117
35118 if (!args) SWIG_fail;
35119 swig_obj[0] = args;
35120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35121 if (!SWIG_IsOK(res1)) {
35122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35123 }
35124 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35125 result = (int)(int) ((arg1)->age);
35126 resultobj = SWIG_From_int(static_cast< int >(result));
35127 return resultobj;
35128fail:
35129 return NULL;
35130}
35131
35132
35133SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35134 PyObject *obj;
35135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35136 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
35137 return SWIG_Py_Void();
35138}
35139
35140SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35141 return SWIG_Python_InitShadowInstance(args);
35142}
35143
35144SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35145 PyObject *resultobj = 0;
35146 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35147 wxWindow *arg2 = (wxWindow *) 0 ;
35148 wxDC *arg3 = 0 ;
35149 wxRect *arg4 = 0 ;
35150 int arg5 = (int) 0 ;
33d6fd3b
RD
35151 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35152 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 35153 int result;
554f62e9
RD
35154 void *argp1 = 0 ;
35155 int res1 = 0 ;
35156 void *argp2 = 0 ;
35157 int res2 = 0 ;
35158 void *argp3 = 0 ;
35159 int res3 = 0 ;
35160 wxRect temp4 ;
35161 int val5 ;
35162 int ecode5 = 0 ;
33d6fd3b
RD
35163 int val6 ;
35164 int ecode6 = 0 ;
35165 void *argp7 = 0 ;
35166 int res7 = 0 ;
554f62e9
RD
35167 PyObject * obj0 = 0 ;
35168 PyObject * obj1 = 0 ;
35169 PyObject * obj2 = 0 ;
35170 PyObject * obj3 = 0 ;
35171 PyObject * obj4 = 0 ;
33d6fd3b
RD
35172 PyObject * obj5 = 0 ;
35173 PyObject * obj6 = 0 ;
554f62e9 35174 char * kwnames[] = {
33d6fd3b 35175 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
35176 };
35177
33d6fd3b 35178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
35179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35180 if (!SWIG_IsOK(res1)) {
35181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35182 }
35183 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35184 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35185 if (!SWIG_IsOK(res2)) {
35186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35187 }
35188 arg2 = reinterpret_cast< wxWindow * >(argp2);
35189 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35190 if (!SWIG_IsOK(res3)) {
35191 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35192 }
35193 if (!argp3) {
35194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35195 }
35196 arg3 = reinterpret_cast< wxDC * >(argp3);
35197 {
35198 arg4 = &temp4;
35199 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35200 }
35201 if (obj4) {
35202 ecode5 = SWIG_AsVal_int(obj4, &val5);
35203 if (!SWIG_IsOK(ecode5)) {
35204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
35205 }
35206 arg5 = static_cast< int >(val5);
35207 }
33d6fd3b
RD
35208 if (obj5) {
35209 ecode6 = SWIG_AsVal_int(obj5, &val6);
35210 if (!SWIG_IsOK(ecode6)) {
35211 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35212 }
35213 arg6 = static_cast< wxHeaderSortIconType >(val6);
35214 }
35215 if (obj6) {
35216 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35217 if (!SWIG_IsOK(res7)) {
35218 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35219 }
35220 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35221 }
35222 {
35223 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 35224 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
35225 wxPyEndAllowThreads(__tstate);
35226 if (PyErr_Occurred()) SWIG_fail;
35227 }
723282b6 35228 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
35229 return resultobj;
35230fail:
35231 return NULL;
35232}
35233
35234
35235SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35236 PyObject *resultobj = 0;
35237 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35238 wxWindow *arg2 = (wxWindow *) 0 ;
35239 wxDC *arg3 = 0 ;
35240 wxRect *arg4 = 0 ;
35241 int arg5 = (int) 0 ;
35242 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35243 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 35244 int result;
33d6fd3b
RD
35245 void *argp1 = 0 ;
35246 int res1 = 0 ;
35247 void *argp2 = 0 ;
35248 int res2 = 0 ;
35249 void *argp3 = 0 ;
35250 int res3 = 0 ;
35251 wxRect temp4 ;
35252 int val5 ;
35253 int ecode5 = 0 ;
35254 int val6 ;
35255 int ecode6 = 0 ;
35256 void *argp7 = 0 ;
35257 int res7 = 0 ;
35258 PyObject * obj0 = 0 ;
35259 PyObject * obj1 = 0 ;
35260 PyObject * obj2 = 0 ;
35261 PyObject * obj3 = 0 ;
35262 PyObject * obj4 = 0 ;
35263 PyObject * obj5 = 0 ;
35264 PyObject * obj6 = 0 ;
35265 char * kwnames[] = {
35266 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35267 };
35268
35269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35271 if (!SWIG_IsOK(res1)) {
35272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35273 }
35274 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35276 if (!SWIG_IsOK(res2)) {
35277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35278 }
35279 arg2 = reinterpret_cast< wxWindow * >(argp2);
35280 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35281 if (!SWIG_IsOK(res3)) {
35282 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35283 }
35284 if (!argp3) {
35285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35286 }
35287 arg3 = reinterpret_cast< wxDC * >(argp3);
35288 {
35289 arg4 = &temp4;
35290 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35291 }
35292 if (obj4) {
35293 ecode5 = SWIG_AsVal_int(obj4, &val5);
35294 if (!SWIG_IsOK(ecode5)) {
35295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35296 }
35297 arg5 = static_cast< int >(val5);
35298 }
35299 if (obj5) {
35300 ecode6 = SWIG_AsVal_int(obj5, &val6);
35301 if (!SWIG_IsOK(ecode6)) {
35302 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35303 }
35304 arg6 = static_cast< wxHeaderSortIconType >(val6);
35305 }
35306 if (obj6) {
35307 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35308 if (!SWIG_IsOK(res7)) {
35309 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35310 }
35311 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35312 }
554f62e9
RD
35313 {
35314 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 35315 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
35316 wxPyEndAllowThreads(__tstate);
35317 if (PyErr_Occurred()) SWIG_fail;
35318 }
723282b6 35319 resultobj = SWIG_From_int(static_cast< int >(result));
554f62e9
RD
35320 return resultobj;
35321fail:
35322 return NULL;
35323}
35324
35325
33d6fd3b
RD
35326SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35327 PyObject *resultobj = 0;
35328 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35329 wxWindow *arg2 = (wxWindow *) 0 ;
35330 int result;
35331 void *argp1 = 0 ;
35332 int res1 = 0 ;
35333 void *argp2 = 0 ;
35334 int res2 = 0 ;
35335 PyObject * obj0 = 0 ;
35336 PyObject * obj1 = 0 ;
35337 char * kwnames[] = {
35338 (char *) "self",(char *) "win", NULL
35339 };
35340
35341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35343 if (!SWIG_IsOK(res1)) {
35344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35345 }
35346 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35348 if (!SWIG_IsOK(res2)) {
35349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35350 }
35351 arg2 = reinterpret_cast< wxWindow * >(argp2);
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 resultobj = SWIG_From_int(static_cast< int >(result));
35359 return resultobj;
35360fail:
35361 return NULL;
35362}
35363
35364
554f62e9
RD
35365SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35366 PyObject *resultobj = 0;
35367 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35368 wxWindow *arg2 = (wxWindow *) 0 ;
35369 wxDC *arg3 = 0 ;
35370 wxRect *arg4 = 0 ;
35371 int arg5 = (int) 0 ;
35372 void *argp1 = 0 ;
35373 int res1 = 0 ;
35374 void *argp2 = 0 ;
35375 int res2 = 0 ;
35376 void *argp3 = 0 ;
35377 int res3 = 0 ;
35378 wxRect temp4 ;
35379 int val5 ;
35380 int ecode5 = 0 ;
35381 PyObject * obj0 = 0 ;
35382 PyObject * obj1 = 0 ;
35383 PyObject * obj2 = 0 ;
35384 PyObject * obj3 = 0 ;
35385 PyObject * obj4 = 0 ;
35386 char * kwnames[] = {
35387 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35388 };
35389
35390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35392 if (!SWIG_IsOK(res1)) {
35393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35394 }
35395 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35396 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35397 if (!SWIG_IsOK(res2)) {
35398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35399 }
35400 arg2 = reinterpret_cast< wxWindow * >(argp2);
35401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35402 if (!SWIG_IsOK(res3)) {
35403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35404 }
35405 if (!argp3) {
35406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35407 }
35408 arg3 = reinterpret_cast< wxDC * >(argp3);
35409 {
35410 arg4 = &temp4;
35411 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35412 }
35413 if (obj4) {
35414 ecode5 = SWIG_AsVal_int(obj4, &val5);
35415 if (!SWIG_IsOK(ecode5)) {
35416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35417 }
35418 arg5 = static_cast< int >(val5);
35419 }
35420 {
35421 PyThreadState* __tstate = wxPyBeginAllowThreads();
35422 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35423 wxPyEndAllowThreads(__tstate);
35424 if (PyErr_Occurred()) SWIG_fail;
35425 }
35426 resultobj = SWIG_Py_Void();
35427 return resultobj;
35428fail:
35429 return NULL;
35430}
35431
35432
35433SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35434 PyObject *resultobj = 0;
35435 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35436 wxWindow *arg2 = (wxWindow *) 0 ;
35437 wxDC *arg3 = 0 ;
35438 wxRect *arg4 = 0 ;
35439 int arg5 = (int) 0 ;
35440 void *argp1 = 0 ;
35441 int res1 = 0 ;
35442 void *argp2 = 0 ;
35443 int res2 = 0 ;
35444 void *argp3 = 0 ;
35445 int res3 = 0 ;
35446 wxRect temp4 ;
35447 int val5 ;
35448 int ecode5 = 0 ;
35449 PyObject * obj0 = 0 ;
35450 PyObject * obj1 = 0 ;
35451 PyObject * obj2 = 0 ;
35452 PyObject * obj3 = 0 ;
35453 PyObject * obj4 = 0 ;
35454 char * kwnames[] = {
35455 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35456 };
35457
35458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35460 if (!SWIG_IsOK(res1)) {
35461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35462 }
35463 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35465 if (!SWIG_IsOK(res2)) {
35466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35467 }
35468 arg2 = reinterpret_cast< wxWindow * >(argp2);
35469 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35470 if (!SWIG_IsOK(res3)) {
35471 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35472 }
35473 if (!argp3) {
35474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35475 }
35476 arg3 = reinterpret_cast< wxDC * >(argp3);
35477 {
35478 arg4 = &temp4;
35479 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35480 }
35481 if (obj4) {
35482 ecode5 = SWIG_AsVal_int(obj4, &val5);
35483 if (!SWIG_IsOK(ecode5)) {
35484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35485 }
35486 arg5 = static_cast< int >(val5);
35487 }
35488 {
35489 PyThreadState* __tstate = wxPyBeginAllowThreads();
35490 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35491 wxPyEndAllowThreads(__tstate);
35492 if (PyErr_Occurred()) SWIG_fail;
35493 }
35494 resultobj = SWIG_Py_Void();
35495 return resultobj;
35496fail:
35497 return NULL;
35498}
35499
35500
35501SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35502 PyObject *resultobj = 0;
35503 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35504 wxWindow *arg2 = (wxWindow *) 0 ;
35505 wxDC *arg3 = 0 ;
35506 wxSize *arg4 = 0 ;
35507 int arg5 ;
35508 wxOrientation arg6 ;
35509 int arg7 = (int) 0 ;
35510 void *argp1 = 0 ;
35511 int res1 = 0 ;
35512 void *argp2 = 0 ;
35513 int res2 = 0 ;
35514 void *argp3 = 0 ;
35515 int res3 = 0 ;
35516 wxSize temp4 ;
35517 int val5 ;
35518 int ecode5 = 0 ;
35519 int val6 ;
35520 int ecode6 = 0 ;
35521 int val7 ;
35522 int ecode7 = 0 ;
35523 PyObject * obj0 = 0 ;
35524 PyObject * obj1 = 0 ;
35525 PyObject * obj2 = 0 ;
35526 PyObject * obj3 = 0 ;
35527 PyObject * obj4 = 0 ;
35528 PyObject * obj5 = 0 ;
35529 PyObject * obj6 = 0 ;
35530 char * kwnames[] = {
35531 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35532 };
35533
35534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35536 if (!SWIG_IsOK(res1)) {
35537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35538 }
35539 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35541 if (!SWIG_IsOK(res2)) {
35542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35543 }
35544 arg2 = reinterpret_cast< wxWindow * >(argp2);
35545 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35546 if (!SWIG_IsOK(res3)) {
35547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35548 }
35549 if (!argp3) {
35550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35551 }
35552 arg3 = reinterpret_cast< wxDC * >(argp3);
35553 {
35554 arg4 = &temp4;
35555 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35556 }
35557 ecode5 = SWIG_AsVal_int(obj4, &val5);
35558 if (!SWIG_IsOK(ecode5)) {
35559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35560 }
35561 arg5 = static_cast< int >(val5);
35562 ecode6 = SWIG_AsVal_int(obj5, &val6);
35563 if (!SWIG_IsOK(ecode6)) {
35564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35565 }
35566 arg6 = static_cast< wxOrientation >(val6);
35567 if (obj6) {
35568 ecode7 = SWIG_AsVal_int(obj6, &val7);
35569 if (!SWIG_IsOK(ecode7)) {
35570 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35571 }
35572 arg7 = static_cast< int >(val7);
35573 }
35574 {
35575 PyThreadState* __tstate = wxPyBeginAllowThreads();
35576 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35577 wxPyEndAllowThreads(__tstate);
35578 if (PyErr_Occurred()) SWIG_fail;
35579 }
35580 resultobj = SWIG_Py_Void();
35581 return resultobj;
35582fail:
35583 return NULL;
35584}
35585
35586
35587SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35588 PyObject *resultobj = 0;
35589 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35590 wxWindow *arg2 = (wxWindow *) 0 ;
35591 wxDC *arg3 = 0 ;
35592 wxRect *arg4 = 0 ;
35593 int arg5 = (int) 0 ;
35594 void *argp1 = 0 ;
35595 int res1 = 0 ;
35596 void *argp2 = 0 ;
35597 int res2 = 0 ;
35598 void *argp3 = 0 ;
35599 int res3 = 0 ;
35600 wxRect temp4 ;
35601 int val5 ;
35602 int ecode5 = 0 ;
35603 PyObject * obj0 = 0 ;
35604 PyObject * obj1 = 0 ;
35605 PyObject * obj2 = 0 ;
35606 PyObject * obj3 = 0 ;
35607 PyObject * obj4 = 0 ;
35608 char * kwnames[] = {
35609 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35610 };
35611
35612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35614 if (!SWIG_IsOK(res1)) {
35615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35616 }
35617 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35619 if (!SWIG_IsOK(res2)) {
35620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35621 }
35622 arg2 = reinterpret_cast< wxWindow * >(argp2);
35623 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35624 if (!SWIG_IsOK(res3)) {
35625 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35626 }
35627 if (!argp3) {
35628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35629 }
35630 arg3 = reinterpret_cast< wxDC * >(argp3);
35631 {
35632 arg4 = &temp4;
35633 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35634 }
35635 if (obj4) {
35636 ecode5 = SWIG_AsVal_int(obj4, &val5);
35637 if (!SWIG_IsOK(ecode5)) {
35638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35639 }
35640 arg5 = static_cast< int >(val5);
35641 }
35642 {
35643 PyThreadState* __tstate = wxPyBeginAllowThreads();
35644 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35645 wxPyEndAllowThreads(__tstate);
35646 if (PyErr_Occurred()) SWIG_fail;
35647 }
35648 resultobj = SWIG_Py_Void();
35649 return resultobj;
35650fail:
35651 return NULL;
35652}
35653
35654
35655SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35656 PyObject *resultobj = 0;
35657 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35658 wxWindow *arg2 = (wxWindow *) 0 ;
35659 wxDC *arg3 = 0 ;
35660 wxRect *arg4 = 0 ;
35661 int arg5 = (int) 0 ;
35662 void *argp1 = 0 ;
35663 int res1 = 0 ;
35664 void *argp2 = 0 ;
35665 int res2 = 0 ;
35666 void *argp3 = 0 ;
35667 int res3 = 0 ;
35668 wxRect temp4 ;
35669 int val5 ;
35670 int ecode5 = 0 ;
35671 PyObject * obj0 = 0 ;
35672 PyObject * obj1 = 0 ;
35673 PyObject * obj2 = 0 ;
35674 PyObject * obj3 = 0 ;
35675 PyObject * obj4 = 0 ;
35676 char * kwnames[] = {
35677 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35678 };
35679
35680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35682 if (!SWIG_IsOK(res1)) {
35683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35684 }
35685 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35687 if (!SWIG_IsOK(res2)) {
35688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35689 }
35690 arg2 = reinterpret_cast< wxWindow * >(argp2);
35691 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35692 if (!SWIG_IsOK(res3)) {
35693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35694 }
35695 if (!argp3) {
35696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35697 }
35698 arg3 = reinterpret_cast< wxDC * >(argp3);
35699 {
35700 arg4 = &temp4;
35701 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35702 }
35703 if (obj4) {
35704 ecode5 = SWIG_AsVal_int(obj4, &val5);
35705 if (!SWIG_IsOK(ecode5)) {
35706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35707 }
35708 arg5 = static_cast< int >(val5);
35709 }
35710 {
35711 PyThreadState* __tstate = wxPyBeginAllowThreads();
35712 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35713 wxPyEndAllowThreads(__tstate);
35714 if (PyErr_Occurred()) SWIG_fail;
35715 }
35716 resultobj = SWIG_Py_Void();
35717 return resultobj;
35718fail:
35719 return NULL;
35720}
35721
35722
f460c29d
RD
35723SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35724 PyObject *resultobj = 0;
35725 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35726 wxWindow *arg2 = (wxWindow *) 0 ;
35727 wxDC *arg3 = 0 ;
35728 wxRect *arg4 = 0 ;
35729 int arg5 = (int) 0 ;
35730 void *argp1 = 0 ;
35731 int res1 = 0 ;
35732 void *argp2 = 0 ;
35733 int res2 = 0 ;
35734 void *argp3 = 0 ;
35735 int res3 = 0 ;
35736 wxRect temp4 ;
35737 int val5 ;
35738 int ecode5 = 0 ;
35739 PyObject * obj0 = 0 ;
35740 PyObject * obj1 = 0 ;
35741 PyObject * obj2 = 0 ;
35742 PyObject * obj3 = 0 ;
35743 PyObject * obj4 = 0 ;
35744 char * kwnames[] = {
35745 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35746 };
35747
35748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35750 if (!SWIG_IsOK(res1)) {
35751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35752 }
35753 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35754 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35755 if (!SWIG_IsOK(res2)) {
35756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35757 }
35758 arg2 = reinterpret_cast< wxWindow * >(argp2);
35759 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35760 if (!SWIG_IsOK(res3)) {
35761 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35762 }
35763 if (!argp3) {
35764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35765 }
35766 arg3 = reinterpret_cast< wxDC * >(argp3);
35767 {
35768 arg4 = &temp4;
35769 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35770 }
35771 if (obj4) {
35772 ecode5 = SWIG_AsVal_int(obj4, &val5);
35773 if (!SWIG_IsOK(ecode5)) {
35774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35775 }
35776 arg5 = static_cast< int >(val5);
35777 }
35778 {
35779 PyThreadState* __tstate = wxPyBeginAllowThreads();
35780 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35781 wxPyEndAllowThreads(__tstate);
35782 if (PyErr_Occurred()) SWIG_fail;
35783 }
35784 resultobj = SWIG_Py_Void();
35785 return resultobj;
35786fail:
35787 return NULL;
35788}
35789
35790
35791SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35792 PyObject *resultobj = 0;
35793 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35794 wxWindow *arg2 = (wxWindow *) 0 ;
35795 wxDC *arg3 = 0 ;
35796 wxRect *arg4 = 0 ;
35797 int arg5 = (int) 0 ;
35798 void *argp1 = 0 ;
35799 int res1 = 0 ;
35800 void *argp2 = 0 ;
35801 int res2 = 0 ;
35802 void *argp3 = 0 ;
35803 int res3 = 0 ;
35804 wxRect temp4 ;
35805 int val5 ;
35806 int ecode5 = 0 ;
35807 PyObject * obj0 = 0 ;
35808 PyObject * obj1 = 0 ;
35809 PyObject * obj2 = 0 ;
35810 PyObject * obj3 = 0 ;
35811 PyObject * obj4 = 0 ;
35812 char * kwnames[] = {
35813 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35814 };
35815
35816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35818 if (!SWIG_IsOK(res1)) {
35819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35820 }
35821 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35823 if (!SWIG_IsOK(res2)) {
35824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35825 }
35826 arg2 = reinterpret_cast< wxWindow * >(argp2);
35827 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35828 if (!SWIG_IsOK(res3)) {
35829 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35830 }
35831 if (!argp3) {
35832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35833 }
35834 arg3 = reinterpret_cast< wxDC * >(argp3);
35835 {
35836 arg4 = &temp4;
35837 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35838 }
35839 if (obj4) {
35840 ecode5 = SWIG_AsVal_int(obj4, &val5);
35841 if (!SWIG_IsOK(ecode5)) {
35842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35843 }
35844 arg5 = static_cast< int >(val5);
35845 }
35846 {
35847 PyThreadState* __tstate = wxPyBeginAllowThreads();
35848 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35849 wxPyEndAllowThreads(__tstate);
35850 if (PyErr_Occurred()) SWIG_fail;
35851 }
35852 resultobj = SWIG_Py_Void();
35853 return resultobj;
35854fail:
35855 return NULL;
35856}
35857
35858
35859SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
35860 PyObject *resultobj = 0;
35861 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35862 wxWindow *arg2 = (wxWindow *) 0 ;
35863 wxDC *arg3 = 0 ;
35864 wxRect *arg4 = 0 ;
35865 int arg5 = (int) 0 ;
35866 void *argp1 = 0 ;
35867 int res1 = 0 ;
35868 void *argp2 = 0 ;
35869 int res2 = 0 ;
35870 void *argp3 = 0 ;
35871 int res3 = 0 ;
35872 wxRect temp4 ;
35873 int val5 ;
35874 int ecode5 = 0 ;
35875 PyObject * obj0 = 0 ;
35876 PyObject * obj1 = 0 ;
35877 PyObject * obj2 = 0 ;
35878 PyObject * obj3 = 0 ;
35879 PyObject * obj4 = 0 ;
35880 char * kwnames[] = {
35881 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35882 };
35883
f460c29d 35884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
35885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35886 if (!SWIG_IsOK(res1)) {
f460c29d 35887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
35888 }
35889 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35890 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35891 if (!SWIG_IsOK(res2)) {
f460c29d 35892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
35893 }
35894 arg2 = reinterpret_cast< wxWindow * >(argp2);
35895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35896 if (!SWIG_IsOK(res3)) {
f460c29d 35897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35898 }
35899 if (!argp3) {
f460c29d 35900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35901 }
35902 arg3 = reinterpret_cast< wxDC * >(argp3);
35903 {
35904 arg4 = &temp4;
35905 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35906 }
35907 if (obj4) {
35908 ecode5 = SWIG_AsVal_int(obj4, &val5);
35909 if (!SWIG_IsOK(ecode5)) {
f460c29d 35910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
35911 }
35912 arg5 = static_cast< int >(val5);
35913 }
35914 {
35915 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 35916 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
35917 wxPyEndAllowThreads(__tstate);
35918 if (PyErr_Occurred()) SWIG_fail;
35919 }
35920 resultobj = SWIG_Py_Void();
35921 return resultobj;
35922fail:
35923 return NULL;
35924}
35925
35926
554f62e9
RD
35927SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35928 PyObject *resultobj = 0;
35929 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35930 wxWindow *arg2 = (wxWindow *) 0 ;
35931 SwigValueWrapper<wxSplitterRenderParams > result;
35932 void *argp1 = 0 ;
35933 int res1 = 0 ;
35934 void *argp2 = 0 ;
35935 int res2 = 0 ;
35936 PyObject * obj0 = 0 ;
35937 PyObject * obj1 = 0 ;
35938 char * kwnames[] = {
35939 (char *) "self",(char *) "win", NULL
35940 };
35941
35942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35944 if (!SWIG_IsOK(res1)) {
35945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35946 }
35947 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35949 if (!SWIG_IsOK(res2)) {
35950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35951 }
35952 arg2 = reinterpret_cast< wxWindow * >(argp2);
35953 {
35954 PyThreadState* __tstate = wxPyBeginAllowThreads();
35955 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35956 wxPyEndAllowThreads(__tstate);
35957 if (PyErr_Occurred()) SWIG_fail;
35958 }
35959 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35960 return resultobj;
35961fail:
35962 return NULL;
35963}
35964
35965
35966SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35967 PyObject *resultobj = 0;
35968 wxRendererNative *result = 0 ;
35969
35970 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35971 {
704eda0c 35972 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35973 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 35974 {
554f62e9
RD
35975 wxRendererNative &_result_ref = wxRendererNative::Get();
35976 result = (wxRendererNative *) &_result_ref;
093d3ff1 35977 }
554f62e9
RD
35978 wxPyEndAllowThreads(__tstate);
35979 if (PyErr_Occurred()) SWIG_fail;
35980 }
35981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35982 return resultobj;
35983fail:
35984 return NULL;
35985}
35986
35987
35988SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35989 PyObject *resultobj = 0;
35990 wxRendererNative *result = 0 ;
35991
35992 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35993 {
704eda0c 35994 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35995 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35996 {
554f62e9
RD
35997 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35998 result = (wxRendererNative *) &_result_ref;
be9b1dca 35999 }
554f62e9
RD
36000 wxPyEndAllowThreads(__tstate);
36001 if (PyErr_Occurred()) SWIG_fail;
36002 }
36003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36004 return resultobj;
36005fail:
36006 return NULL;
36007}
36008
36009
36010SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36011 PyObject *resultobj = 0;
36012 wxRendererNative *result = 0 ;
36013
36014 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
36015 {
704eda0c 36016 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 36017 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 36018 {
554f62e9
RD
36019 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
36020 result = (wxRendererNative *) &_result_ref;
be9b1dca 36021 }
554f62e9
RD
36022 wxPyEndAllowThreads(__tstate);
36023 if (PyErr_Occurred()) SWIG_fail;
36024 }
36025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36026 return resultobj;
36027fail:
36028 return NULL;
36029}
36030
36031
36032SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36033 PyObject *resultobj = 0;
36034 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36035 wxRendererNative *result = 0 ;
36036 void *argp1 = 0 ;
36037 int res1 = 0 ;
36038 PyObject * obj0 = 0 ;
36039 char * kwnames[] = {
36040 (char *) "renderer", NULL
36041 };
36042
36043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
36044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36045 if (!SWIG_IsOK(res1)) {
36046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36047 }
36048 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36049 {
704eda0c 36050 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
36051 PyThreadState* __tstate = wxPyBeginAllowThreads();
36052 result = (wxRendererNative *)wxRendererNative::Set(arg1);
36053 wxPyEndAllowThreads(__tstate);
36054 if (PyErr_Occurred()) SWIG_fail;
36055 }
36056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36057 return resultobj;
36058fail:
36059 return NULL;
36060}
36061
36062
36063SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36064 PyObject *resultobj = 0;
36065 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36066 SwigValueWrapper<wxRendererVersion > result;
36067 void *argp1 = 0 ;
36068 int res1 = 0 ;
36069 PyObject *swig_obj[1] ;
36070
36071 if (!args) SWIG_fail;
36072 swig_obj[0] = args;
36073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36074 if (!SWIG_IsOK(res1)) {
36075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
36076 }
36077 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36078 {
36079 PyThreadState* __tstate = wxPyBeginAllowThreads();
36080 result = ((wxRendererNative const *)arg1)->GetVersion();
36081 wxPyEndAllowThreads(__tstate);
36082 if (PyErr_Occurred()) SWIG_fail;
36083 }
36084 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
36085 return resultobj;
36086fail:
36087 return NULL;
36088}
36089
36090
36091SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36092 PyObject *obj;
36093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36094 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
36095 return SWIG_Py_Void();
36096}
36097
27e45892
RD
36098SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36099 PyObject *resultobj = 0;
36100 wxPseudoDC *result = 0 ;
36101
36102 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
36103 {
36104 PyThreadState* __tstate = wxPyBeginAllowThreads();
36105 result = (wxPseudoDC *)new wxPseudoDC();
36106 wxPyEndAllowThreads(__tstate);
36107 if (PyErr_Occurred()) SWIG_fail;
36108 }
36109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
36110 return resultobj;
36111fail:
36112 return NULL;
36113}
36114
36115
36116SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36117 PyObject *resultobj = 0;
36118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36119 void *argp1 = 0 ;
36120 int res1 = 0 ;
36121 PyObject *swig_obj[1] ;
36122
36123 if (!args) SWIG_fail;
36124 swig_obj[0] = args;
36125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36126 if (!SWIG_IsOK(res1)) {
36127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36128 }
36129 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36130 {
36131 PyThreadState* __tstate = wxPyBeginAllowThreads();
36132 (arg1)->BeginDrawing();
36133 wxPyEndAllowThreads(__tstate);
36134 if (PyErr_Occurred()) SWIG_fail;
36135 }
36136 resultobj = SWIG_Py_Void();
36137 return resultobj;
36138fail:
36139 return NULL;
36140}
36141
36142
36143SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36144 PyObject *resultobj = 0;
36145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36146 void *argp1 = 0 ;
36147 int res1 = 0 ;
36148 PyObject *swig_obj[1] ;
36149
36150 if (!args) SWIG_fail;
36151 swig_obj[0] = args;
36152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36153 if (!SWIG_IsOK(res1)) {
36154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36155 }
36156 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36157 {
36158 PyThreadState* __tstate = wxPyBeginAllowThreads();
36159 (arg1)->EndDrawing();
36160 wxPyEndAllowThreads(__tstate);
36161 if (PyErr_Occurred()) SWIG_fail;
36162 }
36163 resultobj = SWIG_Py_Void();
36164 return resultobj;
36165fail:
36166 return NULL;
36167}
36168
36169
36170SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36171 PyObject *resultobj = 0;
36172 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36173 void *argp1 = 0 ;
36174 int res1 = 0 ;
36175 PyObject *swig_obj[1] ;
36176
36177 if (!args) SWIG_fail;
36178 swig_obj[0] = args;
36179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
36180 if (!SWIG_IsOK(res1)) {
36181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36182 }
36183 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36184 {
36185 PyThreadState* __tstate = wxPyBeginAllowThreads();
36186 delete arg1;
36187
36188 wxPyEndAllowThreads(__tstate);
36189 if (PyErr_Occurred()) SWIG_fail;
36190 }
36191 resultobj = SWIG_Py_Void();
36192 return resultobj;
36193fail:
36194 return NULL;
36195}
36196
36197
36198SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36199 PyObject *resultobj = 0;
36200 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36201 void *argp1 = 0 ;
36202 int res1 = 0 ;
36203 PyObject *swig_obj[1] ;
36204
36205 if (!args) SWIG_fail;
36206 swig_obj[0] = args;
36207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36208 if (!SWIG_IsOK(res1)) {
36209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36210 }
36211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36212 {
36213 PyThreadState* __tstate = wxPyBeginAllowThreads();
36214 (arg1)->RemoveAll();
36215 wxPyEndAllowThreads(__tstate);
36216 if (PyErr_Occurred()) SWIG_fail;
36217 }
36218 resultobj = SWIG_Py_Void();
36219 return resultobj;
36220fail:
36221 return NULL;
36222}
36223
36224
36225SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36226 PyObject *resultobj = 0;
36227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36228 int result;
36229 void *argp1 = 0 ;
36230 int res1 = 0 ;
36231 PyObject *swig_obj[1] ;
36232
36233 if (!args) SWIG_fail;
36234 swig_obj[0] = args;
36235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36236 if (!SWIG_IsOK(res1)) {
36237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36238 }
36239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36240 {
36241 PyThreadState* __tstate = wxPyBeginAllowThreads();
36242 result = (int)(arg1)->GetLen();
36243 wxPyEndAllowThreads(__tstate);
36244 if (PyErr_Occurred()) SWIG_fail;
36245 }
36246 resultobj = SWIG_From_int(static_cast< int >(result));
36247 return resultobj;
36248fail:
36249 return NULL;
36250}
36251
36252
36253SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36254 PyObject *resultobj = 0;
36255 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36256 int arg2 ;
36257 void *argp1 = 0 ;
36258 int res1 = 0 ;
36259 int val2 ;
36260 int ecode2 = 0 ;
36261 PyObject * obj0 = 0 ;
36262 PyObject * obj1 = 0 ;
36263 char * kwnames[] = {
36264 (char *) "self",(char *) "id", NULL
36265 };
36266
36267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36269 if (!SWIG_IsOK(res1)) {
36270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36271 }
36272 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36273 ecode2 = SWIG_AsVal_int(obj1, &val2);
36274 if (!SWIG_IsOK(ecode2)) {
36275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36276 }
36277 arg2 = static_cast< int >(val2);
36278 {
36279 PyThreadState* __tstate = wxPyBeginAllowThreads();
36280 (arg1)->SetId(arg2);
36281 wxPyEndAllowThreads(__tstate);
36282 if (PyErr_Occurred()) SWIG_fail;
36283 }
36284 resultobj = SWIG_Py_Void();
36285 return resultobj;
36286fail:
36287 return NULL;
36288}
36289
36290
36291SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36292 PyObject *resultobj = 0;
36293 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36294 int arg2 ;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 int val2 ;
36298 int ecode2 = 0 ;
36299 PyObject * obj0 = 0 ;
36300 PyObject * obj1 = 0 ;
36301 char * kwnames[] = {
36302 (char *) "self",(char *) "id", NULL
36303 };
36304
36305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36307 if (!SWIG_IsOK(res1)) {
36308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36309 }
36310 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36311 ecode2 = SWIG_AsVal_int(obj1, &val2);
36312 if (!SWIG_IsOK(ecode2)) {
36313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36314 }
36315 arg2 = static_cast< int >(val2);
36316 {
36317 PyThreadState* __tstate = wxPyBeginAllowThreads();
36318 (arg1)->ClearId(arg2);
36319 wxPyEndAllowThreads(__tstate);
36320 if (PyErr_Occurred()) SWIG_fail;
36321 }
36322 resultobj = SWIG_Py_Void();
36323 return resultobj;
36324fail:
36325 return NULL;
36326}
36327
36328
36329SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36330 PyObject *resultobj = 0;
36331 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36332 int arg2 ;
36333 void *argp1 = 0 ;
36334 int res1 = 0 ;
36335 int val2 ;
36336 int ecode2 = 0 ;
36337 PyObject * obj0 = 0 ;
36338 PyObject * obj1 = 0 ;
36339 char * kwnames[] = {
36340 (char *) "self",(char *) "id", NULL
36341 };
36342
36343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36345 if (!SWIG_IsOK(res1)) {
36346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36347 }
36348 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36349 ecode2 = SWIG_AsVal_int(obj1, &val2);
36350 if (!SWIG_IsOK(ecode2)) {
36351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36352 }
36353 arg2 = static_cast< int >(val2);
36354 {
36355 PyThreadState* __tstate = wxPyBeginAllowThreads();
36356 (arg1)->RemoveId(arg2);
36357 wxPyEndAllowThreads(__tstate);
36358 if (PyErr_Occurred()) SWIG_fail;
36359 }
36360 resultobj = SWIG_Py_Void();
36361 return resultobj;
36362fail:
36363 return NULL;
36364}
36365
36366
36367SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36368 PyObject *resultobj = 0;
36369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36370 int arg2 ;
36371 int arg3 ;
36372 int arg4 ;
36373 void *argp1 = 0 ;
36374 int res1 = 0 ;
36375 int val2 ;
36376 int ecode2 = 0 ;
36377 int val3 ;
36378 int ecode3 = 0 ;
36379 int val4 ;
36380 int ecode4 = 0 ;
36381 PyObject * obj0 = 0 ;
36382 PyObject * obj1 = 0 ;
36383 PyObject * obj2 = 0 ;
36384 PyObject * obj3 = 0 ;
36385 char * kwnames[] = {
36386 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36387 };
36388
36389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36391 if (!SWIG_IsOK(res1)) {
36392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36393 }
36394 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36395 ecode2 = SWIG_AsVal_int(obj1, &val2);
36396 if (!SWIG_IsOK(ecode2)) {
36397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36398 }
36399 arg2 = static_cast< int >(val2);
36400 ecode3 = SWIG_AsVal_int(obj2, &val3);
36401 if (!SWIG_IsOK(ecode3)) {
36402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36403 }
36404 arg3 = static_cast< int >(val3);
36405 ecode4 = SWIG_AsVal_int(obj3, &val4);
36406 if (!SWIG_IsOK(ecode4)) {
36407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36408 }
36409 arg4 = static_cast< int >(val4);
36410 {
36411 PyThreadState* __tstate = wxPyBeginAllowThreads();
36412 (arg1)->TranslateId(arg2,arg3,arg4);
36413 wxPyEndAllowThreads(__tstate);
36414 if (PyErr_Occurred()) SWIG_fail;
36415 }
36416 resultobj = SWIG_Py_Void();
36417 return resultobj;
36418fail:
36419 return NULL;
36420}
36421
36422
72ef6efb
RD
36423SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36424 PyObject *resultobj = 0;
36425 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36426 int arg2 ;
36427 bool arg3 = (bool) true ;
36428 void *argp1 = 0 ;
36429 int res1 = 0 ;
36430 int val2 ;
36431 int ecode2 = 0 ;
36432 bool val3 ;
36433 int ecode3 = 0 ;
36434 PyObject * obj0 = 0 ;
36435 PyObject * obj1 = 0 ;
36436 PyObject * obj2 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "self",(char *) "id",(char *) "greyout", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36445 }
36446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36447 ecode2 = SWIG_AsVal_int(obj1, &val2);
36448 if (!SWIG_IsOK(ecode2)) {
36449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36450 }
36451 arg2 = static_cast< int >(val2);
36452 if (obj2) {
36453 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36454 if (!SWIG_IsOK(ecode3)) {
36455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36456 }
36457 arg3 = static_cast< bool >(val3);
36458 }
36459 {
36460 PyThreadState* __tstate = wxPyBeginAllowThreads();
36461 (arg1)->SetIdGreyedOut(arg2,arg3);
36462 wxPyEndAllowThreads(__tstate);
36463 if (PyErr_Occurred()) SWIG_fail;
36464 }
36465 resultobj = SWIG_Py_Void();
36466 return resultobj;
36467fail:
36468 return NULL;
36469}
36470
36471
36472SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36473 PyObject *resultobj = 0;
36474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36475 int arg2 ;
36476 bool result;
36477 void *argp1 = 0 ;
36478 int res1 = 0 ;
36479 int val2 ;
36480 int ecode2 = 0 ;
36481 PyObject * obj0 = 0 ;
36482 PyObject * obj1 = 0 ;
36483 char * kwnames[] = {
36484 (char *) "self",(char *) "id", NULL
36485 };
36486
36487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36489 if (!SWIG_IsOK(res1)) {
36490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36491 }
36492 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36493 ecode2 = SWIG_AsVal_int(obj1, &val2);
36494 if (!SWIG_IsOK(ecode2)) {
36495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36496 }
36497 arg2 = static_cast< int >(val2);
36498 {
36499 PyThreadState* __tstate = wxPyBeginAllowThreads();
36500 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36501 wxPyEndAllowThreads(__tstate);
36502 if (PyErr_Occurred()) SWIG_fail;
36503 }
36504 {
36505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36506 }
36507 return resultobj;
36508fail:
36509 return NULL;
36510}
36511
36512
36513SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36514 PyObject *resultobj = 0;
36515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36516 int arg2 ;
36517 int arg3 ;
36518 int arg4 = (int) 1 ;
59ccbf7f
RD
36519 wxColour const &arg5_defvalue = *wxWHITE ;
36520 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
72ef6efb
RD
36521 PyObject *result = 0 ;
36522 void *argp1 = 0 ;
36523 int res1 = 0 ;
36524 int val2 ;
36525 int ecode2 = 0 ;
36526 int val3 ;
36527 int ecode3 = 0 ;
36528 int val4 ;
36529 int ecode4 = 0 ;
59ccbf7f 36530 wxColour temp5 ;
72ef6efb
RD
36531 PyObject * obj0 = 0 ;
36532 PyObject * obj1 = 0 ;
36533 PyObject * obj2 = 0 ;
36534 PyObject * obj3 = 0 ;
36535 PyObject * obj4 = 0 ;
36536 char * kwnames[] = {
36537 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36538 };
36539
36540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36542 if (!SWIG_IsOK(res1)) {
36543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36544 }
36545 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36546 ecode2 = SWIG_AsVal_int(obj1, &val2);
36547 if (!SWIG_IsOK(ecode2)) {
36548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36549 }
36550 arg2 = static_cast< int >(val2);
36551 ecode3 = SWIG_AsVal_int(obj2, &val3);
36552 if (!SWIG_IsOK(ecode3)) {
36553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36554 }
36555 arg3 = static_cast< int >(val3);
36556 if (obj3) {
36557 ecode4 = SWIG_AsVal_int(obj3, &val4);
36558 if (!SWIG_IsOK(ecode4)) {
36559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36560 }
36561 arg4 = static_cast< int >(val4);
36562 }
36563 if (obj4) {
59ccbf7f
RD
36564 {
36565 arg5 = &temp5;
36566 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
72ef6efb 36567 }
72ef6efb
RD
36568 }
36569 {
59ccbf7f 36570 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
72ef6efb
RD
36571 if (PyErr_Occurred()) SWIG_fail;
36572 }
36573 resultobj = result;
36574 return resultobj;
36575fail:
36576 return NULL;
36577}
36578
36579
36580SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36581 PyObject *resultobj = 0;
36582 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36583 int arg2 ;
36584 int arg3 ;
36585 PyObject *result = 0 ;
36586 void *argp1 = 0 ;
36587 int res1 = 0 ;
36588 int val2 ;
36589 int ecode2 = 0 ;
36590 int val3 ;
36591 int ecode3 = 0 ;
36592 PyObject * obj0 = 0 ;
36593 PyObject * obj1 = 0 ;
36594 PyObject * obj2 = 0 ;
36595 char * kwnames[] = {
36596 (char *) "self",(char *) "x",(char *) "y", NULL
36597 };
36598
36599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36601 if (!SWIG_IsOK(res1)) {
36602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36603 }
36604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36605 ecode2 = SWIG_AsVal_int(obj1, &val2);
36606 if (!SWIG_IsOK(ecode2)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36608 }
36609 arg2 = static_cast< int >(val2);
36610 ecode3 = SWIG_AsVal_int(obj2, &val3);
36611 if (!SWIG_IsOK(ecode3)) {
36612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36613 }
36614 arg3 = static_cast< int >(val3);
36615 {
36616 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36617 if (PyErr_Occurred()) SWIG_fail;
36618 }
36619 resultobj = result;
36620 return resultobj;
36621fail:
36622 return NULL;
36623}
36624
36625
27e45892
RD
36626SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36627 PyObject *resultobj = 0;
36628 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36629 int arg2 ;
36630 wxDC *arg3 = (wxDC *) 0 ;
36631 void *argp1 = 0 ;
36632 int res1 = 0 ;
36633 int val2 ;
36634 int ecode2 = 0 ;
36635 void *argp3 = 0 ;
36636 int res3 = 0 ;
36637 PyObject * obj0 = 0 ;
36638 PyObject * obj1 = 0 ;
36639 PyObject * obj2 = 0 ;
36640 char * kwnames[] = {
36641 (char *) "self",(char *) "id",(char *) "dc", NULL
36642 };
36643
36644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36646 if (!SWIG_IsOK(res1)) {
36647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36648 }
36649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36650 ecode2 = SWIG_AsVal_int(obj1, &val2);
36651 if (!SWIG_IsOK(ecode2)) {
36652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36653 }
36654 arg2 = static_cast< int >(val2);
36655 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36656 if (!SWIG_IsOK(res3)) {
36657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36658 }
36659 arg3 = reinterpret_cast< wxDC * >(argp3);
36660 {
36661 PyThreadState* __tstate = wxPyBeginAllowThreads();
36662 (arg1)->DrawIdToDC(arg2,arg3);
36663 wxPyEndAllowThreads(__tstate);
36664 if (PyErr_Occurred()) SWIG_fail;
36665 }
36666 resultobj = SWIG_Py_Void();
36667 return resultobj;
36668fail:
36669 return NULL;
36670}
36671
36672
36673SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36674 PyObject *resultobj = 0;
36675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36676 int arg2 ;
36677 wxRect *arg3 = 0 ;
36678 void *argp1 = 0 ;
36679 int res1 = 0 ;
36680 int val2 ;
36681 int ecode2 = 0 ;
36682 wxRect temp3 ;
36683 PyObject * obj0 = 0 ;
36684 PyObject * obj1 = 0 ;
36685 PyObject * obj2 = 0 ;
36686 char * kwnames[] = {
36687 (char *) "self",(char *) "id",(char *) "rect", NULL
36688 };
36689
36690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36692 if (!SWIG_IsOK(res1)) {
36693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36694 }
36695 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36696 ecode2 = SWIG_AsVal_int(obj1, &val2);
36697 if (!SWIG_IsOK(ecode2)) {
36698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36699 }
36700 arg2 = static_cast< int >(val2);
36701 {
36702 arg3 = &temp3;
36703 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36704 }
36705 {
36706 PyThreadState* __tstate = wxPyBeginAllowThreads();
36707 (arg1)->SetIdBounds(arg2,*arg3);
36708 wxPyEndAllowThreads(__tstate);
36709 if (PyErr_Occurred()) SWIG_fail;
36710 }
36711 resultobj = SWIG_Py_Void();
36712 return resultobj;
36713fail:
36714 return NULL;
36715}
36716
36717
36718SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36719 PyObject *resultobj = 0;
36720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36721 int arg2 ;
36722 wxRect result;
36723 void *argp1 = 0 ;
36724 int res1 = 0 ;
36725 int val2 ;
36726 int ecode2 = 0 ;
36727 PyObject * obj0 = 0 ;
36728 PyObject * obj1 = 0 ;
36729 char * kwnames[] = {
36730 (char *) "self",(char *) "id", NULL
36731 };
36732
36733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36735 if (!SWIG_IsOK(res1)) {
36736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36737 }
36738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36739 ecode2 = SWIG_AsVal_int(obj1, &val2);
36740 if (!SWIG_IsOK(ecode2)) {
36741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36742 }
36743 arg2 = static_cast< int >(val2);
36744 {
36745 PyThreadState* __tstate = wxPyBeginAllowThreads();
36746 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36747 wxPyEndAllowThreads(__tstate);
36748 if (PyErr_Occurred()) SWIG_fail;
36749 }
36750 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36751 return resultobj;
36752fail:
36753 return NULL;
36754}
36755
36756
36757SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36758 PyObject *resultobj = 0;
36759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36760 wxDC *arg2 = (wxDC *) 0 ;
36761 wxRect *arg3 = 0 ;
36762 void *argp1 = 0 ;
36763 int res1 = 0 ;
36764 void *argp2 = 0 ;
36765 int res2 = 0 ;
36766 wxRect temp3 ;
36767 PyObject * obj0 = 0 ;
36768 PyObject * obj1 = 0 ;
36769 PyObject * obj2 = 0 ;
36770 char * kwnames[] = {
36771 (char *) "self",(char *) "dc",(char *) "rect", NULL
36772 };
36773
36774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36776 if (!SWIG_IsOK(res1)) {
36777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36778 }
36779 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36781 if (!SWIG_IsOK(res2)) {
36782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36783 }
36784 arg2 = reinterpret_cast< wxDC * >(argp2);
36785 {
36786 arg3 = &temp3;
36787 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36788 }
36789 {
36790 PyThreadState* __tstate = wxPyBeginAllowThreads();
36791 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36792 wxPyEndAllowThreads(__tstate);
36793 if (PyErr_Occurred()) SWIG_fail;
36794 }
36795 resultobj = SWIG_Py_Void();
36796 return resultobj;
36797fail:
36798 return NULL;
36799}
36800
36801
36802SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36803 PyObject *resultobj = 0;
36804 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36805 wxDC *arg2 = (wxDC *) 0 ;
36806 wxRegion *arg3 = 0 ;
36807 void *argp1 = 0 ;
36808 int res1 = 0 ;
36809 void *argp2 = 0 ;
36810 int res2 = 0 ;
36811 void *argp3 = 0 ;
36812 int res3 = 0 ;
36813 PyObject * obj0 = 0 ;
36814 PyObject * obj1 = 0 ;
36815 PyObject * obj2 = 0 ;
36816 char * kwnames[] = {
36817 (char *) "self",(char *) "dc",(char *) "region", NULL
36818 };
36819
36820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36822 if (!SWIG_IsOK(res1)) {
36823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36824 }
36825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36827 if (!SWIG_IsOK(res2)) {
36828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36829 }
36830 arg2 = reinterpret_cast< wxDC * >(argp2);
36831 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36832 if (!SWIG_IsOK(res3)) {
36833 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36834 }
36835 if (!argp3) {
36836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36837 }
36838 arg3 = reinterpret_cast< wxRegion * >(argp3);
36839 {
36840 PyThreadState* __tstate = wxPyBeginAllowThreads();
36841 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36842 wxPyEndAllowThreads(__tstate);
36843 if (PyErr_Occurred()) SWIG_fail;
36844 }
36845 resultobj = SWIG_Py_Void();
36846 return resultobj;
36847fail:
36848 return NULL;
36849}
36850
36851
36852SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36853 PyObject *resultobj = 0;
36854 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36855 wxDC *arg2 = (wxDC *) 0 ;
36856 void *argp1 = 0 ;
36857 int res1 = 0 ;
36858 void *argp2 = 0 ;
36859 int res2 = 0 ;
36860 PyObject * obj0 = 0 ;
36861 PyObject * obj1 = 0 ;
36862 char * kwnames[] = {
36863 (char *) "self",(char *) "dc", NULL
36864 };
36865
36866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36868 if (!SWIG_IsOK(res1)) {
36869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36870 }
36871 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36873 if (!SWIG_IsOK(res2)) {
36874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36875 }
36876 arg2 = reinterpret_cast< wxDC * >(argp2);
36877 {
36878 PyThreadState* __tstate = wxPyBeginAllowThreads();
36879 (arg1)->DrawToDC(arg2);
36880 wxPyEndAllowThreads(__tstate);
36881 if (PyErr_Occurred()) SWIG_fail;
36882 }
36883 resultobj = SWIG_Py_Void();
36884 return resultobj;
36885fail:
36886 return NULL;
36887}
36888
36889
36890SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36891 PyObject *resultobj = 0;
36892 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36893 int arg2 ;
36894 int arg3 ;
36895 wxColour *arg4 = 0 ;
36896 int arg5 = (int) wxFLOOD_SURFACE ;
36897 void *argp1 = 0 ;
36898 int res1 = 0 ;
36899 int val2 ;
36900 int ecode2 = 0 ;
36901 int val3 ;
36902 int ecode3 = 0 ;
36903 wxColour temp4 ;
36904 int val5 ;
36905 int ecode5 = 0 ;
36906 PyObject * obj0 = 0 ;
36907 PyObject * obj1 = 0 ;
36908 PyObject * obj2 = 0 ;
36909 PyObject * obj3 = 0 ;
36910 PyObject * obj4 = 0 ;
36911 char * kwnames[] = {
36912 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36913 };
36914
36915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36917 if (!SWIG_IsOK(res1)) {
36918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36919 }
36920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36921 ecode2 = SWIG_AsVal_int(obj1, &val2);
36922 if (!SWIG_IsOK(ecode2)) {
36923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36924 }
36925 arg2 = static_cast< int >(val2);
36926 ecode3 = SWIG_AsVal_int(obj2, &val3);
36927 if (!SWIG_IsOK(ecode3)) {
36928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36929 }
36930 arg3 = static_cast< int >(val3);
36931 {
36932 arg4 = &temp4;
36933 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36934 }
36935 if (obj4) {
36936 ecode5 = SWIG_AsVal_int(obj4, &val5);
36937 if (!SWIG_IsOK(ecode5)) {
36938 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36939 }
36940 arg5 = static_cast< int >(val5);
36941 }
36942 {
36943 PyThreadState* __tstate = wxPyBeginAllowThreads();
36944 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36945 wxPyEndAllowThreads(__tstate);
36946 if (PyErr_Occurred()) SWIG_fail;
36947 }
36948 resultobj = SWIG_Py_Void();
36949 return resultobj;
36950fail:
36951 return NULL;
36952}
36953
36954
36955SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36956 PyObject *resultobj = 0;
36957 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36958 wxPoint *arg2 = 0 ;
36959 wxColour *arg3 = 0 ;
36960 int arg4 = (int) wxFLOOD_SURFACE ;
36961 void *argp1 = 0 ;
36962 int res1 = 0 ;
36963 wxPoint temp2 ;
36964 wxColour temp3 ;
36965 int val4 ;
36966 int ecode4 = 0 ;
36967 PyObject * obj0 = 0 ;
36968 PyObject * obj1 = 0 ;
36969 PyObject * obj2 = 0 ;
36970 PyObject * obj3 = 0 ;
36971 char * kwnames[] = {
36972 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36973 };
36974
36975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36977 if (!SWIG_IsOK(res1)) {
36978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36979 }
36980 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36981 {
36982 arg2 = &temp2;
36983 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36984 }
36985 {
36986 arg3 = &temp3;
36987 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36988 }
36989 if (obj3) {
36990 ecode4 = SWIG_AsVal_int(obj3, &val4);
36991 if (!SWIG_IsOK(ecode4)) {
36992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36993 }
36994 arg4 = static_cast< int >(val4);
36995 }
36996 {
36997 PyThreadState* __tstate = wxPyBeginAllowThreads();
36998 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36999 wxPyEndAllowThreads(__tstate);
37000 if (PyErr_Occurred()) SWIG_fail;
37001 }
37002 resultobj = SWIG_Py_Void();
37003 return resultobj;
37004fail:
37005 return NULL;
37006}
37007
37008
37009SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37010 PyObject *resultobj = 0;
37011 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37012 int arg2 ;
37013 int arg3 ;
37014 int arg4 ;
37015 int arg5 ;
37016 void *argp1 = 0 ;
37017 int res1 = 0 ;
37018 int val2 ;
37019 int ecode2 = 0 ;
37020 int val3 ;
37021 int ecode3 = 0 ;
37022 int val4 ;
37023 int ecode4 = 0 ;
37024 int val5 ;
37025 int ecode5 = 0 ;
37026 PyObject * obj0 = 0 ;
37027 PyObject * obj1 = 0 ;
37028 PyObject * obj2 = 0 ;
37029 PyObject * obj3 = 0 ;
37030 PyObject * obj4 = 0 ;
37031 char * kwnames[] = {
37032 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
37033 };
37034
37035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37037 if (!SWIG_IsOK(res1)) {
37038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37039 }
37040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37041 ecode2 = SWIG_AsVal_int(obj1, &val2);
37042 if (!SWIG_IsOK(ecode2)) {
37043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
37044 }
37045 arg2 = static_cast< int >(val2);
37046 ecode3 = SWIG_AsVal_int(obj2, &val3);
37047 if (!SWIG_IsOK(ecode3)) {
37048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
37049 }
37050 arg3 = static_cast< int >(val3);
37051 ecode4 = SWIG_AsVal_int(obj3, &val4);
37052 if (!SWIG_IsOK(ecode4)) {
37053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
37054 }
37055 arg4 = static_cast< int >(val4);
37056 ecode5 = SWIG_AsVal_int(obj4, &val5);
37057 if (!SWIG_IsOK(ecode5)) {
37058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
37059 }
37060 arg5 = static_cast< int >(val5);
37061 {
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
37064 wxPyEndAllowThreads(__tstate);
37065 if (PyErr_Occurred()) SWIG_fail;
37066 }
37067 resultobj = SWIG_Py_Void();
37068 return resultobj;
37069fail:
37070 return NULL;
37071}
37072
37073
37074SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37075 PyObject *resultobj = 0;
37076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37077 wxPoint *arg2 = 0 ;
37078 wxPoint *arg3 = 0 ;
37079 void *argp1 = 0 ;
37080 int res1 = 0 ;
37081 wxPoint temp2 ;
37082 wxPoint temp3 ;
37083 PyObject * obj0 = 0 ;
37084 PyObject * obj1 = 0 ;
37085 PyObject * obj2 = 0 ;
37086 char * kwnames[] = {
37087 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
37088 };
37089
37090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37092 if (!SWIG_IsOK(res1)) {
37093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37094 }
37095 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37096 {
37097 arg2 = &temp2;
37098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37099 }
37100 {
37101 arg3 = &temp3;
37102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37103 }
37104 {
37105 PyThreadState* __tstate = wxPyBeginAllowThreads();
37106 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
37107 wxPyEndAllowThreads(__tstate);
37108 if (PyErr_Occurred()) SWIG_fail;
37109 }
37110 resultobj = SWIG_Py_Void();
37111 return resultobj;
37112fail:
37113 return NULL;
37114}
37115
37116
37117SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37118 PyObject *resultobj = 0;
37119 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37120 int arg2 ;
37121 int arg3 ;
37122 void *argp1 = 0 ;
37123 int res1 = 0 ;
37124 int val2 ;
37125 int ecode2 = 0 ;
37126 int val3 ;
37127 int ecode3 = 0 ;
37128 PyObject * obj0 = 0 ;
37129 PyObject * obj1 = 0 ;
37130 PyObject * obj2 = 0 ;
37131 char * kwnames[] = {
37132 (char *) "self",(char *) "x",(char *) "y", NULL
37133 };
37134
37135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37137 if (!SWIG_IsOK(res1)) {
37138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37139 }
37140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37141 ecode2 = SWIG_AsVal_int(obj1, &val2);
37142 if (!SWIG_IsOK(ecode2)) {
37143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
37144 }
37145 arg2 = static_cast< int >(val2);
37146 ecode3 = SWIG_AsVal_int(obj2, &val3);
37147 if (!SWIG_IsOK(ecode3)) {
37148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
37149 }
37150 arg3 = static_cast< int >(val3);
37151 {
37152 PyThreadState* __tstate = wxPyBeginAllowThreads();
37153 (arg1)->CrossHair(arg2,arg3);
37154 wxPyEndAllowThreads(__tstate);
37155 if (PyErr_Occurred()) SWIG_fail;
37156 }
37157 resultobj = SWIG_Py_Void();
37158 return resultobj;
37159fail:
37160 return NULL;
37161}
37162
37163
37164SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37165 PyObject *resultobj = 0;
37166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37167 wxPoint *arg2 = 0 ;
37168 void *argp1 = 0 ;
37169 int res1 = 0 ;
37170 wxPoint temp2 ;
37171 PyObject * obj0 = 0 ;
37172 PyObject * obj1 = 0 ;
37173 char * kwnames[] = {
37174 (char *) "self",(char *) "pt", NULL
37175 };
37176
37177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37179 if (!SWIG_IsOK(res1)) {
37180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37181 }
37182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37183 {
37184 arg2 = &temp2;
37185 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37186 }
37187 {
37188 PyThreadState* __tstate = wxPyBeginAllowThreads();
37189 (arg1)->CrossHair((wxPoint const &)*arg2);
37190 wxPyEndAllowThreads(__tstate);
37191 if (PyErr_Occurred()) SWIG_fail;
37192 }
37193 resultobj = SWIG_Py_Void();
37194 return resultobj;
37195fail:
37196 return NULL;
37197}
37198
37199
37200SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37201 PyObject *resultobj = 0;
37202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37203 int arg2 ;
37204 int arg3 ;
37205 int arg4 ;
37206 int arg5 ;
37207 int arg6 ;
37208 int arg7 ;
37209 void *argp1 = 0 ;
37210 int res1 = 0 ;
37211 int val2 ;
37212 int ecode2 = 0 ;
37213 int val3 ;
37214 int ecode3 = 0 ;
37215 int val4 ;
37216 int ecode4 = 0 ;
37217 int val5 ;
37218 int ecode5 = 0 ;
37219 int val6 ;
37220 int ecode6 = 0 ;
37221 int val7 ;
37222 int ecode7 = 0 ;
37223 PyObject * obj0 = 0 ;
37224 PyObject * obj1 = 0 ;
37225 PyObject * obj2 = 0 ;
37226 PyObject * obj3 = 0 ;
37227 PyObject * obj4 = 0 ;
37228 PyObject * obj5 = 0 ;
37229 PyObject * obj6 = 0 ;
37230 char * kwnames[] = {
37231 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37232 };
37233
37234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37236 if (!SWIG_IsOK(res1)) {
37237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37238 }
37239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37240 ecode2 = SWIG_AsVal_int(obj1, &val2);
37241 if (!SWIG_IsOK(ecode2)) {
37242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37243 }
37244 arg2 = static_cast< int >(val2);
37245 ecode3 = SWIG_AsVal_int(obj2, &val3);
37246 if (!SWIG_IsOK(ecode3)) {
37247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37248 }
37249 arg3 = static_cast< int >(val3);
37250 ecode4 = SWIG_AsVal_int(obj3, &val4);
37251 if (!SWIG_IsOK(ecode4)) {
37252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37253 }
37254 arg4 = static_cast< int >(val4);
37255 ecode5 = SWIG_AsVal_int(obj4, &val5);
37256 if (!SWIG_IsOK(ecode5)) {
37257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37258 }
37259 arg5 = static_cast< int >(val5);
37260 ecode6 = SWIG_AsVal_int(obj5, &val6);
37261 if (!SWIG_IsOK(ecode6)) {
37262 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37263 }
37264 arg6 = static_cast< int >(val6);
37265 ecode7 = SWIG_AsVal_int(obj6, &val7);
37266 if (!SWIG_IsOK(ecode7)) {
37267 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37268 }
37269 arg7 = static_cast< int >(val7);
37270 {
37271 PyThreadState* __tstate = wxPyBeginAllowThreads();
37272 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37273 wxPyEndAllowThreads(__tstate);
37274 if (PyErr_Occurred()) SWIG_fail;
37275 }
37276 resultobj = SWIG_Py_Void();
37277 return resultobj;
37278fail:
37279 return NULL;
37280}
37281
37282
37283SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37284 PyObject *resultobj = 0;
37285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37286 wxPoint *arg2 = 0 ;
37287 wxPoint *arg3 = 0 ;
37288 wxPoint *arg4 = 0 ;
37289 void *argp1 = 0 ;
37290 int res1 = 0 ;
37291 wxPoint temp2 ;
37292 wxPoint temp3 ;
37293 wxPoint temp4 ;
37294 PyObject * obj0 = 0 ;
37295 PyObject * obj1 = 0 ;
37296 PyObject * obj2 = 0 ;
37297 PyObject * obj3 = 0 ;
37298 char * kwnames[] = {
37299 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37300 };
37301
37302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37304 if (!SWIG_IsOK(res1)) {
37305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37306 }
37307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37308 {
37309 arg2 = &temp2;
37310 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37311 }
37312 {
37313 arg3 = &temp3;
37314 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37315 }
37316 {
37317 arg4 = &temp4;
37318 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37319 }
37320 {
37321 PyThreadState* __tstate = wxPyBeginAllowThreads();
37322 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37323 wxPyEndAllowThreads(__tstate);
37324 if (PyErr_Occurred()) SWIG_fail;
37325 }
37326 resultobj = SWIG_Py_Void();
37327 return resultobj;
37328fail:
37329 return NULL;
37330}
37331
37332
37333SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37334 PyObject *resultobj = 0;
37335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37336 int arg2 ;
37337 int arg3 ;
37338 int arg4 ;
37339 int arg5 ;
37340 void *argp1 = 0 ;
37341 int res1 = 0 ;
37342 int val2 ;
37343 int ecode2 = 0 ;
37344 int val3 ;
37345 int ecode3 = 0 ;
37346 int val4 ;
37347 int ecode4 = 0 ;
37348 int val5 ;
37349 int ecode5 = 0 ;
37350 PyObject * obj0 = 0 ;
37351 PyObject * obj1 = 0 ;
37352 PyObject * obj2 = 0 ;
37353 PyObject * obj3 = 0 ;
37354 PyObject * obj4 = 0 ;
37355 char * kwnames[] = {
37356 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37357 };
37358
37359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37361 if (!SWIG_IsOK(res1)) {
37362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37363 }
37364 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37365 ecode2 = SWIG_AsVal_int(obj1, &val2);
37366 if (!SWIG_IsOK(ecode2)) {
37367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37368 }
37369 arg2 = static_cast< int >(val2);
37370 ecode3 = SWIG_AsVal_int(obj2, &val3);
37371 if (!SWIG_IsOK(ecode3)) {
37372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37373 }
37374 arg3 = static_cast< int >(val3);
37375 ecode4 = SWIG_AsVal_int(obj3, &val4);
37376 if (!SWIG_IsOK(ecode4)) {
37377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37378 }
37379 arg4 = static_cast< int >(val4);
37380 ecode5 = SWIG_AsVal_int(obj4, &val5);
37381 if (!SWIG_IsOK(ecode5)) {
37382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37383 }
37384 arg5 = static_cast< int >(val5);
37385 {
37386 PyThreadState* __tstate = wxPyBeginAllowThreads();
37387 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37388 wxPyEndAllowThreads(__tstate);
37389 if (PyErr_Occurred()) SWIG_fail;
37390 }
37391 resultobj = SWIG_Py_Void();
37392 return resultobj;
37393fail:
37394 return NULL;
37395}
37396
37397
37398SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37399 PyObject *resultobj = 0;
37400 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37401 wxRect *arg2 = 0 ;
37402 void *argp1 = 0 ;
37403 int res1 = 0 ;
37404 wxRect temp2 ;
37405 PyObject * obj0 = 0 ;
37406 PyObject * obj1 = 0 ;
37407 char * kwnames[] = {
37408 (char *) "self",(char *) "rect", NULL
37409 };
37410
37411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37413 if (!SWIG_IsOK(res1)) {
37414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37415 }
37416 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37417 {
37418 arg2 = &temp2;
37419 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37420 }
37421 {
37422 PyThreadState* __tstate = wxPyBeginAllowThreads();
37423 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37424 wxPyEndAllowThreads(__tstate);
37425 if (PyErr_Occurred()) SWIG_fail;
37426 }
37427 resultobj = SWIG_Py_Void();
37428 return resultobj;
37429fail:
37430 return NULL;
37431}
37432
37433
37434SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37435 PyObject *resultobj = 0;
37436 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37437 int arg2 ;
37438 int arg3 ;
37439 int arg4 ;
37440 int arg5 ;
37441 double arg6 ;
37442 double arg7 ;
37443 void *argp1 = 0 ;
37444 int res1 = 0 ;
37445 int val2 ;
37446 int ecode2 = 0 ;
37447 int val3 ;
37448 int ecode3 = 0 ;
37449 int val4 ;
37450 int ecode4 = 0 ;
37451 int val5 ;
37452 int ecode5 = 0 ;
37453 double val6 ;
37454 int ecode6 = 0 ;
37455 double val7 ;
37456 int ecode7 = 0 ;
37457 PyObject * obj0 = 0 ;
37458 PyObject * obj1 = 0 ;
37459 PyObject * obj2 = 0 ;
37460 PyObject * obj3 = 0 ;
37461 PyObject * obj4 = 0 ;
37462 PyObject * obj5 = 0 ;
37463 PyObject * obj6 = 0 ;
37464 char * kwnames[] = {
37465 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37466 };
37467
37468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37470 if (!SWIG_IsOK(res1)) {
37471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37472 }
37473 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37474 ecode2 = SWIG_AsVal_int(obj1, &val2);
37475 if (!SWIG_IsOK(ecode2)) {
37476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37477 }
37478 arg2 = static_cast< int >(val2);
37479 ecode3 = SWIG_AsVal_int(obj2, &val3);
37480 if (!SWIG_IsOK(ecode3)) {
37481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37482 }
37483 arg3 = static_cast< int >(val3);
37484 ecode4 = SWIG_AsVal_int(obj3, &val4);
37485 if (!SWIG_IsOK(ecode4)) {
37486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37487 }
37488 arg4 = static_cast< int >(val4);
37489 ecode5 = SWIG_AsVal_int(obj4, &val5);
37490 if (!SWIG_IsOK(ecode5)) {
37491 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37492 }
37493 arg5 = static_cast< int >(val5);
37494 ecode6 = SWIG_AsVal_double(obj5, &val6);
37495 if (!SWIG_IsOK(ecode6)) {
37496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37497 }
37498 arg6 = static_cast< double >(val6);
37499 ecode7 = SWIG_AsVal_double(obj6, &val7);
37500 if (!SWIG_IsOK(ecode7)) {
37501 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37502 }
37503 arg7 = static_cast< double >(val7);
37504 {
37505 PyThreadState* __tstate = wxPyBeginAllowThreads();
37506 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37507 wxPyEndAllowThreads(__tstate);
37508 if (PyErr_Occurred()) SWIG_fail;
37509 }
37510 resultobj = SWIG_Py_Void();
37511 return resultobj;
37512fail:
37513 return NULL;
37514}
37515
37516
37517SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37518 PyObject *resultobj = 0;
37519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37520 wxPoint *arg2 = 0 ;
37521 wxSize *arg3 = 0 ;
37522 double arg4 ;
37523 double arg5 ;
37524 void *argp1 = 0 ;
37525 int res1 = 0 ;
37526 wxPoint temp2 ;
37527 wxSize temp3 ;
37528 double val4 ;
37529 int ecode4 = 0 ;
37530 double val5 ;
37531 int ecode5 = 0 ;
37532 PyObject * obj0 = 0 ;
37533 PyObject * obj1 = 0 ;
37534 PyObject * obj2 = 0 ;
37535 PyObject * obj3 = 0 ;
37536 PyObject * obj4 = 0 ;
37537 char * kwnames[] = {
37538 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37539 };
37540
37541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37543 if (!SWIG_IsOK(res1)) {
37544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37545 }
37546 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37547 {
37548 arg2 = &temp2;
37549 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37550 }
37551 {
37552 arg3 = &temp3;
37553 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37554 }
37555 ecode4 = SWIG_AsVal_double(obj3, &val4);
37556 if (!SWIG_IsOK(ecode4)) {
37557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37558 }
37559 arg4 = static_cast< double >(val4);
37560 ecode5 = SWIG_AsVal_double(obj4, &val5);
37561 if (!SWIG_IsOK(ecode5)) {
37562 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37563 }
37564 arg5 = static_cast< double >(val5);
37565 {
37566 PyThreadState* __tstate = wxPyBeginAllowThreads();
37567 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37568 wxPyEndAllowThreads(__tstate);
37569 if (PyErr_Occurred()) SWIG_fail;
37570 }
37571 resultobj = SWIG_Py_Void();
37572 return resultobj;
37573fail:
37574 return NULL;
37575}
37576
37577
37578SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37579 PyObject *resultobj = 0;
37580 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37581 int arg2 ;
37582 int arg3 ;
37583 void *argp1 = 0 ;
37584 int res1 = 0 ;
37585 int val2 ;
37586 int ecode2 = 0 ;
37587 int val3 ;
37588 int ecode3 = 0 ;
37589 PyObject * obj0 = 0 ;
37590 PyObject * obj1 = 0 ;
37591 PyObject * obj2 = 0 ;
37592 char * kwnames[] = {
37593 (char *) "self",(char *) "x",(char *) "y", NULL
37594 };
37595
37596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37598 if (!SWIG_IsOK(res1)) {
37599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37600 }
37601 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37602 ecode2 = SWIG_AsVal_int(obj1, &val2);
37603 if (!SWIG_IsOK(ecode2)) {
37604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37605 }
37606 arg2 = static_cast< int >(val2);
37607 ecode3 = SWIG_AsVal_int(obj2, &val3);
37608 if (!SWIG_IsOK(ecode3)) {
37609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37610 }
37611 arg3 = static_cast< int >(val3);
37612 {
37613 PyThreadState* __tstate = wxPyBeginAllowThreads();
37614 (arg1)->DrawPoint(arg2,arg3);
37615 wxPyEndAllowThreads(__tstate);
37616 if (PyErr_Occurred()) SWIG_fail;
37617 }
37618 resultobj = SWIG_Py_Void();
37619 return resultobj;
37620fail:
37621 return NULL;
37622}
37623
37624
37625SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37626 PyObject *resultobj = 0;
37627 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37628 wxPoint *arg2 = 0 ;
37629 void *argp1 = 0 ;
37630 int res1 = 0 ;
37631 wxPoint temp2 ;
37632 PyObject * obj0 = 0 ;
37633 PyObject * obj1 = 0 ;
37634 char * kwnames[] = {
37635 (char *) "self",(char *) "pt", NULL
37636 };
37637
37638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37640 if (!SWIG_IsOK(res1)) {
37641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37642 }
37643 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37644 {
37645 arg2 = &temp2;
37646 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37647 }
37648 {
37649 PyThreadState* __tstate = wxPyBeginAllowThreads();
37650 (arg1)->DrawPoint((wxPoint const &)*arg2);
37651 wxPyEndAllowThreads(__tstate);
37652 if (PyErr_Occurred()) SWIG_fail;
37653 }
37654 resultobj = SWIG_Py_Void();
37655 return resultobj;
37656fail:
37657 return NULL;
37658}
37659
37660
37661SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37662 PyObject *resultobj = 0;
37663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37664 int arg2 ;
37665 int arg3 ;
37666 int arg4 ;
37667 int arg5 ;
37668 void *argp1 = 0 ;
37669 int res1 = 0 ;
37670 int val2 ;
37671 int ecode2 = 0 ;
37672 int val3 ;
37673 int ecode3 = 0 ;
37674 int val4 ;
37675 int ecode4 = 0 ;
37676 int val5 ;
37677 int ecode5 = 0 ;
37678 PyObject * obj0 = 0 ;
37679 PyObject * obj1 = 0 ;
37680 PyObject * obj2 = 0 ;
37681 PyObject * obj3 = 0 ;
37682 PyObject * obj4 = 0 ;
37683 char * kwnames[] = {
37684 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37685 };
37686
37687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37689 if (!SWIG_IsOK(res1)) {
37690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37691 }
37692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37693 ecode2 = SWIG_AsVal_int(obj1, &val2);
37694 if (!SWIG_IsOK(ecode2)) {
37695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37696 }
37697 arg2 = static_cast< int >(val2);
37698 ecode3 = SWIG_AsVal_int(obj2, &val3);
37699 if (!SWIG_IsOK(ecode3)) {
37700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37701 }
37702 arg3 = static_cast< int >(val3);
37703 ecode4 = SWIG_AsVal_int(obj3, &val4);
37704 if (!SWIG_IsOK(ecode4)) {
37705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37706 }
37707 arg4 = static_cast< int >(val4);
37708 ecode5 = SWIG_AsVal_int(obj4, &val5);
37709 if (!SWIG_IsOK(ecode5)) {
37710 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37711 }
37712 arg5 = static_cast< int >(val5);
37713 {
37714 PyThreadState* __tstate = wxPyBeginAllowThreads();
37715 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37716 wxPyEndAllowThreads(__tstate);
37717 if (PyErr_Occurred()) SWIG_fail;
37718 }
37719 resultobj = SWIG_Py_Void();
37720 return resultobj;
37721fail:
37722 return NULL;
37723}
37724
37725
37726SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37727 PyObject *resultobj = 0;
37728 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37729 wxRect *arg2 = 0 ;
37730 void *argp1 = 0 ;
37731 int res1 = 0 ;
37732 wxRect temp2 ;
37733 PyObject * obj0 = 0 ;
37734 PyObject * obj1 = 0 ;
37735 char * kwnames[] = {
37736 (char *) "self",(char *) "rect", NULL
37737 };
37738
37739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37741 if (!SWIG_IsOK(res1)) {
37742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37743 }
37744 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37745 {
37746 arg2 = &temp2;
37747 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37748 }
37749 {
37750 PyThreadState* __tstate = wxPyBeginAllowThreads();
37751 (arg1)->DrawRectangle((wxRect const &)*arg2);
37752 wxPyEndAllowThreads(__tstate);
37753 if (PyErr_Occurred()) SWIG_fail;
37754 }
37755 resultobj = SWIG_Py_Void();
37756 return resultobj;
37757fail:
37758 return NULL;
37759}
37760
37761
37762SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37763 PyObject *resultobj = 0;
37764 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37765 wxPoint *arg2 = 0 ;
37766 wxSize *arg3 = 0 ;
37767 void *argp1 = 0 ;
37768 int res1 = 0 ;
37769 wxPoint temp2 ;
37770 wxSize temp3 ;
37771 PyObject * obj0 = 0 ;
37772 PyObject * obj1 = 0 ;
37773 PyObject * obj2 = 0 ;
37774 char * kwnames[] = {
37775 (char *) "self",(char *) "pt",(char *) "sz", NULL
37776 };
37777
37778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37780 if (!SWIG_IsOK(res1)) {
37781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37782 }
37783 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37784 {
37785 arg2 = &temp2;
37786 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37787 }
37788 {
37789 arg3 = &temp3;
37790 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37791 }
37792 {
37793 PyThreadState* __tstate = wxPyBeginAllowThreads();
37794 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37795 wxPyEndAllowThreads(__tstate);
37796 if (PyErr_Occurred()) SWIG_fail;
37797 }
37798 resultobj = SWIG_Py_Void();
37799 return resultobj;
37800fail:
37801 return NULL;
37802}
37803
37804
37805SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37806 PyObject *resultobj = 0;
37807 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37808 int arg2 ;
37809 int arg3 ;
37810 int arg4 ;
37811 int arg5 ;
37812 double arg6 ;
37813 void *argp1 = 0 ;
37814 int res1 = 0 ;
37815 int val2 ;
37816 int ecode2 = 0 ;
37817 int val3 ;
37818 int ecode3 = 0 ;
37819 int val4 ;
37820 int ecode4 = 0 ;
37821 int val5 ;
37822 int ecode5 = 0 ;
37823 double val6 ;
37824 int ecode6 = 0 ;
37825 PyObject * obj0 = 0 ;
37826 PyObject * obj1 = 0 ;
37827 PyObject * obj2 = 0 ;
37828 PyObject * obj3 = 0 ;
37829 PyObject * obj4 = 0 ;
37830 PyObject * obj5 = 0 ;
37831 char * kwnames[] = {
37832 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37833 };
37834
37835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37837 if (!SWIG_IsOK(res1)) {
37838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37839 }
37840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37841 ecode2 = SWIG_AsVal_int(obj1, &val2);
37842 if (!SWIG_IsOK(ecode2)) {
37843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37844 }
37845 arg2 = static_cast< int >(val2);
37846 ecode3 = SWIG_AsVal_int(obj2, &val3);
37847 if (!SWIG_IsOK(ecode3)) {
37848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37849 }
37850 arg3 = static_cast< int >(val3);
37851 ecode4 = SWIG_AsVal_int(obj3, &val4);
37852 if (!SWIG_IsOK(ecode4)) {
37853 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37854 }
37855 arg4 = static_cast< int >(val4);
37856 ecode5 = SWIG_AsVal_int(obj4, &val5);
37857 if (!SWIG_IsOK(ecode5)) {
37858 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37859 }
37860 arg5 = static_cast< int >(val5);
37861 ecode6 = SWIG_AsVal_double(obj5, &val6);
37862 if (!SWIG_IsOK(ecode6)) {
37863 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37864 }
37865 arg6 = static_cast< double >(val6);
37866 {
37867 PyThreadState* __tstate = wxPyBeginAllowThreads();
37868 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37869 wxPyEndAllowThreads(__tstate);
37870 if (PyErr_Occurred()) SWIG_fail;
37871 }
37872 resultobj = SWIG_Py_Void();
37873 return resultobj;
37874fail:
37875 return NULL;
37876}
37877
37878
37879SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37880 PyObject *resultobj = 0;
37881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37882 wxRect *arg2 = 0 ;
37883 double arg3 ;
37884 void *argp1 = 0 ;
37885 int res1 = 0 ;
37886 wxRect temp2 ;
37887 double val3 ;
37888 int ecode3 = 0 ;
37889 PyObject * obj0 = 0 ;
37890 PyObject * obj1 = 0 ;
37891 PyObject * obj2 = 0 ;
37892 char * kwnames[] = {
37893 (char *) "self",(char *) "r",(char *) "radius", NULL
37894 };
37895
37896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37898 if (!SWIG_IsOK(res1)) {
37899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37900 }
37901 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37902 {
37903 arg2 = &temp2;
37904 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37905 }
37906 ecode3 = SWIG_AsVal_double(obj2, &val3);
37907 if (!SWIG_IsOK(ecode3)) {
37908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37909 }
37910 arg3 = static_cast< double >(val3);
37911 {
37912 PyThreadState* __tstate = wxPyBeginAllowThreads();
37913 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37914 wxPyEndAllowThreads(__tstate);
37915 if (PyErr_Occurred()) SWIG_fail;
37916 }
37917 resultobj = SWIG_Py_Void();
37918 return resultobj;
37919fail:
37920 return NULL;
37921}
37922
37923
37924SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37925 PyObject *resultobj = 0;
37926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37927 wxPoint *arg2 = 0 ;
37928 wxSize *arg3 = 0 ;
37929 double arg4 ;
37930 void *argp1 = 0 ;
37931 int res1 = 0 ;
37932 wxPoint temp2 ;
37933 wxSize temp3 ;
37934 double val4 ;
37935 int ecode4 = 0 ;
37936 PyObject * obj0 = 0 ;
37937 PyObject * obj1 = 0 ;
37938 PyObject * obj2 = 0 ;
37939 PyObject * obj3 = 0 ;
37940 char * kwnames[] = {
37941 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37942 };
37943
37944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37946 if (!SWIG_IsOK(res1)) {
37947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37948 }
37949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37950 {
37951 arg2 = &temp2;
37952 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37953 }
37954 {
37955 arg3 = &temp3;
37956 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37957 }
37958 ecode4 = SWIG_AsVal_double(obj3, &val4);
37959 if (!SWIG_IsOK(ecode4)) {
37960 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37961 }
37962 arg4 = static_cast< double >(val4);
37963 {
37964 PyThreadState* __tstate = wxPyBeginAllowThreads();
37965 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37966 wxPyEndAllowThreads(__tstate);
37967 if (PyErr_Occurred()) SWIG_fail;
37968 }
37969 resultobj = SWIG_Py_Void();
37970 return resultobj;
37971fail:
37972 return NULL;
37973}
37974
37975
37976SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37977 PyObject *resultobj = 0;
37978 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37979 int arg2 ;
37980 int arg3 ;
37981 int arg4 ;
37982 void *argp1 = 0 ;
37983 int res1 = 0 ;
37984 int val2 ;
37985 int ecode2 = 0 ;
37986 int val3 ;
37987 int ecode3 = 0 ;
37988 int val4 ;
37989 int ecode4 = 0 ;
37990 PyObject * obj0 = 0 ;
37991 PyObject * obj1 = 0 ;
37992 PyObject * obj2 = 0 ;
37993 PyObject * obj3 = 0 ;
37994 char * kwnames[] = {
37995 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37996 };
37997
37998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38000 if (!SWIG_IsOK(res1)) {
38001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38002 }
38003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38004 ecode2 = SWIG_AsVal_int(obj1, &val2);
38005 if (!SWIG_IsOK(ecode2)) {
38006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
38007 }
38008 arg2 = static_cast< int >(val2);
38009 ecode3 = SWIG_AsVal_int(obj2, &val3);
38010 if (!SWIG_IsOK(ecode3)) {
38011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
38012 }
38013 arg3 = static_cast< int >(val3);
38014 ecode4 = SWIG_AsVal_int(obj3, &val4);
38015 if (!SWIG_IsOK(ecode4)) {
38016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
38017 }
38018 arg4 = static_cast< int >(val4);
38019 {
38020 PyThreadState* __tstate = wxPyBeginAllowThreads();
38021 (arg1)->DrawCircle(arg2,arg3,arg4);
38022 wxPyEndAllowThreads(__tstate);
38023 if (PyErr_Occurred()) SWIG_fail;
38024 }
38025 resultobj = SWIG_Py_Void();
38026 return resultobj;
38027fail:
38028 return NULL;
38029}
38030
38031
38032SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38033 PyObject *resultobj = 0;
38034 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38035 wxPoint *arg2 = 0 ;
38036 int arg3 ;
38037 void *argp1 = 0 ;
38038 int res1 = 0 ;
38039 wxPoint temp2 ;
38040 int val3 ;
38041 int ecode3 = 0 ;
38042 PyObject * obj0 = 0 ;
38043 PyObject * obj1 = 0 ;
38044 PyObject * obj2 = 0 ;
38045 char * kwnames[] = {
38046 (char *) "self",(char *) "pt",(char *) "radius", NULL
38047 };
38048
38049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38051 if (!SWIG_IsOK(res1)) {
38052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38053 }
38054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38055 {
38056 arg2 = &temp2;
38057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38058 }
38059 ecode3 = SWIG_AsVal_int(obj2, &val3);
38060 if (!SWIG_IsOK(ecode3)) {
38061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
38062 }
38063 arg3 = static_cast< int >(val3);
38064 {
38065 PyThreadState* __tstate = wxPyBeginAllowThreads();
38066 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
38067 wxPyEndAllowThreads(__tstate);
38068 if (PyErr_Occurred()) SWIG_fail;
38069 }
38070 resultobj = SWIG_Py_Void();
38071 return resultobj;
38072fail:
38073 return NULL;
38074}
38075
38076
38077SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38078 PyObject *resultobj = 0;
38079 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38080 int arg2 ;
38081 int arg3 ;
38082 int arg4 ;
38083 int arg5 ;
38084 void *argp1 = 0 ;
38085 int res1 = 0 ;
38086 int val2 ;
38087 int ecode2 = 0 ;
38088 int val3 ;
38089 int ecode3 = 0 ;
38090 int val4 ;
38091 int ecode4 = 0 ;
38092 int val5 ;
38093 int ecode5 = 0 ;
38094 PyObject * obj0 = 0 ;
38095 PyObject * obj1 = 0 ;
38096 PyObject * obj2 = 0 ;
38097 PyObject * obj3 = 0 ;
38098 PyObject * obj4 = 0 ;
38099 char * kwnames[] = {
38100 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38101 };
38102
38103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38105 if (!SWIG_IsOK(res1)) {
38106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38107 }
38108 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38109 ecode2 = SWIG_AsVal_int(obj1, &val2);
38110 if (!SWIG_IsOK(ecode2)) {
38111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
38112 }
38113 arg2 = static_cast< int >(val2);
38114 ecode3 = SWIG_AsVal_int(obj2, &val3);
38115 if (!SWIG_IsOK(ecode3)) {
38116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
38117 }
38118 arg3 = static_cast< int >(val3);
38119 ecode4 = SWIG_AsVal_int(obj3, &val4);
38120 if (!SWIG_IsOK(ecode4)) {
38121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
38122 }
38123 arg4 = static_cast< int >(val4);
38124 ecode5 = SWIG_AsVal_int(obj4, &val5);
38125 if (!SWIG_IsOK(ecode5)) {
38126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
38127 }
38128 arg5 = static_cast< int >(val5);
38129 {
38130 PyThreadState* __tstate = wxPyBeginAllowThreads();
38131 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
38132 wxPyEndAllowThreads(__tstate);
38133 if (PyErr_Occurred()) SWIG_fail;
38134 }
38135 resultobj = SWIG_Py_Void();
38136 return resultobj;
38137fail:
38138 return NULL;
38139}
38140
38141
38142SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38143 PyObject *resultobj = 0;
38144 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38145 wxRect *arg2 = 0 ;
38146 void *argp1 = 0 ;
38147 int res1 = 0 ;
38148 wxRect temp2 ;
38149 PyObject * obj0 = 0 ;
38150 PyObject * obj1 = 0 ;
38151 char * kwnames[] = {
38152 (char *) "self",(char *) "rect", NULL
38153 };
38154
38155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
38156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38157 if (!SWIG_IsOK(res1)) {
38158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38159 }
38160 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38161 {
38162 arg2 = &temp2;
38163 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38164 }
38165 {
38166 PyThreadState* __tstate = wxPyBeginAllowThreads();
38167 (arg1)->DrawEllipse((wxRect const &)*arg2);
38168 wxPyEndAllowThreads(__tstate);
38169 if (PyErr_Occurred()) SWIG_fail;
38170 }
38171 resultobj = SWIG_Py_Void();
38172 return resultobj;
38173fail:
38174 return NULL;
38175}
38176
38177
38178SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38179 PyObject *resultobj = 0;
38180 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38181 wxPoint *arg2 = 0 ;
38182 wxSize *arg3 = 0 ;
38183 void *argp1 = 0 ;
38184 int res1 = 0 ;
38185 wxPoint temp2 ;
38186 wxSize temp3 ;
38187 PyObject * obj0 = 0 ;
38188 PyObject * obj1 = 0 ;
38189 PyObject * obj2 = 0 ;
38190 char * kwnames[] = {
38191 (char *) "self",(char *) "pt",(char *) "sz", NULL
38192 };
38193
38194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38196 if (!SWIG_IsOK(res1)) {
38197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38198 }
38199 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38200 {
38201 arg2 = &temp2;
38202 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38203 }
38204 {
38205 arg3 = &temp3;
38206 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38207 }
38208 {
38209 PyThreadState* __tstate = wxPyBeginAllowThreads();
38210 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
38211 wxPyEndAllowThreads(__tstate);
38212 if (PyErr_Occurred()) SWIG_fail;
38213 }
38214 resultobj = SWIG_Py_Void();
38215 return resultobj;
38216fail:
38217 return NULL;
38218}
38219
38220
38221SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38222 PyObject *resultobj = 0;
38223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38224 wxIcon *arg2 = 0 ;
38225 int arg3 ;
38226 int arg4 ;
38227 void *argp1 = 0 ;
38228 int res1 = 0 ;
38229 void *argp2 = 0 ;
38230 int res2 = 0 ;
38231 int val3 ;
38232 int ecode3 = 0 ;
38233 int val4 ;
38234 int ecode4 = 0 ;
38235 PyObject * obj0 = 0 ;
38236 PyObject * obj1 = 0 ;
38237 PyObject * obj2 = 0 ;
38238 PyObject * obj3 = 0 ;
38239 char * kwnames[] = {
38240 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38241 };
38242
38243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38245 if (!SWIG_IsOK(res1)) {
38246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38247 }
38248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38250 if (!SWIG_IsOK(res2)) {
38251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38252 }
38253 if (!argp2) {
38254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38255 }
38256 arg2 = reinterpret_cast< wxIcon * >(argp2);
38257 ecode3 = SWIG_AsVal_int(obj2, &val3);
38258 if (!SWIG_IsOK(ecode3)) {
38259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38260 }
38261 arg3 = static_cast< int >(val3);
38262 ecode4 = SWIG_AsVal_int(obj3, &val4);
38263 if (!SWIG_IsOK(ecode4)) {
38264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38265 }
38266 arg4 = static_cast< int >(val4);
38267 {
38268 PyThreadState* __tstate = wxPyBeginAllowThreads();
38269 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38270 wxPyEndAllowThreads(__tstate);
38271 if (PyErr_Occurred()) SWIG_fail;
38272 }
38273 resultobj = SWIG_Py_Void();
38274 return resultobj;
38275fail:
38276 return NULL;
38277}
38278
38279
38280SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38281 PyObject *resultobj = 0;
38282 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38283 wxIcon *arg2 = 0 ;
38284 wxPoint *arg3 = 0 ;
38285 void *argp1 = 0 ;
38286 int res1 = 0 ;
38287 void *argp2 = 0 ;
38288 int res2 = 0 ;
38289 wxPoint temp3 ;
38290 PyObject * obj0 = 0 ;
38291 PyObject * obj1 = 0 ;
38292 PyObject * obj2 = 0 ;
38293 char * kwnames[] = {
38294 (char *) "self",(char *) "icon",(char *) "pt", NULL
38295 };
38296
38297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38299 if (!SWIG_IsOK(res1)) {
38300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38301 }
38302 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38304 if (!SWIG_IsOK(res2)) {
38305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38306 }
38307 if (!argp2) {
38308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38309 }
38310 arg2 = reinterpret_cast< wxIcon * >(argp2);
38311 {
38312 arg3 = &temp3;
38313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38314 }
38315 {
38316 PyThreadState* __tstate = wxPyBeginAllowThreads();
38317 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38318 wxPyEndAllowThreads(__tstate);
38319 if (PyErr_Occurred()) SWIG_fail;
38320 }
38321 resultobj = SWIG_Py_Void();
38322 return resultobj;
38323fail:
38324 return NULL;
38325}
38326
38327
38328SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38329 PyObject *resultobj = 0;
38330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38331 wxBitmap *arg2 = 0 ;
38332 int arg3 ;
38333 int arg4 ;
38334 bool arg5 = (bool) false ;
38335 void *argp1 = 0 ;
38336 int res1 = 0 ;
38337 void *argp2 = 0 ;
38338 int res2 = 0 ;
38339 int val3 ;
38340 int ecode3 = 0 ;
38341 int val4 ;
38342 int ecode4 = 0 ;
38343 bool val5 ;
38344 int ecode5 = 0 ;
38345 PyObject * obj0 = 0 ;
38346 PyObject * obj1 = 0 ;
38347 PyObject * obj2 = 0 ;
38348 PyObject * obj3 = 0 ;
38349 PyObject * obj4 = 0 ;
38350 char * kwnames[] = {
38351 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38352 };
38353
38354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38356 if (!SWIG_IsOK(res1)) {
38357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38358 }
38359 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38361 if (!SWIG_IsOK(res2)) {
38362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38363 }
38364 if (!argp2) {
38365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38366 }
38367 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38368 ecode3 = SWIG_AsVal_int(obj2, &val3);
38369 if (!SWIG_IsOK(ecode3)) {
38370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38371 }
38372 arg3 = static_cast< int >(val3);
38373 ecode4 = SWIG_AsVal_int(obj3, &val4);
38374 if (!SWIG_IsOK(ecode4)) {
38375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38376 }
38377 arg4 = static_cast< int >(val4);
38378 if (obj4) {
38379 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38380 if (!SWIG_IsOK(ecode5)) {
38381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38382 }
38383 arg5 = static_cast< bool >(val5);
38384 }
38385 {
38386 PyThreadState* __tstate = wxPyBeginAllowThreads();
38387 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38388 wxPyEndAllowThreads(__tstate);
38389 if (PyErr_Occurred()) SWIG_fail;
38390 }
38391 resultobj = SWIG_Py_Void();
38392 return resultobj;
38393fail:
38394 return NULL;
38395}
38396
38397
38398SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38399 PyObject *resultobj = 0;
38400 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38401 wxBitmap *arg2 = 0 ;
38402 wxPoint *arg3 = 0 ;
38403 bool arg4 = (bool) false ;
38404 void *argp1 = 0 ;
38405 int res1 = 0 ;
38406 void *argp2 = 0 ;
38407 int res2 = 0 ;
38408 wxPoint temp3 ;
38409 bool val4 ;
38410 int ecode4 = 0 ;
38411 PyObject * obj0 = 0 ;
38412 PyObject * obj1 = 0 ;
38413 PyObject * obj2 = 0 ;
38414 PyObject * obj3 = 0 ;
38415 char * kwnames[] = {
38416 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38417 };
38418
38419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38421 if (!SWIG_IsOK(res1)) {
38422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38423 }
38424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38426 if (!SWIG_IsOK(res2)) {
38427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38428 }
38429 if (!argp2) {
38430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38431 }
38432 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38433 {
38434 arg3 = &temp3;
38435 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38436 }
38437 if (obj3) {
38438 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38439 if (!SWIG_IsOK(ecode4)) {
38440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38441 }
38442 arg4 = static_cast< bool >(val4);
38443 }
38444 {
38445 PyThreadState* __tstate = wxPyBeginAllowThreads();
38446 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38447 wxPyEndAllowThreads(__tstate);
38448 if (PyErr_Occurred()) SWIG_fail;
38449 }
38450 resultobj = SWIG_Py_Void();
38451 return resultobj;
38452fail:
38453 return NULL;
38454}
38455
38456
38457SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38458 PyObject *resultobj = 0;
38459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38460 wxString *arg2 = 0 ;
38461 int arg3 ;
38462 int arg4 ;
38463 void *argp1 = 0 ;
38464 int res1 = 0 ;
38465 bool temp2 = false ;
38466 int val3 ;
38467 int ecode3 = 0 ;
38468 int val4 ;
38469 int ecode4 = 0 ;
38470 PyObject * obj0 = 0 ;
38471 PyObject * obj1 = 0 ;
38472 PyObject * obj2 = 0 ;
38473 PyObject * obj3 = 0 ;
38474 char * kwnames[] = {
38475 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38476 };
38477
38478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38480 if (!SWIG_IsOK(res1)) {
38481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38482 }
38483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38484 {
38485 arg2 = wxString_in_helper(obj1);
38486 if (arg2 == NULL) SWIG_fail;
38487 temp2 = true;
38488 }
38489 ecode3 = SWIG_AsVal_int(obj2, &val3);
38490 if (!SWIG_IsOK(ecode3)) {
38491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38492 }
38493 arg3 = static_cast< int >(val3);
38494 ecode4 = SWIG_AsVal_int(obj3, &val4);
38495 if (!SWIG_IsOK(ecode4)) {
38496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38497 }
38498 arg4 = static_cast< int >(val4);
38499 {
38500 PyThreadState* __tstate = wxPyBeginAllowThreads();
38501 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38502 wxPyEndAllowThreads(__tstate);
38503 if (PyErr_Occurred()) SWIG_fail;
38504 }
38505 resultobj = SWIG_Py_Void();
38506 {
38507 if (temp2)
38508 delete arg2;
38509 }
38510 return resultobj;
38511fail:
38512 {
38513 if (temp2)
38514 delete arg2;
38515 }
38516 return NULL;
38517}
38518
38519
38520SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38521 PyObject *resultobj = 0;
38522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38523 wxString *arg2 = 0 ;
38524 wxPoint *arg3 = 0 ;
38525 void *argp1 = 0 ;
38526 int res1 = 0 ;
38527 bool temp2 = false ;
38528 wxPoint temp3 ;
38529 PyObject * obj0 = 0 ;
38530 PyObject * obj1 = 0 ;
38531 PyObject * obj2 = 0 ;
38532 char * kwnames[] = {
38533 (char *) "self",(char *) "text",(char *) "pt", NULL
38534 };
38535
38536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38538 if (!SWIG_IsOK(res1)) {
38539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38540 }
38541 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38542 {
38543 arg2 = wxString_in_helper(obj1);
38544 if (arg2 == NULL) SWIG_fail;
38545 temp2 = true;
38546 }
38547 {
38548 arg3 = &temp3;
38549 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38550 }
38551 {
38552 PyThreadState* __tstate = wxPyBeginAllowThreads();
38553 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38554 wxPyEndAllowThreads(__tstate);
38555 if (PyErr_Occurred()) SWIG_fail;
38556 }
38557 resultobj = SWIG_Py_Void();
38558 {
38559 if (temp2)
38560 delete arg2;
38561 }
38562 return resultobj;
38563fail:
38564 {
38565 if (temp2)
38566 delete arg2;
38567 }
38568 return NULL;
38569}
38570
38571
38572SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38573 PyObject *resultobj = 0;
38574 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38575 wxString *arg2 = 0 ;
38576 int arg3 ;
38577 int arg4 ;
38578 double arg5 ;
38579 void *argp1 = 0 ;
38580 int res1 = 0 ;
38581 bool temp2 = false ;
38582 int val3 ;
38583 int ecode3 = 0 ;
38584 int val4 ;
38585 int ecode4 = 0 ;
38586 double val5 ;
38587 int ecode5 = 0 ;
38588 PyObject * obj0 = 0 ;
38589 PyObject * obj1 = 0 ;
38590 PyObject * obj2 = 0 ;
38591 PyObject * obj3 = 0 ;
38592 PyObject * obj4 = 0 ;
38593 char * kwnames[] = {
38594 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38595 };
38596
38597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38599 if (!SWIG_IsOK(res1)) {
38600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38601 }
38602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38603 {
38604 arg2 = wxString_in_helper(obj1);
38605 if (arg2 == NULL) SWIG_fail;
38606 temp2 = true;
38607 }
38608 ecode3 = SWIG_AsVal_int(obj2, &val3);
38609 if (!SWIG_IsOK(ecode3)) {
38610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38611 }
38612 arg3 = static_cast< int >(val3);
38613 ecode4 = SWIG_AsVal_int(obj3, &val4);
38614 if (!SWIG_IsOK(ecode4)) {
38615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38616 }
38617 arg4 = static_cast< int >(val4);
38618 ecode5 = SWIG_AsVal_double(obj4, &val5);
38619 if (!SWIG_IsOK(ecode5)) {
38620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38621 }
38622 arg5 = static_cast< double >(val5);
38623 {
38624 PyThreadState* __tstate = wxPyBeginAllowThreads();
38625 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38626 wxPyEndAllowThreads(__tstate);
38627 if (PyErr_Occurred()) SWIG_fail;
38628 }
38629 resultobj = SWIG_Py_Void();
38630 {
38631 if (temp2)
38632 delete arg2;
38633 }
38634 return resultobj;
38635fail:
38636 {
38637 if (temp2)
38638 delete arg2;
38639 }
38640 return NULL;
38641}
38642
38643
38644SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38645 PyObject *resultobj = 0;
38646 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38647 wxString *arg2 = 0 ;
38648 wxPoint *arg3 = 0 ;
38649 double arg4 ;
38650 void *argp1 = 0 ;
38651 int res1 = 0 ;
38652 bool temp2 = false ;
38653 wxPoint temp3 ;
38654 double val4 ;
38655 int ecode4 = 0 ;
38656 PyObject * obj0 = 0 ;
38657 PyObject * obj1 = 0 ;
38658 PyObject * obj2 = 0 ;
38659 PyObject * obj3 = 0 ;
38660 char * kwnames[] = {
38661 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38662 };
38663
38664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38666 if (!SWIG_IsOK(res1)) {
38667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38668 }
38669 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38670 {
38671 arg2 = wxString_in_helper(obj1);
38672 if (arg2 == NULL) SWIG_fail;
38673 temp2 = true;
38674 }
38675 {
38676 arg3 = &temp3;
38677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38678 }
38679 ecode4 = SWIG_AsVal_double(obj3, &val4);
38680 if (!SWIG_IsOK(ecode4)) {
38681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38682 }
38683 arg4 = static_cast< double >(val4);
38684 {
38685 PyThreadState* __tstate = wxPyBeginAllowThreads();
38686 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38687 wxPyEndAllowThreads(__tstate);
38688 if (PyErr_Occurred()) SWIG_fail;
38689 }
38690 resultobj = SWIG_Py_Void();
38691 {
38692 if (temp2)
38693 delete arg2;
38694 }
38695 return resultobj;
38696fail:
38697 {
38698 if (temp2)
38699 delete arg2;
38700 }
38701 return NULL;
38702}
38703
38704
38705SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38706 PyObject *resultobj = 0;
38707 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38708 int arg2 ;
38709 wxPoint *arg3 = (wxPoint *) 0 ;
38710 int arg4 = (int) 0 ;
38711 int arg5 = (int) 0 ;
38712 void *argp1 = 0 ;
38713 int res1 = 0 ;
38714 int val4 ;
38715 int ecode4 = 0 ;
38716 int val5 ;
38717 int ecode5 = 0 ;
38718 PyObject * obj0 = 0 ;
38719 PyObject * obj1 = 0 ;
38720 PyObject * obj2 = 0 ;
38721 PyObject * obj3 = 0 ;
38722 char * kwnames[] = {
38723 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38724 };
38725
38726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38728 if (!SWIG_IsOK(res1)) {
38729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38730 }
38731 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38732 {
38733 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38734 if (arg3 == NULL) SWIG_fail;
38735 }
38736 if (obj2) {
38737 ecode4 = SWIG_AsVal_int(obj2, &val4);
38738 if (!SWIG_IsOK(ecode4)) {
38739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38740 }
38741 arg4 = static_cast< int >(val4);
38742 }
38743 if (obj3) {
38744 ecode5 = SWIG_AsVal_int(obj3, &val5);
38745 if (!SWIG_IsOK(ecode5)) {
38746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38747 }
38748 arg5 = static_cast< int >(val5);
38749 }
38750 {
38751 PyThreadState* __tstate = wxPyBeginAllowThreads();
38752 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38753 wxPyEndAllowThreads(__tstate);
38754 if (PyErr_Occurred()) SWIG_fail;
38755 }
38756 resultobj = SWIG_Py_Void();
38757 {
38758 if (arg3) delete [] arg3;
38759 }
38760 return resultobj;
38761fail:
38762 {
38763 if (arg3) delete [] arg3;
38764 }
38765 return NULL;
38766}
38767
38768
38769SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38770 PyObject *resultobj = 0;
38771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38772 int arg2 ;
38773 wxPoint *arg3 = (wxPoint *) 0 ;
38774 int arg4 = (int) 0 ;
38775 int arg5 = (int) 0 ;
38776 int arg6 = (int) wxODDEVEN_RULE ;
38777 void *argp1 = 0 ;
38778 int res1 = 0 ;
38779 int val4 ;
38780 int ecode4 = 0 ;
38781 int val5 ;
38782 int ecode5 = 0 ;
38783 int val6 ;
38784 int ecode6 = 0 ;
38785 PyObject * obj0 = 0 ;
38786 PyObject * obj1 = 0 ;
38787 PyObject * obj2 = 0 ;
38788 PyObject * obj3 = 0 ;
38789 PyObject * obj4 = 0 ;
38790 char * kwnames[] = {
38791 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38792 };
38793
38794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38796 if (!SWIG_IsOK(res1)) {
38797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38798 }
38799 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38800 {
38801 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38802 if (arg3 == NULL) SWIG_fail;
38803 }
38804 if (obj2) {
38805 ecode4 = SWIG_AsVal_int(obj2, &val4);
38806 if (!SWIG_IsOK(ecode4)) {
38807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38808 }
38809 arg4 = static_cast< int >(val4);
38810 }
38811 if (obj3) {
38812 ecode5 = SWIG_AsVal_int(obj3, &val5);
38813 if (!SWIG_IsOK(ecode5)) {
38814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38815 }
38816 arg5 = static_cast< int >(val5);
38817 }
38818 if (obj4) {
38819 ecode6 = SWIG_AsVal_int(obj4, &val6);
38820 if (!SWIG_IsOK(ecode6)) {
38821 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38822 }
38823 arg6 = static_cast< int >(val6);
38824 }
38825 {
38826 PyThreadState* __tstate = wxPyBeginAllowThreads();
38827 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38828 wxPyEndAllowThreads(__tstate);
38829 if (PyErr_Occurred()) SWIG_fail;
38830 }
38831 resultobj = SWIG_Py_Void();
38832 {
38833 if (arg3) delete [] arg3;
38834 }
38835 return resultobj;
38836fail:
38837 {
38838 if (arg3) delete [] arg3;
38839 }
38840 return NULL;
38841}
38842
38843
38844SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38845 PyObject *resultobj = 0;
38846 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38847 wxString *arg2 = 0 ;
38848 wxRect *arg3 = 0 ;
38849 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38850 int arg5 = (int) -1 ;
38851 void *argp1 = 0 ;
38852 int res1 = 0 ;
38853 bool temp2 = false ;
38854 wxRect temp3 ;
38855 int val4 ;
38856 int ecode4 = 0 ;
38857 int val5 ;
38858 int ecode5 = 0 ;
38859 PyObject * obj0 = 0 ;
38860 PyObject * obj1 = 0 ;
38861 PyObject * obj2 = 0 ;
38862 PyObject * obj3 = 0 ;
38863 PyObject * obj4 = 0 ;
38864 char * kwnames[] = {
38865 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38866 };
38867
38868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38870 if (!SWIG_IsOK(res1)) {
38871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38872 }
38873 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38874 {
38875 arg2 = wxString_in_helper(obj1);
38876 if (arg2 == NULL) SWIG_fail;
38877 temp2 = true;
38878 }
38879 {
38880 arg3 = &temp3;
38881 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38882 }
38883 if (obj3) {
38884 ecode4 = SWIG_AsVal_int(obj3, &val4);
38885 if (!SWIG_IsOK(ecode4)) {
38886 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38887 }
38888 arg4 = static_cast< int >(val4);
38889 }
38890 if (obj4) {
38891 ecode5 = SWIG_AsVal_int(obj4, &val5);
38892 if (!SWIG_IsOK(ecode5)) {
38893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38894 }
38895 arg5 = static_cast< int >(val5);
38896 }
38897 {
38898 PyThreadState* __tstate = wxPyBeginAllowThreads();
38899 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38900 wxPyEndAllowThreads(__tstate);
38901 if (PyErr_Occurred()) SWIG_fail;
38902 }
38903 resultobj = SWIG_Py_Void();
38904 {
38905 if (temp2)
38906 delete arg2;
38907 }
38908 return resultobj;
38909fail:
38910 {
38911 if (temp2)
38912 delete arg2;
38913 }
38914 return NULL;
38915}
38916
38917
38918SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38919 PyObject *resultobj = 0;
38920 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38921 wxString *arg2 = 0 ;
38922 wxBitmap *arg3 = 0 ;
38923 wxRect *arg4 = 0 ;
38924 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38925 int arg6 = (int) -1 ;
38926 void *argp1 = 0 ;
38927 int res1 = 0 ;
38928 bool temp2 = false ;
38929 void *argp3 = 0 ;
38930 int res3 = 0 ;
38931 wxRect temp4 ;
38932 int val5 ;
38933 int ecode5 = 0 ;
38934 int val6 ;
38935 int ecode6 = 0 ;
38936 PyObject * obj0 = 0 ;
38937 PyObject * obj1 = 0 ;
38938 PyObject * obj2 = 0 ;
38939 PyObject * obj3 = 0 ;
38940 PyObject * obj4 = 0 ;
38941 PyObject * obj5 = 0 ;
38942 char * kwnames[] = {
38943 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38944 };
38945
38946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38948 if (!SWIG_IsOK(res1)) {
38949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38950 }
38951 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38952 {
38953 arg2 = wxString_in_helper(obj1);
38954 if (arg2 == NULL) SWIG_fail;
38955 temp2 = true;
38956 }
38957 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38958 if (!SWIG_IsOK(res3)) {
38959 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38960 }
38961 if (!argp3) {
38962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38963 }
38964 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38965 {
38966 arg4 = &temp4;
38967 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38968 }
38969 if (obj4) {
38970 ecode5 = SWIG_AsVal_int(obj4, &val5);
38971 if (!SWIG_IsOK(ecode5)) {
38972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38973 }
38974 arg5 = static_cast< int >(val5);
38975 }
38976 if (obj5) {
38977 ecode6 = SWIG_AsVal_int(obj5, &val6);
38978 if (!SWIG_IsOK(ecode6)) {
38979 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38980 }
38981 arg6 = static_cast< int >(val6);
38982 }
38983 {
38984 PyThreadState* __tstate = wxPyBeginAllowThreads();
38985 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38986 wxPyEndAllowThreads(__tstate);
38987 if (PyErr_Occurred()) SWIG_fail;
38988 }
38989 resultobj = SWIG_Py_Void();
38990 {
38991 if (temp2)
38992 delete arg2;
38993 }
38994 return resultobj;
38995fail:
38996 {
38997 if (temp2)
38998 delete arg2;
38999 }
39000 return NULL;
39001}
39002
39003
39004SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39005 PyObject *resultobj = 0;
39006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39007 int arg2 ;
39008 wxPoint *arg3 = (wxPoint *) 0 ;
39009 void *argp1 = 0 ;
39010 int res1 = 0 ;
39011 PyObject * obj0 = 0 ;
39012 PyObject * obj1 = 0 ;
39013 char * kwnames[] = {
39014 (char *) "self",(char *) "points", NULL
39015 };
39016
39017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
39018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39019 if (!SWIG_IsOK(res1)) {
39020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39021 }
39022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39023 {
39024 arg3 = wxPoint_LIST_helper(obj1, &arg2);
39025 if (arg3 == NULL) SWIG_fail;
39026 }
39027 {
39028 PyThreadState* __tstate = wxPyBeginAllowThreads();
39029 (arg1)->DrawSpline(arg2,arg3);
39030 wxPyEndAllowThreads(__tstate);
39031 if (PyErr_Occurred()) SWIG_fail;
39032 }
39033 resultobj = SWIG_Py_Void();
39034 {
39035 if (arg3) delete [] arg3;
39036 }
39037 return resultobj;
39038fail:
39039 {
39040 if (arg3) delete [] arg3;
39041 }
39042 return NULL;
39043}
39044
39045
39046SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39047 PyObject *resultobj = 0;
39048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39049 void *argp1 = 0 ;
39050 int res1 = 0 ;
39051 PyObject *swig_obj[1] ;
39052
39053 if (!args) SWIG_fail;
39054 swig_obj[0] = args;
39055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39056 if (!SWIG_IsOK(res1)) {
39057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39058 }
39059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39060 {
39061 PyThreadState* __tstate = wxPyBeginAllowThreads();
39062 (arg1)->Clear();
39063 wxPyEndAllowThreads(__tstate);
39064 if (PyErr_Occurred()) SWIG_fail;
39065 }
39066 resultobj = SWIG_Py_Void();
39067 return resultobj;
39068fail:
39069 return NULL;
39070}
39071
39072
39073SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39074 PyObject *resultobj = 0;
39075 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39076 wxFont *arg2 = 0 ;
39077 void *argp1 = 0 ;
39078 int res1 = 0 ;
39079 void *argp2 = 0 ;
39080 int res2 = 0 ;
39081 PyObject * obj0 = 0 ;
39082 PyObject * obj1 = 0 ;
39083 char * kwnames[] = {
39084 (char *) "self",(char *) "font", NULL
39085 };
39086
39087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
39088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39089 if (!SWIG_IsOK(res1)) {
39090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39091 }
39092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
39094 if (!SWIG_IsOK(res2)) {
39095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39096 }
39097 if (!argp2) {
39098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39099 }
39100 arg2 = reinterpret_cast< wxFont * >(argp2);
39101 {
39102 PyThreadState* __tstate = wxPyBeginAllowThreads();
39103 (arg1)->SetFont((wxFont const &)*arg2);
39104 wxPyEndAllowThreads(__tstate);
39105 if (PyErr_Occurred()) SWIG_fail;
39106 }
39107 resultobj = SWIG_Py_Void();
39108 return resultobj;
39109fail:
39110 return NULL;
39111}
39112
39113
39114SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39115 PyObject *resultobj = 0;
39116 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39117 wxPen *arg2 = 0 ;
39118 void *argp1 = 0 ;
39119 int res1 = 0 ;
39120 void *argp2 = 0 ;
39121 int res2 = 0 ;
39122 PyObject * obj0 = 0 ;
39123 PyObject * obj1 = 0 ;
39124 char * kwnames[] = {
39125 (char *) "self",(char *) "pen", NULL
39126 };
39127
39128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
39129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39130 if (!SWIG_IsOK(res1)) {
39131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39132 }
39133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
39135 if (!SWIG_IsOK(res2)) {
39136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39137 }
39138 if (!argp2) {
39139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39140 }
39141 arg2 = reinterpret_cast< wxPen * >(argp2);
39142 {
39143 PyThreadState* __tstate = wxPyBeginAllowThreads();
39144 (arg1)->SetPen((wxPen const &)*arg2);
39145 wxPyEndAllowThreads(__tstate);
39146 if (PyErr_Occurred()) SWIG_fail;
39147 }
39148 resultobj = SWIG_Py_Void();
39149 return resultobj;
39150fail:
39151 return NULL;
39152}
39153
39154
39155SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39156 PyObject *resultobj = 0;
39157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39158 wxBrush *arg2 = 0 ;
39159 void *argp1 = 0 ;
39160 int res1 = 0 ;
39161 void *argp2 = 0 ;
39162 int res2 = 0 ;
39163 PyObject * obj0 = 0 ;
39164 PyObject * obj1 = 0 ;
39165 char * kwnames[] = {
39166 (char *) "self",(char *) "brush", NULL
39167 };
39168
39169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
39170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39171 if (!SWIG_IsOK(res1)) {
39172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39173 }
39174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39176 if (!SWIG_IsOK(res2)) {
39177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39178 }
39179 if (!argp2) {
39180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39181 }
39182 arg2 = reinterpret_cast< wxBrush * >(argp2);
39183 {
39184 PyThreadState* __tstate = wxPyBeginAllowThreads();
39185 (arg1)->SetBrush((wxBrush const &)*arg2);
39186 wxPyEndAllowThreads(__tstate);
39187 if (PyErr_Occurred()) SWIG_fail;
39188 }
39189 resultobj = SWIG_Py_Void();
39190 return resultobj;
39191fail:
39192 return NULL;
39193}
39194
39195
39196SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39197 PyObject *resultobj = 0;
39198 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39199 wxBrush *arg2 = 0 ;
39200 void *argp1 = 0 ;
39201 int res1 = 0 ;
39202 void *argp2 = 0 ;
39203 int res2 = 0 ;
39204 PyObject * obj0 = 0 ;
39205 PyObject * obj1 = 0 ;
39206 char * kwnames[] = {
39207 (char *) "self",(char *) "brush", NULL
39208 };
39209
39210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39212 if (!SWIG_IsOK(res1)) {
39213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39214 }
39215 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39217 if (!SWIG_IsOK(res2)) {
39218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39219 }
39220 if (!argp2) {
39221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39222 }
39223 arg2 = reinterpret_cast< wxBrush * >(argp2);
39224 {
39225 PyThreadState* __tstate = wxPyBeginAllowThreads();
39226 (arg1)->SetBackground((wxBrush const &)*arg2);
39227 wxPyEndAllowThreads(__tstate);
39228 if (PyErr_Occurred()) SWIG_fail;
39229 }
39230 resultobj = SWIG_Py_Void();
39231 return resultobj;
39232fail:
39233 return NULL;
39234}
39235
39236
39237SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39238 PyObject *resultobj = 0;
39239 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39240 int arg2 ;
39241 void *argp1 = 0 ;
39242 int res1 = 0 ;
39243 int val2 ;
39244 int ecode2 = 0 ;
39245 PyObject * obj0 = 0 ;
39246 PyObject * obj1 = 0 ;
39247 char * kwnames[] = {
39248 (char *) "self",(char *) "mode", NULL
39249 };
39250
39251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39253 if (!SWIG_IsOK(res1)) {
39254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39255 }
39256 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39257 ecode2 = SWIG_AsVal_int(obj1, &val2);
39258 if (!SWIG_IsOK(ecode2)) {
39259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39260 }
39261 arg2 = static_cast< int >(val2);
39262 {
39263 PyThreadState* __tstate = wxPyBeginAllowThreads();
39264 (arg1)->SetBackgroundMode(arg2);
39265 wxPyEndAllowThreads(__tstate);
39266 if (PyErr_Occurred()) SWIG_fail;
39267 }
39268 resultobj = SWIG_Py_Void();
39269 return resultobj;
39270fail:
39271 return NULL;
39272}
39273
39274
39275SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39276 PyObject *resultobj = 0;
39277 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39278 wxPalette *arg2 = 0 ;
39279 void *argp1 = 0 ;
39280 int res1 = 0 ;
39281 void *argp2 = 0 ;
39282 int res2 = 0 ;
39283 PyObject * obj0 = 0 ;
39284 PyObject * obj1 = 0 ;
39285 char * kwnames[] = {
39286 (char *) "self",(char *) "palette", NULL
39287 };
39288
39289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39291 if (!SWIG_IsOK(res1)) {
39292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39293 }
39294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39296 if (!SWIG_IsOK(res2)) {
39297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39298 }
39299 if (!argp2) {
39300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39301 }
39302 arg2 = reinterpret_cast< wxPalette * >(argp2);
39303 {
39304 PyThreadState* __tstate = wxPyBeginAllowThreads();
39305 (arg1)->SetPalette((wxPalette const &)*arg2);
39306 wxPyEndAllowThreads(__tstate);
39307 if (PyErr_Occurred()) SWIG_fail;
39308 }
39309 resultobj = SWIG_Py_Void();
39310 return resultobj;
39311fail:
39312 return NULL;
39313}
39314
39315
39316SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39317 PyObject *resultobj = 0;
39318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39319 wxColour *arg2 = 0 ;
39320 void *argp1 = 0 ;
39321 int res1 = 0 ;
39322 wxColour temp2 ;
39323 PyObject * obj0 = 0 ;
39324 PyObject * obj1 = 0 ;
39325 char * kwnames[] = {
39326 (char *) "self",(char *) "colour", NULL
39327 };
39328
39329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39331 if (!SWIG_IsOK(res1)) {
39332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39333 }
39334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39335 {
39336 arg2 = &temp2;
39337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39338 }
39339 {
39340 PyThreadState* __tstate = wxPyBeginAllowThreads();
39341 (arg1)->SetTextForeground((wxColour const &)*arg2);
39342 wxPyEndAllowThreads(__tstate);
39343 if (PyErr_Occurred()) SWIG_fail;
39344 }
39345 resultobj = SWIG_Py_Void();
39346 return resultobj;
39347fail:
39348 return NULL;
39349}
39350
39351
39352SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39353 PyObject *resultobj = 0;
39354 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39355 wxColour *arg2 = 0 ;
39356 void *argp1 = 0 ;
39357 int res1 = 0 ;
39358 wxColour temp2 ;
39359 PyObject * obj0 = 0 ;
39360 PyObject * obj1 = 0 ;
39361 char * kwnames[] = {
39362 (char *) "self",(char *) "colour", NULL
39363 };
39364
39365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39367 if (!SWIG_IsOK(res1)) {
39368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39369 }
39370 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39371 {
39372 arg2 = &temp2;
39373 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39374 }
39375 {
39376 PyThreadState* __tstate = wxPyBeginAllowThreads();
39377 (arg1)->SetTextBackground((wxColour const &)*arg2);
39378 wxPyEndAllowThreads(__tstate);
39379 if (PyErr_Occurred()) SWIG_fail;
39380 }
39381 resultobj = SWIG_Py_Void();
39382 return resultobj;
39383fail:
39384 return NULL;
39385}
39386
39387
39388SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39389 PyObject *resultobj = 0;
39390 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39391 int arg2 ;
39392 void *argp1 = 0 ;
39393 int res1 = 0 ;
39394 int val2 ;
39395 int ecode2 = 0 ;
39396 PyObject * obj0 = 0 ;
39397 PyObject * obj1 = 0 ;
39398 char * kwnames[] = {
39399 (char *) "self",(char *) "function", NULL
39400 };
39401
39402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39404 if (!SWIG_IsOK(res1)) {
39405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39406 }
39407 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39408 ecode2 = SWIG_AsVal_int(obj1, &val2);
39409 if (!SWIG_IsOK(ecode2)) {
39410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39411 }
39412 arg2 = static_cast< int >(val2);
39413 {
39414 PyThreadState* __tstate = wxPyBeginAllowThreads();
39415 (arg1)->SetLogicalFunction(arg2);
39416 wxPyEndAllowThreads(__tstate);
39417 if (PyErr_Occurred()) SWIG_fail;
39418 }
39419 resultobj = SWIG_Py_Void();
39420 return resultobj;
39421fail:
39422 return NULL;
39423}
39424
39425
39426SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39427 PyObject *obj;
39428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39429 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39430 return SWIG_Py_Void();
39431}
39432
39433SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39434 return SWIG_Python_InitShadowInstance(args);
39435}
39436
39437static PyMethodDef SwigMethods[] = {
39438 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39439 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39440 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39441 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39442 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39443 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39447 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39448 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39449 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 39450 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 39451 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
39452 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39457 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 39459 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39460 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39461 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39462 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39463 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39465 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39467 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 39468 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
39469 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39470 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39471 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39473 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39474 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39475 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39476 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39477 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 39478 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
39479 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39486 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39488 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39489 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39493 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39494 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39497 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39501 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39502 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39503 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 39504 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
39505 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39506 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39507 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39509 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39515 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39516 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
39517 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39518 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39519 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39520 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39521 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39522 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39523 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39529 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
39536 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39538 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39541 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39542 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39546 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39547 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39548 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39549 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39550 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39551 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39552 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39553 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39554 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39555 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39556 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39557 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39558 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39559 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39560 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39562 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39563 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39569 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39570 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39571 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39572 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39573 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39574 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39575 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39576 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39577 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39578 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39579 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39580 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39582 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39583 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39589 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39590 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
39591 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39593 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39594 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39595 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39597 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39598 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39602 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39603 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39604 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
39605 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39606 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39607 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39608 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39614 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39615 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39617 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39618 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39619 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39620 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39622 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39623 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39624 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39625 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39628 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39631 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39632 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39633 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39635 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39638 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39639 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
39640 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39641 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39642 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39643 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39646 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39648 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39649 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39654 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39655 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39661 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 39665 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39666 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39675 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39676 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39679 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39680 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39682 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39683 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39684 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39685 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39686 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39687 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39688 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39689 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39690 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39691 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39692 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39693 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39694 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39695 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39696 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39697 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39698 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39700 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39701 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39702 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39703 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39704 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39705 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39706 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39707 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39717 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39718 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39720 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39721 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39722 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39723 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39724 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39725 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39726 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39727 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39728 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39730 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39731 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39732 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39734 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39735 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39736 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39737 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39740 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39741 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39742 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39743 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39746 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39749 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39751 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39752 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39754 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39759 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
39760 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39763 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39764 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39765 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39766 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39767 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39768 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39769 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39770 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39771 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39772 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39773 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39774 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39775 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39787 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39788 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39789 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39791 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39792 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39794 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39795 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39796 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39797 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39800 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39801 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39802 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39803 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39804 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39805 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39806 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39807 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39808 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39809 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39810 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39811 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39812 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39814 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39817 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39818 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39819 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39820 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39821 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39822 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39823 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39824 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39826 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39827 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39832 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39834 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39835 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39836 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39838 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39842 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39843 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39844 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39845 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39846 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39847 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39848 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39853 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39854 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39855 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39861 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39862 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39863 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39864 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39865 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39868 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39870 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39871 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39872 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39873 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39874 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39875 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39876 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39882 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39883 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39884 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39885 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39886 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39887 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39888 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39889 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39890 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39891 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39892 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
cbfc9df6
RD
39894 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39896 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39897 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39903 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39906 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39907 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39909 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39910 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39911 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39912 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39913 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39915 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39916 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39917 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39918 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39919 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39920 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39921 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39922 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39927 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39928 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39929 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39930 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39931 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39934 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39939 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39940 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39941 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39942 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
39943 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39944 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39945 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39946 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39947 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39948 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39949 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39950 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39951 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39952 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39953 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39955 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39957 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39958 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39959 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39960 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39963 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39964 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39968 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39970 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39971 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39973 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39974 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39975 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39976 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39977 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39978 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39979 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39980 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39981 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39984 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39985 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39986 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39987 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39988 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39989 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39990 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39991 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39992 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39994 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39995 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39996 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39997 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39998 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39999 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
40000 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
40001 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
40002 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
40003 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40004 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
40005 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
40008 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
40009 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
40010 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
40011 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
40012 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40013 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
40014 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
40015 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
40016 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40017 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
40018 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
40019 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
40020 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
40021 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
40024 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
40025 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
40026 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
40027 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
40028 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40029 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
40030 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
40031 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
40032 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40033 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
40034 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
40035 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40036 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
40037 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 40038 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40039 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
40040 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
40041 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
40042 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
40043 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
40044 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
40045 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
40047 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
40048 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
40049 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 40051 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
40052 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
40053 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
40054 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
40055 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
40056 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
40057 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
40058 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
40059 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
40060 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
40061 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
40062 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
40063 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
40064 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
40065 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
40066 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
40068 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
40069 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
40070 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
40071 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
40072 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
40073 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
40074 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
40075 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
40076 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
40077 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
40078 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
40079 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
40080 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
40081 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
40082 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
40083 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
5c8c7dd3
RD
40084 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
40085 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 40086 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 40087 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
40088 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
40089 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
40091 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40092 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40093 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40094 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
40097 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 40098 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
40099 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
40100 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
40101 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
40102 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40103 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
40104 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 40105 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
40106 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40107 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
40110 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40112 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
40113 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
40114 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
40116 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb
RD
40117 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
40118 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 40119 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 40120 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 40121 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 40122 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 40123 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
40124 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40125 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40126 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40127 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40128 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40129 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40130 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
40131 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 40132 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 40133 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
40134 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
40135 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
40136 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
40137 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40138 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40139 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40140 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
40141 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40142 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40143 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
40144 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
40145 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
40146 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
40147 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
40149 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
40150 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40151 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 40152 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40153 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40154 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40155 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40156 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40157 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 40158 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 40159 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40160 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40161 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40162 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40163 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 40164 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 40165 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
40166 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
40167 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
40168 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 40169 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
40170 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
40171 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40172 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
40173 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40174 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40175 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40176 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40177 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40178 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40179 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 40180 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 40181 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
40182 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
40183 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40184 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
40185 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
40186 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
40187 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
40188 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
40189 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
40190 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
40191 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
40192 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
40193 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
40194 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
40195 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40196 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40197 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
40198 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
40199 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
40200 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40201 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40202 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40203 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40204 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
40205 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
40206 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40207 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
40208 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
40209 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
40210 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
40211 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
40212 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
40213 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40214 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40215 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40216 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40217 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40218 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40219 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40220 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40221 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40222 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40223 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40224 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40225 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 40226 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 40227 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 40228 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 40229 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee 40230 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 40231 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
40232 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40233 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40234 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40235 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40236 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40237 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40238 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40239 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
40240 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40241 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40242 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40243 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
40244 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40245 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40246 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40247 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40248 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40249 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40250 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40251 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40252 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40253 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40254 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40255 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40256 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40257 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40258 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40259 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40260 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40261 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40262 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40263 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40264 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40265 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40266 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
40267 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40268 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40269 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40270 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40271 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40272 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40273 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40274 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40275 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40276 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40277 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40278 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40279 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40280 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40281 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40282 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40283 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40284 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40285 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40286 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40287 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40288 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40289 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40290 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40291 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40292 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
40293 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40294 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40295 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40296 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40297 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40298 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40299 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
40300 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40301 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40302 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40303 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40304 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40305 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40306 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40307 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40308 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40309 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
40310 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40311 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40312 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40313 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40314 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40315 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40316 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40317 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40318 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40319 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
40320 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40321 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40322 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40323 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
40324 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40325 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40326 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40327 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40328 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40329 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40330 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40331 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40332 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40333 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40334 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40335 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40336 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40337 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40338 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40339 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40340 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40341 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40342 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40343 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40344 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40345 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40346 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40347 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40348 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40349 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40350 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40351 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40352 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40353 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40354 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40355 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40356 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40357 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40358 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40359 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40360 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40361 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40362 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40363 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40364 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40365 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40366 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40367 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40368 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40369 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40370 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40371 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40372 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40373 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40374 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40375 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40376 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40377 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40378 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40379 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
40380 { NULL, NULL, 0, NULL }
40381};
40382
40383
40384/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40385
72ef6efb
RD
40386static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40387 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40388}
8e99bda9
RD
40389static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40390 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40391}
40392static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40393 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40394}
26c4d26f
RD
40395static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40396 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40397}
40398static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40399 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40400}
72ef6efb
RD
40401static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40402 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40403}
40404static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40405 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40406}
26c4d26f
RD
40407static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40408 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40409}
fc46b7f3
RD
40410static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40411 return (void *)((wxLocale *) ((wxPyLocale *) x));
40412}
70d7cb34
RD
40413static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40414 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40415}
40416static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40417 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40418}
40419static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40420 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40421}
40422static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40423 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40424}
40425static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40426 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40427}
40428static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40429 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40430}
554f62e9
RD
40431static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40432 return (void *)((wxGDIObject *) ((wxIcon *) x));
40433}
40434static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40435 return (void *)((wxGDIObject *) ((wxPalette *) x));
40436}
40437static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40438 return (void *)((wxGDIObject *) ((wxPen *) x));
40439}
40440static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40441 return (void *)((wxGDIObject *) ((wxFont *) x));
40442}
40443static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40444 return (void *)((wxGDIObject *) ((wxCursor *) x));
40445}
40446static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40447 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40448}
40449static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40450 return (void *)((wxGDIObject *) ((wxRegion *) x));
40451}
40452static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40453 return (void *)((wxGDIObject *) ((wxBrush *) x));
40454}
72ef6efb
RD
40455static void *_p_wxGCDCTo_p_wxDC(void *x) {
40456 return (void *)((wxDC *) ((wxGCDC *) x));
40457}
554f62e9
RD
40458static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40459 return (void *)((wxDC *) ((wxScreenDC *) x));
40460}
24f6c4e8 40461static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 40462 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 40463}
554f62e9
RD
40464static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40465 return (void *)((wxDC *) ((wxMirrorDC *) x));
40466}
554f62e9
RD
40467static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40468 return (void *)((wxDC *) ((wxWindowDC *) x));
40469}
26c4d26f
RD
40470static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40471 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40472}
554f62e9
RD
40473static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40474 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40475}
554f62e9 40476static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 40477 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40478}
40479static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 40480 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 40481}
24f6c4e8 40482static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 40483 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
40484}
40485static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40486 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40487}
554f62e9
RD
40488static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40489 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40490}
40491static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40492 return (void *)((wxDC *) ((wxPrinterDC *) x));
40493}
50efceee
RD
40494static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40495 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40496}
40497static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40498 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40499}
40500static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40501 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40502}
554f62e9
RD
40503static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40504 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40505}
40506static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40507 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40508}
40509static void *_p_wxPenTo_p_wxObject(void *x) {
40510 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40511}
40512static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40513 return (void *)((wxObject *) ((wxRegionIterator *) x));
40514}
4976f996
RD
40515static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
40516 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
40517}
554f62e9
RD
40518static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40519 return (void *)((wxObject *) ((wxSizerItem *) x));
40520}
0f83f5da
RD
40521static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40522 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40523}
554f62e9
RD
40524static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40525 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40526}
40527static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40528 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40529}
40530static void *_p_wxIconTo_p_wxObject(void *x) {
40531 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40532}
40533static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40534 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40535}
40536static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40537 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40538}
40539static void *_p_wxSizerTo_p_wxObject(void *x) {
40540 return (void *)((wxObject *) ((wxSizer *) x));
40541}
40542static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40543 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40544}
40545static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40546 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40547}
554f62e9
RD
40548static void *_p_wxEventTo_p_wxObject(void *x) {
40549 return (void *)((wxObject *) ((wxEvent *) x));
40550}
554f62e9
RD
40551static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40552 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40553}
4976f996
RD
40554static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40555 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40556}
554f62e9
RD
40557static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40558 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40559}
27e45892
RD
40560static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40561 return (void *)((wxObject *) ((wxPseudoDC *) x));
40562}
2131d850
RD
40563static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40564 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40565}
554f62e9
RD
40566static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40567 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40568}
40569static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40570 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40571}
40572static void *_p_wxDCTo_p_wxObject(void *x) {
40573 return (void *)((wxObject *) ((wxDC *) x));
40574}
40575static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40576 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40577}
40578static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40579 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40580}
40581static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40582 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40583}
40584static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40585 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40586}
40587static void *_p_wxControlTo_p_wxObject(void *x) {
40588 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40589}
70d7cb34
RD
40590static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40591 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40592}
554f62e9
RD
40593static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40594 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40595}
40596static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 40597 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40598}
40599static void *_p_wxFSFileTo_p_wxObject(void *x) {
40600 return (void *)((wxObject *) ((wxFSFile *) x));
40601}
40602static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 40603 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
554f62e9
RD
40604}
40605static void *_p_wxRegionTo_p_wxObject(void *x) {
40606 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40607}
40608static void *_p_wxPySizerTo_p_wxObject(void *x) {
40609 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40610}
40611static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40612 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40613}
40614static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40615 return (void *)((wxObject *) ((wxGDIObject *) x));
40616}
70d7cb34
RD
40617static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40618 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40619}
40620static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40621 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40622}
554f62e9
RD
40623static void *_p_wxEffectsTo_p_wxObject(void *x) {
40624 return (void *)((wxObject *) ((wxEffects *) x));
40625}
40626static void *_p_wxPyEventTo_p_wxObject(void *x) {
40627 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40628}
40629static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40630 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40631}
40632static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40633 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40634}
70d7cb34
RD
40635static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40636 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40637}
554f62e9
RD
40638static void *_p_wxShowEventTo_p_wxObject(void *x) {
40639 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40640}
40641static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40642 return (void *)((wxObject *) ((wxMenuItem *) x));
40643}
40644static void *_p_wxDateEventTo_p_wxObject(void *x) {
40645 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40646}
40647static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40648 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40649}
40650static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40652}
40653static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40654 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40655}
40656static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40657 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40658}
40659static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40660 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40661}
40662static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40663 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40664}
40665static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40666 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40667}
40668static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40669 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40670}
40671static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40672 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40673}
40674static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40675 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40676}
40677static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40678 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40679}
40680static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40681 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40682}
40683static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40684 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40685}
40686static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40687 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40688}
40689static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40690 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40691}
40692static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40693 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40694}
40695static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40696 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40697}
40698static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40699 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40700}
40701static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40702 return (void *)((wxObject *) ((wxImageHandler *) x));
40703}
40704static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40705 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40706}
40707static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40708 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40709}
580080c5
RD
40710static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40711 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40712}
554f62e9
RD
40713static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40714 return (void *)((wxObject *) ((wxEvtHandler *) x));
40715}
0f83f5da
RD
40716static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40717 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40718}
24f6c4e8
RD
40719static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40720 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40721}
554f62e9 40722static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 40723 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 40724}
24f6c4e8
RD
40725static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40726 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
40727}
40728static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40729 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40730}
40731static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40732 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40733}
554f62e9
RD
40734static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40735 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40736}
580080c5
RD
40737static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40738 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40739}
554f62e9
RD
40740static void *_p_wxImageTo_p_wxObject(void *x) {
40741 return (void *)((wxObject *) ((wxImage *) x));
40742}
40743static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40744 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40745}
70d7cb34
RD
40746static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40747 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40748}
40749static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40750 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40751}
554f62e9
RD
40752static void *_p_wxPaletteTo_p_wxObject(void *x) {
40753 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40754}
40755static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 40756 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
40757}
40758static void *_p_wxImageListTo_p_wxObject(void *x) {
40759 return (void *)((wxObject *) ((wxImageList *) x));
40760}
72ef6efb
RD
40761static void *_p_wxGCDCTo_p_wxObject(void *x) {
40762 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40763}
554f62e9
RD
40764static void *_p_wxCursorTo_p_wxObject(void *x) {
40765 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40766}
40767static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40768 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40769}
40770static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40771 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40772}
70d7cb34
RD
40773static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40774 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40775}
554f62e9
RD
40776static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40778}
40779static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40780 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40781}
40782static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40783 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40784}
40785static void *_p_wxWindowTo_p_wxObject(void *x) {
40786 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40787}
40788static void *_p_wxMenuTo_p_wxObject(void *x) {
40789 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40790}
40791static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40793}
40794static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40795 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40796}
554f62e9
RD
40797static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40798 return (void *)((wxObject *) ((wxFileSystem *) x));
40799}
40800static void *_p_wxBitmapTo_p_wxObject(void *x) {
40801 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40802}
40803static void *_p_wxMaskTo_p_wxObject(void *x) {
40804 return (void *)((wxObject *) ((wxMask *) x));
40805}
70d7cb34
RD
40806static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40807 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40808}
554f62e9
RD
40809static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40810 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40811}
40812static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40813 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40814}
40815static void *_p_wxPyAppTo_p_wxObject(void *x) {
40816 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40817}
40818static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40819 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40820}
40821static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40822 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40823}
40824static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40825 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40826}
40827static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40828 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40829}
40830static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40831 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40832}
40833static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40834 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40835}
40836static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40837 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40838}
40839static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40841}
40842static void *_p_wxFontTo_p_wxObject(void *x) {
40843 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40844}
40845static void *_p_wxBrushTo_p_wxObject(void *x) {
40846 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40847}
40848static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40849 return (void *)((wxObject *) ((wxMetaFile *) x));
40850}
40851static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40853}
40854static void *_p_wxColourTo_p_wxObject(void *x) {
40855 return (void *)((wxObject *) ((wxColour *) x));
40856}
554f62e9
RD
40857static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40858 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40859}
40860static void *_p_wxValidatorTo_p_wxObject(void *x) {
40861 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40862}
40863static void *_p_wxControlTo_p_wxWindow(void *x) {
40864 return (void *)((wxWindow *) ((wxControl *) x));
40865}
40866static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40867 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40868}
40869static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40870 return (void *)((wxWindow *) ((wxMenuBar *) x));
40871}
fc46b7f3
RD
40872static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40873 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40874}
40875static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40876 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40877}
40878static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 40879static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40880static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40881static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40882static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40883static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40884static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40885static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40886static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40887static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40888static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40889static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
40890static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40891static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40892static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40893static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40894static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40895static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40896static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40897static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40898static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40899static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40900static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40901static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40902static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40903static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40904static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
554f62e9
RD
40905static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40906static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40907static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40908static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40909static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40910static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40911static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40912static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 40913static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 40914static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40915static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40916static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40917static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40918static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40919static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40920static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40921static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40922static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40923static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
40924static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40925static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40926static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40927static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40928static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40929static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40930static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40931static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40932static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40933static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40934static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40935static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40936static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40937static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40938static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40939static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
40940static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40941static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
4976f996 40942static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
554f62e9 40943static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40944static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40945static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40946static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40947static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40948static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40949static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40950static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40951static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40952static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40953static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
554f62e9 40954static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
4976f996 40955static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
554f62e9 40956static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40957static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40958static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40959static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40960static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40961static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40962static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40963static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40964static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40965static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40966static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40967static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40968static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40969static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40970static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40971static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
40972static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40973static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40974static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40975static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40976static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40977static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40978static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40979static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
4976f996 40980static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
554f62e9 40981static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40982static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40983static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40984static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40985static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40986static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40987static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40988static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40989static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40990static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40991static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40992static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40993static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40994static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40995static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 40996static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9 40997static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40998static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
554f62e9
RD
40999static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
41000static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
41001static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
41002static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
41003static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
41004static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
41005static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
41006static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
41007static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
41008static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
41009static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
41010static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
41011static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
41012static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
41013static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
41014static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
41015static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
41016static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
41017static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
41018static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 41019static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
41020static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
41021static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
41022static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
41023static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
41024static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 41025static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 41026static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 41027static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
554f62e9
RD
41028static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
41029static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
41030static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 41031static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 41032static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 41033static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9 41034static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 41035static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
554f62e9
RD
41036static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
41037static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
41038static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
41039static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
41040static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
41041static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
41042static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 41043static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
41044static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
41045static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
41046static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
41047
41048static swig_type_info *swig_type_initial[] = {
fc46b7f3 41049 &_swigt__p_buffer,
554f62e9
RD
41050 &_swigt__p_char,
41051 &_swigt__p_double,
41052 &_swigt__p_form_ops_t,
41053 &_swigt__p_int,
41054 &_swigt__p_unsigned_char,
41055 &_swigt__p_unsigned_int,
41056 &_swigt__p_unsigned_long,
0a27f394 41057 &_swigt__p_void,
554f62e9
RD
41058 &_swigt__p_wxANIHandler,
41059 &_swigt__p_wxAcceleratorTable,
41060 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
41061 &_swigt__p_wxAlphaPixelData,
41062 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 41063 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
41064 &_swigt__p_wxBMPHandler,
41065 &_swigt__p_wxBitmap,
41066 &_swigt__p_wxBoxSizer,
41067 &_swigt__p_wxBrush,
41068 &_swigt__p_wxBrushList,
41069 &_swigt__p_wxBufferedDC,
41070 &_swigt__p_wxBufferedPaintDC,
41071 &_swigt__p_wxCURHandler,
41072 &_swigt__p_wxChildFocusEvent,
41073 &_swigt__p_wxClientDC,
2131d850 41074 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
41075 &_swigt__p_wxCloseEvent,
41076 &_swigt__p_wxColour,
41077 &_swigt__p_wxColourDatabase,
41078 &_swigt__p_wxCommandEvent,
41079 &_swigt__p_wxContextMenuEvent,
41080 &_swigt__p_wxControl,
41081 &_swigt__p_wxControlWithItems,
41082 &_swigt__p_wxCursor,
41083 &_swigt__p_wxDC,
70d7cb34
RD
41084 &_swigt__p_wxDCBrushChanger,
41085 &_swigt__p_wxDCClipper,
b39fe951 41086 &_swigt__p_wxDCOverlay,
70d7cb34
RD
41087 &_swigt__p_wxDCPenChanger,
41088 &_swigt__p_wxDCTextColourChanger,
554f62e9
RD
41089 &_swigt__p_wxDash,
41090 &_swigt__p_wxDateEvent,
41091 &_swigt__p_wxDisplayChangedEvent,
41092 &_swigt__p_wxDropFilesEvent,
41093 &_swigt__p_wxDuplexMode,
41094 &_swigt__p_wxEffects,
41095 &_swigt__p_wxEncodingConverter,
41096 &_swigt__p_wxEraseEvent,
41097 &_swigt__p_wxEvent,
4976f996 41098 &_swigt__p_wxEventBlocker,
554f62e9
RD
41099 &_swigt__p_wxEvtHandler,
41100 &_swigt__p_wxFSFile,
41101 &_swigt__p_wxFileSystem,
41102 &_swigt__p_wxFlexGridSizer,
41103 &_swigt__p_wxFocusEvent,
41104 &_swigt__p_wxFont,
41105 &_swigt__p_wxFontList,
41106 &_swigt__p_wxFontMapper,
41107 &_swigt__p_wxGBSizerItem,
72ef6efb 41108 &_swigt__p_wxGCDC,
50efceee 41109 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
41110 &_swigt__p_wxGDIObject,
41111 &_swigt__p_wxGIFHandler,
70d7cb34 41112 &_swigt__p_wxGraphicsBrush,
72ef6efb 41113 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
41114 &_swigt__p_wxGraphicsFont,
41115 &_swigt__p_wxGraphicsMatrix,
41116 &_swigt__p_wxGraphicsObject,
72ef6efb 41117 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
41118 &_swigt__p_wxGraphicsPen,
41119 &_swigt__p_wxGraphicsRenderer,
554f62e9
RD
41120 &_swigt__p_wxGridBagSizer,
41121 &_swigt__p_wxGridSizer,
33d6fd3b 41122 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
41123 &_swigt__p_wxICOHandler,
41124 &_swigt__p_wxIcon,
41125 &_swigt__p_wxIconBundle,
41126 &_swigt__p_wxIconLocation,
41127 &_swigt__p_wxIconizeEvent,
41128 &_swigt__p_wxIdleEvent,
41129 &_swigt__p_wxImage,
41130 &_swigt__p_wxImageHandler,
41131 &_swigt__p_wxImageList,
41132 &_swigt__p_wxIndividualLayoutConstraint,
41133 &_swigt__p_wxInitDialogEvent,
41134 &_swigt__p_wxJPEGHandler,
41135 &_swigt__p_wxKeyEvent,
41136 &_swigt__p_wxLanguageInfo,
41137 &_swigt__p_wxLayoutConstraints,
41138 &_swigt__p_wxLocale,
41139 &_swigt__p_wxMask,
41140 &_swigt__p_wxMaximizeEvent,
41141 &_swigt__p_wxMemoryDC,
41142 &_swigt__p_wxMenu,
41143 &_swigt__p_wxMenuBar,
41144 &_swigt__p_wxMenuEvent,
41145 &_swigt__p_wxMenuItem,
41146 &_swigt__p_wxMetaFile,
41147 &_swigt__p_wxMetaFileDC,
41148 &_swigt__p_wxMirrorDC,
41149 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 41150 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
41151 &_swigt__p_wxMouseEvent,
41152 &_swigt__p_wxMoveEvent,
41153 &_swigt__p_wxNativeEncodingInfo,
41154 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
41155 &_swigt__p_wxNativePixelData,
41156 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
41157 &_swigt__p_wxNavigationKeyEvent,
41158 &_swigt__p_wxNcPaintEvent,
41159 &_swigt__p_wxNotifyEvent,
41160 &_swigt__p_wxObject,
b39fe951 41161 &_swigt__p_wxOverlay,
554f62e9
RD
41162 &_swigt__p_wxPCXHandler,
41163 &_swigt__p_wxPNGHandler,
41164 &_swigt__p_wxPNMHandler,
41165 &_swigt__p_wxPaintDC,
41166 &_swigt__p_wxPaintEvent,
41167 &_swigt__p_wxPalette,
41168 &_swigt__p_wxPaletteChangedEvent,
41169 &_swigt__p_wxPaperSize,
41170 &_swigt__p_wxPen,
41171 &_swigt__p_wxPenList,
fc46b7f3 41172 &_swigt__p_wxPixelDataBase,
554f62e9 41173 &_swigt__p_wxPoint,
72ef6efb 41174 &_swigt__p_wxPoint2D,
554f62e9
RD
41175 &_swigt__p_wxPostScriptDC,
41176 &_swigt__p_wxPrintData,
41177 &_swigt__p_wxPrinterDC,
27e45892 41178 &_swigt__p_wxPseudoDC,
554f62e9
RD
41179 &_swigt__p_wxPyApp,
41180 &_swigt__p_wxPyCommandEvent,
41181 &_swigt__p_wxPyEvent,
41182 &_swigt__p_wxPyFontEnumerator,
41183 &_swigt__p_wxPyImageHandler,
fc46b7f3 41184 &_swigt__p_wxPyLocale,
554f62e9
RD
41185 &_swigt__p_wxPySizer,
41186 &_swigt__p_wxPyValidator,
41187 &_swigt__p_wxQueryNewPaletteEvent,
41188 &_swigt__p_wxRect,
4fe9ce47 41189 &_swigt__p_wxRect2D,
554f62e9
RD
41190 &_swigt__p_wxRegion,
41191 &_swigt__p_wxRegionIterator,
41192 &_swigt__p_wxRendererNative,
41193 &_swigt__p_wxRendererVersion,
41194 &_swigt__p_wxScreenDC,
41195 &_swigt__p_wxScrollEvent,
41196 &_swigt__p_wxScrollWinEvent,
41197 &_swigt__p_wxSetCursorEvent,
41198 &_swigt__p_wxShowEvent,
41199 &_swigt__p_wxSize,
41200 &_swigt__p_wxSizeEvent,
41201 &_swigt__p_wxSizer,
41202 &_swigt__p_wxSizerItem,
41203 &_swigt__p_wxSplitterRenderParams,
41204 &_swigt__p_wxStaticBoxSizer,
41205 &_swigt__p_wxStdDialogButtonSizer,
50efceee 41206 &_swigt__p_wxStockGDI,
554f62e9
RD
41207 &_swigt__p_wxString,
41208 &_swigt__p_wxSysColourChangedEvent,
580080c5 41209 &_swigt__p_wxTGAHandler,
554f62e9
RD
41210 &_swigt__p_wxTIFFHandler,
41211 &_swigt__p_wxUpdateUIEvent,
41212 &_swigt__p_wxValidator,
41213 &_swigt__p_wxWindow,
41214 &_swigt__p_wxWindowCreateEvent,
41215 &_swigt__p_wxWindowDC,
41216 &_swigt__p_wxWindowDestroyEvent,
41217 &_swigt__p_wxXPMHandler,
41218};
41219
fc46b7f3 41220static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41221static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41222static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41223static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41224static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41225static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41226static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41227static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 41228static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
41229static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41230static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 41231static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41232static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41233static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41234static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41235static 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}};
41236static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41237static 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}};
554f62e9
RD
41238static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41239static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41240static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 41241static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41242static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41243static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 41244static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41245static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41246static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41247static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41248static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41249static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41250static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41251static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41252static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41253static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41254static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 41255static 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}};
554f62e9 41256static swig_cast_info _swigc__p_wxGDIObject[] = { {&_swigt__p_wxIcon, _p_wxIconTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxGDIObject, 0, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxGDIObject, 0, 0},{0, 0, 0, 0}};
70d7cb34 41257static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41258static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41259static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41260static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41261static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
72ef6efb 41262static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41263static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41264static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 41265static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41266static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41267static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41268static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41269static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41270static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41271static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41272static 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}};
554f62e9 41273static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 41274static 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}};
554f62e9
RD
41275static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41276static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41277static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41278static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41279static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
41280static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41281static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41282static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41283static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41284static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41285static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41286static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41287static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41288static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41289static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41290static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41291static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41292static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41293static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41294static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41295static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41296static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41297static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41298static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41299static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41300static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41301static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41302static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41303static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41304static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41305static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41306static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41307static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41308static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41309static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41310static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41311static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41312static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41313static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41314static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41315static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41316static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41317static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41318static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41319static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41320static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41321static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41322static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41323static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
41324static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41325static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41326static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41327static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41328static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41329static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 41330static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41331static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 41332static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41333static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41334static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41335static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41336static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41337static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41338static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41339static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41340static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41341static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41342static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41343static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41344static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41345static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41346static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41347static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41348static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41349static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41350static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41351static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41352static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41353static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41354static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41355static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41356static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41357static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41358static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41359static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
4976f996 41360static 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 41361static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41362static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41363static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41364static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41365static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41366static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41367static 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}};
554f62e9 41368static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 41369static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41370static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41371static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41372static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 41373static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41374static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41375static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41376static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 41377static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41378static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41379static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41380static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41381static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41382static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41383static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41384static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 41385static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41386static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41387static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
26c4d26f 41388static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41389
41390static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 41391 _swigc__p_buffer,
554f62e9
RD
41392 _swigc__p_char,
41393 _swigc__p_double,
41394 _swigc__p_form_ops_t,
41395 _swigc__p_int,
41396 _swigc__p_unsigned_char,
41397 _swigc__p_unsigned_int,
41398 _swigc__p_unsigned_long,
0a27f394 41399 _swigc__p_void,
554f62e9
RD
41400 _swigc__p_wxANIHandler,
41401 _swigc__p_wxAcceleratorTable,
41402 _swigc__p_wxActivateEvent,
fc46b7f3
RD
41403 _swigc__p_wxAlphaPixelData,
41404 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 41405 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
41406 _swigc__p_wxBMPHandler,
41407 _swigc__p_wxBitmap,
41408 _swigc__p_wxBoxSizer,
41409 _swigc__p_wxBrush,
41410 _swigc__p_wxBrushList,
41411 _swigc__p_wxBufferedDC,
41412 _swigc__p_wxBufferedPaintDC,
41413 _swigc__p_wxCURHandler,
41414 _swigc__p_wxChildFocusEvent,
41415 _swigc__p_wxClientDC,
2131d850 41416 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
41417 _swigc__p_wxCloseEvent,
41418 _swigc__p_wxColour,
41419 _swigc__p_wxColourDatabase,
41420 _swigc__p_wxCommandEvent,
41421 _swigc__p_wxContextMenuEvent,
41422 _swigc__p_wxControl,
41423 _swigc__p_wxControlWithItems,
41424 _swigc__p_wxCursor,
41425 _swigc__p_wxDC,
70d7cb34
RD
41426 _swigc__p_wxDCBrushChanger,
41427 _swigc__p_wxDCClipper,
b39fe951 41428 _swigc__p_wxDCOverlay,
70d7cb34
RD
41429 _swigc__p_wxDCPenChanger,
41430 _swigc__p_wxDCTextColourChanger,
554f62e9
RD
41431 _swigc__p_wxDash,
41432 _swigc__p_wxDateEvent,
41433 _swigc__p_wxDisplayChangedEvent,
41434 _swigc__p_wxDropFilesEvent,
41435 _swigc__p_wxDuplexMode,
41436 _swigc__p_wxEffects,
41437 _swigc__p_wxEncodingConverter,
41438 _swigc__p_wxEraseEvent,
41439 _swigc__p_wxEvent,
4976f996 41440 _swigc__p_wxEventBlocker,
554f62e9
RD
41441 _swigc__p_wxEvtHandler,
41442 _swigc__p_wxFSFile,
41443 _swigc__p_wxFileSystem,
41444 _swigc__p_wxFlexGridSizer,
41445 _swigc__p_wxFocusEvent,
41446 _swigc__p_wxFont,
41447 _swigc__p_wxFontList,
41448 _swigc__p_wxFontMapper,
41449 _swigc__p_wxGBSizerItem,
72ef6efb 41450 _swigc__p_wxGCDC,
50efceee 41451 _swigc__p_wxGDIObjListBase,
554f62e9
RD
41452 _swigc__p_wxGDIObject,
41453 _swigc__p_wxGIFHandler,
70d7cb34 41454 _swigc__p_wxGraphicsBrush,
72ef6efb 41455 _swigc__p_wxGraphicsContext,
70d7cb34
RD
41456 _swigc__p_wxGraphicsFont,
41457 _swigc__p_wxGraphicsMatrix,
41458 _swigc__p_wxGraphicsObject,
72ef6efb 41459 _swigc__p_wxGraphicsPath,
70d7cb34
RD
41460 _swigc__p_wxGraphicsPen,
41461 _swigc__p_wxGraphicsRenderer,
554f62e9
RD
41462 _swigc__p_wxGridBagSizer,
41463 _swigc__p_wxGridSizer,
33d6fd3b 41464 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
41465 _swigc__p_wxICOHandler,
41466 _swigc__p_wxIcon,
41467 _swigc__p_wxIconBundle,
41468 _swigc__p_wxIconLocation,
41469 _swigc__p_wxIconizeEvent,
41470 _swigc__p_wxIdleEvent,
41471 _swigc__p_wxImage,
41472 _swigc__p_wxImageHandler,
41473 _swigc__p_wxImageList,
41474 _swigc__p_wxIndividualLayoutConstraint,
41475 _swigc__p_wxInitDialogEvent,
41476 _swigc__p_wxJPEGHandler,
41477 _swigc__p_wxKeyEvent,
41478 _swigc__p_wxLanguageInfo,
41479 _swigc__p_wxLayoutConstraints,
41480 _swigc__p_wxLocale,
41481 _swigc__p_wxMask,
41482 _swigc__p_wxMaximizeEvent,
41483 _swigc__p_wxMemoryDC,
41484 _swigc__p_wxMenu,
41485 _swigc__p_wxMenuBar,
41486 _swigc__p_wxMenuEvent,
41487 _swigc__p_wxMenuItem,
41488 _swigc__p_wxMetaFile,
41489 _swigc__p_wxMetaFileDC,
41490 _swigc__p_wxMirrorDC,
41491 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 41492 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
41493 _swigc__p_wxMouseEvent,
41494 _swigc__p_wxMoveEvent,
41495 _swigc__p_wxNativeEncodingInfo,
41496 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
41497 _swigc__p_wxNativePixelData,
41498 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
41499 _swigc__p_wxNavigationKeyEvent,
41500 _swigc__p_wxNcPaintEvent,
41501 _swigc__p_wxNotifyEvent,
41502 _swigc__p_wxObject,
b39fe951 41503 _swigc__p_wxOverlay,
554f62e9
RD
41504 _swigc__p_wxPCXHandler,
41505 _swigc__p_wxPNGHandler,
41506 _swigc__p_wxPNMHandler,
41507 _swigc__p_wxPaintDC,
41508 _swigc__p_wxPaintEvent,
41509 _swigc__p_wxPalette,
41510 _swigc__p_wxPaletteChangedEvent,
41511 _swigc__p_wxPaperSize,
41512 _swigc__p_wxPen,
41513 _swigc__p_wxPenList,
fc46b7f3 41514 _swigc__p_wxPixelDataBase,
554f62e9 41515 _swigc__p_wxPoint,
72ef6efb 41516 _swigc__p_wxPoint2D,
554f62e9
RD
41517 _swigc__p_wxPostScriptDC,
41518 _swigc__p_wxPrintData,
41519 _swigc__p_wxPrinterDC,
27e45892 41520 _swigc__p_wxPseudoDC,
554f62e9
RD
41521 _swigc__p_wxPyApp,
41522 _swigc__p_wxPyCommandEvent,
41523 _swigc__p_wxPyEvent,
41524 _swigc__p_wxPyFontEnumerator,
41525 _swigc__p_wxPyImageHandler,
fc46b7f3 41526 _swigc__p_wxPyLocale,
554f62e9
RD
41527 _swigc__p_wxPySizer,
41528 _swigc__p_wxPyValidator,
41529 _swigc__p_wxQueryNewPaletteEvent,
41530 _swigc__p_wxRect,
4fe9ce47 41531 _swigc__p_wxRect2D,
554f62e9
RD
41532 _swigc__p_wxRegion,
41533 _swigc__p_wxRegionIterator,
41534 _swigc__p_wxRendererNative,
41535 _swigc__p_wxRendererVersion,
41536 _swigc__p_wxScreenDC,
41537 _swigc__p_wxScrollEvent,
41538 _swigc__p_wxScrollWinEvent,
41539 _swigc__p_wxSetCursorEvent,
41540 _swigc__p_wxShowEvent,
41541 _swigc__p_wxSize,
41542 _swigc__p_wxSizeEvent,
41543 _swigc__p_wxSizer,
41544 _swigc__p_wxSizerItem,
41545 _swigc__p_wxSplitterRenderParams,
41546 _swigc__p_wxStaticBoxSizer,
41547 _swigc__p_wxStdDialogButtonSizer,
50efceee 41548 _swigc__p_wxStockGDI,
554f62e9
RD
41549 _swigc__p_wxString,
41550 _swigc__p_wxSysColourChangedEvent,
580080c5 41551 _swigc__p_wxTGAHandler,
554f62e9
RD
41552 _swigc__p_wxTIFFHandler,
41553 _swigc__p_wxUpdateUIEvent,
41554 _swigc__p_wxValidator,
41555 _swigc__p_wxWindow,
41556 _swigc__p_wxWindowCreateEvent,
41557 _swigc__p_wxWindowDC,
41558 _swigc__p_wxWindowDestroyEvent,
41559 _swigc__p_wxXPMHandler,
41560};
41561
41562
41563/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41564
41565static swig_const_info swig_const_table[] = {
41566{0, 0, 0, 0.0, 0, 0}};
41567
41568#ifdef __cplusplus
41569}
41570#endif
41571/* -----------------------------------------------------------------------------
41572 * Type initialization:
41573 * This problem is tough by the requirement that no dynamic
41574 * memory is used. Also, since swig_type_info structures store pointers to
41575 * swig_cast_info structures and swig_cast_info structures store pointers back
41576 * to swig_type_info structures, we need some lookup code at initialization.
41577 * The idea is that swig generates all the structures that are needed.
41578 * The runtime then collects these partially filled structures.
41579 * The SWIG_InitializeModule function takes these initial arrays out of
41580 * swig_module, and does all the lookup, filling in the swig_module.types
41581 * array with the correct data and linking the correct swig_cast_info
41582 * structures together.
41583 *
41584 * The generated swig_type_info structures are assigned staticly to an initial
41585 * array. We just loop though that array, and handle each type individually.
41586 * First we lookup if this type has been already loaded, and if so, use the
41587 * loaded structure instead of the generated one. Then we have to fill in the
41588 * cast linked list. The cast data is initially stored in something like a
41589 * two-dimensional array. Each row corresponds to a type (there are the same
41590 * number of rows as there are in the swig_type_initial array). Each entry in
41591 * a column is one of the swig_cast_info structures for that type.
41592 * The cast_initial array is actually an array of arrays, because each row has
41593 * a variable number of columns. So to actually build the cast linked list,
41594 * we find the array of casts associated with the type, and loop through it
41595 * adding the casts to the list. The one last trick we need to do is making
41596 * sure the type pointer in the swig_cast_info struct is correct.
41597 *
41598 * First off, we lookup the cast->type name to see if it is already loaded.
41599 * There are three cases to handle:
41600 * 1) If the cast->type has already been loaded AND the type we are adding
41601 * casting info to has not been loaded (it is in this module), THEN we
41602 * replace the cast->type pointer with the type pointer that has already
41603 * been loaded.
41604 * 2) If BOTH types (the one we are adding casting info to, and the
41605 * cast->type) are loaded, THEN the cast info has already been loaded by
41606 * the previous module so we just ignore it.
41607 * 3) Finally, if cast->type has not already been loaded, then we add that
41608 * swig_cast_info to the linked list (because the cast->type) pointer will
41609 * be correct.
41610 * ----------------------------------------------------------------------------- */
41611
41612#ifdef __cplusplus
41613extern "C" {
41614#if 0
41615} /* c-mode */
41616#endif
41617#endif
41618
41619#if 0
41620#define SWIGRUNTIME_DEBUG
41621#endif
41622
41623SWIGRUNTIME void
41624SWIG_InitializeModule(void *clientdata) {
41625 size_t i;
41626 swig_module_info *module_head;
41627 static int init_run = 0;
41628
41629 clientdata = clientdata;
41630
41631 if (init_run) return;
41632 init_run = 1;
41633
41634 /* Initialize the swig_module */
41635 swig_module.type_initial = swig_type_initial;
41636 swig_module.cast_initial = swig_cast_initial;
41637
41638 /* Try and load any already created modules */
41639 module_head = SWIG_GetModule(clientdata);
41640 if (module_head) {
41641 swig_module.next = module_head->next;
41642 module_head->next = &swig_module;
41643 } else {
41644 /* This is the first module loaded */
41645 swig_module.next = &swig_module;
41646 SWIG_SetModule(clientdata, &swig_module);
41647 }
41648
41649 /* Now work on filling in swig_module.types */
41650#ifdef SWIGRUNTIME_DEBUG
41651 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41652#endif
41653 for (i = 0; i < swig_module.size; ++i) {
41654 swig_type_info *type = 0;
41655 swig_type_info *ret;
41656 swig_cast_info *cast;
41657
41658#ifdef SWIGRUNTIME_DEBUG
41659 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41660#endif
41661
41662 /* if there is another module already loaded */
41663 if (swig_module.next != &swig_module) {
41664 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 41665 }
554f62e9
RD
41666 if (type) {
41667 /* Overwrite clientdata field */
41668#ifdef SWIGRUNTIME_DEBUG
41669 printf("SWIG_InitializeModule: found type %s\n", type->name);
41670#endif
41671 if (swig_module.type_initial[i]->clientdata) {
41672 type->clientdata = swig_module.type_initial[i]->clientdata;
41673#ifdef SWIGRUNTIME_DEBUG
41674 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41675#endif
41676 }
41677 } else {
41678 type = swig_module.type_initial[i];
be9b1dca 41679 }
554f62e9
RD
41680
41681 /* Insert casting types */
41682 cast = swig_module.cast_initial[i];
41683 while (cast->type) {
41684 /* Don't need to add information already in the list */
41685 ret = 0;
41686#ifdef SWIGRUNTIME_DEBUG
41687 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41688#endif
41689 if (swig_module.next != &swig_module) {
41690 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41691#ifdef SWIGRUNTIME_DEBUG
41692 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41693#endif
41694 }
41695 if (ret) {
41696 if (type == swig_module.type_initial[i]) {
41697#ifdef SWIGRUNTIME_DEBUG
41698 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41699#endif
41700 cast->type = ret;
41701 ret = 0;
41702 } else {
41703 /* Check for casting already in the list */
41704 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41705#ifdef SWIGRUNTIME_DEBUG
41706 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41707#endif
41708 if (!ocast) ret = 0;
41709 }
41710 }
41711
41712 if (!ret) {
41713#ifdef SWIGRUNTIME_DEBUG
41714 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41715#endif
41716 if (type->cast) {
41717 type->cast->prev = cast;
41718 cast->next = type->cast;
41719 }
41720 type->cast = cast;
41721 }
41722 cast++;
be9b1dca 41723 }
554f62e9
RD
41724 /* Set entry in modules->types array equal to the type */
41725 swig_module.types[i] = type;
41726 }
41727 swig_module.types[i] = 0;
41728
41729#ifdef SWIGRUNTIME_DEBUG
41730 printf("**** SWIG_InitializeModule: Cast List ******\n");
41731 for (i = 0; i < swig_module.size; ++i) {
41732 int j = 0;
41733 swig_cast_info *cast = swig_module.cast_initial[i];
41734 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41735 while (cast->type) {
41736 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41737 cast++;
41738 ++j;
41739 }
41740 printf("---- Total casts: %d\n",j);
41741 }
41742 printf("**** SWIG_InitializeModule: Cast List ******\n");
41743#endif
41744}
41745
41746/* This function will propagate the clientdata field of type to
41747* any new swig_type_info structures that have been added into the list
41748* of equivalent types. It is like calling
41749* SWIG_TypeClientData(type, clientdata) a second time.
41750*/
41751SWIGRUNTIME void
41752SWIG_PropagateClientData(void) {
41753 size_t i;
41754 swig_cast_info *equiv;
41755 static int init_run = 0;
41756
41757 if (init_run) return;
41758 init_run = 1;
41759
41760 for (i = 0; i < swig_module.size; i++) {
41761 if (swig_module.types[i]->clientdata) {
41762 equiv = swig_module.types[i]->cast;
41763 while (equiv) {
41764 if (!equiv->converter) {
41765 if (equiv->type && !equiv->type->clientdata)
41766 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41767 }
41768 equiv = equiv->next;
41769 }
be9b1dca 41770 }
554f62e9
RD
41771 }
41772}
41773
41774#ifdef __cplusplus
41775#if 0
41776{
41777 /* c-mode */
41778#endif
41779}
41780#endif
41781
41782
41783
41784#ifdef __cplusplus
41785extern "C" {
41786#endif
41787
41788 /* Python-specific SWIG API */
41789#define SWIG_newvarlink() SWIG_Python_newvarlink()
41790#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41791#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41792
41793 /* -----------------------------------------------------------------------------
41794 * global variable support code.
41795 * ----------------------------------------------------------------------------- */
41796
41797 typedef struct swig_globalvar {
41798 char *name; /* Name of global variable */
41799 PyObject *(*get_attr)(void); /* Return the current value */
41800 int (*set_attr)(PyObject *); /* Set the value */
41801 struct swig_globalvar *next;
41802 } swig_globalvar;
41803
41804 typedef struct swig_varlinkobject {
41805 PyObject_HEAD
41806 swig_globalvar *vars;
41807 } swig_varlinkobject;
41808
41809 SWIGINTERN PyObject *
41810 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41811 return PyString_FromString("<Swig global variables>");
41812 }
41813
41814 SWIGINTERN PyObject *
41815 swig_varlink_str(swig_varlinkobject *v) {
41816 PyObject *str = PyString_FromString("(");
41817 swig_globalvar *var;
41818 for (var = v->vars; var; var=var->next) {
41819 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41820 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41821 }
41822 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41823 return str;
41824 }
41825
41826 SWIGINTERN int
41827 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41828 PyObject *str = swig_varlink_str(v);
41829 fprintf(fp,"Swig global variables ");
41830 fprintf(fp,"%s\n", PyString_AsString(str));
41831 Py_DECREF(str);
41832 return 0;
41833 }
41834
41835 SWIGINTERN void
41836 swig_varlink_dealloc(swig_varlinkobject *v) {
41837 swig_globalvar *var = v->vars;
41838 while (var) {
41839 swig_globalvar *n = var->next;
41840 free(var->name);
41841 free(var);
41842 var = n;
be9b1dca 41843 }
554f62e9
RD
41844 }
41845
41846 SWIGINTERN PyObject *
41847 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41848 PyObject *res = NULL;
41849 swig_globalvar *var = v->vars;
41850 while (var) {
41851 if (strcmp(var->name,n) == 0) {
41852 res = (*var->get_attr)();
41853 break;
41854 }
41855 var = var->next;
be9b1dca 41856 }
554f62e9
RD
41857 if (res == NULL && !PyErr_Occurred()) {
41858 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41859 }
554f62e9
RD
41860 return res;
41861 }
41862
41863 SWIGINTERN int
41864 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41865 int res = 1;
41866 swig_globalvar *var = v->vars;
41867 while (var) {
41868 if (strcmp(var->name,n) == 0) {
41869 res = (*var->set_attr)(p);
41870 break;
41871 }
41872 var = var->next;
be9b1dca 41873 }
554f62e9
RD
41874 if (res == 1 && !PyErr_Occurred()) {
41875 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41876 }
554f62e9
RD
41877 return res;
41878 }
41879
41880 SWIGINTERN PyTypeObject*
41881 swig_varlink_type(void) {
41882 static char varlink__doc__[] = "Swig var link object";
41883 static PyTypeObject varlink_type;
41884 static int type_init = 0;
41885 if (!type_init) {
41886 const PyTypeObject tmp
41887 = {
41888 PyObject_HEAD_INIT(NULL)
41889 0, /* Number of items in variable part (ob_size) */
41890 (char *)"swigvarlink", /* Type name (tp_name) */
41891 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41892 0, /* Itemsize (tp_itemsize) */
41893 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41894 (printfunc) swig_varlink_print, /* Print (tp_print) */
41895 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41896 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41897 0, /* tp_compare */
41898 (reprfunc) swig_varlink_repr, /* tp_repr */
41899 0, /* tp_as_number */
41900 0, /* tp_as_sequence */
41901 0, /* tp_as_mapping */
41902 0, /* tp_hash */
41903 0, /* tp_call */
41904 (reprfunc)swig_varlink_str, /* tp_str */
41905 0, /* tp_getattro */
41906 0, /* tp_setattro */
41907 0, /* tp_as_buffer */
41908 0, /* tp_flags */
41909 varlink__doc__, /* tp_doc */
41910 0, /* tp_traverse */
41911 0, /* tp_clear */
41912 0, /* tp_richcompare */
41913 0, /* tp_weaklistoffset */
41914#if PY_VERSION_HEX >= 0x02020000
41915 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41916#endif
41917#if PY_VERSION_HEX >= 0x02030000
41918 0, /* tp_del */
41919#endif
41920#ifdef COUNT_ALLOCS
41921 0,0,0,0 /* tp_alloc -> tp_next */
41922#endif
41923 };
41924 varlink_type = tmp;
41925 varlink_type.ob_type = &PyType_Type;
41926 type_init = 1;
be9b1dca 41927 }
554f62e9
RD
41928 return &varlink_type;
41929 }
41930
41931 /* Create a variable linking object for use later */
41932 SWIGINTERN PyObject *
41933 SWIG_Python_newvarlink(void) {
41934 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41935 if (result) {
41936 result->vars = 0;
41937 }
41938 return ((PyObject*) result);
41939 }
41940
41941 SWIGINTERN void
41942 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41943 swig_varlinkobject *v = (swig_varlinkobject *) p;
41944 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41945 if (gv) {
41946 size_t size = strlen(name)+1;
41947 gv->name = (char *)malloc(size);
41948 if (gv->name) {
41949 strncpy(gv->name,name,size);
41950 gv->get_attr = get_attr;
41951 gv->set_attr = set_attr;
41952 gv->next = v->vars;
41953 }
be9b1dca 41954 }
554f62e9
RD
41955 v->vars = gv;
41956 }
41957
41958 SWIGINTERN PyObject *
41959 SWIG_globals() {
41960 static PyObject *_SWIG_globals = 0;
41961 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41962 return _SWIG_globals;
41963 }
41964
41965 /* -----------------------------------------------------------------------------
41966 * constants/methods manipulation
41967 * ----------------------------------------------------------------------------- */
41968
41969 /* Install Constants */
41970 SWIGINTERN void
41971 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41972 PyObject *obj = 0;
41973 size_t i;
41974 for (i = 0; constants[i].type; ++i) {
41975 switch(constants[i].type) {
41976 case SWIG_PY_POINTER:
41977 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41978 break;
41979 case SWIG_PY_BINARY:
41980 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41981 break;
41982 default:
41983 obj = 0;
41984 break;
41985 }
41986 if (obj) {
41987 PyDict_SetItemString(d, constants[i].name, obj);
41988 Py_DECREF(obj);
41989 }
be9b1dca 41990 }
554f62e9
RD
41991 }
41992
41993 /* -----------------------------------------------------------------------------*/
41994 /* Fix SwigMethods to carry the callback ptrs when needed */
41995 /* -----------------------------------------------------------------------------*/
41996
41997 SWIGINTERN void
41998 SWIG_Python_FixMethods(PyMethodDef *methods,
41999 swig_const_info *const_table,
42000 swig_type_info **types,
42001 swig_type_info **types_initial) {
42002 size_t i;
42003 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 42004 const char *c = methods[i].ml_doc;
554f62e9
RD
42005 if (c && (c = strstr(c, "swig_ptr: "))) {
42006 int j;
42007 swig_const_info *ci = 0;
453fb36b 42008 const char *name = c + 10;
554f62e9
RD
42009 for (j = 0; const_table[j].type; ++j) {
42010 if (strncmp(const_table[j].name, name,
42011 strlen(const_table[j].name)) == 0) {
42012 ci = &(const_table[j]);
42013 break;
42014 }
42015 }
42016 if (ci) {
42017 size_t shift = (ci->ptype) - types;
42018 swig_type_info *ty = types_initial[shift];
42019 size_t ldoc = (c - methods[i].ml_doc);
42020 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
42021 char *ndoc = (char*)malloc(ldoc + lptr + 10);
42022 if (ndoc) {
42023 char *buff = ndoc;
42024 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
42025 if (ptr) {
42026 strncpy(buff, methods[i].ml_doc, ldoc);
42027 buff += ldoc;
42028 strncpy(buff, "swig_ptr: ", 10);
42029 buff += 10;
42030 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
42031 methods[i].ml_doc = ndoc;
42032 }
42033 }
42034 }
42035 }
be9b1dca 42036 }
554f62e9
RD
42037 }
42038
42039#ifdef __cplusplus
42040}
42041#endif
42042
42043/* -----------------------------------------------------------------------------*
42044 * Partial Init method
42045 * -----------------------------------------------------------------------------*/
42046
42047#ifdef __cplusplus
42048extern "C"
42049#endif
42050SWIGEXPORT void SWIG_init(void) {
42051 PyObject *m, *d;
42052
42053 /* Fix SwigMethods to carry the callback ptrs when needed */
42054 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
42055
42056 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42057 d = PyModule_GetDict(m);
42058
42059 SWIG_InitializeModule(0);
42060 SWIG_InstallConstants(d,swig_const_table);
42061
42062
f460c29d
RD
42063 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
42064 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
42065 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
42066 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
42067 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
42068 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
42069 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
42070 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
42071 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
42072 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
42073 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
42074 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
42075 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
42076 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
42077 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
42078 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
42079 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
42080 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
42081 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
42082 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
42083 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
42084 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
42085 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
42086 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
42087 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
42088 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
42089 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
42090 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
42091 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
42092 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
42093 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
42094 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
42095 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
42096 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
42097 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
42098 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
42099 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
42100 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
42101 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
42102 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
42103 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
42104 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
42105 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
42106 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
42107 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
42108 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
42109 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
42110 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
42111 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
42112 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
42113 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
42114 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
42115 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
42116 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
42117 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
42118 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
42119 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
42120 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
42121 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
42122 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
42123 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
42124 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
42125 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
42126 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
42127 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
42128 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
42129 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
42130 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
42131 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
42132 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
42133 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
42134 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
42135 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
42136 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
42137 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
42138 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
42139 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
42140 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
42141 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
42142 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
42143 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
42144 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
42145 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
42146 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
42147 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
42148 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
42149 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
42150 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
42151 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
42152 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
42153 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
42154 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
42155 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
42156 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
42157 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
42158 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
42159 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
42160 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
42161 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
42162 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
42163 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
42164 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
42165 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
42166 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
42167 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
42168 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
42169 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
42170 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
42171 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
42172 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
42173 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
42174 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
42175 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
42176 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
42177 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
42178 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
42179 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
42180 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
42181 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
42182 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
42183 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
42184 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
42185 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
42186 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
42187 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
42188 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
42189 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
42190 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
42191 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
42192 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
42193 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
42194 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
42195
42196 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
42197
42198 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
42199 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
42200 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
42201 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
42202 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42203 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42204 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42205 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42206 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42207 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42208 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42209 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42210 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42211 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42212 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42213 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42214 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42215 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42216 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42217 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42218 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42219 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42220 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42221 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42222 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42223 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42224 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42225 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42226 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42227 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42228 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42229 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42230 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42231 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42232 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42233 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42234 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42235 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42236 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42237 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42238 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42239 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42240 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42241 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42242 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42243 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42244 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42245 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42246 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42247 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42248 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42249 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42250 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42251 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42252 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42253 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42254 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42255 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42256 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42257 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42258 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42259 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42260 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42261 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42262 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42263 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42264 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42265 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42266 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42267 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42268 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42269 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42270 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42271 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42272 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42273 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42274 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42275 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42276 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42277 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42278 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42279 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42280 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42281 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42282 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42283 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42284 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42285 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42286 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42287 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42288 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42289 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42290 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42291 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42292 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42293 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42294 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42295 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42296 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42297 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42298 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42299 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42300 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42301 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42302 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42303 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42304 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42305 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42306 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42307 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42308 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42309 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42310 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42311 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42312 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42313 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42314 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42315 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42316 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42317 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42318 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42319 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42320 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42321 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42322 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42323 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42324 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42325 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42326 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42327 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42328 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42329 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42330 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42331 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42332 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42333 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42334 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42335 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42336 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42337 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42338 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42339 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42340 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42341 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42342 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42343 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42344 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42345 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42346 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42347 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42348 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42349 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42350 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42351 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42352 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42353 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42354 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42355 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42356 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42357 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42358 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42359 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42360 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42361 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42362 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42363 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42364 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42365 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42366 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42367 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42368 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42369 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42370 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42371 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42372 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42373 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42374 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42375 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42376 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42377 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42378 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42379 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42380 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42381 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42382 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42383 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42384 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42385 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42386 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42387 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42388 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42389 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42390 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42391 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42392 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42393 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42394 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42395 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42396 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42397 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42398 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42399 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42400 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42401 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42402 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42403 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42404 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42405 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42406 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42407 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42408 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42409 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42410 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42411 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42412 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42413 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42414 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42415 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42416 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42417 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42418 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42419 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42420 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42421 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42422 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42423 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42424 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42425 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42426 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42427 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42428 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42429 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42430 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42431 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42432 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42433 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42434 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42435 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42436 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42437 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42438 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42439 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42440 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42441 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42442 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42443 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42444 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42445 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
cbfc9df6 42446 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
70d7cb34
RD
42447 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42448 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42449 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42450 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
42451 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42452 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
554f62e9
RD
42453 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42454 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42455 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42456 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42457 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42458 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42459 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
42460 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42461 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42462 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42463 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42464 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42465 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42466 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42467 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42468 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42469 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42470 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42471 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42472 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42473 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42474 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42475 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42476 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42477 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42478 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42479 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42480 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42481 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42482 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42483 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42484 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42485 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42486 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42487 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42488 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42489 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42490 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42491 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42492 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42493 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42494 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9
RD
42495 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42496 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42497 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42498 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42499 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42500 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42501 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42502 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
42503 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42504 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42505 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 42506 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
42507 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42508 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42509 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 42510 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
42511 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42512 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42513 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42514 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42515 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42516 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42517 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
42518 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42519 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42520 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
42521 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42522 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42523
42524 // Work around a chicken/egg problem in drawlist.cpp
42525 wxPyDrawList_SetAPIPtr();
42526
d55e5bfc
RD
42527}
42528