]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
mention wxTB_RIGHT patch
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
32fe5131
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
36ed4f51 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
1bd55598
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
36ed4f51
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
36ed4f51 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
1bd55598 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
1bd55598
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
1bd55598
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
36ed4f51 2683 }
1bd55598
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
36ed4f51 2688 }
1bd55598
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
36ed4f51 2718}
d55e5bfc 2719
d55e5bfc 2720
1bd55598
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
1bd55598 2731 };
d55e5bfc
RD
2732}
2733
2734
1bd55598
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
2131d850
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
1bd55598
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc
RD
2761
2762
da91cb0f
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
36ed4f51 2774SWIGINTERN int
1bd55598 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2779 return SWIG_TypeError;
36ed4f51
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
1bd55598 2783 return SWIG_OK;
36ed4f51 2784}
d55e5bfc
RD
2785
2786
36ed4f51 2787SWIGINTERN int
1bd55598
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
36ed4f51 2790 unsigned long v;
1bd55598
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
36ed4f51 2795 } else {
1bd55598 2796 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2797 }
1bd55598
RD
2798 }
2799 return res;
36ed4f51 2800}
d55e5bfc 2801
d55e5bfc 2802
1bd55598
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2805{
1bd55598
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2808}
2809
2810
1bd55598
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
36ed4f51
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
36ed4f51
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2870 return rv;
2871 }
1bd55598 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
d55e5bfc 2875
1bd55598
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2878{
1bd55598
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
1bd55598 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
1bd55598 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
36ed4f51
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
1bd55598
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
1bd55598
RD
2926SWIGINTERNINLINE PyObject *
2927SWIG_From_short (short value)
2928{
2929 return SWIG_From_long (value);
2930}
d55e5bfc
RD
2931
2932
36ed4f51 2933SWIGINTERN int
1bd55598
RD
2934SWIG_AsVal_short (PyObject * obj, short *val)
2935{
36ed4f51 2936 long v;
1bd55598
RD
2937 int res = SWIG_AsVal_long (obj, &v);
2938 if (SWIG_IsOK(res)) {
2939 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2940 return SWIG_OverflowError;
36ed4f51 2941 } else {
1bd55598
RD
2942 if (val) *val = static_cast< short >(v);
2943 }
2944 }
2945 return res;
d55e5bfc
RD
2946}
2947
2948
fc46b7f3
RD
2949#include <wx/rawbmp.h>
2950
2951
36ed4f51 2952#include <wx/image.h>
d55e5bfc 2953
36ed4f51
RD
2954 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2955 char** cArray = NULL;
2956 int count;
d55e5bfc 2957
36ed4f51
RD
2958 if (!PyList_Check(listOfStrings)) {
2959 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2960 return NULL;
2961 }
2962 count = PyList_Size(listOfStrings);
2963 cArray = new char*[count];
d55e5bfc 2964
36ed4f51
RD
2965 for(int x=0; x<count; x++) {
2966 // TODO: Need some validation and error checking here
2967 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2968 }
2969 return cArray;
d55e5bfc 2970 }
d55e5bfc
RD
2971
2972
1bd55598 2973SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2974 char** cArray = NULL;
2975 wxBitmap* bmp;
2976
2977 cArray = ConvertListOfStrings(listOfStrings);
2978 if (! cArray)
2979 return NULL;
2980 bmp = new wxBitmap(cArray);
2981 delete [] cArray;
2982 return bmp;
2983 }
1bd55598 2984SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2985 char* buf;
2986 Py_ssize_t length;
2987 PyString_AsStringAndSize(bits, &buf, &length);
2988 return new wxBitmap(buf, width, height, depth);
2989 }
1bd55598 2990SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2991 wxSize size(self->GetWidth(), self->GetHeight());
2992 return size;
2993 }
1bd55598 2994SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2995 wxMask *mask = new wxMask(*self, colour);
2996 self->SetMask(mask);
2997 }
1bd55598 2998SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2999 self->SetWidth(size.x);
3000 self->SetHeight(size.y);
3001 }
1bd55598
RD
3002SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
3003SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
3004
3005// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
3006// appears to me that the other platforms are already doing it, so I'll just
3007// automatically do it for wxMSW here.
3008#ifdef __WXMSW__
195a89b4
RD
3009#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
3010#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
3011#else
3012#define wxPy_premultiply(p, a) (p)
3013#define wxPy_unpremultiply(p, a) (p)
3014#endif
3015
3016
3017 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3018 buffer data, int DATASIZE,
3019 buffer alpha, int ALPHASIZE)
3020 {
3021 if (DATASIZE != width*height*3) {
3022 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3023 return NULL;
3024 }
3025
3026 if (ALPHASIZE != width*height) {
3027 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3028 return NULL;
3029 }
3030
3031 wxBitmap* bmp = new wxBitmap(width, height, 32);
3032 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3033 if (! pixData) {
3034 // raise an exception...
3035 wxPyErr_SetString(PyExc_RuntimeError,
3036 "Failed to gain raw access to bitmap data.");
3037 return NULL;
3038 }
3039
3040 pixData.UseAlpha();
3041 wxAlphaPixelData::Iterator p(pixData);
3042 for (int y=0; y<height; y++) {
3043 wxAlphaPixelData::Iterator rowStart = p;
3044 for (int x=0; x<width; x++) {
3045 byte a = *(alpha++);
3046 p.Red() = wxPy_premultiply(*(data++), a);
3047 p.Green() = wxPy_premultiply(*(data++), a);
3048 p.Blue() = wxPy_premultiply(*(data++), a);
3049 p.Alpha() = a;
3050 ++p;
3051 }
3052 p = rowStart;
3053 p.OffsetY(pixData, 1);
3054 }
3055 return bmp;
3056 }
3057
3058 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3059 {
3060 if (DATASIZE != width*height*3) {
3061 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3062 return NULL;
3063 }
3064
3065 wxBitmap* bmp = new wxBitmap(width, height, 24);
3066 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3067 if (! pixData) {
3068 // raise an exception...
3069 wxPyErr_SetString(PyExc_RuntimeError,
3070 "Failed to gain raw access to bitmap data.");
3071 return NULL;
3072 }
3073
3074 wxNativePixelData::Iterator p(pixData);
3075 for (int y=0; y<height; y++) {
3076 wxNativePixelData::Iterator rowStart = p;
3077 for (int x=0; x<width; x++) {
3078 p.Red() = *(data++);
3079 p.Green() = *(data++);
3080 p.Blue() = *(data++);
3081 ++p;
3082 }
3083 p = rowStart;
3084 p.OffsetY(pixData, 1);
3085 }
3086 return bmp;
3087 }
3088
3089
3090 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3091 {
3092 if (DATASIZE != width*height*4) {
3093 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3094 return NULL;
3095 }
3096
3097 wxBitmap* bmp = new wxBitmap(width, height, 32);
3098 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3099 if (! pixData) {
3100 // raise an exception...
3101 wxPyErr_SetString(PyExc_RuntimeError,
3102 "Failed to gain raw access to bitmap data.");
3103 return NULL;
3104 }
3105
3106 pixData.UseAlpha();
3107 wxAlphaPixelData::Iterator p(pixData);
3108 for (int y=0; y<height; y++) {
3109 wxAlphaPixelData::Iterator rowStart = p;
3110 for (int x=0; x<width; x++) {
3111 byte a = data[3];
3112 p.Red() = wxPy_premultiply(*(data++), a);
3113 p.Green() = wxPy_premultiply(*(data++), a);
3114 p.Blue() = wxPy_premultiply(*(data++), a);
3115 p.Alpha() = a; data++;
3116 ++p;
3117 }
3118 p = rowStart;
3119 p.OffsetY(pixData, 1);
3120 }
3121 return bmp;
3122 }
3123
3124
3125 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3126
3127SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3128SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3129SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3130 self->Red() = red;
3131 self->Green() = green;
3132 self->Blue() = blue;
3133 }
3134SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3135 PyObject* rv = PyTuple_New(3);
3136 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3137 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3138 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3139 return rv;
3140 }
3141
3142 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3143
3144SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3145SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3146SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3147 self->Red() = wxPy_premultiply(red, alpha);
3148 self->Green() = wxPy_premultiply(green, alpha);
3149 self->Blue() = wxPy_premultiply(blue, alpha);
3150 self->Alpha() = alpha;
3151 }
3152SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3153 PyObject* rv = PyTuple_New(4);
3154 int red = self->Red();
3155 int green = self->Green();
3156 int blue = self->Blue();
3157 int alpha = self->Alpha();
3158
3159 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3160 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3161 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3162 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3163 return rv;
3164 }
1bd55598 3165SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3166 if ( !colour.IsOk() )
36ed4f51
RD
3167 return new wxMask(bitmap, *wxBLACK);
3168 else
3169 return new wxMask(bitmap, colour);
3170 }
d55e5bfc 3171
36ed4f51 3172#include <wx/iconbndl.h>
d55e5bfc 3173
1bd55598 3174SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3175 wxIcon* icon = new wxIcon();
3176 icon->CopyFromBitmap(bmp);
3177 return icon;
3178 }
1bd55598 3179SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3180 char** cArray = NULL;
3181 wxIcon* icon;
d55e5bfc 3182
36ed4f51
RD
3183 cArray = ConvertListOfStrings(listOfStrings);
3184 if (! cArray)
3185 return NULL;
3186 icon = new wxIcon(cArray);
3187 delete [] cArray;
3188 return icon;
3189 }
1bd55598 3190SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3191
3192
d55e5bfc 3193
36ed4f51 3194 return new wxIconLocation(*filename);
d55e5bfc 3195
36ed4f51 3196 }
1bd55598 3197SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3198
3199
d55e5bfc 3200
36ed4f51 3201 // do nothing
d55e5bfc 3202
36ed4f51 3203 }
1bd55598 3204SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3205
3206
d55e5bfc 3207
36ed4f51 3208 return -1;
d55e5bfc 3209
36ed4f51 3210 }
1bd55598 3211SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3212#ifdef __WXGTK__
fef4c27a
RD
3213 wxImage img(cursorName, type);
3214 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3215 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3216 return new wxCursor(img);
36ed4f51 3217#else
fef4c27a 3218 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3219#endif
3220 }
d55e5bfc 3221
d55e5bfc 3222
1bd55598 3223SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3224 (*self) ++;
3225 }
1bd55598 3226SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3227 return self->operator bool();
3228 }
d55e5bfc 3229
36ed4f51
RD
3230#include <wx/fontutil.h>
3231#include <wx/fontmap.h>
3232#include <wx/fontenum.h>
d55e5bfc 3233
1bd55598 3234SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3235 return self->ToString();
3236 }
d55e5bfc 3237
36ed4f51
RD
3238 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3239 static wxNativeEncodingInfo info;
3240 if ( wxGetNativeFontEncoding(encoding, &info) )
3241 return &info;
3242 else
3243 return NULL;
d55e5bfc 3244 }
d55e5bfc 3245
1bd55598
RD
3246
3247SWIGINTERNINLINE PyObject *
3248SWIG_From_size_t (size_t value)
3249{
3250 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3251}
3252
3253
3254SWIGINTERNINLINE int
3255SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3256{
3257 unsigned long v;
3258 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3259 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3260 return res;
3261}
3262
3263SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3264 wxFontEncoding alt_enc;
3265 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3266 return PyInt_FromLong(alt_enc);
3267 else {
3268 Py_INCREF(Py_None);
3269 return Py_None;
3270 }
3271 }
1bd55598 3272SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3273 wxNativeFontInfo nfi;
3274 nfi.FromString(info);
3275 return new wxFont(nfi);
3276 }
1bd55598 3277SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3278 return wxFont::New(pointSize, family, flags, face, encoding);
3279 }
1bd55598 3280SWIGINTERN 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
3281 return wxFontBase::New(pixelSize, family,
3282 style, weight, underlined,
3283 face, encoding);
3284 }
1bd55598 3285SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3286 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3287 }
1bd55598
RD
3288SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3289SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3290
36ed4f51
RD
3291class wxPyFontEnumerator : public wxFontEnumerator {
3292public:
3293 wxPyFontEnumerator() {}
3294 ~wxPyFontEnumerator() {}
d55e5bfc 3295
36ed4f51
RD
3296 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3297 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3298
36ed4f51
RD
3299 PYPRIVATE;
3300};
d55e5bfc 3301
36ed4f51
RD
3302IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3303IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3304
36ed4f51 3305
704eda0c 3306SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3307 PyObject* ret;
704eda0c 3308 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3309 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3310 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3311 wxPyEndBlockThreads(blocked);
3312 return ret;
36ed4f51 3313 }
704eda0c 3314SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3315 PyObject* ret;
704eda0c 3316 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3317 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3318 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3319 wxPyEndBlockThreads(blocked);
3320 return ret;
36ed4f51
RD
3321 }
3322
3323#include <locale.h>
3324
1bd55598 3325SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3326 wxLocale* loc;
3327 if (language == -1)
3328 loc = new wxLocale();
3329 else
3330 loc = new wxLocale(language, flags);
3331 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3332 // for the floating point conversions and such to work right.
3333#if PY_VERSION_HEX < 0x02040000
3334 setlocale(LC_NUMERIC, "C");
3335#endif
3336 return loc;
3337 }
1bd55598 3338SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3339 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3340 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3341 // for the floating point conversions and such to work right.
3342#if PY_VERSION_HEX < 0x02040000
3343 setlocale(LC_NUMERIC, "C");
3344#endif
3345 return rc;
3346 }
1bd55598 3347SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3348 bool rc = self->Init(language, flags);
3349 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3350 // for the floating point conversions and such to work right.
3351#if PY_VERSION_HEX < 0x02040000
3352 setlocale(LC_NUMERIC, "C");
3353#endif
3354 return rc;
3355 }
3356
fc46b7f3
RD
3357class wxPyLocale : public wxLocale
3358{
3359public:
3360 wxPyLocale();
3361
3362 wxPyLocale(const wxChar *szName, // name (for messages)
3363 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3364 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3365 bool bLoadDefault = true, // preload wxstd.mo?
3366 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3367
3368 wxPyLocale(int language, // wxLanguage id or custom language
3369 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3370
3371 ~wxPyLocale();
3372
3373 virtual const wxChar *GetString(const wxChar *szOrigString,
3374 const wxChar *szDomain = NULL) const;
3375 virtual const wxChar *GetString(const wxChar *szOrigString,
3376 const wxChar *szOrigString2, size_t n,
3377 const wxChar *szDomain = NULL) const;
3378
3379 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3380 const wxChar *szDomain = NULL) const;
3381 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3382 const wxChar *szOrigString2, size_t n,
3383 const wxChar *szDomain = NULL) const;
3384
3385 PYPRIVATE;
3386private:
3387 DECLARE_NO_COPY_CLASS(wxPyLocale)
3388};
3389
3390wxPyLocale::wxPyLocale() : wxLocale()
3391{
3392}
3393
3394wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3395 const wxChar *szShort, // dir prefix (for msg files)
3396 const wxChar *szLocale, // locale (for setlocale)
3397 bool bLoadDefault, // preload wxstd.mo?
3398 bool bConvertEncoding) // convert Win<->Unix if necessary?
3399 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3400{
3401}
3402
3403wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3404 int flags) : wxLocale(language, flags)
3405{
3406}
3407
3408wxPyLocale::~wxPyLocale()
3409{
3410}
3411
3412const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3413 const wxChar *szDomain) const
3414{
3415 wxChar *str = GetSingularString(szOrigString, szDomain);
3416 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3417}
3418
3419const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain) const
3422{
3423 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3424 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3425}
3426
3427wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3428 const wxChar *szDomain) const
3429{
3430 bool found;
3431 static wxString str;
3432 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3433 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3434 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3435 PyObject* param1 = wx2PyString(szOrigString);
3436 PyObject* param2 = wx2PyString(szDomain);
3437 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3438 Py_DECREF(param1);
3439 Py_DECREF(param2);
3440 if (ret) {
3441 str = Py2wxString(ret);
3442 Py_DECREF(ret);
3443 }
3444 }
3445 wxPyEndBlockThreads(blocked);
3446 return (found ? (wxChar*)str.c_str() : NULL);
3447}
3448
3449wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3450 const wxChar *szOrigString2, size_t n,
3451 const wxChar *szDomain) const
3452{
3453 bool found;
3454 static wxString str;
3455 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3456 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3457 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3458 PyObject* param1 = wx2PyString(szOrigString);
3459 PyObject* param2 = wx2PyString(szOrigString2);
3460 PyObject* param4 = wx2PyString(szDomain);
3461 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3462 Py_DECREF(param1);
3463 Py_DECREF(param2);
3464 Py_DECREF(param4);
3465 if( ret) {
3466 str = Py2wxString(ret);
3467 Py_DECREF(ret);
3468 }
3469 }
3470 wxPyEndBlockThreads(blocked);
3471 return (found ? (wxChar*)str.c_str() : NULL);
3472}
3473
3474SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3475 wxPyLocale* loc;
3476 if (language == -1)
3477 loc = new wxPyLocale();
3478 else
3479 loc = new wxPyLocale(language, flags);
3480 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3481 // for the floating point conversions and such to work right.
3482#if PY_VERSION_HEX < 0x02040000
3483 setlocale(LC_NUMERIC, "C");
3484#endif
3485 return loc;
3486 }
3487
36ed4f51
RD
3488#include "wx/wxPython/pydrawxxx.h"
3489
1bd55598 3490SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3491 wxColour col;
3492 self->GetPixel(x, y, &col);
3493 return col;
3494 }
1bd55598 3495SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3496 wxColour col;
3497 self->GetPixel(pt, &col);
3498 return col;
3499 }
3500
3501SWIGINTERN int
1bd55598 3502SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3503{
3504 if (PyNumber_Check(obj)) {
3505 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3506 return SWIG_OK;
d55e5bfc 3507 }
1bd55598 3508 return SWIG_TypeError;
36ed4f51
RD
3509}
3510
1bd55598 3511SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3512 wxRect rv;
3513 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3514 return rv;
3515 }
1bd55598 3516SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3517 wxRect rect;
3518 self->GetClippingBox(rect);
3519 return rect;
3520 }
1bd55598 3521SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3522 wxArrayInt widths;
3523 self->GetPartialTextExtents(text, widths);
3524 return widths;
3525 }
3526
1bd55598 3527 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3528
1bd55598 3529SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3530 self->SetLogicalOrigin(point.x, point.y);
3531 }
1bd55598 3532SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3533 self->SetDeviceOrigin(point.x, point.y);
3534 }
1bd55598 3535SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3536 self->CalcBoundingBox(point.x, point.y);
3537 }
1bd55598 3538SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3539 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3540 }
1bd55598 3541SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3542 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3543 }
1bd55598 3544SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3545 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3546 }
1bd55598 3547SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3548 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3549 }
1bd55598 3550SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3551 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3552 }
1bd55598 3553SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3554 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3555 }
3556
3557static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3558 *x1 = dc->MinX();
3559 *y1 = dc->MinY();
3560 *x2 = dc->MaxX();
3561 *y2 = dc->MaxY();
3562}
3563
3564
3565#include <wx/dcbuffer.h>
3566
3567
3568#include <wx/dcps.h>
3569
3570
3571#include <wx/metafile.h>
3572
3573
72ef6efb
RD
3574#include <wx/graphics.h>
3575
3576
3577#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3578// C++ stub classes for platforms or build configurations that don't have
3579// wxGraphicsContext yet.
72ef6efb 3580
70d7cb34
RD
3581
3582class wxGraphicsObject : public wxObject
72ef6efb
RD
3583{
3584public :
70d7cb34 3585 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3586 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3587 "wx.GraphicsObject is not available on this platform.");
3588 }
3589 wxGraphicsObject( const wxGraphicsObject& ) {}
3590 virtual ~wxGraphicsObject() {}
3591 bool IsNull() const { return false; }
3592 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3593} ;
3594
3595
3596
3597class wxGraphicsPen : public wxGraphicsObject
3598{
3599 wxGraphicsPen() {}
3600 virtual ~wxGraphicsPen() {}
3601} ;
3602wxGraphicsPen wxNullGraphicsPen;
3603
3604
3605
3606class wxGraphicsBrush : public wxGraphicsObject
3607{
3608public :
3609 wxGraphicsBrush() {}
3610 virtual ~wxGraphicsBrush() {}
3611} ;
3612wxGraphicsBrush wxNullGraphicsBrush;
3613
3614
3615
3616class wxGraphicsFont : public wxGraphicsObject
3617{
3618public :
3619 wxGraphicsFont() {}
3620 virtual ~wxGraphicsFont() {}
3621} ;
3622wxGraphicsFont wxNullGraphicsFont;
3623
3624
3625
3626class wxGraphicsPath : public wxGraphicsObject
3627{
3628public :
3629 wxGraphicsPath(wxGraphicsRenderer* ) {
3630 PyErr_SetString(PyExc_NotImplementedError,
3631 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3632 }
3633 virtual ~wxGraphicsPath() {}
70d7cb34 3634
72ef6efb 3635 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3636 void MoveToPoint( const wxPoint2DDouble& ) {}
3637 void AddLineToPoint( wxDouble, wxDouble ) {}
3638 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3639 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3640 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3641 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3642 void CloseSubpath() {}
3643 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3644 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3645 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3646 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3647
3648 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3649 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3650 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3651 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3652
70d7cb34
RD
3653 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3654 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3655 void * GetNativePath() const { return NULL; }
3656 void UnGetNativePath(void *) {}
3657 void Transform( wxGraphicsMatrix* ) {}
3658 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3659 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3660
3661 bool Contains( wxDouble , wxDouble , int ) { return false; }
3662 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3663};
5c8c7dd3 3664wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3665
3666
3667class wxGraphicsMatrix : public wxGraphicsObject
3668{
3669public :
3670 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3671 PyErr_SetString(PyExc_NotImplementedError,
3672 "wx.GraphicsMatrix is not available on this platform.");
3673 }
3674 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3675 virtual void Concat( const wxGraphicsMatrix * ) {}
3676 virtual void Copy( const wxGraphicsMatrix * ) {}
3677 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3678 wxDouble , wxDouble ) {}
3679 virtual void Invert() {}
3680 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3681 virtual bool IsIdentity() { return false; }
3682 virtual void Translate( wxDouble , wxDouble ) {}
3683 virtual void Scale( wxDouble , wxDouble ) {}
3684 virtual void Rotate( wxDouble ) {}
3685 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3686 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3687 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3688};
5c8c7dd3 3689wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3690
70d7cb34
RD
3691
3692class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3693{
3694public:
70d7cb34
RD
3695
3696 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3697 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3698 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3699 }
70d7cb34 3700
72ef6efb 3701 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3702
3703 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3704 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3705 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3706 }
b876c1e4 3707
70d7cb34 3708 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3709 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3710 "wx.GraphicsContext is not available on this platform.");
3711 }
b876c1e4 3712
70d7cb34
RD
3713 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3714 PyErr_SetString(PyExc_NotImplementedError,
3715 "wx.GraphicsContext is not available on this platform.");
3716 }
3717
3718 static wxGraphicsContext* Create( wxWindow* ) {
3719 PyErr_SetString(PyExc_NotImplementedError,
3720 "wx.GraphicsContext is not available on this platform.");
3721 }
3722
3723 wxGraphicsPath * CreatePath() { return NULL; }
3724
3725 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3726
3727 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3728
3729 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3730 const wxColour&, const wxColour&) { return NULL; }
3731
3732 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3733 wxDouble xc, wxDouble yc, wxDouble radius,
3734 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3735
3736 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3737
3738 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3739 wxDouble, wxDouble) { return NULL; }
3740
3741 virtual void PushState() {}
3742 virtual void PopState() {}
3743 virtual void Clip( const wxRegion & ) {}
3744 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3745 virtual void ResetClip() {}
3746 virtual void * GetNativeContext() { return NULL; }
3747 virtual void Translate( wxDouble , wxDouble ) {}
3748 virtual void Scale( wxDouble , wxDouble ) {}
3749 virtual void Rotate( wxDouble ) {}
3750 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3751 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3752 virtual void GetTransform( wxGraphicsMatrix* ) {}
3753
3754 virtual void SetPen( const wxGraphicsPen& ) {}
3755 void SetPen( const wxPen& ) {}
3756
3757 virtual void SetBrush( const wxGraphicsBrush& ) {}
3758 void SetBrush( const wxBrush& ) {}
3759
3760 virtual void SetFont( const wxGraphicsFont& ) {}
3761 void SetFont( const wxFont&, const wxColour& ) {}
3762
3763 virtual void StrokePath( const wxGraphicsPath * ) {}
3764 virtual void FillPath( const wxGraphicsPath *, int ) {}
3765 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3766
3767 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3768 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3769 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3770 wxDouble *, wxDouble * ) const {}
3771 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3772
3773 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3774 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3775
3776 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3777 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3778 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3779 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3780 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3781 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3782 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3783 virtual bool ShouldOffset() const { return false; }
3784};
3785
3786
3787class wxGraphicsRenderer : public wxObject
3788{
3789public :
3790 wxGraphicsRenderer() {
3791 PyErr_SetString(PyExc_NotImplementedError,
3792 "wx.GraphicsRenderer is not available on this platform.");
3793 }
3794
3795 virtual ~wxGraphicsRenderer() {}
3796
3797 static wxGraphicsRenderer* GetDefaultRenderer(
3798 PyErr_SetString(PyExc_NotImplementedError,
3799 "wx.GraphicsRenderer is not available on this platform.");
3800 );
3801
3802 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3803 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3804 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3805 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3806
3807 virtual wxGraphicsPath * CreatePath() { return NULL; }
3808
3809 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3810 wxDouble , wxDouble ) { return NULL; }
3811
3812 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3813 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3814 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3815 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3816 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3817 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3818 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3819};
3820
3821
70d7cb34 3822
72ef6efb
RD
3823class wxGCDC: public wxWindowDC
3824{
3825public:
3826 wxGCDC(const wxWindowDC&) {
3827 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3828 PyErr_SetString(PyExc_NotImplementedError,
3829 "wxGCDC is not available on this platform.");
3830 wxPyEndBlockThreads(blocked);
3831 }
70d7cb34 3832
72ef6efb
RD
3833 wxGCDC() {
3834 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3835 PyErr_SetString(PyExc_NotImplementedError,
3836 "wxGCDC is not available on this platform.");
3837 wxPyEndBlockThreads(blocked);
3838 }
70d7cb34 3839
72ef6efb
RD
3840 virtual ~wxGCDC() {}
3841
b876c1e4
RD
3842 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3843 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3844};
3845
3846#endif
3847
5c8c7dd3
RD
3848SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3849 *self = t;
3850 }
be68621e
RD
3851SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3852 wxDouble width = 0.0,
3853 height = 0.0;
3854 self->GetTextExtent(text, &width, &height, NULL, NULL);
3855 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3856 PyObject* rv = PyTuple_New(2);
3857 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3858 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3859 return rv;
3860 }
b39fe951
RD
3861SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3862 wxArrayDouble widths;
3863 self->GetPartialTextExtents(text, widths);
3864 return widths;
3865 }
f8eb59b9 3866SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3867 size_t c1, c2, count;
3868 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3869 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3870
3871 if ( beginP != NULL && endP != NULL )
3872 {
3873 count = wxMin(c1, c2);
3874 self->StrokeLines(count, beginP, endP);
3875 }
3876 delete [] beginP;
3877 delete [] endP;
3878 }
72ef6efb 3879
0a27f394
RD
3880#include "wx/dcgraph.h"
3881
3882
66493fc7
RD
3883#include <wx/overlay.h>
3884
3885
36ed4f51 3886
1bd55598 3887SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3888 self->AddColour(name, wxColour(red, green, blue));
3889 }
3890
da91cb0f
RD
3891 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3892 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3893 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3894 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3895
3896
36ed4f51
RD
3897#include <wx/effects.h>
3898
be9b1dca
RD
3899
3900#include "wx/renderer.h"
3901
3902
32fe5131 3903SWIGINTERNINLINE PyObject*
1bd55598 3904 SWIG_From_bool (bool value)
be9b1dca 3905{
1bd55598 3906 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3907}
3908
27e45892
RD
3909
3910#include "wx/wxPython/pseudodc.h"
3911
3912SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3913 wxRect rect;
3914 self->GetIdBounds(id, rect);
3915 return rect;
3916 }
36ed4f51
RD
3917#ifdef __cplusplus
3918extern "C" {
3919#endif
1bd55598
RD
3920SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3921 PyObject *resultobj = 0;
3922 wxGDIObject *result = 0 ;
3923
3924 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3925 {
3926 if (!wxPyCheckForApp()) SWIG_fail;
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 result = (wxGDIObject *)new wxGDIObject();
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3933 return resultobj;
3934fail:
3935 return NULL;
d55e5bfc
RD
3936}
3937
3938
1bd55598
RD
3939SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3940 PyObject *resultobj = 0;
3941 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3942 void *argp1 = 0 ;
3943 int res1 = 0 ;
3944 PyObject *swig_obj[1] ;
3945
3946 if (!args) SWIG_fail;
3947 swig_obj[0] = args;
3948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3949 if (!SWIG_IsOK(res1)) {
3950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3951 }
3952 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 delete arg1;
d55e5bfc 3956
1bd55598
RD
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 resultobj = SWIG_Py_Void();
3961 return resultobj;
3962fail:
3963 return NULL;
d55e5bfc
RD
3964}
3965
3966
1bd55598
RD
3967SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3968 PyObject *resultobj = 0;
3969 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3970 bool result;
3971 void *argp1 = 0 ;
3972 int res1 = 0 ;
3973 PyObject *swig_obj[1] ;
3974
3975 if (!args) SWIG_fail;
3976 swig_obj[0] = args;
3977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3978 if (!SWIG_IsOK(res1)) {
3979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3980 }
3981 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3982 {
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (bool)(arg1)->IsNull();
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 {
3989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3990 }
3991 return resultobj;
3992fail:
3993 return NULL;
3994}
3995
3996
3997SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3998 PyObject *obj;
3999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4000 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4001 return SWIG_Py_Void();
4002}
4003
4004SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4005 return SWIG_Python_InitShadowInstance(args);
4006}
4007
4008SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj = 0;
4010 byte arg1 = (byte) 0 ;
4011 byte arg2 = (byte) 0 ;
4012 byte arg3 = (byte) 0 ;
fc46b7f3 4013 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4014 wxColour *result = 0 ;
4015 unsigned char val1 ;
4016 int ecode1 = 0 ;
4017 unsigned char val2 ;
4018 int ecode2 = 0 ;
4019 unsigned char val3 ;
4020 int ecode3 = 0 ;
fc46b7f3
RD
4021 unsigned char val4 ;
4022 int ecode4 = 0 ;
1bd55598
RD
4023 PyObject * obj0 = 0 ;
4024 PyObject * obj1 = 0 ;
4025 PyObject * obj2 = 0 ;
fc46b7f3 4026 PyObject * obj3 = 0 ;
1bd55598 4027 char * kwnames[] = {
fc46b7f3 4028 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4029 };
4030
fc46b7f3 4031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4032 if (obj0) {
4033 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4034 if (!SWIG_IsOK(ecode1)) {
4035 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4036 }
4037 arg1 = static_cast< byte >(val1);
4038 }
4039 if (obj1) {
4040 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4041 if (!SWIG_IsOK(ecode2)) {
4042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4043 }
4044 arg2 = static_cast< byte >(val2);
4045 }
4046 if (obj2) {
4047 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4048 if (!SWIG_IsOK(ecode3)) {
4049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4050 }
4051 arg3 = static_cast< byte >(val3);
4052 }
fc46b7f3
RD
4053 if (obj3) {
4054 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4055 if (!SWIG_IsOK(ecode4)) {
4056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4057 }
4058 arg4 = static_cast< byte >(val4);
4059 }
1bd55598
RD
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4062 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4067 return resultobj;
4068fail:
4069 return NULL;
d55e5bfc
RD
4070}
4071
4072
1bd55598
RD
4073SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj = 0;
4075 wxString *arg1 = 0 ;
4076 wxColour *result = 0 ;
4077 bool temp1 = false ;
4078 PyObject * obj0 = 0 ;
4079 char * kwnames[] = {
4080 (char *) "colorName", NULL
4081 };
4082
4083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4084 {
4085 arg1 = wxString_in_helper(obj0);
4086 if (arg1 == NULL) SWIG_fail;
4087 temp1 = true;
4088 }
4089 {
4090 if (!wxPyCheckForApp()) SWIG_fail;
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (wxColour *)new wxColour((wxString const &)*arg1);
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4097 {
4098 if (temp1)
4099 delete arg1;
4100 }
4101 return resultobj;
4102fail:
4103 {
4104 if (temp1)
4105 delete arg1;
4106 }
4107 return NULL;
36ed4f51
RD
4108}
4109
4110
1bd55598
RD
4111SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4112 PyObject *resultobj = 0;
4113 unsigned long arg1 ;
4114 wxColour *result = 0 ;
4115 unsigned long val1 ;
4116 int ecode1 = 0 ;
4117 PyObject * obj0 = 0 ;
4118 char * kwnames[] = {
4119 (char *) "colRGB", NULL
4120 };
4121
4122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4123 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4124 if (!SWIG_IsOK(ecode1)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4126 }
4127 arg1 = static_cast< unsigned long >(val1);
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 result = (wxColour *)new wxColour(arg1);
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4135 return resultobj;
4136fail:
4137 return NULL;
d55e5bfc
RD
4138}
4139
4140
1bd55598
RD
4141SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4142 PyObject *resultobj = 0;
4143 wxColour *arg1 = (wxColour *) 0 ;
4144 void *argp1 = 0 ;
4145 int res1 = 0 ;
4146 PyObject *swig_obj[1] ;
4147
4148 if (!args) SWIG_fail;
4149 swig_obj[0] = args;
4150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4151 if (!SWIG_IsOK(res1)) {
4152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4153 }
4154 arg1 = reinterpret_cast< wxColour * >(argp1);
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 delete arg1;
d55e5bfc 4158
1bd55598
RD
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 resultobj = SWIG_Py_Void();
4163 return resultobj;
4164fail:
4165 return NULL;
d55e5bfc
RD
4166}
4167
4168
1bd55598
RD
4169SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4170 PyObject *resultobj = 0;
4171 wxColour *arg1 = (wxColour *) 0 ;
4172 byte result;
4173 void *argp1 = 0 ;
4174 int res1 = 0 ;
4175 PyObject *swig_obj[1] ;
4176
4177 if (!args) SWIG_fail;
4178 swig_obj[0] = args;
4179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4180 if (!SWIG_IsOK(res1)) {
4181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4182 }
4183 arg1 = reinterpret_cast< wxColour * >(argp1);
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 result = (byte)(arg1)->Red();
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4191 return resultobj;
4192fail:
4193 return NULL;
d55e5bfc
RD
4194}
4195
4196
1bd55598
RD
4197SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4198 PyObject *resultobj = 0;
4199 wxColour *arg1 = (wxColour *) 0 ;
4200 byte result;
4201 void *argp1 = 0 ;
4202 int res1 = 0 ;
4203 PyObject *swig_obj[1] ;
4204
4205 if (!args) SWIG_fail;
4206 swig_obj[0] = args;
4207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4208 if (!SWIG_IsOK(res1)) {
4209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4210 }
4211 arg1 = reinterpret_cast< wxColour * >(argp1);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 result = (byte)(arg1)->Green();
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4219 return resultobj;
4220fail:
4221 return NULL;
d55e5bfc
RD
4222}
4223
4224
1bd55598
RD
4225SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4226 PyObject *resultobj = 0;
4227 wxColour *arg1 = (wxColour *) 0 ;
4228 byte result;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 PyObject *swig_obj[1] ;
4232
4233 if (!args) SWIG_fail;
4234 swig_obj[0] = args;
4235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4236 if (!SWIG_IsOK(res1)) {
4237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4238 }
4239 arg1 = reinterpret_cast< wxColour * >(argp1);
4240 {
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 result = (byte)(arg1)->Blue();
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4247 return resultobj;
4248fail:
4249 return NULL;
d55e5bfc
RD
4250}
4251
4252
fc46b7f3
RD
4253SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4254 PyObject *resultobj = 0;
4255 wxColour *arg1 = (wxColour *) 0 ;
4256 byte result;
4257 void *argp1 = 0 ;
4258 int res1 = 0 ;
4259 PyObject *swig_obj[1] ;
4260
4261 if (!args) SWIG_fail;
4262 swig_obj[0] = args;
4263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
4268 {
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 result = (byte)(arg1)->Alpha();
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4275 return resultobj;
4276fail:
4277 return NULL;
4278}
4279
4280
b39fe951 4281SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4282 PyObject *resultobj = 0;
4283 wxColour *arg1 = (wxColour *) 0 ;
4284 bool result;
4285 void *argp1 = 0 ;
4286 int res1 = 0 ;
4287 PyObject *swig_obj[1] ;
4288
4289 if (!args) SWIG_fail;
4290 swig_obj[0] = args;
4291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
b39fe951 4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4294 }
4295 arg1 = reinterpret_cast< wxColour * >(argp1);
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4298 result = (bool)(arg1)->IsOk();
1bd55598
RD
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 {
4303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4304 }
4305 return resultobj;
4306fail:
4307 return NULL;
4308}
4309
4310
4311SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj = 0;
4313 wxColour *arg1 = (wxColour *) 0 ;
4314 byte arg2 ;
4315 byte arg3 ;
4316 byte arg4 ;
fc46b7f3 4317 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 unsigned char val2 ;
4321 int ecode2 = 0 ;
4322 unsigned char val3 ;
4323 int ecode3 = 0 ;
4324 unsigned char val4 ;
4325 int ecode4 = 0 ;
fc46b7f3
RD
4326 unsigned char val5 ;
4327 int ecode5 = 0 ;
1bd55598
RD
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 PyObject * obj2 = 0 ;
4331 PyObject * obj3 = 0 ;
fc46b7f3 4332 PyObject * obj4 = 0 ;
1bd55598 4333 char * kwnames[] = {
fc46b7f3 4334 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4335 };
4336
fc46b7f3 4337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4339 if (!SWIG_IsOK(res1)) {
4340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4341 }
4342 arg1 = reinterpret_cast< wxColour * >(argp1);
4343 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4344 if (!SWIG_IsOK(ecode2)) {
4345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4346 }
4347 arg2 = static_cast< byte >(val2);
4348 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4349 if (!SWIG_IsOK(ecode3)) {
4350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4351 }
4352 arg3 = static_cast< byte >(val3);
4353 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4354 if (!SWIG_IsOK(ecode4)) {
4355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4356 }
4357 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4358 if (obj4) {
4359 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4360 if (!SWIG_IsOK(ecode5)) {
4361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4362 }
4363 arg5 = static_cast< byte >(val5);
4364 }
1bd55598
RD
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4367 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_Py_Void();
4372 return resultobj;
4373fail:
4374 return NULL;
4375}
4376
4377
4378SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 unsigned long arg2 ;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
4384 unsigned long val2 ;
4385 int ecode2 = 0 ;
4386 PyObject * obj0 = 0 ;
4387 PyObject * obj1 = 0 ;
4388 char * kwnames[] = {
4389 (char *) "self",(char *) "colRGB", NULL
4390 };
4391
4392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4394 if (!SWIG_IsOK(res1)) {
4395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4396 }
4397 arg1 = reinterpret_cast< wxColour * >(argp1);
4398 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4399 if (!SWIG_IsOK(ecode2)) {
4400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4401 }
4402 arg2 = static_cast< unsigned long >(val2);
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
4405 (arg1)->Set(arg2);
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_Py_Void();
4410 return resultobj;
4411fail:
4412 return NULL;
4413}
4414
4415
4416SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj = 0;
4418 wxColour *arg1 = (wxColour *) 0 ;
4419 wxString *arg2 = 0 ;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 bool temp2 = false ;
4423 PyObject * obj0 = 0 ;
4424 PyObject * obj1 = 0 ;
4425 char * kwnames[] = {
4426 (char *) "self",(char *) "colourName", NULL
4427 };
4428
4429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4431 if (!SWIG_IsOK(res1)) {
4432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4433 }
4434 arg1 = reinterpret_cast< wxColour * >(argp1);
4435 {
4436 arg2 = wxString_in_helper(obj1);
4437 if (arg2 == NULL) SWIG_fail;
4438 temp2 = true;
4439 }
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4442 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 resultobj = SWIG_Py_Void();
4447 {
4448 if (temp2)
4449 delete arg2;
4450 }
4451 return resultobj;
4452fail:
4453 {
4454 if (temp2)
4455 delete arg2;
4456 }
4457 return NULL;
d55e5bfc
RD
4458}
4459
4460
2131d850
RD
4461SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4462 PyObject *resultobj = 0;
4463 wxColour *arg1 = (wxColour *) 0 ;
4464 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4465 wxString result;
4466 void *argp1 = 0 ;
4467 int res1 = 0 ;
4468 long val2 ;
4469 int ecode2 = 0 ;
4470 PyObject * obj0 = 0 ;
4471 PyObject * obj1 = 0 ;
4472 char * kwnames[] = {
4473 (char *) "self",(char *) "flags", NULL
4474 };
4475
4476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4478 if (!SWIG_IsOK(res1)) {
4479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4480 }
4481 arg1 = reinterpret_cast< wxColour * >(argp1);
4482 if (obj1) {
4483 ecode2 = SWIG_AsVal_long(obj1, &val2);
4484 if (!SWIG_IsOK(ecode2)) {
4485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4486 }
4487 arg2 = static_cast< long >(val2);
4488 }
4489 {
4490 PyThreadState* __tstate = wxPyBeginAllowThreads();
4491 result = ((wxColour const *)arg1)->GetAsString(arg2);
4492 wxPyEndAllowThreads(__tstate);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 }
4495 {
4496#if wxUSE_UNICODE
4497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4498#else
4499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4500#endif
4501 }
4502 return resultobj;
4503fail:
4504 return NULL;
4505}
4506
4507
1bd55598
RD
4508SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4509 PyObject *resultobj = 0;
4510 wxColour *arg1 = (wxColour *) 0 ;
4511 long result;
4512 void *argp1 = 0 ;
4513 int res1 = 0 ;
4514 PyObject *swig_obj[1] ;
4515
4516 if (!args) SWIG_fail;
4517 swig_obj[0] = args;
4518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4519 if (!SWIG_IsOK(res1)) {
4520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4521 }
4522 arg1 = reinterpret_cast< wxColour * >(argp1);
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 result = (long)((wxColour const *)arg1)->GetPixel();
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 resultobj = SWIG_From_long(static_cast< long >(result));
4530 return resultobj;
4531fail:
4532 return NULL;
4533}
4534
4535
4536SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj = 0;
4538 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4539 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4540 bool result;
4541 void *argp1 = 0 ;
4542 int res1 = 0 ;
1bd55598
RD
4543 PyObject * obj0 = 0 ;
4544 PyObject * obj1 = 0 ;
4545 char * kwnames[] = {
e9d6f3a4 4546 (char *) "self",(char *) "other", NULL
1bd55598
RD
4547 };
4548
4549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4551 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4553 }
4554 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4555 arg2 = obj1;
1bd55598 4556 {
e9d6f3a4 4557 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 {
4561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4562 }
4563 return resultobj;
4564fail:
4565 return NULL;
4566}
4567
4568
4569SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj = 0;
4571 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4572 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4573 bool result;
4574 void *argp1 = 0 ;
4575 int res1 = 0 ;
1bd55598
RD
4576 PyObject * obj0 = 0 ;
4577 PyObject * obj1 = 0 ;
4578 char * kwnames[] = {
e9d6f3a4 4579 (char *) "self",(char *) "other", NULL
1bd55598
RD
4580 };
4581
4582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4584 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4586 }
4587 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4588 arg2 = obj1;
1bd55598 4589 {
e9d6f3a4 4590 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 {
4594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4595 }
4596 return resultobj;
4597fail:
4598 return NULL;
d55e5bfc
RD
4599}
4600
4601
fc46b7f3 4602SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4603 PyObject *resultobj = 0;
4604 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4605 bool arg2 = (bool) false ;
1bd55598
RD
4606 PyObject *result = 0 ;
4607 void *argp1 = 0 ;
4608 int res1 = 0 ;
fc46b7f3
RD
4609 bool val2 ;
4610 int ecode2 = 0 ;
4611 PyObject * obj0 = 0 ;
4612 PyObject * obj1 = 0 ;
4613 char * kwnames[] = {
4614 (char *) "self",(char *) "includeAlpha", NULL
4615 };
1bd55598 4616
fc46b7f3
RD
4617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4619 if (!SWIG_IsOK(res1)) {
4620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4621 }
4622 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4623 if (obj1) {
4624 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4625 if (!SWIG_IsOK(ecode2)) {
4626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4627 }
4628 arg2 = static_cast< bool >(val2);
4629 }
1bd55598 4630 {
fc46b7f3 4631 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 resultobj = result;
4635 return resultobj;
4636fail:
4637 return NULL;
d55e5bfc
RD
4638}
4639
4640
1bd55598
RD
4641SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4642 PyObject *resultobj = 0;
4643 wxColour *arg1 = (wxColour *) 0 ;
4644 unsigned long result;
4645 void *argp1 = 0 ;
4646 int res1 = 0 ;
4647 PyObject *swig_obj[1] ;
4648
4649 if (!args) SWIG_fail;
4650 swig_obj[0] = args;
4651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4652 if (!SWIG_IsOK(res1)) {
4653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4654 }
4655 arg1 = reinterpret_cast< wxColour * >(argp1);
4656 {
1bd55598 4657 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4661 return resultobj;
4662fail:
4663 return NULL;
4664}
4665
4666
4667SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4668 PyObject *obj;
4669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4670 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4671 return SWIG_Py_Void();
4672}
4673
4674SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4675 return SWIG_Python_InitShadowInstance(args);
4676}
4677
4678SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj = 0;
4680 int arg1 ;
4681 unsigned char *arg2 = (unsigned char *) 0 ;
4682 unsigned char *arg3 = (unsigned char *) 0 ;
4683 unsigned char *arg4 = (unsigned char *) 0 ;
4684 wxPalette *result = 0 ;
4685 int val1 ;
4686 int ecode1 = 0 ;
4687 void *argp2 = 0 ;
4688 int res2 = 0 ;
4689 void *argp3 = 0 ;
4690 int res3 = 0 ;
4691 void *argp4 = 0 ;
4692 int res4 = 0 ;
4693 PyObject * obj0 = 0 ;
4694 PyObject * obj1 = 0 ;
4695 PyObject * obj2 = 0 ;
4696 PyObject * obj3 = 0 ;
4697 char * kwnames[] = {
4698 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4699 };
4700
4701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4702 ecode1 = SWIG_AsVal_int(obj0, &val1);
4703 if (!SWIG_IsOK(ecode1)) {
4704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4705 }
4706 arg1 = static_cast< int >(val1);
4707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4708 if (!SWIG_IsOK(res2)) {
4709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4710 }
4711 arg2 = reinterpret_cast< unsigned char * >(argp2);
4712 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4713 if (!SWIG_IsOK(res3)) {
4714 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4715 }
4716 arg3 = reinterpret_cast< unsigned char * >(argp3);
4717 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4718 if (!SWIG_IsOK(res4)) {
4719 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4720 }
4721 arg4 = reinterpret_cast< unsigned char * >(argp4);
4722 {
4723 if (!wxPyCheckForApp()) SWIG_fail;
4724 PyThreadState* __tstate = wxPyBeginAllowThreads();
4725 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4726 wxPyEndAllowThreads(__tstate);
4727 if (PyErr_Occurred()) SWIG_fail;
4728 }
4729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4730 return resultobj;
4731fail:
4732 return NULL;
d55e5bfc
RD
4733}
4734
4735
1bd55598
RD
4736SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4737 PyObject *resultobj = 0;
4738 wxPalette *arg1 = (wxPalette *) 0 ;
4739 void *argp1 = 0 ;
4740 int res1 = 0 ;
4741 PyObject *swig_obj[1] ;
4742
4743 if (!args) SWIG_fail;
4744 swig_obj[0] = args;
4745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4746 if (!SWIG_IsOK(res1)) {
4747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4748 }
4749 arg1 = reinterpret_cast< wxPalette * >(argp1);
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 delete arg1;
d55e5bfc 4753
1bd55598
RD
4754 wxPyEndAllowThreads(__tstate);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 resultobj = SWIG_Py_Void();
4758 return resultobj;
4759fail:
4760 return NULL;
4761}
4762
4763
4764SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4765 PyObject *resultobj = 0;
4766 wxPalette *arg1 = (wxPalette *) 0 ;
4767 byte arg2 ;
4768 byte arg3 ;
4769 byte arg4 ;
4770 int result;
4771 void *argp1 = 0 ;
4772 int res1 = 0 ;
4773 unsigned char val2 ;
4774 int ecode2 = 0 ;
4775 unsigned char val3 ;
4776 int ecode3 = 0 ;
4777 unsigned char val4 ;
4778 int ecode4 = 0 ;
4779 PyObject * obj0 = 0 ;
4780 PyObject * obj1 = 0 ;
4781 PyObject * obj2 = 0 ;
4782 PyObject * obj3 = 0 ;
4783 char * kwnames[] = {
4784 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4785 };
4786
4787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4789 if (!SWIG_IsOK(res1)) {
4790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4791 }
4792 arg1 = reinterpret_cast< wxPalette * >(argp1);
4793 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4794 if (!SWIG_IsOK(ecode2)) {
4795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4796 }
4797 arg2 = static_cast< byte >(val2);
4798 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4799 if (!SWIG_IsOK(ecode3)) {
4800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4801 }
4802 arg3 = static_cast< byte >(val3);
4803 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4804 if (!SWIG_IsOK(ecode4)) {
4805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4806 }
4807 arg4 = static_cast< byte >(val4);
4808 {
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_From_int(static_cast< int >(result));
4815 return resultobj;
4816fail:
4817 return NULL;
4818}
4819
4820
4821SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj = 0;
4823 wxPalette *arg1 = (wxPalette *) 0 ;
4824 int arg2 ;
4825 byte *arg3 = (byte *) 0 ;
4826 byte *arg4 = (byte *) 0 ;
4827 byte *arg5 = (byte *) 0 ;
4828 bool result;
4829 void *argp1 = 0 ;
4830 int res1 = 0 ;
4831 int val2 ;
4832 int ecode2 = 0 ;
4833 byte temp3 ;
4834 int res3 = SWIG_TMPOBJ ;
4835 byte temp4 ;
4836 int res4 = SWIG_TMPOBJ ;
4837 byte temp5 ;
4838 int res5 = SWIG_TMPOBJ ;
4839 PyObject * obj0 = 0 ;
4840 PyObject * obj1 = 0 ;
4841 char * kwnames[] = {
4842 (char *) "self",(char *) "pixel", NULL
4843 };
4844
4845 arg3 = &temp3;
4846 arg4 = &temp4;
4847 arg5 = &temp5;
4848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4850 if (!SWIG_IsOK(res1)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4852 }
4853 arg1 = reinterpret_cast< wxPalette * >(argp1);
4854 ecode2 = SWIG_AsVal_int(obj1, &val2);
4855 if (!SWIG_IsOK(ecode2)) {
4856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4857 }
4858 arg2 = static_cast< int >(val2);
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 {
4866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4867 }
4868 if (SWIG_IsTmpObj(res3)) {
4869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4870 } else {
4871 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4873 }
4874 if (SWIG_IsTmpObj(res4)) {
4875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4876 } else {
4877 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4879 }
4880 if (SWIG_IsTmpObj(res5)) {
4881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4882 } else {
4883 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4885 }
4886 return resultobj;
4887fail:
4888 return NULL;
d55e5bfc
RD
4889}
4890
4891
1bd55598
RD
4892SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4893 PyObject *resultobj = 0;
4894 wxPalette *arg1 = (wxPalette *) 0 ;
4895 int result;
4896 void *argp1 = 0 ;
4897 int res1 = 0 ;
4898 PyObject *swig_obj[1] ;
4899
4900 if (!args) SWIG_fail;
4901 swig_obj[0] = args;
4902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4903 if (!SWIG_IsOK(res1)) {
4904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4905 }
4906 arg1 = reinterpret_cast< wxPalette * >(argp1);
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4910 wxPyEndAllowThreads(__tstate);
4911 if (PyErr_Occurred()) SWIG_fail;
4912 }
4913 resultobj = SWIG_From_int(static_cast< int >(result));
4914 return resultobj;
4915fail:
4916 return NULL;
d55e5bfc
RD
4917}
4918
4919
b39fe951 4920SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4921 PyObject *resultobj = 0;
4922 wxPalette *arg1 = (wxPalette *) 0 ;
4923 bool result;
4924 void *argp1 = 0 ;
4925 int res1 = 0 ;
4926 PyObject *swig_obj[1] ;
4927
4928 if (!args) SWIG_fail;
4929 swig_obj[0] = args;
4930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4931 if (!SWIG_IsOK(res1)) {
b39fe951 4932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4933 }
4934 arg1 = reinterpret_cast< wxPalette * >(argp1);
4935 {
4936 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4937 result = (bool)(arg1)->IsOk();
1bd55598
RD
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 {
4942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4943 }
4944 return resultobj;
4945fail:
4946 return NULL;
4947}
4948
4949
4950SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4951 PyObject *obj;
4952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4953 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4954 return SWIG_Py_Void();
4955}
4956
4957SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4958 return SWIG_Python_InitShadowInstance(args);
4959}
4960
4961SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4962 PyObject *resultobj = 0;
4963 wxColour *arg1 = 0 ;
4964 int arg2 = (int) 1 ;
4965 int arg3 = (int) wxSOLID ;
4966 wxPen *result = 0 ;
4967 wxColour temp1 ;
4968 int val2 ;
4969 int ecode2 = 0 ;
4970 int val3 ;
4971 int ecode3 = 0 ;
4972 PyObject * obj0 = 0 ;
4973 PyObject * obj1 = 0 ;
4974 PyObject * obj2 = 0 ;
4975 char * kwnames[] = {
4976 (char *) "colour",(char *) "width",(char *) "style", NULL
4977 };
4978
4979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4980 {
4981 arg1 = &temp1;
4982 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4983 }
4984 if (obj1) {
4985 ecode2 = SWIG_AsVal_int(obj1, &val2);
4986 if (!SWIG_IsOK(ecode2)) {
4987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4988 }
4989 arg2 = static_cast< int >(val2);
4990 }
4991 if (obj2) {
4992 ecode3 = SWIG_AsVal_int(obj2, &val3);
4993 if (!SWIG_IsOK(ecode3)) {
4994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4995 }
4996 arg3 = static_cast< int >(val3);
4997 }
4998 {
4999 if (!wxPyCheckForApp()) SWIG_fail;
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5006 return resultobj;
5007fail:
5008 return NULL;
d55e5bfc
RD
5009}
5010
5011
1bd55598
RD
5012SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5013 PyObject *resultobj = 0;
5014 wxPen *arg1 = (wxPen *) 0 ;
5015 void *argp1 = 0 ;
5016 int res1 = 0 ;
5017 PyObject *swig_obj[1] ;
5018
5019 if (!args) SWIG_fail;
5020 swig_obj[0] = args;
5021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5022 if (!SWIG_IsOK(res1)) {
5023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5024 }
5025 arg1 = reinterpret_cast< wxPen * >(argp1);
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 delete arg1;
f78cc896 5029
1bd55598
RD
5030 wxPyEndAllowThreads(__tstate);
5031 if (PyErr_Occurred()) SWIG_fail;
5032 }
5033 resultobj = SWIG_Py_Void();
5034 return resultobj;
5035fail:
5036 return NULL;
f78cc896
RD
5037}
5038
5039
1bd55598
RD
5040SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5041 PyObject *resultobj = 0;
5042 wxPen *arg1 = (wxPen *) 0 ;
5043 int result;
5044 void *argp1 = 0 ;
5045 int res1 = 0 ;
5046 PyObject *swig_obj[1] ;
5047
5048 if (!args) SWIG_fail;
5049 swig_obj[0] = args;
5050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5051 if (!SWIG_IsOK(res1)) {
5052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5053 }
5054 arg1 = reinterpret_cast< wxPen * >(argp1);
5055 {
5056 PyThreadState* __tstate = wxPyBeginAllowThreads();
5057 result = (int)(arg1)->GetCap();
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 resultobj = SWIG_From_int(static_cast< int >(result));
5062 return resultobj;
5063fail:
5064 return NULL;
d55e5bfc
RD
5065}
5066
5067
1bd55598
RD
5068SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 PyObject *resultobj = 0;
5070 wxPen *arg1 = (wxPen *) 0 ;
5071 wxColour result;
5072 void *argp1 = 0 ;
5073 int res1 = 0 ;
5074 PyObject *swig_obj[1] ;
5075
5076 if (!args) SWIG_fail;
5077 swig_obj[0] = args;
5078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5079 if (!SWIG_IsOK(res1)) {
5080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5081 }
5082 arg1 = reinterpret_cast< wxPen * >(argp1);
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 result = (arg1)->GetColour();
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5090 return resultobj;
5091fail:
5092 return NULL;
d55e5bfc
RD
5093}
5094
5095
1bd55598
RD
5096SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5097 PyObject *resultobj = 0;
5098 wxPen *arg1 = (wxPen *) 0 ;
5099 int result;
5100 void *argp1 = 0 ;
5101 int res1 = 0 ;
5102 PyObject *swig_obj[1] ;
5103
5104 if (!args) SWIG_fail;
5105 swig_obj[0] = args;
5106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5107 if (!SWIG_IsOK(res1)) {
5108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5109 }
5110 arg1 = reinterpret_cast< wxPen * >(argp1);
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 result = (int)(arg1)->GetJoin();
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 resultobj = SWIG_From_int(static_cast< int >(result));
5118 return resultobj;
5119fail:
5120 return NULL;
d55e5bfc
RD
5121}
5122
5123
1bd55598
RD
5124SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5125 PyObject *resultobj = 0;
5126 wxPen *arg1 = (wxPen *) 0 ;
5127 int result;
5128 void *argp1 = 0 ;
5129 int res1 = 0 ;
5130 PyObject *swig_obj[1] ;
5131
5132 if (!args) SWIG_fail;
5133 swig_obj[0] = args;
5134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5135 if (!SWIG_IsOK(res1)) {
5136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5137 }
5138 arg1 = reinterpret_cast< wxPen * >(argp1);
5139 {
5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
5141 result = (int)(arg1)->GetStyle();
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = SWIG_From_int(static_cast< int >(result));
5146 return resultobj;
5147fail:
5148 return NULL;
d55e5bfc
RD
5149}
5150
5151
1bd55598
RD
5152SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5153 PyObject *resultobj = 0;
5154 wxPen *arg1 = (wxPen *) 0 ;
5155 int result;
5156 void *argp1 = 0 ;
5157 int res1 = 0 ;
5158 PyObject *swig_obj[1] ;
5159
5160 if (!args) SWIG_fail;
5161 swig_obj[0] = args;
5162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5165 }
5166 arg1 = reinterpret_cast< wxPen * >(argp1);
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (int)(arg1)->GetWidth();
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_From_int(static_cast< int >(result));
5174 return resultobj;
5175fail:
5176 return NULL;
d55e5bfc
RD
5177}
5178
5179
b39fe951 5180SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5181 PyObject *resultobj = 0;
5182 wxPen *arg1 = (wxPen *) 0 ;
5183 bool result;
5184 void *argp1 = 0 ;
5185 int res1 = 0 ;
5186 PyObject *swig_obj[1] ;
5187
5188 if (!args) SWIG_fail;
5189 swig_obj[0] = args;
5190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5191 if (!SWIG_IsOK(res1)) {
b39fe951 5192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5193 }
5194 arg1 = reinterpret_cast< wxPen * >(argp1);
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5197 result = (bool)(arg1)->IsOk();
1bd55598
RD
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 {
5202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5203 }
5204 return resultobj;
5205fail:
5206 return NULL;
5207}
5208
5209
5210SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj = 0;
5212 wxPen *arg1 = (wxPen *) 0 ;
5213 int arg2 ;
5214 void *argp1 = 0 ;
5215 int res1 = 0 ;
5216 int val2 ;
5217 int ecode2 = 0 ;
5218 PyObject * obj0 = 0 ;
5219 PyObject * obj1 = 0 ;
5220 char * kwnames[] = {
5221 (char *) "self",(char *) "cap_style", NULL
5222 };
5223
5224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5226 if (!SWIG_IsOK(res1)) {
5227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5228 }
5229 arg1 = reinterpret_cast< wxPen * >(argp1);
5230 ecode2 = SWIG_AsVal_int(obj1, &val2);
5231 if (!SWIG_IsOK(ecode2)) {
5232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5233 }
5234 arg2 = static_cast< int >(val2);
5235 {
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 (arg1)->SetCap(arg2);
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 resultobj = SWIG_Py_Void();
5242 return resultobj;
5243fail:
5244 return NULL;
5245}
5246
5247
5248SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj = 0;
5250 wxPen *arg1 = (wxPen *) 0 ;
5251 wxColour *arg2 = 0 ;
5252 void *argp1 = 0 ;
5253 int res1 = 0 ;
5254 wxColour temp2 ;
5255 PyObject * obj0 = 0 ;
5256 PyObject * obj1 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "colour", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5265 }
5266 arg1 = reinterpret_cast< wxPen * >(argp1);
5267 {
5268 arg2 = &temp2;
5269 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5270 }
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 (arg1)->SetColour(*arg2);
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 resultobj = SWIG_Py_Void();
5278 return resultobj;
5279fail:
5280 return NULL;
5281}
5282
5283
5284SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5285 PyObject *resultobj = 0;
5286 wxPen *arg1 = (wxPen *) 0 ;
5287 int arg2 ;
5288 void *argp1 = 0 ;
5289 int res1 = 0 ;
5290 int val2 ;
5291 int ecode2 = 0 ;
5292 PyObject * obj0 = 0 ;
5293 PyObject * obj1 = 0 ;
5294 char * kwnames[] = {
5295 (char *) "self",(char *) "join_style", NULL
5296 };
5297
5298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5300 if (!SWIG_IsOK(res1)) {
5301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5302 }
5303 arg1 = reinterpret_cast< wxPen * >(argp1);
5304 ecode2 = SWIG_AsVal_int(obj1, &val2);
5305 if (!SWIG_IsOK(ecode2)) {
5306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5307 }
5308 arg2 = static_cast< int >(val2);
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 (arg1)->SetJoin(arg2);
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 resultobj = SWIG_Py_Void();
5316 return resultobj;
5317fail:
5318 return NULL;
5319}
5320
5321
5322SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj = 0;
5324 wxPen *arg1 = (wxPen *) 0 ;
5325 int arg2 ;
5326 void *argp1 = 0 ;
5327 int res1 = 0 ;
5328 int val2 ;
5329 int ecode2 = 0 ;
5330 PyObject * obj0 = 0 ;
5331 PyObject * obj1 = 0 ;
5332 char * kwnames[] = {
5333 (char *) "self",(char *) "style", NULL
5334 };
5335
5336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5340 }
5341 arg1 = reinterpret_cast< wxPen * >(argp1);
5342 ecode2 = SWIG_AsVal_int(obj1, &val2);
5343 if (!SWIG_IsOK(ecode2)) {
5344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5345 }
5346 arg2 = static_cast< int >(val2);
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->SetStyle(arg2);
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355fail:
5356 return NULL;
5357}
5358
5359
5360SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 wxPen *arg1 = (wxPen *) 0 ;
5363 int arg2 ;
5364 void *argp1 = 0 ;
5365 int res1 = 0 ;
5366 int val2 ;
5367 int ecode2 = 0 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 char * kwnames[] = {
5371 (char *) "self",(char *) "width", NULL
5372 };
5373
5374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5376 if (!SWIG_IsOK(res1)) {
5377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5378 }
5379 arg1 = reinterpret_cast< wxPen * >(argp1);
5380 ecode2 = SWIG_AsVal_int(obj1, &val2);
5381 if (!SWIG_IsOK(ecode2)) {
5382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5383 }
5384 arg2 = static_cast< int >(val2);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 (arg1)->SetWidth(arg2);
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = SWIG_Py_Void();
5392 return resultobj;
5393fail:
5394 return NULL;
5395}
5396
5397
5398SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj = 0;
5400 wxPen *arg1 = (wxPen *) 0 ;
5401 int arg2 ;
5402 wxDash *arg3 = (wxDash *) 0 ;
5403 void *argp1 = 0 ;
5404 int res1 = 0 ;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 char * kwnames[] = {
5408 (char *) "self",(char *) "dashes", NULL
5409 };
5410
5411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5413 if (!SWIG_IsOK(res1)) {
5414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5415 }
5416 arg1 = reinterpret_cast< wxPen * >(argp1);
5417 {
5418 arg2 = PyList_Size(obj1);
5419 arg3 = (wxDash*)byte_LIST_helper(obj1);
5420 if (arg3 == NULL) SWIG_fail;
5421 }
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 (arg1)->SetDashes(arg2,arg3);
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = SWIG_Py_Void();
5429 {
5430 if (arg3) delete [] arg3;
5431 }
5432 return resultobj;
5433fail:
5434 {
5435 if (arg3) delete [] arg3;
5436 }
5437 return NULL;
d6c14a4c
RD
5438}
5439
5440
1bd55598
RD
5441SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5442 PyObject *resultobj = 0;
5443 wxPen *arg1 = (wxPen *) 0 ;
5444 PyObject *result = 0 ;
5445 void *argp1 = 0 ;
5446 int res1 = 0 ;
5447 PyObject *swig_obj[1] ;
5448
5449 if (!args) SWIG_fail;
5450 swig_obj[0] = args;
5451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5452 if (!SWIG_IsOK(res1)) {
5453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5454 }
5455 arg1 = reinterpret_cast< wxPen * >(argp1);
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (PyObject *)wxPen_GetDashes(arg1);
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 resultobj = result;
5463 return resultobj;
5464fail:
5465 return NULL;
5466}
5467
5468
5469SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5470 PyObject *resultobj = 0;
5471 wxPen *arg1 = (wxPen *) 0 ;
5472 PyObject *arg2 = (PyObject *) 0 ;
5473 PyObject *arg3 = (PyObject *) 0 ;
5474 void *argp1 = 0 ;
5475 int res1 = 0 ;
5476 PyObject * obj0 = 0 ;
5477 PyObject * obj1 = 0 ;
5478 PyObject * obj2 = 0 ;
5479 char * kwnames[] = {
5480 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5481 };
5482
5483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5485 if (!SWIG_IsOK(res1)) {
5486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5487 }
5488 arg1 = reinterpret_cast< wxPen * >(argp1);
5489 arg2 = obj1;
5490 arg3 = obj2;
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 wxPen__SetDashes(arg1,arg2,arg3);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_Py_Void();
5498 return resultobj;
5499fail:
5500 return NULL;
5501}
5502
5503
5504SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj = 0;
5506 wxPen *arg1 = (wxPen *) 0 ;
5507 wxPen *arg2 = (wxPen *) 0 ;
5508 bool result;
5509 void *argp1 = 0 ;
5510 int res1 = 0 ;
5511 void *argp2 = 0 ;
5512 int res2 = 0 ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 char * kwnames[] = {
5516 (char *) "self",(char *) "other", NULL
5517 };
5518
5519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5521 if (!SWIG_IsOK(res1)) {
5522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5523 }
5524 arg1 = reinterpret_cast< wxPen * >(argp1);
5525 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5526 if (!SWIG_IsOK(res2)) {
5527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5528 }
5529 arg2 = reinterpret_cast< wxPen * >(argp2);
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 {
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 }
5539 return resultobj;
5540fail:
5541 return NULL;
5542}
5543
5544
5545SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj = 0;
5547 wxPen *arg1 = (wxPen *) 0 ;
5548 wxPen *arg2 = (wxPen *) 0 ;
5549 bool result;
5550 void *argp1 = 0 ;
5551 int res1 = 0 ;
5552 void *argp2 = 0 ;
5553 int res2 = 0 ;
5554 PyObject * obj0 = 0 ;
5555 PyObject * obj1 = 0 ;
5556 char * kwnames[] = {
5557 (char *) "self",(char *) "other", NULL
5558 };
5559
5560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5562 if (!SWIG_IsOK(res1)) {
5563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5564 }
5565 arg1 = reinterpret_cast< wxPen * >(argp1);
5566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5567 if (!SWIG_IsOK(res2)) {
5568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5569 }
5570 arg2 = reinterpret_cast< wxPen * >(argp2);
5571 {
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 {
5578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5579 }
5580 return resultobj;
5581fail:
5582 return NULL;
5583}
d55e5bfc
RD
5584
5585
1bd55598
RD
5586SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5587 PyObject *obj;
5588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5589 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5590 return SWIG_Py_Void();
d55e5bfc
RD
5591}
5592
1bd55598
RD
5593SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5594 return SWIG_Python_InitShadowInstance(args);
5595}
d55e5bfc 5596
1bd55598
RD
5597SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj = 0;
5599 wxColour *arg1 = 0 ;
5600 int arg2 = (int) wxSOLID ;
5601 wxBrush *result = 0 ;
5602 wxColour temp1 ;
5603 int val2 ;
5604 int ecode2 = 0 ;
5605 PyObject * obj0 = 0 ;
5606 PyObject * obj1 = 0 ;
5607 char * kwnames[] = {
5608 (char *) "colour",(char *) "style", NULL
5609 };
5610
5611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5612 {
5613 arg1 = &temp1;
5614 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5615 }
5616 if (obj1) {
5617 ecode2 = SWIG_AsVal_int(obj1, &val2);
5618 if (!SWIG_IsOK(ecode2)) {
5619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5620 }
5621 arg2 = static_cast< int >(val2);
5622 }
5623 {
5624 if (!wxPyCheckForApp()) SWIG_fail;
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5631 return resultobj;
5632fail:
5633 return NULL;
5634}
5635
5636
5637SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5638 PyObject *resultobj = 0;
5639 wxBitmap *arg1 = 0 ;
5640 wxBrush *result = 0 ;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 PyObject * obj0 = 0 ;
5644 char * kwnames[] = {
5645 (char *) "stippleBitmap", NULL
5646 };
5647
5648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5649 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5650 if (!SWIG_IsOK(res1)) {
5651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5652 }
5653 if (!argp1) {
5654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5655 }
5656 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5657 {
5658 if (!wxPyCheckForApp()) SWIG_fail;
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5661 wxPyEndAllowThreads(__tstate);
5662 if (PyErr_Occurred()) SWIG_fail;
5663 }
5664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5665 return resultobj;
5666fail:
5667 return NULL;
d55e5bfc
RD
5668}
5669
5670
1bd55598
RD
5671SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5672 PyObject *resultobj = 0;
5673 wxBrush *arg1 = (wxBrush *) 0 ;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 PyObject *swig_obj[1] ;
5677
5678 if (!args) SWIG_fail;
5679 swig_obj[0] = args;
5680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5681 if (!SWIG_IsOK(res1)) {
5682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5683 }
5684 arg1 = reinterpret_cast< wxBrush * >(argp1);
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 delete arg1;
d55e5bfc 5688
1bd55598
RD
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 resultobj = SWIG_Py_Void();
5693 return resultobj;
5694fail:
5695 return NULL;
5696}
5697
5698
5699SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5700 PyObject *resultobj = 0;
5701 wxBrush *arg1 = (wxBrush *) 0 ;
5702 wxColour *arg2 = 0 ;
5703 void *argp1 = 0 ;
5704 int res1 = 0 ;
5705 wxColour temp2 ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 char * kwnames[] = {
5709 (char *) "self",(char *) "col", NULL
5710 };
5711
5712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5714 if (!SWIG_IsOK(res1)) {
5715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5716 }
5717 arg1 = reinterpret_cast< wxBrush * >(argp1);
5718 {
5719 arg2 = &temp2;
5720 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5721 }
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 (arg1)->SetColour((wxColour const &)*arg2);
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_Py_Void();
5729 return resultobj;
5730fail:
5731 return NULL;
5732}
5733
5734
5735SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj = 0;
5737 wxBrush *arg1 = (wxBrush *) 0 ;
5738 int arg2 ;
5739 void *argp1 = 0 ;
5740 int res1 = 0 ;
5741 int val2 ;
5742 int ecode2 = 0 ;
5743 PyObject * obj0 = 0 ;
5744 PyObject * obj1 = 0 ;
5745 char * kwnames[] = {
5746 (char *) "self",(char *) "style", NULL
5747 };
5748
5749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5751 if (!SWIG_IsOK(res1)) {
5752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5753 }
5754 arg1 = reinterpret_cast< wxBrush * >(argp1);
5755 ecode2 = SWIG_AsVal_int(obj1, &val2);
5756 if (!SWIG_IsOK(ecode2)) {
5757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5758 }
5759 arg2 = static_cast< int >(val2);
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 (arg1)->SetStyle(arg2);
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 resultobj = SWIG_Py_Void();
5767 return resultobj;
5768fail:
5769 return NULL;
5770}
5771
5772
5773SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj = 0;
5775 wxBrush *arg1 = (wxBrush *) 0 ;
5776 wxBitmap *arg2 = 0 ;
5777 void *argp1 = 0 ;
5778 int res1 = 0 ;
5779 void *argp2 = 0 ;
5780 int res2 = 0 ;
5781 PyObject * obj0 = 0 ;
5782 PyObject * obj1 = 0 ;
5783 char * kwnames[] = {
5784 (char *) "self",(char *) "stipple", NULL
5785 };
5786
5787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5789 if (!SWIG_IsOK(res1)) {
5790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5791 }
5792 arg1 = reinterpret_cast< wxBrush * >(argp1);
5793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5794 if (!SWIG_IsOK(res2)) {
5795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5796 }
5797 if (!argp2) {
5798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5799 }
5800 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
5803 (arg1)->SetStipple((wxBitmap const &)*arg2);
5804 wxPyEndAllowThreads(__tstate);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 }
5807 resultobj = SWIG_Py_Void();
5808 return resultobj;
5809fail:
5810 return NULL;
d55e5bfc
RD
5811}
5812
5813
1bd55598
RD
5814SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5815 PyObject *resultobj = 0;
5816 wxBrush *arg1 = (wxBrush *) 0 ;
5817 wxColour result;
5818 void *argp1 = 0 ;
5819 int res1 = 0 ;
5820 PyObject *swig_obj[1] ;
5821
5822 if (!args) SWIG_fail;
5823 swig_obj[0] = args;
5824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5825 if (!SWIG_IsOK(res1)) {
5826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5827 }
5828 arg1 = reinterpret_cast< wxBrush * >(argp1);
5829 {
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 result = ((wxBrush const *)arg1)->GetColour();
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5836 return resultobj;
5837fail:
5838 return NULL;
d55e5bfc
RD
5839}
5840
5841
1bd55598
RD
5842SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5843 PyObject *resultobj = 0;
5844 wxBrush *arg1 = (wxBrush *) 0 ;
5845 int result;
5846 void *argp1 = 0 ;
5847 int res1 = 0 ;
5848 PyObject *swig_obj[1] ;
5849
5850 if (!args) SWIG_fail;
5851 swig_obj[0] = args;
5852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5853 if (!SWIG_IsOK(res1)) {
5854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5855 }
5856 arg1 = reinterpret_cast< wxBrush * >(argp1);
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 result = (int)((wxBrush const *)arg1)->GetStyle();
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_From_int(static_cast< int >(result));
5864 return resultobj;
5865fail:
5866 return NULL;
d55e5bfc
RD
5867}
5868
5869
1bd55598
RD
5870SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5871 PyObject *resultobj = 0;
5872 wxBrush *arg1 = (wxBrush *) 0 ;
5873 wxBitmap *result = 0 ;
5874 void *argp1 = 0 ;
5875 int res1 = 0 ;
5876 PyObject *swig_obj[1] ;
5877
5878 if (!args) SWIG_fail;
5879 swig_obj[0] = args;
5880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5881 if (!SWIG_IsOK(res1)) {
5882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5883 }
5884 arg1 = reinterpret_cast< wxBrush * >(argp1);
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5892 return resultobj;
5893fail:
5894 return NULL;
d55e5bfc
RD
5895}
5896
5897
1bd55598
RD
5898SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5899 PyObject *resultobj = 0;
5900 wxBrush *arg1 = (wxBrush *) 0 ;
5901 bool result;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5911 }
5912 arg1 = reinterpret_cast< wxBrush * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = (bool)((wxBrush const *)arg1)->IsHatch();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 {
5920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5921 }
5922 return resultobj;
5923fail:
5924 return NULL;
d55e5bfc
RD
5925}
5926
5927
b39fe951 5928SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5929 PyObject *resultobj = 0;
5930 wxBrush *arg1 = (wxBrush *) 0 ;
5931 bool result;
5932 void *argp1 = 0 ;
5933 int res1 = 0 ;
5934 PyObject *swig_obj[1] ;
5935
5936 if (!args) SWIG_fail;
5937 swig_obj[0] = args;
5938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5939 if (!SWIG_IsOK(res1)) {
b39fe951 5940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
5941 }
5942 arg1 = reinterpret_cast< wxBrush * >(argp1);
5943 {
5944 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5945 result = (bool)(arg1)->IsOk();
1bd55598
RD
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 {
5950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5951 }
5952 return resultobj;
5953fail:
5954 return NULL;
d55e5bfc
RD
5955}
5956
5957
1bd55598
RD
5958SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5959 PyObject *resultobj = 0;
5960 wxBrush *arg1 = (wxBrush *) 0 ;
5961 short result;
5962 void *argp1 = 0 ;
5963 int res1 = 0 ;
5964 PyObject *swig_obj[1] ;
5965
5966 if (!args) SWIG_fail;
5967 swig_obj[0] = args;
5968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5969 if (!SWIG_IsOK(res1)) {
5970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5971 }
5972 arg1 = reinterpret_cast< wxBrush * >(argp1);
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (short)(arg1)->MacGetTheme();
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 resultobj = SWIG_From_short(static_cast< short >(result));
5980 return resultobj;
5981fail:
5982 return NULL;
5983}
5984
5985
5986SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5987 PyObject *resultobj = 0;
5988 wxBrush *arg1 = (wxBrush *) 0 ;
5989 short arg2 ;
5990 void *argp1 = 0 ;
5991 int res1 = 0 ;
5992 short val2 ;
5993 int ecode2 = 0 ;
5994 PyObject * obj0 = 0 ;
5995 PyObject * obj1 = 0 ;
5996 char * kwnames[] = {
5997 (char *) "self",(char *) "macThemeBrush", NULL
5998 };
5999
6000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6002 if (!SWIG_IsOK(res1)) {
6003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6004 }
6005 arg1 = reinterpret_cast< wxBrush * >(argp1);
6006 ecode2 = SWIG_AsVal_short(obj1, &val2);
6007 if (!SWIG_IsOK(ecode2)) {
6008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6009 }
6010 arg2 = static_cast< short >(val2);
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 (arg1)->MacSetTheme(arg2);
6014 wxPyEndAllowThreads(__tstate);
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 resultobj = SWIG_Py_Void();
6018 return resultobj;
6019fail:
6020 return NULL;
d55e5bfc
RD
6021}
6022
6023
1bd55598
RD
6024SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6025 PyObject *obj;
6026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6027 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6028 return SWIG_Py_Void();
d55e5bfc
RD
6029}
6030
1bd55598
RD
6031SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6032 return SWIG_Python_InitShadowInstance(args);
6033}
d55e5bfc 6034
1bd55598
RD
6035SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6036 PyObject *resultobj = 0;
6037 wxString *arg1 = 0 ;
6038 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6039 wxBitmap *result = 0 ;
6040 bool temp1 = false ;
6041 int val2 ;
6042 int ecode2 = 0 ;
6043 PyObject * obj0 = 0 ;
6044 PyObject * obj1 = 0 ;
6045 char * kwnames[] = {
6046 (char *) "name",(char *) "type", NULL
6047 };
6048
6049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6050 {
6051 arg1 = wxString_in_helper(obj0);
6052 if (arg1 == NULL) SWIG_fail;
6053 temp1 = true;
6054 }
6055 if (obj1) {
6056 ecode2 = SWIG_AsVal_int(obj1, &val2);
6057 if (!SWIG_IsOK(ecode2)) {
6058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6059 }
6060 arg2 = static_cast< wxBitmapType >(val2);
6061 }
6062 {
6063 if (!wxPyCheckForApp()) SWIG_fail;
6064 PyThreadState* __tstate = wxPyBeginAllowThreads();
6065 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6070 {
6071 if (temp1)
6072 delete arg1;
6073 }
6074 return resultobj;
6075fail:
6076 {
6077 if (temp1)
6078 delete arg1;
6079 }
6080 return NULL;
d55e5bfc
RD
6081}
6082
6083
1bd55598
RD
6084SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6085 PyObject *resultobj = 0;
6086 wxBitmap *arg1 = (wxBitmap *) 0 ;
6087 void *argp1 = 0 ;
6088 int res1 = 0 ;
6089 PyObject *swig_obj[1] ;
6090
6091 if (!args) SWIG_fail;
6092 swig_obj[0] = args;
6093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6094 if (!SWIG_IsOK(res1)) {
6095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6096 }
6097 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6098 {
1bd55598 6099 delete arg1;
d55e5bfc 6100
1bd55598
RD
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 resultobj = SWIG_Py_Void();
6104 return resultobj;
6105fail:
6106 return NULL;
6107}
6108
6109
6110SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6111 PyObject *resultobj = 0;
6112 int arg1 ;
6113 int arg2 ;
6114 int arg3 = (int) -1 ;
6115 wxBitmap *result = 0 ;
6116 int val1 ;
6117 int ecode1 = 0 ;
6118 int val2 ;
6119 int ecode2 = 0 ;
6120 int val3 ;
6121 int ecode3 = 0 ;
6122 PyObject * obj0 = 0 ;
6123 PyObject * obj1 = 0 ;
6124 PyObject * obj2 = 0 ;
6125 char * kwnames[] = {
6126 (char *) "width",(char *) "height",(char *) "depth", NULL
6127 };
6128
6129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6130 ecode1 = SWIG_AsVal_int(obj0, &val1);
6131 if (!SWIG_IsOK(ecode1)) {
6132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6133 }
6134 arg1 = static_cast< int >(val1);
6135 ecode2 = SWIG_AsVal_int(obj1, &val2);
6136 if (!SWIG_IsOK(ecode2)) {
6137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6138 }
6139 arg2 = static_cast< int >(val2);
6140 if (obj2) {
6141 ecode3 = SWIG_AsVal_int(obj2, &val3);
6142 if (!SWIG_IsOK(ecode3)) {
6143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6144 }
6145 arg3 = static_cast< int >(val3);
6146 }
6147 {
6148 if (!wxPyCheckForApp()) SWIG_fail;
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6151 wxPyEndAllowThreads(__tstate);
6152 if (PyErr_Occurred()) SWIG_fail;
6153 }
6154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6155 return resultobj;
6156fail:
6157 return NULL;
6158}
6159
6160
6161SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6162 PyObject *resultobj = 0;
6163 wxIcon *arg1 = 0 ;
6164 wxBitmap *result = 0 ;
6165 void *argp1 = 0 ;
6166 int res1 = 0 ;
6167 PyObject * obj0 = 0 ;
6168 char * kwnames[] = {
6169 (char *) "icon", NULL
6170 };
6171
6172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6173 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6174 if (!SWIG_IsOK(res1)) {
6175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6176 }
6177 if (!argp1) {
6178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6179 }
6180 arg1 = reinterpret_cast< wxIcon * >(argp1);
6181 {
6182 if (!wxPyCheckForApp()) SWIG_fail;
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6189 return resultobj;
6190fail:
6191 return NULL;
6192}
6193
6194
6195SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj = 0;
6197 wxImage *arg1 = 0 ;
6198 int arg2 = (int) -1 ;
6199 wxBitmap *result = 0 ;
6200 void *argp1 = 0 ;
6201 int res1 = 0 ;
6202 int val2 ;
6203 int ecode2 = 0 ;
6204 PyObject * obj0 = 0 ;
6205 PyObject * obj1 = 0 ;
6206 char * kwnames[] = {
6207 (char *) "image",(char *) "depth", NULL
6208 };
6209
6210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6211 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6214 }
6215 if (!argp1) {
6216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6217 }
6218 arg1 = reinterpret_cast< wxImage * >(argp1);
6219 if (obj1) {
6220 ecode2 = SWIG_AsVal_int(obj1, &val2);
6221 if (!SWIG_IsOK(ecode2)) {
6222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6223 }
6224 arg2 = static_cast< int >(val2);
6225 }
6226 {
6227 if (!wxPyCheckForApp()) SWIG_fail;
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6234 return resultobj;
6235fail:
6236 return NULL;
d55e5bfc
RD
6237}
6238
6239
1bd55598
RD
6240SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj = 0;
6242 PyObject *arg1 = (PyObject *) 0 ;
6243 wxBitmap *result = 0 ;
6244 PyObject * obj0 = 0 ;
6245 char * kwnames[] = {
6246 (char *) "listOfStrings", NULL
6247 };
6248
6249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6250 arg1 = obj0;
6251 {
6252 if (!wxPyCheckForApp()) SWIG_fail;
6253 PyThreadState* __tstate = wxPyBeginAllowThreads();
6254 result = (wxBitmap *)new_wxBitmap(arg1);
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6259 return resultobj;
6260fail:
6261 return NULL;
6262}
6263
6264
6265SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj = 0;
6267 PyObject *arg1 = (PyObject *) 0 ;
6268 int arg2 ;
6269 int arg3 ;
6270 int arg4 = (int) 1 ;
6271 wxBitmap *result = 0 ;
6272 int val2 ;
6273 int ecode2 = 0 ;
6274 int val3 ;
6275 int ecode3 = 0 ;
6276 int val4 ;
6277 int ecode4 = 0 ;
6278 PyObject * obj0 = 0 ;
6279 PyObject * obj1 = 0 ;
6280 PyObject * obj2 = 0 ;
6281 PyObject * obj3 = 0 ;
6282 char * kwnames[] = {
6283 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6284 };
6285
6286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6287 arg1 = obj0;
6288 ecode2 = SWIG_AsVal_int(obj1, &val2);
6289 if (!SWIG_IsOK(ecode2)) {
6290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6291 }
6292 arg2 = static_cast< int >(val2);
6293 ecode3 = SWIG_AsVal_int(obj2, &val3);
6294 if (!SWIG_IsOK(ecode3)) {
6295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6296 }
6297 arg3 = static_cast< int >(val3);
6298 if (obj3) {
6299 ecode4 = SWIG_AsVal_int(obj3, &val4);
6300 if (!SWIG_IsOK(ecode4)) {
6301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6302 }
6303 arg4 = static_cast< int >(val4);
6304 }
6305 {
6306 if (!wxPyCheckForApp()) SWIG_fail;
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6309 wxPyEndAllowThreads(__tstate);
6310 if (PyErr_Occurred()) SWIG_fail;
6311 }
6312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6313 return resultobj;
6314fail:
6315 return NULL;
d55e5bfc
RD
6316}
6317
6318
b39fe951 6319SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6320 PyObject *resultobj = 0;
6321 wxBitmap *arg1 = (wxBitmap *) 0 ;
6322 bool result;
6323 void *argp1 = 0 ;
6324 int res1 = 0 ;
6325 PyObject *swig_obj[1] ;
6326
6327 if (!args) SWIG_fail;
6328 swig_obj[0] = args;
6329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
b39fe951 6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6332 }
6333 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6334 {
b39fe951 6335 result = (bool)(arg1)->IsOk();
1bd55598
RD
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 {
6339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6340 }
6341 return resultobj;
6342fail:
6343 return NULL;
d55e5bfc
RD
6344}
6345
6346
1bd55598
RD
6347SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6348 PyObject *resultobj = 0;
6349 wxBitmap *arg1 = (wxBitmap *) 0 ;
6350 int result;
6351 void *argp1 = 0 ;
6352 int res1 = 0 ;
6353 PyObject *swig_obj[1] ;
6354
6355 if (!args) SWIG_fail;
6356 swig_obj[0] = args;
6357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6360 }
6361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6362 {
1bd55598 6363 result = (int)(arg1)->GetWidth();
1bd55598
RD
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_From_int(static_cast< int >(result));
6367 return resultobj;
6368fail:
6369 return NULL;
070c48b4
RD
6370}
6371
6372
1bd55598
RD
6373SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6374 PyObject *resultobj = 0;
6375 wxBitmap *arg1 = (wxBitmap *) 0 ;
6376 int result;
6377 void *argp1 = 0 ;
6378 int res1 = 0 ;
6379 PyObject *swig_obj[1] ;
6380
6381 if (!args) SWIG_fail;
6382 swig_obj[0] = args;
6383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6386 }
6387 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6388 {
1bd55598 6389 result = (int)(arg1)->GetHeight();
1bd55598
RD
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 resultobj = SWIG_From_int(static_cast< int >(result));
6393 return resultobj;
6394fail:
6395 return NULL;
d55e5bfc
RD
6396}
6397
6398
1bd55598
RD
6399SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6400 PyObject *resultobj = 0;
6401 wxBitmap *arg1 = (wxBitmap *) 0 ;
6402 int result;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6412 }
6413 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6414 {
1bd55598 6415 result = (int)(arg1)->GetDepth();
1bd55598
RD
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 resultobj = SWIG_From_int(static_cast< int >(result));
6419 return resultobj;
6420fail:
6421 return NULL;
d55e5bfc
RD
6422}
6423
6424
1bd55598
RD
6425SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6426 PyObject *resultobj = 0;
6427 wxBitmap *arg1 = (wxBitmap *) 0 ;
6428 wxSize result;
6429 void *argp1 = 0 ;
6430 int res1 = 0 ;
6431 PyObject *swig_obj[1] ;
6432
6433 if (!args) SWIG_fail;
6434 swig_obj[0] = args;
6435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 {
1bd55598 6441 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6445 return resultobj;
6446fail:
6447 return NULL;
d55e5bfc
RD
6448}
6449
6450
1bd55598
RD
6451SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6452 PyObject *resultobj = 0;
6453 wxBitmap *arg1 = (wxBitmap *) 0 ;
6454 SwigValueWrapper<wxImage > result;
6455 void *argp1 = 0 ;
6456 int res1 = 0 ;
6457 PyObject *swig_obj[1] ;
6458
6459 if (!args) SWIG_fail;
6460 swig_obj[0] = args;
6461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6462 if (!SWIG_IsOK(res1)) {
6463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6464 }
6465 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6466 {
1bd55598 6467 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6471 return resultobj;
6472fail:
6473 return NULL;
d55e5bfc
RD
6474}
6475
6476
1bd55598
RD
6477SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxBitmap *arg1 = (wxBitmap *) 0 ;
6480 wxMask *result = 0 ;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6490 }
6491 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6492 {
1bd55598 6493 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6497 return resultobj;
6498fail:
6499 return NULL;
6500}
6501
6502
6503SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6504 PyObject *resultobj = 0;
6505 wxBitmap *arg1 = (wxBitmap *) 0 ;
6506 wxMask *arg2 = (wxMask *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 int res2 = 0 ;
6510 PyObject * obj0 = 0 ;
6511 PyObject * obj1 = 0 ;
6512 char * kwnames[] = {
6513 (char *) "self",(char *) "mask", NULL
6514 };
6515
6516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6518 if (!SWIG_IsOK(res1)) {
6519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6520 }
6521 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6522 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6523 if (!SWIG_IsOK(res2)) {
6524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6525 }
6526 {
1bd55598 6527 (arg1)->SetMask(arg2);
1bd55598
RD
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_Py_Void();
6531 return resultobj;
6532fail:
6533 return NULL;
6534}
6535
6536
6537SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj = 0;
6539 wxBitmap *arg1 = (wxBitmap *) 0 ;
6540 wxColour *arg2 = 0 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 wxColour temp2 ;
6544 PyObject * obj0 = 0 ;
6545 PyObject * obj1 = 0 ;
6546 char * kwnames[] = {
6547 (char *) "self",(char *) "colour", NULL
6548 };
6549
6550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6552 if (!SWIG_IsOK(res1)) {
6553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6554 }
6555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6556 {
6557 arg2 = &temp2;
6558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6559 }
6560 {
1bd55598 6561 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_Py_Void();
6565 return resultobj;
6566fail:
6567 return NULL;
6568}
6569
6570
6571SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 wxRect *arg2 = 0 ;
6575 SwigValueWrapper<wxBitmap > result;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 wxRect temp2 ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 char * kwnames[] = {
6582 (char *) "self",(char *) "rect", NULL
6583 };
6584
6585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6589 }
6590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6591 {
6592 arg2 = &temp2;
6593 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6594 }
6595 {
1bd55598 6596 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6600 return resultobj;
6601fail:
6602 return NULL;
6603}
6604
6605
6606SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj = 0;
6608 wxBitmap *arg1 = (wxBitmap *) 0 ;
6609 wxString *arg2 = 0 ;
6610 wxBitmapType arg3 ;
6611 wxPalette *arg4 = (wxPalette *) NULL ;
6612 bool result;
6613 void *argp1 = 0 ;
6614 int res1 = 0 ;
6615 bool temp2 = false ;
6616 int val3 ;
6617 int ecode3 = 0 ;
6618 void *argp4 = 0 ;
6619 int res4 = 0 ;
6620 PyObject * obj0 = 0 ;
6621 PyObject * obj1 = 0 ;
6622 PyObject * obj2 = 0 ;
6623 PyObject * obj3 = 0 ;
6624 char * kwnames[] = {
6625 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6626 };
6627
6628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6632 }
6633 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6634 {
6635 arg2 = wxString_in_helper(obj1);
6636 if (arg2 == NULL) SWIG_fail;
6637 temp2 = true;
6638 }
6639 ecode3 = SWIG_AsVal_int(obj2, &val3);
6640 if (!SWIG_IsOK(ecode3)) {
6641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6642 }
6643 arg3 = static_cast< wxBitmapType >(val3);
6644 if (obj3) {
6645 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6646 if (!SWIG_IsOK(res4)) {
6647 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6648 }
1bd55598
RD
6649 arg4 = reinterpret_cast< wxPalette * >(argp4);
6650 }
6651 {
1bd55598 6652 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6653 if (PyErr_Occurred()) SWIG_fail;
6654 }
6655 {
6656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6657 }
6658 {
6659 if (temp2)
6660 delete arg2;
6661 }
6662 return resultobj;
6663fail:
6664 {
6665 if (temp2)
6666 delete arg2;
6667 }
6668 return NULL;
6669}
6670
6671
6672SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj = 0;
6674 wxBitmap *arg1 = (wxBitmap *) 0 ;
6675 wxString *arg2 = 0 ;
6676 wxBitmapType arg3 ;
6677 bool result;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 bool temp2 = false ;
6681 int val3 ;
6682 int ecode3 = 0 ;
6683 PyObject * obj0 = 0 ;
6684 PyObject * obj1 = 0 ;
6685 PyObject * obj2 = 0 ;
6686 char * kwnames[] = {
6687 (char *) "self",(char *) "name",(char *) "type", NULL
6688 };
6689
6690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6692 if (!SWIG_IsOK(res1)) {
6693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6694 }
6695 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6696 {
6697 arg2 = wxString_in_helper(obj1);
6698 if (arg2 == NULL) SWIG_fail;
6699 temp2 = true;
6700 }
6701 ecode3 = SWIG_AsVal_int(obj2, &val3);
6702 if (!SWIG_IsOK(ecode3)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6704 }
6705 arg3 = static_cast< wxBitmapType >(val3);
6706 {
1bd55598 6707 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 {
6711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6712 }
6713 {
6714 if (temp2)
6715 delete arg2;
6716 }
6717 return resultobj;
6718fail:
6719 {
6720 if (temp2)
6721 delete arg2;
6722 }
6723 return NULL;
d04418a7
RD
6724}
6725
6726
1bd55598
RD
6727SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6728 PyObject *resultobj = 0;
6729 wxBitmap *arg1 = (wxBitmap *) 0 ;
6730 wxPalette *result = 0 ;
6731 void *argp1 = 0 ;
6732 int res1 = 0 ;
6733 PyObject *swig_obj[1] ;
6734
6735 if (!args) SWIG_fail;
6736 swig_obj[0] = args;
6737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6738 if (!SWIG_IsOK(res1)) {
6739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6740 }
6741 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6742 {
1bd55598 6743 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6747 return resultobj;
6748fail:
6749 return NULL;
6750}
6751
6752
6753SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj = 0;
6755 wxBitmap *arg1 = (wxBitmap *) 0 ;
6756 wxIcon *arg2 = 0 ;
6757 bool result;
6758 void *argp1 = 0 ;
6759 int res1 = 0 ;
6760 void *argp2 = 0 ;
6761 int res2 = 0 ;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 char * kwnames[] = {
6765 (char *) "self",(char *) "icon", NULL
6766 };
6767
6768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6770 if (!SWIG_IsOK(res1)) {
6771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6772 }
6773 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6775 if (!SWIG_IsOK(res2)) {
6776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6777 }
6778 if (!argp2) {
6779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6780 }
6781 arg2 = reinterpret_cast< wxIcon * >(argp2);
6782 {
1bd55598 6783 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 {
6787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6788 }
6789 return resultobj;
6790fail:
6791 return NULL;
6792}
6793
6794
6795SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxBitmap *arg1 = (wxBitmap *) 0 ;
6798 int arg2 ;
6799 void *argp1 = 0 ;
6800 int res1 = 0 ;
6801 int val2 ;
6802 int ecode2 = 0 ;
6803 PyObject * obj0 = 0 ;
6804 PyObject * obj1 = 0 ;
6805 char * kwnames[] = {
6806 (char *) "self",(char *) "height", NULL
6807 };
6808
6809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6811 if (!SWIG_IsOK(res1)) {
6812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6813 }
6814 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6815 ecode2 = SWIG_AsVal_int(obj1, &val2);
6816 if (!SWIG_IsOK(ecode2)) {
6817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6818 }
6819 arg2 = static_cast< int >(val2);
6820 {
1bd55598 6821 (arg1)->SetHeight(arg2);
1bd55598
RD
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 resultobj = SWIG_Py_Void();
6825 return resultobj;
6826fail:
6827 return NULL;
6828}
6829
6830
6831SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6832 PyObject *resultobj = 0;
6833 wxBitmap *arg1 = (wxBitmap *) 0 ;
6834 int arg2 ;
6835 void *argp1 = 0 ;
6836 int res1 = 0 ;
6837 int val2 ;
6838 int ecode2 = 0 ;
6839 PyObject * obj0 = 0 ;
6840 PyObject * obj1 = 0 ;
6841 char * kwnames[] = {
6842 (char *) "self",(char *) "width", NULL
6843 };
6844
6845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6847 if (!SWIG_IsOK(res1)) {
6848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6849 }
6850 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6851 ecode2 = SWIG_AsVal_int(obj1, &val2);
6852 if (!SWIG_IsOK(ecode2)) {
6853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6854 }
6855 arg2 = static_cast< int >(val2);
6856 {
1bd55598 6857 (arg1)->SetWidth(arg2);
1bd55598
RD
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 resultobj = SWIG_Py_Void();
6861 return resultobj;
6862fail:
6863 return NULL;
6864}
6865
6866
6867SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6868 PyObject *resultobj = 0;
6869 wxBitmap *arg1 = (wxBitmap *) 0 ;
6870 int arg2 ;
6871 void *argp1 = 0 ;
6872 int res1 = 0 ;
6873 int val2 ;
6874 int ecode2 = 0 ;
6875 PyObject * obj0 = 0 ;
6876 PyObject * obj1 = 0 ;
6877 char * kwnames[] = {
6878 (char *) "self",(char *) "depth", NULL
6879 };
6880
6881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6883 if (!SWIG_IsOK(res1)) {
6884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6885 }
6886 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6887 ecode2 = SWIG_AsVal_int(obj1, &val2);
6888 if (!SWIG_IsOK(ecode2)) {
6889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6890 }
6891 arg2 = static_cast< int >(val2);
6892 {
1bd55598 6893 (arg1)->SetDepth(arg2);
1bd55598
RD
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 resultobj = SWIG_Py_Void();
6897 return resultobj;
6898fail:
6899 return NULL;
6900}
6901
6902
6903SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj = 0;
6905 wxBitmap *arg1 = (wxBitmap *) 0 ;
6906 wxSize *arg2 = 0 ;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 wxSize temp2 ;
6910 PyObject * obj0 = 0 ;
6911 PyObject * obj1 = 0 ;
6912 char * kwnames[] = {
6913 (char *) "self",(char *) "size", NULL
6914 };
6915
6916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6918 if (!SWIG_IsOK(res1)) {
6919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6920 }
6921 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6922 {
6923 arg2 = &temp2;
6924 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6925 }
6926 {
1bd55598 6927 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 resultobj = SWIG_Py_Void();
6931 return resultobj;
6932fail:
6933 return NULL;
6934}
6935
6936
6937SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6938 PyObject *resultobj = 0;
6939 wxBitmap *arg1 = (wxBitmap *) 0 ;
6940 wxBitmap *arg2 = (wxBitmap *) 0 ;
6941 bool result;
6942 void *argp1 = 0 ;
6943 int res1 = 0 ;
6944 void *argp2 = 0 ;
6945 int res2 = 0 ;
6946 PyObject * obj0 = 0 ;
6947 PyObject * obj1 = 0 ;
6948 char * kwnames[] = {
6949 (char *) "self",(char *) "other", NULL
6950 };
6951
6952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6954 if (!SWIG_IsOK(res1)) {
6955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6956 }
6957 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6959 if (!SWIG_IsOK(res2)) {
6960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6961 }
6962 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6963 {
1bd55598 6964 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 {
fc46b7f3
RD
6968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6969 }
6970 return resultobj;
6971fail:
6972 return NULL;
6973}
6974
6975
6976SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj = 0;
6978 wxBitmap *arg1 = (wxBitmap *) 0 ;
6979 wxBitmap *arg2 = (wxBitmap *) 0 ;
6980 bool result;
6981 void *argp1 = 0 ;
6982 int res1 = 0 ;
6983 void *argp2 = 0 ;
6984 int res2 = 0 ;
6985 PyObject * obj0 = 0 ;
6986 PyObject * obj1 = 0 ;
6987 char * kwnames[] = {
6988 (char *) "self",(char *) "other", NULL
6989 };
6990
6991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6993 if (!SWIG_IsOK(res1)) {
6994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6995 }
6996 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6998 if (!SWIG_IsOK(res2)) {
6999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7000 }
7001 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7002 {
7003 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 {
7007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7008 }
7009 return resultobj;
7010fail:
7011 return NULL;
7012}
7013
7014
7015SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7016 PyObject *obj;
7017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7018 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7019 return SWIG_Py_Void();
7020}
7021
7022SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7023 return SWIG_Python_InitShadowInstance(args);
7024}
7025
7026SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj = 0;
7028 int arg1 ;
7029 int arg2 ;
7030 buffer arg3 ;
7031 int arg4 ;
7032 buffer arg5 ;
7033 int arg6 ;
7034 wxBitmap *result = 0 ;
7035 int val1 ;
7036 int ecode1 = 0 ;
7037 int val2 ;
7038 int ecode2 = 0 ;
8c9c423b
RD
7039 Py_ssize_t temp3 ;
7040 Py_ssize_t temp5 ;
fc46b7f3
RD
7041 PyObject * obj0 = 0 ;
7042 PyObject * obj1 = 0 ;
7043 PyObject * obj2 = 0 ;
7044 PyObject * obj3 = 0 ;
7045 char * kwnames[] = {
7046 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7047 };
7048
7049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7050 ecode1 = SWIG_AsVal_int(obj0, &val1);
7051 if (!SWIG_IsOK(ecode1)) {
7052 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7053 }
7054 arg1 = static_cast< int >(val1);
7055 ecode2 = SWIG_AsVal_int(obj1, &val2);
7056 if (!SWIG_IsOK(ecode2)) {
7057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7058 }
7059 arg2 = static_cast< int >(val2);
7060 {
8c9c423b
RD
7061 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7062 arg4 = (int)temp3;
fc46b7f3
RD
7063 }
7064 {
7065 if (obj3 != Py_None) {
8c9c423b
RD
7066 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7067 arg6 = (int)temp5;
fc46b7f3
RD
7068 }
7069 }
7070 {
7071 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7075 return resultobj;
7076fail:
7077 return NULL;
7078}
7079
7080
7081SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj = 0;
7083 int arg1 ;
7084 int arg2 ;
7085 buffer arg3 ;
7086 int arg4 ;
7087 wxBitmap *result = 0 ;
7088 int val1 ;
7089 int ecode1 = 0 ;
7090 int val2 ;
7091 int ecode2 = 0 ;
8c9c423b 7092 Py_ssize_t temp3 ;
fc46b7f3
RD
7093 PyObject * obj0 = 0 ;
7094 PyObject * obj1 = 0 ;
7095 PyObject * obj2 = 0 ;
7096 char * kwnames[] = {
7097 (char *) "width",(char *) "height",(char *) "data", NULL
7098 };
7099
7100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7101 ecode1 = SWIG_AsVal_int(obj0, &val1);
7102 if (!SWIG_IsOK(ecode1)) {
7103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7104 }
7105 arg1 = static_cast< int >(val1);
7106 ecode2 = SWIG_AsVal_int(obj1, &val2);
7107 if (!SWIG_IsOK(ecode2)) {
7108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7109 }
7110 arg2 = static_cast< int >(val2);
7111 {
8c9c423b
RD
7112 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7113 arg4 = (int)temp3;
fc46b7f3
RD
7114 }
7115 {
7116 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7120 return resultobj;
7121fail:
7122 return NULL;
7123}
7124
7125
7126SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj = 0;
7128 int arg1 ;
7129 int arg2 ;
7130 buffer arg3 ;
7131 int arg4 ;
7132 wxBitmap *result = 0 ;
7133 int val1 ;
7134 int ecode1 = 0 ;
7135 int val2 ;
7136 int ecode2 = 0 ;
8c9c423b 7137 Py_ssize_t temp3 ;
fc46b7f3
RD
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 PyObject * obj2 = 0 ;
7141 char * kwnames[] = {
7142 (char *) "width",(char *) "height",(char *) "data", NULL
7143 };
7144
7145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7146 ecode1 = SWIG_AsVal_int(obj0, &val1);
7147 if (!SWIG_IsOK(ecode1)) {
7148 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7149 }
7150 arg1 = static_cast< int >(val1);
7151 ecode2 = SWIG_AsVal_int(obj1, &val2);
7152 if (!SWIG_IsOK(ecode2)) {
7153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7154 }
7155 arg2 = static_cast< int >(val2);
7156 {
8c9c423b
RD
7157 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7158 arg4 = (int)temp3;
fc46b7f3
RD
7159 }
7160 {
7161 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7165 return resultobj;
7166fail:
7167 return NULL;
7168}
7169
7170
7171SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7172 PyObject *resultobj = 0;
7173 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7174 wxPoint result;
7175 void *argp1 = 0 ;
7176 int res1 = 0 ;
7177 PyObject *swig_obj[1] ;
7178
7179 if (!args) SWIG_fail;
7180 swig_obj[0] = args;
7181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7182 if (!SWIG_IsOK(res1)) {
7183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7184 }
7185 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7186 {
7187 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7191 return resultobj;
7192fail:
7193 return NULL;
7194}
7195
7196
7197SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7198 PyObject *resultobj = 0;
7199 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7200 int result;
7201 void *argp1 = 0 ;
7202 int res1 = 0 ;
7203 PyObject *swig_obj[1] ;
7204
7205 if (!args) SWIG_fail;
7206 swig_obj[0] = args;
7207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7208 if (!SWIG_IsOK(res1)) {
7209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7210 }
7211 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7212 {
7213 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_From_int(static_cast< int >(result));
7217 return resultobj;
7218fail:
7219 return NULL;
7220}
7221
7222
7223SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7224 PyObject *resultobj = 0;
7225 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7226 int result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 PyObject *swig_obj[1] ;
7230
7231 if (!args) SWIG_fail;
7232 swig_obj[0] = args;
7233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7236 }
7237 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7238 {
7239 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7240 if (PyErr_Occurred()) SWIG_fail;
7241 }
7242 resultobj = SWIG_From_int(static_cast< int >(result));
7243 return resultobj;
7244fail:
7245 return NULL;
7246}
7247
7248
7249SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7250 PyObject *resultobj = 0;
7251 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7252 wxSize result;
7253 void *argp1 = 0 ;
7254 int res1 = 0 ;
7255 PyObject *swig_obj[1] ;
7256
7257 if (!args) SWIG_fail;
7258 swig_obj[0] = args;
7259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7260 if (!SWIG_IsOK(res1)) {
7261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7262 }
7263 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7264 {
7265 result = ((wxPixelDataBase const *)arg1)->GetSize();
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7269 return resultobj;
7270fail:
7271 return NULL;
7272}
7273
7274
7275SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7276 PyObject *resultobj = 0;
7277 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7278 int result;
7279 void *argp1 = 0 ;
7280 int res1 = 0 ;
7281 PyObject *swig_obj[1] ;
7282
7283 if (!args) SWIG_fail;
7284 swig_obj[0] = args;
7285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7286 if (!SWIG_IsOK(res1)) {
7287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7288 }
7289 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7290 {
7291 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_From_int(static_cast< int >(result));
7295 return resultobj;
7296fail:
7297 return NULL;
7298}
7299
7300
7301SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 PyObject *obj;
7303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7304 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7305 return SWIG_Py_Void();
7306}
7307
7308SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7309 PyObject *resultobj = 0;
7310 wxBitmap *arg1 = 0 ;
7311 wxNativePixelData *result = 0 ;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314
7315 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7317 if (!SWIG_IsOK(res1)) {
7318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7319 }
7320 if (!argp1) {
7321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7322 }
7323 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7324 {
7325 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7329 return resultobj;
7330fail:
7331 return NULL;
7332}
7333
7334
7335SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7336 PyObject *resultobj = 0;
7337 wxBitmap *arg1 = 0 ;
7338 wxRect *arg2 = 0 ;
7339 wxNativePixelData *result = 0 ;
7340 void *argp1 = 0 ;
7341 int res1 = 0 ;
7342 wxRect temp2 ;
7343
7344 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7346 if (!SWIG_IsOK(res1)) {
7347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7348 }
7349 if (!argp1) {
7350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7351 }
7352 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7353 {
7354 arg2 = &temp2;
7355 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7356 }
7357 {
7358 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7362 return resultobj;
7363fail:
7364 return NULL;
7365}
7366
7367
7368SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7369 PyObject *resultobj = 0;
7370 wxBitmap *arg1 = 0 ;
7371 wxPoint *arg2 = 0 ;
7372 wxSize *arg3 = 0 ;
7373 wxNativePixelData *result = 0 ;
7374 void *argp1 = 0 ;
7375 int res1 = 0 ;
7376 wxPoint temp2 ;
7377 wxSize temp3 ;
7378
7379 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7381 if (!SWIG_IsOK(res1)) {
7382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7383 }
7384 if (!argp1) {
7385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7386 }
7387 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7388 {
7389 arg2 = &temp2;
7390 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7391 }
7392 {
7393 arg3 = &temp3;
7394 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7395 }
7396 {
7397 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7401 return resultobj;
7402fail:
7403 return NULL;
7404}
7405
7406
7407SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7408 int argc;
7409 PyObject *argv[4];
7410
7411 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7412 --argc;
7413 if (argc == 1) {
7414 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7415 }
7416 if (argc == 2) {
7417 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7418 }
7419 if (argc == 3) {
7420 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7421 }
7422
7423fail:
7424 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7425 return NULL;
7426}
7427
7428
7429SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7430 PyObject *resultobj = 0;
7431 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7432 void *argp1 = 0 ;
7433 int res1 = 0 ;
7434 PyObject *swig_obj[1] ;
7435
7436 if (!args) SWIG_fail;
7437 swig_obj[0] = args;
7438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7439 if (!SWIG_IsOK(res1)) {
7440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7441 }
7442 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7443 {
7444 delete arg1;
7445
7446 if (PyErr_Occurred()) SWIG_fail;
7447 }
7448 resultobj = SWIG_Py_Void();
7449 return resultobj;
7450fail:
7451 return NULL;
7452}
7453
7454
7455SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7456 PyObject *resultobj = 0;
7457 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7458 wxNativePixelData_Accessor result;
7459 void *argp1 = 0 ;
7460 int res1 = 0 ;
7461 PyObject *swig_obj[1] ;
7462
7463 if (!args) SWIG_fail;
7464 swig_obj[0] = args;
7465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7466 if (!SWIG_IsOK(res1)) {
7467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7468 }
7469 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7470 {
7471 result = ((wxNativePixelData const *)arg1)->GetPixels();
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7475 return resultobj;
7476fail:
7477 return NULL;
7478}
7479
7480
7481SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7482 PyObject *resultobj = 0;
7483 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7484 void *argp1 = 0 ;
7485 int res1 = 0 ;
7486 PyObject *swig_obj[1] ;
7487
7488 if (!args) SWIG_fail;
7489 swig_obj[0] = args;
7490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7491 if (!SWIG_IsOK(res1)) {
7492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7493 }
7494 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7495 {
7496 (arg1)->UseAlpha();
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_Py_Void();
7500 return resultobj;
7501fail:
7502 return NULL;
7503}
7504
7505
7506SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7507 PyObject *resultobj = 0;
7508 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7509 bool result;
7510 void *argp1 = 0 ;
7511 int res1 = 0 ;
7512 PyObject *swig_obj[1] ;
7513
7514 if (!args) SWIG_fail;
7515 swig_obj[0] = args;
7516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7517 if (!SWIG_IsOK(res1)) {
7518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7519 }
7520 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7521 {
7522 result = (bool)wxNativePixelData___nonzero__(arg1);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 {
7526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7527 }
7528 return resultobj;
7529fail:
7530 return NULL;
7531}
7532
7533
7534SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7535 PyObject *obj;
7536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7537 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7538 return SWIG_Py_Void();
7539}
7540
7541SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7542 return SWIG_Python_InitShadowInstance(args);
7543}
7544
7545SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7546 PyObject *resultobj = 0;
7547 wxNativePixelData *arg1 = 0 ;
7548 wxNativePixelData_Accessor *result = 0 ;
7549 void *argp1 = 0 ;
7550 int res1 = 0 ;
7551
7552 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7554 if (!SWIG_IsOK(res1)) {
7555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7556 }
7557 if (!argp1) {
7558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7559 }
7560 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7561 {
7562 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7566 return resultobj;
7567fail:
7568 return NULL;
7569}
7570
7571
7572SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7573 PyObject *resultobj = 0;
7574 wxBitmap *arg1 = 0 ;
7575 wxNativePixelData *arg2 = 0 ;
7576 wxNativePixelData_Accessor *result = 0 ;
7577 void *argp1 = 0 ;
7578 int res1 = 0 ;
7579 void *argp2 = 0 ;
7580 int res2 = 0 ;
7581
7582 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7584 if (!SWIG_IsOK(res1)) {
7585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7586 }
7587 if (!argp1) {
7588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7589 }
7590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7591 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7592 if (!SWIG_IsOK(res2)) {
7593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7594 }
7595 if (!argp2) {
7596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7597 }
7598 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7599 {
7600 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7604 return resultobj;
7605fail:
7606 return NULL;
7607}
7608
7609
7610SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7611 PyObject *resultobj = 0;
7612 wxNativePixelData_Accessor *result = 0 ;
7613
7614 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7615 {
7616 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7620 return resultobj;
7621fail:
7622 return NULL;
7623}
7624
7625
7626SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7627 int argc;
7628 PyObject *argv[3];
7629
7630 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7631 --argc;
7632 if (argc == 0) {
7633 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7634 }
7635 if (argc == 1) {
7636 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7637 }
7638 if (argc == 2) {
7639 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7640 }
7641
7642fail:
7643 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7644 return NULL;
7645}
7646
7647
7648SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7649 PyObject *resultobj = 0;
7650 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7651 void *argp1 = 0 ;
7652 int res1 = 0 ;
7653 PyObject *swig_obj[1] ;
7654
7655 if (!args) SWIG_fail;
7656 swig_obj[0] = args;
7657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7660 }
7661 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7662 {
7663 delete arg1;
7664
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 resultobj = SWIG_Py_Void();
7668 return resultobj;
7669fail:
7670 return NULL;
7671}
7672
7673
7674SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj = 0;
7676 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7677 wxNativePixelData *arg2 = 0 ;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680 void *argp2 = 0 ;
7681 int res2 = 0 ;
7682 PyObject * obj0 = 0 ;
7683 PyObject * obj1 = 0 ;
7684 char * kwnames[] = {
7685 (char *) "self",(char *) "data", NULL
7686 };
7687
7688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7690 if (!SWIG_IsOK(res1)) {
7691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7692 }
7693 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7695 if (!SWIG_IsOK(res2)) {
7696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7697 }
7698 if (!argp2) {
7699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7700 }
7701 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7702 {
7703 (arg1)->Reset((wxNativePixelData const &)*arg2);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 resultobj = SWIG_Py_Void();
7707 return resultobj;
7708fail:
7709 return NULL;
7710}
7711
7712
7713SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7714 PyObject *resultobj = 0;
7715 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7716 bool result;
7717 void *argp1 = 0 ;
7718 int res1 = 0 ;
7719 PyObject *swig_obj[1] ;
7720
7721 if (!args) SWIG_fail;
7722 swig_obj[0] = args;
7723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7724 if (!SWIG_IsOK(res1)) {
7725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7726 }
7727 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7728 {
7729 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 {
7733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7734 }
7735 return resultobj;
7736fail:
7737 return NULL;
7738}
7739
7740
7741SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7742 PyObject *resultobj = 0;
7743 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7744 void *argp1 = 0 ;
7745 int res1 = 0 ;
7746 PyObject *swig_obj[1] ;
7747
7748 if (!args) SWIG_fail;
7749 swig_obj[0] = args;
7750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7751 if (!SWIG_IsOK(res1)) {
7752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7753 }
7754 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7755 {
7756 wxNativePixelData_Accessor_nextPixel(arg1);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 resultobj = SWIG_Py_Void();
7760 return resultobj;
7761fail:
7762 return NULL;
7763}
7764
7765
7766SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7767 PyObject *resultobj = 0;
7768 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7769 wxNativePixelData *arg2 = 0 ;
7770 int arg3 ;
7771 int arg4 ;
7772 void *argp1 = 0 ;
7773 int res1 = 0 ;
7774 void *argp2 = 0 ;
7775 int res2 = 0 ;
7776 int val3 ;
7777 int ecode3 = 0 ;
7778 int val4 ;
7779 int ecode4 = 0 ;
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj1 = 0 ;
7782 PyObject * obj2 = 0 ;
7783 PyObject * obj3 = 0 ;
7784 char * kwnames[] = {
7785 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7786 };
7787
7788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7790 if (!SWIG_IsOK(res1)) {
7791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7792 }
7793 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7795 if (!SWIG_IsOK(res2)) {
7796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7797 }
7798 if (!argp2) {
7799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7800 }
7801 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7802 ecode3 = SWIG_AsVal_int(obj2, &val3);
7803 if (!SWIG_IsOK(ecode3)) {
7804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7805 }
7806 arg3 = static_cast< int >(val3);
7807 ecode4 = SWIG_AsVal_int(obj3, &val4);
7808 if (!SWIG_IsOK(ecode4)) {
7809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7810 }
7811 arg4 = static_cast< int >(val4);
7812 {
7813 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 resultobj = SWIG_Py_Void();
7817 return resultobj;
7818fail:
7819 return NULL;
7820}
7821
7822
7823SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7824 PyObject *resultobj = 0;
7825 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7826 wxNativePixelData *arg2 = 0 ;
7827 int arg3 ;
7828 void *argp1 = 0 ;
7829 int res1 = 0 ;
7830 void *argp2 = 0 ;
7831 int res2 = 0 ;
7832 int val3 ;
7833 int ecode3 = 0 ;
7834 PyObject * obj0 = 0 ;
7835 PyObject * obj1 = 0 ;
7836 PyObject * obj2 = 0 ;
7837 char * kwnames[] = {
7838 (char *) "self",(char *) "data",(char *) "x", NULL
7839 };
7840
7841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7843 if (!SWIG_IsOK(res1)) {
7844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7845 }
7846 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7847 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7848 if (!SWIG_IsOK(res2)) {
7849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7850 }
7851 if (!argp2) {
7852 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7853 }
7854 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7855 ecode3 = SWIG_AsVal_int(obj2, &val3);
7856 if (!SWIG_IsOK(ecode3)) {
7857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7858 }
7859 arg3 = static_cast< int >(val3);
7860 {
7861 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 resultobj = SWIG_Py_Void();
7865 return resultobj;
7866fail:
7867 return NULL;
7868}
7869
7870
7871SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7872 PyObject *resultobj = 0;
7873 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7874 wxNativePixelData *arg2 = 0 ;
7875 int arg3 ;
7876 void *argp1 = 0 ;
7877 int res1 = 0 ;
7878 void *argp2 = 0 ;
7879 int res2 = 0 ;
7880 int val3 ;
7881 int ecode3 = 0 ;
7882 PyObject * obj0 = 0 ;
7883 PyObject * obj1 = 0 ;
7884 PyObject * obj2 = 0 ;
7885 char * kwnames[] = {
7886 (char *) "self",(char *) "data",(char *) "y", NULL
7887 };
7888
7889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7891 if (!SWIG_IsOK(res1)) {
7892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7893 }
7894 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7896 if (!SWIG_IsOK(res2)) {
7897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7898 }
7899 if (!argp2) {
7900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7901 }
7902 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7903 ecode3 = SWIG_AsVal_int(obj2, &val3);
7904 if (!SWIG_IsOK(ecode3)) {
7905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7906 }
7907 arg3 = static_cast< int >(val3);
7908 {
7909 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 resultobj = SWIG_Py_Void();
7913 return resultobj;
7914fail:
7915 return NULL;
7916}
7917
7918
7919SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7920 PyObject *resultobj = 0;
7921 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7922 wxNativePixelData *arg2 = 0 ;
7923 int arg3 ;
7924 int arg4 ;
7925 void *argp1 = 0 ;
7926 int res1 = 0 ;
7927 void *argp2 = 0 ;
7928 int res2 = 0 ;
7929 int val3 ;
7930 int ecode3 = 0 ;
7931 int val4 ;
7932 int ecode4 = 0 ;
7933 PyObject * obj0 = 0 ;
7934 PyObject * obj1 = 0 ;
7935 PyObject * obj2 = 0 ;
7936 PyObject * obj3 = 0 ;
7937 char * kwnames[] = {
7938 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7939 };
7940
7941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7943 if (!SWIG_IsOK(res1)) {
7944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7945 }
7946 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7948 if (!SWIG_IsOK(res2)) {
7949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7950 }
7951 if (!argp2) {
7952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7953 }
7954 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7955 ecode3 = SWIG_AsVal_int(obj2, &val3);
7956 if (!SWIG_IsOK(ecode3)) {
7957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7958 }
7959 arg3 = static_cast< int >(val3);
7960 ecode4 = SWIG_AsVal_int(obj3, &val4);
7961 if (!SWIG_IsOK(ecode4)) {
7962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7963 }
7964 arg4 = static_cast< int >(val4);
7965 {
7966 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 resultobj = SWIG_Py_Void();
7970 return resultobj;
7971fail:
7972 return NULL;
7973}
7974
7975
7976SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7977 PyObject *resultobj = 0;
7978 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7979 byte arg2 ;
7980 byte arg3 ;
7981 byte arg4 ;
7982 void *argp1 = 0 ;
7983 int res1 = 0 ;
7984 unsigned char val2 ;
7985 int ecode2 = 0 ;
7986 unsigned char val3 ;
7987 int ecode3 = 0 ;
7988 unsigned char val4 ;
7989 int ecode4 = 0 ;
7990 PyObject * obj0 = 0 ;
7991 PyObject * obj1 = 0 ;
7992 PyObject * obj2 = 0 ;
7993 PyObject * obj3 = 0 ;
7994 char * kwnames[] = {
7995 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7996 };
7997
7998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8000 if (!SWIG_IsOK(res1)) {
8001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8002 }
8003 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8004 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8005 if (!SWIG_IsOK(ecode2)) {
8006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8007 }
8008 arg2 = static_cast< byte >(val2);
8009 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8010 if (!SWIG_IsOK(ecode3)) {
8011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8012 }
8013 arg3 = static_cast< byte >(val3);
8014 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8015 if (!SWIG_IsOK(ecode4)) {
8016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8017 }
8018 arg4 = static_cast< byte >(val4);
8019 {
8020 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_Py_Void();
8024 return resultobj;
8025fail:
8026 return NULL;
8027}
8028
8029
8030SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8031 PyObject *resultobj = 0;
8032 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8033 PyObject *result = 0 ;
8034 void *argp1 = 0 ;
8035 int res1 = 0 ;
8036 PyObject *swig_obj[1] ;
8037
8038 if (!args) SWIG_fail;
8039 swig_obj[0] = args;
8040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8041 if (!SWIG_IsOK(res1)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8043 }
8044 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8045 {
8046 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 resultobj = result;
8050 return resultobj;
8051fail:
8052 return NULL;
8053}
8054
8055
8056SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8057 PyObject *obj;
8058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8059 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8060 return SWIG_Py_Void();
8061}
8062
8063SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8064 return SWIG_Python_InitShadowInstance(args);
8065}
8066
8067SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8068 PyObject *resultobj = 0;
8069 wxBitmap *arg1 = 0 ;
8070 wxAlphaPixelData *result = 0 ;
8071 void *argp1 = 0 ;
8072 int res1 = 0 ;
8073
8074 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8076 if (!SWIG_IsOK(res1)) {
8077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8078 }
8079 if (!argp1) {
8080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8081 }
8082 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8083 {
8084 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8088 return resultobj;
8089fail:
8090 return NULL;
8091}
8092
8093
8094SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8095 PyObject *resultobj = 0;
8096 wxBitmap *arg1 = 0 ;
8097 wxRect *arg2 = 0 ;
8098 wxAlphaPixelData *result = 0 ;
8099 void *argp1 = 0 ;
8100 int res1 = 0 ;
8101 wxRect temp2 ;
8102
8103 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8105 if (!SWIG_IsOK(res1)) {
8106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8107 }
8108 if (!argp1) {
8109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8110 }
8111 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8112 {
8113 arg2 = &temp2;
8114 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8115 }
8116 {
8117 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8121 return resultobj;
8122fail:
8123 return NULL;
8124}
8125
8126
8127SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8128 PyObject *resultobj = 0;
8129 wxBitmap *arg1 = 0 ;
8130 wxPoint *arg2 = 0 ;
8131 wxSize *arg3 = 0 ;
8132 wxAlphaPixelData *result = 0 ;
8133 void *argp1 = 0 ;
8134 int res1 = 0 ;
8135 wxPoint temp2 ;
8136 wxSize temp3 ;
8137
8138 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8140 if (!SWIG_IsOK(res1)) {
8141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8142 }
8143 if (!argp1) {
8144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8145 }
8146 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8147 {
8148 arg2 = &temp2;
8149 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8150 }
8151 {
8152 arg3 = &temp3;
8153 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8154 }
8155 {
8156 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8157 if (PyErr_Occurred()) SWIG_fail;
8158 }
8159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8160 return resultobj;
8161fail:
8162 return NULL;
8163}
8164
8165
8166SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8167 int argc;
8168 PyObject *argv[4];
8169
8170 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8171 --argc;
8172 if (argc == 1) {
8173 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8174 }
8175 if (argc == 2) {
8176 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8177 }
8178 if (argc == 3) {
8179 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8180 }
8181
8182fail:
8183 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8184 return NULL;
8185}
8186
8187
8188SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8189 PyObject *resultobj = 0;
8190 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8191 void *argp1 = 0 ;
8192 int res1 = 0 ;
8193 PyObject *swig_obj[1] ;
8194
8195 if (!args) SWIG_fail;
8196 swig_obj[0] = args;
8197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8198 if (!SWIG_IsOK(res1)) {
8199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8200 }
8201 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8202 {
8203 delete arg1;
8204
8205 if (PyErr_Occurred()) SWIG_fail;
8206 }
8207 resultobj = SWIG_Py_Void();
8208 return resultobj;
8209fail:
8210 return NULL;
8211}
8212
8213
8214SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8215 PyObject *resultobj = 0;
8216 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8217 wxAlphaPixelData_Accessor result;
8218 void *argp1 = 0 ;
8219 int res1 = 0 ;
8220 PyObject *swig_obj[1] ;
8221
8222 if (!args) SWIG_fail;
8223 swig_obj[0] = args;
8224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8227 }
8228 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8229 {
8230 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8234 return resultobj;
8235fail:
8236 return NULL;
8237}
8238
8239
8240SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8241 PyObject *resultobj = 0;
8242 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8243 void *argp1 = 0 ;
8244 int res1 = 0 ;
8245 PyObject *swig_obj[1] ;
8246
8247 if (!args) SWIG_fail;
8248 swig_obj[0] = args;
8249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8250 if (!SWIG_IsOK(res1)) {
8251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8252 }
8253 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8254 {
8255 (arg1)->UseAlpha();
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = SWIG_Py_Void();
8259 return resultobj;
8260fail:
8261 return NULL;
8262}
8263
8264
8265SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8266 PyObject *resultobj = 0;
8267 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8268 bool result;
8269 void *argp1 = 0 ;
8270 int res1 = 0 ;
8271 PyObject *swig_obj[1] ;
8272
8273 if (!args) SWIG_fail;
8274 swig_obj[0] = args;
8275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8278 }
8279 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8280 {
8281 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 {
8285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8286 }
8287 return resultobj;
8288fail:
8289 return NULL;
8290}
8291
8292
8293SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8294 PyObject *obj;
8295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8296 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8297 return SWIG_Py_Void();
8298}
8299
8300SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8301 return SWIG_Python_InitShadowInstance(args);
8302}
8303
8304SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8305 PyObject *resultobj = 0;
8306 wxAlphaPixelData *arg1 = 0 ;
8307 wxAlphaPixelData_Accessor *result = 0 ;
8308 void *argp1 = 0 ;
8309 int res1 = 0 ;
8310
8311 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8313 if (!SWIG_IsOK(res1)) {
8314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8315 }
8316 if (!argp1) {
8317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8318 }
8319 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8320 {
8321 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8325 return resultobj;
8326fail:
8327 return NULL;
8328}
8329
8330
8331SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8332 PyObject *resultobj = 0;
8333 wxBitmap *arg1 = 0 ;
8334 wxAlphaPixelData *arg2 = 0 ;
8335 wxAlphaPixelData_Accessor *result = 0 ;
8336 void *argp1 = 0 ;
8337 int res1 = 0 ;
8338 void *argp2 = 0 ;
8339 int res2 = 0 ;
8340
8341 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8343 if (!SWIG_IsOK(res1)) {
8344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8345 }
8346 if (!argp1) {
8347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8348 }
8349 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8350 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8351 if (!SWIG_IsOK(res2)) {
8352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8353 }
8354 if (!argp2) {
8355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8356 }
8357 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8358 {
8359 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8363 return resultobj;
8364fail:
8365 return NULL;
8366}
8367
8368
8369SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8370 PyObject *resultobj = 0;
8371 wxAlphaPixelData_Accessor *result = 0 ;
8372
8373 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8374 {
8375 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8379 return resultobj;
8380fail:
8381 return NULL;
8382}
8383
8384
8385SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8386 int argc;
8387 PyObject *argv[3];
8388
8389 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8390 --argc;
8391 if (argc == 0) {
8392 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8393 }
8394 if (argc == 1) {
8395 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8396 }
8397 if (argc == 2) {
8398 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8399 }
8400
8401fail:
8402 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8403 return NULL;
8404}
8405
8406
8407SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8408 PyObject *resultobj = 0;
8409 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8410 void *argp1 = 0 ;
8411 int res1 = 0 ;
8412 PyObject *swig_obj[1] ;
8413
8414 if (!args) SWIG_fail;
8415 swig_obj[0] = args;
8416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8417 if (!SWIG_IsOK(res1)) {
8418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8419 }
8420 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8421 {
8422 delete arg1;
8423
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 resultobj = SWIG_Py_Void();
8427 return resultobj;
8428fail:
8429 return NULL;
8430}
8431
8432
8433SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8434 PyObject *resultobj = 0;
8435 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8436 wxAlphaPixelData *arg2 = 0 ;
8437 void *argp1 = 0 ;
8438 int res1 = 0 ;
8439 void *argp2 = 0 ;
8440 int res2 = 0 ;
8441 PyObject * obj0 = 0 ;
8442 PyObject * obj1 = 0 ;
8443 char * kwnames[] = {
8444 (char *) "self",(char *) "data", NULL
8445 };
8446
8447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8449 if (!SWIG_IsOK(res1)) {
8450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8451 }
8452 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8454 if (!SWIG_IsOK(res2)) {
8455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8456 }
8457 if (!argp2) {
8458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8459 }
8460 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8461 {
8462 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 }
8465 resultobj = SWIG_Py_Void();
8466 return resultobj;
8467fail:
8468 return NULL;
8469}
8470
8471
8472SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8473 PyObject *resultobj = 0;
8474 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8475 bool result;
8476 void *argp1 = 0 ;
8477 int res1 = 0 ;
8478 PyObject *swig_obj[1] ;
8479
8480 if (!args) SWIG_fail;
8481 swig_obj[0] = args;
8482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8483 if (!SWIG_IsOK(res1)) {
8484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8485 }
8486 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8487 {
8488 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 {
8492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8493 }
8494 return resultobj;
8495fail:
8496 return NULL;
8497}
8498
8499
8500SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8501 PyObject *resultobj = 0;
8502 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 PyObject *swig_obj[1] ;
8506
8507 if (!args) SWIG_fail;
8508 swig_obj[0] = args;
8509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8512 }
8513 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8514 {
8515 wxAlphaPixelData_Accessor_nextPixel(arg1);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 resultobj = SWIG_Py_Void();
8519 return resultobj;
8520fail:
8521 return NULL;
8522}
8523
8524
8525SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8526 PyObject *resultobj = 0;
8527 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8528 wxAlphaPixelData *arg2 = 0 ;
8529 int arg3 ;
8530 int arg4 ;
8531 void *argp1 = 0 ;
8532 int res1 = 0 ;
8533 void *argp2 = 0 ;
8534 int res2 = 0 ;
8535 int val3 ;
8536 int ecode3 = 0 ;
8537 int val4 ;
8538 int ecode4 = 0 ;
8539 PyObject * obj0 = 0 ;
8540 PyObject * obj1 = 0 ;
8541 PyObject * obj2 = 0 ;
8542 PyObject * obj3 = 0 ;
8543 char * kwnames[] = {
8544 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8545 };
8546
8547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8549 if (!SWIG_IsOK(res1)) {
8550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8551 }
8552 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8554 if (!SWIG_IsOK(res2)) {
8555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8556 }
8557 if (!argp2) {
8558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8559 }
8560 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8561 ecode3 = SWIG_AsVal_int(obj2, &val3);
8562 if (!SWIG_IsOK(ecode3)) {
8563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8564 }
8565 arg3 = static_cast< int >(val3);
8566 ecode4 = SWIG_AsVal_int(obj3, &val4);
8567 if (!SWIG_IsOK(ecode4)) {
8568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8569 }
8570 arg4 = static_cast< int >(val4);
8571 {
8572 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8573 if (PyErr_Occurred()) SWIG_fail;
8574 }
8575 resultobj = SWIG_Py_Void();
8576 return resultobj;
8577fail:
8578 return NULL;
8579}
8580
8581
8582SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8583 PyObject *resultobj = 0;
8584 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8585 wxAlphaPixelData *arg2 = 0 ;
8586 int arg3 ;
8587 void *argp1 = 0 ;
8588 int res1 = 0 ;
8589 void *argp2 = 0 ;
8590 int res2 = 0 ;
8591 int val3 ;
8592 int ecode3 = 0 ;
8593 PyObject * obj0 = 0 ;
8594 PyObject * obj1 = 0 ;
8595 PyObject * obj2 = 0 ;
8596 char * kwnames[] = {
8597 (char *) "self",(char *) "data",(char *) "x", NULL
8598 };
8599
8600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8602 if (!SWIG_IsOK(res1)) {
8603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8604 }
8605 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8607 if (!SWIG_IsOK(res2)) {
8608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8609 }
8610 if (!argp2) {
8611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8612 }
8613 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8614 ecode3 = SWIG_AsVal_int(obj2, &val3);
8615 if (!SWIG_IsOK(ecode3)) {
8616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8617 }
8618 arg3 = static_cast< int >(val3);
8619 {
8620 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 resultobj = SWIG_Py_Void();
8624 return resultobj;
8625fail:
8626 return NULL;
8627}
8628
8629
8630SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj = 0;
8632 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8633 wxAlphaPixelData *arg2 = 0 ;
8634 int arg3 ;
8635 void *argp1 = 0 ;
8636 int res1 = 0 ;
8637 void *argp2 = 0 ;
8638 int res2 = 0 ;
8639 int val3 ;
8640 int ecode3 = 0 ;
8641 PyObject * obj0 = 0 ;
8642 PyObject * obj1 = 0 ;
8643 PyObject * obj2 = 0 ;
8644 char * kwnames[] = {
8645 (char *) "self",(char *) "data",(char *) "y", NULL
8646 };
8647
8648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8650 if (!SWIG_IsOK(res1)) {
8651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8652 }
8653 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8655 if (!SWIG_IsOK(res2)) {
8656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8657 }
8658 if (!argp2) {
8659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8660 }
8661 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8662 ecode3 = SWIG_AsVal_int(obj2, &val3);
8663 if (!SWIG_IsOK(ecode3)) {
8664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8665 }
8666 arg3 = static_cast< int >(val3);
8667 {
8668 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 resultobj = SWIG_Py_Void();
8672 return resultobj;
8673fail:
8674 return NULL;
8675}
8676
8677
8678SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj = 0;
8680 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8681 wxAlphaPixelData *arg2 = 0 ;
8682 int arg3 ;
8683 int arg4 ;
8684 void *argp1 = 0 ;
8685 int res1 = 0 ;
8686 void *argp2 = 0 ;
8687 int res2 = 0 ;
8688 int val3 ;
8689 int ecode3 = 0 ;
8690 int val4 ;
8691 int ecode4 = 0 ;
8692 PyObject * obj0 = 0 ;
8693 PyObject * obj1 = 0 ;
8694 PyObject * obj2 = 0 ;
8695 PyObject * obj3 = 0 ;
8696 char * kwnames[] = {
8697 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8698 };
8699
8700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8702 if (!SWIG_IsOK(res1)) {
8703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8704 }
8705 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8707 if (!SWIG_IsOK(res2)) {
8708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8709 }
8710 if (!argp2) {
8711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8712 }
8713 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8714 ecode3 = SWIG_AsVal_int(obj2, &val3);
8715 if (!SWIG_IsOK(ecode3)) {
8716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8717 }
8718 arg3 = static_cast< int >(val3);
8719 ecode4 = SWIG_AsVal_int(obj3, &val4);
8720 if (!SWIG_IsOK(ecode4)) {
8721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8722 }
8723 arg4 = static_cast< int >(val4);
8724 {
8725 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 resultobj = SWIG_Py_Void();
8729 return resultobj;
8730fail:
8731 return NULL;
8732}
8733
8734
8735SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj = 0;
8737 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8738 byte arg2 ;
8739 byte arg3 ;
8740 byte arg4 ;
8741 byte arg5 ;
8742 void *argp1 = 0 ;
8743 int res1 = 0 ;
8744 unsigned char val2 ;
8745 int ecode2 = 0 ;
8746 unsigned char val3 ;
8747 int ecode3 = 0 ;
8748 unsigned char val4 ;
8749 int ecode4 = 0 ;
8750 unsigned char val5 ;
8751 int ecode5 = 0 ;
8752 PyObject * obj0 = 0 ;
8753 PyObject * obj1 = 0 ;
8754 PyObject * obj2 = 0 ;
8755 PyObject * obj3 = 0 ;
8756 PyObject * obj4 = 0 ;
8757 char * kwnames[] = {
8758 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8759 };
8760
8761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8763 if (!SWIG_IsOK(res1)) {
8764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8765 }
8766 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8767 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8768 if (!SWIG_IsOK(ecode2)) {
8769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8770 }
8771 arg2 = static_cast< byte >(val2);
8772 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8773 if (!SWIG_IsOK(ecode3)) {
8774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8775 }
8776 arg3 = static_cast< byte >(val3);
8777 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8778 if (!SWIG_IsOK(ecode4)) {
8779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8780 }
8781 arg4 = static_cast< byte >(val4);
8782 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8783 if (!SWIG_IsOK(ecode5)) {
8784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8785 }
8786 arg5 = static_cast< byte >(val5);
8787 {
8788 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8789 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8790 }
fc46b7f3 8791 resultobj = SWIG_Py_Void();
1bd55598
RD
8792 return resultobj;
8793fail:
8794 return NULL;
8795}
8796
8797
fc46b7f3 8798SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8799 PyObject *resultobj = 0;
fc46b7f3
RD
8800 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8801 PyObject *result = 0 ;
1bd55598
RD
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
fc46b7f3 8804 PyObject *swig_obj[1] ;
1bd55598 8805
fc46b7f3
RD
8806 if (!args) SWIG_fail;
8807 swig_obj[0] = args;
8808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8809 if (!SWIG_IsOK(res1)) {
fc46b7f3 8810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8811 }
fc46b7f3 8812 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8813 {
fc46b7f3 8814 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
fc46b7f3 8817 resultobj = result;
1bd55598
RD
8818 return resultobj;
8819fail:
8820 return NULL;
d55e5bfc
RD
8821}
8822
8823
fc46b7f3 8824SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8825 PyObject *obj;
8826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8827 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8828 return SWIG_Py_Void();
d55e5bfc
RD
8829}
8830
fc46b7f3 8831SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8832 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8833}
8834
1bd55598
RD
8835SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8836 PyObject *resultobj = 0;
8837 wxBitmap *arg1 = 0 ;
8838 wxColour const &arg2_defvalue = wxNullColour ;
8839 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8840 wxMask *result = 0 ;
8841 void *argp1 = 0 ;
8842 int res1 = 0 ;
8843 wxColour temp2 ;
8844 PyObject * obj0 = 0 ;
8845 PyObject * obj1 = 0 ;
8846 char * kwnames[] = {
8847 (char *) "bitmap",(char *) "colour", NULL
8848 };
8849
8850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8851 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8852 if (!SWIG_IsOK(res1)) {
8853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8854 }
8855 if (!argp1) {
8856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8857 }
8858 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8859 if (obj1) {
d55e5bfc 8860 {
1bd55598
RD
8861 arg2 = &temp2;
8862 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8863 }
1bd55598
RD
8864 }
8865 {
8866 if (!wxPyCheckForApp()) SWIG_fail;
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8869 wxPyEndAllowThreads(__tstate);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 }
8872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8873 return resultobj;
8874fail:
8875 return NULL;
d55e5bfc
RD
8876}
8877
8878
1bd55598
RD
8879SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8880 PyObject *resultobj = 0;
8881 wxMask *arg1 = (wxMask *) 0 ;
8882 void *argp1 = 0 ;
8883 int res1 = 0 ;
8884 PyObject *swig_obj[1] ;
8885
8886 if (!args) SWIG_fail;
8887 swig_obj[0] = args;
8888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8891 }
8892 arg1 = reinterpret_cast< wxMask * >(argp1);
8893 {
1bd55598 8894 delete arg1;
d55e5bfc 8895
1bd55598
RD
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 resultobj = SWIG_Py_Void();
8899 return resultobj;
8900fail:
8901 return NULL;
8902}
8903
8904
8905SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8906 PyObject *obj;
8907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8908 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8909 return SWIG_Py_Void();
8910}
8911
8912SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8913 return SWIG_Python_InitShadowInstance(args);
8914}
8915
8916SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj = 0;
8918 wxString *arg1 = 0 ;
8919 wxBitmapType arg2 ;
8920 int arg3 = (int) -1 ;
8921 int arg4 = (int) -1 ;
8922 wxIcon *result = 0 ;
8923 bool temp1 = false ;
8924 int val2 ;
8925 int ecode2 = 0 ;
8926 int val3 ;
8927 int ecode3 = 0 ;
8928 int val4 ;
8929 int ecode4 = 0 ;
8930 PyObject * obj0 = 0 ;
8931 PyObject * obj1 = 0 ;
8932 PyObject * obj2 = 0 ;
8933 PyObject * obj3 = 0 ;
8934 char * kwnames[] = {
8935 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8936 };
8937
8938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8939 {
8940 arg1 = wxString_in_helper(obj0);
8941 if (arg1 == NULL) SWIG_fail;
8942 temp1 = true;
8943 }
8944 ecode2 = SWIG_AsVal_int(obj1, &val2);
8945 if (!SWIG_IsOK(ecode2)) {
8946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8947 }
8948 arg2 = static_cast< wxBitmapType >(val2);
8949 if (obj2) {
8950 ecode3 = SWIG_AsVal_int(obj2, &val3);
8951 if (!SWIG_IsOK(ecode3)) {
8952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8953 }
8954 arg3 = static_cast< int >(val3);
8955 }
8956 if (obj3) {
8957 ecode4 = SWIG_AsVal_int(obj3, &val4);
8958 if (!SWIG_IsOK(ecode4)) {
8959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8960 }
8961 arg4 = static_cast< int >(val4);
8962 }
8963 {
8964 if (!wxPyCheckForApp()) SWIG_fail;
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8971 {
8972 if (temp1)
8973 delete arg1;
8974 }
8975 return resultobj;
8976fail:
8977 {
8978 if (temp1)
8979 delete arg1;
8980 }
8981 return NULL;
d55e5bfc
RD
8982}
8983
8984
1bd55598
RD
8985SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8986 PyObject *resultobj = 0;
8987 wxIcon *arg1 = (wxIcon *) 0 ;
8988 void *argp1 = 0 ;
8989 int res1 = 0 ;
8990 PyObject *swig_obj[1] ;
8991
8992 if (!args) SWIG_fail;
8993 swig_obj[0] = args;
8994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8995 if (!SWIG_IsOK(res1)) {
8996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8997 }
8998 arg1 = reinterpret_cast< wxIcon * >(argp1);
8999 {
9000 PyThreadState* __tstate = wxPyBeginAllowThreads();
9001 delete arg1;
d55e5bfc 9002
1bd55598
RD
9003 wxPyEndAllowThreads(__tstate);
9004 if (PyErr_Occurred()) SWIG_fail;
9005 }
9006 resultobj = SWIG_Py_Void();
9007 return resultobj;
9008fail:
9009 return NULL;
d55e5bfc
RD
9010}
9011
9012
1bd55598
RD
9013SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9014 PyObject *resultobj = 0;
9015 wxIcon *result = 0 ;
9016
9017 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9018 {
9019 if (!wxPyCheckForApp()) SWIG_fail;
9020 PyThreadState* __tstate = wxPyBeginAllowThreads();
9021 result = (wxIcon *)new wxIcon();
9022 wxPyEndAllowThreads(__tstate);
9023 if (PyErr_Occurred()) SWIG_fail;
9024 }
9025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9026 return resultobj;
9027fail:
9028 return NULL;
9029}
9030
9031
9032SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9033 PyObject *resultobj = 0;
9034 wxIconLocation *arg1 = 0 ;
9035 wxIcon *result = 0 ;
9036 void *argp1 = 0 ;
9037 int res1 = 0 ;
9038 PyObject * obj0 = 0 ;
9039 char * kwnames[] = {
9040 (char *) "loc", NULL
9041 };
9042
9043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9044 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9047 }
9048 if (!argp1) {
9049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9050 }
9051 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9052 {
9053 if (!wxPyCheckForApp()) SWIG_fail;
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9060 return resultobj;
9061fail:
9062 return NULL;
9063}
9064
9065
9066SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj = 0;
9068 wxBitmap *arg1 = 0 ;
9069 wxIcon *result = 0 ;
9070 void *argp1 = 0 ;
9071 int res1 = 0 ;
9072 PyObject * obj0 = 0 ;
9073 char * kwnames[] = {
9074 (char *) "bmp", NULL
9075 };
9076
9077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9078 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9079 if (!SWIG_IsOK(res1)) {
9080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9081 }
9082 if (!argp1) {
9083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9084 }
9085 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9086 {
9087 if (!wxPyCheckForApp()) SWIG_fail;
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9094 return resultobj;
9095fail:
9096 return NULL;
d55e5bfc
RD
9097}
9098
9099
1bd55598
RD
9100SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9101 PyObject *resultobj = 0;
9102 PyObject *arg1 = (PyObject *) 0 ;
9103 wxIcon *result = 0 ;
9104 PyObject * obj0 = 0 ;
9105 char * kwnames[] = {
9106 (char *) "listOfStrings", NULL
9107 };
9108
9109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9110 arg1 = obj0;
9111 {
9112 if (!wxPyCheckForApp()) SWIG_fail;
9113 PyThreadState* __tstate = wxPyBeginAllowThreads();
9114 result = (wxIcon *)new_wxIcon(arg1);
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9119 return resultobj;
9120fail:
9121 return NULL;
d55e5bfc
RD
9122}
9123
9124
b39fe951 9125SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9126 PyObject *resultobj = 0;
9127 wxIcon *arg1 = (wxIcon *) 0 ;
9128 bool result;
9129 void *argp1 = 0 ;
9130 int res1 = 0 ;
9131 PyObject *swig_obj[1] ;
9132
9133 if (!args) SWIG_fail;
9134 swig_obj[0] = args;
9135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9136 if (!SWIG_IsOK(res1)) {
b39fe951 9137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9138 }
9139 arg1 = reinterpret_cast< wxIcon * >(argp1);
9140 {
9141 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9142 result = (bool)(arg1)->IsOk();
1bd55598
RD
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 {
9147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9148 }
9149 return resultobj;
9150fail:
9151 return NULL;
d55e5bfc
RD
9152}
9153
9154
1bd55598
RD
9155SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9156 PyObject *resultobj = 0;
9157 wxIcon *arg1 = (wxIcon *) 0 ;
9158 int result;
9159 void *argp1 = 0 ;
9160 int res1 = 0 ;
9161 PyObject *swig_obj[1] ;
9162
9163 if (!args) SWIG_fail;
9164 swig_obj[0] = args;
9165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9166 if (!SWIG_IsOK(res1)) {
9167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9168 }
9169 arg1 = reinterpret_cast< wxIcon * >(argp1);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = (int)(arg1)->GetWidth();
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_From_int(static_cast< int >(result));
9177 return resultobj;
9178fail:
9179 return NULL;
d55e5bfc
RD
9180}
9181
9182
1bd55598
RD
9183SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9184 PyObject *resultobj = 0;
9185 wxIcon *arg1 = (wxIcon *) 0 ;
9186 int result;
9187 void *argp1 = 0 ;
9188 int res1 = 0 ;
9189 PyObject *swig_obj[1] ;
9190
9191 if (!args) SWIG_fail;
9192 swig_obj[0] = args;
9193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9194 if (!SWIG_IsOK(res1)) {
9195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9196 }
9197 arg1 = reinterpret_cast< wxIcon * >(argp1);
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 result = (int)(arg1)->GetHeight();
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 resultobj = SWIG_From_int(static_cast< int >(result));
9205 return resultobj;
9206fail:
9207 return NULL;
d55e5bfc
RD
9208}
9209
9210
1bd55598
RD
9211SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9212 PyObject *resultobj = 0;
9213 wxIcon *arg1 = (wxIcon *) 0 ;
9214 int result;
9215 void *argp1 = 0 ;
9216 int res1 = 0 ;
9217 PyObject *swig_obj[1] ;
9218
9219 if (!args) SWIG_fail;
9220 swig_obj[0] = args;
9221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9222 if (!SWIG_IsOK(res1)) {
9223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9224 }
9225 arg1 = reinterpret_cast< wxIcon * >(argp1);
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 result = (int)(arg1)->GetDepth();
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 resultobj = SWIG_From_int(static_cast< int >(result));
9233 return resultobj;
9234fail:
9235 return NULL;
9236}
9237
9238
9239SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj = 0;
9241 wxIcon *arg1 = (wxIcon *) 0 ;
9242 int arg2 ;
9243 void *argp1 = 0 ;
9244 int res1 = 0 ;
9245 int val2 ;
9246 int ecode2 = 0 ;
9247 PyObject * obj0 = 0 ;
9248 PyObject * obj1 = 0 ;
9249 char * kwnames[] = {
9250 (char *) "self",(char *) "w", NULL
9251 };
9252
9253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9255 if (!SWIG_IsOK(res1)) {
9256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9257 }
9258 arg1 = reinterpret_cast< wxIcon * >(argp1);
9259 ecode2 = SWIG_AsVal_int(obj1, &val2);
9260 if (!SWIG_IsOK(ecode2)) {
9261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9262 }
9263 arg2 = static_cast< int >(val2);
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 (arg1)->SetWidth(arg2);
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 resultobj = SWIG_Py_Void();
9271 return resultobj;
9272fail:
9273 return NULL;
9274}
9275
9276
9277SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj = 0;
9279 wxIcon *arg1 = (wxIcon *) 0 ;
9280 int arg2 ;
9281 void *argp1 = 0 ;
9282 int res1 = 0 ;
9283 int val2 ;
9284 int ecode2 = 0 ;
9285 PyObject * obj0 = 0 ;
9286 PyObject * obj1 = 0 ;
9287 char * kwnames[] = {
9288 (char *) "self",(char *) "h", NULL
9289 };
9290
9291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9293 if (!SWIG_IsOK(res1)) {
9294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9295 }
9296 arg1 = reinterpret_cast< wxIcon * >(argp1);
9297 ecode2 = SWIG_AsVal_int(obj1, &val2);
9298 if (!SWIG_IsOK(ecode2)) {
9299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9300 }
9301 arg2 = static_cast< int >(val2);
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 (arg1)->SetHeight(arg2);
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 resultobj = SWIG_Py_Void();
9309 return resultobj;
9310fail:
9311 return NULL;
9312}
9313
9314
9315SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9316 PyObject *resultobj = 0;
9317 wxIcon *arg1 = (wxIcon *) 0 ;
9318 int arg2 ;
9319 void *argp1 = 0 ;
9320 int res1 = 0 ;
9321 int val2 ;
9322 int ecode2 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 char * kwnames[] = {
9326 (char *) "self",(char *) "d", NULL
9327 };
9328
9329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9331 if (!SWIG_IsOK(res1)) {
9332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9333 }
9334 arg1 = reinterpret_cast< wxIcon * >(argp1);
9335 ecode2 = SWIG_AsVal_int(obj1, &val2);
9336 if (!SWIG_IsOK(ecode2)) {
9337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9338 }
9339 arg2 = static_cast< int >(val2);
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 (arg1)->SetDepth(arg2);
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 resultobj = SWIG_Py_Void();
9347 return resultobj;
9348fail:
9349 return NULL;
9350}
9351
9352
9353SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj = 0;
9355 wxIcon *arg1 = (wxIcon *) 0 ;
9356 wxBitmap *arg2 = 0 ;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 void *argp2 = 0 ;
9360 int res2 = 0 ;
9361 PyObject * obj0 = 0 ;
9362 PyObject * obj1 = 0 ;
9363 char * kwnames[] = {
9364 (char *) "self",(char *) "bmp", NULL
9365 };
9366
9367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9369 if (!SWIG_IsOK(res1)) {
9370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9371 }
9372 arg1 = reinterpret_cast< wxIcon * >(argp1);
9373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9374 if (!SWIG_IsOK(res2)) {
9375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9376 }
9377 if (!argp2) {
9378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9379 }
9380 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9381 {
9382 PyThreadState* __tstate = wxPyBeginAllowThreads();
9383 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9384 wxPyEndAllowThreads(__tstate);
9385 if (PyErr_Occurred()) SWIG_fail;
9386 }
9387 resultobj = SWIG_Py_Void();
9388 return resultobj;
9389fail:
9390 return NULL;
d55e5bfc
RD
9391}
9392
9393
1bd55598
RD
9394SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9395 PyObject *obj;
9396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9397 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9398 return SWIG_Py_Void();
d55e5bfc
RD
9399}
9400
1bd55598
RD
9401SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9402 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9403}
9404
1bd55598
RD
9405SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj = 0;
9407 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9408 int arg2 = (int) 0 ;
9409 wxIconLocation *result = 0 ;
9410 bool temp1 = false ;
9411 int val2 ;
9412 int ecode2 = 0 ;
9413 PyObject * obj0 = 0 ;
9414 PyObject * obj1 = 0 ;
9415 char * kwnames[] = {
9416 (char *) "filename",(char *) "num", NULL
9417 };
9418
9419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9420 if (obj0) {
d55e5bfc 9421 {
1bd55598
RD
9422 arg1 = wxString_in_helper(obj0);
9423 if (arg1 == NULL) SWIG_fail;
9424 temp1 = true;
d55e5bfc 9425 }
1bd55598
RD
9426 }
9427 if (obj1) {
9428 ecode2 = SWIG_AsVal_int(obj1, &val2);
9429 if (!SWIG_IsOK(ecode2)) {
9430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9431 }
9432 arg2 = static_cast< int >(val2);
9433 }
9434 {
9435 PyThreadState* __tstate = wxPyBeginAllowThreads();
9436 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9437 wxPyEndAllowThreads(__tstate);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9441 {
9442 if (temp1)
9443 delete arg1;
9444 }
9445 return resultobj;
9446fail:
9447 {
9448 if (temp1)
9449 delete arg1;
9450 }
9451 return NULL;
d55e5bfc
RD
9452}
9453
9454
1bd55598
RD
9455SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9456 PyObject *resultobj = 0;
9457 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9458 void *argp1 = 0 ;
9459 int res1 = 0 ;
9460 PyObject *swig_obj[1] ;
9461
9462 if (!args) SWIG_fail;
9463 swig_obj[0] = args;
9464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9465 if (!SWIG_IsOK(res1)) {
9466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9467 }
9468 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 delete arg1;
d55e5bfc 9472
1bd55598
RD
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_Py_Void();
9477 return resultobj;
9478fail:
9479 return NULL;
d55e5bfc
RD
9480}
9481
9482
1bd55598
RD
9483SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9484 PyObject *resultobj = 0;
9485 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9486 bool result;
9487 void *argp1 = 0 ;
9488 int res1 = 0 ;
9489 PyObject *swig_obj[1] ;
9490
9491 if (!args) SWIG_fail;
9492 swig_obj[0] = args;
9493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9494 if (!SWIG_IsOK(res1)) {
9495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9496 }
9497 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 {
9505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9506 }
9507 return resultobj;
9508fail:
9509 return NULL;
9510}
9511
9512
9513SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj = 0;
9515 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9516 wxString *arg2 = 0 ;
9517 void *argp1 = 0 ;
9518 int res1 = 0 ;
9519 bool temp2 = false ;
9520 PyObject * obj0 = 0 ;
9521 PyObject * obj1 = 0 ;
9522 char * kwnames[] = {
9523 (char *) "self",(char *) "filename", NULL
9524 };
9525
9526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9528 if (!SWIG_IsOK(res1)) {
9529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9530 }
9531 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9532 {
9533 arg2 = wxString_in_helper(obj1);
9534 if (arg2 == NULL) SWIG_fail;
9535 temp2 = true;
9536 }
9537 {
9538 PyThreadState* __tstate = wxPyBeginAllowThreads();
9539 (arg1)->SetFileName((wxString const &)*arg2);
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 resultobj = SWIG_Py_Void();
9544 {
9545 if (temp2)
9546 delete arg2;
9547 }
9548 return resultobj;
9549fail:
9550 {
9551 if (temp2)
9552 delete arg2;
9553 }
9554 return NULL;
d55e5bfc
RD
9555}
9556
9557
1bd55598
RD
9558SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9559 PyObject *resultobj = 0;
9560 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9561 wxString *result = 0 ;
9562 void *argp1 = 0 ;
9563 int res1 = 0 ;
9564 PyObject *swig_obj[1] ;
9565
9566 if (!args) SWIG_fail;
9567 swig_obj[0] = args;
9568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9569 if (!SWIG_IsOK(res1)) {
9570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9571 }
9572 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9575 {
1bd55598
RD
9576 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9577 result = (wxString *) &_result_ref;
d55e5bfc 9578 }
1bd55598
RD
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 {
9583#if wxUSE_UNICODE
9584 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9585#else
9586 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9587#endif
9588 }
9589 return resultobj;
9590fail:
9591 return NULL;
9592}
9593
9594
9595SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9596 PyObject *resultobj = 0;
9597 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9598 int arg2 ;
9599 void *argp1 = 0 ;
9600 int res1 = 0 ;
9601 int val2 ;
9602 int ecode2 = 0 ;
9603 PyObject * obj0 = 0 ;
9604 PyObject * obj1 = 0 ;
9605 char * kwnames[] = {
9606 (char *) "self",(char *) "num", NULL
9607 };
9608
9609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9611 if (!SWIG_IsOK(res1)) {
9612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9613 }
9614 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9615 ecode2 = SWIG_AsVal_int(obj1, &val2);
9616 if (!SWIG_IsOK(ecode2)) {
9617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9618 }
9619 arg2 = static_cast< int >(val2);
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 wxIconLocation_SetIndex(arg1,arg2);
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_Py_Void();
9627 return resultobj;
9628fail:
9629 return NULL;
d55e5bfc
RD
9630}
9631
9632
1bd55598
RD
9633SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9634 PyObject *resultobj = 0;
9635 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9636 int result;
9637 void *argp1 = 0 ;
9638 int res1 = 0 ;
9639 PyObject *swig_obj[1] ;
9640
9641 if (!args) SWIG_fail;
9642 swig_obj[0] = args;
9643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9644 if (!SWIG_IsOK(res1)) {
9645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9646 }
9647 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 result = (int)wxIconLocation_GetIndex(arg1);
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 resultobj = SWIG_From_int(static_cast< int >(result));
9655 return resultobj;
9656fail:
9657 return NULL;
d55e5bfc
RD
9658}
9659
9660
1bd55598
RD
9661SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9662 PyObject *obj;
9663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9664 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9665 return SWIG_Py_Void();
d55e5bfc
RD
9666}
9667
1bd55598
RD
9668SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9669 return SWIG_Python_InitShadowInstance(args);
9670}
d55e5bfc 9671
1bd55598
RD
9672SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9673 PyObject *resultobj = 0;
9674 wxIconBundle *result = 0 ;
9675
9676 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 result = (wxIconBundle *)new wxIconBundle();
9680 wxPyEndAllowThreads(__tstate);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 }
9683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9684 return resultobj;
9685fail:
9686 return NULL;
9687}
9688
9689
9690SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9691 PyObject *resultobj = 0;
9692 wxString *arg1 = 0 ;
9693 long arg2 ;
9694 wxIconBundle *result = 0 ;
9695 bool temp1 = false ;
9696 long val2 ;
9697 int ecode2 = 0 ;
9698 PyObject * obj0 = 0 ;
9699 PyObject * obj1 = 0 ;
9700 char * kwnames[] = {
9701 (char *) "file",(char *) "type", NULL
9702 };
9703
9704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9705 {
9706 arg1 = wxString_in_helper(obj0);
9707 if (arg1 == NULL) SWIG_fail;
9708 temp1 = true;
9709 }
9710 ecode2 = SWIG_AsVal_long(obj1, &val2);
9711 if (!SWIG_IsOK(ecode2)) {
9712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9713 }
9714 arg2 = static_cast< long >(val2);
9715 {
9716 PyThreadState* __tstate = wxPyBeginAllowThreads();
9717 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9718 wxPyEndAllowThreads(__tstate);
9719 if (PyErr_Occurred()) SWIG_fail;
9720 }
9721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9722 {
9723 if (temp1)
9724 delete arg1;
9725 }
9726 return resultobj;
9727fail:
9728 {
9729 if (temp1)
9730 delete arg1;
9731 }
9732 return NULL;
d55e5bfc
RD
9733}
9734
9735
1bd55598
RD
9736SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj = 0;
9738 wxIcon *arg1 = 0 ;
9739 wxIconBundle *result = 0 ;
9740 void *argp1 = 0 ;
9741 int res1 = 0 ;
9742 PyObject * obj0 = 0 ;
9743 char * kwnames[] = {
9744 (char *) "icon", NULL
9745 };
9746
9747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9748 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9749 if (!SWIG_IsOK(res1)) {
9750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9751 }
9752 if (!argp1) {
9753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9754 }
9755 arg1 = reinterpret_cast< wxIcon * >(argp1);
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9763 return resultobj;
9764fail:
9765 return NULL;
d55e5bfc
RD
9766}
9767
9768
1bd55598
RD
9769SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9770 PyObject *resultobj = 0;
9771 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9772 void *argp1 = 0 ;
9773 int res1 = 0 ;
9774 PyObject *swig_obj[1] ;
9775
9776 if (!args) SWIG_fail;
9777 swig_obj[0] = args;
9778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9779 if (!SWIG_IsOK(res1)) {
9780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9781 }
9782 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9783 {
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 delete arg1;
d55e5bfc 9786
1bd55598
RD
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_Py_Void();
9791 return resultobj;
9792fail:
9793 return NULL;
9794}
9795
9796
9797SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9800 wxIcon *arg2 = 0 ;
9801 void *argp1 = 0 ;
9802 int res1 = 0 ;
9803 void *argp2 = 0 ;
9804 int res2 = 0 ;
9805 PyObject * obj0 = 0 ;
9806 PyObject * obj1 = 0 ;
9807 char * kwnames[] = {
9808 (char *) "self",(char *) "icon", NULL
9809 };
9810
9811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9813 if (!SWIG_IsOK(res1)) {
9814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9815 }
9816 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9818 if (!SWIG_IsOK(res2)) {
9819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9820 }
9821 if (!argp2) {
9822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9823 }
9824 arg2 = reinterpret_cast< wxIcon * >(argp2);
9825 {
9826 PyThreadState* __tstate = wxPyBeginAllowThreads();
9827 (arg1)->AddIcon((wxIcon const &)*arg2);
9828 wxPyEndAllowThreads(__tstate);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 }
9831 resultobj = SWIG_Py_Void();
9832 return resultobj;
9833fail:
9834 return NULL;
9835}
9836
9837
9838SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9839 PyObject *resultobj = 0;
9840 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9841 wxString *arg2 = 0 ;
9842 long arg3 ;
9843 void *argp1 = 0 ;
9844 int res1 = 0 ;
9845 bool temp2 = false ;
9846 long val3 ;
9847 int ecode3 = 0 ;
9848 PyObject * obj0 = 0 ;
9849 PyObject * obj1 = 0 ;
9850 PyObject * obj2 = 0 ;
9851 char * kwnames[] = {
9852 (char *) "self",(char *) "file",(char *) "type", NULL
9853 };
9854
9855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9857 if (!SWIG_IsOK(res1)) {
9858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9859 }
9860 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9861 {
9862 arg2 = wxString_in_helper(obj1);
9863 if (arg2 == NULL) SWIG_fail;
9864 temp2 = true;
9865 }
9866 ecode3 = SWIG_AsVal_long(obj2, &val3);
9867 if (!SWIG_IsOK(ecode3)) {
9868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9869 }
9870 arg3 = static_cast< long >(val3);
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_Py_Void();
9878 {
9879 if (temp2)
9880 delete arg2;
9881 }
9882 return resultobj;
9883fail:
9884 {
9885 if (temp2)
9886 delete arg2;
9887 }
9888 return NULL;
9889}
9890
9891
9892SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9893 PyObject *resultobj = 0;
9894 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9895 wxSize *arg2 = 0 ;
9896 wxIcon *result = 0 ;
9897 void *argp1 = 0 ;
9898 int res1 = 0 ;
9899 wxSize temp2 ;
9900 PyObject * obj0 = 0 ;
9901 PyObject * obj1 = 0 ;
9902 char * kwnames[] = {
9903 (char *) "self",(char *) "size", NULL
9904 };
9905
9906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9910 }
9911 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9912 {
9913 arg2 = &temp2;
9914 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9915 }
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9918 {
1bd55598
RD
9919 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9920 result = (wxIcon *) &_result_ref;
d55e5bfc 9921 }
1bd55598
RD
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 {
9926 wxIcon* resultptr = new wxIcon(*result);
9927 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9928 }
9929 return resultobj;
9930fail:
9931 return NULL;
9932}
9933
9934
9935SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9936 PyObject *obj;
9937 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9938 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9939 return SWIG_Py_Void();
9940}
9941
9942SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9943 return SWIG_Python_InitShadowInstance(args);
9944}
9945
9946SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj = 0;
9948 wxString *arg1 = 0 ;
9949 long arg2 ;
9950 int arg3 = (int) 0 ;
9951 int arg4 = (int) 0 ;
9952 wxCursor *result = 0 ;
9953 bool temp1 = false ;
9954 long val2 ;
9955 int ecode2 = 0 ;
9956 int val3 ;
9957 int ecode3 = 0 ;
9958 int val4 ;
9959 int ecode4 = 0 ;
9960 PyObject * obj0 = 0 ;
9961 PyObject * obj1 = 0 ;
9962 PyObject * obj2 = 0 ;
9963 PyObject * obj3 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9969 {
9970 arg1 = wxString_in_helper(obj0);
9971 if (arg1 == NULL) SWIG_fail;
9972 temp1 = true;
9973 }
9974 ecode2 = SWIG_AsVal_long(obj1, &val2);
9975 if (!SWIG_IsOK(ecode2)) {
9976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9977 }
9978 arg2 = static_cast< long >(val2);
9979 if (obj2) {
9980 ecode3 = SWIG_AsVal_int(obj2, &val3);
9981 if (!SWIG_IsOK(ecode3)) {
9982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9983 }
9984 arg3 = static_cast< int >(val3);
9985 }
9986 if (obj3) {
9987 ecode4 = SWIG_AsVal_int(obj3, &val4);
9988 if (!SWIG_IsOK(ecode4)) {
9989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9990 }
9991 arg4 = static_cast< int >(val4);
9992 }
9993 {
9994 if (!wxPyCheckForApp()) SWIG_fail;
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9997 wxPyEndAllowThreads(__tstate);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10001 {
10002 if (temp1)
10003 delete arg1;
10004 }
10005 return resultobj;
10006fail:
10007 {
10008 if (temp1)
10009 delete arg1;
10010 }
10011 return NULL;
d55e5bfc
RD
10012}
10013
10014
1bd55598
RD
10015SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10016 PyObject *resultobj = 0;
10017 wxCursor *arg1 = (wxCursor *) 0 ;
10018 void *argp1 = 0 ;
10019 int res1 = 0 ;
10020 PyObject *swig_obj[1] ;
10021
10022 if (!args) SWIG_fail;
10023 swig_obj[0] = args;
10024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10025 if (!SWIG_IsOK(res1)) {
10026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10027 }
10028 arg1 = reinterpret_cast< wxCursor * >(argp1);
10029 {
10030 PyThreadState* __tstate = wxPyBeginAllowThreads();
10031 delete arg1;
d55e5bfc 10032
1bd55598
RD
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) SWIG_fail;
10035 }
10036 resultobj = SWIG_Py_Void();
10037 return resultobj;
10038fail:
10039 return NULL;
10040}
10041
10042
10043SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj = 0;
10045 int arg1 ;
10046 wxCursor *result = 0 ;
10047 int val1 ;
10048 int ecode1 = 0 ;
10049 PyObject * obj0 = 0 ;
10050 char * kwnames[] = {
10051 (char *) "id", NULL
10052 };
10053
10054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10055 ecode1 = SWIG_AsVal_int(obj0, &val1);
10056 if (!SWIG_IsOK(ecode1)) {
10057 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10058 }
10059 arg1 = static_cast< int >(val1);
10060 {
10061 if (!wxPyCheckForApp()) SWIG_fail;
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 result = (wxCursor *)new wxCursor(arg1);
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10068 return resultobj;
10069fail:
10070 return NULL;
10071}
10072
10073
10074SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj = 0;
10076 wxImage *arg1 = 0 ;
10077 wxCursor *result = 0 ;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 PyObject * obj0 = 0 ;
10081 char * kwnames[] = {
10082 (char *) "image", NULL
10083 };
10084
10085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10086 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10087 if (!SWIG_IsOK(res1)) {
10088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10089 }
10090 if (!argp1) {
10091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10092 }
10093 arg1 = reinterpret_cast< wxImage * >(argp1);
10094 {
10095 if (!wxPyCheckForApp()) SWIG_fail;
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10102 return resultobj;
10103fail:
10104 return NULL;
d55e5bfc
RD
10105}
10106
10107
b39fe951 10108SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10109 PyObject *resultobj = 0;
10110 wxCursor *arg1 = (wxCursor *) 0 ;
10111 bool result;
10112 void *argp1 = 0 ;
10113 int res1 = 0 ;
10114 PyObject *swig_obj[1] ;
10115
10116 if (!args) SWIG_fail;
10117 swig_obj[0] = args;
10118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10119 if (!SWIG_IsOK(res1)) {
b39fe951 10120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10121 }
10122 arg1 = reinterpret_cast< wxCursor * >(argp1);
10123 {
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10125 result = (bool)(arg1)->IsOk();
1bd55598
RD
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 {
10130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10131 }
10132 return resultobj;
10133fail:
10134 return NULL;
10135}
10136
10137
10138SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10139 PyObject *obj;
10140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10141 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10142 return SWIG_Py_Void();
10143}
10144
10145SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10146 return SWIG_Python_InitShadowInstance(args);
10147}
10148
10149SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10150 PyObject *resultobj = 0;
10151 int arg1 = (int) 0 ;
10152 int arg2 = (int) 0 ;
10153 int arg3 = (int) 0 ;
10154 int arg4 = (int) 0 ;
10155 wxRegion *result = 0 ;
10156 int val1 ;
10157 int ecode1 = 0 ;
10158 int val2 ;
10159 int ecode2 = 0 ;
10160 int val3 ;
10161 int ecode3 = 0 ;
10162 int val4 ;
10163 int ecode4 = 0 ;
10164 PyObject * obj0 = 0 ;
10165 PyObject * obj1 = 0 ;
10166 PyObject * obj2 = 0 ;
10167 PyObject * obj3 = 0 ;
10168 char * kwnames[] = {
10169 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10170 };
10171
10172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10173 if (obj0) {
10174 ecode1 = SWIG_AsVal_int(obj0, &val1);
10175 if (!SWIG_IsOK(ecode1)) {
10176 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10177 }
10178 arg1 = static_cast< int >(val1);
10179 }
10180 if (obj1) {
10181 ecode2 = SWIG_AsVal_int(obj1, &val2);
10182 if (!SWIG_IsOK(ecode2)) {
10183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10184 }
10185 arg2 = static_cast< int >(val2);
10186 }
10187 if (obj2) {
10188 ecode3 = SWIG_AsVal_int(obj2, &val3);
10189 if (!SWIG_IsOK(ecode3)) {
10190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10191 }
10192 arg3 = static_cast< int >(val3);
10193 }
10194 if (obj3) {
10195 ecode4 = SWIG_AsVal_int(obj3, &val4);
10196 if (!SWIG_IsOK(ecode4)) {
10197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10198 }
10199 arg4 = static_cast< int >(val4);
10200 }
10201 {
10202 if (!wxPyCheckForApp()) SWIG_fail;
10203 PyThreadState* __tstate = wxPyBeginAllowThreads();
10204 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10209 return resultobj;
10210fail:
10211 return NULL;
10212}
10213
10214
10215SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj = 0;
10217 wxBitmap *arg1 = 0 ;
10218 wxRegion *result = 0 ;
10219 void *argp1 = 0 ;
10220 int res1 = 0 ;
10221 PyObject * obj0 = 0 ;
10222 char * kwnames[] = {
10223 (char *) "bmp", NULL
10224 };
10225
10226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10227 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10228 if (!SWIG_IsOK(res1)) {
10229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10230 }
10231 if (!argp1) {
10232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10233 }
10234 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10235 {
10236 if (!wxPyCheckForApp()) SWIG_fail;
10237 PyThreadState* __tstate = wxPyBeginAllowThreads();
10238 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10239 wxPyEndAllowThreads(__tstate);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 }
10242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10243 return resultobj;
10244fail:
10245 return NULL;
10246}
10247
10248
10249SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10250 PyObject *resultobj = 0;
10251 wxBitmap *arg1 = 0 ;
10252 wxColour *arg2 = 0 ;
10253 int arg3 = (int) 0 ;
10254 wxRegion *result = 0 ;
10255 void *argp1 = 0 ;
10256 int res1 = 0 ;
10257 wxColour temp2 ;
10258 int val3 ;
10259 int ecode3 = 0 ;
10260 PyObject * obj0 = 0 ;
10261 PyObject * obj1 = 0 ;
10262 PyObject * obj2 = 0 ;
10263 char * kwnames[] = {
10264 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10265 };
10266
10267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10268 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10269 if (!SWIG_IsOK(res1)) {
10270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10271 }
10272 if (!argp1) {
10273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10274 }
10275 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10276 {
10277 arg2 = &temp2;
10278 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10279 }
10280 if (obj2) {
10281 ecode3 = SWIG_AsVal_int(obj2, &val3);
10282 if (!SWIG_IsOK(ecode3)) {
10283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10284 }
10285 arg3 = static_cast< int >(val3);
10286 }
10287 {
10288 if (!wxPyCheckForApp()) SWIG_fail;
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
10290 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10291 wxPyEndAllowThreads(__tstate);
10292 if (PyErr_Occurred()) SWIG_fail;
10293 }
10294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10295 return resultobj;
10296fail:
10297 return NULL;
10298}
10299
10300
10301SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10302 PyObject *resultobj = 0;
10303 int arg1 ;
10304 wxPoint *arg2 = (wxPoint *) 0 ;
10305 int arg3 = (int) wxWINDING_RULE ;
10306 wxRegion *result = 0 ;
10307 int val3 ;
10308 int ecode3 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 char * kwnames[] = {
10312 (char *) "points",(char *) "fillStyle", NULL
10313 };
10314
10315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10316 {
10317 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10318 if (arg2 == NULL) SWIG_fail;
10319 }
10320 if (obj1) {
10321 ecode3 = SWIG_AsVal_int(obj1, &val3);
10322 if (!SWIG_IsOK(ecode3)) {
10323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10324 }
10325 arg3 = static_cast< int >(val3);
10326 }
10327 {
10328 if (!wxPyCheckForApp()) SWIG_fail;
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10335 {
10336 if (arg2) delete [] arg2;
10337 }
10338 return resultobj;
10339fail:
10340 {
10341 if (arg2) delete [] arg2;
10342 }
10343 return NULL;
d55e5bfc
RD
10344}
10345
10346
1bd55598
RD
10347SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10348 PyObject *resultobj = 0;
10349 wxRegion *arg1 = (wxRegion *) 0 ;
10350 void *argp1 = 0 ;
10351 int res1 = 0 ;
10352 PyObject *swig_obj[1] ;
10353
10354 if (!args) SWIG_fail;
10355 swig_obj[0] = args;
10356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10357 if (!SWIG_IsOK(res1)) {
10358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10359 }
10360 arg1 = reinterpret_cast< wxRegion * >(argp1);
10361 {
10362 PyThreadState* __tstate = wxPyBeginAllowThreads();
10363 delete arg1;
d55e5bfc 10364
1bd55598
RD
10365 wxPyEndAllowThreads(__tstate);
10366 if (PyErr_Occurred()) SWIG_fail;
10367 }
10368 resultobj = SWIG_Py_Void();
10369 return resultobj;
10370fail:
10371 return NULL;
d55e5bfc
RD
10372}
10373
10374
1bd55598
RD
10375SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10376 PyObject *resultobj = 0;
10377 wxRegion *arg1 = (wxRegion *) 0 ;
10378 void *argp1 = 0 ;
10379 int res1 = 0 ;
10380 PyObject *swig_obj[1] ;
10381
10382 if (!args) SWIG_fail;
10383 swig_obj[0] = args;
10384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10385 if (!SWIG_IsOK(res1)) {
10386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10387 }
10388 arg1 = reinterpret_cast< wxRegion * >(argp1);
10389 {
10390 PyThreadState* __tstate = wxPyBeginAllowThreads();
10391 (arg1)->Clear();
10392 wxPyEndAllowThreads(__tstate);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 resultobj = SWIG_Py_Void();
10396 return resultobj;
10397fail:
10398 return NULL;
10399}
10400
10401
10402SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10403 PyObject *resultobj = 0;
10404 wxRegion *arg1 = (wxRegion *) 0 ;
10405 int arg2 ;
10406 int arg3 ;
10407 bool result;
10408 void *argp1 = 0 ;
10409 int res1 = 0 ;
10410 int val2 ;
10411 int ecode2 = 0 ;
10412 int val3 ;
10413 int ecode3 = 0 ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 PyObject * obj2 = 0 ;
10417 char * kwnames[] = {
10418 (char *) "self",(char *) "x",(char *) "y", NULL
10419 };
10420
10421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10423 if (!SWIG_IsOK(res1)) {
10424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10425 }
10426 arg1 = reinterpret_cast< wxRegion * >(argp1);
10427 ecode2 = SWIG_AsVal_int(obj1, &val2);
10428 if (!SWIG_IsOK(ecode2)) {
10429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10430 }
10431 arg2 = static_cast< int >(val2);
10432 ecode3 = SWIG_AsVal_int(obj2, &val3);
10433 if (!SWIG_IsOK(ecode3)) {
10434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10435 }
10436 arg3 = static_cast< int >(val3);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (bool)(arg1)->Offset(arg2,arg3);
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 {
10444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10445 }
10446 return resultobj;
10447fail:
10448 return NULL;
10449}
10450
10451
10452SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10453 PyObject *resultobj = 0;
10454 wxRegion *arg1 = (wxRegion *) 0 ;
10455 int arg2 ;
10456 int arg3 ;
10457 wxRegionContain result;
10458 void *argp1 = 0 ;
10459 int res1 = 0 ;
10460 int val2 ;
10461 int ecode2 = 0 ;
10462 int val3 ;
10463 int ecode3 = 0 ;
10464 PyObject * obj0 = 0 ;
10465 PyObject * obj1 = 0 ;
10466 PyObject * obj2 = 0 ;
10467 char * kwnames[] = {
10468 (char *) "self",(char *) "x",(char *) "y", NULL
10469 };
10470
10471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10473 if (!SWIG_IsOK(res1)) {
10474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10475 }
10476 arg1 = reinterpret_cast< wxRegion * >(argp1);
10477 ecode2 = SWIG_AsVal_int(obj1, &val2);
10478 if (!SWIG_IsOK(ecode2)) {
10479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10480 }
10481 arg2 = static_cast< int >(val2);
10482 ecode3 = SWIG_AsVal_int(obj2, &val3);
10483 if (!SWIG_IsOK(ecode3)) {
10484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10485 }
10486 arg3 = static_cast< int >(val3);
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 resultobj = SWIG_From_int(static_cast< int >(result));
10494 return resultobj;
10495fail:
10496 return NULL;
10497}
10498
10499
10500SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj = 0;
10502 wxRegion *arg1 = (wxRegion *) 0 ;
10503 wxPoint *arg2 = 0 ;
10504 wxRegionContain result;
10505 void *argp1 = 0 ;
10506 int res1 = 0 ;
10507 wxPoint temp2 ;
10508 PyObject * obj0 = 0 ;
10509 PyObject * obj1 = 0 ;
10510 char * kwnames[] = {
10511 (char *) "self",(char *) "pt", NULL
10512 };
10513
10514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10516 if (!SWIG_IsOK(res1)) {
10517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10518 }
10519 arg1 = reinterpret_cast< wxRegion * >(argp1);
10520 {
10521 arg2 = &temp2;
10522 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10523 }
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 resultobj = SWIG_From_int(static_cast< int >(result));
10531 return resultobj;
10532fail:
10533 return NULL;
10534}
10535
10536
10537SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10538 PyObject *resultobj = 0;
10539 wxRegion *arg1 = (wxRegion *) 0 ;
10540 wxRect *arg2 = 0 ;
10541 wxRegionContain result;
10542 void *argp1 = 0 ;
10543 int res1 = 0 ;
10544 wxRect temp2 ;
10545 PyObject * obj0 = 0 ;
10546 PyObject * obj1 = 0 ;
10547 char * kwnames[] = {
10548 (char *) "self",(char *) "rect", NULL
10549 };
10550
10551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10555 }
10556 arg1 = reinterpret_cast< wxRegion * >(argp1);
10557 {
10558 arg2 = &temp2;
10559 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10560 }
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 resultobj = SWIG_From_int(static_cast< int >(result));
10568 return resultobj;
10569fail:
10570 return NULL;
10571}
10572
10573
10574SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj = 0;
10576 wxRegion *arg1 = (wxRegion *) 0 ;
10577 int arg2 ;
10578 int arg3 ;
10579 int arg4 ;
10580 int arg5 ;
10581 wxRegionContain result;
10582 void *argp1 = 0 ;
10583 int res1 = 0 ;
10584 int val2 ;
10585 int ecode2 = 0 ;
10586 int val3 ;
10587 int ecode3 = 0 ;
10588 int val4 ;
10589 int ecode4 = 0 ;
10590 int val5 ;
10591 int ecode5 = 0 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 PyObject * obj2 = 0 ;
10595 PyObject * obj3 = 0 ;
10596 PyObject * obj4 = 0 ;
10597 char * kwnames[] = {
10598 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10599 };
10600
10601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10605 }
10606 arg1 = reinterpret_cast< wxRegion * >(argp1);
10607 ecode2 = SWIG_AsVal_int(obj1, &val2);
10608 if (!SWIG_IsOK(ecode2)) {
10609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10610 }
10611 arg2 = static_cast< int >(val2);
10612 ecode3 = SWIG_AsVal_int(obj2, &val3);
10613 if (!SWIG_IsOK(ecode3)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10615 }
10616 arg3 = static_cast< int >(val3);
10617 ecode4 = SWIG_AsVal_int(obj3, &val4);
10618 if (!SWIG_IsOK(ecode4)) {
10619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10620 }
10621 arg4 = static_cast< int >(val4);
10622 ecode5 = SWIG_AsVal_int(obj4, &val5);
10623 if (!SWIG_IsOK(ecode5)) {
10624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10625 }
10626 arg5 = static_cast< int >(val5);
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 resultobj = SWIG_From_int(static_cast< int >(result));
10634 return resultobj;
10635fail:
10636 return NULL;
d55e5bfc
RD
10637}
10638
10639
1bd55598
RD
10640SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10641 PyObject *resultobj = 0;
10642 wxRegion *arg1 = (wxRegion *) 0 ;
10643 wxRect result;
10644 void *argp1 = 0 ;
10645 int res1 = 0 ;
10646 PyObject *swig_obj[1] ;
10647
10648 if (!args) SWIG_fail;
10649 swig_obj[0] = args;
10650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10651 if (!SWIG_IsOK(res1)) {
10652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10653 }
10654 arg1 = reinterpret_cast< wxRegion * >(argp1);
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (arg1)->GetBox();
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10662 return resultobj;
10663fail:
10664 return NULL;
10665}
10666
10667
10668SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj = 0;
10670 wxRegion *arg1 = (wxRegion *) 0 ;
10671 int arg2 ;
10672 int arg3 ;
10673 int arg4 ;
10674 int arg5 ;
10675 bool result;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 int val2 ;
10679 int ecode2 = 0 ;
10680 int val3 ;
10681 int ecode3 = 0 ;
10682 int val4 ;
10683 int ecode4 = 0 ;
10684 int val5 ;
10685 int ecode5 = 0 ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 PyObject * obj2 = 0 ;
10689 PyObject * obj3 = 0 ;
10690 PyObject * obj4 = 0 ;
10691 char * kwnames[] = {
10692 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10693 };
10694
10695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10697 if (!SWIG_IsOK(res1)) {
10698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10699 }
10700 arg1 = reinterpret_cast< wxRegion * >(argp1);
10701 ecode2 = SWIG_AsVal_int(obj1, &val2);
10702 if (!SWIG_IsOK(ecode2)) {
10703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10704 }
10705 arg2 = static_cast< int >(val2);
10706 ecode3 = SWIG_AsVal_int(obj2, &val3);
10707 if (!SWIG_IsOK(ecode3)) {
10708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10709 }
10710 arg3 = static_cast< int >(val3);
10711 ecode4 = SWIG_AsVal_int(obj3, &val4);
10712 if (!SWIG_IsOK(ecode4)) {
10713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10714 }
10715 arg4 = static_cast< int >(val4);
10716 ecode5 = SWIG_AsVal_int(obj4, &val5);
10717 if (!SWIG_IsOK(ecode5)) {
10718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10719 }
10720 arg5 = static_cast< int >(val5);
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10724 wxPyEndAllowThreads(__tstate);
10725 if (PyErr_Occurred()) SWIG_fail;
10726 }
10727 {
10728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10729 }
10730 return resultobj;
10731fail:
10732 return NULL;
10733}
10734
10735
10736SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxRegion *arg1 = (wxRegion *) 0 ;
10739 wxRect *arg2 = 0 ;
10740 bool result;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 wxRect temp2 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 char * kwnames[] = {
10747 (char *) "self",(char *) "rect", NULL
10748 };
10749
10750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10752 if (!SWIG_IsOK(res1)) {
10753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10754 }
10755 arg1 = reinterpret_cast< wxRegion * >(argp1);
10756 {
10757 arg2 = &temp2;
10758 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10759 }
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 }
10766 {
10767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10768 }
10769 return resultobj;
10770fail:
10771 return NULL;
10772}
10773
10774
10775SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10776 PyObject *resultobj = 0;
10777 wxRegion *arg1 = (wxRegion *) 0 ;
10778 wxRegion *arg2 = 0 ;
10779 bool result;
10780 void *argp1 = 0 ;
10781 int res1 = 0 ;
10782 void *argp2 = 0 ;
10783 int res2 = 0 ;
10784 PyObject * obj0 = 0 ;
10785 PyObject * obj1 = 0 ;
10786 char * kwnames[] = {
10787 (char *) "self",(char *) "region", NULL
10788 };
10789
10790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10792 if (!SWIG_IsOK(res1)) {
10793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10794 }
10795 arg1 = reinterpret_cast< wxRegion * >(argp1);
10796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10797 if (!SWIG_IsOK(res2)) {
10798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10799 }
10800 if (!argp2) {
10801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10802 }
10803 arg2 = reinterpret_cast< wxRegion * >(argp2);
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 {
10811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10812 }
10813 return resultobj;
10814fail:
10815 return NULL;
d55e5bfc
RD
10816}
10817
10818
1bd55598
RD
10819SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10820 PyObject *resultobj = 0;
10821 wxRegion *arg1 = (wxRegion *) 0 ;
10822 bool result;
10823 void *argp1 = 0 ;
10824 int res1 = 0 ;
10825 PyObject *swig_obj[1] ;
10826
10827 if (!args) SWIG_fail;
10828 swig_obj[0] = args;
10829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10830 if (!SWIG_IsOK(res1)) {
10831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10832 }
10833 arg1 = reinterpret_cast< wxRegion * >(argp1);
10834 {
10835 PyThreadState* __tstate = wxPyBeginAllowThreads();
10836 result = (bool)(arg1)->IsEmpty();
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 {
10841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10842 }
10843 return resultobj;
10844fail:
10845 return NULL;
10846}
10847
10848
f5263701
RD
10849SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj = 0;
10851 wxRegion *arg1 = (wxRegion *) 0 ;
10852 wxRegion *arg2 = 0 ;
10853 bool result;
10854 void *argp1 = 0 ;
10855 int res1 = 0 ;
10856 void *argp2 = 0 ;
10857 int res2 = 0 ;
10858 PyObject * obj0 = 0 ;
10859 PyObject * obj1 = 0 ;
10860 char * kwnames[] = {
10861 (char *) "self",(char *) "region", NULL
10862 };
10863
10864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10866 if (!SWIG_IsOK(res1)) {
10867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10868 }
10869 arg1 = reinterpret_cast< wxRegion * >(argp1);
10870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10871 if (!SWIG_IsOK(res2)) {
10872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10873 }
10874 if (!argp2) {
10875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10876 }
10877 arg2 = reinterpret_cast< wxRegion * >(argp2);
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10881 wxPyEndAllowThreads(__tstate);
10882 if (PyErr_Occurred()) SWIG_fail;
10883 }
10884 {
10885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10886 }
10887 return resultobj;
10888fail:
10889 return NULL;
10890}
10891
10892
1bd55598
RD
10893SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj = 0;
10895 wxRegion *arg1 = (wxRegion *) 0 ;
10896 int arg2 ;
10897 int arg3 ;
10898 int arg4 ;
10899 int arg5 ;
10900 bool result;
10901 void *argp1 = 0 ;
10902 int res1 = 0 ;
10903 int val2 ;
10904 int ecode2 = 0 ;
10905 int val3 ;
10906 int ecode3 = 0 ;
10907 int val4 ;
10908 int ecode4 = 0 ;
10909 int val5 ;
10910 int ecode5 = 0 ;
10911 PyObject * obj0 = 0 ;
10912 PyObject * obj1 = 0 ;
10913 PyObject * obj2 = 0 ;
10914 PyObject * obj3 = 0 ;
10915 PyObject * obj4 = 0 ;
10916 char * kwnames[] = {
10917 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10918 };
10919
10920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10924 }
10925 arg1 = reinterpret_cast< wxRegion * >(argp1);
10926 ecode2 = SWIG_AsVal_int(obj1, &val2);
10927 if (!SWIG_IsOK(ecode2)) {
10928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10929 }
10930 arg2 = static_cast< int >(val2);
10931 ecode3 = SWIG_AsVal_int(obj2, &val3);
10932 if (!SWIG_IsOK(ecode3)) {
10933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10934 }
10935 arg3 = static_cast< int >(val3);
10936 ecode4 = SWIG_AsVal_int(obj3, &val4);
10937 if (!SWIG_IsOK(ecode4)) {
10938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10939 }
10940 arg4 = static_cast< int >(val4);
10941 ecode5 = SWIG_AsVal_int(obj4, &val5);
10942 if (!SWIG_IsOK(ecode5)) {
10943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10944 }
10945 arg5 = static_cast< int >(val5);
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 {
10953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10954 }
10955 return resultobj;
10956fail:
10957 return NULL;
10958}
10959
10960
10961SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj = 0;
10963 wxRegion *arg1 = (wxRegion *) 0 ;
10964 wxRect *arg2 = 0 ;
10965 bool result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 wxRect temp2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char * kwnames[] = {
10972 (char *) "self",(char *) "rect", NULL
10973 };
10974
10975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10979 }
10980 arg1 = reinterpret_cast< wxRegion * >(argp1);
10981 {
10982 arg2 = &temp2;
10983 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10984 }
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 {
10992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10993 }
10994 return resultobj;
10995fail:
10996 return NULL;
10997}
10998
10999
11000SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11001 PyObject *resultobj = 0;
11002 wxRegion *arg1 = (wxRegion *) 0 ;
11003 wxRegion *arg2 = 0 ;
11004 bool result;
11005 void *argp1 = 0 ;
11006 int res1 = 0 ;
11007 void *argp2 = 0 ;
11008 int res2 = 0 ;
11009 PyObject * obj0 = 0 ;
11010 PyObject * obj1 = 0 ;
11011 char * kwnames[] = {
11012 (char *) "self",(char *) "region", NULL
11013 };
11014
11015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11017 if (!SWIG_IsOK(res1)) {
11018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11019 }
11020 arg1 = reinterpret_cast< wxRegion * >(argp1);
11021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11022 if (!SWIG_IsOK(res2)) {
11023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11024 }
11025 if (!argp2) {
11026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11027 }
11028 arg2 = reinterpret_cast< wxRegion * >(argp2);
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 {
11036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11037 }
11038 return resultobj;
11039fail:
11040 return NULL;
11041}
11042
11043
11044SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11045 PyObject *resultobj = 0;
11046 wxRegion *arg1 = (wxRegion *) 0 ;
11047 int arg2 ;
11048 int arg3 ;
11049 int arg4 ;
11050 int arg5 ;
11051 bool result;
11052 void *argp1 = 0 ;
11053 int res1 = 0 ;
11054 int val2 ;
11055 int ecode2 = 0 ;
11056 int val3 ;
11057 int ecode3 = 0 ;
11058 int val4 ;
11059 int ecode4 = 0 ;
11060 int val5 ;
11061 int ecode5 = 0 ;
11062 PyObject * obj0 = 0 ;
11063 PyObject * obj1 = 0 ;
11064 PyObject * obj2 = 0 ;
11065 PyObject * obj3 = 0 ;
11066 PyObject * obj4 = 0 ;
11067 char * kwnames[] = {
11068 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11069 };
11070
11071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11073 if (!SWIG_IsOK(res1)) {
11074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11075 }
11076 arg1 = reinterpret_cast< wxRegion * >(argp1);
11077 ecode2 = SWIG_AsVal_int(obj1, &val2);
11078 if (!SWIG_IsOK(ecode2)) {
11079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11080 }
11081 arg2 = static_cast< int >(val2);
11082 ecode3 = SWIG_AsVal_int(obj2, &val3);
11083 if (!SWIG_IsOK(ecode3)) {
11084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11085 }
11086 arg3 = static_cast< int >(val3);
11087 ecode4 = SWIG_AsVal_int(obj3, &val4);
11088 if (!SWIG_IsOK(ecode4)) {
11089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11090 }
11091 arg4 = static_cast< int >(val4);
11092 ecode5 = SWIG_AsVal_int(obj4, &val5);
11093 if (!SWIG_IsOK(ecode5)) {
11094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11095 }
11096 arg5 = static_cast< int >(val5);
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 {
11104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11105 }
11106 return resultobj;
11107fail:
11108 return NULL;
11109}
11110
11111
11112SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11113 PyObject *resultobj = 0;
11114 wxRegion *arg1 = (wxRegion *) 0 ;
11115 wxRect *arg2 = 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 wxRect temp2 ;
11120 PyObject * obj0 = 0 ;
11121 PyObject * obj1 = 0 ;
11122 char * kwnames[] = {
11123 (char *) "self",(char *) "rect", NULL
11124 };
11125
11126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11128 if (!SWIG_IsOK(res1)) {
11129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11130 }
11131 arg1 = reinterpret_cast< wxRegion * >(argp1);
11132 {
11133 arg2 = &temp2;
11134 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11139 wxPyEndAllowThreads(__tstate);
11140 if (PyErr_Occurred()) SWIG_fail;
11141 }
11142 {
11143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11144 }
11145 return resultobj;
11146fail:
11147 return NULL;
11148}
11149
11150
11151SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11152 PyObject *resultobj = 0;
11153 wxRegion *arg1 = (wxRegion *) 0 ;
11154 wxRegion *arg2 = 0 ;
11155 bool result;
11156 void *argp1 = 0 ;
11157 int res1 = 0 ;
11158 void *argp2 = 0 ;
11159 int res2 = 0 ;
11160 PyObject * obj0 = 0 ;
11161 PyObject * obj1 = 0 ;
11162 char * kwnames[] = {
11163 (char *) "self",(char *) "region", NULL
11164 };
11165
11166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11168 if (!SWIG_IsOK(res1)) {
11169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11170 }
11171 arg1 = reinterpret_cast< wxRegion * >(argp1);
11172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11173 if (!SWIG_IsOK(res2)) {
11174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11175 }
11176 if (!argp2) {
11177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11178 }
11179 arg2 = reinterpret_cast< wxRegion * >(argp2);
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
11182 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 {
11187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11188 }
11189 return resultobj;
11190fail:
11191 return NULL;
11192}
11193
11194
11195SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj = 0;
11197 wxRegion *arg1 = (wxRegion *) 0 ;
11198 int arg2 ;
11199 int arg3 ;
11200 int arg4 ;
11201 int arg5 ;
11202 bool result;
11203 void *argp1 = 0 ;
11204 int res1 = 0 ;
11205 int val2 ;
11206 int ecode2 = 0 ;
11207 int val3 ;
11208 int ecode3 = 0 ;
11209 int val4 ;
11210 int ecode4 = 0 ;
11211 int val5 ;
11212 int ecode5 = 0 ;
11213 PyObject * obj0 = 0 ;
11214 PyObject * obj1 = 0 ;
11215 PyObject * obj2 = 0 ;
11216 PyObject * obj3 = 0 ;
11217 PyObject * obj4 = 0 ;
11218 char * kwnames[] = {
11219 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11220 };
11221
11222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11224 if (!SWIG_IsOK(res1)) {
11225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11226 }
11227 arg1 = reinterpret_cast< wxRegion * >(argp1);
11228 ecode2 = SWIG_AsVal_int(obj1, &val2);
11229 if (!SWIG_IsOK(ecode2)) {
11230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11231 }
11232 arg2 = static_cast< int >(val2);
11233 ecode3 = SWIG_AsVal_int(obj2, &val3);
11234 if (!SWIG_IsOK(ecode3)) {
11235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11236 }
11237 arg3 = static_cast< int >(val3);
11238 ecode4 = SWIG_AsVal_int(obj3, &val4);
11239 if (!SWIG_IsOK(ecode4)) {
11240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11241 }
11242 arg4 = static_cast< int >(val4);
11243 ecode5 = SWIG_AsVal_int(obj4, &val5);
11244 if (!SWIG_IsOK(ecode5)) {
11245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11246 }
11247 arg5 = static_cast< int >(val5);
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 {
11255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11256 }
11257 return resultobj;
11258fail:
11259 return NULL;
11260}
11261
11262
11263SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11264 PyObject *resultobj = 0;
11265 wxRegion *arg1 = (wxRegion *) 0 ;
11266 wxRect *arg2 = 0 ;
11267 bool result;
11268 void *argp1 = 0 ;
11269 int res1 = 0 ;
11270 wxRect temp2 ;
11271 PyObject * obj0 = 0 ;
11272 PyObject * obj1 = 0 ;
11273 char * kwnames[] = {
11274 (char *) "self",(char *) "rect", NULL
11275 };
11276
11277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11281 }
11282 arg1 = reinterpret_cast< wxRegion * >(argp1);
11283 {
11284 arg2 = &temp2;
11285 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11286 }
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11290 wxPyEndAllowThreads(__tstate);
11291 if (PyErr_Occurred()) SWIG_fail;
11292 }
11293 {
11294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11295 }
11296 return resultobj;
11297fail:
11298 return NULL;
11299}
11300
11301
11302SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11303 PyObject *resultobj = 0;
11304 wxRegion *arg1 = (wxRegion *) 0 ;
11305 wxRegion *arg2 = 0 ;
11306 bool result;
11307 void *argp1 = 0 ;
11308 int res1 = 0 ;
11309 void *argp2 = 0 ;
11310 int res2 = 0 ;
11311 PyObject * obj0 = 0 ;
11312 PyObject * obj1 = 0 ;
11313 char * kwnames[] = {
11314 (char *) "self",(char *) "region", NULL
11315 };
11316
11317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11319 if (!SWIG_IsOK(res1)) {
11320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11321 }
11322 arg1 = reinterpret_cast< wxRegion * >(argp1);
11323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11324 if (!SWIG_IsOK(res2)) {
11325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11326 }
11327 if (!argp2) {
11328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11329 }
11330 arg2 = reinterpret_cast< wxRegion * >(argp2);
11331 {
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11334 wxPyEndAllowThreads(__tstate);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 }
11337 {
11338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11339 }
11340 return resultobj;
11341fail:
11342 return NULL;
d55e5bfc
RD
11343}
11344
11345
1bd55598
RD
11346SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11347 PyObject *resultobj = 0;
11348 wxRegion *arg1 = (wxRegion *) 0 ;
11349 SwigValueWrapper<wxBitmap > result;
11350 void *argp1 = 0 ;
11351 int res1 = 0 ;
11352 PyObject *swig_obj[1] ;
11353
11354 if (!args) SWIG_fail;
11355 swig_obj[0] = args;
11356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11357 if (!SWIG_IsOK(res1)) {
11358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11359 }
11360 arg1 = reinterpret_cast< wxRegion * >(argp1);
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (arg1)->ConvertToBitmap();
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11368 return resultobj;
11369fail:
11370 return NULL;
11371}
11372
11373
11374SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11375 PyObject *resultobj = 0;
11376 wxRegion *arg1 = (wxRegion *) 0 ;
11377 wxBitmap *arg2 = 0 ;
11378 bool result;
11379 void *argp1 = 0 ;
11380 int res1 = 0 ;
11381 void *argp2 = 0 ;
11382 int res2 = 0 ;
11383 PyObject * obj0 = 0 ;
11384 PyObject * obj1 = 0 ;
11385 char * kwnames[] = {
11386 (char *) "self",(char *) "bmp", NULL
11387 };
11388
11389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11391 if (!SWIG_IsOK(res1)) {
11392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11393 }
11394 arg1 = reinterpret_cast< wxRegion * >(argp1);
11395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11396 if (!SWIG_IsOK(res2)) {
11397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11398 }
11399 if (!argp2) {
11400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11401 }
11402 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11406 wxPyEndAllowThreads(__tstate);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 {
11410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11411 }
11412 return resultobj;
11413fail:
11414 return NULL;
11415}
11416
11417
11418SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11419 PyObject *resultobj = 0;
11420 wxRegion *arg1 = (wxRegion *) 0 ;
11421 wxBitmap *arg2 = 0 ;
11422 wxColour *arg3 = 0 ;
11423 int arg4 = (int) 0 ;
11424 bool result;
11425 void *argp1 = 0 ;
11426 int res1 = 0 ;
11427 void *argp2 = 0 ;
11428 int res2 = 0 ;
11429 wxColour temp3 ;
11430 int val4 ;
11431 int ecode4 = 0 ;
11432 PyObject * obj0 = 0 ;
11433 PyObject * obj1 = 0 ;
11434 PyObject * obj2 = 0 ;
11435 PyObject * obj3 = 0 ;
11436 char * kwnames[] = {
11437 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11438 };
11439
11440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11442 if (!SWIG_IsOK(res1)) {
11443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11444 }
11445 arg1 = reinterpret_cast< wxRegion * >(argp1);
11446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11447 if (!SWIG_IsOK(res2)) {
11448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11449 }
11450 if (!argp2) {
11451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11452 }
11453 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11454 {
11455 arg3 = &temp3;
11456 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11457 }
11458 if (obj3) {
11459 ecode4 = SWIG_AsVal_int(obj3, &val4);
11460 if (!SWIG_IsOK(ecode4)) {
11461 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11462 }
11463 arg4 = static_cast< int >(val4);
11464 }
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 {
11472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11473 }
11474 return resultobj;
11475fail:
11476 return NULL;
d55e5bfc
RD
11477}
11478
11479
1bd55598
RD
11480SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11481 PyObject *obj;
11482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11483 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11484 return SWIG_Py_Void();
d55e5bfc
RD
11485}
11486
1bd55598
RD
11487SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11488 return SWIG_Python_InitShadowInstance(args);
11489}
d55e5bfc 11490
1bd55598
RD
11491SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11492 PyObject *resultobj = 0;
11493 wxRegion *arg1 = 0 ;
11494 wxRegionIterator *result = 0 ;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 PyObject * obj0 = 0 ;
11498 char * kwnames[] = {
11499 (char *) "region", NULL
11500 };
11501
11502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11503 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11504 if (!SWIG_IsOK(res1)) {
11505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11506 }
11507 if (!argp1) {
11508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11509 }
11510 arg1 = reinterpret_cast< wxRegion * >(argp1);
11511 {
11512 if (!wxPyCheckForApp()) SWIG_fail;
11513 PyThreadState* __tstate = wxPyBeginAllowThreads();
11514 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11515 wxPyEndAllowThreads(__tstate);
11516 if (PyErr_Occurred()) SWIG_fail;
11517 }
11518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11519 return resultobj;
11520fail:
11521 return NULL;
d55e5bfc
RD
11522}
11523
11524
1bd55598
RD
11525SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11526 PyObject *resultobj = 0;
11527 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11528 void *argp1 = 0 ;
11529 int res1 = 0 ;
11530 PyObject *swig_obj[1] ;
11531
11532 if (!args) SWIG_fail;
11533 swig_obj[0] = args;
11534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11535 if (!SWIG_IsOK(res1)) {
11536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11537 }
11538 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11539 {
11540 PyThreadState* __tstate = wxPyBeginAllowThreads();
11541 delete arg1;
d55e5bfc 11542
1bd55598
RD
11543 wxPyEndAllowThreads(__tstate);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 }
11546 resultobj = SWIG_Py_Void();
11547 return resultobj;
11548fail:
11549 return NULL;
d55e5bfc
RD
11550}
11551
11552
1bd55598
RD
11553SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11554 PyObject *resultobj = 0;
11555 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11556 int result;
11557 void *argp1 = 0 ;
11558 int res1 = 0 ;
11559 PyObject *swig_obj[1] ;
11560
11561 if (!args) SWIG_fail;
11562 swig_obj[0] = args;
11563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11564 if (!SWIG_IsOK(res1)) {
11565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11566 }
11567 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 result = (int)(arg1)->GetX();
11571 wxPyEndAllowThreads(__tstate);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 }
11574 resultobj = SWIG_From_int(static_cast< int >(result));
11575 return resultobj;
11576fail:
11577 return NULL;
d55e5bfc
RD
11578}
11579
11580
1bd55598
RD
11581SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11582 PyObject *resultobj = 0;
11583 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11584 int result;
11585 void *argp1 = 0 ;
11586 int res1 = 0 ;
11587 PyObject *swig_obj[1] ;
11588
11589 if (!args) SWIG_fail;
11590 swig_obj[0] = args;
11591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11592 if (!SWIG_IsOK(res1)) {
11593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11594 }
11595 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11596 {
11597 PyThreadState* __tstate = wxPyBeginAllowThreads();
11598 result = (int)(arg1)->GetY();
11599 wxPyEndAllowThreads(__tstate);
11600 if (PyErr_Occurred()) SWIG_fail;
11601 }
11602 resultobj = SWIG_From_int(static_cast< int >(result));
11603 return resultobj;
11604fail:
11605 return NULL;
d55e5bfc
RD
11606}
11607
11608
1bd55598
RD
11609SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11610 PyObject *resultobj = 0;
11611 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11612 int result;
11613 void *argp1 = 0 ;
11614 int res1 = 0 ;
11615 PyObject *swig_obj[1] ;
11616
11617 if (!args) SWIG_fail;
11618 swig_obj[0] = args;
11619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11620 if (!SWIG_IsOK(res1)) {
11621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11622 }
11623 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 result = (int)(arg1)->GetW();
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 }
11630 resultobj = SWIG_From_int(static_cast< int >(result));
11631 return resultobj;
11632fail:
11633 return NULL;
d55e5bfc
RD
11634}
11635
11636
1bd55598
RD
11637SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11638 PyObject *resultobj = 0;
11639 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11640 int result;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 PyObject *swig_obj[1] ;
11644
11645 if (!args) SWIG_fail;
11646 swig_obj[0] = args;
11647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11648 if (!SWIG_IsOK(res1)) {
11649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11650 }
11651 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = (int)(arg1)->GetWidth();
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 resultobj = SWIG_From_int(static_cast< int >(result));
11659 return resultobj;
11660fail:
11661 return NULL;
d55e5bfc
RD
11662}
11663
11664
1bd55598
RD
11665SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11666 PyObject *resultobj = 0;
11667 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11668 int result;
11669 void *argp1 = 0 ;
11670 int res1 = 0 ;
11671 PyObject *swig_obj[1] ;
11672
11673 if (!args) SWIG_fail;
11674 swig_obj[0] = args;
11675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11676 if (!SWIG_IsOK(res1)) {
11677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11678 }
11679 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11680 {
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 result = (int)(arg1)->GetH();
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 resultobj = SWIG_From_int(static_cast< int >(result));
11687 return resultobj;
11688fail:
11689 return NULL;
d07096ad
RD
11690}
11691
11692
1bd55598
RD
11693SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11694 PyObject *resultobj = 0;
11695 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11696 int result;
11697 void *argp1 = 0 ;
11698 int res1 = 0 ;
11699 PyObject *swig_obj[1] ;
11700
11701 if (!args) SWIG_fail;
11702 swig_obj[0] = args;
11703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11704 if (!SWIG_IsOK(res1)) {
11705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11706 }
11707 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11708 {
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (int)(arg1)->GetHeight();
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_From_int(static_cast< int >(result));
11715 return resultobj;
11716fail:
11717 return NULL;
d55e5bfc
RD
11718}
11719
11720
1bd55598
RD
11721SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11722 PyObject *resultobj = 0;
11723 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11724 wxRect result;
11725 void *argp1 = 0 ;
11726 int res1 = 0 ;
11727 PyObject *swig_obj[1] ;
11728
11729 if (!args) SWIG_fail;
11730 swig_obj[0] = args;
11731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11732 if (!SWIG_IsOK(res1)) {
11733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11734 }
11735 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 result = (arg1)->GetRect();
11739 wxPyEndAllowThreads(__tstate);
11740 if (PyErr_Occurred()) SWIG_fail;
11741 }
11742 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11743 return resultobj;
11744fail:
11745 return NULL;
d55e5bfc
RD
11746}
11747
11748
1bd55598
RD
11749SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11750 PyObject *resultobj = 0;
11751 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11752 bool result;
11753 void *argp1 = 0 ;
11754 int res1 = 0 ;
11755 PyObject *swig_obj[1] ;
11756
11757 if (!args) SWIG_fail;
11758 swig_obj[0] = args;
11759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11760 if (!SWIG_IsOK(res1)) {
11761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11762 }
11763 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 result = (bool)(arg1)->HaveRects();
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 {
11771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11772 }
11773 return resultobj;
11774fail:
11775 return NULL;
d55e5bfc
RD
11776}
11777
11778
1bd55598
RD
11779SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11780 PyObject *resultobj = 0;
11781 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11782 void *argp1 = 0 ;
11783 int res1 = 0 ;
11784 PyObject *swig_obj[1] ;
11785
11786 if (!args) SWIG_fail;
11787 swig_obj[0] = args;
11788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11789 if (!SWIG_IsOK(res1)) {
11790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11791 }
11792 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11793 {
11794 PyThreadState* __tstate = wxPyBeginAllowThreads();
11795 (arg1)->Reset();
11796 wxPyEndAllowThreads(__tstate);
11797 if (PyErr_Occurred()) SWIG_fail;
11798 }
11799 resultobj = SWIG_Py_Void();
11800 return resultobj;
11801fail:
11802 return NULL;
d55e5bfc
RD
11803}
11804
11805
1bd55598
RD
11806SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11807 PyObject *resultobj = 0;
11808 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11809 void *argp1 = 0 ;
11810 int res1 = 0 ;
11811 PyObject *swig_obj[1] ;
11812
11813 if (!args) SWIG_fail;
11814 swig_obj[0] = args;
11815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11816 if (!SWIG_IsOK(res1)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11818 }
11819 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11820 {
11821 PyThreadState* __tstate = wxPyBeginAllowThreads();
11822 wxRegionIterator_Next(arg1);
11823 wxPyEndAllowThreads(__tstate);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 resultobj = SWIG_Py_Void();
11827 return resultobj;
11828fail:
11829 return NULL;
070c48b4
RD
11830}
11831
11832
1bd55598
RD
11833SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11834 PyObject *resultobj = 0;
11835 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11836 bool result;
11837 void *argp1 = 0 ;
11838 int res1 = 0 ;
11839 PyObject *swig_obj[1] ;
11840
11841 if (!args) SWIG_fail;
11842 swig_obj[0] = args;
11843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11844 if (!SWIG_IsOK(res1)) {
11845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11846 }
11847 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 result = (bool)wxRegionIterator___nonzero__(arg1);
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 {
11855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11856 }
11857 return resultobj;
11858fail:
11859 return NULL;
d55e5bfc
RD
11860}
11861
11862
1bd55598
RD
11863SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11864 PyObject *obj;
11865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11866 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11867 return SWIG_Py_Void();
d55e5bfc
RD
11868}
11869
1bd55598
RD
11870SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11871 return SWIG_Python_InitShadowInstance(args);
11872}
d55e5bfc 11873
1bd55598
RD
11874SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11875 PyObject *resultobj = 0;
11876 wxNativeFontInfo *result = 0 ;
11877
11878 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11886 return resultobj;
11887fail:
11888 return NULL;
d55e5bfc
RD
11889}
11890
11891
1bd55598
RD
11892SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11893 PyObject *resultobj = 0;
11894 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 PyObject *swig_obj[1] ;
11898
11899 if (!args) SWIG_fail;
11900 swig_obj[0] = args;
11901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11902 if (!SWIG_IsOK(res1)) {
11903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11904 }
11905 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11906 {
11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
11908 delete arg1;
d55e5bfc 11909
1bd55598
RD
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 resultobj = SWIG_Py_Void();
11914 return resultobj;
11915fail:
11916 return NULL;
d55e5bfc
RD
11917}
11918
11919
1bd55598
RD
11920SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11921 PyObject *resultobj = 0;
11922 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11923 void *argp1 = 0 ;
11924 int res1 = 0 ;
11925 PyObject *swig_obj[1] ;
11926
11927 if (!args) SWIG_fail;
11928 swig_obj[0] = args;
11929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11930 if (!SWIG_IsOK(res1)) {
11931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11932 }
11933 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11934 {
11935 PyThreadState* __tstate = wxPyBeginAllowThreads();
11936 (arg1)->Init();
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 resultobj = SWIG_Py_Void();
11941 return resultobj;
11942fail:
11943 return NULL;
11944}
11945
11946
11947SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11948 PyObject *resultobj = 0;
11949 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11950 wxFont *arg2 = 0 ;
11951 void *argp1 = 0 ;
11952 int res1 = 0 ;
11953 void *argp2 = 0 ;
11954 int res2 = 0 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 char * kwnames[] = {
11958 (char *) "self",(char *) "font", NULL
11959 };
11960
11961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11963 if (!SWIG_IsOK(res1)) {
11964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11965 }
11966 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11968 if (!SWIG_IsOK(res2)) {
11969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11970 }
11971 if (!argp2) {
11972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11973 }
11974 arg2 = reinterpret_cast< wxFont * >(argp2);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 (arg1)->InitFromFont((wxFont const &)*arg2);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 resultobj = SWIG_Py_Void();
11982 return resultobj;
11983fail:
11984 return NULL;
d55e5bfc
RD
11985}
11986
11987
1bd55598
RD
11988SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11989 PyObject *resultobj = 0;
11990 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11991 int result;
11992 void *argp1 = 0 ;
11993 int res1 = 0 ;
11994 PyObject *swig_obj[1] ;
11995
11996 if (!args) SWIG_fail;
11997 swig_obj[0] = args;
11998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11999 if (!SWIG_IsOK(res1)) {
12000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12001 }
12002 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12003 {
12004 PyThreadState* __tstate = wxPyBeginAllowThreads();
12005 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12006 wxPyEndAllowThreads(__tstate);
12007 if (PyErr_Occurred()) SWIG_fail;
12008 }
12009 resultobj = SWIG_From_int(static_cast< int >(result));
12010 return resultobj;
12011fail:
12012 return NULL;
d55e5bfc
RD
12013}
12014
12015
1bd55598
RD
12016SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12017 PyObject *resultobj = 0;
12018 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12019 wxFontStyle result;
12020 void *argp1 = 0 ;
12021 int res1 = 0 ;
12022 PyObject *swig_obj[1] ;
12023
12024 if (!args) SWIG_fail;
12025 swig_obj[0] = args;
12026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12027 if (!SWIG_IsOK(res1)) {
12028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12029 }
12030 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12031 {
12032 PyThreadState* __tstate = wxPyBeginAllowThreads();
12033 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12034 wxPyEndAllowThreads(__tstate);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 resultobj = SWIG_From_int(static_cast< int >(result));
12038 return resultobj;
12039fail:
12040 return NULL;
d55e5bfc
RD
12041}
12042
12043
1bd55598
RD
12044SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12045 PyObject *resultobj = 0;
12046 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12047 wxFontWeight result;
12048 void *argp1 = 0 ;
12049 int res1 = 0 ;
12050 PyObject *swig_obj[1] ;
12051
12052 if (!args) SWIG_fail;
12053 swig_obj[0] = args;
12054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12055 if (!SWIG_IsOK(res1)) {
12056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12057 }
12058 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 resultobj = SWIG_From_int(static_cast< int >(result));
12066 return resultobj;
12067fail:
12068 return NULL;
d55e5bfc
RD
12069}
12070
12071
1bd55598
RD
12072SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12073 PyObject *resultobj = 0;
12074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12075 bool result;
12076 void *argp1 = 0 ;
12077 int res1 = 0 ;
12078 PyObject *swig_obj[1] ;
12079
12080 if (!args) SWIG_fail;
12081 swig_obj[0] = args;
12082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12083 if (!SWIG_IsOK(res1)) {
12084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12085 }
12086 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12090 wxPyEndAllowThreads(__tstate);
12091 if (PyErr_Occurred()) SWIG_fail;
12092 }
12093 {
12094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12095 }
12096 return resultobj;
12097fail:
12098 return NULL;
d55e5bfc
RD
12099}
12100
12101
1bd55598
RD
12102SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12103 PyObject *resultobj = 0;
12104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12105 wxString result;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 PyObject *swig_obj[1] ;
12109
12110 if (!args) SWIG_fail;
12111 swig_obj[0] = args;
12112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12113 if (!SWIG_IsOK(res1)) {
12114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12115 }
12116 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124#if wxUSE_UNICODE
12125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12126#else
12127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12128#endif
12129 }
12130 return resultobj;
12131fail:
12132 return NULL;
d55e5bfc
RD
12133}
12134
12135
1bd55598
RD
12136SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137 PyObject *resultobj = 0;
12138 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12139 wxFontFamily result;
12140 void *argp1 = 0 ;
12141 int res1 = 0 ;
12142 PyObject *swig_obj[1] ;
12143
12144 if (!args) SWIG_fail;
12145 swig_obj[0] = args;
12146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12147 if (!SWIG_IsOK(res1)) {
12148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12149 }
12150 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12151 {
12152 PyThreadState* __tstate = wxPyBeginAllowThreads();
12153 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 resultobj = SWIG_From_int(static_cast< int >(result));
12158 return resultobj;
12159fail:
12160 return NULL;
d55e5bfc
RD
12161}
12162
12163
1bd55598
RD
12164SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12165 PyObject *resultobj = 0;
12166 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12167 wxFontEncoding result;
12168 void *argp1 = 0 ;
12169 int res1 = 0 ;
12170 PyObject *swig_obj[1] ;
12171
12172 if (!args) SWIG_fail;
12173 swig_obj[0] = args;
12174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12175 if (!SWIG_IsOK(res1)) {
12176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12177 }
12178 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 resultobj = SWIG_From_int(static_cast< int >(result));
12186 return resultobj;
12187fail:
12188 return NULL;
12189}
12190
12191
12192SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12193 PyObject *resultobj = 0;
12194 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12195 int arg2 ;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 int val2 ;
12199 int ecode2 = 0 ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 char * kwnames[] = {
12203 (char *) "self",(char *) "pointsize", NULL
12204 };
12205
12206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12210 }
12211 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12212 ecode2 = SWIG_AsVal_int(obj1, &val2);
12213 if (!SWIG_IsOK(ecode2)) {
12214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12215 }
12216 arg2 = static_cast< int >(val2);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 (arg1)->SetPointSize(arg2);
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_Py_Void();
12224 return resultobj;
12225fail:
12226 return NULL;
12227}
12228
12229
12230SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj = 0;
12232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12233 wxFontStyle arg2 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 int val2 ;
12237 int ecode2 = 0 ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 char * kwnames[] = {
12241 (char *) "self",(char *) "style", NULL
12242 };
12243
12244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12246 if (!SWIG_IsOK(res1)) {
12247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12248 }
12249 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12250 ecode2 = SWIG_AsVal_int(obj1, &val2);
12251 if (!SWIG_IsOK(ecode2)) {
12252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12253 }
12254 arg2 = static_cast< wxFontStyle >(val2);
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 (arg1)->SetStyle(arg2);
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) SWIG_fail;
12260 }
12261 resultobj = SWIG_Py_Void();
12262 return resultobj;
12263fail:
12264 return NULL;
12265}
12266
12267
12268SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12269 PyObject *resultobj = 0;
12270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12271 wxFontWeight arg2 ;
12272 void *argp1 = 0 ;
12273 int res1 = 0 ;
12274 int val2 ;
12275 int ecode2 = 0 ;
12276 PyObject * obj0 = 0 ;
12277 PyObject * obj1 = 0 ;
12278 char * kwnames[] = {
12279 (char *) "self",(char *) "weight", NULL
12280 };
12281
12282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12286 }
12287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12288 ecode2 = SWIG_AsVal_int(obj1, &val2);
12289 if (!SWIG_IsOK(ecode2)) {
12290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12291 }
12292 arg2 = static_cast< wxFontWeight >(val2);
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 (arg1)->SetWeight(arg2);
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 resultobj = SWIG_Py_Void();
12300 return resultobj;
12301fail:
12302 return NULL;
12303}
12304
12305
12306SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12307 PyObject *resultobj = 0;
12308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12309 bool arg2 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 bool val2 ;
12313 int ecode2 = 0 ;
12314 PyObject * obj0 = 0 ;
12315 PyObject * obj1 = 0 ;
12316 char * kwnames[] = {
12317 (char *) "self",(char *) "underlined", NULL
12318 };
12319
12320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12322 if (!SWIG_IsOK(res1)) {
12323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12324 }
12325 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12326 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12327 if (!SWIG_IsOK(ecode2)) {
12328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12329 }
12330 arg2 = static_cast< bool >(val2);
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 (arg1)->SetUnderlined(arg2);
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 resultobj = SWIG_Py_Void();
12338 return resultobj;
12339fail:
12340 return NULL;
12341}
12342
12343
12344SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12345 PyObject *resultobj = 0;
12346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12347 wxString arg2 ;
704eda0c 12348 bool result;
1bd55598
RD
12349 void *argp1 = 0 ;
12350 int res1 = 0 ;
12351 PyObject * obj0 = 0 ;
12352 PyObject * obj1 = 0 ;
12353 char * kwnames[] = {
12354 (char *) "self",(char *) "facename", NULL
12355 };
12356
12357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12359 if (!SWIG_IsOK(res1)) {
12360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12361 }
12362 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12363 {
12364 wxString* sptr = wxString_in_helper(obj1);
12365 if (sptr == NULL) SWIG_fail;
12366 arg2 = *sptr;
12367 delete sptr;
12368 }
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12371 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12372 wxPyEndAllowThreads(__tstate);
12373 if (PyErr_Occurred()) SWIG_fail;
12374 }
704eda0c
RD
12375 {
12376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12377 }
1bd55598
RD
12378 return resultobj;
12379fail:
12380 return NULL;
12381}
12382
12383
12384SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj = 0;
12386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12387 wxFontFamily arg2 ;
12388 void *argp1 = 0 ;
12389 int res1 = 0 ;
12390 int val2 ;
12391 int ecode2 = 0 ;
12392 PyObject * obj0 = 0 ;
12393 PyObject * obj1 = 0 ;
12394 char * kwnames[] = {
12395 (char *) "self",(char *) "family", NULL
12396 };
12397
12398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12402 }
12403 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12404 ecode2 = SWIG_AsVal_int(obj1, &val2);
12405 if (!SWIG_IsOK(ecode2)) {
12406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12407 }
12408 arg2 = static_cast< wxFontFamily >(val2);
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 (arg1)->SetFamily(arg2);
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 resultobj = SWIG_Py_Void();
12416 return resultobj;
12417fail:
12418 return NULL;
12419}
12420
12421
12422SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12423 PyObject *resultobj = 0;
12424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12425 wxFontEncoding arg2 ;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 int val2 ;
12429 int ecode2 = 0 ;
12430 PyObject * obj0 = 0 ;
12431 PyObject * obj1 = 0 ;
12432 char * kwnames[] = {
12433 (char *) "self",(char *) "encoding", NULL
12434 };
12435
12436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12438 if (!SWIG_IsOK(res1)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12440 }
12441 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12442 ecode2 = SWIG_AsVal_int(obj1, &val2);
12443 if (!SWIG_IsOK(ecode2)) {
12444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12445 }
12446 arg2 = static_cast< wxFontEncoding >(val2);
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 (arg1)->SetEncoding(arg2);
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 resultobj = SWIG_Py_Void();
12454 return resultobj;
12455fail:
12456 return NULL;
12457}
12458
12459
12460SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj = 0;
12462 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12463 wxString *arg2 = 0 ;
12464 bool result;
12465 void *argp1 = 0 ;
12466 int res1 = 0 ;
12467 bool temp2 = false ;
12468 PyObject * obj0 = 0 ;
12469 PyObject * obj1 = 0 ;
12470 char * kwnames[] = {
12471 (char *) "self",(char *) "s", NULL
12472 };
12473
12474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12476 if (!SWIG_IsOK(res1)) {
12477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12478 }
12479 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12480 {
12481 arg2 = wxString_in_helper(obj1);
12482 if (arg2 == NULL) SWIG_fail;
12483 temp2 = true;
12484 }
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12488 wxPyEndAllowThreads(__tstate);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 }
12491 {
12492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12493 }
12494 {
12495 if (temp2)
12496 delete arg2;
12497 }
12498 return resultobj;
12499fail:
12500 {
12501 if (temp2)
12502 delete arg2;
12503 }
12504 return NULL;
d55e5bfc
RD
12505}
12506
12507
1bd55598
RD
12508SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12509 PyObject *resultobj = 0;
12510 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12511 wxString result;
12512 void *argp1 = 0 ;
12513 int res1 = 0 ;
12514 PyObject *swig_obj[1] ;
12515
12516 if (!args) SWIG_fail;
12517 swig_obj[0] = args;
12518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12519 if (!SWIG_IsOK(res1)) {
12520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12521 }
12522 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 result = ((wxNativeFontInfo const *)arg1)->ToString();
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 {
12530#if wxUSE_UNICODE
12531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12532#else
12533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12534#endif
12535 }
12536 return resultobj;
12537fail:
12538 return NULL;
d55e5bfc
RD
12539}
12540
12541
1bd55598
RD
12542SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12543 PyObject *resultobj = 0;
12544 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12545 wxString result;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12555 }
12556 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 result = wxNativeFontInfo___str__(arg1);
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 {
12564#if wxUSE_UNICODE
12565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12566#else
12567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12568#endif
12569 }
12570 return resultobj;
12571fail:
12572 return NULL;
12573}
12574
12575
12576SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12577 PyObject *resultobj = 0;
12578 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12579 wxString *arg2 = 0 ;
12580 bool result;
12581 void *argp1 = 0 ;
12582 int res1 = 0 ;
12583 bool temp2 = false ;
12584 PyObject * obj0 = 0 ;
12585 PyObject * obj1 = 0 ;
12586 char * kwnames[] = {
12587 (char *) "self",(char *) "s", NULL
12588 };
12589
12590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12592 if (!SWIG_IsOK(res1)) {
12593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12594 }
12595 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12596 {
12597 arg2 = wxString_in_helper(obj1);
12598 if (arg2 == NULL) SWIG_fail;
12599 temp2 = true;
12600 }
12601 {
12602 PyThreadState* __tstate = wxPyBeginAllowThreads();
12603 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 {
12608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12609 }
12610 {
12611 if (temp2)
12612 delete arg2;
12613 }
12614 return resultobj;
12615fail:
12616 {
12617 if (temp2)
12618 delete arg2;
12619 }
12620 return NULL;
d55e5bfc
RD
12621}
12622
12623
1bd55598
RD
12624SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12625 PyObject *resultobj = 0;
12626 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12627 wxString result;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 PyObject *swig_obj[1] ;
12631
12632 if (!args) SWIG_fail;
12633 swig_obj[0] = args;
12634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12635 if (!SWIG_IsOK(res1)) {
12636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12637 }
12638 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 {
36ed4f51 12646#if wxUSE_UNICODE
1bd55598 12647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12648#else
1bd55598 12649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12650#endif
1bd55598
RD
12651 }
12652 return resultobj;
12653fail:
12654 return NULL;
d55e5bfc
RD
12655}
12656
12657
1bd55598
RD
12658SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12659 PyObject *obj;
12660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12661 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12662 return SWIG_Py_Void();
d55e5bfc
RD
12663}
12664
1bd55598
RD
12665SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12666 return SWIG_Python_InitShadowInstance(args);
12667}
d55e5bfc 12668
1bd55598
RD
12669SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12670 PyObject *resultobj = 0;
12671 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12672 wxString *arg2 = (wxString *) 0 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool temp2 = false ;
12676 PyObject *swig_obj[2] ;
12677
12678 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12680 if (!SWIG_IsOK(res1)) {
12681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12682 }
12683 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12684 {
12685 arg2 = wxString_in_helper(swig_obj[1]);
12686 if (arg2 == NULL) SWIG_fail;
12687 temp2 = true;
12688 }
12689 if (arg1) (arg1)->facename = *arg2;
12690
12691 resultobj = SWIG_Py_Void();
12692 {
12693 if (temp2)
12694 delete arg2;
12695 }
12696 return resultobj;
12697fail:
12698 {
12699 if (temp2)
12700 delete arg2;
12701 }
12702 return NULL;
d55e5bfc
RD
12703}
12704
12705
1bd55598
RD
12706SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12707 PyObject *resultobj = 0;
12708 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12709 wxString *result = 0 ;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 PyObject *swig_obj[1] ;
12713
12714 if (!args) SWIG_fail;
12715 swig_obj[0] = args;
12716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12717 if (!SWIG_IsOK(res1)) {
12718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12719 }
12720 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12721 result = (wxString *)& ((arg1)->facename);
12722 {
12723#if wxUSE_UNICODE
12724 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12725#else
12726 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12727#endif
12728 }
12729 return resultobj;
12730fail:
12731 return NULL;
d55e5bfc
RD
12732}
12733
12734
1bd55598
RD
12735SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12736 PyObject *resultobj = 0;
12737 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12738 wxFontEncoding arg2 ;
12739 void *argp1 = 0 ;
12740 int res1 = 0 ;
12741 int val2 ;
12742 int ecode2 = 0 ;
12743 PyObject *swig_obj[2] ;
12744
12745 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12747 if (!SWIG_IsOK(res1)) {
12748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12749 }
12750 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12751 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12752 if (!SWIG_IsOK(ecode2)) {
12753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12754 }
12755 arg2 = static_cast< wxFontEncoding >(val2);
12756 if (arg1) (arg1)->encoding = arg2;
12757
12758 resultobj = SWIG_Py_Void();
12759 return resultobj;
12760fail:
12761 return NULL;
d55e5bfc
RD
12762}
12763
12764
1bd55598
RD
12765SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12766 PyObject *resultobj = 0;
12767 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12768 wxFontEncoding result;
12769 void *argp1 = 0 ;
12770 int res1 = 0 ;
12771 PyObject *swig_obj[1] ;
12772
12773 if (!args) SWIG_fail;
12774 swig_obj[0] = args;
12775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12778 }
12779 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12780 result = (wxFontEncoding) ((arg1)->encoding);
12781 resultobj = SWIG_From_int(static_cast< int >(result));
12782 return resultobj;
12783fail:
12784 return NULL;
d07096ad
RD
12785}
12786
12787
1bd55598
RD
12788SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12789 PyObject *resultobj = 0;
12790 wxNativeEncodingInfo *result = 0 ;
12791
12792 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12800 return resultobj;
12801fail:
12802 return NULL;
d55e5bfc
RD
12803}
12804
12805
1bd55598
RD
12806SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12807 PyObject *resultobj = 0;
12808 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12809 void *argp1 = 0 ;
12810 int res1 = 0 ;
12811 PyObject *swig_obj[1] ;
12812
12813 if (!args) SWIG_fail;
12814 swig_obj[0] = args;
12815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12816 if (!SWIG_IsOK(res1)) {
12817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12818 }
12819 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 delete arg1;
d55e5bfc 12823
1bd55598
RD
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 resultobj = SWIG_Py_Void();
12828 return resultobj;
12829fail:
12830 return NULL;
12831}
12832
12833
12834SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj = 0;
12836 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12837 wxString *arg2 = 0 ;
12838 bool result;
12839 void *argp1 = 0 ;
12840 int res1 = 0 ;
12841 bool temp2 = false ;
12842 PyObject * obj0 = 0 ;
12843 PyObject * obj1 = 0 ;
12844 char * kwnames[] = {
12845 (char *) "self",(char *) "s", NULL
12846 };
12847
12848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12850 if (!SWIG_IsOK(res1)) {
12851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12852 }
12853 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12854 {
12855 arg2 = wxString_in_helper(obj1);
12856 if (arg2 == NULL) SWIG_fail;
12857 temp2 = true;
12858 }
12859 {
12860 PyThreadState* __tstate = wxPyBeginAllowThreads();
12861 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12862 wxPyEndAllowThreads(__tstate);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 {
12866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12867 }
12868 {
12869 if (temp2)
12870 delete arg2;
12871 }
12872 return resultobj;
12873fail:
12874 {
12875 if (temp2)
12876 delete arg2;
12877 }
12878 return NULL;
d55e5bfc
RD
12879}
12880
12881
1bd55598
RD
12882SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12883 PyObject *resultobj = 0;
12884 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12885 wxString 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_wxNativeEncodingInfo, 0 | 0 );
12893 if (!SWIG_IsOK(res1)) {
12894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12895 }
12896 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 {
12904#if wxUSE_UNICODE
12905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12906#else
12907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12908#endif
12909 }
12910 return resultobj;
12911fail:
12912 return NULL;
d55e5bfc
RD
12913}
12914
12915
1bd55598
RD
12916SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12917 PyObject *obj;
12918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12919 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12920 return SWIG_Py_Void();
d55e5bfc
RD
12921}
12922
1bd55598
RD
12923SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12924 return SWIG_Python_InitShadowInstance(args);
12925}
d55e5bfc 12926
1bd55598
RD
12927SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12928 PyObject *resultobj = 0;
12929 wxFontEncoding arg1 ;
12930 wxNativeEncodingInfo *result = 0 ;
12931 int val1 ;
12932 int ecode1 = 0 ;
12933 PyObject * obj0 = 0 ;
12934 char * kwnames[] = {
12935 (char *) "encoding", NULL
12936 };
12937
12938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12939 ecode1 = SWIG_AsVal_int(obj0, &val1);
12940 if (!SWIG_IsOK(ecode1)) {
12941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12942 }
12943 arg1 = static_cast< wxFontEncoding >(val1);
12944 {
12945 PyThreadState* __tstate = wxPyBeginAllowThreads();
12946 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12951 return resultobj;
12952fail:
12953 return NULL;
12954}
12955
12956
12957SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj = 0;
12959 wxNativeEncodingInfo *arg1 = 0 ;
12960 bool result;
12961 void *argp1 = 0 ;
12962 int res1 = 0 ;
12963 PyObject * obj0 = 0 ;
12964 char * kwnames[] = {
12965 (char *) "info", NULL
12966 };
12967
12968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12969 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12970 if (!SWIG_IsOK(res1)) {
12971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12972 }
12973 if (!argp1) {
12974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12975 }
12976 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 {
12984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12985 }
12986 return resultobj;
12987fail:
12988 return NULL;
d55e5bfc
RD
12989}
12990
12991
1bd55598
RD
12992SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12993 PyObject *resultobj = 0;
12994 wxFontMapper *result = 0 ;
12995
12996 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 result = (wxFontMapper *)new wxFontMapper();
13000 wxPyEndAllowThreads(__tstate);
13001 if (PyErr_Occurred()) SWIG_fail;
13002 }
13003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13004 return resultobj;
13005fail:
13006 return NULL;
d55e5bfc
RD
13007}
13008
13009
1bd55598
RD
13010SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13011 PyObject *resultobj = 0;
13012 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13013 void *argp1 = 0 ;
13014 int res1 = 0 ;
13015 PyObject *swig_obj[1] ;
13016
13017 if (!args) SWIG_fail;
13018 swig_obj[0] = args;
13019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13020 if (!SWIG_IsOK(res1)) {
13021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13022 }
13023 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13024 {
13025 PyThreadState* __tstate = wxPyBeginAllowThreads();
13026 delete arg1;
d55e5bfc 13027
1bd55598
RD
13028 wxPyEndAllowThreads(__tstate);
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
13031 resultobj = SWIG_Py_Void();
13032 return resultobj;
13033fail:
13034 return NULL;
d55e5bfc
RD
13035}
13036
13037
1bd55598
RD
13038SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13039 PyObject *resultobj = 0;
13040 wxFontMapper *result = 0 ;
13041
13042 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
13045 result = (wxFontMapper *)wxFontMapper::Get();
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
13049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13050 return resultobj;
13051fail:
13052 return NULL;
13053}
13054
13055
13056SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13057 PyObject *resultobj = 0;
13058 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13059 wxFontMapper *result = 0 ;
13060 void *argp1 = 0 ;
13061 int res1 = 0 ;
13062 PyObject * obj0 = 0 ;
13063 char * kwnames[] = {
13064 (char *) "mapper", NULL
13065 };
13066
13067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13069 if (!SWIG_IsOK(res1)) {
13070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13071 }
13072 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13076 wxPyEndAllowThreads(__tstate);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13080 return resultobj;
13081fail:
13082 return NULL;
13083}
13084
13085
13086SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13087 PyObject *resultobj = 0;
13088 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13089 wxString *arg2 = 0 ;
13090 bool arg3 = (bool) true ;
13091 wxFontEncoding result;
13092 void *argp1 = 0 ;
13093 int res1 = 0 ;
13094 bool temp2 = false ;
13095 bool val3 ;
13096 int ecode3 = 0 ;
13097 PyObject * obj0 = 0 ;
13098 PyObject * obj1 = 0 ;
13099 PyObject * obj2 = 0 ;
13100 char * kwnames[] = {
13101 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13102 };
13103
13104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13106 if (!SWIG_IsOK(res1)) {
13107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13108 }
13109 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13110 {
13111 arg2 = wxString_in_helper(obj1);
13112 if (arg2 == NULL) SWIG_fail;
13113 temp2 = true;
13114 }
13115 if (obj2) {
13116 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13117 if (!SWIG_IsOK(ecode3)) {
13118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13119 }
13120 arg3 = static_cast< bool >(val3);
13121 }
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 resultobj = SWIG_From_int(static_cast< int >(result));
13129 {
13130 if (temp2)
13131 delete arg2;
13132 }
13133 return resultobj;
13134fail:
13135 {
13136 if (temp2)
13137 delete arg2;
13138 }
13139 return NULL;
d55e5bfc
RD
13140}
13141
13142
1bd55598
RD
13143SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13144 PyObject *resultobj = 0;
13145 size_t result;
13146
13147 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13155 return resultobj;
13156fail:
13157 return NULL;
13158}
13159
13160
13161SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13162 PyObject *resultobj = 0;
13163 size_t arg1 ;
13164 wxFontEncoding result;
13165 size_t val1 ;
13166 int ecode1 = 0 ;
13167 PyObject * obj0 = 0 ;
13168 char * kwnames[] = {
13169 (char *) "n", NULL
13170 };
13171
13172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13173 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13174 if (!SWIG_IsOK(ecode1)) {
13175 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13176 }
13177 arg1 = static_cast< size_t >(val1);
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13181 wxPyEndAllowThreads(__tstate);
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 resultobj = SWIG_From_int(static_cast< int >(result));
13185 return resultobj;
13186fail:
13187 return NULL;
13188}
13189
13190
13191SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13192 PyObject *resultobj = 0;
13193 wxFontEncoding arg1 ;
13194 wxString result;
13195 int val1 ;
13196 int ecode1 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 char * kwnames[] = {
13199 (char *) "encoding", NULL
13200 };
13201
13202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13203 ecode1 = SWIG_AsVal_int(obj0, &val1);
13204 if (!SWIG_IsOK(ecode1)) {
13205 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13206 }
13207 arg1 = static_cast< wxFontEncoding >(val1);
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 result = wxFontMapper::GetEncodingName(arg1);
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 {
13215#if wxUSE_UNICODE
13216 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13217#else
13218 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13219#endif
13220 }
13221 return resultobj;
13222fail:
13223 return NULL;
d55e5bfc
RD
13224}
13225
13226
1bd55598
RD
13227SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxFontEncoding arg1 ;
13230 wxString result;
13231 int val1 ;
13232 int ecode1 = 0 ;
13233 PyObject * obj0 = 0 ;
13234 char * kwnames[] = {
13235 (char *) "encoding", NULL
13236 };
13237
13238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13239 ecode1 = SWIG_AsVal_int(obj0, &val1);
13240 if (!SWIG_IsOK(ecode1)) {
13241 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13242 }
13243 arg1 = static_cast< wxFontEncoding >(val1);
13244 {
13245 PyThreadState* __tstate = wxPyBeginAllowThreads();
13246 result = wxFontMapper::GetEncodingDescription(arg1);
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 {
13251#if wxUSE_UNICODE
13252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13253#else
13254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13255#endif
13256 }
13257 return resultobj;
13258fail:
13259 return NULL;
d55e5bfc
RD
13260}
13261
13262
1bd55598
RD
13263SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj = 0;
13265 wxString *arg1 = 0 ;
13266 wxFontEncoding result;
13267 bool temp1 = false ;
13268 PyObject * obj0 = 0 ;
13269 char * kwnames[] = {
13270 (char *) "name", NULL
13271 };
13272
13273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13274 {
13275 arg1 = wxString_in_helper(obj0);
13276 if (arg1 == NULL) SWIG_fail;
13277 temp1 = true;
13278 }
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13282 wxPyEndAllowThreads(__tstate);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 resultobj = SWIG_From_int(static_cast< int >(result));
13286 {
13287 if (temp1)
13288 delete arg1;
13289 }
13290 return resultobj;
13291fail:
13292 {
13293 if (temp1)
13294 delete arg1;
13295 }
13296 return NULL;
d55e5bfc
RD
13297}
13298
13299
1bd55598
RD
13300SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj = 0;
13302 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13303 wxString *arg2 = 0 ;
13304 void *argp1 = 0 ;
13305 int res1 = 0 ;
13306 bool temp2 = false ;
13307 PyObject * obj0 = 0 ;
13308 PyObject * obj1 = 0 ;
13309 char * kwnames[] = {
13310 (char *) "self",(char *) "prefix", NULL
13311 };
13312
13313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13315 if (!SWIG_IsOK(res1)) {
13316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13317 }
13318 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13319 {
13320 arg2 = wxString_in_helper(obj1);
13321 if (arg2 == NULL) SWIG_fail;
13322 temp2 = true;
13323 }
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->SetConfigPath((wxString const &)*arg2);
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_Py_Void();
13331 {
13332 if (temp2)
13333 delete arg2;
13334 }
13335 return resultobj;
13336fail:
13337 {
13338 if (temp2)
13339 delete arg2;
13340 }
13341 return NULL;
13342}
13343
13344
13345SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13346 PyObject *resultobj = 0;
13347 wxString result;
13348
13349 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 result = wxFontMapper::GetDefaultConfigPath();
13353 wxPyEndAllowThreads(__tstate);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 }
13356 {
13357#if wxUSE_UNICODE
13358 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13359#else
13360 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13361#endif
13362 }
13363 return resultobj;
13364fail:
13365 return NULL;
13366}
13367
13368
13369SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj = 0;
13371 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13372 wxFontEncoding arg2 ;
13373 wxString const &arg3_defvalue = wxPyEmptyString ;
13374 wxString *arg3 = (wxString *) &arg3_defvalue ;
13375 bool arg4 = (bool) true ;
13376 PyObject *result = 0 ;
13377 void *argp1 = 0 ;
13378 int res1 = 0 ;
13379 int val2 ;
13380 int ecode2 = 0 ;
13381 bool temp3 = false ;
13382 bool val4 ;
13383 int ecode4 = 0 ;
13384 PyObject * obj0 = 0 ;
13385 PyObject * obj1 = 0 ;
13386 PyObject * obj2 = 0 ;
13387 PyObject * obj3 = 0 ;
13388 char * kwnames[] = {
13389 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13390 };
13391
13392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13394 if (!SWIG_IsOK(res1)) {
13395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13396 }
13397 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13398 ecode2 = SWIG_AsVal_int(obj1, &val2);
13399 if (!SWIG_IsOK(ecode2)) {
13400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13401 }
13402 arg2 = static_cast< wxFontEncoding >(val2);
13403 if (obj2) {
36ed4f51 13404 {
1bd55598
RD
13405 arg3 = wxString_in_helper(obj2);
13406 if (arg3 == NULL) SWIG_fail;
13407 temp3 = true;
36ed4f51 13408 }
1bd55598
RD
13409 }
13410 if (obj3) {
13411 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13412 if (!SWIG_IsOK(ecode4)) {
13413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13414 }
13415 arg4 = static_cast< bool >(val4);
13416 }
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13420 wxPyEndAllowThreads(__tstate);
13421 if (PyErr_Occurred()) SWIG_fail;
13422 }
13423 resultobj = result;
13424 {
13425 if (temp3)
13426 delete arg3;
13427 }
13428 return resultobj;
13429fail:
13430 {
13431 if (temp3)
13432 delete arg3;
13433 }
13434 return NULL;
13435}
13436
13437
13438SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13439 PyObject *resultobj = 0;
13440 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13441 wxFontEncoding arg2 ;
13442 wxString const &arg3_defvalue = wxPyEmptyString ;
13443 wxString *arg3 = (wxString *) &arg3_defvalue ;
13444 bool result;
13445 void *argp1 = 0 ;
13446 int res1 = 0 ;
13447 int val2 ;
13448 int ecode2 = 0 ;
13449 bool temp3 = false ;
13450 PyObject * obj0 = 0 ;
13451 PyObject * obj1 = 0 ;
13452 PyObject * obj2 = 0 ;
13453 char * kwnames[] = {
13454 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13455 };
13456
13457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13459 if (!SWIG_IsOK(res1)) {
13460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13461 }
13462 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13463 ecode2 = SWIG_AsVal_int(obj1, &val2);
13464 if (!SWIG_IsOK(ecode2)) {
13465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13466 }
13467 arg2 = static_cast< wxFontEncoding >(val2);
13468 if (obj2) {
36ed4f51 13469 {
1bd55598
RD
13470 arg3 = wxString_in_helper(obj2);
13471 if (arg3 == NULL) SWIG_fail;
13472 temp3 = true;
36ed4f51 13473 }
1bd55598
RD
13474 }
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
13477 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13478 wxPyEndAllowThreads(__tstate);
13479 if (PyErr_Occurred()) SWIG_fail;
13480 }
13481 {
13482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13483 }
13484 {
13485 if (temp3)
13486 delete arg3;
13487 }
13488 return resultobj;
13489fail:
13490 {
13491 if (temp3)
13492 delete arg3;
13493 }
13494 return NULL;
13495}
13496
13497
13498SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13499 PyObject *resultobj = 0;
13500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13501 wxWindow *arg2 = (wxWindow *) 0 ;
13502 void *argp1 = 0 ;
13503 int res1 = 0 ;
13504 void *argp2 = 0 ;
13505 int res2 = 0 ;
13506 PyObject * obj0 = 0 ;
13507 PyObject * obj1 = 0 ;
13508 char * kwnames[] = {
13509 (char *) "self",(char *) "parent", NULL
13510 };
13511
13512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13514 if (!SWIG_IsOK(res1)) {
13515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13516 }
13517 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13518 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13519 if (!SWIG_IsOK(res2)) {
13520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13521 }
13522 arg2 = reinterpret_cast< wxWindow * >(argp2);
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 (arg1)->SetDialogParent(arg2);
13526 wxPyEndAllowThreads(__tstate);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 }
13529 resultobj = SWIG_Py_Void();
13530 return resultobj;
13531fail:
13532 return NULL;
13533}
13534
13535
13536SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj = 0;
13538 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13539 wxString *arg2 = 0 ;
13540 void *argp1 = 0 ;
13541 int res1 = 0 ;
13542 bool temp2 = false ;
13543 PyObject * obj0 = 0 ;
13544 PyObject * obj1 = 0 ;
13545 char * kwnames[] = {
13546 (char *) "self",(char *) "title", NULL
13547 };
13548
13549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13553 }
13554 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13555 {
13556 arg2 = wxString_in_helper(obj1);
13557 if (arg2 == NULL) SWIG_fail;
13558 temp2 = true;
13559 }
13560 {
13561 PyThreadState* __tstate = wxPyBeginAllowThreads();
13562 (arg1)->SetDialogTitle((wxString const &)*arg2);
13563 wxPyEndAllowThreads(__tstate);
13564 if (PyErr_Occurred()) SWIG_fail;
13565 }
13566 resultobj = SWIG_Py_Void();
13567 {
13568 if (temp2)
13569 delete arg2;
13570 }
13571 return resultobj;
13572fail:
13573 {
13574 if (temp2)
13575 delete arg2;
13576 }
13577 return NULL;
13578}
13579
13580
13581SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13582 PyObject *obj;
13583 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13584 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13585 return SWIG_Py_Void();
13586}
13587
13588SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13589 return SWIG_Python_InitShadowInstance(args);
13590}
13591
13592SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj = 0;
13594 int arg1 ;
13595 int arg2 ;
13596 int arg3 ;
13597 int arg4 ;
13598 bool arg5 = (bool) false ;
13599 wxString const &arg6_defvalue = wxPyEmptyString ;
13600 wxString *arg6 = (wxString *) &arg6_defvalue ;
13601 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13602 wxFont *result = 0 ;
13603 int val1 ;
13604 int ecode1 = 0 ;
13605 int val2 ;
13606 int ecode2 = 0 ;
13607 int val3 ;
13608 int ecode3 = 0 ;
13609 int val4 ;
13610 int ecode4 = 0 ;
13611 bool val5 ;
13612 int ecode5 = 0 ;
13613 bool temp6 = false ;
13614 int val7 ;
13615 int ecode7 = 0 ;
13616 PyObject * obj0 = 0 ;
13617 PyObject * obj1 = 0 ;
13618 PyObject * obj2 = 0 ;
13619 PyObject * obj3 = 0 ;
13620 PyObject * obj4 = 0 ;
13621 PyObject * obj5 = 0 ;
13622 PyObject * obj6 = 0 ;
13623 char * kwnames[] = {
13624 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13625 };
13626
13627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13628 ecode1 = SWIG_AsVal_int(obj0, &val1);
13629 if (!SWIG_IsOK(ecode1)) {
13630 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13631 }
13632 arg1 = static_cast< int >(val1);
13633 ecode2 = SWIG_AsVal_int(obj1, &val2);
13634 if (!SWIG_IsOK(ecode2)) {
13635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13636 }
13637 arg2 = static_cast< int >(val2);
13638 ecode3 = SWIG_AsVal_int(obj2, &val3);
13639 if (!SWIG_IsOK(ecode3)) {
13640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13641 }
13642 arg3 = static_cast< int >(val3);
13643 ecode4 = SWIG_AsVal_int(obj3, &val4);
13644 if (!SWIG_IsOK(ecode4)) {
13645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13646 }
13647 arg4 = static_cast< int >(val4);
13648 if (obj4) {
13649 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13650 if (!SWIG_IsOK(ecode5)) {
13651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13652 }
13653 arg5 = static_cast< bool >(val5);
13654 }
13655 if (obj5) {
d55e5bfc 13656 {
1bd55598
RD
13657 arg6 = wxString_in_helper(obj5);
13658 if (arg6 == NULL) SWIG_fail;
13659 temp6 = true;
d55e5bfc 13660 }
1bd55598
RD
13661 }
13662 if (obj6) {
13663 ecode7 = SWIG_AsVal_int(obj6, &val7);
13664 if (!SWIG_IsOK(ecode7)) {
13665 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13666 }
13667 arg7 = static_cast< wxFontEncoding >(val7);
13668 }
13669 {
13670 if (!wxPyCheckForApp()) SWIG_fail;
13671 PyThreadState* __tstate = wxPyBeginAllowThreads();
13672 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13673 wxPyEndAllowThreads(__tstate);
13674 if (PyErr_Occurred()) SWIG_fail;
13675 }
13676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13677 {
13678 if (temp6)
13679 delete arg6;
13680 }
13681 return resultobj;
13682fail:
13683 {
13684 if (temp6)
13685 delete arg6;
13686 }
13687 return NULL;
d55e5bfc
RD
13688}
13689
13690
1bd55598
RD
13691SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13692 PyObject *resultobj = 0;
13693 wxFont *arg1 = (wxFont *) 0 ;
13694 void *argp1 = 0 ;
13695 int res1 = 0 ;
13696 PyObject *swig_obj[1] ;
13697
13698 if (!args) SWIG_fail;
13699 swig_obj[0] = args;
13700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13701 if (!SWIG_IsOK(res1)) {
13702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13703 }
13704 arg1 = reinterpret_cast< wxFont * >(argp1);
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 delete arg1;
d55e5bfc 13708
1bd55598
RD
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 resultobj = SWIG_Py_Void();
13713 return resultobj;
13714fail:
13715 return NULL;
13716}
13717
13718
13719SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13720 PyObject *resultobj = 0;
13721 wxNativeFontInfo *arg1 = 0 ;
13722 wxFont *result = 0 ;
13723 void *argp1 = 0 ;
13724 int res1 = 0 ;
13725 PyObject * obj0 = 0 ;
13726 char * kwnames[] = {
13727 (char *) "info", NULL
13728 };
13729
13730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13731 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13732 if (!SWIG_IsOK(res1)) {
13733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13734 }
13735 if (!argp1) {
13736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13737 }
13738 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13739 {
13740 if (!wxPyCheckForApp()) SWIG_fail;
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13743 wxPyEndAllowThreads(__tstate);
13744 if (PyErr_Occurred()) SWIG_fail;
13745 }
13746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13747 return resultobj;
13748fail:
13749 return NULL;
d55e5bfc
RD
13750}
13751
13752
1bd55598
RD
13753SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj = 0;
13755 wxString *arg1 = 0 ;
13756 wxFont *result = 0 ;
13757 bool temp1 = false ;
13758 PyObject * obj0 = 0 ;
13759 char * kwnames[] = {
13760 (char *) "info", NULL
13761 };
13762
13763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13764 {
13765 arg1 = wxString_in_helper(obj0);
13766 if (arg1 == NULL) SWIG_fail;
13767 temp1 = true;
13768 }
13769 {
13770 if (!wxPyCheckForApp()) SWIG_fail;
13771 PyThreadState* __tstate = wxPyBeginAllowThreads();
13772 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13777 {
13778 if (temp1)
13779 delete arg1;
13780 }
13781 return resultobj;
13782fail:
13783 {
13784 if (temp1)
13785 delete arg1;
13786 }
13787 return NULL;
13788}
13789
13790
13791SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13792 PyObject *resultobj = 0;
13793 int arg1 ;
13794 wxFontFamily arg2 ;
13795 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13796 wxString const &arg4_defvalue = wxPyEmptyString ;
13797 wxString *arg4 = (wxString *) &arg4_defvalue ;
13798 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13799 wxFont *result = 0 ;
13800 int val1 ;
13801 int ecode1 = 0 ;
13802 int val2 ;
13803 int ecode2 = 0 ;
13804 int val3 ;
13805 int ecode3 = 0 ;
13806 bool temp4 = false ;
13807 int val5 ;
13808 int ecode5 = 0 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 PyObject * obj2 = 0 ;
13812 PyObject * obj3 = 0 ;
13813 PyObject * obj4 = 0 ;
13814 char * kwnames[] = {
13815 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13816 };
13817
13818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13819 ecode1 = SWIG_AsVal_int(obj0, &val1);
13820 if (!SWIG_IsOK(ecode1)) {
13821 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13822 }
13823 arg1 = static_cast< int >(val1);
13824 ecode2 = SWIG_AsVal_int(obj1, &val2);
13825 if (!SWIG_IsOK(ecode2)) {
13826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13827 }
13828 arg2 = static_cast< wxFontFamily >(val2);
13829 if (obj2) {
13830 ecode3 = SWIG_AsVal_int(obj2, &val3);
13831 if (!SWIG_IsOK(ecode3)) {
13832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13833 }
13834 arg3 = static_cast< int >(val3);
13835 }
13836 if (obj3) {
36ed4f51 13837 {
1bd55598
RD
13838 arg4 = wxString_in_helper(obj3);
13839 if (arg4 == NULL) SWIG_fail;
13840 temp4 = true;
36ed4f51 13841 }
1bd55598
RD
13842 }
13843 if (obj4) {
13844 ecode5 = SWIG_AsVal_int(obj4, &val5);
13845 if (!SWIG_IsOK(ecode5)) {
13846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13847 }
13848 arg5 = static_cast< wxFontEncoding >(val5);
13849 }
13850 {
13851 if (!wxPyCheckForApp()) SWIG_fail;
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13858 {
13859 if (temp4)
13860 delete arg4;
13861 }
13862 return resultobj;
13863fail:
13864 {
13865 if (temp4)
13866 delete arg4;
13867 }
13868 return NULL;
13869}
13870
13871
13872SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13873 PyObject *resultobj = 0;
13874 wxSize *arg1 = 0 ;
13875 int arg2 ;
13876 int arg3 ;
13877 int arg4 ;
13878 bool arg5 = (bool) false ;
13879 wxString const &arg6_defvalue = wxEmptyString ;
13880 wxString *arg6 = (wxString *) &arg6_defvalue ;
13881 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13882 wxFont *result = 0 ;
13883 wxSize temp1 ;
13884 int val2 ;
13885 int ecode2 = 0 ;
13886 int val3 ;
13887 int ecode3 = 0 ;
13888 int val4 ;
13889 int ecode4 = 0 ;
13890 bool val5 ;
13891 int ecode5 = 0 ;
13892 bool temp6 = false ;
13893 int val7 ;
13894 int ecode7 = 0 ;
13895 PyObject * obj0 = 0 ;
13896 PyObject * obj1 = 0 ;
13897 PyObject * obj2 = 0 ;
13898 PyObject * obj3 = 0 ;
13899 PyObject * obj4 = 0 ;
13900 PyObject * obj5 = 0 ;
13901 PyObject * obj6 = 0 ;
13902 char * kwnames[] = {
13903 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13904 };
13905
13906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13907 {
13908 arg1 = &temp1;
13909 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13910 }
13911 ecode2 = SWIG_AsVal_int(obj1, &val2);
13912 if (!SWIG_IsOK(ecode2)) {
13913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13914 }
13915 arg2 = static_cast< int >(val2);
13916 ecode3 = SWIG_AsVal_int(obj2, &val3);
13917 if (!SWIG_IsOK(ecode3)) {
13918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13919 }
13920 arg3 = static_cast< int >(val3);
13921 ecode4 = SWIG_AsVal_int(obj3, &val4);
13922 if (!SWIG_IsOK(ecode4)) {
13923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13924 }
13925 arg4 = static_cast< int >(val4);
13926 if (obj4) {
13927 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13928 if (!SWIG_IsOK(ecode5)) {
13929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13930 }
13931 arg5 = static_cast< bool >(val5);
13932 }
13933 if (obj5) {
d55e5bfc 13934 {
1bd55598
RD
13935 arg6 = wxString_in_helper(obj5);
13936 if (arg6 == NULL) SWIG_fail;
13937 temp6 = true;
d55e5bfc 13938 }
1bd55598
RD
13939 }
13940 if (obj6) {
13941 ecode7 = SWIG_AsVal_int(obj6, &val7);
13942 if (!SWIG_IsOK(ecode7)) {
13943 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13944 }
13945 arg7 = static_cast< wxFontEncoding >(val7);
13946 }
13947 {
13948 if (!wxPyCheckForApp()) SWIG_fail;
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13955 {
13956 if (temp6)
13957 delete arg6;
13958 }
13959 return resultobj;
13960fail:
13961 {
13962 if (temp6)
13963 delete arg6;
13964 }
13965 return NULL;
13966}
13967
13968
13969SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13970 PyObject *resultobj = 0;
13971 wxSize *arg1 = 0 ;
13972 wxFontFamily arg2 ;
13973 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13974 wxString const &arg4_defvalue = wxEmptyString ;
13975 wxString *arg4 = (wxString *) &arg4_defvalue ;
13976 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13977 wxFont *result = 0 ;
13978 wxSize temp1 ;
13979 int val2 ;
13980 int ecode2 = 0 ;
13981 int val3 ;
13982 int ecode3 = 0 ;
13983 bool temp4 = false ;
13984 int val5 ;
13985 int ecode5 = 0 ;
13986 PyObject * obj0 = 0 ;
13987 PyObject * obj1 = 0 ;
13988 PyObject * obj2 = 0 ;
13989 PyObject * obj3 = 0 ;
13990 PyObject * obj4 = 0 ;
13991 char * kwnames[] = {
13992 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13993 };
13994
13995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13996 {
13997 arg1 = &temp1;
13998 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13999 }
14000 ecode2 = SWIG_AsVal_int(obj1, &val2);
14001 if (!SWIG_IsOK(ecode2)) {
14002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14003 }
14004 arg2 = static_cast< wxFontFamily >(val2);
14005 if (obj2) {
14006 ecode3 = SWIG_AsVal_int(obj2, &val3);
14007 if (!SWIG_IsOK(ecode3)) {
14008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14009 }
14010 arg3 = static_cast< int >(val3);
14011 }
14012 if (obj3) {
36ed4f51 14013 {
1bd55598
RD
14014 arg4 = wxString_in_helper(obj3);
14015 if (arg4 == NULL) SWIG_fail;
14016 temp4 = true;
36ed4f51 14017 }
1bd55598
RD
14018 }
14019 if (obj4) {
14020 ecode5 = SWIG_AsVal_int(obj4, &val5);
14021 if (!SWIG_IsOK(ecode5)) {
14022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14023 }
14024 arg5 = static_cast< wxFontEncoding >(val5);
14025 }
14026 {
14027 if (!wxPyCheckForApp()) SWIG_fail;
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14034 {
14035 if (temp4)
14036 delete arg4;
14037 }
14038 return resultobj;
14039fail:
14040 {
14041 if (temp4)
14042 delete arg4;
14043 }
14044 return NULL;
d55e5bfc
RD
14045}
14046
14047
b39fe951 14048SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14049 PyObject *resultobj = 0;
14050 wxFont *arg1 = (wxFont *) 0 ;
14051 bool result;
14052 void *argp1 = 0 ;
14053 int res1 = 0 ;
14054 PyObject *swig_obj[1] ;
14055
14056 if (!args) SWIG_fail;
14057 swig_obj[0] = args;
14058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14059 if (!SWIG_IsOK(res1)) {
b39fe951 14060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14061 }
14062 arg1 = reinterpret_cast< wxFont * >(argp1);
14063 {
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14065 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 {
14070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14071 }
14072 return resultobj;
14073fail:
14074 return NULL;
14075}
14076
14077
14078SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14079 PyObject *resultobj = 0;
14080 wxFont *arg1 = (wxFont *) 0 ;
14081 wxFont *arg2 = (wxFont *) 0 ;
14082 bool result;
14083 void *argp1 = 0 ;
14084 int res1 = 0 ;
14085 void *argp2 = 0 ;
14086 int res2 = 0 ;
14087 PyObject * obj0 = 0 ;
14088 PyObject * obj1 = 0 ;
14089 char * kwnames[] = {
14090 (char *) "self",(char *) "other", NULL
14091 };
14092
14093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14095 if (!SWIG_IsOK(res1)) {
14096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14097 }
14098 arg1 = reinterpret_cast< wxFont * >(argp1);
14099 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14100 if (!SWIG_IsOK(res2)) {
14101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14102 }
14103 arg2 = reinterpret_cast< wxFont * >(argp2);
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14107 wxPyEndAllowThreads(__tstate);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 }
14110 {
14111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14112 }
14113 return resultobj;
14114fail:
14115 return NULL;
14116}
14117
14118
14119SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14120 PyObject *resultobj = 0;
14121 wxFont *arg1 = (wxFont *) 0 ;
14122 wxFont *arg2 = (wxFont *) 0 ;
14123 bool result;
14124 void *argp1 = 0 ;
14125 int res1 = 0 ;
14126 void *argp2 = 0 ;
14127 int res2 = 0 ;
14128 PyObject * obj0 = 0 ;
14129 PyObject * obj1 = 0 ;
14130 char * kwnames[] = {
14131 (char *) "self",(char *) "other", NULL
14132 };
14133
14134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14136 if (!SWIG_IsOK(res1)) {
14137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14138 }
14139 arg1 = reinterpret_cast< wxFont * >(argp1);
14140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14141 if (!SWIG_IsOK(res2)) {
14142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14143 }
14144 arg2 = reinterpret_cast< wxFont * >(argp2);
14145 {
14146 PyThreadState* __tstate = wxPyBeginAllowThreads();
14147 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 {
14152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14153 }
14154 return resultobj;
14155fail:
14156 return NULL;
d55e5bfc
RD
14157}
14158
14159
1bd55598
RD
14160SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14161 PyObject *resultobj = 0;
14162 wxFont *arg1 = (wxFont *) 0 ;
14163 int result;
14164 void *argp1 = 0 ;
14165 int res1 = 0 ;
14166 PyObject *swig_obj[1] ;
14167
14168 if (!args) SWIG_fail;
14169 swig_obj[0] = args;
14170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14171 if (!SWIG_IsOK(res1)) {
14172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14173 }
14174 arg1 = reinterpret_cast< wxFont * >(argp1);
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 result = (int)((wxFont const *)arg1)->GetPointSize();
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 resultobj = SWIG_From_int(static_cast< int >(result));
14182 return resultobj;
14183fail:
14184 return NULL;
d55e5bfc
RD
14185}
14186
14187
1bd55598
RD
14188SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14189 PyObject *resultobj = 0;
14190 wxFont *arg1 = (wxFont *) 0 ;
14191 wxSize result;
14192 void *argp1 = 0 ;
14193 int res1 = 0 ;
14194 PyObject *swig_obj[1] ;
14195
14196 if (!args) SWIG_fail;
14197 swig_obj[0] = args;
14198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14201 }
14202 arg1 = reinterpret_cast< wxFont * >(argp1);
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = ((wxFont const *)arg1)->GetPixelSize();
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14210 return resultobj;
14211fail:
14212 return NULL;
d55e5bfc
RD
14213}
14214
14215
1bd55598
RD
14216SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14217 PyObject *resultobj = 0;
14218 wxFont *arg1 = (wxFont *) 0 ;
14219 bool result;
14220 void *argp1 = 0 ;
14221 int res1 = 0 ;
14222 PyObject *swig_obj[1] ;
14223
14224 if (!args) SWIG_fail;
14225 swig_obj[0] = args;
14226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14227 if (!SWIG_IsOK(res1)) {
14228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14229 }
14230 arg1 = reinterpret_cast< wxFont * >(argp1);
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 {
14238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14239 }
14240 return resultobj;
14241fail:
14242 return NULL;
d55e5bfc
RD
14243}
14244
14245
1bd55598
RD
14246SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14247 PyObject *resultobj = 0;
14248 wxFont *arg1 = (wxFont *) 0 ;
14249 int result;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 PyObject *swig_obj[1] ;
14253
14254 if (!args) SWIG_fail;
14255 swig_obj[0] = args;
14256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14257 if (!SWIG_IsOK(res1)) {
14258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14259 }
14260 arg1 = reinterpret_cast< wxFont * >(argp1);
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = (int)((wxFont const *)arg1)->GetFamily();
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 resultobj = SWIG_From_int(static_cast< int >(result));
14268 return resultobj;
14269fail:
14270 return NULL;
d55e5bfc
RD
14271}
14272
14273
1bd55598
RD
14274SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14275 PyObject *resultobj = 0;
14276 wxFont *arg1 = (wxFont *) 0 ;
14277 int result;
14278 void *argp1 = 0 ;
14279 int res1 = 0 ;
14280 PyObject *swig_obj[1] ;
14281
14282 if (!args) SWIG_fail;
14283 swig_obj[0] = args;
14284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14285 if (!SWIG_IsOK(res1)) {
14286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14287 }
14288 arg1 = reinterpret_cast< wxFont * >(argp1);
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (int)((wxFont const *)arg1)->GetStyle();
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 resultobj = SWIG_From_int(static_cast< int >(result));
14296 return resultobj;
14297fail:
14298 return NULL;
d55e5bfc
RD
14299}
14300
14301
1bd55598
RD
14302SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14303 PyObject *resultobj = 0;
14304 wxFont *arg1 = (wxFont *) 0 ;
14305 int result;
14306 void *argp1 = 0 ;
14307 int res1 = 0 ;
14308 PyObject *swig_obj[1] ;
14309
14310 if (!args) SWIG_fail;
14311 swig_obj[0] = args;
14312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14313 if (!SWIG_IsOK(res1)) {
14314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14315 }
14316 arg1 = reinterpret_cast< wxFont * >(argp1);
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 result = (int)((wxFont const *)arg1)->GetWeight();
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 resultobj = SWIG_From_int(static_cast< int >(result));
14324 return resultobj;
14325fail:
14326 return NULL;
d55e5bfc
RD
14327}
14328
14329
1bd55598
RD
14330SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14331 PyObject *resultobj = 0;
14332 wxFont *arg1 = (wxFont *) 0 ;
14333 bool result;
14334 void *argp1 = 0 ;
14335 int res1 = 0 ;
14336 PyObject *swig_obj[1] ;
14337
14338 if (!args) SWIG_fail;
14339 swig_obj[0] = args;
14340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14341 if (!SWIG_IsOK(res1)) {
14342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14343 }
14344 arg1 = reinterpret_cast< wxFont * >(argp1);
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 {
14352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14353 }
14354 return resultobj;
14355fail:
14356 return NULL;
d55e5bfc
RD
14357}
14358
14359
1bd55598
RD
14360SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14361 PyObject *resultobj = 0;
14362 wxFont *arg1 = (wxFont *) 0 ;
14363 wxString result;
14364 void *argp1 = 0 ;
14365 int res1 = 0 ;
14366 PyObject *swig_obj[1] ;
14367
14368 if (!args) SWIG_fail;
14369 swig_obj[0] = args;
14370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14371 if (!SWIG_IsOK(res1)) {
14372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14373 }
14374 arg1 = reinterpret_cast< wxFont * >(argp1);
14375 {
14376 PyThreadState* __tstate = wxPyBeginAllowThreads();
14377 result = ((wxFont const *)arg1)->GetFaceName();
14378 wxPyEndAllowThreads(__tstate);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 {
14382#if wxUSE_UNICODE
14383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14384#else
14385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14386#endif
14387 }
14388 return resultobj;
14389fail:
14390 return NULL;
d55e5bfc
RD
14391}
14392
14393
1bd55598
RD
14394SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14395 PyObject *resultobj = 0;
14396 wxFont *arg1 = (wxFont *) 0 ;
14397 wxFontEncoding result;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 PyObject *swig_obj[1] ;
14401
14402 if (!args) SWIG_fail;
14403 swig_obj[0] = args;
14404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14405 if (!SWIG_IsOK(res1)) {
14406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14407 }
14408 arg1 = reinterpret_cast< wxFont * >(argp1);
14409 {
14410 PyThreadState* __tstate = wxPyBeginAllowThreads();
14411 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14412 wxPyEndAllowThreads(__tstate);
14413 if (PyErr_Occurred()) SWIG_fail;
14414 }
14415 resultobj = SWIG_From_int(static_cast< int >(result));
14416 return resultobj;
14417fail:
14418 return NULL;
d55e5bfc
RD
14419}
14420
14421
1bd55598
RD
14422SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14423 PyObject *resultobj = 0;
14424 wxFont *arg1 = (wxFont *) 0 ;
14425 wxNativeFontInfo *result = 0 ;
14426 void *argp1 = 0 ;
14427 int res1 = 0 ;
14428 PyObject *swig_obj[1] ;
14429
14430 if (!args) SWIG_fail;
14431 swig_obj[0] = args;
14432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14433 if (!SWIG_IsOK(res1)) {
14434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14435 }
14436 arg1 = reinterpret_cast< wxFont * >(argp1);
14437 {
14438 PyThreadState* __tstate = wxPyBeginAllowThreads();
14439 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14444 return resultobj;
14445fail:
14446 return NULL;
d55e5bfc
RD
14447}
14448
14449
1bd55598
RD
14450SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14451 PyObject *resultobj = 0;
14452 wxFont *arg1 = (wxFont *) 0 ;
14453 bool result;
14454 void *argp1 = 0 ;
14455 int res1 = 0 ;
14456 PyObject *swig_obj[1] ;
14457
14458 if (!args) SWIG_fail;
14459 swig_obj[0] = args;
14460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14461 if (!SWIG_IsOK(res1)) {
14462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14463 }
14464 arg1 = reinterpret_cast< wxFont * >(argp1);
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 {
14472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14473 }
14474 return resultobj;
14475fail:
14476 return NULL;
d55e5bfc
RD
14477}
14478
14479
1bd55598
RD
14480SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14481 PyObject *resultobj = 0;
14482 wxFont *arg1 = (wxFont *) 0 ;
14483 wxString result;
14484 void *argp1 = 0 ;
14485 int res1 = 0 ;
14486 PyObject *swig_obj[1] ;
14487
14488 if (!args) SWIG_fail;
14489 swig_obj[0] = args;
14490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14491 if (!SWIG_IsOK(res1)) {
14492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14493 }
14494 arg1 = reinterpret_cast< wxFont * >(argp1);
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 {
14502#if wxUSE_UNICODE
14503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14504#else
14505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14506#endif
14507 }
14508 return resultobj;
14509fail:
14510 return NULL;
d55e5bfc
RD
14511}
14512
14513
1bd55598
RD
14514SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14515 PyObject *resultobj = 0;
14516 wxFont *arg1 = (wxFont *) 0 ;
14517 wxString result;
14518 void *argp1 = 0 ;
14519 int res1 = 0 ;
14520 PyObject *swig_obj[1] ;
14521
14522 if (!args) SWIG_fail;
14523 swig_obj[0] = args;
14524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14525 if (!SWIG_IsOK(res1)) {
14526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14527 }
14528 arg1 = reinterpret_cast< wxFont * >(argp1);
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536#if wxUSE_UNICODE
14537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14538#else
14539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14540#endif
14541 }
14542 return resultobj;
14543fail:
14544 return NULL;
14545}
14546
14547
14548SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj = 0;
14550 wxFont *arg1 = (wxFont *) 0 ;
14551 int arg2 ;
14552 void *argp1 = 0 ;
14553 int res1 = 0 ;
14554 int val2 ;
14555 int ecode2 = 0 ;
14556 PyObject * obj0 = 0 ;
14557 PyObject * obj1 = 0 ;
14558 char * kwnames[] = {
14559 (char *) "self",(char *) "pointSize", NULL
14560 };
14561
14562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14564 if (!SWIG_IsOK(res1)) {
14565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14566 }
14567 arg1 = reinterpret_cast< wxFont * >(argp1);
14568 ecode2 = SWIG_AsVal_int(obj1, &val2);
14569 if (!SWIG_IsOK(ecode2)) {
14570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14571 }
14572 arg2 = static_cast< int >(val2);
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 (arg1)->SetPointSize(arg2);
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 resultobj = SWIG_Py_Void();
14580 return resultobj;
14581fail:
14582 return NULL;
14583}
14584
14585
14586SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj = 0;
14588 wxFont *arg1 = (wxFont *) 0 ;
14589 wxSize *arg2 = 0 ;
14590 void *argp1 = 0 ;
14591 int res1 = 0 ;
14592 wxSize temp2 ;
14593 PyObject * obj0 = 0 ;
14594 PyObject * obj1 = 0 ;
14595 char * kwnames[] = {
14596 (char *) "self",(char *) "pixelSize", NULL
14597 };
14598
14599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14601 if (!SWIG_IsOK(res1)) {
14602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14603 }
14604 arg1 = reinterpret_cast< wxFont * >(argp1);
14605 {
14606 arg2 = &temp2;
14607 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14608 }
14609 {
14610 PyThreadState* __tstate = wxPyBeginAllowThreads();
14611 (arg1)->SetPixelSize((wxSize const &)*arg2);
14612 wxPyEndAllowThreads(__tstate);
14613 if (PyErr_Occurred()) SWIG_fail;
14614 }
14615 resultobj = SWIG_Py_Void();
14616 return resultobj;
14617fail:
14618 return NULL;
14619}
14620
14621
14622SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14623 PyObject *resultobj = 0;
14624 wxFont *arg1 = (wxFont *) 0 ;
14625 int arg2 ;
14626 void *argp1 = 0 ;
14627 int res1 = 0 ;
14628 int val2 ;
14629 int ecode2 = 0 ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj1 = 0 ;
14632 char * kwnames[] = {
14633 (char *) "self",(char *) "family", NULL
14634 };
14635
14636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14638 if (!SWIG_IsOK(res1)) {
14639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14640 }
14641 arg1 = reinterpret_cast< wxFont * >(argp1);
14642 ecode2 = SWIG_AsVal_int(obj1, &val2);
14643 if (!SWIG_IsOK(ecode2)) {
14644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14645 }
14646 arg2 = static_cast< int >(val2);
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 (arg1)->SetFamily(arg2);
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 resultobj = SWIG_Py_Void();
14654 return resultobj;
14655fail:
14656 return NULL;
14657}
14658
14659
14660SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14661 PyObject *resultobj = 0;
14662 wxFont *arg1 = (wxFont *) 0 ;
14663 int arg2 ;
14664 void *argp1 = 0 ;
14665 int res1 = 0 ;
14666 int val2 ;
14667 int ecode2 = 0 ;
14668 PyObject * obj0 = 0 ;
14669 PyObject * obj1 = 0 ;
14670 char * kwnames[] = {
14671 (char *) "self",(char *) "style", NULL
14672 };
14673
14674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14676 if (!SWIG_IsOK(res1)) {
14677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14678 }
14679 arg1 = reinterpret_cast< wxFont * >(argp1);
14680 ecode2 = SWIG_AsVal_int(obj1, &val2);
14681 if (!SWIG_IsOK(ecode2)) {
14682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14683 }
14684 arg2 = static_cast< int >(val2);
14685 {
14686 PyThreadState* __tstate = wxPyBeginAllowThreads();
14687 (arg1)->SetStyle(arg2);
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_Py_Void();
14692 return resultobj;
14693fail:
14694 return NULL;
14695}
14696
14697
14698SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj = 0;
14700 wxFont *arg1 = (wxFont *) 0 ;
14701 int arg2 ;
14702 void *argp1 = 0 ;
14703 int res1 = 0 ;
14704 int val2 ;
14705 int ecode2 = 0 ;
14706 PyObject * obj0 = 0 ;
14707 PyObject * obj1 = 0 ;
14708 char * kwnames[] = {
14709 (char *) "self",(char *) "weight", NULL
14710 };
14711
14712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14714 if (!SWIG_IsOK(res1)) {
14715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14716 }
14717 arg1 = reinterpret_cast< wxFont * >(argp1);
14718 ecode2 = SWIG_AsVal_int(obj1, &val2);
14719 if (!SWIG_IsOK(ecode2)) {
14720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14721 }
14722 arg2 = static_cast< int >(val2);
14723 {
14724 PyThreadState* __tstate = wxPyBeginAllowThreads();
14725 (arg1)->SetWeight(arg2);
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 resultobj = SWIG_Py_Void();
14730 return resultobj;
14731fail:
14732 return NULL;
14733}
14734
14735
14736SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14737 PyObject *resultobj = 0;
14738 wxFont *arg1 = (wxFont *) 0 ;
14739 wxString *arg2 = 0 ;
704eda0c 14740 bool result;
1bd55598
RD
14741 void *argp1 = 0 ;
14742 int res1 = 0 ;
14743 bool temp2 = false ;
14744 PyObject * obj0 = 0 ;
14745 PyObject * obj1 = 0 ;
14746 char * kwnames[] = {
14747 (char *) "self",(char *) "faceName", NULL
14748 };
14749
14750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14752 if (!SWIG_IsOK(res1)) {
14753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14754 }
14755 arg1 = reinterpret_cast< wxFont * >(argp1);
14756 {
14757 arg2 = wxString_in_helper(obj1);
14758 if (arg2 == NULL) SWIG_fail;
14759 temp2 = true;
14760 }
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14763 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
704eda0c
RD
14767 {
14768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14769 }
1bd55598
RD
14770 {
14771 if (temp2)
14772 delete arg2;
14773 }
14774 return resultobj;
14775fail:
14776 {
14777 if (temp2)
14778 delete arg2;
14779 }
14780 return NULL;
14781}
14782
14783
14784SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14785 PyObject *resultobj = 0;
14786 wxFont *arg1 = (wxFont *) 0 ;
14787 bool arg2 ;
14788 void *argp1 = 0 ;
14789 int res1 = 0 ;
14790 bool val2 ;
14791 int ecode2 = 0 ;
14792 PyObject * obj0 = 0 ;
14793 PyObject * obj1 = 0 ;
14794 char * kwnames[] = {
14795 (char *) "self",(char *) "underlined", NULL
14796 };
14797
14798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14800 if (!SWIG_IsOK(res1)) {
14801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14802 }
14803 arg1 = reinterpret_cast< wxFont * >(argp1);
14804 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14805 if (!SWIG_IsOK(ecode2)) {
14806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14807 }
14808 arg2 = static_cast< bool >(val2);
14809 {
14810 PyThreadState* __tstate = wxPyBeginAllowThreads();
14811 (arg1)->SetUnderlined(arg2);
14812 wxPyEndAllowThreads(__tstate);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 }
14815 resultobj = SWIG_Py_Void();
14816 return resultobj;
14817fail:
14818 return NULL;
14819}
14820
14821
14822SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14823 PyObject *resultobj = 0;
14824 wxFont *arg1 = (wxFont *) 0 ;
14825 wxFontEncoding arg2 ;
14826 void *argp1 = 0 ;
14827 int res1 = 0 ;
14828 int val2 ;
14829 int ecode2 = 0 ;
14830 PyObject * obj0 = 0 ;
14831 PyObject * obj1 = 0 ;
14832 char * kwnames[] = {
14833 (char *) "self",(char *) "encoding", NULL
14834 };
14835
14836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14838 if (!SWIG_IsOK(res1)) {
14839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14840 }
14841 arg1 = reinterpret_cast< wxFont * >(argp1);
14842 ecode2 = SWIG_AsVal_int(obj1, &val2);
14843 if (!SWIG_IsOK(ecode2)) {
14844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14845 }
14846 arg2 = static_cast< wxFontEncoding >(val2);
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 (arg1)->SetEncoding(arg2);
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 resultobj = SWIG_Py_Void();
14854 return resultobj;
14855fail:
14856 return NULL;
14857}
14858
14859
14860SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14861 PyObject *resultobj = 0;
14862 wxFont *arg1 = (wxFont *) 0 ;
14863 wxNativeFontInfo *arg2 = 0 ;
14864 void *argp1 = 0 ;
14865 int res1 = 0 ;
14866 void *argp2 = 0 ;
14867 int res2 = 0 ;
14868 PyObject * obj0 = 0 ;
14869 PyObject * obj1 = 0 ;
14870 char * kwnames[] = {
14871 (char *) "self",(char *) "info", NULL
14872 };
14873
14874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14876 if (!SWIG_IsOK(res1)) {
14877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14878 }
14879 arg1 = reinterpret_cast< wxFont * >(argp1);
14880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14881 if (!SWIG_IsOK(res2)) {
14882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14883 }
14884 if (!argp2) {
14885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14886 }
14887 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 resultobj = SWIG_Py_Void();
14895 return resultobj;
14896fail:
14897 return NULL;
14898}
14899
14900
14901SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14902 PyObject *resultobj = 0;
14903 wxFont *arg1 = (wxFont *) 0 ;
14904 wxString *arg2 = 0 ;
704eda0c 14905 bool result;
1bd55598
RD
14906 void *argp1 = 0 ;
14907 int res1 = 0 ;
14908 bool temp2 = false ;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911 char * kwnames[] = {
14912 (char *) "self",(char *) "info", NULL
14913 };
14914
14915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14917 if (!SWIG_IsOK(res1)) {
14918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14919 }
14920 arg1 = reinterpret_cast< wxFont * >(argp1);
14921 {
14922 arg2 = wxString_in_helper(obj1);
14923 if (arg2 == NULL) SWIG_fail;
14924 temp2 = true;
14925 }
14926 {
14927 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14928 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
14929 wxPyEndAllowThreads(__tstate);
14930 if (PyErr_Occurred()) SWIG_fail;
14931 }
704eda0c
RD
14932 {
14933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14934 }
1bd55598
RD
14935 {
14936 if (temp2)
14937 delete arg2;
14938 }
14939 return resultobj;
14940fail:
14941 {
14942 if (temp2)
14943 delete arg2;
14944 }
14945 return NULL;
d55e5bfc
RD
14946}
14947
14948
1bd55598
RD
14949SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj = 0;
14951 wxFont *arg1 = (wxFont *) 0 ;
14952 wxString *arg2 = 0 ;
704eda0c 14953 bool result;
1bd55598
RD
14954 void *argp1 = 0 ;
14955 int res1 = 0 ;
14956 bool temp2 = false ;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 char * kwnames[] = {
14960 (char *) "self",(char *) "info", NULL
14961 };
14962
14963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14965 if (!SWIG_IsOK(res1)) {
14966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14967 }
14968 arg1 = reinterpret_cast< wxFont * >(argp1);
14969 {
14970 arg2 = wxString_in_helper(obj1);
14971 if (arg2 == NULL) SWIG_fail;
14972 temp2 = true;
14973 }
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14976 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
704eda0c
RD
14980 {
14981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14982 }
1bd55598
RD
14983 {
14984 if (temp2)
14985 delete arg2;
14986 }
14987 return resultobj;
14988fail:
14989 {
14990 if (temp2)
14991 delete arg2;
14992 }
14993 return NULL;
d55e5bfc
RD
14994}
14995
14996
1bd55598
RD
14997SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14998 PyObject *resultobj = 0;
14999 wxFont *arg1 = (wxFont *) 0 ;
15000 wxString result;
15001 void *argp1 = 0 ;
15002 int res1 = 0 ;
15003 PyObject *swig_obj[1] ;
15004
15005 if (!args) SWIG_fail;
15006 swig_obj[0] = args;
15007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15010 }
15011 arg1 = reinterpret_cast< wxFont * >(argp1);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = ((wxFont const *)arg1)->GetFamilyString();
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 {
15019#if wxUSE_UNICODE
15020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15021#else
15022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15023#endif
15024 }
15025 return resultobj;
15026fail:
15027 return NULL;
d55e5bfc
RD
15028}
15029
15030
1bd55598
RD
15031SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 wxString result;
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 PyObject *swig_obj[1] ;
15038
15039 if (!args) SWIG_fail;
15040 swig_obj[0] = args;
15041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15042 if (!SWIG_IsOK(res1)) {
15043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15044 }
15045 arg1 = reinterpret_cast< wxFont * >(argp1);
15046 {
15047 PyThreadState* __tstate = wxPyBeginAllowThreads();
15048 result = ((wxFont const *)arg1)->GetStyleString();
15049 wxPyEndAllowThreads(__tstate);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 {
15053#if wxUSE_UNICODE
15054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15055#else
15056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15057#endif
15058 }
15059 return resultobj;
15060fail:
15061 return NULL;
d55e5bfc
RD
15062}
15063
15064
1bd55598
RD
15065SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15066 PyObject *resultobj = 0;
15067 wxFont *arg1 = (wxFont *) 0 ;
15068 wxString result;
15069 void *argp1 = 0 ;
15070 int res1 = 0 ;
15071 PyObject *swig_obj[1] ;
15072
15073 if (!args) SWIG_fail;
15074 swig_obj[0] = args;
15075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15076 if (!SWIG_IsOK(res1)) {
15077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15078 }
15079 arg1 = reinterpret_cast< wxFont * >(argp1);
15080 {
15081 PyThreadState* __tstate = wxPyBeginAllowThreads();
15082 result = ((wxFont const *)arg1)->GetWeightString();
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 {
15087#if wxUSE_UNICODE
15088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15089#else
15090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15091#endif
15092 }
15093 return resultobj;
15094fail:
15095 return NULL;
15096}
15097
15098
15099SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj = 0;
15101 wxFont *arg1 = (wxFont *) 0 ;
15102 bool arg2 = (bool) true ;
15103 void *argp1 = 0 ;
15104 int res1 = 0 ;
15105 bool val2 ;
15106 int ecode2 = 0 ;
15107 PyObject * obj0 = 0 ;
15108 PyObject * obj1 = 0 ;
15109 char * kwnames[] = {
15110 (char *) "self",(char *) "no", NULL
15111 };
15112
15113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15115 if (!SWIG_IsOK(res1)) {
15116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15117 }
15118 arg1 = reinterpret_cast< wxFont * >(argp1);
15119 if (obj1) {
15120 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15121 if (!SWIG_IsOK(ecode2)) {
15122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15123 }
15124 arg2 = static_cast< bool >(val2);
15125 }
15126 {
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 (arg1)->SetNoAntiAliasing(arg2);
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_Py_Void();
15133 return resultobj;
15134fail:
15135 return NULL;
d55e5bfc
RD
15136}
15137
15138
1bd55598
RD
15139SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15140 PyObject *resultobj = 0;
15141 wxFont *arg1 = (wxFont *) 0 ;
15142 bool result;
15143 void *argp1 = 0 ;
15144 int res1 = 0 ;
15145 PyObject *swig_obj[1] ;
15146
15147 if (!args) SWIG_fail;
15148 swig_obj[0] = args;
15149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15152 }
15153 arg1 = reinterpret_cast< wxFont * >(argp1);
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 {
15161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15162 }
15163 return resultobj;
15164fail:
15165 return NULL;
d55e5bfc
RD
15166}
15167
15168
1bd55598
RD
15169SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15170 PyObject *resultobj = 0;
15171 wxFontEncoding result;
15172
15173 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15174 {
15175 if (!wxPyCheckForApp()) SWIG_fail;
15176 PyThreadState* __tstate = wxPyBeginAllowThreads();
15177 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15178 wxPyEndAllowThreads(__tstate);
15179 if (PyErr_Occurred()) SWIG_fail;
15180 }
15181 resultobj = SWIG_From_int(static_cast< int >(result));
15182 return resultobj;
15183fail:
15184 return NULL;
d55e5bfc
RD
15185}
15186
15187
1bd55598
RD
15188SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15189 PyObject *resultobj = 0;
15190 wxFontEncoding arg1 ;
15191 int val1 ;
15192 int ecode1 = 0 ;
15193 PyObject * obj0 = 0 ;
15194 char * kwnames[] = {
15195 (char *) "encoding", NULL
15196 };
15197
15198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15199 ecode1 = SWIG_AsVal_int(obj0, &val1);
15200 if (!SWIG_IsOK(ecode1)) {
15201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15202 }
15203 arg1 = static_cast< wxFontEncoding >(val1);
15204 {
15205 if (!wxPyCheckForApp()) SWIG_fail;
15206 PyThreadState* __tstate = wxPyBeginAllowThreads();
15207 wxFont::SetDefaultEncoding(arg1);
15208 wxPyEndAllowThreads(__tstate);
15209 if (PyErr_Occurred()) SWIG_fail;
15210 }
15211 resultobj = SWIG_Py_Void();
15212 return resultobj;
15213fail:
15214 return NULL;
d55e5bfc
RD
15215}
15216
15217
1bd55598
RD
15218SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15219 PyObject *obj;
15220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15221 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15222 return SWIG_Py_Void();
d55e5bfc 15223}
d55e5bfc 15224
1bd55598
RD
15225SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15226 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15227}
15228
1bd55598
RD
15229SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15230 PyObject *resultobj = 0;
15231 wxPyFontEnumerator *result = 0 ;
15232
15233 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15234 {
15235 if (!wxPyCheckForApp()) SWIG_fail;
15236 PyThreadState* __tstate = wxPyBeginAllowThreads();
15237 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15238 wxPyEndAllowThreads(__tstate);
15239 if (PyErr_Occurred()) SWIG_fail;
15240 }
15241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15242 return resultobj;
15243fail:
15244 return NULL;
d55e5bfc
RD
15245}
15246
15247
1bd55598
RD
15248SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15249 PyObject *resultobj = 0;
15250 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15251 void *argp1 = 0 ;
15252 int res1 = 0 ;
15253 PyObject *swig_obj[1] ;
15254
15255 if (!args) SWIG_fail;
15256 swig_obj[0] = args;
15257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15258 if (!SWIG_IsOK(res1)) {
15259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15260 }
15261 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 delete arg1;
d55e5bfc 15265
1bd55598
RD
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 resultobj = SWIG_Py_Void();
15270 return resultobj;
15271fail:
15272 return NULL;
15273}
15274
15275
15276SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj = 0;
15278 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15279 PyObject *arg2 = (PyObject *) 0 ;
15280 PyObject *arg3 = (PyObject *) 0 ;
15281 bool arg4 ;
15282 void *argp1 = 0 ;
15283 int res1 = 0 ;
15284 bool val4 ;
15285 int ecode4 = 0 ;
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 PyObject * obj2 = 0 ;
15289 PyObject * obj3 = 0 ;
15290 char * kwnames[] = {
15291 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15292 };
15293
15294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15296 if (!SWIG_IsOK(res1)) {
15297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15298 }
15299 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15300 arg2 = obj1;
15301 arg3 = obj2;
15302 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15303 if (!SWIG_IsOK(ecode4)) {
15304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15305 }
15306 arg4 = static_cast< bool >(val4);
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_Py_Void();
15314 return resultobj;
15315fail:
15316 return NULL;
15317}
15318
15319
15320SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj = 0;
15322 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15323 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15324 bool arg3 = (bool) false ;
15325 bool result;
15326 void *argp1 = 0 ;
15327 int res1 = 0 ;
15328 int val2 ;
15329 int ecode2 = 0 ;
15330 bool val3 ;
15331 int ecode3 = 0 ;
15332 PyObject * obj0 = 0 ;
15333 PyObject * obj1 = 0 ;
15334 PyObject * obj2 = 0 ;
15335 char * kwnames[] = {
15336 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15337 };
15338
15339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15341 if (!SWIG_IsOK(res1)) {
15342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15343 }
15344 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15345 if (obj1) {
15346 ecode2 = SWIG_AsVal_int(obj1, &val2);
15347 if (!SWIG_IsOK(ecode2)) {
15348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15349 }
15350 arg2 = static_cast< wxFontEncoding >(val2);
15351 }
15352 if (obj2) {
15353 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15354 if (!SWIG_IsOK(ecode3)) {
15355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15356 }
15357 arg3 = static_cast< bool >(val3);
15358 }
15359 {
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 {
15366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15367 }
15368 return resultobj;
15369fail:
15370 return NULL;
15371}
15372
15373
15374SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj = 0;
15376 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15377 wxString const &arg2_defvalue = wxPyEmptyString ;
15378 wxString *arg2 = (wxString *) &arg2_defvalue ;
15379 bool result;
15380 void *argp1 = 0 ;
15381 int res1 = 0 ;
15382 bool temp2 = false ;
15383 PyObject * obj0 = 0 ;
15384 PyObject * obj1 = 0 ;
15385 char * kwnames[] = {
15386 (char *) "self",(char *) "facename", NULL
15387 };
15388
15389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15391 if (!SWIG_IsOK(res1)) {
15392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15393 }
15394 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15395 if (obj1) {
36ed4f51 15396 {
1bd55598
RD
15397 arg2 = wxString_in_helper(obj1);
15398 if (arg2 == NULL) SWIG_fail;
15399 temp2 = true;
36ed4f51 15400 }
1bd55598
RD
15401 }
15402 {
15403 PyThreadState* __tstate = wxPyBeginAllowThreads();
15404 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 {
15409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15410 }
15411 {
15412 if (temp2)
15413 delete arg2;
15414 }
15415 return resultobj;
15416fail:
15417 {
15418 if (temp2)
15419 delete arg2;
15420 }
15421 return NULL;
d55e5bfc
RD
15422}
15423
15424
1bd55598
RD
15425SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15426 PyObject *resultobj = 0;
1bd55598 15427 PyObject *result = 0 ;
1bd55598 15428
704eda0c 15429 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15430 {
15431 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15432 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 resultobj = result;
15437 return resultobj;
15438fail:
15439 return NULL;
d55e5bfc
RD
15440}
15441
15442
1bd55598
RD
15443SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15444 PyObject *resultobj = 0;
1bd55598 15445 PyObject *result = 0 ;
1bd55598 15446
704eda0c 15447 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15450 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15451 wxPyEndAllowThreads(__tstate);
15452 if (PyErr_Occurred()) SWIG_fail;
15453 }
15454 resultobj = result;
15455 return resultobj;
15456fail:
15457 return NULL;
d55e5bfc
RD
15458}
15459
15460
704eda0c
RD
15461SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15462 PyObject *resultobj = 0;
15463 wxString *arg1 = 0 ;
15464 bool result;
15465 bool temp1 = false ;
15466 PyObject * obj0 = 0 ;
15467 char * kwnames[] = {
15468 (char *) "str", NULL
15469 };
15470
15471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15472 {
15473 arg1 = wxString_in_helper(obj0);
15474 if (arg1 == NULL) SWIG_fail;
15475 temp1 = true;
15476 }
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15480 wxPyEndAllowThreads(__tstate);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 }
15483 {
15484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15485 }
15486 {
15487 if (temp1)
15488 delete arg1;
15489 }
15490 return resultobj;
15491fail:
15492 {
15493 if (temp1)
15494 delete arg1;
15495 }
15496 return NULL;
15497}
15498
15499
1bd55598
RD
15500SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15501 PyObject *obj;
15502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15503 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15504 return SWIG_Py_Void();
d55e5bfc
RD
15505}
15506
1bd55598
RD
15507SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15508 return SWIG_Python_InitShadowInstance(args);
15509}
d55e5bfc 15510
1bd55598
RD
15511SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15512 PyObject *resultobj = 0;
15513 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15514 int arg2 ;
15515 void *argp1 = 0 ;
15516 int res1 = 0 ;
15517 int val2 ;
15518 int ecode2 = 0 ;
15519 PyObject *swig_obj[2] ;
15520
15521 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15525 }
15526 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15527 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15528 if (!SWIG_IsOK(ecode2)) {
15529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15530 }
15531 arg2 = static_cast< int >(val2);
15532 if (arg1) (arg1)->Language = arg2;
15533
15534 resultobj = SWIG_Py_Void();
15535 return resultobj;
15536fail:
15537 return NULL;
d55e5bfc
RD
15538}
15539
15540
1bd55598
RD
15541SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15542 PyObject *resultobj = 0;
15543 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15544 int result;
15545 void *argp1 = 0 ;
15546 int res1 = 0 ;
15547 PyObject *swig_obj[1] ;
15548
15549 if (!args) SWIG_fail;
15550 swig_obj[0] = args;
15551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15552 if (!SWIG_IsOK(res1)) {
15553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15554 }
15555 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15556 result = (int) ((arg1)->Language);
15557 resultobj = SWIG_From_int(static_cast< int >(result));
15558 return resultobj;
15559fail:
15560 return NULL;
15561}
15562
15563
15564SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15565 PyObject *resultobj = 0;
15566 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15567 wxString *arg2 = (wxString *) 0 ;
15568 void *argp1 = 0 ;
15569 int res1 = 0 ;
15570 bool temp2 = false ;
15571 PyObject *swig_obj[2] ;
15572
15573 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15575 if (!SWIG_IsOK(res1)) {
15576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15577 }
15578 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15579 {
15580 arg2 = wxString_in_helper(swig_obj[1]);
15581 if (arg2 == NULL) SWIG_fail;
15582 temp2 = true;
15583 }
15584 if (arg1) (arg1)->CanonicalName = *arg2;
15585
15586 resultobj = SWIG_Py_Void();
15587 {
15588 if (temp2)
15589 delete arg2;
15590 }
15591 return resultobj;
15592fail:
15593 {
15594 if (temp2)
15595 delete arg2;
15596 }
15597 return NULL;
d55e5bfc
RD
15598}
15599
15600
1bd55598
RD
15601SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15602 PyObject *resultobj = 0;
15603 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15604 wxString *result = 0 ;
15605 void *argp1 = 0 ;
15606 int res1 = 0 ;
15607 PyObject *swig_obj[1] ;
15608
15609 if (!args) SWIG_fail;
15610 swig_obj[0] = args;
15611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15612 if (!SWIG_IsOK(res1)) {
15613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15614 }
15615 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15616 result = (wxString *)& ((arg1)->CanonicalName);
15617 {
15618#if wxUSE_UNICODE
15619 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15620#else
15621 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15622#endif
15623 }
15624 return resultobj;
15625fail:
15626 return NULL;
d55e5bfc
RD
15627}
15628
15629
1bd55598
RD
15630SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15631 PyObject *resultobj = 0;
15632 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15633 wxString *arg2 = (wxString *) 0 ;
15634 void *argp1 = 0 ;
15635 int res1 = 0 ;
15636 bool temp2 = false ;
15637 PyObject *swig_obj[2] ;
15638
15639 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15641 if (!SWIG_IsOK(res1)) {
15642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15643 }
15644 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15645 {
15646 arg2 = wxString_in_helper(swig_obj[1]);
15647 if (arg2 == NULL) SWIG_fail;
15648 temp2 = true;
15649 }
15650 if (arg1) (arg1)->Description = *arg2;
15651
15652 resultobj = SWIG_Py_Void();
15653 {
15654 if (temp2)
15655 delete arg2;
15656 }
15657 return resultobj;
15658fail:
15659 {
15660 if (temp2)
15661 delete arg2;
15662 }
15663 return NULL;
d55e5bfc
RD
15664}
15665
15666
1bd55598
RD
15667SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15668 PyObject *resultobj = 0;
15669 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15670 wxString *result = 0 ;
15671 void *argp1 = 0 ;
15672 int res1 = 0 ;
15673 PyObject *swig_obj[1] ;
15674
15675 if (!args) SWIG_fail;
15676 swig_obj[0] = args;
15677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15678 if (!SWIG_IsOK(res1)) {
15679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15680 }
15681 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15682 result = (wxString *)& ((arg1)->Description);
15683 {
15684#if wxUSE_UNICODE
15685 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15686#else
15687 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15688#endif
15689 }
15690 return resultobj;
15691fail:
15692 return NULL;
15693}
15694
15695
15696SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15697 PyObject *obj;
15698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15699 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15700 return SWIG_Py_Void();
15701}
15702
15703SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 int arg1 = (int) -1 ;
15706 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15707 wxLocale *result = 0 ;
15708 int val1 ;
15709 int ecode1 = 0 ;
15710 int val2 ;
15711 int ecode2 = 0 ;
15712 PyObject * obj0 = 0 ;
15713 PyObject * obj1 = 0 ;
15714 char * kwnames[] = {
15715 (char *) "language",(char *) "flags", NULL
15716 };
15717
15718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15719 if (obj0) {
15720 ecode1 = SWIG_AsVal_int(obj0, &val1);
15721 if (!SWIG_IsOK(ecode1)) {
15722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15723 }
15724 arg1 = static_cast< int >(val1);
15725 }
15726 if (obj1) {
15727 ecode2 = SWIG_AsVal_int(obj1, &val2);
15728 if (!SWIG_IsOK(ecode2)) {
15729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15730 }
15731 arg2 = static_cast< int >(val2);
15732 }
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 result = (wxLocale *)new_wxLocale(arg1,arg2);
15736 wxPyEndAllowThreads(__tstate);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15740 return resultobj;
15741fail:
15742 return NULL;
d55e5bfc
RD
15743}
15744
15745
1bd55598
RD
15746SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15747 PyObject *resultobj = 0;
15748 wxLocale *arg1 = (wxLocale *) 0 ;
15749 void *argp1 = 0 ;
15750 int res1 = 0 ;
15751 PyObject *swig_obj[1] ;
15752
15753 if (!args) SWIG_fail;
15754 swig_obj[0] = args;
15755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15756 if (!SWIG_IsOK(res1)) {
15757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15758 }
15759 arg1 = reinterpret_cast< wxLocale * >(argp1);
15760 {
15761 PyThreadState* __tstate = wxPyBeginAllowThreads();
15762 delete arg1;
d55e5bfc 15763
1bd55598
RD
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 resultobj = SWIG_Py_Void();
15768 return resultobj;
15769fail:
15770 return NULL;
15771}
15772
15773
15774SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj = 0;
15776 wxLocale *arg1 = (wxLocale *) 0 ;
15777 wxString *arg2 = 0 ;
15778 wxString const &arg3_defvalue = wxPyEmptyString ;
15779 wxString *arg3 = (wxString *) &arg3_defvalue ;
15780 wxString const &arg4_defvalue = wxPyEmptyString ;
15781 wxString *arg4 = (wxString *) &arg4_defvalue ;
15782 bool arg5 = (bool) true ;
15783 bool arg6 = (bool) false ;
15784 bool result;
15785 void *argp1 = 0 ;
15786 int res1 = 0 ;
15787 bool temp2 = false ;
15788 bool temp3 = false ;
15789 bool temp4 = false ;
15790 bool val5 ;
15791 int ecode5 = 0 ;
15792 bool val6 ;
15793 int ecode6 = 0 ;
15794 PyObject * obj0 = 0 ;
15795 PyObject * obj1 = 0 ;
15796 PyObject * obj2 = 0 ;
15797 PyObject * obj3 = 0 ;
15798 PyObject * obj4 = 0 ;
15799 PyObject * obj5 = 0 ;
15800 char * kwnames[] = {
15801 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15802 };
15803
15804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15806 if (!SWIG_IsOK(res1)) {
15807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15808 }
15809 arg1 = reinterpret_cast< wxLocale * >(argp1);
15810 {
15811 arg2 = wxString_in_helper(obj1);
15812 if (arg2 == NULL) SWIG_fail;
15813 temp2 = true;
15814 }
15815 if (obj2) {
d55e5bfc 15816 {
1bd55598
RD
15817 arg3 = wxString_in_helper(obj2);
15818 if (arg3 == NULL) SWIG_fail;
15819 temp3 = true;
d55e5bfc 15820 }
1bd55598
RD
15821 }
15822 if (obj3) {
36ed4f51 15823 {
1bd55598
RD
15824 arg4 = wxString_in_helper(obj3);
15825 if (arg4 == NULL) SWIG_fail;
15826 temp4 = true;
36ed4f51 15827 }
1bd55598
RD
15828 }
15829 if (obj4) {
15830 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15831 if (!SWIG_IsOK(ecode5)) {
15832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15833 }
15834 arg5 = static_cast< bool >(val5);
15835 }
15836 if (obj5) {
15837 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15838 if (!SWIG_IsOK(ecode6)) {
15839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15840 }
15841 arg6 = static_cast< bool >(val6);
15842 }
15843 {
15844 PyThreadState* __tstate = wxPyBeginAllowThreads();
15845 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15846 wxPyEndAllowThreads(__tstate);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 {
15850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15851 }
15852 {
15853 if (temp2)
15854 delete arg2;
15855 }
15856 {
15857 if (temp3)
15858 delete arg3;
15859 }
15860 {
15861 if (temp4)
15862 delete arg4;
15863 }
15864 return resultobj;
15865fail:
15866 {
15867 if (temp2)
15868 delete arg2;
15869 }
15870 {
15871 if (temp3)
15872 delete arg3;
15873 }
15874 {
15875 if (temp4)
15876 delete arg4;
15877 }
15878 return NULL;
15879}
15880
15881
15882SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15883 PyObject *resultobj = 0;
15884 wxLocale *arg1 = (wxLocale *) 0 ;
15885 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15886 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15887 bool result;
15888 void *argp1 = 0 ;
15889 int res1 = 0 ;
15890 int val2 ;
15891 int ecode2 = 0 ;
15892 int val3 ;
15893 int ecode3 = 0 ;
15894 PyObject * obj0 = 0 ;
15895 PyObject * obj1 = 0 ;
15896 PyObject * obj2 = 0 ;
15897 char * kwnames[] = {
15898 (char *) "self",(char *) "language",(char *) "flags", NULL
15899 };
15900
15901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15903 if (!SWIG_IsOK(res1)) {
15904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15905 }
15906 arg1 = reinterpret_cast< wxLocale * >(argp1);
15907 if (obj1) {
15908 ecode2 = SWIG_AsVal_int(obj1, &val2);
15909 if (!SWIG_IsOK(ecode2)) {
15910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15911 }
15912 arg2 = static_cast< int >(val2);
15913 }
15914 if (obj2) {
15915 ecode3 = SWIG_AsVal_int(obj2, &val3);
15916 if (!SWIG_IsOK(ecode3)) {
15917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15918 }
15919 arg3 = static_cast< int >(val3);
15920 }
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15924 wxPyEndAllowThreads(__tstate);
15925 if (PyErr_Occurred()) SWIG_fail;
15926 }
15927 {
15928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15929 }
15930 return resultobj;
15931fail:
15932 return NULL;
d55e5bfc
RD
15933}
15934
15935
1bd55598
RD
15936SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15937 PyObject *resultobj = 0;
15938 int result;
15939
15940 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 result = (int)wxLocale::GetSystemLanguage();
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 resultobj = SWIG_From_int(static_cast< int >(result));
15948 return resultobj;
15949fail:
15950 return NULL;
d55e5bfc
RD
15951}
15952
15953
1bd55598
RD
15954SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15955 PyObject *resultobj = 0;
15956 wxFontEncoding result;
15957
15958 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15959 {
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15962 wxPyEndAllowThreads(__tstate);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 }
15965 resultobj = SWIG_From_int(static_cast< int >(result));
15966 return resultobj;
15967fail:
15968 return NULL;
d55e5bfc
RD
15969}
15970
15971
1bd55598
RD
15972SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15973 PyObject *resultobj = 0;
15974 wxString result;
15975
15976 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15977 {
15978 PyThreadState* __tstate = wxPyBeginAllowThreads();
15979 result = wxLocale::GetSystemEncodingName();
15980 wxPyEndAllowThreads(__tstate);
15981 if (PyErr_Occurred()) SWIG_fail;
15982 }
15983 {
15984#if wxUSE_UNICODE
15985 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15986#else
15987 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15988#endif
15989 }
15990 return resultobj;
15991fail:
15992 return NULL;
d55e5bfc
RD
15993}
15994
15995
1bd55598
RD
15996SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15997 PyObject *resultobj = 0;
15998 wxLocale *arg1 = (wxLocale *) 0 ;
15999 bool result;
16000 void *argp1 = 0 ;
16001 int res1 = 0 ;
16002 PyObject *swig_obj[1] ;
16003
16004 if (!args) SWIG_fail;
16005 swig_obj[0] = args;
16006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16007 if (!SWIG_IsOK(res1)) {
16008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16009 }
16010 arg1 = reinterpret_cast< wxLocale * >(argp1);
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 result = (bool)((wxLocale const *)arg1)->IsOk();
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 {
16018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16019 }
16020 return resultobj;
16021fail:
16022 return NULL;
d55e5bfc
RD
16023}
16024
16025
1bd55598
RD
16026SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16027 PyObject *resultobj = 0;
16028 wxLocale *arg1 = (wxLocale *) 0 ;
16029 wxString result;
16030 void *argp1 = 0 ;
16031 int res1 = 0 ;
16032 PyObject *swig_obj[1] ;
16033
16034 if (!args) SWIG_fail;
16035 swig_obj[0] = args;
16036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16037 if (!SWIG_IsOK(res1)) {
16038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16039 }
16040 arg1 = reinterpret_cast< wxLocale * >(argp1);
16041 {
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 result = ((wxLocale const *)arg1)->GetLocale();
16044 wxPyEndAllowThreads(__tstate);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 {
16048#if wxUSE_UNICODE
16049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16050#else
16051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16052#endif
16053 }
16054 return resultobj;
16055fail:
16056 return NULL;
d55e5bfc
RD
16057}
16058
16059
1bd55598
RD
16060SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16061 PyObject *resultobj = 0;
16062 wxLocale *arg1 = (wxLocale *) 0 ;
16063 int result;
16064 void *argp1 = 0 ;
16065 int res1 = 0 ;
16066 PyObject *swig_obj[1] ;
16067
16068 if (!args) SWIG_fail;
16069 swig_obj[0] = args;
16070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16071 if (!SWIG_IsOK(res1)) {
16072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16073 }
16074 arg1 = reinterpret_cast< wxLocale * >(argp1);
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (int)((wxLocale const *)arg1)->GetLanguage();
16078 wxPyEndAllowThreads(__tstate);
16079 if (PyErr_Occurred()) SWIG_fail;
16080 }
16081 resultobj = SWIG_From_int(static_cast< int >(result));
16082 return resultobj;
16083fail:
16084 return NULL;
d55e5bfc
RD
16085}
16086
16087
1bd55598
RD
16088SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16089 PyObject *resultobj = 0;
16090 wxLocale *arg1 = (wxLocale *) 0 ;
16091 wxString result;
16092 void *argp1 = 0 ;
16093 int res1 = 0 ;
16094 PyObject *swig_obj[1] ;
16095
16096 if (!args) SWIG_fail;
16097 swig_obj[0] = args;
16098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16099 if (!SWIG_IsOK(res1)) {
16100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16101 }
16102 arg1 = reinterpret_cast< wxLocale * >(argp1);
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = ((wxLocale const *)arg1)->GetSysName();
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 {
36ed4f51 16110#if wxUSE_UNICODE
1bd55598 16111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16112#else
1bd55598 16113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16114#endif
1bd55598
RD
16115 }
16116 return resultobj;
16117fail:
16118 return NULL;
d55e5bfc
RD
16119}
16120
16121
1bd55598
RD
16122SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16123 PyObject *resultobj = 0;
16124 wxLocale *arg1 = (wxLocale *) 0 ;
16125 wxString result;
16126 void *argp1 = 0 ;
16127 int res1 = 0 ;
16128 PyObject *swig_obj[1] ;
16129
16130 if (!args) SWIG_fail;
16131 swig_obj[0] = args;
16132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16133 if (!SWIG_IsOK(res1)) {
16134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16135 }
16136 arg1 = reinterpret_cast< wxLocale * >(argp1);
16137 {
16138 PyThreadState* __tstate = wxPyBeginAllowThreads();
16139 result = ((wxLocale const *)arg1)->GetCanonicalName();
16140 wxPyEndAllowThreads(__tstate);
16141 if (PyErr_Occurred()) SWIG_fail;
16142 }
16143 {
16144#if wxUSE_UNICODE
16145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16146#else
16147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16148#endif
16149 }
16150 return resultobj;
16151fail:
16152 return NULL;
d55e5bfc
RD
16153}
16154
16155
1bd55598
RD
16156SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16157 PyObject *resultobj = 0;
16158 wxString *arg1 = 0 ;
16159 bool temp1 = false ;
16160 PyObject * obj0 = 0 ;
16161 char * kwnames[] = {
16162 (char *) "prefix", NULL
16163 };
16164
16165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16166 {
16167 arg1 = wxString_in_helper(obj0);
16168 if (arg1 == NULL) SWIG_fail;
16169 temp1 = true;
16170 }
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 resultobj = SWIG_Py_Void();
16178 {
16179 if (temp1)
16180 delete arg1;
16181 }
16182 return resultobj;
16183fail:
16184 {
16185 if (temp1)
16186 delete arg1;
16187 }
16188 return NULL;
16189}
16190
16191
16192SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16193 PyObject *resultobj = 0;
16194 wxLocale *arg1 = (wxLocale *) 0 ;
16195 wxString *arg2 = 0 ;
16196 bool result;
16197 void *argp1 = 0 ;
16198 int res1 = 0 ;
16199 bool temp2 = false ;
16200 PyObject * obj0 = 0 ;
16201 PyObject * obj1 = 0 ;
16202 char * kwnames[] = {
16203 (char *) "self",(char *) "szDomain", NULL
16204 };
16205
16206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16208 if (!SWIG_IsOK(res1)) {
16209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16210 }
16211 arg1 = reinterpret_cast< wxLocale * >(argp1);
16212 {
16213 arg2 = wxString_in_helper(obj1);
16214 if (arg2 == NULL) SWIG_fail;
16215 temp2 = true;
16216 }
16217 {
16218 PyThreadState* __tstate = wxPyBeginAllowThreads();
16219 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 {
16224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16225 }
16226 {
16227 if (temp2)
16228 delete arg2;
16229 }
16230 return resultobj;
16231fail:
16232 {
16233 if (temp2)
16234 delete arg2;
16235 }
16236 return NULL;
16237}
16238
16239
33d6fd3b
RD
16240SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj = 0;
16242 int arg1 ;
16243 bool result;
16244 int val1 ;
16245 int ecode1 = 0 ;
16246 PyObject * obj0 = 0 ;
16247 char * kwnames[] = {
16248 (char *) "lang", NULL
16249 };
16250
16251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16252 ecode1 = SWIG_AsVal_int(obj0, &val1);
16253 if (!SWIG_IsOK(ecode1)) {
16254 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16255 }
16256 arg1 = static_cast< int >(val1);
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 result = (bool)wxLocale::IsAvailable(arg1);
16260 wxPyEndAllowThreads(__tstate);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 {
16264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16265 }
16266 return resultobj;
16267fail:
16268 return NULL;
16269}
16270
16271
1bd55598
RD
16272SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16273 PyObject *resultobj = 0;
16274 wxLocale *arg1 = (wxLocale *) 0 ;
16275 wxString *arg2 = 0 ;
16276 bool result;
16277 void *argp1 = 0 ;
16278 int res1 = 0 ;
16279 bool temp2 = false ;
16280 PyObject * obj0 = 0 ;
16281 PyObject * obj1 = 0 ;
16282 char * kwnames[] = {
16283 (char *) "self",(char *) "szDomain", NULL
16284 };
16285
16286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16288 if (!SWIG_IsOK(res1)) {
16289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16290 }
16291 arg1 = reinterpret_cast< wxLocale * >(argp1);
16292 {
16293 arg2 = wxString_in_helper(obj1);
16294 if (arg2 == NULL) SWIG_fail;
16295 temp2 = true;
16296 }
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16300 wxPyEndAllowThreads(__tstate);
16301 if (PyErr_Occurred()) SWIG_fail;
16302 }
16303 {
16304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16305 }
16306 {
16307 if (temp2)
16308 delete arg2;
16309 }
16310 return resultobj;
16311fail:
16312 {
16313 if (temp2)
16314 delete arg2;
16315 }
16316 return NULL;
d55e5bfc
RD
16317}
16318
16319
1bd55598
RD
16320SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj = 0;
16322 int arg1 ;
16323 wxLanguageInfo *result = 0 ;
16324 int val1 ;
16325 int ecode1 = 0 ;
16326 PyObject * obj0 = 0 ;
16327 char * kwnames[] = {
16328 (char *) "lang", NULL
16329 };
16330
16331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16332 ecode1 = SWIG_AsVal_int(obj0, &val1);
16333 if (!SWIG_IsOK(ecode1)) {
16334 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16335 }
16336 arg1 = static_cast< int >(val1);
16337 {
16338 PyThreadState* __tstate = wxPyBeginAllowThreads();
16339 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
16343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16344 return resultobj;
16345fail:
16346 return NULL;
16347}
16348
16349
16350SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16351 PyObject *resultobj = 0;
16352 int arg1 ;
16353 wxString result;
16354 int val1 ;
16355 int ecode1 = 0 ;
16356 PyObject * obj0 = 0 ;
16357 char * kwnames[] = {
16358 (char *) "lang", NULL
16359 };
16360
16361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16362 ecode1 = SWIG_AsVal_int(obj0, &val1);
16363 if (!SWIG_IsOK(ecode1)) {
16364 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16365 }
16366 arg1 = static_cast< int >(val1);
16367 {
16368 PyThreadState* __tstate = wxPyBeginAllowThreads();
16369 result = wxLocale::GetLanguageName(arg1);
16370 wxPyEndAllowThreads(__tstate);
16371 if (PyErr_Occurred()) SWIG_fail;
16372 }
16373 {
16374#if wxUSE_UNICODE
16375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16376#else
16377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16378#endif
16379 }
16380 return resultobj;
16381fail:
16382 return NULL;
d55e5bfc
RD
16383}
16384
16385
1bd55598
RD
16386SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 wxString *arg1 = 0 ;
16389 wxLanguageInfo *result = 0 ;
16390 bool temp1 = false ;
16391 PyObject * obj0 = 0 ;
16392 char * kwnames[] = {
16393 (char *) "locale", NULL
16394 };
16395
16396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16397 {
16398 arg1 = wxString_in_helper(obj0);
16399 if (arg1 == NULL) SWIG_fail;
16400 temp1 = true;
16401 }
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16404 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16409 {
16410 if (temp1)
16411 delete arg1;
16412 }
16413 return resultobj;
16414fail:
16415 {
16416 if (temp1)
16417 delete arg1;
16418 }
16419 return NULL;
16420}
16421
16422
16423SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj = 0;
16425 wxLanguageInfo *arg1 = 0 ;
16426 void *argp1 = 0 ;
16427 int res1 = 0 ;
16428 PyObject * obj0 = 0 ;
16429 char * kwnames[] = {
16430 (char *) "info", NULL
16431 };
16432
16433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16434 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16435 if (!SWIG_IsOK(res1)) {
16436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16437 }
16438 if (!argp1) {
16439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16440 }
16441 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = SWIG_Py_Void();
16449 return resultobj;
16450fail:
16451 return NULL;
16452}
16453
16454
16455SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj = 0;
16457 wxLocale *arg1 = (wxLocale *) 0 ;
16458 wxString *arg2 = 0 ;
16459 wxString const &arg3_defvalue = wxPyEmptyString ;
16460 wxString *arg3 = (wxString *) &arg3_defvalue ;
16461 wxString result;
16462 void *argp1 = 0 ;
16463 int res1 = 0 ;
16464 bool temp2 = false ;
16465 bool temp3 = false ;
16466 PyObject * obj0 = 0 ;
16467 PyObject * obj1 = 0 ;
16468 PyObject * obj2 = 0 ;
16469 char * kwnames[] = {
16470 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16471 };
16472
16473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16475 if (!SWIG_IsOK(res1)) {
16476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16477 }
16478 arg1 = reinterpret_cast< wxLocale * >(argp1);
16479 {
16480 arg2 = wxString_in_helper(obj1);
16481 if (arg2 == NULL) SWIG_fail;
16482 temp2 = true;
16483 }
16484 if (obj2) {
16485 {
16486 arg3 = wxString_in_helper(obj2);
16487 if (arg3 == NULL) SWIG_fail;
16488 temp3 = true;
16489 }
16490 }
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 {
16498#if wxUSE_UNICODE
16499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16500#else
16501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16502#endif
16503 }
16504 {
16505 if (temp2)
16506 delete arg2;
16507 }
16508 {
16509 if (temp3)
16510 delete arg3;
16511 }
16512 return resultobj;
16513fail:
16514 {
16515 if (temp2)
16516 delete arg2;
16517 }
16518 {
16519 if (temp3)
16520 delete arg3;
16521 }
16522 return NULL;
16523}
16524
16525
16526SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16527 PyObject *resultobj = 0;
16528 wxLocale *arg1 = (wxLocale *) 0 ;
16529 wxString *result = 0 ;
16530 void *argp1 = 0 ;
16531 int res1 = 0 ;
16532 PyObject *swig_obj[1] ;
16533
16534 if (!args) SWIG_fail;
16535 swig_obj[0] = args;
16536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16537 if (!SWIG_IsOK(res1)) {
16538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16539 }
16540 arg1 = reinterpret_cast< wxLocale * >(argp1);
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 {
16544 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16545 result = (wxString *) &_result_ref;
16546 }
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 {
16551#if wxUSE_UNICODE
16552 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16553#else
16554 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16555#endif
16556 }
16557 return resultobj;
16558fail:
16559 return NULL;
16560}
16561
16562
16563SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16564 PyObject *obj;
16565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16566 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16567 return SWIG_Py_Void();
16568}
16569
16570SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16571 return SWIG_Python_InitShadowInstance(args);
16572}
16573
16574SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16575 PyObject *resultobj = 0;
16576 int arg1 = (int) -1 ;
16577 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16578 wxPyLocale *result = 0 ;
16579 int val1 ;
16580 int ecode1 = 0 ;
16581 int val2 ;
16582 int ecode2 = 0 ;
16583 PyObject * obj0 = 0 ;
16584 PyObject * obj1 = 0 ;
16585 char * kwnames[] = {
16586 (char *) "language",(char *) "flags", NULL
16587 };
16588
16589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16590 if (obj0) {
16591 ecode1 = SWIG_AsVal_int(obj0, &val1);
16592 if (!SWIG_IsOK(ecode1)) {
16593 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16594 }
16595 arg1 = static_cast< int >(val1);
16596 }
16597 if (obj1) {
16598 ecode2 = SWIG_AsVal_int(obj1, &val2);
16599 if (!SWIG_IsOK(ecode2)) {
16600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16601 }
16602 arg2 = static_cast< int >(val2);
16603 }
16604 {
16605 PyThreadState* __tstate = wxPyBeginAllowThreads();
16606 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16607 wxPyEndAllowThreads(__tstate);
16608 if (PyErr_Occurred()) SWIG_fail;
16609 }
16610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16611 return resultobj;
16612fail:
16613 return NULL;
16614}
16615
16616
16617SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16618 PyObject *resultobj = 0;
16619 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16620 void *argp1 = 0 ;
16621 int res1 = 0 ;
16622 PyObject *swig_obj[1] ;
16623
16624 if (!args) SWIG_fail;
16625 swig_obj[0] = args;
16626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16627 if (!SWIG_IsOK(res1)) {
16628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16629 }
16630 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16631 {
16632 PyThreadState* __tstate = wxPyBeginAllowThreads();
16633 delete arg1;
16634
1bd55598
RD
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
fc46b7f3 16638 resultobj = SWIG_Py_Void();
1bd55598
RD
16639 return resultobj;
16640fail:
1bd55598 16641 return NULL;
d55e5bfc
RD
16642}
16643
16644
fc46b7f3 16645SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16646 PyObject *resultobj = 0;
fc46b7f3
RD
16647 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16648 PyObject *arg2 = (PyObject *) 0 ;
16649 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 PyObject * obj0 = 0 ;
fc46b7f3
RD
16653 PyObject * obj1 = 0 ;
16654 PyObject * obj2 = 0 ;
1bd55598 16655 char * kwnames[] = {
fc46b7f3 16656 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16657 };
16658
fc46b7f3
RD
16659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16661 if (!SWIG_IsOK(res1)) {
fc46b7f3 16662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16663 }
fc46b7f3
RD
16664 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16665 arg2 = obj1;
16666 arg3 = obj2;
1bd55598
RD
16667 {
16668 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16669 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16670 wxPyEndAllowThreads(__tstate);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 resultobj = SWIG_Py_Void();
16674 return resultobj;
16675fail:
16676 return NULL;
16677}
16678
16679
fc46b7f3 16680SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16681 PyObject *resultobj = 0;
fc46b7f3
RD
16682 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16683 wxChar *arg2 = (wxChar *) 0 ;
16684 wxChar *arg3 = (wxChar *) NULL ;
16685 wxChar *result = 0 ;
1bd55598
RD
16686 void *argp1 = 0 ;
16687 int res1 = 0 ;
fc46b7f3
RD
16688 void *argp2 = 0 ;
16689 int res2 = 0 ;
16690 void *argp3 = 0 ;
16691 int res3 = 0 ;
1bd55598
RD
16692 PyObject * obj0 = 0 ;
16693 PyObject * obj1 = 0 ;
16694 PyObject * obj2 = 0 ;
16695 char * kwnames[] = {
16696 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16697 };
16698
fc46b7f3
RD
16699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16701 if (!SWIG_IsOK(res1)) {
fc46b7f3 16702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16703 }
fc46b7f3
RD
16704 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16706 if (!SWIG_IsOK(res2)) {
16707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16708 }
fc46b7f3 16709 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16710 if (obj2) {
fc46b7f3
RD
16711 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16712 if (!SWIG_IsOK(res3)) {
16713 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16714 }
fc46b7f3 16715 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16716 }
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16719 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
fc46b7f3 16723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16724 return resultobj;
16725fail:
1bd55598 16726 return NULL;
d55e5bfc
RD
16727}
16728
16729
fc46b7f3 16730SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16731 PyObject *resultobj = 0;
fc46b7f3
RD
16732 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16733 wxChar *arg2 = (wxChar *) 0 ;
16734 wxChar *arg3 = (wxChar *) 0 ;
16735 size_t arg4 ;
16736 wxChar *arg5 = (wxChar *) NULL ;
16737 wxChar *result = 0 ;
1bd55598
RD
16738 void *argp1 = 0 ;
16739 int res1 = 0 ;
fc46b7f3
RD
16740 void *argp2 = 0 ;
16741 int res2 = 0 ;
16742 void *argp3 = 0 ;
16743 int res3 = 0 ;
16744 size_t val4 ;
16745 int ecode4 = 0 ;
16746 void *argp5 = 0 ;
16747 int res5 = 0 ;
16748 PyObject * obj0 = 0 ;
16749 PyObject * obj1 = 0 ;
16750 PyObject * obj2 = 0 ;
16751 PyObject * obj3 = 0 ;
16752 PyObject * obj4 = 0 ;
16753 char * kwnames[] = {
16754 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16755 };
1bd55598 16756
fc46b7f3
RD
16757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16759 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16761 }
16762 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16764 if (!SWIG_IsOK(res2)) {
16765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16766 }
16767 arg2 = reinterpret_cast< wxChar * >(argp2);
16768 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16769 if (!SWIG_IsOK(res3)) {
16770 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16771 }
16772 arg3 = reinterpret_cast< wxChar * >(argp3);
16773 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16774 if (!SWIG_IsOK(ecode4)) {
16775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16776 }
16777 arg4 = static_cast< size_t >(val4);
16778 if (obj4) {
16779 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16780 if (!SWIG_IsOK(res5)) {
16781 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16782 }
16783 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16784 }
1bd55598
RD
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16787 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16788 wxPyEndAllowThreads(__tstate);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
fc46b7f3 16791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16792 return resultobj;
16793fail:
16794 return NULL;
d55e5bfc
RD
16795}
16796
16797
fc46b7f3 16798SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16799 PyObject *obj;
16800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16801 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16802 return SWIG_Py_Void();
d55e5bfc
RD
16803}
16804
fc46b7f3 16805SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16806 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16807}
16808
1bd55598
RD
16809SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16810 PyObject *resultobj = 0;
16811 wxLocale *result = 0 ;
16812
16813 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16814 {
16815 PyThreadState* __tstate = wxPyBeginAllowThreads();
16816 result = (wxLocale *)wxGetLocale();
16817 wxPyEndAllowThreads(__tstate);
16818 if (PyErr_Occurred()) SWIG_fail;
16819 }
16820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16821 return resultobj;
16822fail:
16823 return NULL;
d55e5bfc
RD
16824}
16825
16826
1bd55598
RD
16827SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16828 PyObject *resultobj = 0;
16829 wxString *arg1 = 0 ;
16830 wxString result;
16831 bool temp1 = false ;
16832
16833 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16834 {
16835 arg1 = wxString_in_helper(swig_obj[0]);
16836 if (arg1 == NULL) SWIG_fail;
16837 temp1 = true;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = wxGetTranslation((wxString const &)*arg1);
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 {
36ed4f51 16846#if wxUSE_UNICODE
1bd55598 16847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16848#else
1bd55598 16849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16850#endif
1bd55598
RD
16851 }
16852 {
16853 if (temp1)
16854 delete arg1;
16855 }
16856 return resultobj;
16857fail:
16858 {
16859 if (temp1)
16860 delete arg1;
16861 }
16862 return NULL;
5e483524
RD
16863}
16864
16865
1bd55598 16866SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16867 PyObject *resultobj = 0;
16868 wxString *arg1 = 0 ;
16869 wxString *arg2 = 0 ;
16870 wxString result;
16871 bool temp1 = false ;
16872 bool temp2 = false ;
16873
16874 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16875 {
16876 arg1 = wxString_in_helper(swig_obj[0]);
16877 if (arg1 == NULL) SWIG_fail;
16878 temp1 = true;
16879 }
16880 {
16881 arg2 = wxString_in_helper(swig_obj[1]);
16882 if (arg2 == NULL) SWIG_fail;
16883 temp2 = true;
16884 }
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 {
16892#if wxUSE_UNICODE
16893 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16894#else
16895 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16896#endif
16897 }
16898 {
16899 if (temp1)
16900 delete arg1;
16901 }
16902 {
16903 if (temp2)
16904 delete arg2;
16905 }
16906 return resultobj;
16907fail:
16908 {
16909 if (temp1)
16910 delete arg1;
16911 }
16912 {
16913 if (temp2)
16914 delete arg2;
16915 }
16916 return NULL;
16917}
16918
16919
16920SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
16921 PyObject *resultobj = 0;
16922 wxString *arg1 = 0 ;
16923 wxString *arg2 = 0 ;
16924 size_t arg3 ;
16925 wxString result;
16926 bool temp1 = false ;
16927 bool temp2 = false ;
16928 size_t val3 ;
16929 int ecode3 = 0 ;
16930
16931 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16932 {
16933 arg1 = wxString_in_helper(swig_obj[0]);
16934 if (arg1 == NULL) SWIG_fail;
16935 temp1 = true;
16936 }
16937 {
16938 arg2 = wxString_in_helper(swig_obj[1]);
16939 if (arg2 == NULL) SWIG_fail;
16940 temp2 = true;
16941 }
16942 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16943 if (!SWIG_IsOK(ecode3)) {
16944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16945 }
16946 arg3 = static_cast< size_t >(val3);
16947 {
16948 PyThreadState* __tstate = wxPyBeginAllowThreads();
16949 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16950 wxPyEndAllowThreads(__tstate);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
16953 {
36ed4f51 16954#if wxUSE_UNICODE
1bd55598 16955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16956#else
1bd55598 16957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16958#endif
1bd55598
RD
16959 }
16960 {
16961 if (temp1)
16962 delete arg1;
16963 }
16964 {
16965 if (temp2)
16966 delete arg2;
16967 }
16968 return resultobj;
16969fail:
16970 {
16971 if (temp1)
16972 delete arg1;
16973 }
16974 {
16975 if (temp2)
16976 delete arg2;
16977 }
16978 return NULL;
d55e5bfc
RD
16979}
16980
16981
fc46b7f3
RD
16982SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16983 PyObject *resultobj = 0;
16984 wxString *arg1 = 0 ;
16985 wxString *arg2 = 0 ;
16986 size_t arg3 ;
16987 wxString *arg4 = 0 ;
16988 wxString result;
16989 bool temp1 = false ;
16990 bool temp2 = false ;
16991 size_t val3 ;
16992 int ecode3 = 0 ;
16993 bool temp4 = false ;
16994
16995 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16996 {
16997 arg1 = wxString_in_helper(swig_obj[0]);
16998 if (arg1 == NULL) SWIG_fail;
16999 temp1 = true;
17000 }
17001 {
17002 arg2 = wxString_in_helper(swig_obj[1]);
17003 if (arg2 == NULL) SWIG_fail;
17004 temp2 = true;
17005 }
17006 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17007 if (!SWIG_IsOK(ecode3)) {
17008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17009 }
17010 arg3 = static_cast< size_t >(val3);
17011 {
17012 arg4 = wxString_in_helper(swig_obj[3]);
17013 if (arg4 == NULL) SWIG_fail;
17014 temp4 = true;
17015 }
17016 {
17017 PyThreadState* __tstate = wxPyBeginAllowThreads();
17018 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 {
17023#if wxUSE_UNICODE
17024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17025#else
17026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17027#endif
17028 }
17029 {
17030 if (temp1)
17031 delete arg1;
17032 }
17033 {
17034 if (temp2)
17035 delete arg2;
17036 }
17037 {
17038 if (temp4)
17039 delete arg4;
17040 }
17041 return resultobj;
17042fail:
17043 {
17044 if (temp1)
17045 delete arg1;
17046 }
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 {
17052 if (temp4)
17053 delete arg4;
17054 }
17055 return NULL;
17056}
17057
17058
1bd55598
RD
17059SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17060 int argc;
fc46b7f3 17061 PyObject *argv[5];
1bd55598 17062
fc46b7f3 17063 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17064 --argc;
17065 if (argc == 1) {
17066 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17067 }
fc46b7f3 17068 if (argc == 2) {
1bd55598
RD
17069 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17070 }
fc46b7f3
RD
17071 if (argc == 3) {
17072 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17073 }
17074 if (argc == 4) {
17075 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17076 }
1bd55598
RD
17077
17078fail:
17079 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17080 return NULL;
d55e5bfc
RD
17081}
17082
17083
1bd55598
RD
17084SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17085 PyObject *resultobj = 0;
17086 wxEncodingConverter *result = 0 ;
17087
17088 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = (wxEncodingConverter *)new wxEncodingConverter();
17092 wxPyEndAllowThreads(__tstate);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 }
17095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17096 return resultobj;
17097fail:
17098 return NULL;
d55e5bfc
RD
17099}
17100
17101
1bd55598
RD
17102SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17103 PyObject *resultobj = 0;
17104 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17105 void *argp1 = 0 ;
17106 int res1 = 0 ;
17107 PyObject *swig_obj[1] ;
17108
17109 if (!args) SWIG_fail;
17110 swig_obj[0] = args;
17111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17112 if (!SWIG_IsOK(res1)) {
17113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17114 }
17115 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 delete arg1;
d55e5bfc 17119
1bd55598
RD
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 resultobj = SWIG_Py_Void();
17124 return resultobj;
17125fail:
17126 return NULL;
17127}
17128
17129
17130SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj = 0;
17132 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17133 wxFontEncoding arg2 ;
17134 wxFontEncoding arg3 ;
17135 int arg4 = (int) wxCONVERT_STRICT ;
17136 bool result;
17137 void *argp1 = 0 ;
17138 int res1 = 0 ;
17139 int val2 ;
17140 int ecode2 = 0 ;
17141 int val3 ;
17142 int ecode3 = 0 ;
17143 int val4 ;
17144 int ecode4 = 0 ;
17145 PyObject * obj0 = 0 ;
17146 PyObject * obj1 = 0 ;
17147 PyObject * obj2 = 0 ;
17148 PyObject * obj3 = 0 ;
17149 char * kwnames[] = {
17150 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17151 };
17152
17153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17155 if (!SWIG_IsOK(res1)) {
17156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17157 }
17158 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17159 ecode2 = SWIG_AsVal_int(obj1, &val2);
17160 if (!SWIG_IsOK(ecode2)) {
17161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17162 }
17163 arg2 = static_cast< wxFontEncoding >(val2);
17164 ecode3 = SWIG_AsVal_int(obj2, &val3);
17165 if (!SWIG_IsOK(ecode3)) {
17166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17167 }
17168 arg3 = static_cast< wxFontEncoding >(val3);
17169 if (obj3) {
17170 ecode4 = SWIG_AsVal_int(obj3, &val4);
17171 if (!SWIG_IsOK(ecode4)) {
17172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17173 }
17174 arg4 = static_cast< int >(val4);
17175 }
17176 {
17177 PyThreadState* __tstate = wxPyBeginAllowThreads();
17178 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17179 wxPyEndAllowThreads(__tstate);
17180 if (PyErr_Occurred()) SWIG_fail;
17181 }
17182 {
17183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17184 }
17185 return resultobj;
17186fail:
17187 return NULL;
17188}
17189
17190
17191SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17192 PyObject *resultobj = 0;
17193 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17194 wxString *arg2 = 0 ;
17195 wxString result;
17196 void *argp1 = 0 ;
17197 int res1 = 0 ;
17198 bool temp2 = false ;
17199 PyObject * obj0 = 0 ;
17200 PyObject * obj1 = 0 ;
17201 char * kwnames[] = {
17202 (char *) "self",(char *) "input", NULL
17203 };
17204
17205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17207 if (!SWIG_IsOK(res1)) {
17208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17209 }
17210 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17211 {
17212 arg2 = wxString_in_helper(obj1);
17213 if (arg2 == NULL) SWIG_fail;
17214 temp2 = true;
17215 }
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = (arg1)->Convert((wxString const &)*arg2);
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 {
d55e5bfc 17223#if wxUSE_UNICODE
1bd55598 17224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17225#else
1bd55598 17226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17227#endif
1bd55598
RD
17228 }
17229 {
17230 if (temp2)
17231 delete arg2;
17232 }
17233 return resultobj;
17234fail:
17235 {
17236 if (temp2)
17237 delete arg2;
17238 }
17239 return NULL;
17240}
17241
17242
17243SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17244 PyObject *resultobj = 0;
17245 wxFontEncoding arg1 ;
17246 int arg2 = (int) wxPLATFORM_CURRENT ;
17247 wxFontEncodingArray result;
17248 int val1 ;
17249 int ecode1 = 0 ;
17250 int val2 ;
17251 int ecode2 = 0 ;
17252 PyObject * obj0 = 0 ;
17253 PyObject * obj1 = 0 ;
17254 char * kwnames[] = {
17255 (char *) "enc",(char *) "platform", NULL
17256 };
17257
17258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17259 ecode1 = SWIG_AsVal_int(obj0, &val1);
17260 if (!SWIG_IsOK(ecode1)) {
17261 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17262 }
17263 arg1 = static_cast< wxFontEncoding >(val1);
17264 if (obj1) {
17265 ecode2 = SWIG_AsVal_int(obj1, &val2);
17266 if (!SWIG_IsOK(ecode2)) {
17267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17268 }
17269 arg2 = static_cast< int >(val2);
17270 }
17271 {
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
17273 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 {
17278 resultobj = PyList_New(0);
17279 for (size_t i=0; i < (&result)->GetCount(); i++) {
17280 PyObject* number = PyInt_FromLong((&result)->Item(i));
17281 PyList_Append(resultobj, number);
17282 Py_DECREF(number);
d55e5bfc 17283 }
1bd55598
RD
17284 }
17285 return resultobj;
17286fail:
17287 return NULL;
d55e5bfc
RD
17288}
17289
17290
1bd55598
RD
17291SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17292 PyObject *resultobj = 0;
17293 wxFontEncoding arg1 ;
17294 wxFontEncodingArray result;
17295 int val1 ;
17296 int ecode1 = 0 ;
17297 PyObject * obj0 = 0 ;
17298 char * kwnames[] = {
17299 (char *) "enc", NULL
17300 };
17301
17302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17303 ecode1 = SWIG_AsVal_int(obj0, &val1);
17304 if (!SWIG_IsOK(ecode1)) {
17305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17306 }
17307 arg1 = static_cast< wxFontEncoding >(val1);
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
17310 result = wxEncodingConverter::GetAllEquivalents(arg1);
17311 wxPyEndAllowThreads(__tstate);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 }
17314 {
17315 resultobj = PyList_New(0);
17316 for (size_t i=0; i < (&result)->GetCount(); i++) {
17317 PyObject* number = PyInt_FromLong((&result)->Item(i));
17318 PyList_Append(resultobj, number);
17319 Py_DECREF(number);
d55e5bfc 17320 }
1bd55598
RD
17321 }
17322 return resultobj;
17323fail:
17324 return NULL;
17325}
17326
17327
17328SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17329 PyObject *resultobj = 0;
17330 wxFontEncoding arg1 ;
17331 wxFontEncoding arg2 ;
17332 bool result;
17333 int val1 ;
17334 int ecode1 = 0 ;
17335 int val2 ;
17336 int ecode2 = 0 ;
17337 PyObject * obj0 = 0 ;
17338 PyObject * obj1 = 0 ;
17339 char * kwnames[] = {
17340 (char *) "encIn",(char *) "encOut", NULL
17341 };
17342
17343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17344 ecode1 = SWIG_AsVal_int(obj0, &val1);
17345 if (!SWIG_IsOK(ecode1)) {
17346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17347 }
17348 arg1 = static_cast< wxFontEncoding >(val1);
17349 ecode2 = SWIG_AsVal_int(obj1, &val2);
17350 if (!SWIG_IsOK(ecode2)) {
17351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17352 }
17353 arg2 = static_cast< wxFontEncoding >(val2);
17354 {
17355 PyThreadState* __tstate = wxPyBeginAllowThreads();
17356 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 {
17361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17362 }
17363 return resultobj;
17364fail:
17365 return NULL;
d55e5bfc
RD
17366}
17367
17368
1bd55598
RD
17369SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17370 PyObject *obj;
17371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17372 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17373 return SWIG_Py_Void();
d55e5bfc
RD
17374}
17375
1bd55598
RD
17376SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17377 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17378}
17379
1bd55598
RD
17380SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17381 PyObject *resultobj = 0;
17382 wxDC *arg1 = (wxDC *) 0 ;
17383 void *argp1 = 0 ;
17384 int res1 = 0 ;
17385 PyObject *swig_obj[1] ;
17386
17387 if (!args) SWIG_fail;
17388 swig_obj[0] = args;
17389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17390 if (!SWIG_IsOK(res1)) {
17391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17392 }
17393 arg1 = reinterpret_cast< wxDC * >(argp1);
17394 {
17395 PyThreadState* __tstate = wxPyBeginAllowThreads();
17396 delete arg1;
d55e5bfc 17397
1bd55598
RD
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 resultobj = SWIG_Py_Void();
17402 return resultobj;
17403fail:
17404 return NULL;
17405}
17406
17407
17408SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17409 PyObject *resultobj = 0;
17410 wxDC *arg1 = (wxDC *) 0 ;
17411 int arg2 ;
17412 int arg3 ;
17413 wxColour *arg4 = 0 ;
17414 int arg5 = (int) wxFLOOD_SURFACE ;
17415 bool result;
17416 void *argp1 = 0 ;
17417 int res1 = 0 ;
17418 int val2 ;
17419 int ecode2 = 0 ;
17420 int val3 ;
17421 int ecode3 = 0 ;
17422 wxColour temp4 ;
17423 int val5 ;
17424 int ecode5 = 0 ;
17425 PyObject * obj0 = 0 ;
17426 PyObject * obj1 = 0 ;
17427 PyObject * obj2 = 0 ;
17428 PyObject * obj3 = 0 ;
17429 PyObject * obj4 = 0 ;
17430 char * kwnames[] = {
17431 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17432 };
17433
17434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17436 if (!SWIG_IsOK(res1)) {
17437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17438 }
17439 arg1 = reinterpret_cast< wxDC * >(argp1);
17440 ecode2 = SWIG_AsVal_int(obj1, &val2);
17441 if (!SWIG_IsOK(ecode2)) {
17442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17443 }
17444 arg2 = static_cast< int >(val2);
17445 ecode3 = SWIG_AsVal_int(obj2, &val3);
17446 if (!SWIG_IsOK(ecode3)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17448 }
17449 arg3 = static_cast< int >(val3);
17450 {
17451 arg4 = &temp4;
17452 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17453 }
17454 if (obj4) {
17455 ecode5 = SWIG_AsVal_int(obj4, &val5);
17456 if (!SWIG_IsOK(ecode5)) {
17457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17458 }
17459 arg5 = static_cast< int >(val5);
17460 }
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 {
17468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17469 }
17470 return resultobj;
17471fail:
17472 return NULL;
17473}
17474
17475
17476SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj = 0;
17478 wxDC *arg1 = (wxDC *) 0 ;
17479 wxPoint *arg2 = 0 ;
17480 wxColour *arg3 = 0 ;
17481 int arg4 = (int) wxFLOOD_SURFACE ;
17482 bool result;
17483 void *argp1 = 0 ;
17484 int res1 = 0 ;
17485 wxPoint temp2 ;
17486 wxColour temp3 ;
17487 int val4 ;
17488 int ecode4 = 0 ;
17489 PyObject * obj0 = 0 ;
17490 PyObject * obj1 = 0 ;
17491 PyObject * obj2 = 0 ;
17492 PyObject * obj3 = 0 ;
17493 char * kwnames[] = {
17494 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17495 };
17496
17497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17499 if (!SWIG_IsOK(res1)) {
17500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17501 }
17502 arg1 = reinterpret_cast< wxDC * >(argp1);
17503 {
17504 arg2 = &temp2;
17505 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17506 }
17507 {
17508 arg3 = &temp3;
17509 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17510 }
17511 if (obj3) {
17512 ecode4 = SWIG_AsVal_int(obj3, &val4);
17513 if (!SWIG_IsOK(ecode4)) {
17514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17515 }
17516 arg4 = static_cast< int >(val4);
17517 }
17518 {
17519 PyThreadState* __tstate = wxPyBeginAllowThreads();
17520 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17521 wxPyEndAllowThreads(__tstate);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 }
17524 {
17525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17526 }
17527 return resultobj;
17528fail:
17529 return NULL;
17530}
17531
17532
17533SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17534 PyObject *resultobj = 0;
17535 wxDC *arg1 = (wxDC *) 0 ;
17536 wxRect *arg2 = 0 ;
17537 wxColour *arg3 = 0 ;
17538 wxColour *arg4 = 0 ;
17539 wxPoint *arg5 = 0 ;
17540 void *argp1 = 0 ;
17541 int res1 = 0 ;
17542 wxRect temp2 ;
17543 wxColour temp3 ;
17544 wxColour temp4 ;
17545 wxPoint temp5 ;
17546 PyObject * obj0 = 0 ;
17547 PyObject * obj1 = 0 ;
17548 PyObject * obj2 = 0 ;
17549 PyObject * obj3 = 0 ;
17550 PyObject * obj4 = 0 ;
17551 char * kwnames[] = {
17552 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17553 };
17554
17555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17557 if (!SWIG_IsOK(res1)) {
17558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17559 }
17560 arg1 = reinterpret_cast< wxDC * >(argp1);
17561 {
17562 arg2 = &temp2;
17563 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17564 }
17565 {
17566 arg3 = &temp3;
17567 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17568 }
17569 {
17570 arg4 = &temp4;
17571 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17572 }
17573 {
17574 arg5 = &temp5;
17575 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17576 }
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_Py_Void();
17584 return resultobj;
17585fail:
17586 return NULL;
17587}
17588
17589
17590SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17591 PyObject *resultobj = 0;
17592 wxDC *arg1 = (wxDC *) 0 ;
17593 wxRect *arg2 = 0 ;
17594 wxColour *arg3 = 0 ;
17595 wxColour *arg4 = 0 ;
17596 wxDirection arg5 = (wxDirection) wxEAST ;
17597 void *argp1 = 0 ;
17598 int res1 = 0 ;
17599 wxRect temp2 ;
17600 wxColour temp3 ;
17601 wxColour temp4 ;
17602 int val5 ;
17603 int ecode5 = 0 ;
17604 PyObject * obj0 = 0 ;
17605 PyObject * obj1 = 0 ;
17606 PyObject * obj2 = 0 ;
17607 PyObject * obj3 = 0 ;
17608 PyObject * obj4 = 0 ;
17609 char * kwnames[] = {
17610 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17611 };
17612
17613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17615 if (!SWIG_IsOK(res1)) {
17616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17617 }
17618 arg1 = reinterpret_cast< wxDC * >(argp1);
17619 {
17620 arg2 = &temp2;
17621 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17622 }
17623 {
17624 arg3 = &temp3;
17625 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17626 }
17627 {
17628 arg4 = &temp4;
17629 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17630 }
17631 if (obj4) {
17632 ecode5 = SWIG_AsVal_int(obj4, &val5);
17633 if (!SWIG_IsOK(ecode5)) {
17634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17635 }
17636 arg5 = static_cast< wxDirection >(val5);
17637 }
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17641 wxPyEndAllowThreads(__tstate);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 }
17644 resultobj = SWIG_Py_Void();
17645 return resultobj;
17646fail:
17647 return NULL;
17648}
17649
17650
17651SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17652 PyObject *resultobj = 0;
17653 wxDC *arg1 = (wxDC *) 0 ;
17654 int arg2 ;
17655 int arg3 ;
17656 wxColour result;
17657 void *argp1 = 0 ;
17658 int res1 = 0 ;
17659 int val2 ;
17660 int ecode2 = 0 ;
17661 int val3 ;
17662 int ecode3 = 0 ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 PyObject * obj2 = 0 ;
17666 char * kwnames[] = {
17667 (char *) "self",(char *) "x",(char *) "y", NULL
17668 };
17669
17670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17672 if (!SWIG_IsOK(res1)) {
17673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17674 }
17675 arg1 = reinterpret_cast< wxDC * >(argp1);
17676 ecode2 = SWIG_AsVal_int(obj1, &val2);
17677 if (!SWIG_IsOK(ecode2)) {
17678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17679 }
17680 arg2 = static_cast< int >(val2);
17681 ecode3 = SWIG_AsVal_int(obj2, &val3);
17682 if (!SWIG_IsOK(ecode3)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17684 }
17685 arg3 = static_cast< int >(val3);
17686 {
17687 PyThreadState* __tstate = wxPyBeginAllowThreads();
17688 result = wxDC_GetPixel(arg1,arg2,arg3);
17689 wxPyEndAllowThreads(__tstate);
17690 if (PyErr_Occurred()) SWIG_fail;
17691 }
17692 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17693 return resultobj;
17694fail:
17695 return NULL;
17696}
17697
17698
17699SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17700 PyObject *resultobj = 0;
17701 wxDC *arg1 = (wxDC *) 0 ;
17702 wxPoint *arg2 = 0 ;
17703 wxColour result;
17704 void *argp1 = 0 ;
17705 int res1 = 0 ;
17706 wxPoint temp2 ;
17707 PyObject * obj0 = 0 ;
17708 PyObject * obj1 = 0 ;
17709 char * kwnames[] = {
17710 (char *) "self",(char *) "pt", NULL
17711 };
17712
17713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17715 if (!SWIG_IsOK(res1)) {
17716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17717 }
17718 arg1 = reinterpret_cast< wxDC * >(argp1);
17719 {
17720 arg2 = &temp2;
17721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17722 }
17723 {
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17726 wxPyEndAllowThreads(__tstate);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17730 return resultobj;
17731fail:
17732 return NULL;
17733}
17734
17735
17736SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj = 0;
17738 wxDC *arg1 = (wxDC *) 0 ;
17739 int arg2 ;
17740 int arg3 ;
17741 int arg4 ;
17742 int arg5 ;
17743 void *argp1 = 0 ;
17744 int res1 = 0 ;
17745 int val2 ;
17746 int ecode2 = 0 ;
17747 int val3 ;
17748 int ecode3 = 0 ;
17749 int val4 ;
17750 int ecode4 = 0 ;
17751 int val5 ;
17752 int ecode5 = 0 ;
17753 PyObject * obj0 = 0 ;
17754 PyObject * obj1 = 0 ;
17755 PyObject * obj2 = 0 ;
17756 PyObject * obj3 = 0 ;
17757 PyObject * obj4 = 0 ;
17758 char * kwnames[] = {
17759 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17760 };
17761
17762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17764 if (!SWIG_IsOK(res1)) {
17765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17766 }
17767 arg1 = reinterpret_cast< wxDC * >(argp1);
17768 ecode2 = SWIG_AsVal_int(obj1, &val2);
17769 if (!SWIG_IsOK(ecode2)) {
17770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17771 }
17772 arg2 = static_cast< int >(val2);
17773 ecode3 = SWIG_AsVal_int(obj2, &val3);
17774 if (!SWIG_IsOK(ecode3)) {
17775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17776 }
17777 arg3 = static_cast< int >(val3);
17778 ecode4 = SWIG_AsVal_int(obj3, &val4);
17779 if (!SWIG_IsOK(ecode4)) {
17780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17781 }
17782 arg4 = static_cast< int >(val4);
17783 ecode5 = SWIG_AsVal_int(obj4, &val5);
17784 if (!SWIG_IsOK(ecode5)) {
17785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17786 }
17787 arg5 = static_cast< int >(val5);
17788 {
17789 PyThreadState* __tstate = wxPyBeginAllowThreads();
17790 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17791 wxPyEndAllowThreads(__tstate);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 resultobj = SWIG_Py_Void();
17795 return resultobj;
17796fail:
17797 return NULL;
17798}
17799
17800
17801SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17802 PyObject *resultobj = 0;
17803 wxDC *arg1 = (wxDC *) 0 ;
17804 wxPoint *arg2 = 0 ;
17805 wxPoint *arg3 = 0 ;
17806 void *argp1 = 0 ;
17807 int res1 = 0 ;
17808 wxPoint temp2 ;
17809 wxPoint temp3 ;
17810 PyObject * obj0 = 0 ;
17811 PyObject * obj1 = 0 ;
17812 PyObject * obj2 = 0 ;
17813 char * kwnames[] = {
17814 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17815 };
17816
17817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17819 if (!SWIG_IsOK(res1)) {
17820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17821 }
17822 arg1 = reinterpret_cast< wxDC * >(argp1);
17823 {
17824 arg2 = &temp2;
17825 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17826 }
17827 {
17828 arg3 = &temp3;
17829 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17830 }
17831 {
17832 PyThreadState* __tstate = wxPyBeginAllowThreads();
17833 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17834 wxPyEndAllowThreads(__tstate);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
17837 resultobj = SWIG_Py_Void();
17838 return resultobj;
17839fail:
17840 return NULL;
17841}
17842
17843
17844SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17845 PyObject *resultobj = 0;
17846 wxDC *arg1 = (wxDC *) 0 ;
17847 int arg2 ;
17848 int arg3 ;
17849 void *argp1 = 0 ;
17850 int res1 = 0 ;
17851 int val2 ;
17852 int ecode2 = 0 ;
17853 int val3 ;
17854 int ecode3 = 0 ;
17855 PyObject * obj0 = 0 ;
17856 PyObject * obj1 = 0 ;
17857 PyObject * obj2 = 0 ;
17858 char * kwnames[] = {
17859 (char *) "self",(char *) "x",(char *) "y", NULL
17860 };
17861
17862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17864 if (!SWIG_IsOK(res1)) {
17865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17866 }
17867 arg1 = reinterpret_cast< wxDC * >(argp1);
17868 ecode2 = SWIG_AsVal_int(obj1, &val2);
17869 if (!SWIG_IsOK(ecode2)) {
17870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17871 }
17872 arg2 = static_cast< int >(val2);
17873 ecode3 = SWIG_AsVal_int(obj2, &val3);
17874 if (!SWIG_IsOK(ecode3)) {
17875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17876 }
17877 arg3 = static_cast< int >(val3);
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 (arg1)->CrossHair(arg2,arg3);
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_Py_Void();
17885 return resultobj;
17886fail:
17887 return NULL;
17888}
17889
17890
17891SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj = 0;
17893 wxDC *arg1 = (wxDC *) 0 ;
17894 wxPoint *arg2 = 0 ;
17895 void *argp1 = 0 ;
17896 int res1 = 0 ;
17897 wxPoint temp2 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 char * kwnames[] = {
17901 (char *) "self",(char *) "pt", NULL
17902 };
17903
17904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17906 if (!SWIG_IsOK(res1)) {
17907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17908 }
17909 arg1 = reinterpret_cast< wxDC * >(argp1);
17910 {
17911 arg2 = &temp2;
17912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17913 }
17914 {
17915 PyThreadState* __tstate = wxPyBeginAllowThreads();
17916 (arg1)->CrossHair((wxPoint const &)*arg2);
17917 wxPyEndAllowThreads(__tstate);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 }
17920 resultobj = SWIG_Py_Void();
17921 return resultobj;
17922fail:
17923 return NULL;
17924}
17925
17926
17927SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17928 PyObject *resultobj = 0;
17929 wxDC *arg1 = (wxDC *) 0 ;
17930 int arg2 ;
17931 int arg3 ;
17932 int arg4 ;
17933 int arg5 ;
17934 int arg6 ;
17935 int arg7 ;
17936 void *argp1 = 0 ;
17937 int res1 = 0 ;
17938 int val2 ;
17939 int ecode2 = 0 ;
17940 int val3 ;
17941 int ecode3 = 0 ;
17942 int val4 ;
17943 int ecode4 = 0 ;
17944 int val5 ;
17945 int ecode5 = 0 ;
17946 int val6 ;
17947 int ecode6 = 0 ;
17948 int val7 ;
17949 int ecode7 = 0 ;
17950 PyObject * obj0 = 0 ;
17951 PyObject * obj1 = 0 ;
17952 PyObject * obj2 = 0 ;
17953 PyObject * obj3 = 0 ;
17954 PyObject * obj4 = 0 ;
17955 PyObject * obj5 = 0 ;
17956 PyObject * obj6 = 0 ;
17957 char * kwnames[] = {
17958 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17959 };
17960
17961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17963 if (!SWIG_IsOK(res1)) {
17964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17965 }
17966 arg1 = reinterpret_cast< wxDC * >(argp1);
17967 ecode2 = SWIG_AsVal_int(obj1, &val2);
17968 if (!SWIG_IsOK(ecode2)) {
17969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17970 }
17971 arg2 = static_cast< int >(val2);
17972 ecode3 = SWIG_AsVal_int(obj2, &val3);
17973 if (!SWIG_IsOK(ecode3)) {
17974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17975 }
17976 arg3 = static_cast< int >(val3);
17977 ecode4 = SWIG_AsVal_int(obj3, &val4);
17978 if (!SWIG_IsOK(ecode4)) {
17979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17980 }
17981 arg4 = static_cast< int >(val4);
17982 ecode5 = SWIG_AsVal_int(obj4, &val5);
17983 if (!SWIG_IsOK(ecode5)) {
17984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17985 }
17986 arg5 = static_cast< int >(val5);
17987 ecode6 = SWIG_AsVal_int(obj5, &val6);
17988 if (!SWIG_IsOK(ecode6)) {
17989 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17990 }
17991 arg6 = static_cast< int >(val6);
17992 ecode7 = SWIG_AsVal_int(obj6, &val7);
17993 if (!SWIG_IsOK(ecode7)) {
17994 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17995 }
17996 arg7 = static_cast< int >(val7);
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 resultobj = SWIG_Py_Void();
18004 return resultobj;
18005fail:
18006 return NULL;
18007}
18008
18009
18010SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj = 0;
18012 wxDC *arg1 = (wxDC *) 0 ;
18013 wxPoint *arg2 = 0 ;
18014 wxPoint *arg3 = 0 ;
18015 wxPoint *arg4 = 0 ;
18016 void *argp1 = 0 ;
18017 int res1 = 0 ;
18018 wxPoint temp2 ;
18019 wxPoint temp3 ;
18020 wxPoint temp4 ;
18021 PyObject * obj0 = 0 ;
18022 PyObject * obj1 = 0 ;
18023 PyObject * obj2 = 0 ;
18024 PyObject * obj3 = 0 ;
18025 char * kwnames[] = {
18026 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18027 };
18028
18029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18031 if (!SWIG_IsOK(res1)) {
18032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18033 }
18034 arg1 = reinterpret_cast< wxDC * >(argp1);
18035 {
18036 arg2 = &temp2;
18037 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18038 }
18039 {
18040 arg3 = &temp3;
18041 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18042 }
18043 {
18044 arg4 = &temp4;
18045 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18046 }
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 resultobj = SWIG_Py_Void();
18054 return resultobj;
18055fail:
18056 return NULL;
18057}
18058
18059
18060SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18061 PyObject *resultobj = 0;
18062 wxDC *arg1 = (wxDC *) 0 ;
18063 int arg2 ;
18064 int arg3 ;
18065 int arg4 ;
18066 int arg5 ;
18067 void *argp1 = 0 ;
18068 int res1 = 0 ;
18069 int val2 ;
18070 int ecode2 = 0 ;
18071 int val3 ;
18072 int ecode3 = 0 ;
18073 int val4 ;
18074 int ecode4 = 0 ;
18075 int val5 ;
18076 int ecode5 = 0 ;
18077 PyObject * obj0 = 0 ;
18078 PyObject * obj1 = 0 ;
18079 PyObject * obj2 = 0 ;
18080 PyObject * obj3 = 0 ;
18081 PyObject * obj4 = 0 ;
18082 char * kwnames[] = {
18083 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18084 };
18085
18086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18088 if (!SWIG_IsOK(res1)) {
18089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18090 }
18091 arg1 = reinterpret_cast< wxDC * >(argp1);
18092 ecode2 = SWIG_AsVal_int(obj1, &val2);
18093 if (!SWIG_IsOK(ecode2)) {
18094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18095 }
18096 arg2 = static_cast< int >(val2);
18097 ecode3 = SWIG_AsVal_int(obj2, &val3);
18098 if (!SWIG_IsOK(ecode3)) {
18099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18100 }
18101 arg3 = static_cast< int >(val3);
18102 ecode4 = SWIG_AsVal_int(obj3, &val4);
18103 if (!SWIG_IsOK(ecode4)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18105 }
18106 arg4 = static_cast< int >(val4);
18107 ecode5 = SWIG_AsVal_int(obj4, &val5);
18108 if (!SWIG_IsOK(ecode5)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18110 }
18111 arg5 = static_cast< int >(val5);
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18115 wxPyEndAllowThreads(__tstate);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 }
18118 resultobj = SWIG_Py_Void();
18119 return resultobj;
18120fail:
18121 return NULL;
18122}
18123
18124
18125SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18126 PyObject *resultobj = 0;
18127 wxDC *arg1 = (wxDC *) 0 ;
18128 wxRect *arg2 = 0 ;
18129 void *argp1 = 0 ;
18130 int res1 = 0 ;
18131 wxRect temp2 ;
18132 PyObject * obj0 = 0 ;
18133 PyObject * obj1 = 0 ;
18134 char * kwnames[] = {
18135 (char *) "self",(char *) "rect", NULL
18136 };
18137
18138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18140 if (!SWIG_IsOK(res1)) {
18141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18142 }
18143 arg1 = reinterpret_cast< wxDC * >(argp1);
18144 {
18145 arg2 = &temp2;
18146 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18147 }
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_Py_Void();
18155 return resultobj;
18156fail:
18157 return NULL;
18158}
18159
18160
18161SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj = 0;
18163 wxDC *arg1 = (wxDC *) 0 ;
18164 int arg2 ;
18165 int arg3 ;
18166 int arg4 ;
18167 int arg5 ;
18168 double arg6 ;
18169 double arg7 ;
18170 void *argp1 = 0 ;
18171 int res1 = 0 ;
18172 int val2 ;
18173 int ecode2 = 0 ;
18174 int val3 ;
18175 int ecode3 = 0 ;
18176 int val4 ;
18177 int ecode4 = 0 ;
18178 int val5 ;
18179 int ecode5 = 0 ;
18180 double val6 ;
18181 int ecode6 = 0 ;
18182 double val7 ;
18183 int ecode7 = 0 ;
18184 PyObject * obj0 = 0 ;
18185 PyObject * obj1 = 0 ;
18186 PyObject * obj2 = 0 ;
18187 PyObject * obj3 = 0 ;
18188 PyObject * obj4 = 0 ;
18189 PyObject * obj5 = 0 ;
18190 PyObject * obj6 = 0 ;
18191 char * kwnames[] = {
18192 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18193 };
18194
18195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18197 if (!SWIG_IsOK(res1)) {
18198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18199 }
18200 arg1 = reinterpret_cast< wxDC * >(argp1);
18201 ecode2 = SWIG_AsVal_int(obj1, &val2);
18202 if (!SWIG_IsOK(ecode2)) {
18203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18204 }
18205 arg2 = static_cast< int >(val2);
18206 ecode3 = SWIG_AsVal_int(obj2, &val3);
18207 if (!SWIG_IsOK(ecode3)) {
18208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18209 }
18210 arg3 = static_cast< int >(val3);
18211 ecode4 = SWIG_AsVal_int(obj3, &val4);
18212 if (!SWIG_IsOK(ecode4)) {
18213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18214 }
18215 arg4 = static_cast< int >(val4);
18216 ecode5 = SWIG_AsVal_int(obj4, &val5);
18217 if (!SWIG_IsOK(ecode5)) {
18218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18219 }
18220 arg5 = static_cast< int >(val5);
18221 ecode6 = SWIG_AsVal_double(obj5, &val6);
18222 if (!SWIG_IsOK(ecode6)) {
18223 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18224 }
18225 arg6 = static_cast< double >(val6);
18226 ecode7 = SWIG_AsVal_double(obj6, &val7);
18227 if (!SWIG_IsOK(ecode7)) {
18228 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18229 }
18230 arg7 = static_cast< double >(val7);
18231 {
18232 PyThreadState* __tstate = wxPyBeginAllowThreads();
18233 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18234 wxPyEndAllowThreads(__tstate);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 resultobj = SWIG_Py_Void();
18238 return resultobj;
18239fail:
18240 return NULL;
18241}
18242
18243
18244SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18245 PyObject *resultobj = 0;
18246 wxDC *arg1 = (wxDC *) 0 ;
18247 wxPoint *arg2 = 0 ;
18248 wxSize *arg3 = 0 ;
18249 double arg4 ;
18250 double arg5 ;
18251 void *argp1 = 0 ;
18252 int res1 = 0 ;
18253 wxPoint temp2 ;
18254 wxSize temp3 ;
18255 double val4 ;
18256 int ecode4 = 0 ;
18257 double val5 ;
18258 int ecode5 = 0 ;
18259 PyObject * obj0 = 0 ;
18260 PyObject * obj1 = 0 ;
18261 PyObject * obj2 = 0 ;
18262 PyObject * obj3 = 0 ;
18263 PyObject * obj4 = 0 ;
18264 char * kwnames[] = {
18265 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18266 };
18267
18268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18272 }
18273 arg1 = reinterpret_cast< wxDC * >(argp1);
18274 {
18275 arg2 = &temp2;
18276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18277 }
18278 {
18279 arg3 = &temp3;
18280 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18281 }
18282 ecode4 = SWIG_AsVal_double(obj3, &val4);
18283 if (!SWIG_IsOK(ecode4)) {
18284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18285 }
18286 arg4 = static_cast< double >(val4);
18287 ecode5 = SWIG_AsVal_double(obj4, &val5);
18288 if (!SWIG_IsOK(ecode5)) {
18289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18290 }
18291 arg5 = static_cast< double >(val5);
18292 {
18293 PyThreadState* __tstate = wxPyBeginAllowThreads();
18294 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18295 wxPyEndAllowThreads(__tstate);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 }
18298 resultobj = SWIG_Py_Void();
18299 return resultobj;
18300fail:
18301 return NULL;
18302}
18303
18304
18305SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj = 0;
18307 wxDC *arg1 = (wxDC *) 0 ;
18308 int arg2 ;
18309 int arg3 ;
18310 void *argp1 = 0 ;
18311 int res1 = 0 ;
18312 int val2 ;
18313 int ecode2 = 0 ;
18314 int val3 ;
18315 int ecode3 = 0 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 PyObject * obj2 = 0 ;
18319 char * kwnames[] = {
18320 (char *) "self",(char *) "x",(char *) "y", NULL
18321 };
18322
18323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18325 if (!SWIG_IsOK(res1)) {
18326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18327 }
18328 arg1 = reinterpret_cast< wxDC * >(argp1);
18329 ecode2 = SWIG_AsVal_int(obj1, &val2);
18330 if (!SWIG_IsOK(ecode2)) {
18331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18332 }
18333 arg2 = static_cast< int >(val2);
18334 ecode3 = SWIG_AsVal_int(obj2, &val3);
18335 if (!SWIG_IsOK(ecode3)) {
18336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18337 }
18338 arg3 = static_cast< int >(val3);
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 (arg1)->DrawPoint(arg2,arg3);
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_Py_Void();
18346 return resultobj;
18347fail:
18348 return NULL;
18349}
18350
18351
18352SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj = 0;
18354 wxDC *arg1 = (wxDC *) 0 ;
18355 wxPoint *arg2 = 0 ;
18356 void *argp1 = 0 ;
18357 int res1 = 0 ;
18358 wxPoint temp2 ;
18359 PyObject * obj0 = 0 ;
18360 PyObject * obj1 = 0 ;
18361 char * kwnames[] = {
18362 (char *) "self",(char *) "pt", NULL
18363 };
18364
18365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18367 if (!SWIG_IsOK(res1)) {
18368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18369 }
18370 arg1 = reinterpret_cast< wxDC * >(argp1);
18371 {
18372 arg2 = &temp2;
18373 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18374 }
18375 {
18376 PyThreadState* __tstate = wxPyBeginAllowThreads();
18377 (arg1)->DrawPoint((wxPoint const &)*arg2);
18378 wxPyEndAllowThreads(__tstate);
18379 if (PyErr_Occurred()) SWIG_fail;
18380 }
18381 resultobj = SWIG_Py_Void();
18382 return resultobj;
18383fail:
18384 return NULL;
18385}
18386
18387
18388SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18389 PyObject *resultobj = 0;
18390 wxDC *arg1 = (wxDC *) 0 ;
18391 int arg2 ;
18392 int arg3 ;
18393 int arg4 ;
18394 int arg5 ;
18395 void *argp1 = 0 ;
18396 int res1 = 0 ;
18397 int val2 ;
18398 int ecode2 = 0 ;
18399 int val3 ;
18400 int ecode3 = 0 ;
18401 int val4 ;
18402 int ecode4 = 0 ;
18403 int val5 ;
18404 int ecode5 = 0 ;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 PyObject * obj2 = 0 ;
18408 PyObject * obj3 = 0 ;
18409 PyObject * obj4 = 0 ;
18410 char * kwnames[] = {
18411 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18412 };
18413
18414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18416 if (!SWIG_IsOK(res1)) {
18417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18418 }
18419 arg1 = reinterpret_cast< wxDC * >(argp1);
18420 ecode2 = SWIG_AsVal_int(obj1, &val2);
18421 if (!SWIG_IsOK(ecode2)) {
18422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18423 }
18424 arg2 = static_cast< int >(val2);
18425 ecode3 = SWIG_AsVal_int(obj2, &val3);
18426 if (!SWIG_IsOK(ecode3)) {
18427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18428 }
18429 arg3 = static_cast< int >(val3);
18430 ecode4 = SWIG_AsVal_int(obj3, &val4);
18431 if (!SWIG_IsOK(ecode4)) {
18432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18433 }
18434 arg4 = static_cast< int >(val4);
18435 ecode5 = SWIG_AsVal_int(obj4, &val5);
18436 if (!SWIG_IsOK(ecode5)) {
18437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18438 }
18439 arg5 = static_cast< int >(val5);
18440 {
18441 PyThreadState* __tstate = wxPyBeginAllowThreads();
18442 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18443 wxPyEndAllowThreads(__tstate);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 }
18446 resultobj = SWIG_Py_Void();
18447 return resultobj;
18448fail:
18449 return NULL;
18450}
18451
18452
18453SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18454 PyObject *resultobj = 0;
18455 wxDC *arg1 = (wxDC *) 0 ;
18456 wxRect *arg2 = 0 ;
18457 void *argp1 = 0 ;
18458 int res1 = 0 ;
18459 wxRect temp2 ;
18460 PyObject * obj0 = 0 ;
18461 PyObject * obj1 = 0 ;
18462 char * kwnames[] = {
18463 (char *) "self",(char *) "rect", NULL
18464 };
18465
18466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18468 if (!SWIG_IsOK(res1)) {
18469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18470 }
18471 arg1 = reinterpret_cast< wxDC * >(argp1);
18472 {
18473 arg2 = &temp2;
18474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18475 }
18476 {
18477 PyThreadState* __tstate = wxPyBeginAllowThreads();
18478 (arg1)->DrawRectangle((wxRect const &)*arg2);
18479 wxPyEndAllowThreads(__tstate);
18480 if (PyErr_Occurred()) SWIG_fail;
18481 }
18482 resultobj = SWIG_Py_Void();
18483 return resultobj;
18484fail:
18485 return NULL;
18486}
18487
18488
18489SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18490 PyObject *resultobj = 0;
18491 wxDC *arg1 = (wxDC *) 0 ;
18492 wxPoint *arg2 = 0 ;
18493 wxSize *arg3 = 0 ;
18494 void *argp1 = 0 ;
18495 int res1 = 0 ;
18496 wxPoint temp2 ;
18497 wxSize temp3 ;
18498 PyObject * obj0 = 0 ;
18499 PyObject * obj1 = 0 ;
18500 PyObject * obj2 = 0 ;
18501 char * kwnames[] = {
18502 (char *) "self",(char *) "pt",(char *) "sz", NULL
18503 };
18504
18505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18507 if (!SWIG_IsOK(res1)) {
18508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18509 }
18510 arg1 = reinterpret_cast< wxDC * >(argp1);
18511 {
18512 arg2 = &temp2;
18513 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18514 }
18515 {
18516 arg3 = &temp3;
18517 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18518 }
18519 {
18520 PyThreadState* __tstate = wxPyBeginAllowThreads();
18521 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18522 wxPyEndAllowThreads(__tstate);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 resultobj = SWIG_Py_Void();
18526 return resultobj;
18527fail:
18528 return NULL;
18529}
18530
18531
18532SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18533 PyObject *resultobj = 0;
18534 wxDC *arg1 = (wxDC *) 0 ;
18535 int arg2 ;
18536 int arg3 ;
18537 int arg4 ;
18538 int arg5 ;
18539 double arg6 ;
18540 void *argp1 = 0 ;
18541 int res1 = 0 ;
18542 int val2 ;
18543 int ecode2 = 0 ;
18544 int val3 ;
18545 int ecode3 = 0 ;
18546 int val4 ;
18547 int ecode4 = 0 ;
18548 int val5 ;
18549 int ecode5 = 0 ;
18550 double val6 ;
18551 int ecode6 = 0 ;
18552 PyObject * obj0 = 0 ;
18553 PyObject * obj1 = 0 ;
18554 PyObject * obj2 = 0 ;
18555 PyObject * obj3 = 0 ;
18556 PyObject * obj4 = 0 ;
18557 PyObject * obj5 = 0 ;
18558 char * kwnames[] = {
18559 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18560 };
18561
18562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18564 if (!SWIG_IsOK(res1)) {
18565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18566 }
18567 arg1 = reinterpret_cast< wxDC * >(argp1);
18568 ecode2 = SWIG_AsVal_int(obj1, &val2);
18569 if (!SWIG_IsOK(ecode2)) {
18570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18571 }
18572 arg2 = static_cast< int >(val2);
18573 ecode3 = SWIG_AsVal_int(obj2, &val3);
18574 if (!SWIG_IsOK(ecode3)) {
18575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18576 }
18577 arg3 = static_cast< int >(val3);
18578 ecode4 = SWIG_AsVal_int(obj3, &val4);
18579 if (!SWIG_IsOK(ecode4)) {
18580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18581 }
18582 arg4 = static_cast< int >(val4);
18583 ecode5 = SWIG_AsVal_int(obj4, &val5);
18584 if (!SWIG_IsOK(ecode5)) {
18585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18586 }
18587 arg5 = static_cast< int >(val5);
18588 ecode6 = SWIG_AsVal_double(obj5, &val6);
18589 if (!SWIG_IsOK(ecode6)) {
18590 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18591 }
18592 arg6 = static_cast< double >(val6);
18593 {
18594 PyThreadState* __tstate = wxPyBeginAllowThreads();
18595 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 resultobj = SWIG_Py_Void();
18600 return resultobj;
18601fail:
18602 return NULL;
18603}
18604
18605
18606SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18607 PyObject *resultobj = 0;
18608 wxDC *arg1 = (wxDC *) 0 ;
18609 wxRect *arg2 = 0 ;
18610 double arg3 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 wxRect temp2 ;
18614 double val3 ;
18615 int ecode3 = 0 ;
18616 PyObject * obj0 = 0 ;
18617 PyObject * obj1 = 0 ;
18618 PyObject * obj2 = 0 ;
18619 char * kwnames[] = {
18620 (char *) "self",(char *) "r",(char *) "radius", NULL
18621 };
18622
18623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18625 if (!SWIG_IsOK(res1)) {
18626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18627 }
18628 arg1 = reinterpret_cast< wxDC * >(argp1);
18629 {
18630 arg2 = &temp2;
18631 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18632 }
18633 ecode3 = SWIG_AsVal_double(obj2, &val3);
18634 if (!SWIG_IsOK(ecode3)) {
18635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18636 }
18637 arg3 = static_cast< double >(val3);
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 resultobj = SWIG_Py_Void();
18645 return resultobj;
18646fail:
18647 return NULL;
18648}
18649
18650
18651SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18652 PyObject *resultobj = 0;
18653 wxDC *arg1 = (wxDC *) 0 ;
18654 wxPoint *arg2 = 0 ;
18655 wxSize *arg3 = 0 ;
18656 double arg4 ;
18657 void *argp1 = 0 ;
18658 int res1 = 0 ;
18659 wxPoint temp2 ;
18660 wxSize temp3 ;
18661 double val4 ;
18662 int ecode4 = 0 ;
18663 PyObject * obj0 = 0 ;
18664 PyObject * obj1 = 0 ;
18665 PyObject * obj2 = 0 ;
18666 PyObject * obj3 = 0 ;
18667 char * kwnames[] = {
18668 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18669 };
18670
18671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18673 if (!SWIG_IsOK(res1)) {
18674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18675 }
18676 arg1 = reinterpret_cast< wxDC * >(argp1);
18677 {
18678 arg2 = &temp2;
18679 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18680 }
18681 {
18682 arg3 = &temp3;
18683 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18684 }
18685 ecode4 = SWIG_AsVal_double(obj3, &val4);
18686 if (!SWIG_IsOK(ecode4)) {
18687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18688 }
18689 arg4 = static_cast< double >(val4);
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 resultobj = SWIG_Py_Void();
18697 return resultobj;
18698fail:
18699 return NULL;
18700}
18701
18702
18703SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18704 PyObject *resultobj = 0;
18705 wxDC *arg1 = (wxDC *) 0 ;
18706 int arg2 ;
18707 int arg3 ;
18708 int arg4 ;
18709 void *argp1 = 0 ;
18710 int res1 = 0 ;
18711 int val2 ;
18712 int ecode2 = 0 ;
18713 int val3 ;
18714 int ecode3 = 0 ;
18715 int val4 ;
18716 int ecode4 = 0 ;
18717 PyObject * obj0 = 0 ;
18718 PyObject * obj1 = 0 ;
18719 PyObject * obj2 = 0 ;
18720 PyObject * obj3 = 0 ;
18721 char * kwnames[] = {
18722 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18723 };
18724
18725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18727 if (!SWIG_IsOK(res1)) {
18728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18729 }
18730 arg1 = reinterpret_cast< wxDC * >(argp1);
18731 ecode2 = SWIG_AsVal_int(obj1, &val2);
18732 if (!SWIG_IsOK(ecode2)) {
18733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18734 }
18735 arg2 = static_cast< int >(val2);
18736 ecode3 = SWIG_AsVal_int(obj2, &val3);
18737 if (!SWIG_IsOK(ecode3)) {
18738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18739 }
18740 arg3 = static_cast< int >(val3);
18741 ecode4 = SWIG_AsVal_int(obj3, &val4);
18742 if (!SWIG_IsOK(ecode4)) {
18743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18744 }
18745 arg4 = static_cast< int >(val4);
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 (arg1)->DrawCircle(arg2,arg3,arg4);
18749 wxPyEndAllowThreads(__tstate);
18750 if (PyErr_Occurred()) SWIG_fail;
18751 }
18752 resultobj = SWIG_Py_Void();
18753 return resultobj;
18754fail:
18755 return NULL;
18756}
18757
18758
18759SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18760 PyObject *resultobj = 0;
18761 wxDC *arg1 = (wxDC *) 0 ;
18762 wxPoint *arg2 = 0 ;
18763 int arg3 ;
18764 void *argp1 = 0 ;
18765 int res1 = 0 ;
18766 wxPoint temp2 ;
18767 int val3 ;
18768 int ecode3 = 0 ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 PyObject * obj2 = 0 ;
18772 char * kwnames[] = {
18773 (char *) "self",(char *) "pt",(char *) "radius", NULL
18774 };
18775
18776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18778 if (!SWIG_IsOK(res1)) {
18779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18780 }
18781 arg1 = reinterpret_cast< wxDC * >(argp1);
18782 {
18783 arg2 = &temp2;
18784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18785 }
18786 ecode3 = SWIG_AsVal_int(obj2, &val3);
18787 if (!SWIG_IsOK(ecode3)) {
18788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18789 }
18790 arg3 = static_cast< int >(val3);
18791 {
18792 PyThreadState* __tstate = wxPyBeginAllowThreads();
18793 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18794 wxPyEndAllowThreads(__tstate);
18795 if (PyErr_Occurred()) SWIG_fail;
18796 }
18797 resultobj = SWIG_Py_Void();
18798 return resultobj;
18799fail:
18800 return NULL;
18801}
18802
18803
18804SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18805 PyObject *resultobj = 0;
18806 wxDC *arg1 = (wxDC *) 0 ;
18807 int arg2 ;
18808 int arg3 ;
18809 int arg4 ;
18810 int arg5 ;
18811 void *argp1 = 0 ;
18812 int res1 = 0 ;
18813 int val2 ;
18814 int ecode2 = 0 ;
18815 int val3 ;
18816 int ecode3 = 0 ;
18817 int val4 ;
18818 int ecode4 = 0 ;
18819 int val5 ;
18820 int ecode5 = 0 ;
18821 PyObject * obj0 = 0 ;
18822 PyObject * obj1 = 0 ;
18823 PyObject * obj2 = 0 ;
18824 PyObject * obj3 = 0 ;
18825 PyObject * obj4 = 0 ;
18826 char * kwnames[] = {
18827 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18828 };
18829
18830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18832 if (!SWIG_IsOK(res1)) {
18833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18834 }
18835 arg1 = reinterpret_cast< wxDC * >(argp1);
18836 ecode2 = SWIG_AsVal_int(obj1, &val2);
18837 if (!SWIG_IsOK(ecode2)) {
18838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18839 }
18840 arg2 = static_cast< int >(val2);
18841 ecode3 = SWIG_AsVal_int(obj2, &val3);
18842 if (!SWIG_IsOK(ecode3)) {
18843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18844 }
18845 arg3 = static_cast< int >(val3);
18846 ecode4 = SWIG_AsVal_int(obj3, &val4);
18847 if (!SWIG_IsOK(ecode4)) {
18848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18849 }
18850 arg4 = static_cast< int >(val4);
18851 ecode5 = SWIG_AsVal_int(obj4, &val5);
18852 if (!SWIG_IsOK(ecode5)) {
18853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18854 }
18855 arg5 = static_cast< int >(val5);
18856 {
18857 PyThreadState* __tstate = wxPyBeginAllowThreads();
18858 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18859 wxPyEndAllowThreads(__tstate);
18860 if (PyErr_Occurred()) SWIG_fail;
18861 }
18862 resultobj = SWIG_Py_Void();
18863 return resultobj;
18864fail:
18865 return NULL;
18866}
18867
18868
18869SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18870 PyObject *resultobj = 0;
18871 wxDC *arg1 = (wxDC *) 0 ;
18872 wxRect *arg2 = 0 ;
18873 void *argp1 = 0 ;
18874 int res1 = 0 ;
18875 wxRect temp2 ;
18876 PyObject * obj0 = 0 ;
18877 PyObject * obj1 = 0 ;
18878 char * kwnames[] = {
18879 (char *) "self",(char *) "rect", NULL
18880 };
18881
18882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18884 if (!SWIG_IsOK(res1)) {
18885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18886 }
18887 arg1 = reinterpret_cast< wxDC * >(argp1);
18888 {
18889 arg2 = &temp2;
18890 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18891 }
18892 {
18893 PyThreadState* __tstate = wxPyBeginAllowThreads();
18894 (arg1)->DrawEllipse((wxRect const &)*arg2);
18895 wxPyEndAllowThreads(__tstate);
18896 if (PyErr_Occurred()) SWIG_fail;
18897 }
18898 resultobj = SWIG_Py_Void();
18899 return resultobj;
18900fail:
18901 return NULL;
18902}
18903
18904
18905SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18906 PyObject *resultobj = 0;
18907 wxDC *arg1 = (wxDC *) 0 ;
18908 wxPoint *arg2 = 0 ;
18909 wxSize *arg3 = 0 ;
18910 void *argp1 = 0 ;
18911 int res1 = 0 ;
18912 wxPoint temp2 ;
18913 wxSize temp3 ;
18914 PyObject * obj0 = 0 ;
18915 PyObject * obj1 = 0 ;
18916 PyObject * obj2 = 0 ;
18917 char * kwnames[] = {
18918 (char *) "self",(char *) "pt",(char *) "sz", NULL
18919 };
18920
18921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18925 }
18926 arg1 = reinterpret_cast< wxDC * >(argp1);
18927 {
18928 arg2 = &temp2;
18929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18930 }
18931 {
18932 arg3 = &temp3;
18933 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18934 }
18935 {
18936 PyThreadState* __tstate = wxPyBeginAllowThreads();
18937 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 resultobj = SWIG_Py_Void();
18942 return resultobj;
18943fail:
18944 return NULL;
18945}
18946
18947
18948SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj = 0;
18950 wxDC *arg1 = (wxDC *) 0 ;
18951 wxIcon *arg2 = 0 ;
18952 int arg3 ;
18953 int arg4 ;
18954 void *argp1 = 0 ;
18955 int res1 = 0 ;
18956 void *argp2 = 0 ;
18957 int res2 = 0 ;
18958 int val3 ;
18959 int ecode3 = 0 ;
18960 int val4 ;
18961 int ecode4 = 0 ;
18962 PyObject * obj0 = 0 ;
18963 PyObject * obj1 = 0 ;
18964 PyObject * obj2 = 0 ;
18965 PyObject * obj3 = 0 ;
18966 char * kwnames[] = {
18967 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18968 };
18969
18970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18972 if (!SWIG_IsOK(res1)) {
18973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18974 }
18975 arg1 = reinterpret_cast< wxDC * >(argp1);
18976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18977 if (!SWIG_IsOK(res2)) {
18978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18979 }
18980 if (!argp2) {
18981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18982 }
18983 arg2 = reinterpret_cast< wxIcon * >(argp2);
18984 ecode3 = SWIG_AsVal_int(obj2, &val3);
18985 if (!SWIG_IsOK(ecode3)) {
18986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18987 }
18988 arg3 = static_cast< int >(val3);
18989 ecode4 = SWIG_AsVal_int(obj3, &val4);
18990 if (!SWIG_IsOK(ecode4)) {
18991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18992 }
18993 arg4 = static_cast< int >(val4);
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_Py_Void();
19001 return resultobj;
19002fail:
19003 return NULL;
19004}
19005
19006
19007SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj = 0;
19009 wxDC *arg1 = (wxDC *) 0 ;
19010 wxIcon *arg2 = 0 ;
19011 wxPoint *arg3 = 0 ;
19012 void *argp1 = 0 ;
19013 int res1 = 0 ;
19014 void *argp2 = 0 ;
19015 int res2 = 0 ;
19016 wxPoint temp3 ;
19017 PyObject * obj0 = 0 ;
19018 PyObject * obj1 = 0 ;
19019 PyObject * obj2 = 0 ;
19020 char * kwnames[] = {
19021 (char *) "self",(char *) "icon",(char *) "pt", NULL
19022 };
19023
19024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19026 if (!SWIG_IsOK(res1)) {
19027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19028 }
19029 arg1 = reinterpret_cast< wxDC * >(argp1);
19030 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19031 if (!SWIG_IsOK(res2)) {
19032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19033 }
19034 if (!argp2) {
19035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19036 }
19037 arg2 = reinterpret_cast< wxIcon * >(argp2);
19038 {
19039 arg3 = &temp3;
19040 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19041 }
19042 {
19043 PyThreadState* __tstate = wxPyBeginAllowThreads();
19044 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19045 wxPyEndAllowThreads(__tstate);
19046 if (PyErr_Occurred()) SWIG_fail;
19047 }
19048 resultobj = SWIG_Py_Void();
19049 return resultobj;
19050fail:
19051 return NULL;
19052}
19053
19054
19055SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj = 0;
19057 wxDC *arg1 = (wxDC *) 0 ;
19058 wxBitmap *arg2 = 0 ;
19059 int arg3 ;
19060 int arg4 ;
19061 bool arg5 = (bool) false ;
19062 void *argp1 = 0 ;
19063 int res1 = 0 ;
19064 void *argp2 = 0 ;
19065 int res2 = 0 ;
19066 int val3 ;
19067 int ecode3 = 0 ;
19068 int val4 ;
19069 int ecode4 = 0 ;
19070 bool val5 ;
19071 int ecode5 = 0 ;
19072 PyObject * obj0 = 0 ;
19073 PyObject * obj1 = 0 ;
19074 PyObject * obj2 = 0 ;
19075 PyObject * obj3 = 0 ;
19076 PyObject * obj4 = 0 ;
19077 char * kwnames[] = {
19078 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19079 };
19080
19081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19083 if (!SWIG_IsOK(res1)) {
19084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19085 }
19086 arg1 = reinterpret_cast< wxDC * >(argp1);
19087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19088 if (!SWIG_IsOK(res2)) {
19089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19090 }
19091 if (!argp2) {
19092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19093 }
19094 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19095 ecode3 = SWIG_AsVal_int(obj2, &val3);
19096 if (!SWIG_IsOK(ecode3)) {
19097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19098 }
19099 arg3 = static_cast< int >(val3);
19100 ecode4 = SWIG_AsVal_int(obj3, &val4);
19101 if (!SWIG_IsOK(ecode4)) {
19102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19103 }
19104 arg4 = static_cast< int >(val4);
19105 if (obj4) {
19106 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19107 if (!SWIG_IsOK(ecode5)) {
19108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19109 }
19110 arg5 = static_cast< bool >(val5);
19111 }
19112 {
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 resultobj = SWIG_Py_Void();
19119 return resultobj;
19120fail:
19121 return NULL;
19122}
19123
19124
19125SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19126 PyObject *resultobj = 0;
19127 wxDC *arg1 = (wxDC *) 0 ;
19128 wxBitmap *arg2 = 0 ;
19129 wxPoint *arg3 = 0 ;
19130 bool arg4 = (bool) false ;
19131 void *argp1 = 0 ;
19132 int res1 = 0 ;
19133 void *argp2 = 0 ;
19134 int res2 = 0 ;
19135 wxPoint temp3 ;
19136 bool val4 ;
19137 int ecode4 = 0 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 PyObject * obj2 = 0 ;
19141 PyObject * obj3 = 0 ;
19142 char * kwnames[] = {
19143 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19144 };
19145
19146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19148 if (!SWIG_IsOK(res1)) {
19149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19150 }
19151 arg1 = reinterpret_cast< wxDC * >(argp1);
19152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19153 if (!SWIG_IsOK(res2)) {
19154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19155 }
19156 if (!argp2) {
19157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19158 }
19159 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19160 {
19161 arg3 = &temp3;
19162 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19163 }
19164 if (obj3) {
19165 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19166 if (!SWIG_IsOK(ecode4)) {
19167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19168 }
19169 arg4 = static_cast< bool >(val4);
19170 }
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_Py_Void();
19178 return resultobj;
19179fail:
19180 return NULL;
19181}
19182
19183
19184SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19185 PyObject *resultobj = 0;
19186 wxDC *arg1 = (wxDC *) 0 ;
19187 wxString *arg2 = 0 ;
19188 int arg3 ;
19189 int arg4 ;
19190 void *argp1 = 0 ;
19191 int res1 = 0 ;
19192 bool temp2 = false ;
19193 int val3 ;
19194 int ecode3 = 0 ;
19195 int val4 ;
19196 int ecode4 = 0 ;
19197 PyObject * obj0 = 0 ;
19198 PyObject * obj1 = 0 ;
19199 PyObject * obj2 = 0 ;
19200 PyObject * obj3 = 0 ;
19201 char * kwnames[] = {
19202 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19203 };
19204
19205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19207 if (!SWIG_IsOK(res1)) {
19208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19209 }
19210 arg1 = reinterpret_cast< wxDC * >(argp1);
19211 {
19212 arg2 = wxString_in_helper(obj1);
19213 if (arg2 == NULL) SWIG_fail;
19214 temp2 = true;
19215 }
19216 ecode3 = SWIG_AsVal_int(obj2, &val3);
19217 if (!SWIG_IsOK(ecode3)) {
19218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19219 }
19220 arg3 = static_cast< int >(val3);
19221 ecode4 = SWIG_AsVal_int(obj3, &val4);
19222 if (!SWIG_IsOK(ecode4)) {
19223 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19224 }
19225 arg4 = static_cast< int >(val4);
19226 {
19227 PyThreadState* __tstate = wxPyBeginAllowThreads();
19228 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19229 wxPyEndAllowThreads(__tstate);
19230 if (PyErr_Occurred()) SWIG_fail;
19231 }
19232 resultobj = SWIG_Py_Void();
19233 {
19234 if (temp2)
19235 delete arg2;
19236 }
19237 return resultobj;
19238fail:
19239 {
19240 if (temp2)
19241 delete arg2;
19242 }
19243 return NULL;
19244}
19245
19246
19247SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxDC *arg1 = (wxDC *) 0 ;
19250 wxString *arg2 = 0 ;
19251 wxPoint *arg3 = 0 ;
19252 void *argp1 = 0 ;
19253 int res1 = 0 ;
19254 bool temp2 = false ;
19255 wxPoint temp3 ;
19256 PyObject * obj0 = 0 ;
19257 PyObject * obj1 = 0 ;
19258 PyObject * obj2 = 0 ;
19259 char * kwnames[] = {
19260 (char *) "self",(char *) "text",(char *) "pt", NULL
19261 };
19262
19263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19265 if (!SWIG_IsOK(res1)) {
19266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19267 }
19268 arg1 = reinterpret_cast< wxDC * >(argp1);
19269 {
19270 arg2 = wxString_in_helper(obj1);
19271 if (arg2 == NULL) SWIG_fail;
19272 temp2 = true;
19273 }
19274 {
19275 arg3 = &temp3;
19276 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19277 }
19278 {
19279 PyThreadState* __tstate = wxPyBeginAllowThreads();
19280 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19281 wxPyEndAllowThreads(__tstate);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 }
19284 resultobj = SWIG_Py_Void();
19285 {
19286 if (temp2)
19287 delete arg2;
19288 }
19289 return resultobj;
19290fail:
19291 {
19292 if (temp2)
19293 delete arg2;
19294 }
19295 return NULL;
19296}
19297
19298
19299SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj = 0;
19301 wxDC *arg1 = (wxDC *) 0 ;
19302 wxString *arg2 = 0 ;
19303 int arg3 ;
19304 int arg4 ;
19305 double arg5 ;
19306 void *argp1 = 0 ;
19307 int res1 = 0 ;
19308 bool temp2 = false ;
19309 int val3 ;
19310 int ecode3 = 0 ;
19311 int val4 ;
19312 int ecode4 = 0 ;
19313 double val5 ;
19314 int ecode5 = 0 ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 PyObject * obj2 = 0 ;
19318 PyObject * obj3 = 0 ;
19319 PyObject * obj4 = 0 ;
19320 char * kwnames[] = {
19321 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19322 };
19323
19324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19326 if (!SWIG_IsOK(res1)) {
19327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19328 }
19329 arg1 = reinterpret_cast< wxDC * >(argp1);
19330 {
19331 arg2 = wxString_in_helper(obj1);
19332 if (arg2 == NULL) SWIG_fail;
19333 temp2 = true;
19334 }
19335 ecode3 = SWIG_AsVal_int(obj2, &val3);
19336 if (!SWIG_IsOK(ecode3)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19338 }
19339 arg3 = static_cast< int >(val3);
19340 ecode4 = SWIG_AsVal_int(obj3, &val4);
19341 if (!SWIG_IsOK(ecode4)) {
19342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19343 }
19344 arg4 = static_cast< int >(val4);
19345 ecode5 = SWIG_AsVal_double(obj4, &val5);
19346 if (!SWIG_IsOK(ecode5)) {
19347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19348 }
19349 arg5 = static_cast< double >(val5);
19350 {
19351 PyThreadState* __tstate = wxPyBeginAllowThreads();
19352 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 resultobj = SWIG_Py_Void();
19357 {
19358 if (temp2)
19359 delete arg2;
19360 }
19361 return resultobj;
19362fail:
19363 {
19364 if (temp2)
19365 delete arg2;
19366 }
19367 return NULL;
19368}
19369
19370
19371SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19372 PyObject *resultobj = 0;
19373 wxDC *arg1 = (wxDC *) 0 ;
19374 wxString *arg2 = 0 ;
19375 wxPoint *arg3 = 0 ;
19376 double arg4 ;
19377 void *argp1 = 0 ;
19378 int res1 = 0 ;
19379 bool temp2 = false ;
19380 wxPoint temp3 ;
19381 double val4 ;
19382 int ecode4 = 0 ;
19383 PyObject * obj0 = 0 ;
19384 PyObject * obj1 = 0 ;
19385 PyObject * obj2 = 0 ;
19386 PyObject * obj3 = 0 ;
19387 char * kwnames[] = {
19388 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19389 };
19390
19391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19393 if (!SWIG_IsOK(res1)) {
19394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19395 }
19396 arg1 = reinterpret_cast< wxDC * >(argp1);
19397 {
19398 arg2 = wxString_in_helper(obj1);
19399 if (arg2 == NULL) SWIG_fail;
19400 temp2 = true;
19401 }
19402 {
19403 arg3 = &temp3;
19404 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19405 }
19406 ecode4 = SWIG_AsVal_double(obj3, &val4);
19407 if (!SWIG_IsOK(ecode4)) {
19408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19409 }
19410 arg4 = static_cast< double >(val4);
19411 {
19412 PyThreadState* __tstate = wxPyBeginAllowThreads();
19413 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19414 wxPyEndAllowThreads(__tstate);
19415 if (PyErr_Occurred()) SWIG_fail;
19416 }
19417 resultobj = SWIG_Py_Void();
19418 {
19419 if (temp2)
19420 delete arg2;
19421 }
19422 return resultobj;
19423fail:
19424 {
19425 if (temp2)
19426 delete arg2;
19427 }
19428 return NULL;
19429}
19430
19431
19432SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19433 PyObject *resultobj = 0;
19434 wxDC *arg1 = (wxDC *) 0 ;
19435 int arg2 ;
19436 int arg3 ;
19437 int arg4 ;
19438 int arg5 ;
19439 wxDC *arg6 = (wxDC *) 0 ;
19440 int arg7 ;
19441 int arg8 ;
19442 int arg9 = (int) wxCOPY ;
19443 bool arg10 = (bool) false ;
19444 int arg11 = (int) -1 ;
19445 int arg12 = (int) -1 ;
19446 bool result;
19447 void *argp1 = 0 ;
19448 int res1 = 0 ;
19449 int val2 ;
19450 int ecode2 = 0 ;
19451 int val3 ;
19452 int ecode3 = 0 ;
19453 int val4 ;
19454 int ecode4 = 0 ;
19455 int val5 ;
19456 int ecode5 = 0 ;
19457 void *argp6 = 0 ;
19458 int res6 = 0 ;
19459 int val7 ;
19460 int ecode7 = 0 ;
19461 int val8 ;
19462 int ecode8 = 0 ;
19463 int val9 ;
19464 int ecode9 = 0 ;
19465 bool val10 ;
19466 int ecode10 = 0 ;
19467 int val11 ;
19468 int ecode11 = 0 ;
19469 int val12 ;
19470 int ecode12 = 0 ;
19471 PyObject * obj0 = 0 ;
19472 PyObject * obj1 = 0 ;
19473 PyObject * obj2 = 0 ;
19474 PyObject * obj3 = 0 ;
19475 PyObject * obj4 = 0 ;
19476 PyObject * obj5 = 0 ;
19477 PyObject * obj6 = 0 ;
19478 PyObject * obj7 = 0 ;
19479 PyObject * obj8 = 0 ;
19480 PyObject * obj9 = 0 ;
19481 PyObject * obj10 = 0 ;
19482 PyObject * obj11 = 0 ;
19483 char * kwnames[] = {
19484 (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
19485 };
19486
19487 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;
19488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19489 if (!SWIG_IsOK(res1)) {
19490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19491 }
19492 arg1 = reinterpret_cast< wxDC * >(argp1);
19493 ecode2 = SWIG_AsVal_int(obj1, &val2);
19494 if (!SWIG_IsOK(ecode2)) {
19495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19496 }
19497 arg2 = static_cast< int >(val2);
19498 ecode3 = SWIG_AsVal_int(obj2, &val3);
19499 if (!SWIG_IsOK(ecode3)) {
19500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19501 }
19502 arg3 = static_cast< int >(val3);
19503 ecode4 = SWIG_AsVal_int(obj3, &val4);
19504 if (!SWIG_IsOK(ecode4)) {
19505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19506 }
19507 arg4 = static_cast< int >(val4);
19508 ecode5 = SWIG_AsVal_int(obj4, &val5);
19509 if (!SWIG_IsOK(ecode5)) {
19510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19511 }
19512 arg5 = static_cast< int >(val5);
19513 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19514 if (!SWIG_IsOK(res6)) {
19515 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19516 }
19517 arg6 = reinterpret_cast< wxDC * >(argp6);
19518 ecode7 = SWIG_AsVal_int(obj6, &val7);
19519 if (!SWIG_IsOK(ecode7)) {
19520 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19521 }
19522 arg7 = static_cast< int >(val7);
19523 ecode8 = SWIG_AsVal_int(obj7, &val8);
19524 if (!SWIG_IsOK(ecode8)) {
19525 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19526 }
19527 arg8 = static_cast< int >(val8);
19528 if (obj8) {
19529 ecode9 = SWIG_AsVal_int(obj8, &val9);
19530 if (!SWIG_IsOK(ecode9)) {
19531 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19532 }
19533 arg9 = static_cast< int >(val9);
19534 }
19535 if (obj9) {
19536 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19537 if (!SWIG_IsOK(ecode10)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19539 }
19540 arg10 = static_cast< bool >(val10);
19541 }
19542 if (obj10) {
19543 ecode11 = SWIG_AsVal_int(obj10, &val11);
19544 if (!SWIG_IsOK(ecode11)) {
19545 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19546 }
19547 arg11 = static_cast< int >(val11);
19548 }
19549 if (obj11) {
19550 ecode12 = SWIG_AsVal_int(obj11, &val12);
19551 if (!SWIG_IsOK(ecode12)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19553 }
19554 arg12 = static_cast< int >(val12);
19555 }
19556 {
19557 PyThreadState* __tstate = wxPyBeginAllowThreads();
19558 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19559 wxPyEndAllowThreads(__tstate);
19560 if (PyErr_Occurred()) SWIG_fail;
19561 }
19562 {
19563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19564 }
19565 return resultobj;
19566fail:
19567 return NULL;
19568}
19569
19570
19571SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj = 0;
19573 wxDC *arg1 = (wxDC *) 0 ;
19574 wxPoint *arg2 = 0 ;
19575 wxSize *arg3 = 0 ;
19576 wxDC *arg4 = (wxDC *) 0 ;
19577 wxPoint *arg5 = 0 ;
19578 int arg6 = (int) wxCOPY ;
19579 bool arg7 = (bool) false ;
19580 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19581 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19582 bool result;
19583 void *argp1 = 0 ;
19584 int res1 = 0 ;
19585 wxPoint temp2 ;
19586 wxSize temp3 ;
19587 void *argp4 = 0 ;
19588 int res4 = 0 ;
19589 wxPoint temp5 ;
19590 int val6 ;
19591 int ecode6 = 0 ;
19592 bool val7 ;
19593 int ecode7 = 0 ;
19594 wxPoint temp8 ;
19595 PyObject * obj0 = 0 ;
19596 PyObject * obj1 = 0 ;
19597 PyObject * obj2 = 0 ;
19598 PyObject * obj3 = 0 ;
19599 PyObject * obj4 = 0 ;
19600 PyObject * obj5 = 0 ;
19601 PyObject * obj6 = 0 ;
19602 PyObject * obj7 = 0 ;
19603 char * kwnames[] = {
19604 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19605 };
19606
19607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19609 if (!SWIG_IsOK(res1)) {
19610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19611 }
19612 arg1 = reinterpret_cast< wxDC * >(argp1);
19613 {
19614 arg2 = &temp2;
19615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19616 }
19617 {
19618 arg3 = &temp3;
19619 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19620 }
19621 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19622 if (!SWIG_IsOK(res4)) {
19623 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19624 }
19625 arg4 = reinterpret_cast< wxDC * >(argp4);
19626 {
19627 arg5 = &temp5;
19628 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19629 }
19630 if (obj5) {
19631 ecode6 = SWIG_AsVal_int(obj5, &val6);
19632 if (!SWIG_IsOK(ecode6)) {
19633 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19634 }
19635 arg6 = static_cast< int >(val6);
19636 }
19637 if (obj6) {
19638 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19639 if (!SWIG_IsOK(ecode7)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19641 }
19642 arg7 = static_cast< bool >(val7);
19643 }
19644 if (obj7) {
36ed4f51 19645 {
1bd55598
RD
19646 arg8 = &temp8;
19647 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19648 }
1bd55598
RD
19649 }
19650 {
19651 PyThreadState* __tstate = wxPyBeginAllowThreads();
19652 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 {
19657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19658 }
19659 return resultobj;
19660fail:
19661 return NULL;
19662}
19663
19664
19665SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19666 PyObject *resultobj = 0;
19667 wxDC *arg1 = (wxDC *) 0 ;
19668 int arg2 ;
19669 int arg3 ;
19670 int arg4 ;
19671 int arg5 ;
19672 void *argp1 = 0 ;
19673 int res1 = 0 ;
19674 int val2 ;
19675 int ecode2 = 0 ;
19676 int val3 ;
19677 int ecode3 = 0 ;
19678 int val4 ;
19679 int ecode4 = 0 ;
19680 int val5 ;
19681 int ecode5 = 0 ;
19682 PyObject * obj0 = 0 ;
19683 PyObject * obj1 = 0 ;
19684 PyObject * obj2 = 0 ;
19685 PyObject * obj3 = 0 ;
19686 PyObject * obj4 = 0 ;
19687 char * kwnames[] = {
19688 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19689 };
19690
19691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19693 if (!SWIG_IsOK(res1)) {
19694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19695 }
19696 arg1 = reinterpret_cast< wxDC * >(argp1);
19697 ecode2 = SWIG_AsVal_int(obj1, &val2);
19698 if (!SWIG_IsOK(ecode2)) {
19699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19700 }
19701 arg2 = static_cast< int >(val2);
19702 ecode3 = SWIG_AsVal_int(obj2, &val3);
19703 if (!SWIG_IsOK(ecode3)) {
19704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19705 }
19706 arg3 = static_cast< int >(val3);
19707 ecode4 = SWIG_AsVal_int(obj3, &val4);
19708 if (!SWIG_IsOK(ecode4)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19710 }
19711 arg4 = static_cast< int >(val4);
19712 ecode5 = SWIG_AsVal_int(obj4, &val5);
19713 if (!SWIG_IsOK(ecode5)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19715 }
19716 arg5 = static_cast< int >(val5);
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_Py_Void();
19724 return resultobj;
19725fail:
19726 return NULL;
19727}
19728
19729
19730SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxDC *arg1 = (wxDC *) 0 ;
19733 wxPoint *arg2 = 0 ;
19734 wxSize *arg3 = 0 ;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 wxPoint temp2 ;
19738 wxSize temp3 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 PyObject * obj2 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "pt",(char *) "sz", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19750 }
19751 arg1 = reinterpret_cast< wxDC * >(argp1);
19752 {
19753 arg2 = &temp2;
19754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19755 }
19756 {
19757 arg3 = &temp3;
19758 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19759 }
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 resultobj = SWIG_Py_Void();
19767 return resultobj;
19768fail:
19769 return NULL;
19770}
19771
19772
19773SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19774 PyObject *resultobj = 0;
19775 wxDC *arg1 = (wxDC *) 0 ;
19776 wxRegion *arg2 = 0 ;
19777 void *argp1 = 0 ;
19778 int res1 = 0 ;
19779 void *argp2 = 0 ;
19780 int res2 = 0 ;
19781 PyObject * obj0 = 0 ;
19782 PyObject * obj1 = 0 ;
19783 char * kwnames[] = {
19784 (char *) "self",(char *) "region", NULL
19785 };
19786
19787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19789 if (!SWIG_IsOK(res1)) {
19790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19791 }
19792 arg1 = reinterpret_cast< wxDC * >(argp1);
19793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19794 if (!SWIG_IsOK(res2)) {
19795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19796 }
19797 if (!argp2) {
19798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19799 }
19800 arg2 = reinterpret_cast< wxRegion * >(argp2);
19801 {
19802 PyThreadState* __tstate = wxPyBeginAllowThreads();
19803 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19804 wxPyEndAllowThreads(__tstate);
19805 if (PyErr_Occurred()) SWIG_fail;
19806 }
19807 resultobj = SWIG_Py_Void();
19808 return resultobj;
19809fail:
19810 return NULL;
19811}
19812
19813
19814SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj = 0;
19816 wxDC *arg1 = (wxDC *) 0 ;
19817 wxRect *arg2 = 0 ;
19818 void *argp1 = 0 ;
19819 int res1 = 0 ;
19820 wxRect temp2 ;
19821 PyObject * obj0 = 0 ;
19822 PyObject * obj1 = 0 ;
19823 char * kwnames[] = {
19824 (char *) "self",(char *) "rect", NULL
19825 };
19826
19827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19829 if (!SWIG_IsOK(res1)) {
19830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19831 }
19832 arg1 = reinterpret_cast< wxDC * >(argp1);
19833 {
19834 arg2 = &temp2;
19835 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19836 }
19837 {
19838 PyThreadState* __tstate = wxPyBeginAllowThreads();
19839 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19840 wxPyEndAllowThreads(__tstate);
19841 if (PyErr_Occurred()) SWIG_fail;
19842 }
19843 resultobj = SWIG_Py_Void();
19844 return resultobj;
19845fail:
19846 return NULL;
19847}
19848
19849
19850SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19851 PyObject *resultobj = 0;
19852 wxDC *arg1 = (wxDC *) 0 ;
19853 int arg2 ;
19854 wxPoint *arg3 = (wxPoint *) 0 ;
19855 int arg4 = (int) 0 ;
19856 int arg5 = (int) 0 ;
19857 void *argp1 = 0 ;
19858 int res1 = 0 ;
19859 int val4 ;
19860 int ecode4 = 0 ;
19861 int val5 ;
19862 int ecode5 = 0 ;
19863 PyObject * obj0 = 0 ;
19864 PyObject * obj1 = 0 ;
19865 PyObject * obj2 = 0 ;
19866 PyObject * obj3 = 0 ;
19867 char * kwnames[] = {
19868 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19869 };
19870
19871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19873 if (!SWIG_IsOK(res1)) {
19874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19875 }
19876 arg1 = reinterpret_cast< wxDC * >(argp1);
19877 {
19878 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19879 if (arg3 == NULL) SWIG_fail;
19880 }
19881 if (obj2) {
19882 ecode4 = SWIG_AsVal_int(obj2, &val4);
19883 if (!SWIG_IsOK(ecode4)) {
19884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19885 }
19886 arg4 = static_cast< int >(val4);
19887 }
19888 if (obj3) {
19889 ecode5 = SWIG_AsVal_int(obj3, &val5);
19890 if (!SWIG_IsOK(ecode5)) {
19891 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19892 }
19893 arg5 = static_cast< int >(val5);
19894 }
19895 {
19896 PyThreadState* __tstate = wxPyBeginAllowThreads();
19897 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19898 wxPyEndAllowThreads(__tstate);
19899 if (PyErr_Occurred()) SWIG_fail;
19900 }
19901 resultobj = SWIG_Py_Void();
19902 {
19903 if (arg3) delete [] arg3;
19904 }
19905 return resultobj;
19906fail:
19907 {
19908 if (arg3) delete [] arg3;
19909 }
19910 return NULL;
19911}
19912
19913
19914SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19915 PyObject *resultobj = 0;
19916 wxDC *arg1 = (wxDC *) 0 ;
19917 int arg2 ;
19918 wxPoint *arg3 = (wxPoint *) 0 ;
19919 int arg4 = (int) 0 ;
19920 int arg5 = (int) 0 ;
19921 int arg6 = (int) wxODDEVEN_RULE ;
19922 void *argp1 = 0 ;
19923 int res1 = 0 ;
19924 int val4 ;
19925 int ecode4 = 0 ;
19926 int val5 ;
19927 int ecode5 = 0 ;
19928 int val6 ;
19929 int ecode6 = 0 ;
19930 PyObject * obj0 = 0 ;
19931 PyObject * obj1 = 0 ;
19932 PyObject * obj2 = 0 ;
19933 PyObject * obj3 = 0 ;
19934 PyObject * obj4 = 0 ;
19935 char * kwnames[] = {
19936 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19937 };
19938
19939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19941 if (!SWIG_IsOK(res1)) {
19942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19943 }
19944 arg1 = reinterpret_cast< wxDC * >(argp1);
19945 {
19946 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19947 if (arg3 == NULL) SWIG_fail;
19948 }
19949 if (obj2) {
19950 ecode4 = SWIG_AsVal_int(obj2, &val4);
19951 if (!SWIG_IsOK(ecode4)) {
19952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19953 }
19954 arg4 = static_cast< int >(val4);
19955 }
19956 if (obj3) {
19957 ecode5 = SWIG_AsVal_int(obj3, &val5);
19958 if (!SWIG_IsOK(ecode5)) {
19959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19960 }
19961 arg5 = static_cast< int >(val5);
19962 }
19963 if (obj4) {
19964 ecode6 = SWIG_AsVal_int(obj4, &val6);
19965 if (!SWIG_IsOK(ecode6)) {
19966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19967 }
19968 arg6 = static_cast< int >(val6);
19969 }
19970 {
19971 PyThreadState* __tstate = wxPyBeginAllowThreads();
19972 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19973 wxPyEndAllowThreads(__tstate);
19974 if (PyErr_Occurred()) SWIG_fail;
19975 }
19976 resultobj = SWIG_Py_Void();
19977 {
19978 if (arg3) delete [] arg3;
19979 }
19980 return resultobj;
19981fail:
19982 {
19983 if (arg3) delete [] arg3;
19984 }
19985 return NULL;
19986}
19987
19988
19989SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj = 0;
19991 wxDC *arg1 = (wxDC *) 0 ;
19992 wxString *arg2 = 0 ;
19993 wxRect *arg3 = 0 ;
19994 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19995 int arg5 = (int) -1 ;
19996 void *argp1 = 0 ;
19997 int res1 = 0 ;
19998 bool temp2 = false ;
19999 wxRect temp3 ;
20000 int val4 ;
20001 int ecode4 = 0 ;
20002 int val5 ;
20003 int ecode5 = 0 ;
20004 PyObject * obj0 = 0 ;
20005 PyObject * obj1 = 0 ;
20006 PyObject * obj2 = 0 ;
20007 PyObject * obj3 = 0 ;
20008 PyObject * obj4 = 0 ;
20009 char * kwnames[] = {
20010 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20011 };
20012
20013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20015 if (!SWIG_IsOK(res1)) {
20016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20017 }
20018 arg1 = reinterpret_cast< wxDC * >(argp1);
20019 {
20020 arg2 = wxString_in_helper(obj1);
20021 if (arg2 == NULL) SWIG_fail;
20022 temp2 = true;
20023 }
20024 {
20025 arg3 = &temp3;
20026 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20027 }
20028 if (obj3) {
20029 ecode4 = SWIG_AsVal_int(obj3, &val4);
20030 if (!SWIG_IsOK(ecode4)) {
20031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20032 }
20033 arg4 = static_cast< int >(val4);
20034 }
20035 if (obj4) {
20036 ecode5 = SWIG_AsVal_int(obj4, &val5);
20037 if (!SWIG_IsOK(ecode5)) {
20038 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20039 }
20040 arg5 = static_cast< int >(val5);
20041 }
20042 {
20043 PyThreadState* __tstate = wxPyBeginAllowThreads();
20044 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20045 wxPyEndAllowThreads(__tstate);
20046 if (PyErr_Occurred()) SWIG_fail;
20047 }
20048 resultobj = SWIG_Py_Void();
20049 {
20050 if (temp2)
20051 delete arg2;
20052 }
20053 return resultobj;
20054fail:
20055 {
20056 if (temp2)
20057 delete arg2;
20058 }
20059 return NULL;
20060}
20061
20062
20063SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20064 PyObject *resultobj = 0;
20065 wxDC *arg1 = (wxDC *) 0 ;
20066 wxString *arg2 = 0 ;
20067 wxBitmap *arg3 = 0 ;
20068 wxRect *arg4 = 0 ;
20069 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20070 int arg6 = (int) -1 ;
20071 wxRect result;
20072 void *argp1 = 0 ;
20073 int res1 = 0 ;
20074 bool temp2 = false ;
20075 void *argp3 = 0 ;
20076 int res3 = 0 ;
20077 wxRect temp4 ;
20078 int val5 ;
20079 int ecode5 = 0 ;
20080 int val6 ;
20081 int ecode6 = 0 ;
20082 PyObject * obj0 = 0 ;
20083 PyObject * obj1 = 0 ;
20084 PyObject * obj2 = 0 ;
20085 PyObject * obj3 = 0 ;
20086 PyObject * obj4 = 0 ;
20087 PyObject * obj5 = 0 ;
20088 char * kwnames[] = {
20089 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20090 };
20091
20092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20094 if (!SWIG_IsOK(res1)) {
20095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20096 }
20097 arg1 = reinterpret_cast< wxDC * >(argp1);
20098 {
20099 arg2 = wxString_in_helper(obj1);
20100 if (arg2 == NULL) SWIG_fail;
20101 temp2 = true;
20102 }
20103 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20104 if (!SWIG_IsOK(res3)) {
20105 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20106 }
20107 if (!argp3) {
20108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20109 }
20110 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20111 {
20112 arg4 = &temp4;
20113 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20114 }
20115 if (obj4) {
20116 ecode5 = SWIG_AsVal_int(obj4, &val5);
20117 if (!SWIG_IsOK(ecode5)) {
20118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20119 }
20120 arg5 = static_cast< int >(val5);
20121 }
20122 if (obj5) {
20123 ecode6 = SWIG_AsVal_int(obj5, &val6);
20124 if (!SWIG_IsOK(ecode6)) {
20125 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20126 }
20127 arg6 = static_cast< int >(val6);
20128 }
20129 {
20130 PyThreadState* __tstate = wxPyBeginAllowThreads();
20131 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20132 wxPyEndAllowThreads(__tstate);
20133 if (PyErr_Occurred()) SWIG_fail;
20134 }
20135 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
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_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20151 PyObject *resultobj = 0;
20152 wxDC *arg1 = (wxDC *) 0 ;
20153 int arg2 ;
20154 wxPoint *arg3 = (wxPoint *) 0 ;
20155 void *argp1 = 0 ;
20156 int res1 = 0 ;
20157 PyObject * obj0 = 0 ;
20158 PyObject * obj1 = 0 ;
20159 char * kwnames[] = {
20160 (char *) "self",(char *) "points", NULL
20161 };
20162
20163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20165 if (!SWIG_IsOK(res1)) {
20166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20167 }
20168 arg1 = reinterpret_cast< wxDC * >(argp1);
20169 {
20170 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20171 if (arg3 == NULL) SWIG_fail;
20172 }
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 (arg1)->DrawSpline(arg2,arg3);
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 resultobj = SWIG_Py_Void();
20180 {
20181 if (arg3) delete [] arg3;
20182 }
20183 return resultobj;
20184fail:
20185 {
20186 if (arg3) delete [] arg3;
20187 }
20188 return NULL;
20189}
20190
20191
20192SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20193 PyObject *resultobj = 0;
20194 wxDC *arg1 = (wxDC *) 0 ;
20195 void *argp1 = 0 ;
20196 int res1 = 0 ;
20197 PyObject *swig_obj[1] ;
20198
20199 if (!args) SWIG_fail;
20200 swig_obj[0] = args;
20201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20202 if (!SWIG_IsOK(res1)) {
20203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20204 }
20205 arg1 = reinterpret_cast< wxDC * >(argp1);
20206 {
20207 PyThreadState* __tstate = wxPyBeginAllowThreads();
20208 (arg1)->Clear();
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 resultobj = SWIG_Py_Void();
20213 return resultobj;
20214fail:
20215 return NULL;
20216}
20217
20218
20219SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj = 0;
20221 wxDC *arg1 = (wxDC *) 0 ;
20222 wxString *arg2 = 0 ;
20223 bool result;
20224 void *argp1 = 0 ;
20225 int res1 = 0 ;
20226 bool temp2 = false ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 char * kwnames[] = {
20230 (char *) "self",(char *) "message", NULL
20231 };
20232
20233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20235 if (!SWIG_IsOK(res1)) {
20236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20237 }
20238 arg1 = reinterpret_cast< wxDC * >(argp1);
20239 {
20240 arg2 = wxString_in_helper(obj1);
20241 if (arg2 == NULL) SWIG_fail;
20242 temp2 = true;
20243 }
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 {
20251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20252 }
20253 {
20254 if (temp2)
20255 delete arg2;
20256 }
20257 return resultobj;
20258fail:
20259 {
20260 if (temp2)
20261 delete arg2;
20262 }
20263 return NULL;
20264}
20265
20266
20267SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20268 PyObject *resultobj = 0;
20269 wxDC *arg1 = (wxDC *) 0 ;
20270 void *argp1 = 0 ;
20271 int res1 = 0 ;
20272 PyObject *swig_obj[1] ;
20273
20274 if (!args) SWIG_fail;
20275 swig_obj[0] = args;
20276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20277 if (!SWIG_IsOK(res1)) {
20278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20279 }
20280 arg1 = reinterpret_cast< wxDC * >(argp1);
20281 {
20282 PyThreadState* __tstate = wxPyBeginAllowThreads();
20283 (arg1)->EndDoc();
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 resultobj = SWIG_Py_Void();
20288 return resultobj;
20289fail:
20290 return NULL;
20291}
20292
20293
20294SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20295 PyObject *resultobj = 0;
20296 wxDC *arg1 = (wxDC *) 0 ;
20297 void *argp1 = 0 ;
20298 int res1 = 0 ;
20299 PyObject *swig_obj[1] ;
20300
20301 if (!args) SWIG_fail;
20302 swig_obj[0] = args;
20303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20304 if (!SWIG_IsOK(res1)) {
20305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20306 }
20307 arg1 = reinterpret_cast< wxDC * >(argp1);
20308 {
20309 PyThreadState* __tstate = wxPyBeginAllowThreads();
20310 (arg1)->StartPage();
20311 wxPyEndAllowThreads(__tstate);
20312 if (PyErr_Occurred()) SWIG_fail;
20313 }
20314 resultobj = SWIG_Py_Void();
20315 return resultobj;
20316fail:
20317 return NULL;
20318}
20319
20320
20321SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20322 PyObject *resultobj = 0;
20323 wxDC *arg1 = (wxDC *) 0 ;
20324 void *argp1 = 0 ;
20325 int res1 = 0 ;
20326 PyObject *swig_obj[1] ;
20327
20328 if (!args) SWIG_fail;
20329 swig_obj[0] = args;
20330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20331 if (!SWIG_IsOK(res1)) {
20332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20333 }
20334 arg1 = reinterpret_cast< wxDC * >(argp1);
20335 {
20336 PyThreadState* __tstate = wxPyBeginAllowThreads();
20337 (arg1)->EndPage();
20338 wxPyEndAllowThreads(__tstate);
20339 if (PyErr_Occurred()) SWIG_fail;
20340 }
20341 resultobj = SWIG_Py_Void();
20342 return resultobj;
20343fail:
20344 return NULL;
20345}
20346
20347
20348SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20349 PyObject *resultobj = 0;
20350 wxDC *arg1 = (wxDC *) 0 ;
20351 wxFont *arg2 = 0 ;
20352 void *argp1 = 0 ;
20353 int res1 = 0 ;
20354 void *argp2 = 0 ;
20355 int res2 = 0 ;
20356 PyObject * obj0 = 0 ;
20357 PyObject * obj1 = 0 ;
20358 char * kwnames[] = {
20359 (char *) "self",(char *) "font", NULL
20360 };
20361
20362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20364 if (!SWIG_IsOK(res1)) {
20365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20366 }
20367 arg1 = reinterpret_cast< wxDC * >(argp1);
20368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20369 if (!SWIG_IsOK(res2)) {
20370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20371 }
20372 if (!argp2) {
20373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20374 }
20375 arg2 = reinterpret_cast< wxFont * >(argp2);
20376 {
20377 PyThreadState* __tstate = wxPyBeginAllowThreads();
20378 (arg1)->SetFont((wxFont const &)*arg2);
20379 wxPyEndAllowThreads(__tstate);
20380 if (PyErr_Occurred()) SWIG_fail;
20381 }
20382 resultobj = SWIG_Py_Void();
20383 return resultobj;
20384fail:
20385 return NULL;
20386}
20387
20388
20389SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20390 PyObject *resultobj = 0;
20391 wxDC *arg1 = (wxDC *) 0 ;
20392 wxPen *arg2 = 0 ;
20393 void *argp1 = 0 ;
20394 int res1 = 0 ;
20395 void *argp2 = 0 ;
20396 int res2 = 0 ;
20397 PyObject * obj0 = 0 ;
20398 PyObject * obj1 = 0 ;
20399 char * kwnames[] = {
20400 (char *) "self",(char *) "pen", NULL
20401 };
20402
20403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20405 if (!SWIG_IsOK(res1)) {
20406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20407 }
20408 arg1 = reinterpret_cast< wxDC * >(argp1);
20409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20410 if (!SWIG_IsOK(res2)) {
20411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20412 }
20413 if (!argp2) {
20414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20415 }
20416 arg2 = reinterpret_cast< wxPen * >(argp2);
20417 {
20418 PyThreadState* __tstate = wxPyBeginAllowThreads();
20419 (arg1)->SetPen((wxPen const &)*arg2);
20420 wxPyEndAllowThreads(__tstate);
20421 if (PyErr_Occurred()) SWIG_fail;
20422 }
20423 resultobj = SWIG_Py_Void();
20424 return resultobj;
20425fail:
20426 return NULL;
20427}
20428
20429
20430SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20431 PyObject *resultobj = 0;
20432 wxDC *arg1 = (wxDC *) 0 ;
20433 wxBrush *arg2 = 0 ;
20434 void *argp1 = 0 ;
20435 int res1 = 0 ;
20436 void *argp2 = 0 ;
20437 int res2 = 0 ;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440 char * kwnames[] = {
20441 (char *) "self",(char *) "brush", NULL
20442 };
20443
20444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20446 if (!SWIG_IsOK(res1)) {
20447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20448 }
20449 arg1 = reinterpret_cast< wxDC * >(argp1);
20450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20451 if (!SWIG_IsOK(res2)) {
20452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20453 }
20454 if (!argp2) {
20455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20456 }
20457 arg2 = reinterpret_cast< wxBrush * >(argp2);
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 (arg1)->SetBrush((wxBrush const &)*arg2);
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = SWIG_Py_Void();
20465 return resultobj;
20466fail:
20467 return NULL;
20468}
20469
20470
20471SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20472 PyObject *resultobj = 0;
20473 wxDC *arg1 = (wxDC *) 0 ;
20474 wxBrush *arg2 = 0 ;
20475 void *argp1 = 0 ;
20476 int res1 = 0 ;
20477 void *argp2 = 0 ;
20478 int res2 = 0 ;
20479 PyObject * obj0 = 0 ;
20480 PyObject * obj1 = 0 ;
20481 char * kwnames[] = {
20482 (char *) "self",(char *) "brush", NULL
20483 };
20484
20485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20489 }
20490 arg1 = reinterpret_cast< wxDC * >(argp1);
20491 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20492 if (!SWIG_IsOK(res2)) {
20493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20494 }
20495 if (!argp2) {
20496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20497 }
20498 arg2 = reinterpret_cast< wxBrush * >(argp2);
20499 {
20500 PyThreadState* __tstate = wxPyBeginAllowThreads();
20501 (arg1)->SetBackground((wxBrush const &)*arg2);
20502 wxPyEndAllowThreads(__tstate);
20503 if (PyErr_Occurred()) SWIG_fail;
20504 }
20505 resultobj = SWIG_Py_Void();
20506 return resultobj;
20507fail:
20508 return NULL;
20509}
20510
20511
20512SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20513 PyObject *resultobj = 0;
20514 wxDC *arg1 = (wxDC *) 0 ;
20515 int arg2 ;
20516 void *argp1 = 0 ;
20517 int res1 = 0 ;
20518 int val2 ;
20519 int ecode2 = 0 ;
20520 PyObject * obj0 = 0 ;
20521 PyObject * obj1 = 0 ;
20522 char * kwnames[] = {
20523 (char *) "self",(char *) "mode", NULL
20524 };
20525
20526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20528 if (!SWIG_IsOK(res1)) {
20529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20530 }
20531 arg1 = reinterpret_cast< wxDC * >(argp1);
20532 ecode2 = SWIG_AsVal_int(obj1, &val2);
20533 if (!SWIG_IsOK(ecode2)) {
20534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20535 }
20536 arg2 = static_cast< int >(val2);
20537 {
20538 PyThreadState* __tstate = wxPyBeginAllowThreads();
20539 (arg1)->SetBackgroundMode(arg2);
20540 wxPyEndAllowThreads(__tstate);
20541 if (PyErr_Occurred()) SWIG_fail;
20542 }
20543 resultobj = SWIG_Py_Void();
20544 return resultobj;
20545fail:
20546 return NULL;
20547}
20548
20549
20550SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20551 PyObject *resultobj = 0;
20552 wxDC *arg1 = (wxDC *) 0 ;
20553 wxPalette *arg2 = 0 ;
20554 void *argp1 = 0 ;
20555 int res1 = 0 ;
20556 void *argp2 = 0 ;
20557 int res2 = 0 ;
20558 PyObject * obj0 = 0 ;
20559 PyObject * obj1 = 0 ;
20560 char * kwnames[] = {
20561 (char *) "self",(char *) "palette", NULL
20562 };
20563
20564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20566 if (!SWIG_IsOK(res1)) {
20567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20568 }
20569 arg1 = reinterpret_cast< wxDC * >(argp1);
20570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20571 if (!SWIG_IsOK(res2)) {
20572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20573 }
20574 if (!argp2) {
20575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20576 }
20577 arg2 = reinterpret_cast< wxPalette * >(argp2);
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 (arg1)->SetPalette((wxPalette const &)*arg2);
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 resultobj = SWIG_Py_Void();
20585 return resultobj;
20586fail:
20587 return NULL;
20588}
20589
20590
20591SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20592 PyObject *resultobj = 0;
20593 wxDC *arg1 = (wxDC *) 0 ;
20594 void *argp1 = 0 ;
20595 int res1 = 0 ;
20596 PyObject *swig_obj[1] ;
20597
20598 if (!args) SWIG_fail;
20599 swig_obj[0] = args;
20600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20601 if (!SWIG_IsOK(res1)) {
20602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20603 }
20604 arg1 = reinterpret_cast< wxDC * >(argp1);
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 (arg1)->DestroyClippingRegion();
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 resultobj = SWIG_Py_Void();
20612 return resultobj;
20613fail:
20614 return NULL;
20615}
20616
20617
20618SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20619 PyObject *resultobj = 0;
20620 wxDC *arg1 = (wxDC *) 0 ;
20621 int *arg2 = (int *) 0 ;
20622 int *arg3 = (int *) 0 ;
20623 int *arg4 = (int *) 0 ;
20624 int *arg5 = (int *) 0 ;
20625 void *argp1 = 0 ;
20626 int res1 = 0 ;
20627 int temp2 ;
20628 int res2 = SWIG_TMPOBJ ;
20629 int temp3 ;
20630 int res3 = SWIG_TMPOBJ ;
20631 int temp4 ;
20632 int res4 = SWIG_TMPOBJ ;
20633 int temp5 ;
20634 int res5 = SWIG_TMPOBJ ;
20635 PyObject *swig_obj[1] ;
20636
20637 arg2 = &temp2;
20638 arg3 = &temp3;
20639 arg4 = &temp4;
20640 arg5 = &temp5;
20641 if (!args) SWIG_fail;
20642 swig_obj[0] = args;
20643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20644 if (!SWIG_IsOK(res1)) {
20645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20646 }
20647 arg1 = reinterpret_cast< wxDC * >(argp1);
20648 {
20649 PyThreadState* __tstate = wxPyBeginAllowThreads();
20650 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20651 wxPyEndAllowThreads(__tstate);
20652 if (PyErr_Occurred()) SWIG_fail;
20653 }
20654 resultobj = SWIG_Py_Void();
20655 if (SWIG_IsTmpObj(res2)) {
20656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20657 } else {
20658 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20660 }
20661 if (SWIG_IsTmpObj(res3)) {
20662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20663 } else {
20664 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20666 }
20667 if (SWIG_IsTmpObj(res4)) {
20668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20669 } else {
20670 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20672 }
20673 if (SWIG_IsTmpObj(res5)) {
20674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20675 } else {
20676 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20678 }
20679 return resultobj;
20680fail:
20681 return NULL;
20682}
20683
20684
20685SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20686 PyObject *resultobj = 0;
20687 wxDC *arg1 = (wxDC *) 0 ;
20688 wxRect result;
20689 void *argp1 = 0 ;
20690 int res1 = 0 ;
20691 PyObject *swig_obj[1] ;
20692
20693 if (!args) SWIG_fail;
20694 swig_obj[0] = args;
20695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20696 if (!SWIG_IsOK(res1)) {
20697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20698 }
20699 arg1 = reinterpret_cast< wxDC * >(argp1);
20700 {
20701 PyThreadState* __tstate = wxPyBeginAllowThreads();
20702 result = wxDC_GetClippingRect(arg1);
20703 wxPyEndAllowThreads(__tstate);
20704 if (PyErr_Occurred()) SWIG_fail;
20705 }
20706 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20707 return resultobj;
20708fail:
20709 return NULL;
20710}
20711
20712
20713SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20714 PyObject *resultobj = 0;
20715 wxDC *arg1 = (wxDC *) 0 ;
20716 int result;
20717 void *argp1 = 0 ;
20718 int res1 = 0 ;
20719 PyObject *swig_obj[1] ;
20720
20721 if (!args) SWIG_fail;
20722 swig_obj[0] = args;
20723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20724 if (!SWIG_IsOK(res1)) {
20725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20726 }
20727 arg1 = reinterpret_cast< wxDC * >(argp1);
20728 {
20729 PyThreadState* __tstate = wxPyBeginAllowThreads();
20730 result = (int)((wxDC const *)arg1)->GetCharHeight();
20731 wxPyEndAllowThreads(__tstate);
20732 if (PyErr_Occurred()) SWIG_fail;
20733 }
20734 resultobj = SWIG_From_int(static_cast< int >(result));
20735 return resultobj;
20736fail:
20737 return NULL;
20738}
20739
20740
20741SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20742 PyObject *resultobj = 0;
20743 wxDC *arg1 = (wxDC *) 0 ;
20744 int result;
20745 void *argp1 = 0 ;
20746 int res1 = 0 ;
20747 PyObject *swig_obj[1] ;
20748
20749 if (!args) SWIG_fail;
20750 swig_obj[0] = args;
20751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20752 if (!SWIG_IsOK(res1)) {
20753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20754 }
20755 arg1 = reinterpret_cast< wxDC * >(argp1);
20756 {
20757 PyThreadState* __tstate = wxPyBeginAllowThreads();
20758 result = (int)((wxDC const *)arg1)->GetCharWidth();
20759 wxPyEndAllowThreads(__tstate);
20760 if (PyErr_Occurred()) SWIG_fail;
20761 }
20762 resultobj = SWIG_From_int(static_cast< int >(result));
20763 return resultobj;
20764fail:
20765 return NULL;
20766}
20767
20768
20769SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20770 PyObject *resultobj = 0;
20771 wxDC *arg1 = (wxDC *) 0 ;
20772 wxString *arg2 = 0 ;
20773 int *arg3 = (int *) 0 ;
20774 int *arg4 = (int *) 0 ;
20775 void *argp1 = 0 ;
20776 int res1 = 0 ;
20777 bool temp2 = false ;
20778 int temp3 ;
20779 int res3 = SWIG_TMPOBJ ;
20780 int temp4 ;
20781 int res4 = SWIG_TMPOBJ ;
20782 PyObject * obj0 = 0 ;
20783 PyObject * obj1 = 0 ;
20784 char * kwnames[] = {
20785 (char *) "self",(char *) "string", NULL
20786 };
20787
20788 arg3 = &temp3;
20789 arg4 = &temp4;
20790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20794 }
20795 arg1 = reinterpret_cast< wxDC * >(argp1);
20796 {
20797 arg2 = wxString_in_helper(obj1);
20798 if (arg2 == NULL) SWIG_fail;
20799 temp2 = true;
20800 }
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_Py_Void();
20808 if (SWIG_IsTmpObj(res3)) {
20809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20810 } else {
20811 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20813 }
20814 if (SWIG_IsTmpObj(res4)) {
20815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20816 } else {
20817 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20818 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20819 }
20820 {
20821 if (temp2)
20822 delete arg2;
20823 }
20824 return resultobj;
20825fail:
20826 {
20827 if (temp2)
20828 delete arg2;
20829 }
20830 return NULL;
20831}
20832
20833
20834SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20835 PyObject *resultobj = 0;
20836 wxDC *arg1 = (wxDC *) 0 ;
20837 wxString *arg2 = 0 ;
20838 int *arg3 = (int *) 0 ;
20839 int *arg4 = (int *) 0 ;
20840 int *arg5 = (int *) 0 ;
20841 int *arg6 = (int *) 0 ;
20842 wxFont *arg7 = (wxFont *) NULL ;
20843 void *argp1 = 0 ;
20844 int res1 = 0 ;
20845 bool temp2 = false ;
20846 int temp3 ;
20847 int res3 = SWIG_TMPOBJ ;
20848 int temp4 ;
20849 int res4 = SWIG_TMPOBJ ;
20850 int temp5 ;
20851 int res5 = SWIG_TMPOBJ ;
20852 int temp6 ;
20853 int res6 = SWIG_TMPOBJ ;
20854 void *argp7 = 0 ;
20855 int res7 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 PyObject * obj1 = 0 ;
20858 PyObject * obj2 = 0 ;
20859 char * kwnames[] = {
20860 (char *) "self",(char *) "string",(char *) "font", NULL
20861 };
20862
20863 arg3 = &temp3;
20864 arg4 = &temp4;
20865 arg5 = &temp5;
20866 arg6 = &temp6;
20867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20871 }
20872 arg1 = reinterpret_cast< wxDC * >(argp1);
20873 {
20874 arg2 = wxString_in_helper(obj1);
20875 if (arg2 == NULL) SWIG_fail;
20876 temp2 = true;
20877 }
20878 if (obj2) {
20879 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20880 if (!SWIG_IsOK(res7)) {
20881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 20882 }
1bd55598
RD
20883 arg7 = reinterpret_cast< wxFont * >(argp7);
20884 }
20885 {
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 resultobj = SWIG_Py_Void();
20892 if (SWIG_IsTmpObj(res3)) {
20893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20894 } else {
20895 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20897 }
20898 if (SWIG_IsTmpObj(res4)) {
20899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20900 } else {
20901 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20903 }
20904 if (SWIG_IsTmpObj(res5)) {
20905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20906 } else {
20907 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20909 }
20910 if (SWIG_IsTmpObj(res6)) {
20911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20912 } else {
20913 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20915 }
20916 {
20917 if (temp2)
20918 delete arg2;
20919 }
20920 return resultobj;
20921fail:
20922 {
20923 if (temp2)
20924 delete arg2;
20925 }
20926 return NULL;
20927}
20928
20929
20930SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20931 PyObject *resultobj = 0;
20932 wxDC *arg1 = (wxDC *) 0 ;
20933 wxString *arg2 = 0 ;
20934 int *arg3 = (int *) 0 ;
20935 int *arg4 = (int *) 0 ;
20936 int *arg5 = (int *) 0 ;
20937 wxFont *arg6 = (wxFont *) NULL ;
20938 void *argp1 = 0 ;
20939 int res1 = 0 ;
20940 bool temp2 = false ;
20941 int temp3 ;
20942 int res3 = SWIG_TMPOBJ ;
20943 int temp4 ;
20944 int res4 = SWIG_TMPOBJ ;
20945 int temp5 ;
20946 int res5 = SWIG_TMPOBJ ;
20947 void *argp6 = 0 ;
20948 int res6 = 0 ;
20949 PyObject * obj0 = 0 ;
20950 PyObject * obj1 = 0 ;
20951 PyObject * obj2 = 0 ;
20952 char * kwnames[] = {
20953 (char *) "self",(char *) "text",(char *) "font", NULL
20954 };
20955
20956 arg3 = &temp3;
20957 arg4 = &temp4;
20958 arg5 = &temp5;
20959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20961 if (!SWIG_IsOK(res1)) {
20962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20963 }
20964 arg1 = reinterpret_cast< wxDC * >(argp1);
20965 {
20966 arg2 = wxString_in_helper(obj1);
20967 if (arg2 == NULL) SWIG_fail;
20968 temp2 = true;
20969 }
20970 if (obj2) {
20971 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20972 if (!SWIG_IsOK(res6)) {
20973 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 20974 }
1bd55598
RD
20975 arg6 = reinterpret_cast< wxFont * >(argp6);
20976 }
20977 {
20978 PyThreadState* __tstate = wxPyBeginAllowThreads();
20979 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20980 wxPyEndAllowThreads(__tstate);
20981 if (PyErr_Occurred()) SWIG_fail;
20982 }
20983 resultobj = SWIG_Py_Void();
20984 if (SWIG_IsTmpObj(res3)) {
20985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20986 } else {
20987 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20989 }
20990 if (SWIG_IsTmpObj(res4)) {
20991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20992 } else {
20993 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20995 }
20996 if (SWIG_IsTmpObj(res5)) {
20997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20998 } else {
20999 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21001 }
21002 {
21003 if (temp2)
21004 delete arg2;
21005 }
21006 return resultobj;
21007fail:
21008 {
21009 if (temp2)
21010 delete arg2;
21011 }
21012 return NULL;
21013}
21014
21015
21016SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj = 0;
21018 wxDC *arg1 = (wxDC *) 0 ;
21019 wxString *arg2 = 0 ;
21020 wxArrayInt result;
21021 void *argp1 = 0 ;
21022 int res1 = 0 ;
21023 bool temp2 = false ;
21024 PyObject * obj0 = 0 ;
21025 PyObject * obj1 = 0 ;
21026 char * kwnames[] = {
21027 (char *) "self",(char *) "text", NULL
21028 };
21029
21030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21032 if (!SWIG_IsOK(res1)) {
21033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21034 }
21035 arg1 = reinterpret_cast< wxDC * >(argp1);
21036 {
21037 arg2 = wxString_in_helper(obj1);
21038 if (arg2 == NULL) SWIG_fail;
21039 temp2 = true;
21040 }
21041 {
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 {
b39fe951 21048 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21049 }
21050 {
21051 if (temp2)
21052 delete arg2;
21053 }
21054 return resultobj;
21055fail:
21056 {
21057 if (temp2)
21058 delete arg2;
21059 }
21060 return NULL;
21061}
21062
21063
21064SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21065 PyObject *resultobj = 0;
21066 wxDC *arg1 = (wxDC *) 0 ;
21067 wxSize result;
21068 void *argp1 = 0 ;
21069 int res1 = 0 ;
21070 PyObject *swig_obj[1] ;
21071
21072 if (!args) SWIG_fail;
21073 swig_obj[0] = args;
21074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21075 if (!SWIG_IsOK(res1)) {
21076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21077 }
21078 arg1 = reinterpret_cast< wxDC * >(argp1);
21079 {
21080 PyThreadState* __tstate = wxPyBeginAllowThreads();
21081 result = (arg1)->GetSize();
21082 wxPyEndAllowThreads(__tstate);
21083 if (PyErr_Occurred()) SWIG_fail;
21084 }
21085 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21086 return resultobj;
21087fail:
21088 return NULL;
21089}
21090
21091
21092SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21093 PyObject *resultobj = 0;
21094 wxDC *arg1 = (wxDC *) 0 ;
21095 int *arg2 = (int *) 0 ;
21096 int *arg3 = (int *) 0 ;
21097 void *argp1 = 0 ;
21098 int res1 = 0 ;
21099 int temp2 ;
21100 int res2 = SWIG_TMPOBJ ;
21101 int temp3 ;
21102 int res3 = SWIG_TMPOBJ ;
21103 PyObject *swig_obj[1] ;
21104
21105 arg2 = &temp2;
21106 arg3 = &temp3;
21107 if (!args) SWIG_fail;
21108 swig_obj[0] = args;
21109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21110 if (!SWIG_IsOK(res1)) {
21111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21112 }
21113 arg1 = reinterpret_cast< wxDC * >(argp1);
21114 {
21115 PyThreadState* __tstate = wxPyBeginAllowThreads();
21116 (arg1)->GetSize(arg2,arg3);
21117 wxPyEndAllowThreads(__tstate);
21118 if (PyErr_Occurred()) SWIG_fail;
21119 }
21120 resultobj = SWIG_Py_Void();
21121 if (SWIG_IsTmpObj(res2)) {
21122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21123 } else {
21124 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21126 }
21127 if (SWIG_IsTmpObj(res3)) {
21128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21129 } else {
21130 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21132 }
21133 return resultobj;
21134fail:
21135 return NULL;
21136}
21137
21138
21139SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21140 PyObject *resultobj = 0;
21141 wxDC *arg1 = (wxDC *) 0 ;
21142 wxSize result;
21143 void *argp1 = 0 ;
21144 int res1 = 0 ;
21145 PyObject *swig_obj[1] ;
21146
21147 if (!args) SWIG_fail;
21148 swig_obj[0] = args;
21149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21150 if (!SWIG_IsOK(res1)) {
21151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21152 }
21153 arg1 = reinterpret_cast< wxDC * >(argp1);
21154 {
21155 PyThreadState* __tstate = wxPyBeginAllowThreads();
21156 result = ((wxDC const *)arg1)->GetSizeMM();
21157 wxPyEndAllowThreads(__tstate);
21158 if (PyErr_Occurred()) SWIG_fail;
21159 }
21160 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21161 return resultobj;
21162fail:
21163 return NULL;
21164}
21165
21166
21167SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21168 PyObject *resultobj = 0;
21169 wxDC *arg1 = (wxDC *) 0 ;
21170 int *arg2 = (int *) 0 ;
21171 int *arg3 = (int *) 0 ;
21172 void *argp1 = 0 ;
21173 int res1 = 0 ;
21174 int temp2 ;
21175 int res2 = SWIG_TMPOBJ ;
21176 int temp3 ;
21177 int res3 = SWIG_TMPOBJ ;
21178 PyObject *swig_obj[1] ;
21179
21180 arg2 = &temp2;
21181 arg3 = &temp3;
21182 if (!args) SWIG_fail;
21183 swig_obj[0] = args;
21184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21185 if (!SWIG_IsOK(res1)) {
21186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21187 }
21188 arg1 = reinterpret_cast< wxDC * >(argp1);
21189 {
21190 PyThreadState* __tstate = wxPyBeginAllowThreads();
21191 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21192 wxPyEndAllowThreads(__tstate);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 }
21195 resultobj = SWIG_Py_Void();
21196 if (SWIG_IsTmpObj(res2)) {
21197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21198 } else {
21199 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21201 }
21202 if (SWIG_IsTmpObj(res3)) {
21203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21204 } else {
21205 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21207 }
21208 return resultobj;
21209fail:
21210 return NULL;
21211}
21212
21213
21214SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21215 PyObject *resultobj = 0;
21216 wxDC *arg1 = (wxDC *) 0 ;
21217 int arg2 ;
21218 int result;
21219 void *argp1 = 0 ;
21220 int res1 = 0 ;
21221 int val2 ;
21222 int ecode2 = 0 ;
21223 PyObject * obj0 = 0 ;
21224 PyObject * obj1 = 0 ;
21225 char * kwnames[] = {
21226 (char *) "self",(char *) "x", NULL
21227 };
21228
21229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21231 if (!SWIG_IsOK(res1)) {
21232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21233 }
21234 arg1 = reinterpret_cast< wxDC * >(argp1);
21235 ecode2 = SWIG_AsVal_int(obj1, &val2);
21236 if (!SWIG_IsOK(ecode2)) {
21237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21238 }
21239 arg2 = static_cast< int >(val2);
21240 {
21241 PyThreadState* __tstate = wxPyBeginAllowThreads();
21242 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21243 wxPyEndAllowThreads(__tstate);
21244 if (PyErr_Occurred()) SWIG_fail;
21245 }
21246 resultobj = SWIG_From_int(static_cast< int >(result));
21247 return resultobj;
21248fail:
21249 return NULL;
21250}
21251
21252
21253SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21254 PyObject *resultobj = 0;
21255 wxDC *arg1 = (wxDC *) 0 ;
21256 int arg2 ;
21257 int result;
21258 void *argp1 = 0 ;
21259 int res1 = 0 ;
21260 int val2 ;
21261 int ecode2 = 0 ;
21262 PyObject * obj0 = 0 ;
21263 PyObject * obj1 = 0 ;
21264 char * kwnames[] = {
21265 (char *) "self",(char *) "y", NULL
21266 };
21267
21268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21270 if (!SWIG_IsOK(res1)) {
21271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21272 }
21273 arg1 = reinterpret_cast< wxDC * >(argp1);
21274 ecode2 = SWIG_AsVal_int(obj1, &val2);
21275 if (!SWIG_IsOK(ecode2)) {
21276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21277 }
21278 arg2 = static_cast< int >(val2);
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21282 wxPyEndAllowThreads(__tstate);
21283 if (PyErr_Occurred()) SWIG_fail;
21284 }
21285 resultobj = SWIG_From_int(static_cast< int >(result));
21286 return resultobj;
21287fail:
21288 return NULL;
21289}
21290
21291
21292SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21293 PyObject *resultobj = 0;
21294 wxDC *arg1 = (wxDC *) 0 ;
21295 int arg2 ;
21296 int result;
21297 void *argp1 = 0 ;
21298 int res1 = 0 ;
21299 int val2 ;
21300 int ecode2 = 0 ;
21301 PyObject * obj0 = 0 ;
21302 PyObject * obj1 = 0 ;
21303 char * kwnames[] = {
21304 (char *) "self",(char *) "x", NULL
21305 };
21306
21307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21309 if (!SWIG_IsOK(res1)) {
21310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21311 }
21312 arg1 = reinterpret_cast< wxDC * >(argp1);
21313 ecode2 = SWIG_AsVal_int(obj1, &val2);
21314 if (!SWIG_IsOK(ecode2)) {
21315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21316 }
21317 arg2 = static_cast< int >(val2);
21318 {
21319 PyThreadState* __tstate = wxPyBeginAllowThreads();
21320 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21321 wxPyEndAllowThreads(__tstate);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 resultobj = SWIG_From_int(static_cast< int >(result));
21325 return resultobj;
21326fail:
21327 return NULL;
21328}
21329
21330
21331SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21332 PyObject *resultobj = 0;
21333 wxDC *arg1 = (wxDC *) 0 ;
21334 int arg2 ;
21335 int result;
21336 void *argp1 = 0 ;
21337 int res1 = 0 ;
21338 int val2 ;
21339 int ecode2 = 0 ;
21340 PyObject * obj0 = 0 ;
21341 PyObject * obj1 = 0 ;
21342 char * kwnames[] = {
21343 (char *) "self",(char *) "y", NULL
21344 };
21345
21346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21348 if (!SWIG_IsOK(res1)) {
21349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21350 }
21351 arg1 = reinterpret_cast< wxDC * >(argp1);
21352 ecode2 = SWIG_AsVal_int(obj1, &val2);
21353 if (!SWIG_IsOK(ecode2)) {
21354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21355 }
21356 arg2 = static_cast< int >(val2);
21357 {
21358 PyThreadState* __tstate = wxPyBeginAllowThreads();
21359 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21360 wxPyEndAllowThreads(__tstate);
21361 if (PyErr_Occurred()) SWIG_fail;
21362 }
21363 resultobj = SWIG_From_int(static_cast< int >(result));
21364 return resultobj;
21365fail:
21366 return NULL;
21367}
21368
21369
21370SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21371 PyObject *resultobj = 0;
21372 wxDC *arg1 = (wxDC *) 0 ;
21373 int arg2 ;
21374 int result;
21375 void *argp1 = 0 ;
21376 int res1 = 0 ;
21377 int val2 ;
21378 int ecode2 = 0 ;
21379 PyObject * obj0 = 0 ;
21380 PyObject * obj1 = 0 ;
21381 char * kwnames[] = {
21382 (char *) "self",(char *) "x", NULL
21383 };
21384
21385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21387 if (!SWIG_IsOK(res1)) {
21388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21389 }
21390 arg1 = reinterpret_cast< wxDC * >(argp1);
21391 ecode2 = SWIG_AsVal_int(obj1, &val2);
21392 if (!SWIG_IsOK(ecode2)) {
21393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21394 }
21395 arg2 = static_cast< int >(val2);
21396 {
21397 PyThreadState* __tstate = wxPyBeginAllowThreads();
21398 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21399 wxPyEndAllowThreads(__tstate);
21400 if (PyErr_Occurred()) SWIG_fail;
21401 }
21402 resultobj = SWIG_From_int(static_cast< int >(result));
21403 return resultobj;
21404fail:
21405 return NULL;
21406}
21407
21408
21409SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21410 PyObject *resultobj = 0;
21411 wxDC *arg1 = (wxDC *) 0 ;
21412 int arg2 ;
21413 int result;
21414 void *argp1 = 0 ;
21415 int res1 = 0 ;
21416 int val2 ;
21417 int ecode2 = 0 ;
21418 PyObject * obj0 = 0 ;
21419 PyObject * obj1 = 0 ;
21420 char * kwnames[] = {
21421 (char *) "self",(char *) "y", NULL
21422 };
21423
21424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21426 if (!SWIG_IsOK(res1)) {
21427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21428 }
21429 arg1 = reinterpret_cast< wxDC * >(argp1);
21430 ecode2 = SWIG_AsVal_int(obj1, &val2);
21431 if (!SWIG_IsOK(ecode2)) {
21432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21433 }
21434 arg2 = static_cast< int >(val2);
21435 {
21436 PyThreadState* __tstate = wxPyBeginAllowThreads();
21437 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21438 wxPyEndAllowThreads(__tstate);
21439 if (PyErr_Occurred()) SWIG_fail;
21440 }
21441 resultobj = SWIG_From_int(static_cast< int >(result));
21442 return resultobj;
21443fail:
21444 return NULL;
21445}
21446
21447
21448SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21449 PyObject *resultobj = 0;
21450 wxDC *arg1 = (wxDC *) 0 ;
21451 int arg2 ;
21452 int result;
21453 void *argp1 = 0 ;
21454 int res1 = 0 ;
21455 int val2 ;
21456 int ecode2 = 0 ;
21457 PyObject * obj0 = 0 ;
21458 PyObject * obj1 = 0 ;
21459 char * kwnames[] = {
21460 (char *) "self",(char *) "x", NULL
21461 };
21462
21463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21465 if (!SWIG_IsOK(res1)) {
21466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21467 }
21468 arg1 = reinterpret_cast< wxDC * >(argp1);
21469 ecode2 = SWIG_AsVal_int(obj1, &val2);
21470 if (!SWIG_IsOK(ecode2)) {
21471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21472 }
21473 arg2 = static_cast< int >(val2);
21474 {
21475 PyThreadState* __tstate = wxPyBeginAllowThreads();
21476 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21477 wxPyEndAllowThreads(__tstate);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 resultobj = SWIG_From_int(static_cast< int >(result));
21481 return resultobj;
21482fail:
21483 return NULL;
21484}
21485
21486
21487SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21488 PyObject *resultobj = 0;
21489 wxDC *arg1 = (wxDC *) 0 ;
21490 int arg2 ;
21491 int result;
21492 void *argp1 = 0 ;
21493 int res1 = 0 ;
21494 int val2 ;
21495 int ecode2 = 0 ;
21496 PyObject * obj0 = 0 ;
21497 PyObject * obj1 = 0 ;
21498 char * kwnames[] = {
21499 (char *) "self",(char *) "y", NULL
21500 };
21501
21502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21504 if (!SWIG_IsOK(res1)) {
21505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21506 }
21507 arg1 = reinterpret_cast< wxDC * >(argp1);
21508 ecode2 = SWIG_AsVal_int(obj1, &val2);
21509 if (!SWIG_IsOK(ecode2)) {
21510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21511 }
21512 arg2 = static_cast< int >(val2);
21513 {
21514 PyThreadState* __tstate = wxPyBeginAllowThreads();
21515 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21516 wxPyEndAllowThreads(__tstate);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 resultobj = SWIG_From_int(static_cast< int >(result));
21520 return resultobj;
21521fail:
21522 return NULL;
21523}
21524
21525
21526SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21527 PyObject *resultobj = 0;
21528 wxDC *arg1 = (wxDC *) 0 ;
21529 bool result;
21530 void *argp1 = 0 ;
21531 int res1 = 0 ;
21532 PyObject *swig_obj[1] ;
21533
21534 if (!args) SWIG_fail;
21535 swig_obj[0] = args;
21536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21537 if (!SWIG_IsOK(res1)) {
21538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21539 }
21540 arg1 = reinterpret_cast< wxDC * >(argp1);
21541 {
21542 PyThreadState* __tstate = wxPyBeginAllowThreads();
21543 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 {
21548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21549 }
21550 return resultobj;
21551fail:
21552 return NULL;
21553}
21554
21555
21556SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21557 PyObject *resultobj = 0;
21558 wxDC *arg1 = (wxDC *) 0 ;
21559 bool result;
21560 void *argp1 = 0 ;
21561 int res1 = 0 ;
21562 PyObject *swig_obj[1] ;
21563
21564 if (!args) SWIG_fail;
21565 swig_obj[0] = args;
21566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21567 if (!SWIG_IsOK(res1)) {
21568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21569 }
21570 arg1 = reinterpret_cast< wxDC * >(argp1);
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 {
21578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21579 }
21580 return resultobj;
21581fail:
21582 return NULL;
21583}
21584
21585
21586SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21587 PyObject *resultobj = 0;
21588 wxDC *arg1 = (wxDC *) 0 ;
21589 int result;
21590 void *argp1 = 0 ;
21591 int res1 = 0 ;
21592 PyObject *swig_obj[1] ;
21593
21594 if (!args) SWIG_fail;
21595 swig_obj[0] = args;
21596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21597 if (!SWIG_IsOK(res1)) {
21598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21599 }
21600 arg1 = reinterpret_cast< wxDC * >(argp1);
21601 {
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 result = (int)((wxDC const *)arg1)->GetDepth();
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 resultobj = SWIG_From_int(static_cast< int >(result));
21608 return resultobj;
21609fail:
21610 return NULL;
21611}
21612
21613
21614SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21615 PyObject *resultobj = 0;
21616 wxDC *arg1 = (wxDC *) 0 ;
21617 wxSize result;
21618 void *argp1 = 0 ;
21619 int res1 = 0 ;
21620 PyObject *swig_obj[1] ;
21621
21622 if (!args) SWIG_fail;
21623 swig_obj[0] = args;
21624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21625 if (!SWIG_IsOK(res1)) {
21626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21627 }
21628 arg1 = reinterpret_cast< wxDC * >(argp1);
21629 {
21630 PyThreadState* __tstate = wxPyBeginAllowThreads();
21631 result = ((wxDC const *)arg1)->GetPPI();
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21636 return resultobj;
21637fail:
21638 return NULL;
21639}
21640
21641
b39fe951 21642SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21643 PyObject *resultobj = 0;
21644 wxDC *arg1 = (wxDC *) 0 ;
21645 bool result;
21646 void *argp1 = 0 ;
21647 int res1 = 0 ;
21648 PyObject *swig_obj[1] ;
21649
21650 if (!args) SWIG_fail;
21651 swig_obj[0] = args;
21652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21653 if (!SWIG_IsOK(res1)) {
b39fe951 21654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21655 }
21656 arg1 = reinterpret_cast< wxDC * >(argp1);
21657 {
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21659 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 {
21664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21665 }
21666 return resultobj;
21667fail:
21668 return NULL;
21669}
21670
21671
21672SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21673 PyObject *resultobj = 0;
21674 wxDC *arg1 = (wxDC *) 0 ;
21675 int result;
21676 void *argp1 = 0 ;
21677 int res1 = 0 ;
21678 PyObject *swig_obj[1] ;
21679
21680 if (!args) SWIG_fail;
21681 swig_obj[0] = args;
21682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21683 if (!SWIG_IsOK(res1)) {
21684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21685 }
21686 arg1 = reinterpret_cast< wxDC * >(argp1);
21687 {
21688 PyThreadState* __tstate = wxPyBeginAllowThreads();
21689 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21690 wxPyEndAllowThreads(__tstate);
21691 if (PyErr_Occurred()) SWIG_fail;
21692 }
21693 resultobj = SWIG_From_int(static_cast< int >(result));
21694 return resultobj;
21695fail:
21696 return NULL;
21697}
21698
21699
21700SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21701 PyObject *resultobj = 0;
21702 wxDC *arg1 = (wxDC *) 0 ;
21703 wxBrush *result = 0 ;
21704 void *argp1 = 0 ;
21705 int res1 = 0 ;
21706 PyObject *swig_obj[1] ;
21707
21708 if (!args) SWIG_fail;
21709 swig_obj[0] = args;
21710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21711 if (!SWIG_IsOK(res1)) {
21712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21713 }
21714 arg1 = reinterpret_cast< wxDC * >(argp1);
21715 {
21716 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21717 {
1bd55598
RD
21718 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21719 result = (wxBrush *) &_result_ref;
36ed4f51 21720 }
1bd55598
RD
21721 wxPyEndAllowThreads(__tstate);
21722 if (PyErr_Occurred()) SWIG_fail;
21723 }
21724 {
21725 wxBrush* resultptr = new wxBrush(*result);
21726 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21727 }
21728 return resultobj;
21729fail:
21730 return NULL;
21731}
21732
21733
21734SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21735 PyObject *resultobj = 0;
21736 wxDC *arg1 = (wxDC *) 0 ;
21737 wxBrush *result = 0 ;
21738 void *argp1 = 0 ;
21739 int res1 = 0 ;
21740 PyObject *swig_obj[1] ;
21741
21742 if (!args) SWIG_fail;
21743 swig_obj[0] = args;
21744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21745 if (!SWIG_IsOK(res1)) {
21746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21747 }
21748 arg1 = reinterpret_cast< wxDC * >(argp1);
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21751 {
1bd55598
RD
21752 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21753 result = (wxBrush *) &_result_ref;
36ed4f51 21754 }
1bd55598
RD
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 {
21759 wxBrush* resultptr = new wxBrush(*result);
21760 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21761 }
21762 return resultobj;
21763fail:
21764 return NULL;
21765}
21766
21767
21768SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21769 PyObject *resultobj = 0;
21770 wxDC *arg1 = (wxDC *) 0 ;
21771 wxFont *result = 0 ;
21772 void *argp1 = 0 ;
21773 int res1 = 0 ;
21774 PyObject *swig_obj[1] ;
21775
21776 if (!args) SWIG_fail;
21777 swig_obj[0] = args;
21778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21779 if (!SWIG_IsOK(res1)) {
21780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21781 }
21782 arg1 = reinterpret_cast< wxDC * >(argp1);
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21785 {
1bd55598
RD
21786 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21787 result = (wxFont *) &_result_ref;
36ed4f51 21788 }
1bd55598
RD
21789 wxPyEndAllowThreads(__tstate);
21790 if (PyErr_Occurred()) SWIG_fail;
21791 }
21792 {
21793 wxFont* resultptr = new wxFont(*result);
21794 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21795 }
21796 return resultobj;
21797fail:
21798 return NULL;
21799}
21800
21801
21802SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21803 PyObject *resultobj = 0;
21804 wxDC *arg1 = (wxDC *) 0 ;
21805 wxPen *result = 0 ;
21806 void *argp1 = 0 ;
21807 int res1 = 0 ;
21808 PyObject *swig_obj[1] ;
21809
21810 if (!args) SWIG_fail;
21811 swig_obj[0] = args;
21812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21813 if (!SWIG_IsOK(res1)) {
21814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21815 }
21816 arg1 = reinterpret_cast< wxDC * >(argp1);
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21819 {
1bd55598
RD
21820 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21821 result = (wxPen *) &_result_ref;
36ed4f51 21822 }
1bd55598
RD
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 {
21827 wxPen* resultptr = new wxPen(*result);
21828 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21829 }
21830 return resultobj;
21831fail:
21832 return NULL;
21833}
21834
21835
21836SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21837 PyObject *resultobj = 0;
21838 wxDC *arg1 = (wxDC *) 0 ;
21839 wxColour *result = 0 ;
21840 void *argp1 = 0 ;
21841 int res1 = 0 ;
21842 PyObject *swig_obj[1] ;
21843
21844 if (!args) SWIG_fail;
21845 swig_obj[0] = args;
21846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21847 if (!SWIG_IsOK(res1)) {
21848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21849 }
21850 arg1 = reinterpret_cast< wxDC * >(argp1);
21851 {
21852 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21853 {
1bd55598
RD
21854 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21855 result = (wxColour *) &_result_ref;
36ed4f51 21856 }
1bd55598
RD
21857 wxPyEndAllowThreads(__tstate);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 }
21860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21861 return resultobj;
21862fail:
21863 return NULL;
21864}
21865
21866
21867SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21868 PyObject *resultobj = 0;
21869 wxDC *arg1 = (wxDC *) 0 ;
21870 wxColour *result = 0 ;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 PyObject *swig_obj[1] ;
21874
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21880 }
21881 arg1 = reinterpret_cast< wxDC * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21884 {
1bd55598
RD
21885 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21886 result = (wxColour *) &_result_ref;
36ed4f51 21887 }
1bd55598
RD
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21892 return resultobj;
21893fail:
21894 return NULL;
21895}
21896
21897
21898SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21899 PyObject *resultobj = 0;
21900 wxDC *arg1 = (wxDC *) 0 ;
21901 wxColour *arg2 = 0 ;
21902 void *argp1 = 0 ;
21903 int res1 = 0 ;
21904 wxColour temp2 ;
21905 PyObject * obj0 = 0 ;
21906 PyObject * obj1 = 0 ;
21907 char * kwnames[] = {
21908 (char *) "self",(char *) "colour", NULL
21909 };
21910
21911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21913 if (!SWIG_IsOK(res1)) {
21914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21915 }
21916 arg1 = reinterpret_cast< wxDC * >(argp1);
21917 {
21918 arg2 = &temp2;
21919 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21920 }
21921 {
21922 PyThreadState* __tstate = wxPyBeginAllowThreads();
21923 (arg1)->SetTextForeground((wxColour const &)*arg2);
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
21927 resultobj = SWIG_Py_Void();
21928 return resultobj;
21929fail:
21930 return NULL;
21931}
21932
21933
21934SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj = 0;
21936 wxDC *arg1 = (wxDC *) 0 ;
21937 wxColour *arg2 = 0 ;
21938 void *argp1 = 0 ;
21939 int res1 = 0 ;
21940 wxColour temp2 ;
21941 PyObject * obj0 = 0 ;
21942 PyObject * obj1 = 0 ;
21943 char * kwnames[] = {
21944 (char *) "self",(char *) "colour", NULL
21945 };
21946
21947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21951 }
21952 arg1 = reinterpret_cast< wxDC * >(argp1);
21953 {
21954 arg2 = &temp2;
21955 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21956 }
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 (arg1)->SetTextBackground((wxColour const &)*arg2);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_Py_Void();
21964 return resultobj;
21965fail:
21966 return NULL;
21967}
21968
21969
21970SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 int result;
21974 void *argp1 = 0 ;
21975 int res1 = 0 ;
21976 PyObject *swig_obj[1] ;
21977
21978 if (!args) SWIG_fail;
21979 swig_obj[0] = args;
21980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21981 if (!SWIG_IsOK(res1)) {
21982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21983 }
21984 arg1 = reinterpret_cast< wxDC * >(argp1);
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
21987 result = (int)((wxDC const *)arg1)->GetMapMode();
21988 wxPyEndAllowThreads(__tstate);
21989 if (PyErr_Occurred()) SWIG_fail;
21990 }
21991 resultobj = SWIG_From_int(static_cast< int >(result));
21992 return resultobj;
21993fail:
21994 return NULL;
21995}
21996
21997
21998SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21999 PyObject *resultobj = 0;
22000 wxDC *arg1 = (wxDC *) 0 ;
22001 int arg2 ;
22002 void *argp1 = 0 ;
22003 int res1 = 0 ;
22004 int val2 ;
22005 int ecode2 = 0 ;
22006 PyObject * obj0 = 0 ;
22007 PyObject * obj1 = 0 ;
22008 char * kwnames[] = {
22009 (char *) "self",(char *) "mode", NULL
22010 };
22011
22012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22014 if (!SWIG_IsOK(res1)) {
22015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22016 }
22017 arg1 = reinterpret_cast< wxDC * >(argp1);
22018 ecode2 = SWIG_AsVal_int(obj1, &val2);
22019 if (!SWIG_IsOK(ecode2)) {
22020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22021 }
22022 arg2 = static_cast< int >(val2);
22023 {
22024 PyThreadState* __tstate = wxPyBeginAllowThreads();
22025 (arg1)->SetMapMode(arg2);
22026 wxPyEndAllowThreads(__tstate);
22027 if (PyErr_Occurred()) SWIG_fail;
22028 }
22029 resultobj = SWIG_Py_Void();
22030 return resultobj;
22031fail:
22032 return NULL;
22033}
22034
22035
22036SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22037 PyObject *resultobj = 0;
22038 wxDC *arg1 = (wxDC *) 0 ;
22039 double *arg2 = (double *) 0 ;
22040 double *arg3 = (double *) 0 ;
22041 void *argp1 = 0 ;
22042 int res1 = 0 ;
22043 double temp2 ;
22044 int res2 = SWIG_TMPOBJ ;
22045 double temp3 ;
22046 int res3 = SWIG_TMPOBJ ;
22047 PyObject *swig_obj[1] ;
22048
22049 arg2 = &temp2;
22050 arg3 = &temp3;
22051 if (!args) SWIG_fail;
22052 swig_obj[0] = args;
22053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22054 if (!SWIG_IsOK(res1)) {
22055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22056 }
22057 arg1 = reinterpret_cast< wxDC * >(argp1);
22058 {
22059 PyThreadState* __tstate = wxPyBeginAllowThreads();
22060 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22061 wxPyEndAllowThreads(__tstate);
22062 if (PyErr_Occurred()) SWIG_fail;
22063 }
22064 resultobj = SWIG_Py_Void();
22065 if (SWIG_IsTmpObj(res2)) {
22066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22067 } else {
22068 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22070 }
22071 if (SWIG_IsTmpObj(res3)) {
22072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22073 } else {
22074 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22076 }
22077 return resultobj;
22078fail:
22079 return NULL;
22080}
22081
22082
22083SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22084 PyObject *resultobj = 0;
22085 wxDC *arg1 = (wxDC *) 0 ;
22086 double arg2 ;
22087 double arg3 ;
22088 void *argp1 = 0 ;
22089 int res1 = 0 ;
22090 double val2 ;
22091 int ecode2 = 0 ;
22092 double val3 ;
22093 int ecode3 = 0 ;
22094 PyObject * obj0 = 0 ;
22095 PyObject * obj1 = 0 ;
22096 PyObject * obj2 = 0 ;
22097 char * kwnames[] = {
22098 (char *) "self",(char *) "x",(char *) "y", NULL
22099 };
22100
22101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22103 if (!SWIG_IsOK(res1)) {
22104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22105 }
22106 arg1 = reinterpret_cast< wxDC * >(argp1);
22107 ecode2 = SWIG_AsVal_double(obj1, &val2);
22108 if (!SWIG_IsOK(ecode2)) {
22109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22110 }
22111 arg2 = static_cast< double >(val2);
22112 ecode3 = SWIG_AsVal_double(obj2, &val3);
22113 if (!SWIG_IsOK(ecode3)) {
22114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22115 }
22116 arg3 = static_cast< double >(val3);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 (arg1)->SetUserScale(arg2,arg3);
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_Py_Void();
22124 return resultobj;
22125fail:
22126 return NULL;
22127}
22128
22129
22130SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22131 PyObject *resultobj = 0;
22132 wxDC *arg1 = (wxDC *) 0 ;
22133 double *arg2 = (double *) 0 ;
22134 double *arg3 = (double *) 0 ;
22135 void *argp1 = 0 ;
22136 int res1 = 0 ;
22137 double temp2 ;
22138 int res2 = SWIG_TMPOBJ ;
22139 double temp3 ;
22140 int res3 = SWIG_TMPOBJ ;
22141 PyObject *swig_obj[1] ;
22142
22143 arg2 = &temp2;
22144 arg3 = &temp3;
22145 if (!args) SWIG_fail;
22146 swig_obj[0] = args;
22147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22148 if (!SWIG_IsOK(res1)) {
22149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22150 }
22151 arg1 = reinterpret_cast< wxDC * >(argp1);
22152 {
22153 PyThreadState* __tstate = wxPyBeginAllowThreads();
22154 (arg1)->GetLogicalScale(arg2,arg3);
22155 wxPyEndAllowThreads(__tstate);
22156 if (PyErr_Occurred()) SWIG_fail;
22157 }
22158 resultobj = SWIG_Py_Void();
22159 if (SWIG_IsTmpObj(res2)) {
22160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22161 } else {
22162 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22164 }
22165 if (SWIG_IsTmpObj(res3)) {
22166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22167 } else {
22168 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22170 }
22171 return resultobj;
22172fail:
22173 return NULL;
22174}
22175
22176
22177SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22178 PyObject *resultobj = 0;
22179 wxDC *arg1 = (wxDC *) 0 ;
22180 double arg2 ;
22181 double arg3 ;
22182 void *argp1 = 0 ;
22183 int res1 = 0 ;
22184 double val2 ;
22185 int ecode2 = 0 ;
22186 double val3 ;
22187 int ecode3 = 0 ;
22188 PyObject * obj0 = 0 ;
22189 PyObject * obj1 = 0 ;
22190 PyObject * obj2 = 0 ;
22191 char * kwnames[] = {
22192 (char *) "self",(char *) "x",(char *) "y", NULL
22193 };
22194
22195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22197 if (!SWIG_IsOK(res1)) {
22198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22199 }
22200 arg1 = reinterpret_cast< wxDC * >(argp1);
22201 ecode2 = SWIG_AsVal_double(obj1, &val2);
22202 if (!SWIG_IsOK(ecode2)) {
22203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22204 }
22205 arg2 = static_cast< double >(val2);
22206 ecode3 = SWIG_AsVal_double(obj2, &val3);
22207 if (!SWIG_IsOK(ecode3)) {
22208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22209 }
22210 arg3 = static_cast< double >(val3);
22211 {
22212 PyThreadState* __tstate = wxPyBeginAllowThreads();
22213 (arg1)->SetLogicalScale(arg2,arg3);
22214 wxPyEndAllowThreads(__tstate);
22215 if (PyErr_Occurred()) SWIG_fail;
22216 }
22217 resultobj = SWIG_Py_Void();
22218 return resultobj;
22219fail:
22220 return NULL;
22221}
22222
22223
22224SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22225 PyObject *resultobj = 0;
22226 wxDC *arg1 = (wxDC *) 0 ;
22227 wxPoint result;
22228 void *argp1 = 0 ;
22229 int res1 = 0 ;
22230 PyObject *swig_obj[1] ;
22231
22232 if (!args) SWIG_fail;
22233 swig_obj[0] = args;
22234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22235 if (!SWIG_IsOK(res1)) {
22236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22237 }
22238 arg1 = reinterpret_cast< wxDC * >(argp1);
22239 {
22240 PyThreadState* __tstate = wxPyBeginAllowThreads();
22241 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22242 wxPyEndAllowThreads(__tstate);
22243 if (PyErr_Occurred()) SWIG_fail;
22244 }
22245 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22246 return resultobj;
22247fail:
22248 return NULL;
22249}
22250
22251
22252SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22253 PyObject *resultobj = 0;
22254 wxDC *arg1 = (wxDC *) 0 ;
22255 int *arg2 = (int *) 0 ;
22256 int *arg3 = (int *) 0 ;
22257 void *argp1 = 0 ;
22258 int res1 = 0 ;
22259 int temp2 ;
22260 int res2 = SWIG_TMPOBJ ;
22261 int temp3 ;
22262 int res3 = SWIG_TMPOBJ ;
22263 PyObject *swig_obj[1] ;
22264
22265 arg2 = &temp2;
22266 arg3 = &temp3;
22267 if (!args) SWIG_fail;
22268 swig_obj[0] = args;
22269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22270 if (!SWIG_IsOK(res1)) {
22271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22272 }
22273 arg1 = reinterpret_cast< wxDC * >(argp1);
22274 {
22275 PyThreadState* __tstate = wxPyBeginAllowThreads();
22276 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22277 wxPyEndAllowThreads(__tstate);
22278 if (PyErr_Occurred()) SWIG_fail;
22279 }
22280 resultobj = SWIG_Py_Void();
22281 if (SWIG_IsTmpObj(res2)) {
22282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22283 } else {
22284 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22286 }
22287 if (SWIG_IsTmpObj(res3)) {
22288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22289 } else {
22290 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22292 }
22293 return resultobj;
22294fail:
22295 return NULL;
22296}
22297
22298
22299SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22300 PyObject *resultobj = 0;
22301 wxDC *arg1 = (wxDC *) 0 ;
22302 int arg2 ;
22303 int arg3 ;
22304 void *argp1 = 0 ;
22305 int res1 = 0 ;
22306 int val2 ;
22307 int ecode2 = 0 ;
22308 int val3 ;
22309 int ecode3 = 0 ;
22310 PyObject * obj0 = 0 ;
22311 PyObject * obj1 = 0 ;
22312 PyObject * obj2 = 0 ;
22313 char * kwnames[] = {
22314 (char *) "self",(char *) "x",(char *) "y", NULL
22315 };
22316
22317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22321 }
22322 arg1 = reinterpret_cast< wxDC * >(argp1);
22323 ecode2 = SWIG_AsVal_int(obj1, &val2);
22324 if (!SWIG_IsOK(ecode2)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22326 }
22327 arg2 = static_cast< int >(val2);
22328 ecode3 = SWIG_AsVal_int(obj2, &val3);
22329 if (!SWIG_IsOK(ecode3)) {
22330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22331 }
22332 arg3 = static_cast< int >(val3);
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
22335 (arg1)->SetLogicalOrigin(arg2,arg3);
22336 wxPyEndAllowThreads(__tstate);
22337 if (PyErr_Occurred()) SWIG_fail;
22338 }
22339 resultobj = SWIG_Py_Void();
22340 return resultobj;
22341fail:
22342 return NULL;
22343}
22344
22345
22346SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22347 PyObject *resultobj = 0;
22348 wxDC *arg1 = (wxDC *) 0 ;
22349 wxPoint *arg2 = 0 ;
22350 void *argp1 = 0 ;
22351 int res1 = 0 ;
22352 wxPoint temp2 ;
22353 PyObject * obj0 = 0 ;
22354 PyObject * obj1 = 0 ;
22355 char * kwnames[] = {
22356 (char *) "self",(char *) "point", NULL
22357 };
22358
22359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22363 }
22364 arg1 = reinterpret_cast< wxDC * >(argp1);
22365 {
22366 arg2 = &temp2;
22367 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22368 }
22369 {
22370 PyThreadState* __tstate = wxPyBeginAllowThreads();
22371 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22372 wxPyEndAllowThreads(__tstate);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 }
22375 resultobj = SWIG_Py_Void();
22376 return resultobj;
22377fail:
22378 return NULL;
22379}
22380
22381
22382SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22383 PyObject *resultobj = 0;
22384 wxDC *arg1 = (wxDC *) 0 ;
22385 wxPoint result;
22386 void *argp1 = 0 ;
22387 int res1 = 0 ;
22388 PyObject *swig_obj[1] ;
22389
22390 if (!args) SWIG_fail;
22391 swig_obj[0] = args;
22392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22393 if (!SWIG_IsOK(res1)) {
22394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22395 }
22396 arg1 = reinterpret_cast< wxDC * >(argp1);
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22404 return resultobj;
22405fail:
22406 return NULL;
22407}
22408
22409
22410SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22411 PyObject *resultobj = 0;
22412 wxDC *arg1 = (wxDC *) 0 ;
22413 int *arg2 = (int *) 0 ;
22414 int *arg3 = (int *) 0 ;
22415 void *argp1 = 0 ;
22416 int res1 = 0 ;
22417 int temp2 ;
22418 int res2 = SWIG_TMPOBJ ;
22419 int temp3 ;
22420 int res3 = SWIG_TMPOBJ ;
22421 PyObject *swig_obj[1] ;
22422
22423 arg2 = &temp2;
22424 arg3 = &temp3;
22425 if (!args) SWIG_fail;
22426 swig_obj[0] = args;
22427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22428 if (!SWIG_IsOK(res1)) {
22429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22430 }
22431 arg1 = reinterpret_cast< wxDC * >(argp1);
22432 {
22433 PyThreadState* __tstate = wxPyBeginAllowThreads();
22434 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22435 wxPyEndAllowThreads(__tstate);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 }
22438 resultobj = SWIG_Py_Void();
22439 if (SWIG_IsTmpObj(res2)) {
22440 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22441 } else {
22442 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22444 }
22445 if (SWIG_IsTmpObj(res3)) {
22446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22447 } else {
22448 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22450 }
22451 return resultobj;
22452fail:
22453 return NULL;
22454}
22455
22456
22457SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22458 PyObject *resultobj = 0;
22459 wxDC *arg1 = (wxDC *) 0 ;
22460 int arg2 ;
22461 int arg3 ;
22462 void *argp1 = 0 ;
22463 int res1 = 0 ;
22464 int val2 ;
22465 int ecode2 = 0 ;
22466 int val3 ;
22467 int ecode3 = 0 ;
22468 PyObject * obj0 = 0 ;
22469 PyObject * obj1 = 0 ;
22470 PyObject * obj2 = 0 ;
22471 char * kwnames[] = {
22472 (char *) "self",(char *) "x",(char *) "y", NULL
22473 };
22474
22475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22477 if (!SWIG_IsOK(res1)) {
22478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22479 }
22480 arg1 = reinterpret_cast< wxDC * >(argp1);
22481 ecode2 = SWIG_AsVal_int(obj1, &val2);
22482 if (!SWIG_IsOK(ecode2)) {
22483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22484 }
22485 arg2 = static_cast< int >(val2);
22486 ecode3 = SWIG_AsVal_int(obj2, &val3);
22487 if (!SWIG_IsOK(ecode3)) {
22488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22489 }
22490 arg3 = static_cast< int >(val3);
22491 {
22492 PyThreadState* __tstate = wxPyBeginAllowThreads();
22493 (arg1)->SetDeviceOrigin(arg2,arg3);
22494 wxPyEndAllowThreads(__tstate);
22495 if (PyErr_Occurred()) SWIG_fail;
22496 }
22497 resultobj = SWIG_Py_Void();
22498 return resultobj;
22499fail:
22500 return NULL;
22501}
22502
22503
22504SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22505 PyObject *resultobj = 0;
22506 wxDC *arg1 = (wxDC *) 0 ;
22507 wxPoint *arg2 = 0 ;
22508 void *argp1 = 0 ;
22509 int res1 = 0 ;
22510 wxPoint temp2 ;
22511 PyObject * obj0 = 0 ;
22512 PyObject * obj1 = 0 ;
22513 char * kwnames[] = {
22514 (char *) "self",(char *) "point", NULL
22515 };
22516
22517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22519 if (!SWIG_IsOK(res1)) {
22520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22521 }
22522 arg1 = reinterpret_cast< wxDC * >(argp1);
22523 {
22524 arg2 = &temp2;
22525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22526 }
22527 {
22528 PyThreadState* __tstate = wxPyBeginAllowThreads();
22529 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22530 wxPyEndAllowThreads(__tstate);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 resultobj = SWIG_Py_Void();
22534 return resultobj;
22535fail:
22536 return NULL;
22537}
22538
22539
22540SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22541 PyObject *resultobj = 0;
22542 wxDC *arg1 = (wxDC *) 0 ;
22543 bool arg2 ;
22544 bool arg3 ;
22545 void *argp1 = 0 ;
22546 int res1 = 0 ;
22547 bool val2 ;
22548 int ecode2 = 0 ;
22549 bool val3 ;
22550 int ecode3 = 0 ;
22551 PyObject * obj0 = 0 ;
22552 PyObject * obj1 = 0 ;
22553 PyObject * obj2 = 0 ;
22554 char * kwnames[] = {
22555 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22556 };
22557
22558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22560 if (!SWIG_IsOK(res1)) {
22561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22562 }
22563 arg1 = reinterpret_cast< wxDC * >(argp1);
22564 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22565 if (!SWIG_IsOK(ecode2)) {
22566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22567 }
22568 arg2 = static_cast< bool >(val2);
22569 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22570 if (!SWIG_IsOK(ecode3)) {
22571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22572 }
22573 arg3 = static_cast< bool >(val3);
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 (arg1)->SetAxisOrientation(arg2,arg3);
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_Py_Void();
22581 return resultobj;
22582fail:
22583 return NULL;
22584}
22585
22586
22587SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588 PyObject *resultobj = 0;
22589 wxDC *arg1 = (wxDC *) 0 ;
22590 int result;
22591 void *argp1 = 0 ;
22592 int res1 = 0 ;
22593 PyObject *swig_obj[1] ;
22594
22595 if (!args) SWIG_fail;
22596 swig_obj[0] = args;
22597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22598 if (!SWIG_IsOK(res1)) {
22599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22600 }
22601 arg1 = reinterpret_cast< wxDC * >(argp1);
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 resultobj = SWIG_From_int(static_cast< int >(result));
22609 return resultobj;
22610fail:
22611 return NULL;
22612}
22613
22614
22615SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22616 PyObject *resultobj = 0;
22617 wxDC *arg1 = (wxDC *) 0 ;
22618 int arg2 ;
22619 void *argp1 = 0 ;
22620 int res1 = 0 ;
22621 int val2 ;
22622 int ecode2 = 0 ;
22623 PyObject * obj0 = 0 ;
22624 PyObject * obj1 = 0 ;
22625 char * kwnames[] = {
22626 (char *) "self",(char *) "function", NULL
22627 };
22628
22629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22631 if (!SWIG_IsOK(res1)) {
22632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22633 }
22634 arg1 = reinterpret_cast< wxDC * >(argp1);
22635 ecode2 = SWIG_AsVal_int(obj1, &val2);
22636 if (!SWIG_IsOK(ecode2)) {
22637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22638 }
22639 arg2 = static_cast< int >(val2);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 (arg1)->SetLogicalFunction(arg2);
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 resultobj = SWIG_Py_Void();
22647 return resultobj;
22648fail:
22649 return NULL;
22650}
22651
22652
22653SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22654 PyObject *resultobj = 0;
22655 wxDC *arg1 = (wxDC *) 0 ;
22656 void *argp1 = 0 ;
22657 int res1 = 0 ;
22658 PyObject *swig_obj[1] ;
22659
22660 if (!args) SWIG_fail;
22661 swig_obj[0] = args;
22662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22663 if (!SWIG_IsOK(res1)) {
22664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22665 }
22666 arg1 = reinterpret_cast< wxDC * >(argp1);
22667 {
22668 PyThreadState* __tstate = wxPyBeginAllowThreads();
22669 (arg1)->ComputeScaleAndOrigin();
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 resultobj = SWIG_Py_Void();
22674 return resultobj;
22675fail:
22676 return NULL;
22677}
22678
22679
22680SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj = 0;
22682 wxDC *arg1 = (wxDC *) 0 ;
22683 int arg2 ;
22684 int arg3 ;
22685 void *argp1 = 0 ;
22686 int res1 = 0 ;
22687 int val2 ;
22688 int ecode2 = 0 ;
22689 int val3 ;
22690 int ecode3 = 0 ;
22691 PyObject * obj0 = 0 ;
22692 PyObject * obj1 = 0 ;
22693 PyObject * obj2 = 0 ;
22694 char * kwnames[] = {
22695 (char *) "self",(char *) "x",(char *) "y", NULL
22696 };
22697
22698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22702 }
22703 arg1 = reinterpret_cast< wxDC * >(argp1);
22704 ecode2 = SWIG_AsVal_int(obj1, &val2);
22705 if (!SWIG_IsOK(ecode2)) {
22706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22707 }
22708 arg2 = static_cast< int >(val2);
22709 ecode3 = SWIG_AsVal_int(obj2, &val3);
22710 if (!SWIG_IsOK(ecode3)) {
22711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22712 }
22713 arg3 = static_cast< int >(val3);
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 (arg1)->CalcBoundingBox(arg2,arg3);
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 resultobj = SWIG_Py_Void();
22721 return resultobj;
22722fail:
22723 return NULL;
22724}
22725
22726
22727SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22728 PyObject *resultobj = 0;
22729 wxDC *arg1 = (wxDC *) 0 ;
22730 wxPoint *arg2 = 0 ;
22731 void *argp1 = 0 ;
22732 int res1 = 0 ;
22733 wxPoint temp2 ;
22734 PyObject * obj0 = 0 ;
22735 PyObject * obj1 = 0 ;
22736 char * kwnames[] = {
22737 (char *) "self",(char *) "point", NULL
22738 };
22739
22740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22742 if (!SWIG_IsOK(res1)) {
22743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22744 }
22745 arg1 = reinterpret_cast< wxDC * >(argp1);
22746 {
22747 arg2 = &temp2;
22748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22749 }
22750 {
22751 PyThreadState* __tstate = wxPyBeginAllowThreads();
22752 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 resultobj = SWIG_Py_Void();
22757 return resultobj;
22758fail:
22759 return NULL;
22760}
22761
22762
22763SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22764 PyObject *resultobj = 0;
22765 wxDC *arg1 = (wxDC *) 0 ;
22766 void *argp1 = 0 ;
22767 int res1 = 0 ;
22768 PyObject *swig_obj[1] ;
22769
22770 if (!args) SWIG_fail;
22771 swig_obj[0] = args;
22772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22773 if (!SWIG_IsOK(res1)) {
22774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22775 }
22776 arg1 = reinterpret_cast< wxDC * >(argp1);
22777 {
22778 PyThreadState* __tstate = wxPyBeginAllowThreads();
22779 (arg1)->ResetBoundingBox();
22780 wxPyEndAllowThreads(__tstate);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 }
22783 resultobj = SWIG_Py_Void();
22784 return resultobj;
22785fail:
22786 return NULL;
22787}
22788
22789
22790SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22791 PyObject *resultobj = 0;
22792 wxDC *arg1 = (wxDC *) 0 ;
22793 int result;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 PyObject *swig_obj[1] ;
22797
22798 if (!args) SWIG_fail;
22799 swig_obj[0] = args;
22800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22801 if (!SWIG_IsOK(res1)) {
22802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22803 }
22804 arg1 = reinterpret_cast< wxDC * >(argp1);
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (int)((wxDC const *)arg1)->MinX();
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = SWIG_From_int(static_cast< int >(result));
22812 return resultobj;
22813fail:
22814 return NULL;
22815}
22816
22817
22818SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22819 PyObject *resultobj = 0;
22820 wxDC *arg1 = (wxDC *) 0 ;
22821 int result;
22822 void *argp1 = 0 ;
22823 int res1 = 0 ;
22824 PyObject *swig_obj[1] ;
22825
22826 if (!args) SWIG_fail;
22827 swig_obj[0] = args;
22828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22829 if (!SWIG_IsOK(res1)) {
22830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22831 }
22832 arg1 = reinterpret_cast< wxDC * >(argp1);
22833 {
22834 PyThreadState* __tstate = wxPyBeginAllowThreads();
22835 result = (int)((wxDC const *)arg1)->MaxX();
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 resultobj = SWIG_From_int(static_cast< int >(result));
22840 return resultobj;
22841fail:
22842 return NULL;
22843}
22844
22845
22846SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22847 PyObject *resultobj = 0;
22848 wxDC *arg1 = (wxDC *) 0 ;
22849 int result;
22850 void *argp1 = 0 ;
22851 int res1 = 0 ;
22852 PyObject *swig_obj[1] ;
22853
22854 if (!args) SWIG_fail;
22855 swig_obj[0] = args;
22856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22857 if (!SWIG_IsOK(res1)) {
22858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22859 }
22860 arg1 = reinterpret_cast< wxDC * >(argp1);
22861 {
22862 PyThreadState* __tstate = wxPyBeginAllowThreads();
22863 result = (int)((wxDC const *)arg1)->MinY();
22864 wxPyEndAllowThreads(__tstate);
22865 if (PyErr_Occurred()) SWIG_fail;
22866 }
22867 resultobj = SWIG_From_int(static_cast< int >(result));
22868 return resultobj;
22869fail:
22870 return NULL;
22871}
22872
22873
22874SWIGINTERN PyObject *_wrap_DC_MaxY(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_MaxY" "', 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)->MaxY();
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_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22903 PyObject *resultobj = 0;
22904 wxDC *arg1 = (wxDC *) 0 ;
22905 int *arg2 = (int *) 0 ;
22906 int *arg3 = (int *) 0 ;
22907 int *arg4 = (int *) 0 ;
22908 int *arg5 = (int *) 0 ;
22909 void *argp1 = 0 ;
22910 int res1 = 0 ;
22911 int temp2 ;
22912 int res2 = SWIG_TMPOBJ ;
22913 int temp3 ;
22914 int res3 = SWIG_TMPOBJ ;
22915 int temp4 ;
22916 int res4 = SWIG_TMPOBJ ;
22917 int temp5 ;
22918 int res5 = SWIG_TMPOBJ ;
22919 PyObject *swig_obj[1] ;
22920
22921 arg2 = &temp2;
22922 arg3 = &temp3;
22923 arg4 = &temp4;
22924 arg5 = &temp5;
22925 if (!args) SWIG_fail;
22926 swig_obj[0] = args;
22927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22930 }
22931 arg1 = reinterpret_cast< wxDC * >(argp1);
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 resultobj = SWIG_Py_Void();
22939 if (SWIG_IsTmpObj(res2)) {
22940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22941 } else {
22942 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22944 }
22945 if (SWIG_IsTmpObj(res3)) {
22946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22947 } else {
22948 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22950 }
22951 if (SWIG_IsTmpObj(res4)) {
22952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22953 } else {
22954 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22956 }
22957 if (SWIG_IsTmpObj(res5)) {
22958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22959 } else {
22960 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22962 }
22963 return resultobj;
22964fail:
22965 return NULL;
22966}
22967
22968
b39fe951
RD
22969SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22970 PyObject *resultobj = 0;
22971 wxDC *arg1 = (wxDC *) 0 ;
22972 wxLayoutDirection result;
22973 void *argp1 = 0 ;
22974 int res1 = 0 ;
22975 PyObject *swig_obj[1] ;
22976
22977 if (!args) SWIG_fail;
22978 swig_obj[0] = args;
22979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22982 }
22983 arg1 = reinterpret_cast< wxDC * >(argp1);
22984 {
22985 PyThreadState* __tstate = wxPyBeginAllowThreads();
22986 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 resultobj = SWIG_From_int(static_cast< int >(result));
22991 return resultobj;
22992fail:
22993 return NULL;
22994}
22995
22996
22997SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22998 PyObject *resultobj = 0;
22999 wxDC *arg1 = (wxDC *) 0 ;
23000 wxLayoutDirection arg2 ;
23001 void *argp1 = 0 ;
23002 int res1 = 0 ;
23003 int val2 ;
23004 int ecode2 = 0 ;
23005 PyObject * obj0 = 0 ;
23006 PyObject * obj1 = 0 ;
23007 char * kwnames[] = {
23008 (char *) "self",(char *) "dir", NULL
23009 };
23010
23011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23013 if (!SWIG_IsOK(res1)) {
23014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23015 }
23016 arg1 = reinterpret_cast< wxDC * >(argp1);
23017 ecode2 = SWIG_AsVal_int(obj1, &val2);
23018 if (!SWIG_IsOK(ecode2)) {
23019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23020 }
23021 arg2 = static_cast< wxLayoutDirection >(val2);
23022 {
23023 PyThreadState* __tstate = wxPyBeginAllowThreads();
23024 (arg1)->SetLayoutDirection(arg2);
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 resultobj = SWIG_Py_Void();
23029 return resultobj;
23030fail:
23031 return NULL;
23032}
23033
23034
1bd55598
RD
23035SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23036 PyObject *resultobj = 0;
23037 wxDC *arg1 = (wxDC *) 0 ;
23038 PyObject *arg2 = (PyObject *) 0 ;
23039 PyObject *arg3 = (PyObject *) 0 ;
23040 PyObject *arg4 = (PyObject *) 0 ;
23041 PyObject *result = 0 ;
23042 void *argp1 = 0 ;
23043 int res1 = 0 ;
23044 PyObject * obj0 = 0 ;
23045 PyObject * obj1 = 0 ;
23046 PyObject * obj2 = 0 ;
23047 PyObject * obj3 = 0 ;
23048 char * kwnames[] = {
23049 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23050 };
23051
23052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23054 if (!SWIG_IsOK(res1)) {
23055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23056 }
23057 arg1 = reinterpret_cast< wxDC * >(argp1);
23058 arg2 = obj1;
23059 arg3 = obj2;
23060 arg4 = obj3;
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 resultobj = result;
23068 return resultobj;
23069fail:
23070 return NULL;
23071}
23072
23073
23074SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23075 PyObject *resultobj = 0;
23076 wxDC *arg1 = (wxDC *) 0 ;
23077 PyObject *arg2 = (PyObject *) 0 ;
23078 PyObject *arg3 = (PyObject *) 0 ;
23079 PyObject *arg4 = (PyObject *) 0 ;
23080 PyObject *result = 0 ;
23081 void *argp1 = 0 ;
23082 int res1 = 0 ;
23083 PyObject * obj0 = 0 ;
23084 PyObject * obj1 = 0 ;
23085 PyObject * obj2 = 0 ;
23086 PyObject * obj3 = 0 ;
23087 char * kwnames[] = {
23088 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23089 };
23090
23091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23093 if (!SWIG_IsOK(res1)) {
23094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23095 }
23096 arg1 = reinterpret_cast< wxDC * >(argp1);
23097 arg2 = obj1;
23098 arg3 = obj2;
23099 arg4 = obj3;
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 resultobj = result;
23107 return resultobj;
23108fail:
23109 return NULL;
23110}
23111
23112
23113SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23114 PyObject *resultobj = 0;
23115 wxDC *arg1 = (wxDC *) 0 ;
23116 PyObject *arg2 = (PyObject *) 0 ;
23117 PyObject *arg3 = (PyObject *) 0 ;
23118 PyObject *arg4 = (PyObject *) 0 ;
23119 PyObject *result = 0 ;
23120 void *argp1 = 0 ;
23121 int res1 = 0 ;
23122 PyObject * obj0 = 0 ;
23123 PyObject * obj1 = 0 ;
23124 PyObject * obj2 = 0 ;
23125 PyObject * obj3 = 0 ;
23126 char * kwnames[] = {
23127 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23128 };
23129
23130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23132 if (!SWIG_IsOK(res1)) {
23133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23134 }
23135 arg1 = reinterpret_cast< wxDC * >(argp1);
23136 arg2 = obj1;
23137 arg3 = obj2;
23138 arg4 = obj3;
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 resultobj = result;
23146 return resultobj;
23147fail:
23148 return NULL;
23149}
23150
23151
23152SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23153 PyObject *resultobj = 0;
23154 wxDC *arg1 = (wxDC *) 0 ;
23155 PyObject *arg2 = (PyObject *) 0 ;
23156 PyObject *arg3 = (PyObject *) 0 ;
23157 PyObject *arg4 = (PyObject *) 0 ;
23158 PyObject *result = 0 ;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 PyObject * obj0 = 0 ;
23162 PyObject * obj1 = 0 ;
23163 PyObject * obj2 = 0 ;
23164 PyObject * obj3 = 0 ;
23165 char * kwnames[] = {
23166 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23167 };
23168
23169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23171 if (!SWIG_IsOK(res1)) {
23172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23173 }
23174 arg1 = reinterpret_cast< wxDC * >(argp1);
23175 arg2 = obj1;
23176 arg3 = obj2;
23177 arg4 = obj3;
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23181 wxPyEndAllowThreads(__tstate);
23182 if (PyErr_Occurred()) SWIG_fail;
23183 }
23184 resultobj = result;
23185 return resultobj;
23186fail:
23187 return NULL;
23188}
23189
23190
23191SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23192 PyObject *resultobj = 0;
23193 wxDC *arg1 = (wxDC *) 0 ;
23194 PyObject *arg2 = (PyObject *) 0 ;
23195 PyObject *arg3 = (PyObject *) 0 ;
23196 PyObject *arg4 = (PyObject *) 0 ;
23197 PyObject *result = 0 ;
23198 void *argp1 = 0 ;
23199 int res1 = 0 ;
23200 PyObject * obj0 = 0 ;
23201 PyObject * obj1 = 0 ;
23202 PyObject * obj2 = 0 ;
23203 PyObject * obj3 = 0 ;
23204 char * kwnames[] = {
23205 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23206 };
23207
23208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23210 if (!SWIG_IsOK(res1)) {
23211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23212 }
23213 arg1 = reinterpret_cast< wxDC * >(argp1);
23214 arg2 = obj1;
23215 arg3 = obj2;
23216 arg4 = obj3;
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = result;
23224 return resultobj;
23225fail:
23226 return NULL;
23227}
23228
23229
23230SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23231 PyObject *resultobj = 0;
23232 wxDC *arg1 = (wxDC *) 0 ;
23233 PyObject *arg2 = (PyObject *) 0 ;
23234 PyObject *arg3 = (PyObject *) 0 ;
23235 PyObject *arg4 = (PyObject *) 0 ;
23236 PyObject *arg5 = (PyObject *) 0 ;
23237 PyObject *result = 0 ;
23238 void *argp1 = 0 ;
23239 int res1 = 0 ;
23240 PyObject * obj0 = 0 ;
23241 PyObject * obj1 = 0 ;
23242 PyObject * obj2 = 0 ;
23243 PyObject * obj3 = 0 ;
23244 PyObject * obj4 = 0 ;
23245 char * kwnames[] = {
23246 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23247 };
23248
23249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23251 if (!SWIG_IsOK(res1)) {
23252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23253 }
23254 arg1 = reinterpret_cast< wxDC * >(argp1);
23255 arg2 = obj1;
23256 arg3 = obj2;
23257 arg4 = obj3;
23258 arg5 = obj4;
23259 {
23260 PyThreadState* __tstate = wxPyBeginAllowThreads();
23261 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23262 wxPyEndAllowThreads(__tstate);
23263 if (PyErr_Occurred()) SWIG_fail;
23264 }
23265 resultobj = result;
23266 return resultobj;
23267fail:
23268 return NULL;
23269}
23270
23271
23272SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23273 PyObject *obj;
23274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23275 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23276 return SWIG_Py_Void();
23277}
23278
70d7cb34
RD
23279SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23280 PyObject *resultobj = 0;
23281 wxDC *arg1 = 0 ;
23282 wxColour *arg2 = 0 ;
23283 wxDCTextColourChanger *result = 0 ;
23284 void *argp1 = 0 ;
23285 int res1 = 0 ;
23286 wxColour temp2 ;
23287 PyObject * obj0 = 0 ;
23288 PyObject * obj1 = 0 ;
23289 char * kwnames[] = {
23290 (char *) "dc",(char *) "col", NULL
23291 };
23292
23293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23294 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23295 if (!SWIG_IsOK(res1)) {
23296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23297 }
23298 if (!argp1) {
23299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23300 }
23301 arg1 = reinterpret_cast< wxDC * >(argp1);
23302 {
23303 arg2 = &temp2;
23304 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23305 }
23306 {
23307 PyThreadState* __tstate = wxPyBeginAllowThreads();
23308 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23309 wxPyEndAllowThreads(__tstate);
23310 if (PyErr_Occurred()) SWIG_fail;
23311 }
23312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23313 return resultobj;
23314fail:
23315 return NULL;
23316}
23317
23318
23319SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23320 PyObject *resultobj = 0;
23321 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 PyObject *swig_obj[1] ;
23325
23326 if (!args) SWIG_fail;
23327 swig_obj[0] = args;
23328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23329 if (!SWIG_IsOK(res1)) {
23330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23331 }
23332 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 delete arg1;
23336
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = SWIG_Py_Void();
23341 return resultobj;
23342fail:
23343 return NULL;
23344}
23345
23346
23347SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23348 PyObject *obj;
23349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23350 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23351 return SWIG_Py_Void();
23352}
23353
23354SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23355 return SWIG_Python_InitShadowInstance(args);
23356}
23357
23358SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23359 PyObject *resultobj = 0;
23360 wxDC *arg1 = 0 ;
23361 wxPen *arg2 = 0 ;
23362 wxDCPenChanger *result = 0 ;
23363 void *argp1 = 0 ;
23364 int res1 = 0 ;
23365 void *argp2 = 0 ;
23366 int res2 = 0 ;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 char * kwnames[] = {
23370 (char *) "dc",(char *) "pen", NULL
23371 };
23372
23373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23374 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23375 if (!SWIG_IsOK(res1)) {
23376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23377 }
23378 if (!argp1) {
23379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23380 }
23381 arg1 = reinterpret_cast< wxDC * >(argp1);
23382 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23383 if (!SWIG_IsOK(res2)) {
23384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23385 }
23386 if (!argp2) {
23387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23388 }
23389 arg2 = reinterpret_cast< wxPen * >(argp2);
23390 {
23391 PyThreadState* __tstate = wxPyBeginAllowThreads();
23392 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23393 wxPyEndAllowThreads(__tstate);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 }
23396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23397 return resultobj;
23398fail:
23399 return NULL;
23400}
23401
23402
23403SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23404 PyObject *resultobj = 0;
23405 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 PyObject *swig_obj[1] ;
23409
23410 if (!args) SWIG_fail;
23411 swig_obj[0] = args;
23412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23413 if (!SWIG_IsOK(res1)) {
23414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23415 }
23416 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 delete arg1;
23420
23421 wxPyEndAllowThreads(__tstate);
23422 if (PyErr_Occurred()) SWIG_fail;
23423 }
23424 resultobj = SWIG_Py_Void();
23425 return resultobj;
23426fail:
23427 return NULL;
23428}
23429
23430
23431SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23432 PyObject *obj;
23433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23434 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23435 return SWIG_Py_Void();
23436}
23437
23438SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23439 return SWIG_Python_InitShadowInstance(args);
23440}
23441
23442SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23443 PyObject *resultobj = 0;
23444 wxDC *arg1 = 0 ;
23445 wxBrush *arg2 = 0 ;
23446 wxDCBrushChanger *result = 0 ;
23447 void *argp1 = 0 ;
23448 int res1 = 0 ;
23449 void *argp2 = 0 ;
23450 int res2 = 0 ;
23451 PyObject * obj0 = 0 ;
23452 PyObject * obj1 = 0 ;
23453 char * kwnames[] = {
23454 (char *) "dc",(char *) "brush", NULL
23455 };
23456
23457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23458 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23459 if (!SWIG_IsOK(res1)) {
23460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23461 }
23462 if (!argp1) {
23463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23464 }
23465 arg1 = reinterpret_cast< wxDC * >(argp1);
23466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23467 if (!SWIG_IsOK(res2)) {
23468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23469 }
23470 if (!argp2) {
23471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23472 }
23473 arg2 = reinterpret_cast< wxBrush * >(argp2);
23474 {
23475 PyThreadState* __tstate = wxPyBeginAllowThreads();
23476 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23477 wxPyEndAllowThreads(__tstate);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 }
23480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23481 return resultobj;
23482fail:
23483 return NULL;
23484}
23485
23486
23487SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23488 PyObject *resultobj = 0;
23489 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23490 void *argp1 = 0 ;
23491 int res1 = 0 ;
23492 PyObject *swig_obj[1] ;
23493
23494 if (!args) SWIG_fail;
23495 swig_obj[0] = args;
23496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23499 }
23500 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 delete arg1;
23504
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 resultobj = SWIG_Py_Void();
23509 return resultobj;
23510fail:
23511 return NULL;
23512}
23513
23514
23515SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23516 PyObject *obj;
23517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23518 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23519 return SWIG_Py_Void();
23520}
23521
23522SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23523 return SWIG_Python_InitShadowInstance(args);
23524}
23525
23526SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23527 PyObject *resultobj = 0;
23528 wxDC *arg1 = 0 ;
23529 wxRegion *arg2 = 0 ;
23530 wxDCClipper *result = 0 ;
23531 void *argp1 = 0 ;
23532 int res1 = 0 ;
23533 void *argp2 = 0 ;
23534 int res2 = 0 ;
23535
23536 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23538 if (!SWIG_IsOK(res1)) {
23539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23540 }
23541 if (!argp1) {
23542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23543 }
23544 arg1 = reinterpret_cast< wxDC * >(argp1);
23545 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23546 if (!SWIG_IsOK(res2)) {
23547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23548 }
23549 if (!argp2) {
23550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23551 }
23552 arg2 = reinterpret_cast< wxRegion * >(argp2);
23553 {
23554 PyThreadState* __tstate = wxPyBeginAllowThreads();
23555 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23556 wxPyEndAllowThreads(__tstate);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 }
23559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23560 return resultobj;
23561fail:
23562 return NULL;
23563}
23564
23565
23566SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23567 PyObject *resultobj = 0;
23568 wxDC *arg1 = 0 ;
23569 wxRect *arg2 = 0 ;
23570 wxDCClipper *result = 0 ;
23571 void *argp1 = 0 ;
23572 int res1 = 0 ;
23573 wxRect temp2 ;
23574
23575 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23577 if (!SWIG_IsOK(res1)) {
23578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23579 }
23580 if (!argp1) {
23581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23582 }
23583 arg1 = reinterpret_cast< wxDC * >(argp1);
23584 {
23585 arg2 = &temp2;
23586 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23587 }
23588 {
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23595 return resultobj;
23596fail:
23597 return NULL;
23598}
23599
23600
23601SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23602 PyObject *resultobj = 0;
23603 wxDC *arg1 = 0 ;
23604 int arg2 ;
23605 int arg3 ;
23606 int arg4 ;
23607 int arg5 ;
23608 wxDCClipper *result = 0 ;
23609 void *argp1 = 0 ;
23610 int res1 = 0 ;
23611 int val2 ;
23612 int ecode2 = 0 ;
23613 int val3 ;
23614 int ecode3 = 0 ;
23615 int val4 ;
23616 int ecode4 = 0 ;
23617 int val5 ;
23618 int ecode5 = 0 ;
23619
23620 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23622 if (!SWIG_IsOK(res1)) {
23623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23624 }
23625 if (!argp1) {
23626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23627 }
23628 arg1 = reinterpret_cast< wxDC * >(argp1);
23629 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23630 if (!SWIG_IsOK(ecode2)) {
23631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23632 }
23633 arg2 = static_cast< int >(val2);
23634 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23635 if (!SWIG_IsOK(ecode3)) {
23636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23637 }
23638 arg3 = static_cast< int >(val3);
23639 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23640 if (!SWIG_IsOK(ecode4)) {
23641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23642 }
23643 arg4 = static_cast< int >(val4);
23644 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23645 if (!SWIG_IsOK(ecode5)) {
23646 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23647 }
23648 arg5 = static_cast< int >(val5);
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23656 return resultobj;
23657fail:
23658 return NULL;
23659}
23660
23661
23662SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23663 int argc;
23664 PyObject *argv[6];
23665
23666 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23667 --argc;
23668 if (argc == 2) {
23669 int _v = 0;
23670 {
23671 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23672 _v = SWIG_CheckState(res);
23673 }
23674 if (!_v) goto check_1;
23675 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23676 }
23677check_1:
23678
23679 if (argc == 2) {
23680 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23681 }
23682 if (argc == 5) {
23683 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23684 }
23685
23686fail:
23687 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23688 return NULL;
23689}
23690
23691
23692SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23693 PyObject *resultobj = 0;
23694 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23695 void *argp1 = 0 ;
23696 int res1 = 0 ;
23697 PyObject *swig_obj[1] ;
23698
23699 if (!args) SWIG_fail;
23700 swig_obj[0] = args;
23701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23702 if (!SWIG_IsOK(res1)) {
23703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23704 }
23705 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23706 {
23707 PyThreadState* __tstate = wxPyBeginAllowThreads();
23708 delete arg1;
23709
23710 wxPyEndAllowThreads(__tstate);
23711 if (PyErr_Occurred()) SWIG_fail;
23712 }
23713 resultobj = SWIG_Py_Void();
23714 return resultobj;
23715fail:
23716 return NULL;
23717}
23718
23719
23720SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23721 PyObject *obj;
23722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23723 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23724 return SWIG_Py_Void();
23725}
23726
23727SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23728 return SWIG_Python_InitShadowInstance(args);
23729}
23730
8e99bda9 23731SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23732 PyObject *resultobj = 0;
8e99bda9
RD
23733 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23734 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
1bd55598 23735 wxMemoryDC *result = 0 ;
8e99bda9
RD
23736 void *argp1 = 0 ;
23737 int res1 = 0 ;
23738 PyObject * obj0 = 0 ;
23739 char * kwnames[] = {
23740 (char *) "bitmap", NULL
23741 };
1bd55598 23742
8e99bda9
RD
23743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23744 if (obj0) {
23745 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23746 if (!SWIG_IsOK(res1)) {
23747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23748 }
23749 if (!argp1) {
23750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23751 }
23752 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23753 }
1bd55598
RD
23754 {
23755 if (!wxPyCheckForApp()) SWIG_fail;
23756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23757 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
1bd55598
RD
23758 wxPyEndAllowThreads(__tstate);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 }
23761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23762 return resultobj;
23763fail:
23764 return NULL;
23765}
23766
23767
23768SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23769 PyObject *resultobj = 0;
23770 wxDC *arg1 = (wxDC *) 0 ;
23771 wxMemoryDC *result = 0 ;
23772 void *argp1 = 0 ;
23773 int res1 = 0 ;
23774 PyObject * obj0 = 0 ;
23775 char * kwnames[] = {
23776 (char *) "oldDC", NULL
23777 };
23778
23779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23781 if (!SWIG_IsOK(res1)) {
23782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23783 }
23784 arg1 = reinterpret_cast< wxDC * >(argp1);
23785 {
23786 if (!wxPyCheckForApp()) SWIG_fail;
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23793 return resultobj;
23794fail:
23795 return NULL;
23796}
23797
23798
23799SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23800 PyObject *resultobj = 0;
23801 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23802 wxBitmap *arg2 = 0 ;
23803 void *argp1 = 0 ;
23804 int res1 = 0 ;
23805 void *argp2 = 0 ;
23806 int res2 = 0 ;
23807 PyObject * obj0 = 0 ;
23808 PyObject * obj1 = 0 ;
23809 char * kwnames[] = {
23810 (char *) "self",(char *) "bitmap", NULL
23811 };
23812
23813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23815 if (!SWIG_IsOK(res1)) {
23816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23817 }
23818 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23820 if (!SWIG_IsOK(res2)) {
23821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23822 }
23823 if (!argp2) {
23824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23825 }
23826 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 (arg1)->SelectObject((wxBitmap const &)*arg2);
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 resultobj = SWIG_Py_Void();
23834 return resultobj;
23835fail:
23836 return NULL;
23837}
23838
23839
23840SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23841 PyObject *obj;
23842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23843 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23844 return SWIG_Py_Void();
23845}
23846
23847SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23848 return SWIG_Python_InitShadowInstance(args);
23849}
23850
24f6c4e8
RD
23851SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23852 PyObject *resultobj = 0;
23853 wxScreenDC *result = 0 ;
23854
23855 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23856 {
23857 if (!wxPyCheckForApp()) SWIG_fail;
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 result = (wxScreenDC *)new wxScreenDC();
23860 wxPyEndAllowThreads(__tstate);
23861 if (PyErr_Occurred()) SWIG_fail;
23862 }
23863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23864 return resultobj;
23865fail:
23866 return NULL;
23867}
23868
23869
23870SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23871 PyObject *resultobj = 0;
23872 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23873 wxWindow *arg2 = (wxWindow *) 0 ;
23874 bool result;
23875 void *argp1 = 0 ;
23876 int res1 = 0 ;
23877 void *argp2 = 0 ;
23878 int res2 = 0 ;
23879 PyObject * obj0 = 0 ;
23880 PyObject * obj1 = 0 ;
23881 char * kwnames[] = {
23882 (char *) "self",(char *) "window", NULL
23883 };
23884
23885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23887 if (!SWIG_IsOK(res1)) {
23888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23889 }
23890 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23892 if (!SWIG_IsOK(res2)) {
23893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23894 }
23895 arg2 = reinterpret_cast< wxWindow * >(argp2);
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23899 wxPyEndAllowThreads(__tstate);
23900 if (PyErr_Occurred()) SWIG_fail;
23901 }
23902 {
23903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23904 }
23905 return resultobj;
23906fail:
23907 return NULL;
23908}
23909
23910
23911SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23912 PyObject *resultobj = 0;
23913 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23914 wxRect *arg2 = (wxRect *) NULL ;
23915 bool result;
23916 void *argp1 = 0 ;
23917 int res1 = 0 ;
23918 void *argp2 = 0 ;
23919 int res2 = 0 ;
23920 PyObject * obj0 = 0 ;
23921 PyObject * obj1 = 0 ;
23922 char * kwnames[] = {
23923 (char *) "self",(char *) "rect", NULL
23924 };
23925
23926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23928 if (!SWIG_IsOK(res1)) {
23929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23930 }
23931 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23932 if (obj1) {
23933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23934 if (!SWIG_IsOK(res2)) {
23935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23936 }
23937 arg2 = reinterpret_cast< wxRect * >(argp2);
23938 }
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 {
23946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23947 }
23948 return resultobj;
23949fail:
23950 return NULL;
23951}
23952
23953
23954SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23955 PyObject *resultobj = 0;
23956 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23957 bool result;
23958 void *argp1 = 0 ;
23959 int res1 = 0 ;
23960 PyObject *swig_obj[1] ;
23961
23962 if (!args) SWIG_fail;
23963 swig_obj[0] = args;
23964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23965 if (!SWIG_IsOK(res1)) {
23966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23967 }
23968 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23969 {
23970 PyThreadState* __tstate = wxPyBeginAllowThreads();
23971 result = (bool)(arg1)->EndDrawingOnTop();
23972 wxPyEndAllowThreads(__tstate);
23973 if (PyErr_Occurred()) SWIG_fail;
23974 }
23975 {
23976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23977 }
23978 return resultobj;
23979fail:
23980 return NULL;
23981}
23982
23983
23984SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23985 PyObject *obj;
23986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23987 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23988 return SWIG_Py_Void();
23989}
23990
23991SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23992 return SWIG_Python_InitShadowInstance(args);
23993}
23994
23995SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23996 PyObject *resultobj = 0;
23997 wxWindow *arg1 = (wxWindow *) 0 ;
23998 wxWindowDC *result = 0 ;
23999 void *argp1 = 0 ;
24000 int res1 = 0 ;
24001 PyObject * obj0 = 0 ;
24002 char * kwnames[] = {
24003 (char *) "win", NULL
24004 };
24005
24006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24008 if (!SWIG_IsOK(res1)) {
24009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24010 }
24011 arg1 = reinterpret_cast< wxWindow * >(argp1);
24012 {
24013 if (!wxPyCheckForApp()) SWIG_fail;
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 result = (wxWindowDC *)new wxWindowDC(arg1);
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24020 return resultobj;
24021fail:
24022 return NULL;
24023}
24024
24025
24026SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24027 PyObject *obj;
24028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24029 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24030 return SWIG_Py_Void();
24031}
24032
24033SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24034 return SWIG_Python_InitShadowInstance(args);
24035}
24036
24037SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24038 PyObject *resultobj = 0;
24039 wxWindow *arg1 = (wxWindow *) 0 ;
24040 wxClientDC *result = 0 ;
24041 void *argp1 = 0 ;
24042 int res1 = 0 ;
24043 PyObject * obj0 = 0 ;
24044 char * kwnames[] = {
24045 (char *) "win", NULL
24046 };
24047
24048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24050 if (!SWIG_IsOK(res1)) {
24051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24052 }
24053 arg1 = reinterpret_cast< wxWindow * >(argp1);
24054 {
24055 if (!wxPyCheckForApp()) SWIG_fail;
24056 PyThreadState* __tstate = wxPyBeginAllowThreads();
24057 result = (wxClientDC *)new wxClientDC(arg1);
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24062 return resultobj;
24063fail:
24064 return NULL;
24065}
24066
24067
24068SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24069 PyObject *obj;
24070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24071 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24072 return SWIG_Py_Void();
24073}
24074
24075SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24076 return SWIG_Python_InitShadowInstance(args);
24077}
24078
24079SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24080 PyObject *resultobj = 0;
24081 wxWindow *arg1 = (wxWindow *) 0 ;
24082 wxPaintDC *result = 0 ;
24083 void *argp1 = 0 ;
24084 int res1 = 0 ;
24085 PyObject * obj0 = 0 ;
24086 char * kwnames[] = {
24087 (char *) "win", NULL
24088 };
24089
24090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24092 if (!SWIG_IsOK(res1)) {
24093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24094 }
24095 arg1 = reinterpret_cast< wxWindow * >(argp1);
24096 {
24097 if (!wxPyCheckForApp()) SWIG_fail;
24098 PyThreadState* __tstate = wxPyBeginAllowThreads();
24099 result = (wxPaintDC *)new wxPaintDC(arg1);
24100 wxPyEndAllowThreads(__tstate);
24101 if (PyErr_Occurred()) SWIG_fail;
24102 }
24103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24104 return resultobj;
24105fail:
24106 return NULL;
24107}
24108
24109
24110SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24111 PyObject *obj;
24112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24113 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24114 return SWIG_Py_Void();
24115}
24116
24117SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24118 return SWIG_Python_InitShadowInstance(args);
24119}
24120
1bd55598
RD
24121SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24122 PyObject *resultobj = 0;
24123 wxDC *arg1 = (wxDC *) 0 ;
24124 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24125 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24126 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24127 wxBufferedDC *result = 0 ;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 void *argp2 = 0 ;
24131 int res2 = 0 ;
24132 int val3 ;
24133 int ecode3 = 0 ;
24134
24135 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24137 if (!SWIG_IsOK(res1)) {
24138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24139 }
24140 arg1 = reinterpret_cast< wxDC * >(argp1);
24141 if (swig_obj[1]) {
24142 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24143 if (!SWIG_IsOK(res2)) {
24144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24145 }
1bd55598
RD
24146 if (!argp2) {
24147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24148 }
1bd55598
RD
24149 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24150 }
24151 if (swig_obj[2]) {
24152 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24153 if (!SWIG_IsOK(ecode3)) {
24154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24155 }
24156 arg3 = static_cast< int >(val3);
24157 }
24158 {
24159 if (!wxPyCheckForApp()) SWIG_fail;
24160 PyThreadState* __tstate = wxPyBeginAllowThreads();
24161 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24162 wxPyEndAllowThreads(__tstate);
24163 if (PyErr_Occurred()) SWIG_fail;
24164 }
24165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24166 return resultobj;
24167fail:
24168 return NULL;
24169}
24170
24171
24172SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24173 PyObject *resultobj = 0;
24174 wxDC *arg1 = (wxDC *) 0 ;
24175 wxSize *arg2 = 0 ;
24176 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24177 wxBufferedDC *result = 0 ;
24178 void *argp1 = 0 ;
24179 int res1 = 0 ;
24180 wxSize temp2 ;
24181 int val3 ;
24182 int ecode3 = 0 ;
24183
24184 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24186 if (!SWIG_IsOK(res1)) {
24187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24188 }
24189 arg1 = reinterpret_cast< wxDC * >(argp1);
24190 {
24191 arg2 = &temp2;
24192 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24193 }
24194 if (swig_obj[2]) {
24195 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24196 if (!SWIG_IsOK(ecode3)) {
24197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24198 }
24199 arg3 = static_cast< int >(val3);
24200 }
24201 {
24202 if (!wxPyCheckForApp()) SWIG_fail;
24203 PyThreadState* __tstate = wxPyBeginAllowThreads();
24204 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24205 wxPyEndAllowThreads(__tstate);
24206 if (PyErr_Occurred()) SWIG_fail;
24207 }
24208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24209 return resultobj;
24210fail:
24211 return NULL;
24212}
24213
24214
24215SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24216 int argc;
8e99bda9 24217 PyObject *argv[4];
1bd55598 24218
8e99bda9 24219 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24220 --argc;
24221 if ((argc >= 1) && (argc <= 3)) {
24222 int _v = 0;
24223 if (argc > 1) {
24224 {
24225 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24226 _v = SWIG_CheckState(res);
24227 }
24228 if (!_v) goto check_1;
36ed4f51 24229 }
1bd55598
RD
24230 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24231 }
24232check_1:
24233
24234 if ((argc >= 2) && (argc <= 3)) {
24235 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24236 }
24237
24238fail:
24239 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24240 return NULL;
24241}
24242
24243
24244SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24245 PyObject *resultobj = 0;
24246 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24247 void *argp1 = 0 ;
24248 int res1 = 0 ;
24249 PyObject *swig_obj[1] ;
24250
24251 if (!args) SWIG_fail;
24252 swig_obj[0] = args;
24253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24254 if (!SWIG_IsOK(res1)) {
24255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24256 }
24257 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24258 {
24259 PyThreadState* __tstate = wxPyBeginAllowThreads();
24260 delete arg1;
24261
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 resultobj = SWIG_Py_Void();
24266 return resultobj;
24267fail:
24268 return NULL;
24269}
24270
24271
24272SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24273 PyObject *resultobj = 0;
24274 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 PyObject *swig_obj[1] ;
24278
24279 if (!args) SWIG_fail;
24280 swig_obj[0] = args;
24281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24282 if (!SWIG_IsOK(res1)) {
24283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24284 }
24285 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24286 {
24287 PyThreadState* __tstate = wxPyBeginAllowThreads();
24288 (arg1)->UnMask();
24289 wxPyEndAllowThreads(__tstate);
24290 if (PyErr_Occurred()) SWIG_fail;
24291 }
24292 resultobj = SWIG_Py_Void();
24293 return resultobj;
24294fail:
24295 return NULL;
24296}
24297
24298
24299SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24300 PyObject *obj;
24301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24302 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24303 return SWIG_Py_Void();
24304}
24305
24306SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24307 return SWIG_Python_InitShadowInstance(args);
24308}
24309
24310SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24311 PyObject *resultobj = 0;
24312 wxWindow *arg1 = (wxWindow *) 0 ;
24313 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24314 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24315 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24316 wxBufferedPaintDC *result = 0 ;
24317 void *argp1 = 0 ;
24318 int res1 = 0 ;
24319 void *argp2 = 0 ;
24320 int res2 = 0 ;
24321 int val3 ;
24322 int ecode3 = 0 ;
24323 PyObject * obj0 = 0 ;
24324 PyObject * obj1 = 0 ;
24325 PyObject * obj2 = 0 ;
24326 char * kwnames[] = {
24327 (char *) "window",(char *) "buffer",(char *) "style", NULL
24328 };
24329
24330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24332 if (!SWIG_IsOK(res1)) {
24333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24334 }
24335 arg1 = reinterpret_cast< wxWindow * >(argp1);
24336 if (obj1) {
24337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24338 if (!SWIG_IsOK(res2)) {
24339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24340 }
1bd55598
RD
24341 if (!argp2) {
24342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24343 }
1bd55598
RD
24344 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24345 }
24346 if (obj2) {
24347 ecode3 = SWIG_AsVal_int(obj2, &val3);
24348 if (!SWIG_IsOK(ecode3)) {
24349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24350 }
24351 arg3 = static_cast< int >(val3);
24352 }
24353 {
24354 if (!wxPyCheckForApp()) SWIG_fail;
24355 PyThreadState* __tstate = wxPyBeginAllowThreads();
24356 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24361 return resultobj;
24362fail:
24363 return NULL;
24364}
24365
24366
24367SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24368 PyObject *obj;
24369 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24370 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24371 return SWIG_Py_Void();
24372}
24373
24374SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24375 return SWIG_Python_InitShadowInstance(args);
24376}
24377
24f6c4e8 24378SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24379 PyObject *resultobj = 0;
24380 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24381 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24382 void *argp1 = 0 ;
24383 int res1 = 0 ;
24384 PyObject * obj0 = 0 ;
24385 char * kwnames[] = {
24386 (char *) "win", NULL
24387 };
24388
24f6c4e8 24389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24391 if (!SWIG_IsOK(res1)) {
24f6c4e8 24392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24393 }
24394 arg1 = reinterpret_cast< wxWindow * >(argp1);
24395 {
1bd55598 24396 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24397 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24398 wxPyEndAllowThreads(__tstate);
24399 if (PyErr_Occurred()) SWIG_fail;
24400 }
24f6c4e8 24401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24402 return resultobj;
24403fail:
24404 return NULL;
24405}
24406
24407
24f6c4e8 24408SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24409 PyObject *obj;
24410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24411 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24412 return SWIG_Py_Void();
24413}
24414
24f6c4e8 24415SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24416 return SWIG_Python_InitShadowInstance(args);
24417}
24418
8e99bda9
RD
24419SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24420 PyObject *resultobj = 0;
24421 wxWindow *arg1 = (wxWindow *) 0 ;
24422 wxDC *result = 0 ;
24423 void *argp1 = 0 ;
24424 int res1 = 0 ;
24425 PyObject * obj0 = 0 ;
24426 char * kwnames[] = {
24427 (char *) "window", NULL
24428 };
24429
24430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24432 if (!SWIG_IsOK(res1)) {
24433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24434 }
24435 arg1 = reinterpret_cast< wxWindow * >(argp1);
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 {
24443 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24444 }
24445 return resultobj;
24446fail:
24447 return NULL;
24448}
24449
24450
1bd55598
RD
24451SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj = 0;
24453 wxDC *arg1 = 0 ;
24454 bool arg2 ;
24455 wxMirrorDC *result = 0 ;
24456 void *argp1 = 0 ;
24457 int res1 = 0 ;
24458 bool val2 ;
24459 int ecode2 = 0 ;
24460 PyObject * obj0 = 0 ;
24461 PyObject * obj1 = 0 ;
24462 char * kwnames[] = {
24463 (char *) "dc",(char *) "mirror", NULL
24464 };
24465
24466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24467 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24468 if (!SWIG_IsOK(res1)) {
24469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24470 }
24471 if (!argp1) {
24472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24473 }
24474 arg1 = reinterpret_cast< wxDC * >(argp1);
24475 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24476 if (!SWIG_IsOK(ecode2)) {
24477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24478 }
24479 arg2 = static_cast< bool >(val2);
24480 {
24481 if (!wxPyCheckForApp()) SWIG_fail;
24482 PyThreadState* __tstate = wxPyBeginAllowThreads();
24483 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24484 wxPyEndAllowThreads(__tstate);
24485 if (PyErr_Occurred()) SWIG_fail;
24486 }
24487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24488 return resultobj;
24489fail:
24490 return NULL;
24491}
24492
24493
24494SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24495 PyObject *obj;
24496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24497 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24498 return SWIG_Py_Void();
24499}
24500
24501SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24502 return SWIG_Python_InitShadowInstance(args);
24503}
24504
24505SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24506 PyObject *resultobj = 0;
24507 wxPrintData *arg1 = 0 ;
24508 wxPostScriptDC *result = 0 ;
24509 void *argp1 = 0 ;
24510 int res1 = 0 ;
24511 PyObject * obj0 = 0 ;
24512 char * kwnames[] = {
24513 (char *) "printData", NULL
24514 };
24515
24516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24517 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24518 if (!SWIG_IsOK(res1)) {
24519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24520 }
24521 if (!argp1) {
24522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24523 }
24524 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24525 {
24526 if (!wxPyCheckForApp()) SWIG_fail;
24527 PyThreadState* __tstate = wxPyBeginAllowThreads();
24528 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24529 wxPyEndAllowThreads(__tstate);
24530 if (PyErr_Occurred()) SWIG_fail;
24531 }
24532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24533 return resultobj;
24534fail:
24535 return NULL;
24536}
24537
24538
24539SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24540 PyObject *resultobj = 0;
24541 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24542 wxPrintData *result = 0 ;
24543 void *argp1 = 0 ;
24544 int res1 = 0 ;
24545 PyObject *swig_obj[1] ;
24546
24547 if (!args) SWIG_fail;
24548 swig_obj[0] = args;
24549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24550 if (!SWIG_IsOK(res1)) {
24551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24552 }
24553 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24554 {
24555 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24556 {
1bd55598
RD
24557 wxPrintData &_result_ref = (arg1)->GetPrintData();
24558 result = (wxPrintData *) &_result_ref;
e2950dbb 24559 }
1bd55598
RD
24560 wxPyEndAllowThreads(__tstate);
24561 if (PyErr_Occurred()) SWIG_fail;
24562 }
24563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24564 return resultobj;
24565fail:
24566 return NULL;
24567}
24568
24569
24570SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24571 PyObject *resultobj = 0;
24572 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24573 wxPrintData *arg2 = 0 ;
24574 void *argp1 = 0 ;
24575 int res1 = 0 ;
24576 void *argp2 = 0 ;
24577 int res2 = 0 ;
24578 PyObject * obj0 = 0 ;
24579 PyObject * obj1 = 0 ;
24580 char * kwnames[] = {
24581 (char *) "self",(char *) "data", NULL
24582 };
24583
24584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24586 if (!SWIG_IsOK(res1)) {
24587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24588 }
24589 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24591 if (!SWIG_IsOK(res2)) {
24592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24593 }
24594 if (!argp2) {
24595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24596 }
24597 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24598 {
24599 PyThreadState* __tstate = wxPyBeginAllowThreads();
24600 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 resultobj = SWIG_Py_Void();
24605 return resultobj;
24606fail:
24607 return NULL;
24608}
24609
24610
24611SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24612 PyObject *resultobj = 0;
24613 int arg1 ;
24614 int val1 ;
24615 int ecode1 = 0 ;
24616 PyObject * obj0 = 0 ;
24617 char * kwnames[] = {
24618 (char *) "ppi", NULL
24619 };
24620
24621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24622 ecode1 = SWIG_AsVal_int(obj0, &val1);
24623 if (!SWIG_IsOK(ecode1)) {
24624 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24625 }
24626 arg1 = static_cast< int >(val1);
24627 {
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 wxPostScriptDC::SetResolution(arg1);
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 resultobj = SWIG_Py_Void();
24634 return resultobj;
24635fail:
24636 return NULL;
24637}
24638
24639
24640SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24641 PyObject *resultobj = 0;
24642 int result;
24643
24644 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24645 {
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 result = (int)wxPostScriptDC::GetResolution();
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 resultobj = SWIG_From_int(static_cast< int >(result));
24652 return resultobj;
24653fail:
24654 return NULL;
24655}
24656
24657
24658SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24659 PyObject *obj;
24660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24661 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24662 return SWIG_Py_Void();
24663}
24664
24665SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24666 return SWIG_Python_InitShadowInstance(args);
24667}
24668
24669SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxString const &arg1_defvalue = wxPyEmptyString ;
24672 wxString *arg1 = (wxString *) &arg1_defvalue ;
24673 wxMetaFile *result = 0 ;
24674 bool temp1 = false ;
24675 PyObject * obj0 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "filename", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24681 if (obj0) {
36ed4f51 24682 {
1bd55598
RD
24683 arg1 = wxString_in_helper(obj0);
24684 if (arg1 == NULL) SWIG_fail;
24685 temp1 = true;
36ed4f51 24686 }
1bd55598
RD
24687 }
24688 {
24689 if (!wxPyCheckForApp()) SWIG_fail;
24690 PyThreadState* __tstate = wxPyBeginAllowThreads();
24691 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24692 wxPyEndAllowThreads(__tstate);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24696 {
24697 if (temp1)
24698 delete arg1;
24699 }
24700 return resultobj;
24701fail:
24702 {
24703 if (temp1)
24704 delete arg1;
24705 }
24706 return NULL;
24707}
24708
24709
24710SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24711 PyObject *resultobj = 0;
24712 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24713 void *argp1 = 0 ;
24714 int res1 = 0 ;
24715 PyObject *swig_obj[1] ;
24716
24717 if (!args) SWIG_fail;
24718 swig_obj[0] = args;
24719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24720 if (!SWIG_IsOK(res1)) {
24721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24722 }
24723 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 delete arg1;
24727
24728 wxPyEndAllowThreads(__tstate);
24729 if (PyErr_Occurred()) SWIG_fail;
24730 }
24731 resultobj = SWIG_Py_Void();
24732 return resultobj;
24733fail:
24734 return NULL;
24735}
24736
24737
b39fe951 24738SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24739 PyObject *resultobj = 0;
24740 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24741 bool result;
24742 void *argp1 = 0 ;
24743 int res1 = 0 ;
24744 PyObject *swig_obj[1] ;
24745
24746 if (!args) SWIG_fail;
24747 swig_obj[0] = args;
24748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24749 if (!SWIG_IsOK(res1)) {
b39fe951 24750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24751 }
24752 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24755 result = (bool)(arg1)->IsOk();
1bd55598
RD
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 {
24760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24761 }
24762 return resultobj;
24763fail:
24764 return NULL;
24765}
24766
24767
24768SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24769 PyObject *resultobj = 0;
24770 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24771 int arg2 = (int) 0 ;
24772 int arg3 = (int) 0 ;
24773 bool result;
24774 void *argp1 = 0 ;
24775 int res1 = 0 ;
24776 int val2 ;
24777 int ecode2 = 0 ;
24778 int val3 ;
24779 int ecode3 = 0 ;
24780 PyObject * obj0 = 0 ;
24781 PyObject * obj1 = 0 ;
24782 PyObject * obj2 = 0 ;
24783 char * kwnames[] = {
24784 (char *) "self",(char *) "width",(char *) "height", NULL
24785 };
24786
24787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24789 if (!SWIG_IsOK(res1)) {
24790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24791 }
24792 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24793 if (obj1) {
24794 ecode2 = SWIG_AsVal_int(obj1, &val2);
24795 if (!SWIG_IsOK(ecode2)) {
24796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24797 }
24798 arg2 = static_cast< int >(val2);
24799 }
24800 if (obj2) {
24801 ecode3 = SWIG_AsVal_int(obj2, &val3);
24802 if (!SWIG_IsOK(ecode3)) {
24803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24804 }
24805 arg3 = static_cast< int >(val3);
24806 }
24807 {
24808 PyThreadState* __tstate = wxPyBeginAllowThreads();
24809 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24810 wxPyEndAllowThreads(__tstate);
24811 if (PyErr_Occurred()) SWIG_fail;
24812 }
24813 {
24814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24815 }
24816 return resultobj;
24817fail:
24818 return NULL;
24819}
24820
24821
24822SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24823 PyObject *resultobj = 0;
24824 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24825 wxSize result;
24826 void *argp1 = 0 ;
24827 int res1 = 0 ;
24828 PyObject *swig_obj[1] ;
24829
24830 if (!args) SWIG_fail;
24831 swig_obj[0] = args;
24832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24833 if (!SWIG_IsOK(res1)) {
24834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24835 }
24836 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24837 {
24838 PyThreadState* __tstate = wxPyBeginAllowThreads();
24839 result = (arg1)->GetSize();
24840 wxPyEndAllowThreads(__tstate);
24841 if (PyErr_Occurred()) SWIG_fail;
24842 }
24843 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24844 return resultobj;
24845fail:
24846 return NULL;
24847}
24848
24849
24850SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24851 PyObject *resultobj = 0;
24852 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24853 int result;
24854 void *argp1 = 0 ;
24855 int res1 = 0 ;
24856 PyObject *swig_obj[1] ;
24857
24858 if (!args) SWIG_fail;
24859 swig_obj[0] = args;
24860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24861 if (!SWIG_IsOK(res1)) {
24862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24863 }
24864 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24865 {
24866 PyThreadState* __tstate = wxPyBeginAllowThreads();
24867 result = (int)(arg1)->GetWidth();
24868 wxPyEndAllowThreads(__tstate);
24869 if (PyErr_Occurred()) SWIG_fail;
24870 }
24871 resultobj = SWIG_From_int(static_cast< int >(result));
24872 return resultobj;
24873fail:
24874 return NULL;
24875}
24876
24877
24878SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24879 PyObject *resultobj = 0;
24880 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24881 int result;
24882 void *argp1 = 0 ;
24883 int res1 = 0 ;
24884 PyObject *swig_obj[1] ;
24885
24886 if (!args) SWIG_fail;
24887 swig_obj[0] = args;
24888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24891 }
24892 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 result = (int)(arg1)->GetHeight();
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_From_int(static_cast< int >(result));
24900 return resultobj;
24901fail:
24902 return NULL;
24903}
24904
24905
24906SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24907 PyObject *obj;
24908 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24909 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24910 return SWIG_Py_Void();
24911}
24912
24913SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24914 return SWIG_Python_InitShadowInstance(args);
24915}
24916
24917SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24918 PyObject *resultobj = 0;
24919 wxString const &arg1_defvalue = wxPyEmptyString ;
24920 wxString *arg1 = (wxString *) &arg1_defvalue ;
24921 int arg2 = (int) 0 ;
24922 int arg3 = (int) 0 ;
24923 wxString const &arg4_defvalue = wxPyEmptyString ;
24924 wxString *arg4 = (wxString *) &arg4_defvalue ;
24925 wxMetaFileDC *result = 0 ;
24926 bool temp1 = false ;
24927 int val2 ;
24928 int ecode2 = 0 ;
24929 int val3 ;
24930 int ecode3 = 0 ;
24931 bool temp4 = false ;
24932 PyObject * obj0 = 0 ;
24933 PyObject * obj1 = 0 ;
24934 PyObject * obj2 = 0 ;
24935 PyObject * obj3 = 0 ;
24936 char * kwnames[] = {
24937 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24938 };
24939
24940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24941 if (obj0) {
36ed4f51 24942 {
1bd55598
RD
24943 arg1 = wxString_in_helper(obj0);
24944 if (arg1 == NULL) SWIG_fail;
24945 temp1 = true;
36ed4f51 24946 }
1bd55598
RD
24947 }
24948 if (obj1) {
24949 ecode2 = SWIG_AsVal_int(obj1, &val2);
24950 if (!SWIG_IsOK(ecode2)) {
24951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24952 }
24953 arg2 = static_cast< int >(val2);
24954 }
24955 if (obj2) {
24956 ecode3 = SWIG_AsVal_int(obj2, &val3);
24957 if (!SWIG_IsOK(ecode3)) {
24958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24959 }
24960 arg3 = static_cast< int >(val3);
24961 }
24962 if (obj3) {
36ed4f51 24963 {
1bd55598
RD
24964 arg4 = wxString_in_helper(obj3);
24965 if (arg4 == NULL) SWIG_fail;
24966 temp4 = true;
36ed4f51 24967 }
1bd55598
RD
24968 }
24969 {
24970 if (!wxPyCheckForApp()) SWIG_fail;
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24973 wxPyEndAllowThreads(__tstate);
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24977 {
24978 if (temp1)
24979 delete arg1;
24980 }
24981 {
24982 if (temp4)
24983 delete arg4;
24984 }
24985 return resultobj;
24986fail:
24987 {
24988 if (temp1)
24989 delete arg1;
24990 }
24991 {
24992 if (temp4)
24993 delete arg4;
24994 }
24995 return NULL;
24996}
24997
24998
24999SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25000 PyObject *resultobj = 0;
25001 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25002 wxMetaFile *result = 0 ;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 PyObject *swig_obj[1] ;
25006
25007 if (!args) SWIG_fail;
25008 swig_obj[0] = args;
25009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25010 if (!SWIG_IsOK(res1)) {
25011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25012 }
25013 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25014 {
25015 PyThreadState* __tstate = wxPyBeginAllowThreads();
25016 result = (wxMetaFile *)(arg1)->Close();
25017 wxPyEndAllowThreads(__tstate);
25018 if (PyErr_Occurred()) SWIG_fail;
25019 }
25020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25021 return resultobj;
25022fail:
25023 return NULL;
25024}
25025
25026
25027SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25028 PyObject *obj;
25029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25030 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25031 return SWIG_Py_Void();
25032}
25033
25034SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25035 return SWIG_Python_InitShadowInstance(args);
25036}
25037
25038SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25039 PyObject *resultobj = 0;
25040 wxPrintData *arg1 = 0 ;
25041 wxPrinterDC *result = 0 ;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 PyObject * obj0 = 0 ;
25045 char * kwnames[] = {
25046 (char *) "printData", NULL
25047 };
25048
25049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25050 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25051 if (!SWIG_IsOK(res1)) {
25052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25053 }
25054 if (!argp1) {
25055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25056 }
25057 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25058 {
25059 if (!wxPyCheckForApp()) SWIG_fail;
25060 PyThreadState* __tstate = wxPyBeginAllowThreads();
25061 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25062 wxPyEndAllowThreads(__tstate);
25063 if (PyErr_Occurred()) SWIG_fail;
25064 }
25065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25066 return resultobj;
25067fail:
25068 return NULL;
25069}
25070
25071
25072SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25073 PyObject *obj;
25074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25075 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25076 return SWIG_Py_Void();
25077}
25078
25079SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25080 return SWIG_Python_InitShadowInstance(args);
25081}
25082
70d7cb34
RD
25083SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25084 PyObject *resultobj = 0;
25085 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25086 wxGraphicsObject *result = 0 ;
25087 void *argp1 = 0 ;
25088 int res1 = 0 ;
25089 PyObject * obj0 = 0 ;
25090 char * kwnames[] = {
25091 (char *) "renderer", NULL
25092 };
25093
25094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25095 if (obj0) {
25096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25097 if (!SWIG_IsOK(res1)) {
25098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25099 }
25100 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25101 }
25102 {
25103 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25107 return resultobj;
25108fail:
25109 return NULL;
25110}
25111
25112
25113SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25114 PyObject *resultobj = 0;
25115 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25116 void *argp1 = 0 ;
25117 int res1 = 0 ;
25118 PyObject *swig_obj[1] ;
25119
25120 if (!args) SWIG_fail;
25121 swig_obj[0] = args;
25122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25123 if (!SWIG_IsOK(res1)) {
25124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25125 }
25126 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25127 {
25128 delete arg1;
25129
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 resultobj = SWIG_Py_Void();
25133 return resultobj;
25134fail:
25135 return NULL;
25136}
25137
25138
25139SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25140 PyObject *resultobj = 0;
25141 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25142 bool result;
25143 void *argp1 = 0 ;
25144 int res1 = 0 ;
25145 PyObject *swig_obj[1] ;
25146
25147 if (!args) SWIG_fail;
25148 swig_obj[0] = args;
25149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25150 if (!SWIG_IsOK(res1)) {
25151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25152 }
25153 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25154 {
25155 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25156 if (PyErr_Occurred()) SWIG_fail;
25157 }
25158 {
25159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25160 }
25161 return resultobj;
25162fail:
25163 return NULL;
25164}
25165
25166
25167SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25168 PyObject *resultobj = 0;
25169 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25170 wxGraphicsRenderer *result = 0 ;
25171 void *argp1 = 0 ;
25172 int res1 = 0 ;
25173 PyObject *swig_obj[1] ;
25174
25175 if (!args) SWIG_fail;
25176 swig_obj[0] = args;
25177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25178 if (!SWIG_IsOK(res1)) {
25179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25180 }
25181 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25182 {
25183 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25187 return resultobj;
25188fail:
25189 return NULL;
25190}
25191
25192
25193SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25194 PyObject *obj;
25195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25196 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25197 return SWIG_Py_Void();
25198}
25199
25200SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25201 return SWIG_Python_InitShadowInstance(args);
25202}
25203
25204SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25205 PyObject *resultobj = 0;
25206 wxGraphicsPen *result = 0 ;
25207
25208 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25209 {
25210 result = (wxGraphicsPen *)new wxGraphicsPen();
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25214 return resultobj;
25215fail:
25216 return NULL;
25217}
25218
25219
25220SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25221 PyObject *resultobj = 0;
25222 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25223 void *argp1 = 0 ;
25224 int res1 = 0 ;
25225 PyObject *swig_obj[1] ;
25226
25227 if (!args) SWIG_fail;
25228 swig_obj[0] = args;
25229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25230 if (!SWIG_IsOK(res1)) {
25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25232 }
25233 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25234 {
25235 delete arg1;
25236
25237 if (PyErr_Occurred()) SWIG_fail;
25238 }
25239 resultobj = SWIG_Py_Void();
25240 return resultobj;
25241fail:
25242 return NULL;
25243}
25244
25245
25246SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25247 PyObject *obj;
25248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25249 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25250 return SWIG_Py_Void();
25251}
25252
25253SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25254 return SWIG_Python_InitShadowInstance(args);
25255}
25256
25257SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25258 PyObject *resultobj = 0;
25259 wxGraphicsBrush *result = 0 ;
25260
25261 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25262 {
25263 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25264 if (PyErr_Occurred()) SWIG_fail;
25265 }
25266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25267 return resultobj;
25268fail:
25269 return NULL;
25270}
25271
25272
25273SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25274 PyObject *resultobj = 0;
25275 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 PyObject *swig_obj[1] ;
25279
25280 if (!args) SWIG_fail;
25281 swig_obj[0] = args;
25282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25283 if (!SWIG_IsOK(res1)) {
25284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25285 }
25286 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25287 {
25288 delete arg1;
25289
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 resultobj = SWIG_Py_Void();
25293 return resultobj;
25294fail:
25295 return NULL;
25296}
25297
25298
25299SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25300 PyObject *obj;
25301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25302 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25303 return SWIG_Py_Void();
25304}
25305
25306SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25307 return SWIG_Python_InitShadowInstance(args);
25308}
25309
25310SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25311 PyObject *resultobj = 0;
25312 wxGraphicsFont *result = 0 ;
25313
25314 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25315 {
25316 result = (wxGraphicsFont *)new wxGraphicsFont();
25317 if (PyErr_Occurred()) SWIG_fail;
25318 }
25319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25320 return resultobj;
25321fail:
25322 return NULL;
25323}
25324
25325
25326SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25327 PyObject *resultobj = 0;
25328 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25329 void *argp1 = 0 ;
25330 int res1 = 0 ;
25331 PyObject *swig_obj[1] ;
25332
25333 if (!args) SWIG_fail;
25334 swig_obj[0] = args;
25335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25336 if (!SWIG_IsOK(res1)) {
25337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25338 }
25339 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25340 {
25341 delete arg1;
25342
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
25345 resultobj = SWIG_Py_Void();
25346 return resultobj;
25347fail:
25348 return NULL;
25349}
25350
25351
25352SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25353 PyObject *obj;
25354 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25355 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25356 return SWIG_Py_Void();
25357}
25358
25359SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25360 return SWIG_Python_InitShadowInstance(args);
25361}
25362
5c8c7dd3 25363SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25364 PyObject *resultobj = 0;
5c8c7dd3 25365 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 PyObject *swig_obj[1] ;
25369
25370 if (!args) SWIG_fail;
25371 swig_obj[0] = args;
5c8c7dd3 25372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25373 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25375 }
5c8c7dd3 25376 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25377 {
1bd55598
RD
25378 delete arg1;
25379
1bd55598
RD
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 resultobj = SWIG_Py_Void();
25383 return resultobj;
25384fail:
25385 return NULL;
25386}
25387
25388
5c8c7dd3 25389SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25390 PyObject *resultobj = 0;
5c8c7dd3
RD
25391 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25392 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25393 void *argp1 = 0 ;
25394 int res1 = 0 ;
5c8c7dd3
RD
25395 void *argp2 = 0 ;
25396 int res2 = 0 ;
25397 PyObject * obj0 = 0 ;
25398 PyObject * obj1 = 0 ;
25399 char * kwnames[] = {
25400 (char *) "self",(char *) "t", NULL
25401 };
70d7cb34 25402
5c8c7dd3
RD
25403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25405 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25407 }
5c8c7dd3
RD
25408 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25410 if (!SWIG_IsOK(res2)) {
25411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25412 }
25413 if (!argp2) {
25414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25415 }
25416 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25417 {
5c8c7dd3 25418 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
5c8c7dd3 25421 resultobj = SWIG_Py_Void();
70d7cb34
RD
25422 return resultobj;
25423fail:
25424 return NULL;
25425}
25426
25427
5c8c7dd3 25428SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25429 PyObject *resultobj = 0;
5c8c7dd3
RD
25430 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25431 wxGraphicsMatrix *arg2 = 0 ;
1bd55598
RD
25432 void *argp1 = 0 ;
25433 int res1 = 0 ;
5c8c7dd3
RD
25434 void *argp2 = 0 ;
25435 int res2 = 0 ;
25436 PyObject * obj0 = 0 ;
25437 PyObject * obj1 = 0 ;
25438 char * kwnames[] = {
25439 (char *) "self",(char *) "t", NULL
25440 };
1bd55598 25441
5c8c7dd3
RD
25442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
25443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25444 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25446 }
5c8c7dd3
RD
25447 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25449 if (!SWIG_IsOK(res2)) {
25450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25451 }
25452 if (!argp2) {
25453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25454 }
25455 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
1bd55598 25456 {
5c8c7dd3 25457 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
1bd55598
RD
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
72ef6efb 25460 resultobj = SWIG_Py_Void();
1bd55598
RD
25461 return resultobj;
25462fail:
25463 return NULL;
25464}
25465
25466
5c8c7dd3 25467SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25468 PyObject *resultobj = 0;
5c8c7dd3
RD
25469 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25470 wxDouble arg2 = (wxDouble) 1.0 ;
25471 wxDouble arg3 = (wxDouble) 0.0 ;
25472 wxDouble arg4 = (wxDouble) 0.0 ;
25473 wxDouble arg5 = (wxDouble) 1.0 ;
25474 wxDouble arg6 = (wxDouble) 0.0 ;
25475 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25476 void *argp1 = 0 ;
25477 int res1 = 0 ;
5c8c7dd3
RD
25478 double val2 ;
25479 int ecode2 = 0 ;
25480 double val3 ;
25481 int ecode3 = 0 ;
25482 double val4 ;
25483 int ecode4 = 0 ;
25484 double val5 ;
25485 int ecode5 = 0 ;
25486 double val6 ;
25487 int ecode6 = 0 ;
25488 double val7 ;
25489 int ecode7 = 0 ;
25490 PyObject * obj0 = 0 ;
25491 PyObject * obj1 = 0 ;
25492 PyObject * obj2 = 0 ;
25493 PyObject * obj3 = 0 ;
25494 PyObject * obj4 = 0 ;
25495 PyObject * obj5 = 0 ;
25496 PyObject * obj6 = 0 ;
25497 char * kwnames[] = {
25498 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25499 };
70d7cb34 25500
5c8c7dd3
RD
25501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25503 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25505 }
5c8c7dd3
RD
25506 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25507 if (obj1) {
25508 ecode2 = SWIG_AsVal_double(obj1, &val2);
25509 if (!SWIG_IsOK(ecode2)) {
25510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25511 }
25512 arg2 = static_cast< wxDouble >(val2);
25513 }
25514 if (obj2) {
25515 ecode3 = SWIG_AsVal_double(obj2, &val3);
25516 if (!SWIG_IsOK(ecode3)) {
25517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25518 }
25519 arg3 = static_cast< wxDouble >(val3);
25520 }
25521 if (obj3) {
25522 ecode4 = SWIG_AsVal_double(obj3, &val4);
25523 if (!SWIG_IsOK(ecode4)) {
25524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25525 }
25526 arg4 = static_cast< wxDouble >(val4);
25527 }
25528 if (obj4) {
25529 ecode5 = SWIG_AsVal_double(obj4, &val5);
25530 if (!SWIG_IsOK(ecode5)) {
25531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25532 }
25533 arg5 = static_cast< wxDouble >(val5);
25534 }
25535 if (obj5) {
25536 ecode6 = SWIG_AsVal_double(obj5, &val6);
25537 if (!SWIG_IsOK(ecode6)) {
25538 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25539 }
25540 arg6 = static_cast< wxDouble >(val6);
25541 }
25542 if (obj6) {
25543 ecode7 = SWIG_AsVal_double(obj6, &val7);
25544 if (!SWIG_IsOK(ecode7)) {
25545 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25546 }
25547 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25548 }
25549 {
5c8c7dd3 25550 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25551 if (PyErr_Occurred()) SWIG_fail;
25552 }
25553 resultobj = SWIG_Py_Void();
25554 return resultobj;
25555fail:
25556 return NULL;
25557}
25558
25559
5c8c7dd3 25560SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25561 PyObject *resultobj = 0;
5c8c7dd3 25562 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25563 void *argp1 = 0 ;
25564 int res1 = 0 ;
5c8c7dd3 25565 PyObject *swig_obj[1] ;
1bd55598 25566
5c8c7dd3
RD
25567 if (!args) SWIG_fail;
25568 swig_obj[0] = args;
25569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25570 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25572 }
5c8c7dd3 25573 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25574 {
5c8c7dd3 25575 (arg1)->Invert();
1bd55598
RD
25576 if (PyErr_Occurred()) SWIG_fail;
25577 }
72ef6efb 25578 resultobj = SWIG_Py_Void();
1bd55598
RD
25579 return resultobj;
25580fail:
25581 return NULL;
25582}
25583
25584
5c8c7dd3 25585SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25586 PyObject *resultobj = 0;
5c8c7dd3
RD
25587 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25588 wxGraphicsMatrix *arg2 = 0 ;
25589 bool result;
70d7cb34
RD
25590 void *argp1 = 0 ;
25591 int res1 = 0 ;
5c8c7dd3
RD
25592 void *argp2 = 0 ;
25593 int res2 = 0 ;
25594 PyObject * obj0 = 0 ;
25595 PyObject * obj1 = 0 ;
25596 char * kwnames[] = {
25597 (char *) "self",(char *) "t", NULL
25598 };
70d7cb34 25599
5c8c7dd3
RD
25600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25602 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25604 }
5c8c7dd3
RD
25605 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25607 if (!SWIG_IsOK(res2)) {
25608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25609 }
25610 if (!argp2) {
25611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25612 }
5c8c7dd3 25613 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25614 {
5c8c7dd3 25615 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25616 if (PyErr_Occurred()) SWIG_fail;
25617 }
5c8c7dd3
RD
25618 {
25619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25620 }
70d7cb34
RD
25621 return resultobj;
25622fail:
25623 return NULL;
25624}
25625
25626
5c8c7dd3
RD
25627SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25628 PyObject *resultobj = 0;
25629 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25630 bool result;
25631 void *argp1 = 0 ;
25632 int res1 = 0 ;
25633 PyObject *swig_obj[1] ;
70d7cb34 25634
5c8c7dd3
RD
25635 if (!args) SWIG_fail;
25636 swig_obj[0] = args;
25637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25638 if (!SWIG_IsOK(res1)) {
25639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25640 }
5c8c7dd3
RD
25641 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25642 {
25643 result = (bool)(arg1)->IsIdentity();
25644 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25645 }
5c8c7dd3
RD
25646 {
25647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25648 }
25649 return resultobj;
70d7cb34 25650fail:
70d7cb34
RD
25651 return NULL;
25652}
25653
25654
5c8c7dd3 25655SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25656 PyObject *resultobj = 0;
5c8c7dd3 25657 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25658 wxDouble arg2 ;
25659 wxDouble arg3 ;
1bd55598
RD
25660 void *argp1 = 0 ;
25661 int res1 = 0 ;
72ef6efb
RD
25662 double val2 ;
25663 int ecode2 = 0 ;
25664 double val3 ;
25665 int ecode3 = 0 ;
5c8c7dd3
RD
25666 PyObject * obj0 = 0 ;
25667 PyObject * obj1 = 0 ;
25668 PyObject * obj2 = 0 ;
25669 char * kwnames[] = {
25670 (char *) "self",(char *) "dx",(char *) "dy", NULL
25671 };
72ef6efb 25672
5c8c7dd3
RD
25673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25675 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25677 }
5c8c7dd3
RD
25678 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25679 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25680 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25682 }
25683 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25684 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25685 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25687 }
25688 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25689 {
5c8c7dd3 25690 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 resultobj = SWIG_Py_Void();
25694 return resultobj;
25695fail:
25696 return NULL;
25697}
25698
25699
5c8c7dd3 25700SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25701 PyObject *resultobj = 0;
5c8c7dd3
RD
25702 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25703 wxDouble arg2 ;
25704 wxDouble arg3 ;
70d7cb34
RD
25705 void *argp1 = 0 ;
25706 int res1 = 0 ;
5c8c7dd3
RD
25707 double val2 ;
25708 int ecode2 = 0 ;
25709 double val3 ;
25710 int ecode3 = 0 ;
25711 PyObject * obj0 = 0 ;
25712 PyObject * obj1 = 0 ;
25713 PyObject * obj2 = 0 ;
25714 char * kwnames[] = {
25715 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25716 };
70d7cb34 25717
5c8c7dd3
RD
25718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25720 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25722 }
5c8c7dd3
RD
25723 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25724 ecode2 = SWIG_AsVal_double(obj1, &val2);
25725 if (!SWIG_IsOK(ecode2)) {
25726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25727 }
25728 arg2 = static_cast< wxDouble >(val2);
25729 ecode3 = SWIG_AsVal_double(obj2, &val3);
25730 if (!SWIG_IsOK(ecode3)) {
25731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25732 }
25733 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25734 {
5c8c7dd3 25735 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 resultobj = SWIG_Py_Void();
25739 return resultobj;
25740fail:
25741 return NULL;
25742}
25743
25744
5c8c7dd3 25745SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25746 PyObject *resultobj = 0;
5c8c7dd3
RD
25747 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25748 wxDouble arg2 ;
70d7cb34
RD
25749 void *argp1 = 0 ;
25750 int res1 = 0 ;
5c8c7dd3
RD
25751 double val2 ;
25752 int ecode2 = 0 ;
70d7cb34
RD
25753 PyObject * obj0 = 0 ;
25754 PyObject * obj1 = 0 ;
25755 char * kwnames[] = {
5c8c7dd3 25756 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25757 };
25758
5c8c7dd3
RD
25759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25761 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25763 }
5c8c7dd3
RD
25764 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25765 ecode2 = SWIG_AsVal_double(obj1, &val2);
25766 if (!SWIG_IsOK(ecode2)) {
25767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25768 }
25769 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25770 {
5c8c7dd3 25771 (arg1)->Rotate(arg2);
70d7cb34
RD
25772 if (PyErr_Occurred()) SWIG_fail;
25773 }
25774 resultobj = SWIG_Py_Void();
25775 return resultobj;
25776fail:
25777 return NULL;
25778}
25779
25780
5c8c7dd3 25781SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 25782 PyObject *resultobj = 0;
5c8c7dd3
RD
25783 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25784 wxDouble *arg2 = (wxDouble *) 0 ;
25785 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
25786 void *argp1 = 0 ;
25787 int res1 = 0 ;
5c8c7dd3
RD
25788 wxDouble temp2 ;
25789 int res2 = 0 ;
25790 wxDouble temp3 ;
25791 int res3 = 0 ;
25792 PyObject * obj0 = 0 ;
25793 PyObject * obj1 = 0 ;
25794 PyObject * obj2 = 0 ;
25795 char * kwnames[] = {
25796 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25797 };
72ef6efb 25798
5c8c7dd3
RD
25799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25801 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25803 }
5c8c7dd3
RD
25804 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25805 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25806 double val;
25807 int ecode = SWIG_AsVal_double(obj1, &val);
25808 if (!SWIG_IsOK(ecode)) {
25809 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25810 }
25811 temp2 = static_cast< wxDouble >(val);
25812 arg2 = &temp2;
25813 res2 = SWIG_AddTmpMask(ecode);
25814 }
25815 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25816 double val;
25817 int ecode = SWIG_AsVal_double(obj2, &val);
25818 if (!SWIG_IsOK(ecode)) {
25819 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25820 }
25821 temp3 = static_cast< wxDouble >(val);
25822 arg3 = &temp3;
25823 res3 = SWIG_AddTmpMask(ecode);
25824 }
25825 {
25826 (arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
25830 if (SWIG_IsTmpObj(res2)) {
25831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25832 } else {
25833 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25835 }
25836 if (SWIG_IsTmpObj(res3)) {
25837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25838 } else {
25839 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25841 }
72ef6efb
RD
25842 return resultobj;
25843fail:
25844 return NULL;
25845}
25846
25847
5c8c7dd3
RD
25848SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25849 PyObject *resultobj = 0;
25850 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25851 wxDouble *arg2 = (wxDouble *) 0 ;
25852 wxDouble *arg3 = (wxDouble *) 0 ;
25853 void *argp1 = 0 ;
25854 int res1 = 0 ;
25855 wxDouble temp2 ;
25856 int res2 = 0 ;
25857 wxDouble temp3 ;
25858 int res3 = 0 ;
25859 PyObject * obj0 = 0 ;
25860 PyObject * obj1 = 0 ;
25861 PyObject * obj2 = 0 ;
25862 char * kwnames[] = {
25863 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25864 };
25865
25866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25868 if (!SWIG_IsOK(res1)) {
25869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25870 }
25871 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25872 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25873 double val;
25874 int ecode = SWIG_AsVal_double(obj1, &val);
25875 if (!SWIG_IsOK(ecode)) {
25876 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25877 }
25878 temp2 = static_cast< wxDouble >(val);
25879 arg2 = &temp2;
25880 res2 = SWIG_AddTmpMask(ecode);
25881 }
25882 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25883 double val;
25884 int ecode = SWIG_AsVal_double(obj2, &val);
25885 if (!SWIG_IsOK(ecode)) {
25886 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25887 }
25888 temp3 = static_cast< wxDouble >(val);
25889 arg3 = &temp3;
25890 res3 = SWIG_AddTmpMask(ecode);
25891 }
25892 {
25893 (arg1)->TransformDistance(arg2,arg3);
25894 if (PyErr_Occurred()) SWIG_fail;
25895 }
25896 resultobj = SWIG_Py_Void();
25897 if (SWIG_IsTmpObj(res2)) {
25898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25899 } else {
25900 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25902 }
25903 if (SWIG_IsTmpObj(res3)) {
25904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25905 } else {
25906 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25908 }
25909 return resultobj;
25910fail:
25911 return NULL;
25912}
25913
25914
25915SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25916 PyObject *resultobj = 0;
25917 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25918 void *result = 0 ;
25919 void *argp1 = 0 ;
25920 int res1 = 0 ;
25921 PyObject *swig_obj[1] ;
25922
25923 if (!args) SWIG_fail;
25924 swig_obj[0] = args;
25925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25926 if (!SWIG_IsOK(res1)) {
25927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25928 }
25929 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25930 {
25931 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
25932 if (PyErr_Occurred()) SWIG_fail;
25933 }
25934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25935 return resultobj;
25936fail:
25937 return NULL;
25938}
25939
25940
25941SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25942 PyObject *obj;
25943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25944 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
25945 return SWIG_Py_Void();
25946}
25947
25948SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
25949 PyObject *resultobj = 0;
25950 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
25951 void *argp1 = 0 ;
25952 int res1 = 0 ;
25953 PyObject *swig_obj[1] ;
25954
25955 if (!args) SWIG_fail;
25956 swig_obj[0] = args;
5c8c7dd3 25957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 25958 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
25960 }
25961 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25962 {
5c8c7dd3
RD
25963 delete arg1;
25964
72ef6efb
RD
25965 if (PyErr_Occurred()) SWIG_fail;
25966 }
5c8c7dd3 25967 resultobj = SWIG_Py_Void();
70d7cb34
RD
25968 return resultobj;
25969fail:
25970 return NULL;
25971}
25972
25973
5c8c7dd3 25974SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
25975 PyObject *resultobj = 0;
25976 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25977 wxDouble arg2 ;
25978 wxDouble arg3 ;
70d7cb34
RD
25979 void *argp1 = 0 ;
25980 int res1 = 0 ;
25981 double val2 ;
25982 int ecode2 = 0 ;
25983 double val3 ;
25984 int ecode3 = 0 ;
70d7cb34 25985
5c8c7dd3 25986 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
25987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25988 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
25990 }
25991 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25992 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25993 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
25995 }
25996 arg2 = static_cast< wxDouble >(val2);
25997 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25998 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26000 }
26001 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26002 {
5c8c7dd3 26003 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26004 if (PyErr_Occurred()) SWIG_fail;
26005 }
26006 resultobj = SWIG_Py_Void();
26007 return resultobj;
26008fail:
26009 return NULL;
26010}
26011
26012
5c8c7dd3 26013SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26014 PyObject *resultobj = 0;
26015 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26016 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26017 void *argp1 = 0 ;
26018 int res1 = 0 ;
26019 wxPoint2D temp2 ;
70d7cb34 26020
5c8c7dd3 26021 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26023 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26025 }
26026 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26027 {
26028 arg2 = &temp2;
26029 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26030 }
70d7cb34 26031 {
5c8c7dd3 26032 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 resultobj = SWIG_Py_Void();
26036 return resultobj;
26037fail:
26038 return NULL;
26039}
26040
26041
5c8c7dd3 26042SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26043 int argc;
5c8c7dd3 26044 PyObject *argv[4];
70d7cb34 26045
5c8c7dd3 26046 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26047 --argc;
5c8c7dd3
RD
26048 if (argc == 2) {
26049 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26050 }
5c8c7dd3
RD
26051 if (argc == 3) {
26052 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26053 }
26054
26055fail:
5c8c7dd3 26056 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26057 return NULL;
26058}
26059
26060
5c8c7dd3 26061SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26062 PyObject *resultobj = 0;
26063 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26064 wxDouble arg2 ;
26065 wxDouble arg3 ;
70d7cb34
RD
26066 void *argp1 = 0 ;
26067 int res1 = 0 ;
26068 double val2 ;
26069 int ecode2 = 0 ;
26070 double val3 ;
26071 int ecode3 = 0 ;
70d7cb34 26072
5c8c7dd3
RD
26073 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26075 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26077 }
26078 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26079 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26080 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26082 }
26083 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26084 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26085 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26087 }
26088 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26089 {
5c8c7dd3 26090 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26091 if (PyErr_Occurred()) SWIG_fail;
26092 }
26093 resultobj = SWIG_Py_Void();
26094 return resultobj;
26095fail:
26096 return NULL;
26097}
26098
26099
5c8c7dd3 26100SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26101 PyObject *resultobj = 0;
26102 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26103 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26104 void *argp1 = 0 ;
26105 int res1 = 0 ;
5c8c7dd3 26106 wxPoint2D temp2 ;
70d7cb34 26107
5c8c7dd3
RD
26108 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26110 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26112 }
26113 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26114 {
5c8c7dd3
RD
26115 arg2 = &temp2;
26116 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26117 }
26118 {
26119 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_Py_Void();
26123 return resultobj;
26124fail:
26125 return NULL;
26126}
26127
26128
5c8c7dd3
RD
26129SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26130 int argc;
26131 PyObject *argv[4];
70d7cb34 26132
5c8c7dd3
RD
26133 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26134 --argc;
26135 if (argc == 2) {
26136 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26137 }
5c8c7dd3
RD
26138 if (argc == 3) {
26139 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26140 }
5c8c7dd3 26141
70d7cb34 26142fail:
5c8c7dd3 26143 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26144 return NULL;
26145}
26146
26147
5c8c7dd3 26148SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26149 PyObject *resultobj = 0;
26150 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26151 wxDouble arg2 ;
26152 wxDouble arg3 ;
26153 wxDouble arg4 ;
26154 wxDouble arg5 ;
26155 wxDouble arg6 ;
5c8c7dd3 26156 wxDouble arg7 ;
70d7cb34
RD
26157 void *argp1 = 0 ;
26158 int res1 = 0 ;
26159 double val2 ;
26160 int ecode2 = 0 ;
26161 double val3 ;
26162 int ecode3 = 0 ;
26163 double val4 ;
26164 int ecode4 = 0 ;
26165 double val5 ;
26166 int ecode5 = 0 ;
26167 double val6 ;
26168 int ecode6 = 0 ;
5c8c7dd3
RD
26169 double val7 ;
26170 int ecode7 = 0 ;
70d7cb34 26171
5c8c7dd3
RD
26172 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26174 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26176 }
26177 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26178 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26179 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26181 }
26182 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26183 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26184 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26186 }
26187 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26188 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26189 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26191 }
26192 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26193 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26194 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26196 }
26197 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26198 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26199 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26200 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26201 }
26202 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26203 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26204 if (!SWIG_IsOK(ecode7)) {
26205 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26206 }
26207 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26208 {
5c8c7dd3 26209 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 resultobj = SWIG_Py_Void();
26213 return resultobj;
26214fail:
26215 return NULL;
26216}
26217
26218
5c8c7dd3 26219SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26220 PyObject *resultobj = 0;
26221 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26222 wxPoint2D *arg2 = 0 ;
26223 wxPoint2D *arg3 = 0 ;
26224 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26225 void *argp1 = 0 ;
26226 int res1 = 0 ;
5c8c7dd3
RD
26227 wxPoint2D temp2 ;
26228 wxPoint2D temp3 ;
26229 wxPoint2D temp4 ;
70d7cb34 26230
5c8c7dd3
RD
26231 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26233 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26235 }
26236 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26237 {
5c8c7dd3
RD
26238 arg2 = &temp2;
26239 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26240 }
5c8c7dd3
RD
26241 {
26242 arg3 = &temp3;
26243 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26244 }
70d7cb34 26245 {
5c8c7dd3
RD
26246 arg4 = &temp4;
26247 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26248 }
26249 {
26250 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26251 if (PyErr_Occurred()) SWIG_fail;
26252 }
26253 resultobj = SWIG_Py_Void();
26254 return resultobj;
26255fail:
26256 return NULL;
26257}
26258
26259
5c8c7dd3
RD
26260SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26261 int argc;
26262 PyObject *argv[8];
70d7cb34 26263
5c8c7dd3
RD
26264 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26265 --argc;
26266 if (argc == 4) {
26267 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26268 }
5c8c7dd3
RD
26269 if (argc == 7) {
26270 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26271 }
5c8c7dd3 26272
70d7cb34 26273fail:
5c8c7dd3 26274 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26275 return NULL;
26276}
26277
26278
5c8c7dd3 26279SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26280 PyObject *resultobj = 0;
26281 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26282 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26283 void *argp1 = 0 ;
26284 int res1 = 0 ;
5c8c7dd3
RD
26285 void *argp2 = 0 ;
26286 int res2 = 0 ;
70d7cb34
RD
26287 PyObject * obj0 = 0 ;
26288 PyObject * obj1 = 0 ;
26289 char * kwnames[] = {
5c8c7dd3 26290 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26291 };
26292
5c8c7dd3 26293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26295 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26297 }
26298 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26300 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26302 }
26303 if (!argp2) {
26304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26305 }
5c8c7dd3 26306 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26307 {
5c8c7dd3 26308 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26309 if (PyErr_Occurred()) SWIG_fail;
26310 }
26311 resultobj = SWIG_Py_Void();
26312 return resultobj;
26313fail:
26314 return NULL;
26315}
26316
26317
5c8c7dd3 26318SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26319 PyObject *resultobj = 0;
26320 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26321 void *argp1 = 0 ;
26322 int res1 = 0 ;
5c8c7dd3 26323 PyObject *swig_obj[1] ;
70d7cb34 26324
5c8c7dd3
RD
26325 if (!args) SWIG_fail;
26326 swig_obj[0] = args;
26327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26328 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26330 }
26331 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26332 {
5c8c7dd3 26333 (arg1)->CloseSubpath();
70d7cb34
RD
26334 if (PyErr_Occurred()) SWIG_fail;
26335 }
26336 resultobj = SWIG_Py_Void();
26337 return resultobj;
26338fail:
26339 return NULL;
26340}
26341
26342
5c8c7dd3 26343SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26344 PyObject *resultobj = 0;
26345 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26346 wxPoint2D result;
70d7cb34
RD
26347 void *argp1 = 0 ;
26348 int res1 = 0 ;
26349 PyObject *swig_obj[1] ;
26350
26351 if (!args) SWIG_fail;
26352 swig_obj[0] = args;
26353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26354 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26356 }
26357 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26358 {
5c8c7dd3 26359 result = (arg1)->GetCurrentPoint();
70d7cb34
RD
26360 if (PyErr_Occurred()) SWIG_fail;
26361 }
5c8c7dd3 26362 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26363 return resultobj;
26364fail:
26365 return NULL;
26366}
26367
26368
5c8c7dd3 26369SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26370 PyObject *resultobj = 0;
26371 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26372 wxDouble arg2 ;
26373 wxDouble arg3 ;
5c8c7dd3
RD
26374 wxDouble arg4 ;
26375 wxDouble arg5 ;
26376 wxDouble arg6 ;
26377 bool arg7 ;
70d7cb34
RD
26378 void *argp1 = 0 ;
26379 int res1 = 0 ;
26380 double val2 ;
26381 int ecode2 = 0 ;
26382 double val3 ;
26383 int ecode3 = 0 ;
5c8c7dd3 26384 double val4 ;
70d7cb34 26385 int ecode4 = 0 ;
5c8c7dd3
RD
26386 double val5 ;
26387 int ecode5 = 0 ;
26388 double val6 ;
26389 int ecode6 = 0 ;
26390 bool val7 ;
26391 int ecode7 = 0 ;
70d7cb34 26392
5c8c7dd3 26393 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26395 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26397 }
26398 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26399 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26400 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26402 }
26403 arg2 = static_cast< wxDouble >(val2);
26404 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26405 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26407 }
26408 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26409 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26410 if (!SWIG_IsOK(ecode4)) {
26411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26412 }
26413 arg4 = static_cast< wxDouble >(val4);
26414 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26415 if (!SWIG_IsOK(ecode5)) {
26416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26417 }
26418 arg5 = static_cast< wxDouble >(val5);
26419 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26420 if (!SWIG_IsOK(ecode6)) {
26421 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26422 }
26423 arg6 = static_cast< wxDouble >(val6);
26424 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26425 if (!SWIG_IsOK(ecode7)) {
26426 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26427 }
26428 arg7 = static_cast< bool >(val7);
70d7cb34 26429 {
5c8c7dd3 26430 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26431 if (PyErr_Occurred()) SWIG_fail;
26432 }
5c8c7dd3 26433 resultobj = SWIG_Py_Void();
70d7cb34
RD
26434 return resultobj;
26435fail:
26436 return NULL;
26437}
26438
26439
5c8c7dd3 26440SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26441 PyObject *resultobj = 0;
26442 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26443 wxPoint2D *arg2 = 0 ;
26444 wxDouble arg3 ;
26445 wxDouble arg4 ;
26446 wxDouble arg5 ;
26447 bool arg6 ;
70d7cb34
RD
26448 void *argp1 = 0 ;
26449 int res1 = 0 ;
5c8c7dd3
RD
26450 wxPoint2D temp2 ;
26451 double val3 ;
70d7cb34 26452 int ecode3 = 0 ;
5c8c7dd3
RD
26453 double val4 ;
26454 int ecode4 = 0 ;
26455 double val5 ;
26456 int ecode5 = 0 ;
26457 bool val6 ;
26458 int ecode6 = 0 ;
70d7cb34 26459
5c8c7dd3 26460 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26464 }
26465 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26466 {
5c8c7dd3
RD
26467 arg2 = &temp2;
26468 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26469 }
5c8c7dd3
RD
26470 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26471 if (!SWIG_IsOK(ecode3)) {
26472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26473 }
26474 arg3 = static_cast< wxDouble >(val3);
26475 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26476 if (!SWIG_IsOK(ecode4)) {
26477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26478 }
26479 arg4 = static_cast< wxDouble >(val4);
26480 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26481 if (!SWIG_IsOK(ecode5)) {
26482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26483 }
26484 arg5 = static_cast< wxDouble >(val5);
26485 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26486 if (!SWIG_IsOK(ecode6)) {
26487 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26488 }
26489 arg6 = static_cast< bool >(val6);
70d7cb34 26490 {
5c8c7dd3
RD
26491 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26492 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26493 }
5c8c7dd3 26494 resultobj = SWIG_Py_Void();
70d7cb34
RD
26495 return resultobj;
26496fail:
26497 return NULL;
26498}
26499
26500
5c8c7dd3 26501SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26502 int argc;
5c8c7dd3 26503 PyObject *argv[8];
70d7cb34 26504
5c8c7dd3 26505 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26506 --argc;
5c8c7dd3
RD
26507 if (argc == 6) {
26508 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26509 }
5c8c7dd3
RD
26510 if (argc == 7) {
26511 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26512 }
26513
26514fail:
5c8c7dd3 26515 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26516 return NULL;
26517}
26518
26519
5c8c7dd3 26520SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26521 PyObject *resultobj = 0;
5c8c7dd3
RD
26522 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26523 wxDouble arg2 ;
26524 wxDouble arg3 ;
26525 wxDouble arg4 ;
26526 wxDouble arg5 ;
70d7cb34
RD
26527 void *argp1 = 0 ;
26528 int res1 = 0 ;
5c8c7dd3
RD
26529 double val2 ;
26530 int ecode2 = 0 ;
26531 double val3 ;
26532 int ecode3 = 0 ;
26533 double val4 ;
26534 int ecode4 = 0 ;
26535 double val5 ;
26536 int ecode5 = 0 ;
26537 PyObject * obj0 = 0 ;
26538 PyObject * obj1 = 0 ;
26539 PyObject * obj2 = 0 ;
26540 PyObject * obj3 = 0 ;
26541 PyObject * obj4 = 0 ;
26542 char * kwnames[] = {
26543 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26544 };
70d7cb34 26545
5c8c7dd3
RD
26546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26548 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26550 }
5c8c7dd3
RD
26551 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26552 ecode2 = SWIG_AsVal_double(obj1, &val2);
26553 if (!SWIG_IsOK(ecode2)) {
26554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26555 }
26556 arg2 = static_cast< wxDouble >(val2);
26557 ecode3 = SWIG_AsVal_double(obj2, &val3);
26558 if (!SWIG_IsOK(ecode3)) {
26559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26560 }
26561 arg3 = static_cast< wxDouble >(val3);
26562 ecode4 = SWIG_AsVal_double(obj3, &val4);
26563 if (!SWIG_IsOK(ecode4)) {
26564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26565 }
26566 arg4 = static_cast< wxDouble >(val4);
26567 ecode5 = SWIG_AsVal_double(obj4, &val5);
26568 if (!SWIG_IsOK(ecode5)) {
26569 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26570 }
26571 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26572 {
5c8c7dd3 26573 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26574 if (PyErr_Occurred()) SWIG_fail;
26575 }
26576 resultobj = SWIG_Py_Void();
26577 return resultobj;
26578fail:
26579 return NULL;
26580}
26581
26582
5c8c7dd3 26583SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26584 PyObject *resultobj = 0;
5c8c7dd3
RD
26585 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26586 wxDouble arg2 ;
26587 wxDouble arg3 ;
26588 wxDouble arg4 ;
26589 wxDouble arg5 ;
70d7cb34
RD
26590 void *argp1 = 0 ;
26591 int res1 = 0 ;
5c8c7dd3
RD
26592 double val2 ;
26593 int ecode2 = 0 ;
26594 double val3 ;
26595 int ecode3 = 0 ;
26596 double val4 ;
26597 int ecode4 = 0 ;
26598 double val5 ;
26599 int ecode5 = 0 ;
70d7cb34
RD
26600 PyObject * obj0 = 0 ;
26601 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26602 PyObject * obj2 = 0 ;
26603 PyObject * obj3 = 0 ;
26604 PyObject * obj4 = 0 ;
70d7cb34 26605 char * kwnames[] = {
5c8c7dd3 26606 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26607 };
26608
5c8c7dd3
RD
26609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26611 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26613 }
5c8c7dd3
RD
26614 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26615 ecode2 = SWIG_AsVal_double(obj1, &val2);
26616 if (!SWIG_IsOK(ecode2)) {
26617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26618 }
26619 arg2 = static_cast< wxDouble >(val2);
26620 ecode3 = SWIG_AsVal_double(obj2, &val3);
26621 if (!SWIG_IsOK(ecode3)) {
26622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26623 }
26624 arg3 = static_cast< wxDouble >(val3);
26625 ecode4 = SWIG_AsVal_double(obj3, &val4);
26626 if (!SWIG_IsOK(ecode4)) {
26627 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26628 }
26629 arg4 = static_cast< wxDouble >(val4);
26630 ecode5 = SWIG_AsVal_double(obj4, &val5);
26631 if (!SWIG_IsOK(ecode5)) {
26632 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26633 }
26634 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26635 {
5c8c7dd3 26636 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26637 if (PyErr_Occurred()) SWIG_fail;
26638 }
26639 resultobj = SWIG_Py_Void();
26640 return resultobj;
26641fail:
26642 return NULL;
26643}
26644
26645
5c8c7dd3 26646SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26647 PyObject *resultobj = 0;
5c8c7dd3
RD
26648 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26649 wxDouble arg2 ;
26650 wxDouble arg3 ;
26651 wxDouble arg4 ;
70d7cb34
RD
26652 void *argp1 = 0 ;
26653 int res1 = 0 ;
5c8c7dd3
RD
26654 double val2 ;
26655 int ecode2 = 0 ;
26656 double val3 ;
26657 int ecode3 = 0 ;
26658 double val4 ;
26659 int ecode4 = 0 ;
70d7cb34
RD
26660 PyObject * obj0 = 0 ;
26661 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26662 PyObject * obj2 = 0 ;
26663 PyObject * obj3 = 0 ;
70d7cb34 26664 char * kwnames[] = {
5c8c7dd3 26665 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26666 };
26667
5c8c7dd3
RD
26668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26670 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26672 }
5c8c7dd3
RD
26673 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26674 ecode2 = SWIG_AsVal_double(obj1, &val2);
26675 if (!SWIG_IsOK(ecode2)) {
26676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26677 }
26678 arg2 = static_cast< wxDouble >(val2);
26679 ecode3 = SWIG_AsVal_double(obj2, &val3);
26680 if (!SWIG_IsOK(ecode3)) {
26681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26682 }
26683 arg3 = static_cast< wxDouble >(val3);
26684 ecode4 = SWIG_AsVal_double(obj3, &val4);
26685 if (!SWIG_IsOK(ecode4)) {
26686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26687 }
26688 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26689 {
5c8c7dd3 26690 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26691 if (PyErr_Occurred()) SWIG_fail;
26692 }
26693 resultobj = SWIG_Py_Void();
26694 return resultobj;
26695fail:
26696 return NULL;
26697}
26698
26699
5c8c7dd3 26700SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26701 PyObject *resultobj = 0;
5c8c7dd3
RD
26702 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26703 wxDouble arg2 ;
26704 wxDouble arg3 ;
26705 wxDouble arg4 ;
26706 wxDouble arg5 ;
26707 wxDouble arg6 ;
70d7cb34
RD
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 double val2 ;
26711 int ecode2 = 0 ;
26712 double val3 ;
26713 int ecode3 = 0 ;
26714 double val4 ;
26715 int ecode4 = 0 ;
26716 double val5 ;
26717 int ecode5 = 0 ;
26718 double val6 ;
26719 int ecode6 = 0 ;
70d7cb34
RD
26720 PyObject * obj0 = 0 ;
26721 PyObject * obj1 = 0 ;
26722 PyObject * obj2 = 0 ;
26723 PyObject * obj3 = 0 ;
26724 PyObject * obj4 = 0 ;
26725 PyObject * obj5 = 0 ;
70d7cb34 26726 char * kwnames[] = {
5c8c7dd3 26727 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26728 };
26729
5c8c7dd3
RD
26730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26732 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26734 }
5c8c7dd3
RD
26735 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26736 ecode2 = SWIG_AsVal_double(obj1, &val2);
26737 if (!SWIG_IsOK(ecode2)) {
26738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26739 }
26740 arg2 = static_cast< wxDouble >(val2);
26741 ecode3 = SWIG_AsVal_double(obj2, &val3);
26742 if (!SWIG_IsOK(ecode3)) {
26743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26744 }
26745 arg3 = static_cast< wxDouble >(val3);
26746 ecode4 = SWIG_AsVal_double(obj3, &val4);
26747 if (!SWIG_IsOK(ecode4)) {
26748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26749 }
26750 arg4 = static_cast< wxDouble >(val4);
26751 ecode5 = SWIG_AsVal_double(obj4, &val5);
26752 if (!SWIG_IsOK(ecode5)) {
26753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26754 }
26755 arg5 = static_cast< wxDouble >(val5);
26756 ecode6 = SWIG_AsVal_double(obj5, &val6);
26757 if (!SWIG_IsOK(ecode6)) {
26758 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26759 }
26760 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26761 {
5c8c7dd3 26762 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26763 if (PyErr_Occurred()) SWIG_fail;
26764 }
26765 resultobj = SWIG_Py_Void();
26766 return resultobj;
26767fail:
26768 return NULL;
26769}
26770
26771
5c8c7dd3 26772SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26773 PyObject *resultobj = 0;
5c8c7dd3
RD
26774 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26775 wxDouble arg2 ;
26776 wxDouble arg3 ;
26777 wxDouble arg4 ;
26778 wxDouble arg5 ;
70d7cb34
RD
26779 void *argp1 = 0 ;
26780 int res1 = 0 ;
5c8c7dd3
RD
26781 double val2 ;
26782 int ecode2 = 0 ;
26783 double val3 ;
26784 int ecode3 = 0 ;
26785 double val4 ;
26786 int ecode4 = 0 ;
26787 double val5 ;
26788 int ecode5 = 0 ;
26789 PyObject * obj0 = 0 ;
26790 PyObject * obj1 = 0 ;
26791 PyObject * obj2 = 0 ;
26792 PyObject * obj3 = 0 ;
26793 PyObject * obj4 = 0 ;
26794 char * kwnames[] = {
26795 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26796 };
70d7cb34 26797
5c8c7dd3
RD
26798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26800 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26802 }
5c8c7dd3
RD
26803 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26804 ecode2 = SWIG_AsVal_double(obj1, &val2);
26805 if (!SWIG_IsOK(ecode2)) {
26806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26807 }
26808 arg2 = static_cast< wxDouble >(val2);
26809 ecode3 = SWIG_AsVal_double(obj2, &val3);
26810 if (!SWIG_IsOK(ecode3)) {
26811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26812 }
26813 arg3 = static_cast< wxDouble >(val3);
26814 ecode4 = SWIG_AsVal_double(obj3, &val4);
26815 if (!SWIG_IsOK(ecode4)) {
26816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26817 }
26818 arg4 = static_cast< wxDouble >(val4);
26819 ecode5 = SWIG_AsVal_double(obj4, &val5);
26820 if (!SWIG_IsOK(ecode5)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26822 }
26823 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26824 {
5c8c7dd3 26825 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 resultobj = SWIG_Py_Void();
26829 return resultobj;
26830fail:
26831 return NULL;
26832}
26833
26834
5c8c7dd3 26835SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26836 PyObject *resultobj = 0;
5c8c7dd3
RD
26837 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26838 wxDouble arg2 ;
26839 wxDouble arg3 ;
26840 wxDouble arg4 ;
26841 wxDouble arg5 ;
26842 wxDouble arg6 ;
70d7cb34
RD
26843 void *argp1 = 0 ;
26844 int res1 = 0 ;
5c8c7dd3
RD
26845 double val2 ;
26846 int ecode2 = 0 ;
26847 double val3 ;
26848 int ecode3 = 0 ;
26849 double val4 ;
26850 int ecode4 = 0 ;
26851 double val5 ;
26852 int ecode5 = 0 ;
26853 double val6 ;
26854 int ecode6 = 0 ;
70d7cb34
RD
26855 PyObject * obj0 = 0 ;
26856 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26857 PyObject * obj2 = 0 ;
26858 PyObject * obj3 = 0 ;
26859 PyObject * obj4 = 0 ;
26860 PyObject * obj5 = 0 ;
70d7cb34 26861 char * kwnames[] = {
5c8c7dd3 26862 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
26863 };
26864
5c8c7dd3
RD
26865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26867 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26869 }
5c8c7dd3
RD
26870 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26871 ecode2 = SWIG_AsVal_double(obj1, &val2);
26872 if (!SWIG_IsOK(ecode2)) {
26873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26874 }
26875 arg2 = static_cast< wxDouble >(val2);
26876 ecode3 = SWIG_AsVal_double(obj2, &val3);
26877 if (!SWIG_IsOK(ecode3)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26879 }
26880 arg3 = static_cast< wxDouble >(val3);
26881 ecode4 = SWIG_AsVal_double(obj3, &val4);
26882 if (!SWIG_IsOK(ecode4)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26884 }
26885 arg4 = static_cast< wxDouble >(val4);
26886 ecode5 = SWIG_AsVal_double(obj4, &val5);
26887 if (!SWIG_IsOK(ecode5)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26889 }
26890 arg5 = static_cast< wxDouble >(val5);
26891 ecode6 = SWIG_AsVal_double(obj5, &val6);
26892 if (!SWIG_IsOK(ecode6)) {
26893 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26894 }
26895 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26896 {
5c8c7dd3 26897 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26898 if (PyErr_Occurred()) SWIG_fail;
26899 }
5c8c7dd3 26900 resultobj = SWIG_Py_Void();
70d7cb34
RD
26901 return resultobj;
26902fail:
26903 return NULL;
26904}
26905
26906
5c8c7dd3 26907SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 26908 PyObject *resultobj = 0;
5c8c7dd3
RD
26909 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26910 void *result = 0 ;
70d7cb34
RD
26911 void *argp1 = 0 ;
26912 int res1 = 0 ;
26913 PyObject *swig_obj[1] ;
26914
26915 if (!args) SWIG_fail;
26916 swig_obj[0] = args;
5c8c7dd3 26917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26918 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 26920 }
5c8c7dd3 26921 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26922 {
5c8c7dd3 26923 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
5c8c7dd3 26926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
26927 return resultobj;
26928fail:
26929 return NULL;
26930}
26931
26932
5c8c7dd3 26933SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26934 PyObject *resultobj = 0;
5c8c7dd3
RD
26935 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26936 void *arg2 = (void *) 0 ;
70d7cb34
RD
26937 void *argp1 = 0 ;
26938 int res1 = 0 ;
5c8c7dd3 26939 int res2 ;
70d7cb34
RD
26940 PyObject * obj0 = 0 ;
26941 PyObject * obj1 = 0 ;
70d7cb34 26942 char * kwnames[] = {
5c8c7dd3 26943 (char *) "self",(char *) "p", NULL
70d7cb34
RD
26944 };
26945
5c8c7dd3
RD
26946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
26947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26948 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
26949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26950 }
26951 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26952 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
26953 if (!SWIG_IsOK(res2)) {
26954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 26955 }
70d7cb34 26956 {
5c8c7dd3 26957 (arg1)->UnGetNativePath(arg2);
70d7cb34
RD
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_Py_Void();
26961 return resultobj;
26962fail:
26963 return NULL;
26964}
26965
26966
5c8c7dd3 26967SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26968 PyObject *resultobj = 0;
5c8c7dd3
RD
26969 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26970 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
5c8c7dd3
RD
26973 void *argp2 = 0 ;
26974 int res2 = 0 ;
70d7cb34
RD
26975 PyObject * obj0 = 0 ;
26976 PyObject * obj1 = 0 ;
70d7cb34 26977 char * kwnames[] = {
5c8c7dd3 26978 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
26979 };
26980
5c8c7dd3
RD
26981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
26982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26983 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26985 }
5c8c7dd3
RD
26986 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26988 if (!SWIG_IsOK(res2)) {
26989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26990 }
26991 if (!argp2) {
26992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26993 }
26994 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26995 {
5c8c7dd3 26996 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26997 if (PyErr_Occurred()) SWIG_fail;
26998 }
26999 resultobj = SWIG_Py_Void();
27000 return resultobj;
27001fail:
27002 return NULL;
27003}
27004
27005
5c8c7dd3 27006SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27007 PyObject *resultobj = 0;
5c8c7dd3
RD
27008 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27009 wxRect2DDouble result;
70d7cb34
RD
27010 void *argp1 = 0 ;
27011 int res1 = 0 ;
5c8c7dd3 27012 PyObject *swig_obj[1] ;
70d7cb34 27013
5c8c7dd3
RD
27014 if (!args) SWIG_fail;
27015 swig_obj[0] = args;
27016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27017 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27019 }
5c8c7dd3 27020 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27021 {
5c8c7dd3 27022 result = (arg1)->GetBox();
70d7cb34
RD
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
5c8c7dd3 27025 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27026 return resultobj;
27027fail:
27028 return NULL;
27029}
27030
27031
5c8c7dd3 27032SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27033 PyObject *resultobj = 0;
5c8c7dd3
RD
27034 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27035 wxDouble arg2 ;
27036 wxDouble arg3 ;
27037 int arg4 = (int) wxWINDING_RULE ;
27038 bool result;
70d7cb34
RD
27039 void *argp1 = 0 ;
27040 int res1 = 0 ;
5c8c7dd3
RD
27041 double val2 ;
27042 int ecode2 = 0 ;
27043 double val3 ;
27044 int ecode3 = 0 ;
27045 int val4 ;
27046 int ecode4 = 0 ;
70d7cb34 27047
5c8c7dd3
RD
27048 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27050 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27052 }
5c8c7dd3
RD
27053 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27054 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27055 if (!SWIG_IsOK(ecode2)) {
27056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27057 }
27058 arg2 = static_cast< wxDouble >(val2);
27059 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27060 if (!SWIG_IsOK(ecode3)) {
27061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27062 }
27063 arg3 = static_cast< wxDouble >(val3);
27064 if (swig_obj[3]) {
27065 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27066 if (!SWIG_IsOK(ecode4)) {
27067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27068 }
27069 arg4 = static_cast< int >(val4);
70d7cb34
RD
27070 }
27071 {
5c8c7dd3 27072 result = (bool)(arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
5c8c7dd3
RD
27075 {
27076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27077 }
27078 return resultobj;
27079fail:
27080 return NULL;
27081}
27082
27083
5c8c7dd3 27084SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27085 PyObject *resultobj = 0;
5c8c7dd3
RD
27086 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27087 wxPoint2DDouble *arg2 = 0 ;
27088 int arg3 = (int) wxWINDING_RULE ;
27089 bool result;
70d7cb34
RD
27090 void *argp1 = 0 ;
27091 int res1 = 0 ;
5c8c7dd3 27092 void *argp2 = 0 ;
70d7cb34 27093 int res2 = 0 ;
5c8c7dd3
RD
27094 int val3 ;
27095 int ecode3 = 0 ;
70d7cb34 27096
5c8c7dd3
RD
27097 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27099 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27101 }
5c8c7dd3
RD
27102 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27103 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27104 if (!SWIG_IsOK(res2)) {
27105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27106 }
5c8c7dd3
RD
27107 if (!argp2) {
27108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27109 }
27110 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27111 if (swig_obj[2]) {
27112 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27113 if (!SWIG_IsOK(ecode3)) {
27114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27115 }
27116 arg3 = static_cast< int >(val3);
70d7cb34
RD
27117 }
27118 {
5c8c7dd3 27119 result = (bool)(arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27120 if (PyErr_Occurred()) SWIG_fail;
27121 }
5c8c7dd3
RD
27122 {
27123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27124 }
27125 return resultobj;
27126fail:
27127 return NULL;
27128}
27129
27130
5c8c7dd3
RD
27131SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27132 int argc;
27133 PyObject *argv[5];
70d7cb34 27134
5c8c7dd3
RD
27135 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27136 --argc;
27137 if ((argc >= 2) && (argc <= 3)) {
27138 int _v = 0;
27139 {
27140 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27141 _v = SWIG_CheckState(res);
27142 }
27143 if (!_v) goto check_1;
27144 if (argc > 2) {
27145 {
27146 {
27147 int res = SWIG_AsVal_int(argv[2], NULL);
27148 _v = SWIG_CheckState(res);
27149 }
27150 }
27151 if (!_v) goto check_1;
27152 }
27153 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27154 }
5c8c7dd3
RD
27155check_1:
27156
27157 if ((argc >= 3) && (argc <= 4)) {
27158 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27159 }
5c8c7dd3 27160
70d7cb34 27161fail:
5c8c7dd3 27162 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27163 return NULL;
27164}
27165
27166
5c8c7dd3 27167SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27168 PyObject *obj;
27169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27170 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27171 return SWIG_Py_Void();
27172}
27173
5c8c7dd3
RD
27174SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27175 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27176 return 1;
27177}
27178
27179
27180SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27181 PyObject *pyobj = 0;
27182
27183 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27184 return pyobj;
27185}
27186
27187
27188SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27189 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27190 return 1;
27191}
27192
27193
27194SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27195 PyObject *pyobj = 0;
27196
27197 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27198 return pyobj;
27199}
27200
27201
27202SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27203 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27204 return 1;
27205}
27206
27207
27208SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27209 PyObject *pyobj = 0;
27210
27211 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27212 return pyobj;
27213}
27214
27215
27216SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27217 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27218 return 1;
27219}
27220
27221
27222SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27223 PyObject *pyobj = 0;
27224
27225 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27226 return pyobj;
27227}
27228
27229
27230SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27231 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27232 return 1;
27233}
27234
27235
27236SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27237 PyObject *pyobj = 0;
27238
27239 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27240 return pyobj;
27241}
27242
27243
70d7cb34
RD
27244SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27247 void *argp1 = 0 ;
27248 int res1 = 0 ;
27249 PyObject *swig_obj[1] ;
27250
27251 if (!args) SWIG_fail;
27252 swig_obj[0] = args;
27253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27254 if (!SWIG_IsOK(res1)) {
27255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27256 }
27257 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27258 {
27259 delete arg1;
27260
27261 if (PyErr_Occurred()) SWIG_fail;
27262 }
27263 resultobj = SWIG_Py_Void();
27264 return resultobj;
27265fail:
27266 return NULL;
27267}
27268
27269
27270SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27271 PyObject *resultobj = 0;
27272 wxWindowDC *arg1 = 0 ;
27273 wxGraphicsContext *result = 0 ;
27274 void *argp1 = 0 ;
27275 int res1 = 0 ;
27276
27277 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27279 if (!SWIG_IsOK(res1)) {
27280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27281 }
27282 if (!argp1) {
27283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27284 }
27285 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27286 {
27287 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27291 return resultobj;
27292fail:
27293 return NULL;
27294}
27295
27296
27297SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27298 PyObject *resultobj = 0;
27299 wxWindow *arg1 = (wxWindow *) 0 ;
27300 wxGraphicsContext *result = 0 ;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303
27304 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27306 if (!SWIG_IsOK(res1)) {
27307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27308 }
27309 arg1 = reinterpret_cast< wxWindow * >(argp1);
27310 {
27311 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27312 if (PyErr_Occurred()) SWIG_fail;
27313 }
27314 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27315 return resultobj;
27316fail:
27317 return NULL;
27318}
27319
27320
27321SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27322 int argc;
27323 PyObject *argv[2];
27324
27325 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27326 --argc;
27327 if (argc == 1) {
27328 int _v = 0;
27329 {
27330 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27331 _v = SWIG_CheckState(res);
27332 }
27333 if (!_v) goto check_1;
27334 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27335 }
27336check_1:
27337
27338 if (argc == 1) {
27339 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27340 }
27341
27342fail:
27343 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27344 return NULL;
27345}
27346
27347
27348SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27349 PyObject *resultobj = 0;
27350 void *arg1 = (void *) 0 ;
27351 wxGraphicsContext *result = 0 ;
27352 int res1 ;
27353 PyObject * obj0 = 0 ;
27354 char * kwnames[] = {
27355 (char *) "context", NULL
27356 };
27357
27358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27359 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27360 if (!SWIG_IsOK(res1)) {
27361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27362 }
27363 {
27364 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27365 if (PyErr_Occurred()) SWIG_fail;
27366 }
27367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27368 return resultobj;
27369fail:
27370 return NULL;
27371}
27372
27373
27374SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27375 PyObject *resultobj = 0;
27376 void *arg1 = (void *) 0 ;
27377 wxGraphicsContext *result = 0 ;
27378 int res1 ;
27379 PyObject * obj0 = 0 ;
27380 char * kwnames[] = {
27381 (char *) "window", NULL
27382 };
27383
27384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27385 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27386 if (!SWIG_IsOK(res1)) {
27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27388 }
27389 {
27390 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
27393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27394 return resultobj;
27395fail:
27396 return NULL;
27397}
27398
27399
27400SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27401 PyObject *resultobj = 0;
27402 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27403 wxGraphicsPath result;
70d7cb34
RD
27404 void *argp1 = 0 ;
27405 int res1 = 0 ;
27406 PyObject *swig_obj[1] ;
27407
27408 if (!args) SWIG_fail;
27409 swig_obj[0] = args;
27410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27411 if (!SWIG_IsOK(res1)) {
27412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27413 }
27414 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27415 {
5c8c7dd3 27416 result = (arg1)->CreatePath();
70d7cb34
RD
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
5c8c7dd3 27419 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27420 return resultobj;
27421fail:
27422 return NULL;
27423}
27424
27425
70d7cb34 27426SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27427 PyObject *resultobj = 0;
70d7cb34
RD
27428 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27429 wxPen *arg2 = 0 ;
27430 wxGraphicsPen result;
72ef6efb
RD
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
70d7cb34
RD
27433 void *argp2 = 0 ;
27434 int res2 = 0 ;
72ef6efb
RD
27435 PyObject * obj0 = 0 ;
27436 PyObject * obj1 = 0 ;
72ef6efb 27437 char * kwnames[] = {
70d7cb34 27438 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27439 };
27440
70d7cb34
RD
27441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27443 if (!SWIG_IsOK(res1)) {
70d7cb34 27444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27445 }
70d7cb34
RD
27446 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27448 if (!SWIG_IsOK(res2)) {
27449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27450 }
27451 if (!argp2) {
27452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27453 }
27454 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27455 {
70d7cb34 27456 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27457 if (PyErr_Occurred()) SWIG_fail;
27458 }
70d7cb34 27459 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27460 return resultobj;
27461fail:
27462 return NULL;
27463}
27464
27465
70d7cb34 27466SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27467 PyObject *resultobj = 0;
70d7cb34
RD
27468 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27469 wxBrush *arg2 = 0 ;
27470 wxGraphicsBrush result;
72ef6efb
RD
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
70d7cb34
RD
27473 void *argp2 = 0 ;
27474 int res2 = 0 ;
72ef6efb
RD
27475 PyObject * obj0 = 0 ;
27476 PyObject * obj1 = 0 ;
72ef6efb 27477 char * kwnames[] = {
70d7cb34 27478 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27479 };
27480
70d7cb34
RD
27481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27483 if (!SWIG_IsOK(res1)) {
70d7cb34 27484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27485 }
70d7cb34
RD
27486 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27488 if (!SWIG_IsOK(res2)) {
27489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27490 }
27491 if (!argp2) {
27492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27493 }
27494 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27495 {
70d7cb34 27496 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
70d7cb34 27499 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27500 return resultobj;
27501fail:
27502 return NULL;
27503}
27504
27505
70d7cb34 27506SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27507 PyObject *resultobj = 0;
70d7cb34 27508 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27509 wxDouble arg2 ;
27510 wxDouble arg3 ;
27511 wxDouble arg4 ;
27512 wxDouble arg5 ;
70d7cb34
RD
27513 wxColour *arg6 = 0 ;
27514 wxColour *arg7 = 0 ;
27515 wxGraphicsBrush result;
72ef6efb
RD
27516 void *argp1 = 0 ;
27517 int res1 = 0 ;
27518 double val2 ;
27519 int ecode2 = 0 ;
27520 double val3 ;
27521 int ecode3 = 0 ;
27522 double val4 ;
27523 int ecode4 = 0 ;
27524 double val5 ;
27525 int ecode5 = 0 ;
70d7cb34
RD
27526 wxColour temp6 ;
27527 wxColour temp7 ;
72ef6efb
RD
27528 PyObject * obj0 = 0 ;
27529 PyObject * obj1 = 0 ;
27530 PyObject * obj2 = 0 ;
27531 PyObject * obj3 = 0 ;
27532 PyObject * obj4 = 0 ;
70d7cb34
RD
27533 PyObject * obj5 = 0 ;
27534 PyObject * obj6 = 0 ;
72ef6efb 27535 char * kwnames[] = {
70d7cb34 27536 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27537 };
27538
70d7cb34
RD
27539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27541 if (!SWIG_IsOK(res1)) {
70d7cb34 27542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27543 }
70d7cb34 27544 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27545 ecode2 = SWIG_AsVal_double(obj1, &val2);
27546 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27548 }
27549 arg2 = static_cast< wxDouble >(val2);
27550 ecode3 = SWIG_AsVal_double(obj2, &val3);
27551 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27553 }
27554 arg3 = static_cast< wxDouble >(val3);
27555 ecode4 = SWIG_AsVal_double(obj3, &val4);
27556 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27558 }
27559 arg4 = static_cast< wxDouble >(val4);
27560 ecode5 = SWIG_AsVal_double(obj4, &val5);
27561 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27562 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27563 }
27564 arg5 = static_cast< wxDouble >(val5);
27565 {
70d7cb34
RD
27566 arg6 = &temp6;
27567 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27568 }
70d7cb34
RD
27569 {
27570 arg7 = &temp7;
27571 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27572 }
72ef6efb 27573 {
70d7cb34 27574 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27575 if (PyErr_Occurred()) SWIG_fail;
27576 }
70d7cb34 27577 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27578 return resultobj;
27579fail:
27580 return NULL;
27581}
27582
27583
70d7cb34 27584SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27585 PyObject *resultobj = 0;
70d7cb34 27586 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27587 wxDouble arg2 ;
27588 wxDouble arg3 ;
27589 wxDouble arg4 ;
27590 wxDouble arg5 ;
27591 wxDouble arg6 ;
70d7cb34
RD
27592 wxColour *arg7 = 0 ;
27593 wxColour *arg8 = 0 ;
27594 wxGraphicsBrush result;
72ef6efb
RD
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 double val2 ;
27598 int ecode2 = 0 ;
27599 double val3 ;
27600 int ecode3 = 0 ;
27601 double val4 ;
27602 int ecode4 = 0 ;
27603 double val5 ;
27604 int ecode5 = 0 ;
27605 double val6 ;
27606 int ecode6 = 0 ;
70d7cb34
RD
27607 wxColour temp7 ;
27608 wxColour temp8 ;
72ef6efb
RD
27609 PyObject * obj0 = 0 ;
27610 PyObject * obj1 = 0 ;
27611 PyObject * obj2 = 0 ;
27612 PyObject * obj3 = 0 ;
27613 PyObject * obj4 = 0 ;
27614 PyObject * obj5 = 0 ;
70d7cb34
RD
27615 PyObject * obj6 = 0 ;
27616 PyObject * obj7 = 0 ;
72ef6efb 27617 char * kwnames[] = {
70d7cb34 27618 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27619 };
27620
70d7cb34
RD
27621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27623 if (!SWIG_IsOK(res1)) {
70d7cb34 27624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27625 }
70d7cb34 27626 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27627 ecode2 = SWIG_AsVal_double(obj1, &val2);
27628 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27630 }
27631 arg2 = static_cast< wxDouble >(val2);
27632 ecode3 = SWIG_AsVal_double(obj2, &val3);
27633 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27635 }
27636 arg3 = static_cast< wxDouble >(val3);
27637 ecode4 = SWIG_AsVal_double(obj3, &val4);
27638 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27640 }
27641 arg4 = static_cast< wxDouble >(val4);
27642 ecode5 = SWIG_AsVal_double(obj4, &val5);
27643 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27644 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27645 }
27646 arg5 = static_cast< wxDouble >(val5);
27647 ecode6 = SWIG_AsVal_double(obj5, &val6);
27648 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27650 }
27651 arg6 = static_cast< wxDouble >(val6);
27652 {
70d7cb34
RD
27653 arg7 = &temp7;
27654 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27655 }
27656 {
27657 arg8 = &temp8;
27658 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27659 }
27660 {
27661 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27662 if (PyErr_Occurred()) SWIG_fail;
27663 }
70d7cb34 27664 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27665 return resultobj;
27666fail:
27667 return NULL;
27668}
27669
27670
70d7cb34 27671SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27672 PyObject *resultobj = 0;
27673 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27674 wxFont *arg2 = 0 ;
27675 wxColour const &arg3_defvalue = *wxBLACK ;
27676 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27677 wxGraphicsFont result;
72ef6efb
RD
27678 void *argp1 = 0 ;
27679 int res1 = 0 ;
70d7cb34
RD
27680 void *argp2 = 0 ;
27681 int res2 = 0 ;
27682 wxColour temp3 ;
27683 PyObject * obj0 = 0 ;
27684 PyObject * obj1 = 0 ;
27685 PyObject * obj2 = 0 ;
27686 char * kwnames[] = {
27687 (char *) "self",(char *) "font",(char *) "col", NULL
27688 };
72ef6efb 27689
70d7cb34
RD
27690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27692 if (!SWIG_IsOK(res1)) {
70d7cb34 27693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27694 }
27695 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27697 if (!SWIG_IsOK(res2)) {
27698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27699 }
70d7cb34
RD
27700 if (!argp2) {
27701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27702 }
70d7cb34
RD
27703 arg2 = reinterpret_cast< wxFont * >(argp2);
27704 if (obj2) {
27705 {
27706 arg3 = &temp3;
27707 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27708 }
72ef6efb 27709 }
72ef6efb 27710 {
70d7cb34 27711 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
70d7cb34 27714 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27715 return resultobj;
27716fail:
27717 return NULL;
27718}
27719
27720
70d7cb34 27721SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27722 PyObject *resultobj = 0;
70d7cb34
RD
27723 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27724 wxDouble arg2 = (wxDouble) 1.0 ;
27725 wxDouble arg3 = (wxDouble) 0.0 ;
27726 wxDouble arg4 = (wxDouble) 0.0 ;
27727 wxDouble arg5 = (wxDouble) 1.0 ;
27728 wxDouble arg6 = (wxDouble) 0.0 ;
27729 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27730 wxGraphicsMatrix result;
0a27f394
RD
27731 void *argp1 = 0 ;
27732 int res1 = 0 ;
70d7cb34
RD
27733 double val2 ;
27734 int ecode2 = 0 ;
27735 double val3 ;
27736 int ecode3 = 0 ;
27737 double val4 ;
27738 int ecode4 = 0 ;
27739 double val5 ;
27740 int ecode5 = 0 ;
27741 double val6 ;
27742 int ecode6 = 0 ;
27743 double val7 ;
27744 int ecode7 = 0 ;
27745 PyObject * obj0 = 0 ;
27746 PyObject * obj1 = 0 ;
27747 PyObject * obj2 = 0 ;
27748 PyObject * obj3 = 0 ;
27749 PyObject * obj4 = 0 ;
27750 PyObject * obj5 = 0 ;
27751 PyObject * obj6 = 0 ;
27752 char * kwnames[] = {
27753 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27754 };
0a27f394 27755
70d7cb34
RD
27756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27758 if (!SWIG_IsOK(res1)) {
70d7cb34 27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27760 }
70d7cb34
RD
27761 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27762 if (obj1) {
27763 ecode2 = SWIG_AsVal_double(obj1, &val2);
27764 if (!SWIG_IsOK(ecode2)) {
27765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27766 }
27767 arg2 = static_cast< wxDouble >(val2);
0a27f394 27768 }
70d7cb34
RD
27769 if (obj2) {
27770 ecode3 = SWIG_AsVal_double(obj2, &val3);
27771 if (!SWIG_IsOK(ecode3)) {
27772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27773 }
27774 arg3 = static_cast< wxDouble >(val3);
0a27f394 27775 }
70d7cb34
RD
27776 if (obj3) {
27777 ecode4 = SWIG_AsVal_double(obj3, &val4);
27778 if (!SWIG_IsOK(ecode4)) {
27779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27780 }
27781 arg4 = static_cast< wxDouble >(val4);
0a27f394 27782 }
70d7cb34
RD
27783 if (obj4) {
27784 ecode5 = SWIG_AsVal_double(obj4, &val5);
27785 if (!SWIG_IsOK(ecode5)) {
27786 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27787 }
27788 arg5 = static_cast< wxDouble >(val5);
0a27f394 27789 }
70d7cb34
RD
27790 if (obj5) {
27791 ecode6 = SWIG_AsVal_double(obj5, &val6);
27792 if (!SWIG_IsOK(ecode6)) {
27793 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27794 }
27795 arg6 = static_cast< wxDouble >(val6);
0a27f394 27796 }
70d7cb34
RD
27797 if (obj6) {
27798 ecode7 = SWIG_AsVal_double(obj6, &val7);
27799 if (!SWIG_IsOK(ecode7)) {
27800 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27801 }
27802 arg7 = static_cast< wxDouble >(val7);
72ef6efb 27803 }
72ef6efb 27804 {
5c8c7dd3 27805 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
27806 if (PyErr_Occurred()) SWIG_fail;
27807 }
5c8c7dd3 27808 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27809 return resultobj;
27810fail:
27811 return NULL;
27812}
27813
27814
27815SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27816 PyObject *resultobj = 0;
27817 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27818 void *argp1 = 0 ;
27819 int res1 = 0 ;
27820 PyObject *swig_obj[1] ;
27821
27822 if (!args) SWIG_fail;
27823 swig_obj[0] = args;
27824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27825 if (!SWIG_IsOK(res1)) {
27826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27827 }
27828 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27829 {
72ef6efb 27830 (arg1)->PushState();
72ef6efb
RD
27831 if (PyErr_Occurred()) SWIG_fail;
27832 }
27833 resultobj = SWIG_Py_Void();
27834 return resultobj;
27835fail:
27836 return NULL;
27837}
27838
27839
27840SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27841 PyObject *resultobj = 0;
27842 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27843 void *argp1 = 0 ;
27844 int res1 = 0 ;
27845 PyObject *swig_obj[1] ;
27846
27847 if (!args) SWIG_fail;
27848 swig_obj[0] = args;
27849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27850 if (!SWIG_IsOK(res1)) {
27851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27852 }
27853 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27854 {
72ef6efb 27855 (arg1)->PopState();
72ef6efb
RD
27856 if (PyErr_Occurred()) SWIG_fail;
27857 }
27858 resultobj = SWIG_Py_Void();
27859 return resultobj;
27860fail:
27861 return NULL;
27862}
27863
27864
0a27f394 27865SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27866 PyObject *resultobj = 0;
27867 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27868 wxRegion *arg2 = 0 ;
27869 void *argp1 = 0 ;
27870 int res1 = 0 ;
27871 void *argp2 = 0 ;
27872 int res2 = 0 ;
27873 PyObject * obj0 = 0 ;
27874 PyObject * obj1 = 0 ;
27875 char * kwnames[] = {
27876 (char *) "self",(char *) "region", NULL
27877 };
27878
0a27f394 27879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
27880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27881 if (!SWIG_IsOK(res1)) {
0a27f394 27882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27883 }
27884 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27886 if (!SWIG_IsOK(res2)) {
0a27f394 27887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27888 }
27889 if (!argp2) {
0a27f394 27890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27891 }
27892 arg2 = reinterpret_cast< wxRegion * >(argp2);
27893 {
72ef6efb 27894 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
27895 if (PyErr_Occurred()) SWIG_fail;
27896 }
27897 resultobj = SWIG_Py_Void();
27898 return resultobj;
27899fail:
27900 return NULL;
27901}
27902
27903
0a27f394
RD
27904SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27905 PyObject *resultobj = 0;
27906 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27907 wxDouble arg2 ;
27908 wxDouble arg3 ;
27909 wxDouble arg4 ;
27910 wxDouble arg5 ;
27911 void *argp1 = 0 ;
27912 int res1 = 0 ;
27913 double val2 ;
27914 int ecode2 = 0 ;
27915 double val3 ;
27916 int ecode3 = 0 ;
27917 double val4 ;
27918 int ecode4 = 0 ;
27919 double val5 ;
27920 int ecode5 = 0 ;
27921 PyObject * obj0 = 0 ;
27922 PyObject * obj1 = 0 ;
27923 PyObject * obj2 = 0 ;
27924 PyObject * obj3 = 0 ;
27925 PyObject * obj4 = 0 ;
27926 char * kwnames[] = {
27927 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27928 };
27929
27930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27932 if (!SWIG_IsOK(res1)) {
27933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27934 }
27935 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27936 ecode2 = SWIG_AsVal_double(obj1, &val2);
27937 if (!SWIG_IsOK(ecode2)) {
27938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
27939 }
27940 arg2 = static_cast< wxDouble >(val2);
27941 ecode3 = SWIG_AsVal_double(obj2, &val3);
27942 if (!SWIG_IsOK(ecode3)) {
27943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
27944 }
27945 arg3 = static_cast< wxDouble >(val3);
27946 ecode4 = SWIG_AsVal_double(obj3, &val4);
27947 if (!SWIG_IsOK(ecode4)) {
27948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
27949 }
27950 arg4 = static_cast< wxDouble >(val4);
27951 ecode5 = SWIG_AsVal_double(obj4, &val5);
27952 if (!SWIG_IsOK(ecode5)) {
27953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
27954 }
27955 arg5 = static_cast< wxDouble >(val5);
27956 {
27957 (arg1)->Clip(arg2,arg3,arg4,arg5);
27958 if (PyErr_Occurred()) SWIG_fail;
27959 }
27960 resultobj = SWIG_Py_Void();
27961 return resultobj;
27962fail:
27963 return NULL;
27964}
27965
27966
27967SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27968 PyObject *resultobj = 0;
27969 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27970 void *argp1 = 0 ;
27971 int res1 = 0 ;
27972 PyObject *swig_obj[1] ;
27973
27974 if (!args) SWIG_fail;
27975 swig_obj[0] = args;
27976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27977 if (!SWIG_IsOK(res1)) {
27978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27979 }
27980 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27981 {
27982 (arg1)->ResetClip();
27983 if (PyErr_Occurred()) SWIG_fail;
27984 }
27985 resultobj = SWIG_Py_Void();
27986 return resultobj;
27987fail:
27988 return NULL;
27989}
27990
27991
27992SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27993 PyObject *resultobj = 0;
27994 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27995 void *result = 0 ;
27996 void *argp1 = 0 ;
27997 int res1 = 0 ;
27998 PyObject *swig_obj[1] ;
27999
28000 if (!args) SWIG_fail;
28001 swig_obj[0] = args;
28002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28003 if (!SWIG_IsOK(res1)) {
28004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28005 }
28006 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28007 {
28008 result = (void *)(arg1)->GetNativeContext();
28009 if (PyErr_Occurred()) SWIG_fail;
28010 }
28011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28012 return resultobj;
28013fail:
28014 return NULL;
28015}
28016
28017
72ef6efb
RD
28018SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28019 PyObject *resultobj = 0;
28020 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28021 wxDouble arg2 ;
28022 wxDouble arg3 ;
28023 void *argp1 = 0 ;
28024 int res1 = 0 ;
28025 double val2 ;
28026 int ecode2 = 0 ;
28027 double val3 ;
28028 int ecode3 = 0 ;
28029 PyObject * obj0 = 0 ;
28030 PyObject * obj1 = 0 ;
28031 PyObject * obj2 = 0 ;
28032 char * kwnames[] = {
28033 (char *) "self",(char *) "dx",(char *) "dy", NULL
28034 };
28035
28036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28040 }
28041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28042 ecode2 = SWIG_AsVal_double(obj1, &val2);
28043 if (!SWIG_IsOK(ecode2)) {
28044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28045 }
28046 arg2 = static_cast< wxDouble >(val2);
28047 ecode3 = SWIG_AsVal_double(obj2, &val3);
28048 if (!SWIG_IsOK(ecode3)) {
28049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28050 }
28051 arg3 = static_cast< wxDouble >(val3);
28052 {
72ef6efb 28053 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 resultobj = SWIG_Py_Void();
28057 return resultobj;
28058fail:
28059 return NULL;
28060}
28061
28062
28063SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28064 PyObject *resultobj = 0;
28065 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28066 wxDouble arg2 ;
28067 wxDouble arg3 ;
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
28070 double val2 ;
28071 int ecode2 = 0 ;
28072 double val3 ;
28073 int ecode3 = 0 ;
28074 PyObject * obj0 = 0 ;
28075 PyObject * obj1 = 0 ;
28076 PyObject * obj2 = 0 ;
28077 char * kwnames[] = {
28078 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28079 };
28080
28081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28083 if (!SWIG_IsOK(res1)) {
28084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28085 }
28086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28087 ecode2 = SWIG_AsVal_double(obj1, &val2);
28088 if (!SWIG_IsOK(ecode2)) {
28089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28090 }
28091 arg2 = static_cast< wxDouble >(val2);
28092 ecode3 = SWIG_AsVal_double(obj2, &val3);
28093 if (!SWIG_IsOK(ecode3)) {
28094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28095 }
28096 arg3 = static_cast< wxDouble >(val3);
28097 {
72ef6efb 28098 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28099 if (PyErr_Occurred()) SWIG_fail;
28100 }
28101 resultobj = SWIG_Py_Void();
28102 return resultobj;
28103fail:
28104 return NULL;
28105}
28106
28107
28108SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28109 PyObject *resultobj = 0;
28110 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28111 wxDouble arg2 ;
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
28114 double val2 ;
28115 int ecode2 = 0 ;
28116 PyObject * obj0 = 0 ;
28117 PyObject * obj1 = 0 ;
28118 char * kwnames[] = {
28119 (char *) "self",(char *) "angle", NULL
28120 };
28121
28122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28124 if (!SWIG_IsOK(res1)) {
28125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28126 }
28127 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28128 ecode2 = SWIG_AsVal_double(obj1, &val2);
28129 if (!SWIG_IsOK(ecode2)) {
28130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28131 }
28132 arg2 = static_cast< wxDouble >(val2);
28133 {
72ef6efb 28134 (arg1)->Rotate(arg2);
72ef6efb
RD
28135 if (PyErr_Occurred()) SWIG_fail;
28136 }
28137 resultobj = SWIG_Py_Void();
28138 return resultobj;
28139fail:
28140 return NULL;
28141}
28142
28143
5c8c7dd3
RD
28144SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28145 PyObject *resultobj = 0;
28146 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28147 wxGraphicsMatrix *arg2 = 0 ;
28148 void *argp1 = 0 ;
28149 int res1 = 0 ;
28150 void *argp2 = 0 ;
28151 int res2 = 0 ;
28152 PyObject * obj0 = 0 ;
28153 PyObject * obj1 = 0 ;
28154 char * kwnames[] = {
28155 (char *) "self",(char *) "matrix", NULL
28156 };
28157
28158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28160 if (!SWIG_IsOK(res1)) {
28161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28162 }
28163 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28165 if (!SWIG_IsOK(res2)) {
28166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28167 }
28168 if (!argp2) {
28169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28170 }
28171 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28172 {
28173 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28174 if (PyErr_Occurred()) SWIG_fail;
28175 }
28176 resultobj = SWIG_Py_Void();
28177 return resultobj;
28178fail:
28179 return NULL;
28180}
28181
28182
28183SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28184 PyObject *resultobj = 0;
28185 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28186 wxGraphicsMatrix *arg2 = 0 ;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 void *argp2 = 0 ;
28190 int res2 = 0 ;
28191 PyObject * obj0 = 0 ;
28192 PyObject * obj1 = 0 ;
28193 char * kwnames[] = {
28194 (char *) "self",(char *) "matrix", NULL
28195 };
28196
28197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28199 if (!SWIG_IsOK(res1)) {
28200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28201 }
28202 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28204 if (!SWIG_IsOK(res2)) {
28205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28206 }
28207 if (!argp2) {
28208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28209 }
28210 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28211 {
28212 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28213 if (PyErr_Occurred()) SWIG_fail;
28214 }
28215 resultobj = SWIG_Py_Void();
28216 return resultobj;
28217fail:
28218 return NULL;
28219}
28220
28221
28222SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 PyObject *resultobj = 0;
28224 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28225 wxGraphicsMatrix result;
28226 void *argp1 = 0 ;
28227 int res1 = 0 ;
28228 PyObject *swig_obj[1] ;
28229
28230 if (!args) SWIG_fail;
28231 swig_obj[0] = args;
28232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28233 if (!SWIG_IsOK(res1)) {
28234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28235 }
28236 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28237 {
28238 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28239 if (PyErr_Occurred()) SWIG_fail;
28240 }
28241 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28242 return resultobj;
28243fail:
28244 return NULL;
28245}
28246
28247
70d7cb34
RD
28248SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28249 PyObject *resultobj = 0;
28250 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28251 wxGraphicsPen *arg2 = 0 ;
28252 void *argp1 = 0 ;
28253 int res1 = 0 ;
28254 void *argp2 = 0 ;
28255 int res2 = 0 ;
28256
28257 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28259 if (!SWIG_IsOK(res1)) {
28260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28261 }
28262 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28263 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28264 if (!SWIG_IsOK(res2)) {
28265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28266 }
28267 if (!argp2) {
28268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28269 }
28270 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28271 {
28272 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 resultobj = SWIG_Py_Void();
28276 return resultobj;
28277fail:
28278 return NULL;
28279}
28280
28281
28282SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28283 PyObject *resultobj = 0;
28284 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28285 wxPen *arg2 = 0 ;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 void *argp2 = 0 ;
28289 int res2 = 0 ;
72ef6efb 28290
70d7cb34
RD
28291 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28295 }
28296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28297 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28298 if (!SWIG_IsOK(res2)) {
28299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28300 }
28301 if (!argp2) {
28302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28303 }
28304 arg2 = reinterpret_cast< wxPen * >(argp2);
28305 {
72ef6efb 28306 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_Py_Void();
28310 return resultobj;
28311fail:
28312 return NULL;
28313}
28314
28315
70d7cb34
RD
28316SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28317 int argc;
28318 PyObject *argv[3];
28319
28320 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28321 --argc;
28322 if (argc == 2) {
28323 int _v = 0;
28324 {
28325 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28326 _v = SWIG_CheckState(res);
28327 }
28328 if (!_v) goto check_1;
28329 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28330 }
28331check_1:
28332
28333 if (argc == 2) {
28334 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28335 }
28336
28337fail:
28338 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28339 return NULL;
28340}
28341
28342
28343SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28344 PyObject *resultobj = 0;
28345 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28346 wxGraphicsBrush *arg2 = 0 ;
28347 void *argp1 = 0 ;
28348 int res1 = 0 ;
28349 void *argp2 = 0 ;
28350 int res2 = 0 ;
28351
28352 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28354 if (!SWIG_IsOK(res1)) {
28355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28356 }
28357 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28358 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28359 if (!SWIG_IsOK(res2)) {
28360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28361 }
28362 if (!argp2) {
28363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28364 }
28365 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28366 {
28367 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28368 if (PyErr_Occurred()) SWIG_fail;
28369 }
28370 resultobj = SWIG_Py_Void();
28371 return resultobj;
28372fail:
28373 return NULL;
28374}
28375
28376
28377SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28378 PyObject *resultobj = 0;
28379 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28380 wxBrush *arg2 = 0 ;
28381 void *argp1 = 0 ;
28382 int res1 = 0 ;
28383 void *argp2 = 0 ;
28384 int res2 = 0 ;
72ef6efb 28385
70d7cb34
RD
28386 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28388 if (!SWIG_IsOK(res1)) {
28389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28390 }
28391 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28392 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28393 if (!SWIG_IsOK(res2)) {
28394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28395 }
28396 if (!argp2) {
28397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28398 }
28399 arg2 = reinterpret_cast< wxBrush * >(argp2);
28400 {
72ef6efb 28401 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28402 if (PyErr_Occurred()) SWIG_fail;
28403 }
28404 resultobj = SWIG_Py_Void();
28405 return resultobj;
28406fail:
28407 return NULL;
28408}
28409
28410
70d7cb34
RD
28411SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28412 int argc;
28413 PyObject *argv[3];
72ef6efb 28414
70d7cb34
RD
28415 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28416 --argc;
28417 if (argc == 2) {
28418 int _v = 0;
28419 {
28420 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28421 _v = SWIG_CheckState(res);
28422 }
28423 if (!_v) goto check_1;
28424 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28425 }
70d7cb34
RD
28426check_1:
28427
28428 if (argc == 2) {
28429 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28430 }
70d7cb34 28431
72ef6efb 28432fail:
70d7cb34 28433 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28434 return NULL;
28435}
28436
28437
70d7cb34 28438SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28439 PyObject *resultobj = 0;
28440 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28441 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28442 void *argp1 = 0 ;
28443 int res1 = 0 ;
70d7cb34
RD
28444 void *argp2 = 0 ;
28445 int res2 = 0 ;
72ef6efb 28446
70d7cb34
RD
28447 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28449 if (!SWIG_IsOK(res1)) {
70d7cb34 28450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28451 }
28452 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28453 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28454 if (!SWIG_IsOK(res2)) {
28455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28456 }
70d7cb34
RD
28457 if (!argp2) {
28458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28459 }
70d7cb34 28460 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28461 {
70d7cb34 28462 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28463 if (PyErr_Occurred()) SWIG_fail;
28464 }
28465 resultobj = SWIG_Py_Void();
28466 return resultobj;
28467fail:
28468 return NULL;
28469}
28470
28471
70d7cb34 28472SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28473 PyObject *resultobj = 0;
28474 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28475 wxFont *arg2 = 0 ;
70d7cb34
RD
28476 wxColour const &arg3_defvalue = *wxBLACK ;
28477 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28478 void *argp1 = 0 ;
28479 int res1 = 0 ;
28480 void *argp2 = 0 ;
28481 int res2 = 0 ;
70d7cb34 28482 wxColour temp3 ;
72ef6efb 28483
70d7cb34
RD
28484 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28486 if (!SWIG_IsOK(res1)) {
28487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28488 }
28489 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28490 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28491 if (!SWIG_IsOK(res2)) {
28492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28493 }
28494 if (!argp2) {
28495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28496 }
28497 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28498 if (swig_obj[2]) {
28499 {
28500 arg3 = &temp3;
28501 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28502 }
28503 }
72ef6efb 28504 {
70d7cb34 28505 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 resultobj = SWIG_Py_Void();
28509 return resultobj;
28510fail:
28511 return NULL;
28512}
28513
28514
70d7cb34
RD
28515SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28516 int argc;
28517 PyObject *argv[4];
72ef6efb 28518
70d7cb34
RD
28519 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28520 --argc;
28521 if (argc == 2) {
28522 int _v = 0;
28523 {
28524 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28525 _v = SWIG_CheckState(res);
28526 }
28527 if (!_v) goto check_1;
28528 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28529 }
70d7cb34
RD
28530check_1:
28531
28532 if ((argc >= 2) && (argc <= 3)) {
28533 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28534 }
70d7cb34 28535
72ef6efb 28536fail:
70d7cb34 28537 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28538 return NULL;
28539}
28540
28541
28542SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28543 PyObject *resultobj = 0;
28544 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28545 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28546 void *argp1 = 0 ;
28547 int res1 = 0 ;
28548 void *argp2 = 0 ;
28549 int res2 = 0 ;
28550 PyObject * obj0 = 0 ;
28551 PyObject * obj1 = 0 ;
28552 char * kwnames[] = {
28553 (char *) "self",(char *) "path", NULL
28554 };
28555
28556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28558 if (!SWIG_IsOK(res1)) {
28559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28560 }
28561 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28563 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28565 }
28566 if (!argp2) {
28567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28568 }
28569 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28570 {
5c8c7dd3 28571 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28572 if (PyErr_Occurred()) SWIG_fail;
28573 }
28574 resultobj = SWIG_Py_Void();
28575 return resultobj;
28576fail:
28577 return NULL;
28578}
28579
28580
28581SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28582 PyObject *resultobj = 0;
28583 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28584 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28585 int arg3 = (int) wxWINDING_RULE ;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 void *argp2 = 0 ;
28589 int res2 = 0 ;
28590 int val3 ;
28591 int ecode3 = 0 ;
28592 PyObject * obj0 = 0 ;
28593 PyObject * obj1 = 0 ;
28594 PyObject * obj2 = 0 ;
28595 char * kwnames[] = {
28596 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28597 };
28598
28599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28601 if (!SWIG_IsOK(res1)) {
28602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28603 }
28604 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28606 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28608 }
28609 if (!argp2) {
28610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28611 }
28612 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28613 if (obj2) {
28614 ecode3 = SWIG_AsVal_int(obj2, &val3);
28615 if (!SWIG_IsOK(ecode3)) {
28616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28617 }
28618 arg3 = static_cast< int >(val3);
28619 }
28620 {
5c8c7dd3 28621 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 resultobj = SWIG_Py_Void();
28625 return resultobj;
28626fail:
28627 return NULL;
28628}
28629
28630
28631SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28632 PyObject *resultobj = 0;
28633 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28634 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28635 int arg3 = (int) wxWINDING_RULE ;
28636 void *argp1 = 0 ;
28637 int res1 = 0 ;
28638 void *argp2 = 0 ;
28639 int res2 = 0 ;
28640 int val3 ;
28641 int ecode3 = 0 ;
28642 PyObject * obj0 = 0 ;
28643 PyObject * obj1 = 0 ;
28644 PyObject * obj2 = 0 ;
28645 char * kwnames[] = {
28646 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28647 };
28648
28649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28651 if (!SWIG_IsOK(res1)) {
28652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28653 }
28654 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28656 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28658 }
28659 if (!argp2) {
28660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28661 }
28662 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28663 if (obj2) {
28664 ecode3 = SWIG_AsVal_int(obj2, &val3);
28665 if (!SWIG_IsOK(ecode3)) {
28666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28667 }
28668 arg3 = static_cast< int >(val3);
28669 }
28670 {
5c8c7dd3 28671 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28672 if (PyErr_Occurred()) SWIG_fail;
28673 }
28674 resultobj = SWIG_Py_Void();
28675 return resultobj;
28676fail:
28677 return NULL;
28678}
28679
28680
b39fe951 28681SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28682 PyObject *resultobj = 0;
28683 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28684 wxString *arg2 = 0 ;
28685 wxDouble arg3 ;
28686 wxDouble arg4 ;
28687 void *argp1 = 0 ;
28688 int res1 = 0 ;
28689 bool temp2 = false ;
28690 double val3 ;
28691 int ecode3 = 0 ;
28692 double val4 ;
28693 int ecode4 = 0 ;
b39fe951
RD
28694 PyObject * obj0 = 0 ;
28695 PyObject * obj1 = 0 ;
28696 PyObject * obj2 = 0 ;
28697 PyObject * obj3 = 0 ;
28698 char * kwnames[] = {
28699 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28700 };
72ef6efb 28701
b39fe951
RD
28702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28704 if (!SWIG_IsOK(res1)) {
28705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28706 }
28707 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28708 {
b39fe951 28709 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28710 if (arg2 == NULL) SWIG_fail;
28711 temp2 = true;
28712 }
b39fe951 28713 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28714 if (!SWIG_IsOK(ecode3)) {
28715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28716 }
28717 arg3 = static_cast< wxDouble >(val3);
b39fe951 28718 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28719 if (!SWIG_IsOK(ecode4)) {
28720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28721 }
28722 arg4 = static_cast< wxDouble >(val4);
28723 {
72ef6efb 28724 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
28725 if (PyErr_Occurred()) SWIG_fail;
28726 }
28727 resultobj = SWIG_Py_Void();
28728 {
28729 if (temp2)
28730 delete arg2;
28731 }
28732 return resultobj;
28733fail:
28734 {
28735 if (temp2)
28736 delete arg2;
28737 }
28738 return NULL;
28739}
28740
28741
b39fe951 28742SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28743 PyObject *resultobj = 0;
28744 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28745 wxString *arg2 = 0 ;
28746 wxDouble arg3 ;
28747 wxDouble arg4 ;
28748 wxDouble arg5 ;
28749 void *argp1 = 0 ;
28750 int res1 = 0 ;
28751 bool temp2 = false ;
28752 double val3 ;
28753 int ecode3 = 0 ;
28754 double val4 ;
28755 int ecode4 = 0 ;
28756 double val5 ;
28757 int ecode5 = 0 ;
b39fe951
RD
28758 PyObject * obj0 = 0 ;
28759 PyObject * obj1 = 0 ;
28760 PyObject * obj2 = 0 ;
28761 PyObject * obj3 = 0 ;
28762 PyObject * obj4 = 0 ;
28763 char * kwnames[] = {
28764 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
28765 };
72ef6efb 28766
b39fe951
RD
28767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28769 if (!SWIG_IsOK(res1)) {
b39fe951 28770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28771 }
28772 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28773 {
b39fe951 28774 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28775 if (arg2 == NULL) SWIG_fail;
28776 temp2 = true;
28777 }
b39fe951 28778 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 28779 if (!SWIG_IsOK(ecode3)) {
b39fe951 28780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28781 }
28782 arg3 = static_cast< wxDouble >(val3);
b39fe951 28783 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 28784 if (!SWIG_IsOK(ecode4)) {
b39fe951 28785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28786 }
28787 arg4 = static_cast< wxDouble >(val4);
b39fe951 28788 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 28789 if (!SWIG_IsOK(ecode5)) {
b39fe951 28790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28791 }
28792 arg5 = static_cast< wxDouble >(val5);
28793 {
72ef6efb 28794 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
28795 if (PyErr_Occurred()) SWIG_fail;
28796 }
28797 resultobj = SWIG_Py_Void();
28798 {
28799 if (temp2)
28800 delete arg2;
28801 }
28802 return resultobj;
28803fail:
28804 {
28805 if (temp2)
28806 delete arg2;
28807 }
28808 return NULL;
28809}
28810
28811
be68621e 28812SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28813 PyObject *resultobj = 0;
28814 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28815 wxString *arg2 = 0 ;
28816 wxDouble *arg3 = (wxDouble *) 0 ;
28817 wxDouble *arg4 = (wxDouble *) 0 ;
28818 wxDouble *arg5 = (wxDouble *) 0 ;
28819 wxDouble *arg6 = (wxDouble *) 0 ;
28820 void *argp1 = 0 ;
28821 int res1 = 0 ;
28822 bool temp2 = false ;
28823 wxDouble temp3 ;
28824 int res3 = SWIG_TMPOBJ ;
28825 wxDouble temp4 ;
28826 int res4 = SWIG_TMPOBJ ;
28827 wxDouble temp5 ;
28828 int res5 = SWIG_TMPOBJ ;
28829 wxDouble temp6 ;
28830 int res6 = SWIG_TMPOBJ ;
28831 PyObject * obj0 = 0 ;
28832 PyObject * obj1 = 0 ;
28833 char * kwnames[] = {
28834 (char *) "self",(char *) "text", NULL
28835 };
28836
28837 arg3 = &temp3;
28838 arg4 = &temp4;
28839 arg5 = &temp5;
28840 arg6 = &temp6;
be68621e 28841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28843 if (!SWIG_IsOK(res1)) {
be68621e 28844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
28845 }
28846 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28847 {
28848 arg2 = wxString_in_helper(obj1);
28849 if (arg2 == NULL) SWIG_fail;
28850 temp2 = true;
28851 }
28852 {
72ef6efb 28853 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
28854 if (PyErr_Occurred()) SWIG_fail;
28855 }
28856 resultobj = SWIG_Py_Void();
28857 if (SWIG_IsTmpObj(res3)) {
28858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28859 } else {
28860 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28862 }
28863 if (SWIG_IsTmpObj(res4)) {
28864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28865 } else {
28866 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28868 }
28869 if (SWIG_IsTmpObj(res5)) {
28870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
28871 } else {
28872 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
28874 }
28875 if (SWIG_IsTmpObj(res6)) {
28876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
28877 } else {
28878 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
28880 }
28881 {
28882 if (temp2)
28883 delete arg2;
28884 }
28885 return resultobj;
28886fail:
28887 {
28888 if (temp2)
28889 delete arg2;
28890 }
28891 return NULL;
28892}
28893
28894
be68621e
RD
28895SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28896 PyObject *resultobj = 0;
28897 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28898 wxString *arg2 = 0 ;
28899 PyObject *result = 0 ;
28900 void *argp1 = 0 ;
28901 int res1 = 0 ;
28902 bool temp2 = false ;
28903 PyObject * obj0 = 0 ;
28904 PyObject * obj1 = 0 ;
28905 char * kwnames[] = {
28906 (char *) "self",(char *) "text", NULL
28907 };
28908
28909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28911 if (!SWIG_IsOK(res1)) {
28912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28913 }
28914 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28915 {
28916 arg2 = wxString_in_helper(obj1);
28917 if (arg2 == NULL) SWIG_fail;
28918 temp2 = true;
28919 }
28920 {
28921 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
28922 if (PyErr_Occurred()) SWIG_fail;
28923 }
28924 resultobj = result;
28925 {
28926 if (temp2)
28927 delete arg2;
28928 }
28929 return resultobj;
28930fail:
28931 {
28932 if (temp2)
28933 delete arg2;
28934 }
28935 return NULL;
28936}
28937
28938
72ef6efb
RD
28939SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28940 PyObject *resultobj = 0;
28941 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28942 wxString *arg2 = 0 ;
b39fe951 28943 wxArrayDouble result;
72ef6efb
RD
28944 void *argp1 = 0 ;
28945 int res1 = 0 ;
28946 bool temp2 = false ;
72ef6efb
RD
28947 PyObject * obj0 = 0 ;
28948 PyObject * obj1 = 0 ;
72ef6efb 28949 char * kwnames[] = {
b39fe951 28950 (char *) "self",(char *) "text", NULL
72ef6efb
RD
28951 };
28952
b39fe951 28953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28955 if (!SWIG_IsOK(res1)) {
b39fe951 28956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28957 }
28958 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28959 {
28960 arg2 = wxString_in_helper(obj1);
28961 if (arg2 == NULL) SWIG_fail;
28962 temp2 = true;
28963 }
72ef6efb 28964 {
b39fe951 28965 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
28966 if (PyErr_Occurred()) SWIG_fail;
28967 }
b39fe951
RD
28968 {
28969 resultobj = wxArrayDouble2PyList_helper(result);
28970 }
72ef6efb
RD
28971 {
28972 if (temp2)
28973 delete arg2;
28974 }
28975 return resultobj;
28976fail:
28977 {
28978 if (temp2)
28979 delete arg2;
28980 }
28981 return NULL;
28982}
28983
28984
28985SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28986 PyObject *resultobj = 0;
28987 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28988 wxBitmap *arg2 = 0 ;
28989 wxDouble arg3 ;
28990 wxDouble arg4 ;
28991 wxDouble arg5 ;
28992 wxDouble arg6 ;
28993 void *argp1 = 0 ;
28994 int res1 = 0 ;
28995 void *argp2 = 0 ;
28996 int res2 = 0 ;
28997 double val3 ;
28998 int ecode3 = 0 ;
28999 double val4 ;
29000 int ecode4 = 0 ;
29001 double val5 ;
29002 int ecode5 = 0 ;
29003 double val6 ;
29004 int ecode6 = 0 ;
29005 PyObject * obj0 = 0 ;
29006 PyObject * obj1 = 0 ;
29007 PyObject * obj2 = 0 ;
29008 PyObject * obj3 = 0 ;
29009 PyObject * obj4 = 0 ;
29010 PyObject * obj5 = 0 ;
29011 char * kwnames[] = {
29012 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29013 };
29014
29015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29019 }
29020 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29022 if (!SWIG_IsOK(res2)) {
29023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29024 }
29025 if (!argp2) {
29026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29027 }
29028 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29029 ecode3 = SWIG_AsVal_double(obj2, &val3);
29030 if (!SWIG_IsOK(ecode3)) {
29031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29032 }
29033 arg3 = static_cast< wxDouble >(val3);
29034 ecode4 = SWIG_AsVal_double(obj3, &val4);
29035 if (!SWIG_IsOK(ecode4)) {
29036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29037 }
29038 arg4 = static_cast< wxDouble >(val4);
29039 ecode5 = SWIG_AsVal_double(obj4, &val5);
29040 if (!SWIG_IsOK(ecode5)) {
29041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29042 }
29043 arg5 = static_cast< wxDouble >(val5);
29044 ecode6 = SWIG_AsVal_double(obj5, &val6);
29045 if (!SWIG_IsOK(ecode6)) {
29046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29047 }
29048 arg6 = static_cast< wxDouble >(val6);
29049 {
72ef6efb 29050 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29051 if (PyErr_Occurred()) SWIG_fail;
29052 }
29053 resultobj = SWIG_Py_Void();
29054 return resultobj;
29055fail:
29056 return NULL;
29057}
29058
29059
29060SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29061 PyObject *resultobj = 0;
29062 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29063 wxIcon *arg2 = 0 ;
29064 wxDouble arg3 ;
29065 wxDouble arg4 ;
29066 wxDouble arg5 ;
29067 wxDouble arg6 ;
29068 void *argp1 = 0 ;
29069 int res1 = 0 ;
29070 void *argp2 = 0 ;
29071 int res2 = 0 ;
29072 double val3 ;
29073 int ecode3 = 0 ;
29074 double val4 ;
29075 int ecode4 = 0 ;
29076 double val5 ;
29077 int ecode5 = 0 ;
70d7cb34
RD
29078 double val6 ;
29079 int ecode6 = 0 ;
29080 PyObject * obj0 = 0 ;
29081 PyObject * obj1 = 0 ;
29082 PyObject * obj2 = 0 ;
29083 PyObject * obj3 = 0 ;
29084 PyObject * obj4 = 0 ;
29085 PyObject * obj5 = 0 ;
29086 char * kwnames[] = {
29087 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29088 };
29089
29090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29092 if (!SWIG_IsOK(res1)) {
29093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29094 }
29095 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29097 if (!SWIG_IsOK(res2)) {
29098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29099 }
29100 if (!argp2) {
29101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29102 }
29103 arg2 = reinterpret_cast< wxIcon * >(argp2);
29104 ecode3 = SWIG_AsVal_double(obj2, &val3);
29105 if (!SWIG_IsOK(ecode3)) {
29106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29107 }
29108 arg3 = static_cast< wxDouble >(val3);
29109 ecode4 = SWIG_AsVal_double(obj3, &val4);
29110 if (!SWIG_IsOK(ecode4)) {
29111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29112 }
29113 arg4 = static_cast< wxDouble >(val4);
29114 ecode5 = SWIG_AsVal_double(obj4, &val5);
29115 if (!SWIG_IsOK(ecode5)) {
29116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29117 }
29118 arg5 = static_cast< wxDouble >(val5);
29119 ecode6 = SWIG_AsVal_double(obj5, &val6);
29120 if (!SWIG_IsOK(ecode6)) {
29121 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29122 }
29123 arg6 = static_cast< wxDouble >(val6);
29124 {
29125 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29126 if (PyErr_Occurred()) SWIG_fail;
29127 }
29128 resultobj = SWIG_Py_Void();
29129 return resultobj;
29130fail:
29131 return NULL;
29132}
29133
29134
29135SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29136 PyObject *resultobj = 0;
29137 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29138 wxDouble arg2 ;
29139 wxDouble arg3 ;
29140 wxDouble arg4 ;
29141 wxDouble arg5 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 double val2 ;
29145 int ecode2 = 0 ;
29146 double val3 ;
29147 int ecode3 = 0 ;
29148 double val4 ;
29149 int ecode4 = 0 ;
29150 double val5 ;
29151 int ecode5 = 0 ;
29152 PyObject * obj0 = 0 ;
29153 PyObject * obj1 = 0 ;
29154 PyObject * obj2 = 0 ;
29155 PyObject * obj3 = 0 ;
29156 PyObject * obj4 = 0 ;
29157 char * kwnames[] = {
29158 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29159 };
29160
29161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29163 if (!SWIG_IsOK(res1)) {
29164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29165 }
29166 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29167 ecode2 = SWIG_AsVal_double(obj1, &val2);
29168 if (!SWIG_IsOK(ecode2)) {
29169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29170 }
29171 arg2 = static_cast< wxDouble >(val2);
29172 ecode3 = SWIG_AsVal_double(obj2, &val3);
29173 if (!SWIG_IsOK(ecode3)) {
29174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29175 }
29176 arg3 = static_cast< wxDouble >(val3);
29177 ecode4 = SWIG_AsVal_double(obj3, &val4);
29178 if (!SWIG_IsOK(ecode4)) {
29179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29180 }
29181 arg4 = static_cast< wxDouble >(val4);
29182 ecode5 = SWIG_AsVal_double(obj4, &val5);
29183 if (!SWIG_IsOK(ecode5)) {
29184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29185 }
29186 arg5 = static_cast< wxDouble >(val5);
29187 {
29188 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29189 if (PyErr_Occurred()) SWIG_fail;
29190 }
29191 resultobj = SWIG_Py_Void();
29192 return resultobj;
29193fail:
29194 return NULL;
29195}
29196
29197
29198SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29199 PyObject *resultobj = 0;
29200 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29201 size_t arg2 ;
29202 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29203 void *argp1 = 0 ;
29204 int res1 = 0 ;
29205 PyObject * obj0 = 0 ;
29206 PyObject * obj1 = 0 ;
29207 char * kwnames[] = {
29208 (char *) "self",(char *) "points", NULL
29209 };
29210
29211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29213 if (!SWIG_IsOK(res1)) {
29214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29215 }
29216 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29217 {
29218 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29219 if (arg3 == NULL) SWIG_fail;
29220 }
29221 {
29222 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 resultobj = SWIG_Py_Void();
29226 {
29227 if (arg3) delete [] arg3;
29228 }
29229 return resultobj;
29230fail:
29231 {
29232 if (arg3) delete [] arg3;
29233 }
29234 return NULL;
29235}
29236
29237
29238SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj = 0;
29240 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29241 PyObject *arg2 = (PyObject *) 0 ;
29242 PyObject *arg3 = (PyObject *) 0 ;
29243 void *argp1 = 0 ;
29244 int res1 = 0 ;
29245 PyObject * obj0 = 0 ;
29246 PyObject * obj1 = 0 ;
29247 PyObject * obj2 = 0 ;
29248 char * kwnames[] = {
29249 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29250 };
29251
29252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29254 if (!SWIG_IsOK(res1)) {
29255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29256 }
29257 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29258 arg2 = obj1;
29259 arg3 = obj2;
29260 {
29261 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
29264 resultobj = SWIG_Py_Void();
29265 return resultobj;
29266fail:
29267 return NULL;
29268}
29269
29270
29271SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj = 0;
29273 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29274 size_t arg2 ;
29275 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29276 int arg4 = (int) wxWINDING_RULE ;
29277 void *argp1 = 0 ;
29278 int res1 = 0 ;
29279 int val4 ;
29280 int ecode4 = 0 ;
29281 PyObject * obj0 = 0 ;
29282 PyObject * obj1 = 0 ;
29283 PyObject * obj2 = 0 ;
29284 char * kwnames[] = {
29285 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29286 };
29287
29288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29290 if (!SWIG_IsOK(res1)) {
29291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29292 }
29293 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29294 {
29295 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29296 if (arg3 == NULL) SWIG_fail;
29297 }
29298 if (obj2) {
29299 ecode4 = SWIG_AsVal_int(obj2, &val4);
29300 if (!SWIG_IsOK(ecode4)) {
29301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29302 }
29303 arg4 = static_cast< int >(val4);
29304 }
29305 {
29306 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 resultobj = SWIG_Py_Void();
29310 {
29311 if (arg3) delete [] arg3;
29312 }
29313 return resultobj;
29314fail:
29315 {
29316 if (arg3) delete [] arg3;
29317 }
29318 return NULL;
29319}
29320
29321
29322SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29323 PyObject *resultobj = 0;
29324 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29325 wxDouble arg2 ;
29326 wxDouble arg3 ;
29327 wxDouble arg4 ;
29328 wxDouble arg5 ;
29329 void *argp1 = 0 ;
29330 int res1 = 0 ;
29331 double val2 ;
29332 int ecode2 = 0 ;
29333 double val3 ;
29334 int ecode3 = 0 ;
29335 double val4 ;
29336 int ecode4 = 0 ;
29337 double val5 ;
29338 int ecode5 = 0 ;
29339 PyObject * obj0 = 0 ;
29340 PyObject * obj1 = 0 ;
29341 PyObject * obj2 = 0 ;
29342 PyObject * obj3 = 0 ;
29343 PyObject * obj4 = 0 ;
29344 char * kwnames[] = {
29345 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29346 };
29347
29348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29350 if (!SWIG_IsOK(res1)) {
29351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29352 }
29353 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29354 ecode2 = SWIG_AsVal_double(obj1, &val2);
29355 if (!SWIG_IsOK(ecode2)) {
29356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29357 }
29358 arg2 = static_cast< wxDouble >(val2);
29359 ecode3 = SWIG_AsVal_double(obj2, &val3);
29360 if (!SWIG_IsOK(ecode3)) {
29361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29362 }
29363 arg3 = static_cast< wxDouble >(val3);
29364 ecode4 = SWIG_AsVal_double(obj3, &val4);
29365 if (!SWIG_IsOK(ecode4)) {
29366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29367 }
29368 arg4 = static_cast< wxDouble >(val4);
29369 ecode5 = SWIG_AsVal_double(obj4, &val5);
29370 if (!SWIG_IsOK(ecode5)) {
29371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29372 }
29373 arg5 = static_cast< wxDouble >(val5);
29374 {
29375 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29376 if (PyErr_Occurred()) SWIG_fail;
29377 }
29378 resultobj = SWIG_Py_Void();
29379 return resultobj;
29380fail:
29381 return NULL;
29382}
29383
29384
29385SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29386 PyObject *resultobj = 0;
29387 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29388 wxDouble arg2 ;
29389 wxDouble arg3 ;
29390 wxDouble arg4 ;
29391 wxDouble arg5 ;
29392 void *argp1 = 0 ;
29393 int res1 = 0 ;
29394 double val2 ;
29395 int ecode2 = 0 ;
29396 double val3 ;
29397 int ecode3 = 0 ;
29398 double val4 ;
29399 int ecode4 = 0 ;
29400 double val5 ;
29401 int ecode5 = 0 ;
72ef6efb
RD
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 PyObject * obj3 = 0 ;
29406 PyObject * obj4 = 0 ;
72ef6efb 29407 char * kwnames[] = {
70d7cb34 29408 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29409 };
29410
70d7cb34 29411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29413 if (!SWIG_IsOK(res1)) {
70d7cb34 29414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29415 }
29416 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29417 ecode2 = SWIG_AsVal_double(obj1, &val2);
29418 if (!SWIG_IsOK(ecode2)) {
29419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29420 }
29421 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29422 ecode3 = SWIG_AsVal_double(obj2, &val3);
29423 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29425 }
29426 arg3 = static_cast< wxDouble >(val3);
29427 ecode4 = SWIG_AsVal_double(obj3, &val4);
29428 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29430 }
29431 arg4 = static_cast< wxDouble >(val4);
29432 ecode5 = SWIG_AsVal_double(obj4, &val5);
29433 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29435 }
29436 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29437 {
70d7cb34 29438 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29439 if (PyErr_Occurred()) SWIG_fail;
29440 }
29441 resultobj = SWIG_Py_Void();
29442 return resultobj;
29443fail:
29444 return NULL;
29445}
29446
29447
70d7cb34 29448SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29449 PyObject *resultobj = 0;
29450 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29451 wxDouble arg2 ;
29452 wxDouble arg3 ;
29453 wxDouble arg4 ;
29454 wxDouble arg5 ;
70d7cb34 29455 wxDouble arg6 ;
72ef6efb
RD
29456 void *argp1 = 0 ;
29457 int res1 = 0 ;
29458 double val2 ;
29459 int ecode2 = 0 ;
29460 double val3 ;
29461 int ecode3 = 0 ;
29462 double val4 ;
29463 int ecode4 = 0 ;
29464 double val5 ;
29465 int ecode5 = 0 ;
70d7cb34
RD
29466 double val6 ;
29467 int ecode6 = 0 ;
72ef6efb
RD
29468 PyObject * obj0 = 0 ;
29469 PyObject * obj1 = 0 ;
29470 PyObject * obj2 = 0 ;
29471 PyObject * obj3 = 0 ;
29472 PyObject * obj4 = 0 ;
70d7cb34 29473 PyObject * obj5 = 0 ;
72ef6efb 29474 char * kwnames[] = {
70d7cb34 29475 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29476 };
29477
70d7cb34 29478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
70d7cb34 29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29482 }
29483 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29484 ecode2 = SWIG_AsVal_double(obj1, &val2);
29485 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29487 }
29488 arg2 = static_cast< wxDouble >(val2);
29489 ecode3 = SWIG_AsVal_double(obj2, &val3);
29490 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29492 }
29493 arg3 = static_cast< wxDouble >(val3);
29494 ecode4 = SWIG_AsVal_double(obj3, &val4);
29495 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29497 }
29498 arg4 = static_cast< wxDouble >(val4);
29499 ecode5 = SWIG_AsVal_double(obj4, &val5);
29500 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29502 }
29503 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29504 ecode6 = SWIG_AsVal_double(obj5, &val6);
29505 if (!SWIG_IsOK(ecode6)) {
29506 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29507 }
29508 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29509 {
70d7cb34 29510 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 resultobj = SWIG_Py_Void();
29514 return resultobj;
29515fail:
29516 return NULL;
29517}
29518
29519
70d7cb34 29520SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29521 PyObject *resultobj = 0;
29522 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29523 bool result;
72ef6efb
RD
29524 void *argp1 = 0 ;
29525 int res1 = 0 ;
70d7cb34 29526 PyObject *swig_obj[1] ;
72ef6efb 29527
70d7cb34
RD
29528 if (!args) SWIG_fail;
29529 swig_obj[0] = args;
29530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29531 if (!SWIG_IsOK(res1)) {
70d7cb34 29532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29533 }
29534 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29535 {
70d7cb34
RD
29536 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29537 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29538 }
72ef6efb 29539 {
70d7cb34
RD
29540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29541 }
29542 return resultobj;
29543fail:
29544 return NULL;
29545}
29546
29547
29548SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29549 PyObject *obj;
29550 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29551 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29552 return SWIG_Py_Void();
29553}
29554
29555SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29556 PyObject *resultobj = 0;
29557 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29558 void *argp1 = 0 ;
29559 int res1 = 0 ;
29560 PyObject *swig_obj[1] ;
29561
29562 if (!args) SWIG_fail;
29563 swig_obj[0] = args;
29564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29565 if (!SWIG_IsOK(res1)) {
29566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29567 }
29568 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29569 {
29570 delete arg1;
29571
72ef6efb
RD
29572 if (PyErr_Occurred()) SWIG_fail;
29573 }
29574 resultobj = SWIG_Py_Void();
70d7cb34
RD
29575 return resultobj;
29576fail:
29577 return NULL;
29578}
29579
29580
29581SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29582 PyObject *resultobj = 0;
29583 wxGraphicsRenderer *result = 0 ;
29584
29585 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29586 {
70d7cb34
RD
29587 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29588 if (PyErr_Occurred()) SWIG_fail;
29589 }
29590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29591 return resultobj;
29592fail:
29593 return NULL;
29594}
29595
29596
29597SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29598 PyObject *resultobj = 0;
29599 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29600 wxWindowDC *arg2 = 0 ;
29601 wxGraphicsContext *result = 0 ;
29602 void *argp1 = 0 ;
29603 int res1 = 0 ;
29604 void *argp2 = 0 ;
29605 int res2 = 0 ;
29606
29607 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29609 if (!SWIG_IsOK(res1)) {
29610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29611 }
29612 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29613 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29614 if (!SWIG_IsOK(res2)) {
29615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29616 }
29617 if (!argp2) {
29618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29619 }
29620 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29621 {
29622 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29623 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29624 }
70d7cb34 29625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29626 return resultobj;
29627fail:
70d7cb34
RD
29628 return NULL;
29629}
29630
29631
29632SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29633 PyObject *resultobj = 0;
29634 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29635 wxWindow *arg2 = (wxWindow *) 0 ;
29636 wxGraphicsContext *result = 0 ;
29637 void *argp1 = 0 ;
29638 int res1 = 0 ;
29639 void *argp2 = 0 ;
29640 int res2 = 0 ;
29641
29642 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29644 if (!SWIG_IsOK(res1)) {
29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29646 }
29647 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29648 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29649 if (!SWIG_IsOK(res2)) {
29650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29651 }
29652 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29653 {
70d7cb34
RD
29654 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29655 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29656 }
70d7cb34
RD
29657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29658 return resultobj;
29659fail:
72ef6efb
RD
29660 return NULL;
29661}
29662
29663
70d7cb34
RD
29664SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29665 int argc;
29666 PyObject *argv[3];
29667
29668 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29669 --argc;
29670 if (argc == 2) {
29671 int _v = 0;
29672 {
29673 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29674 _v = SWIG_CheckState(res);
29675 }
29676 if (!_v) goto check_1;
29677 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29678 }
29679check_1:
29680
29681 if (argc == 2) {
29682 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29683 }
29684
29685fail:
29686 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29687 return NULL;
29688}
29689
29690
29691SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29692 PyObject *resultobj = 0;
70d7cb34
RD
29693 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29694 void *arg2 = (void *) 0 ;
29695 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29696 void *argp1 = 0 ;
29697 int res1 = 0 ;
70d7cb34 29698 int res2 ;
b39fe951
RD
29699 PyObject * obj0 = 0 ;
29700 PyObject * obj1 = 0 ;
b39fe951 29701 char * kwnames[] = {
70d7cb34 29702 (char *) "self",(char *) "context", NULL
b39fe951 29703 };
72ef6efb 29704
70d7cb34
RD
29705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29707 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29709 }
29710 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29711 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29712 if (!SWIG_IsOK(res2)) {
29713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29714 }
72ef6efb 29715 {
70d7cb34 29716 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29717 if (PyErr_Occurred()) SWIG_fail;
29718 }
70d7cb34 29719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29720 return resultobj;
29721fail:
29722 return NULL;
29723}
29724
29725
70d7cb34 29726SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29727 PyObject *resultobj = 0;
70d7cb34
RD
29728 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29729 void *arg2 = (void *) 0 ;
29730 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29731 void *argp1 = 0 ;
29732 int res1 = 0 ;
70d7cb34 29733 int res2 ;
72ef6efb
RD
29734 PyObject * obj0 = 0 ;
29735 PyObject * obj1 = 0 ;
72ef6efb 29736 char * kwnames[] = {
70d7cb34 29737 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29738 };
29739
70d7cb34
RD
29740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29742 if (!SWIG_IsOK(res1)) {
70d7cb34 29743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29744 }
70d7cb34
RD
29745 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29746 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29747 if (!SWIG_IsOK(res2)) {
29748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
29749 }
29750 {
70d7cb34 29751 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
29752 if (PyErr_Occurred()) SWIG_fail;
29753 }
70d7cb34 29754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29755 return resultobj;
29756fail:
70d7cb34
RD
29757 return NULL;
29758}
29759
29760
29761SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29762 PyObject *resultobj = 0;
29763 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 29764 wxGraphicsPath result;
70d7cb34
RD
29765 void *argp1 = 0 ;
29766 int res1 = 0 ;
29767 PyObject *swig_obj[1] ;
29768
29769 if (!args) SWIG_fail;
29770 swig_obj[0] = args;
29771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29772 if (!SWIG_IsOK(res1)) {
29773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29774 }
29775 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 29776 {
5c8c7dd3 29777 result = (arg1)->CreatePath();
70d7cb34 29778 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29779 }
5c8c7dd3 29780 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
29781 return resultobj;
29782fail:
72ef6efb
RD
29783 return NULL;
29784}
29785
29786
70d7cb34 29787SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29788 PyObject *resultobj = 0;
70d7cb34
RD
29789 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29790 wxDouble arg2 = (wxDouble) 1.0 ;
29791 wxDouble arg3 = (wxDouble) 0.0 ;
29792 wxDouble arg4 = (wxDouble) 0.0 ;
29793 wxDouble arg5 = (wxDouble) 1.0 ;
29794 wxDouble arg6 = (wxDouble) 0.0 ;
29795 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 29796 wxGraphicsMatrix result;
72ef6efb
RD
29797 void *argp1 = 0 ;
29798 int res1 = 0 ;
29799 double val2 ;
29800 int ecode2 = 0 ;
29801 double val3 ;
29802 int ecode3 = 0 ;
29803 double val4 ;
29804 int ecode4 = 0 ;
29805 double val5 ;
29806 int ecode5 = 0 ;
70d7cb34
RD
29807 double val6 ;
29808 int ecode6 = 0 ;
29809 double val7 ;
29810 int ecode7 = 0 ;
72ef6efb
RD
29811 PyObject * obj0 = 0 ;
29812 PyObject * obj1 = 0 ;
29813 PyObject * obj2 = 0 ;
29814 PyObject * obj3 = 0 ;
29815 PyObject * obj4 = 0 ;
70d7cb34
RD
29816 PyObject * obj5 = 0 ;
29817 PyObject * obj6 = 0 ;
72ef6efb 29818 char * kwnames[] = {
70d7cb34 29819 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
29820 };
29821
70d7cb34
RD
29822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29824 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29826 }
29827 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29828 if (obj1) {
29829 ecode2 = SWIG_AsVal_double(obj1, &val2);
29830 if (!SWIG_IsOK(ecode2)) {
29831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29832 }
29833 arg2 = static_cast< wxDouble >(val2);
29834 }
29835 if (obj2) {
29836 ecode3 = SWIG_AsVal_double(obj2, &val3);
29837 if (!SWIG_IsOK(ecode3)) {
29838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29839 }
29840 arg3 = static_cast< wxDouble >(val3);
29841 }
29842 if (obj3) {
29843 ecode4 = SWIG_AsVal_double(obj3, &val4);
29844 if (!SWIG_IsOK(ecode4)) {
29845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29846 }
29847 arg4 = static_cast< wxDouble >(val4);
29848 }
29849 if (obj4) {
29850 ecode5 = SWIG_AsVal_double(obj4, &val5);
29851 if (!SWIG_IsOK(ecode5)) {
29852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29853 }
29854 arg5 = static_cast< wxDouble >(val5);
29855 }
29856 if (obj5) {
29857 ecode6 = SWIG_AsVal_double(obj5, &val6);
29858 if (!SWIG_IsOK(ecode6)) {
29859 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29860 }
29861 arg6 = static_cast< wxDouble >(val6);
29862 }
29863 if (obj6) {
29864 ecode7 = SWIG_AsVal_double(obj6, &val7);
29865 if (!SWIG_IsOK(ecode7)) {
29866 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29867 }
29868 arg7 = static_cast< wxDouble >(val7);
72ef6efb 29869 }
72ef6efb 29870 {
5c8c7dd3 29871 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
29872 if (PyErr_Occurred()) SWIG_fail;
29873 }
5c8c7dd3 29874 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29875 return resultobj;
29876fail:
29877 return NULL;
29878}
29879
29880
70d7cb34 29881SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29882 PyObject *resultobj = 0;
70d7cb34
RD
29883 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29884 wxPen *arg2 = 0 ;
29885 wxGraphicsPen result;
29886 void *argp1 = 0 ;
29887 int res1 = 0 ;
29888 void *argp2 = 0 ;
29889 int res2 = 0 ;
29890 PyObject * obj0 = 0 ;
29891 PyObject * obj1 = 0 ;
29892 char * kwnames[] = {
29893 (char *) "self",(char *) "pen", NULL
29894 };
29895
29896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29898 if (!SWIG_IsOK(res1)) {
29899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29900 }
29901 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29903 if (!SWIG_IsOK(res2)) {
29904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29905 }
29906 if (!argp2) {
29907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29908 }
29909 arg2 = reinterpret_cast< wxPen * >(argp2);
29910 {
29911 result = (arg1)->CreatePen((wxPen const &)*arg2);
29912 if (PyErr_Occurred()) SWIG_fail;
29913 }
29914 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29915 return resultobj;
29916fail:
29917 return NULL;
29918}
29919
29920
29921SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj = 0;
29923 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29924 wxBrush *arg2 = 0 ;
29925 wxGraphicsBrush result;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 void *argp2 = 0 ;
29929 int res2 = 0 ;
29930 PyObject * obj0 = 0 ;
29931 PyObject * obj1 = 0 ;
29932 char * kwnames[] = {
29933 (char *) "self",(char *) "brush", NULL
29934 };
29935
29936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29938 if (!SWIG_IsOK(res1)) {
29939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29940 }
29941 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29943 if (!SWIG_IsOK(res2)) {
29944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29945 }
29946 if (!argp2) {
29947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29948 }
29949 arg2 = reinterpret_cast< wxBrush * >(argp2);
29950 {
29951 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
29952 if (PyErr_Occurred()) SWIG_fail;
29953 }
29954 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29955 return resultobj;
29956fail:
29957 return NULL;
29958}
29959
29960
29961SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29962 PyObject *resultobj = 0;
29963 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
29964 wxDouble arg2 ;
29965 wxDouble arg3 ;
29966 wxDouble arg4 ;
29967 wxDouble arg5 ;
70d7cb34
RD
29968 wxColour *arg6 = 0 ;
29969 wxColour *arg7 = 0 ;
29970 wxGraphicsBrush result;
72ef6efb
RD
29971 void *argp1 = 0 ;
29972 int res1 = 0 ;
29973 double val2 ;
29974 int ecode2 = 0 ;
29975 double val3 ;
29976 int ecode3 = 0 ;
29977 double val4 ;
29978 int ecode4 = 0 ;
29979 double val5 ;
29980 int ecode5 = 0 ;
70d7cb34
RD
29981 wxColour temp6 ;
29982 wxColour temp7 ;
72ef6efb
RD
29983 PyObject * obj0 = 0 ;
29984 PyObject * obj1 = 0 ;
29985 PyObject * obj2 = 0 ;
29986 PyObject * obj3 = 0 ;
29987 PyObject * obj4 = 0 ;
70d7cb34
RD
29988 PyObject * obj5 = 0 ;
29989 PyObject * obj6 = 0 ;
72ef6efb 29990 char * kwnames[] = {
70d7cb34 29991 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
29992 };
29993
70d7cb34
RD
29994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29996 if (!SWIG_IsOK(res1)) {
70d7cb34 29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29998 }
70d7cb34 29999 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30000 ecode2 = SWIG_AsVal_double(obj1, &val2);
30001 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30003 }
30004 arg2 = static_cast< wxDouble >(val2);
30005 ecode3 = SWIG_AsVal_double(obj2, &val3);
30006 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30008 }
30009 arg3 = static_cast< wxDouble >(val3);
30010 ecode4 = SWIG_AsVal_double(obj3, &val4);
30011 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30013 }
30014 arg4 = static_cast< wxDouble >(val4);
30015 ecode5 = SWIG_AsVal_double(obj4, &val5);
30016 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30018 }
30019 arg5 = static_cast< wxDouble >(val5);
30020 {
70d7cb34
RD
30021 arg6 = &temp6;
30022 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30023 }
30024 {
30025 arg7 = &temp7;
30026 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30027 }
30028 {
30029 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
70d7cb34 30032 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30033 return resultobj;
30034fail:
30035 return NULL;
30036}
30037
30038
70d7cb34 30039SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30040 PyObject *resultobj = 0;
70d7cb34 30041 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30042 wxDouble arg2 ;
30043 wxDouble arg3 ;
30044 wxDouble arg4 ;
30045 wxDouble arg5 ;
30046 wxDouble arg6 ;
70d7cb34
RD
30047 wxColour *arg7 = 0 ;
30048 wxColour *arg8 = 0 ;
30049 wxGraphicsBrush result;
72ef6efb
RD
30050 void *argp1 = 0 ;
30051 int res1 = 0 ;
30052 double val2 ;
30053 int ecode2 = 0 ;
30054 double val3 ;
30055 int ecode3 = 0 ;
30056 double val4 ;
30057 int ecode4 = 0 ;
30058 double val5 ;
30059 int ecode5 = 0 ;
30060 double val6 ;
30061 int ecode6 = 0 ;
70d7cb34
RD
30062 wxColour temp7 ;
30063 wxColour temp8 ;
72ef6efb
RD
30064 PyObject * obj0 = 0 ;
30065 PyObject * obj1 = 0 ;
30066 PyObject * obj2 = 0 ;
30067 PyObject * obj3 = 0 ;
30068 PyObject * obj4 = 0 ;
30069 PyObject * obj5 = 0 ;
70d7cb34
RD
30070 PyObject * obj6 = 0 ;
30071 PyObject * obj7 = 0 ;
72ef6efb 30072 char * kwnames[] = {
70d7cb34 30073 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30074 };
30075
70d7cb34
RD
30076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30078 if (!SWIG_IsOK(res1)) {
70d7cb34 30079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30080 }
70d7cb34 30081 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30082 ecode2 = SWIG_AsVal_double(obj1, &val2);
30083 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30085 }
30086 arg2 = static_cast< wxDouble >(val2);
30087 ecode3 = SWIG_AsVal_double(obj2, &val3);
30088 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30090 }
30091 arg3 = static_cast< wxDouble >(val3);
30092 ecode4 = SWIG_AsVal_double(obj3, &val4);
30093 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30095 }
30096 arg4 = static_cast< wxDouble >(val4);
30097 ecode5 = SWIG_AsVal_double(obj4, &val5);
30098 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30100 }
30101 arg5 = static_cast< wxDouble >(val5);
30102 ecode6 = SWIG_AsVal_double(obj5, &val6);
30103 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30104 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30105 }
30106 arg6 = static_cast< wxDouble >(val6);
30107 {
70d7cb34
RD
30108 arg7 = &temp7;
30109 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30110 }
30111 {
30112 arg8 = &temp8;
30113 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30114 }
30115 {
30116 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30117 if (PyErr_Occurred()) SWIG_fail;
30118 }
70d7cb34 30119 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30120 return resultobj;
30121fail:
30122 return NULL;
30123}
30124
30125
70d7cb34
RD
30126SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30127 PyObject *resultobj = 0;
30128 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30129 wxFont *arg2 = 0 ;
30130 wxColour const &arg3_defvalue = *wxBLACK ;
30131 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30132 wxGraphicsFont result;
30133 void *argp1 = 0 ;
30134 int res1 = 0 ;
30135 void *argp2 = 0 ;
30136 int res2 = 0 ;
30137 wxColour temp3 ;
30138 PyObject * obj0 = 0 ;
30139 PyObject * obj1 = 0 ;
30140 PyObject * obj2 = 0 ;
30141 char * kwnames[] = {
30142 (char *) "self",(char *) "font",(char *) "col", NULL
30143 };
30144
30145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30147 if (!SWIG_IsOK(res1)) {
30148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30149 }
30150 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30152 if (!SWIG_IsOK(res2)) {
30153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30154 }
30155 if (!argp2) {
30156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30157 }
30158 arg2 = reinterpret_cast< wxFont * >(argp2);
30159 if (obj2) {
30160 {
30161 arg3 = &temp3;
30162 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30163 }
30164 }
30165 {
30166 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30167 if (PyErr_Occurred()) SWIG_fail;
30168 }
30169 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30170 return resultobj;
30171fail:
30172 return NULL;
30173}
30174
30175
30176SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30177 PyObject *obj;
30178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30179 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30180 return SWIG_Py_Void();
30181}
30182
30183SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30184 PyObject *resultobj = 0;
30185 wxWindowDC *arg1 = 0 ;
30186 wxGCDC *result = 0 ;
30187 void *argp1 = 0 ;
30188 int res1 = 0 ;
30189 PyObject * obj0 = 0 ;
30190 char * kwnames[] = {
30191 (char *) "dc", NULL
30192 };
30193
30194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30195 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30196 if (!SWIG_IsOK(res1)) {
30197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30198 }
30199 if (!argp1) {
30200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30201 }
30202 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30203 {
30204 if (!wxPyCheckForApp()) SWIG_fail;
30205 PyThreadState* __tstate = wxPyBeginAllowThreads();
30206 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30207 wxPyEndAllowThreads(__tstate);
30208 if (PyErr_Occurred()) SWIG_fail;
30209 }
30210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30211 return resultobj;
30212fail:
30213 return NULL;
30214}
30215
30216
30217SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30218 PyObject *resultobj = 0;
30219 wxGCDC *arg1 = (wxGCDC *) 0 ;
30220 void *argp1 = 0 ;
30221 int res1 = 0 ;
30222 PyObject *swig_obj[1] ;
30223
30224 if (!args) SWIG_fail;
30225 swig_obj[0] = args;
30226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30227 if (!SWIG_IsOK(res1)) {
30228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30229 }
30230 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30231 {
72ef6efb
RD
30232 delete arg1;
30233
72ef6efb
RD
30234 if (PyErr_Occurred()) SWIG_fail;
30235 }
30236 resultobj = SWIG_Py_Void();
30237 return resultobj;
30238fail:
30239 return NULL;
30240}
30241
30242
0a27f394 30243SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30244 PyObject *resultobj = 0;
30245 wxGCDC *arg1 = (wxGCDC *) 0 ;
30246 wxGraphicsContext *result = 0 ;
30247 void *argp1 = 0 ;
30248 int res1 = 0 ;
30249 PyObject *swig_obj[1] ;
30250
30251 if (!args) SWIG_fail;
30252 swig_obj[0] = args;
30253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30254 if (!SWIG_IsOK(res1)) {
0a27f394 30255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30256 }
30257 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30258 {
0a27f394 30259 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30260 if (PyErr_Occurred()) SWIG_fail;
30261 }
30262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30263 return resultobj;
30264fail:
30265 return NULL;
30266}
30267
30268
0a27f394
RD
30269SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30270 PyObject *resultobj = 0;
30271 wxGCDC *arg1 = (wxGCDC *) 0 ;
30272 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30273 void *argp1 = 0 ;
30274 int res1 = 0 ;
30275 void *argp2 = 0 ;
30276 int res2 = 0 ;
30277 PyObject * obj0 = 0 ;
30278 PyObject * obj1 = 0 ;
30279 char * kwnames[] = {
30280 (char *) "self",(char *) "ctx", NULL
30281 };
30282
30283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30287 }
30288 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30290 if (!SWIG_IsOK(res2)) {
30291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30292 }
30293 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30294 {
30295 (arg1)->SetGraphicsContext(arg2);
30296 if (PyErr_Occurred()) SWIG_fail;
30297 }
30298 resultobj = SWIG_Py_Void();
30299 return resultobj;
30300fail:
30301 return NULL;
30302}
30303
30304
72ef6efb
RD
30305SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30306 PyObject *obj;
30307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30308 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30309 return SWIG_Py_Void();
30310}
30311
30312SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30313 return SWIG_Python_InitShadowInstance(args);
30314}
30315
b39fe951
RD
30316SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30317 PyObject *resultobj = 0;
30318 wxOverlay *result = 0 ;
30319
30320 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30321 {
30322 PyThreadState* __tstate = wxPyBeginAllowThreads();
30323 result = (wxOverlay *)new wxOverlay();
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30328 return resultobj;
30329fail:
30330 return NULL;
30331}
30332
30333
30334SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30335 PyObject *resultobj = 0;
30336 wxOverlay *arg1 = (wxOverlay *) 0 ;
30337 void *argp1 = 0 ;
30338 int res1 = 0 ;
30339 PyObject *swig_obj[1] ;
30340
30341 if (!args) SWIG_fail;
30342 swig_obj[0] = args;
30343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30344 if (!SWIG_IsOK(res1)) {
30345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30346 }
30347 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30348 {
30349 PyThreadState* __tstate = wxPyBeginAllowThreads();
30350 delete arg1;
30351
30352 wxPyEndAllowThreads(__tstate);
30353 if (PyErr_Occurred()) SWIG_fail;
30354 }
30355 resultobj = SWIG_Py_Void();
30356 return resultobj;
30357fail:
30358 return NULL;
30359}
30360
30361
30362SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30363 PyObject *resultobj = 0;
30364 wxOverlay *arg1 = (wxOverlay *) 0 ;
30365 void *argp1 = 0 ;
30366 int res1 = 0 ;
30367 PyObject *swig_obj[1] ;
30368
30369 if (!args) SWIG_fail;
30370 swig_obj[0] = args;
30371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30372 if (!SWIG_IsOK(res1)) {
30373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30374 }
30375 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30376 {
30377 PyThreadState* __tstate = wxPyBeginAllowThreads();
30378 (arg1)->Reset();
30379 wxPyEndAllowThreads(__tstate);
30380 if (PyErr_Occurred()) SWIG_fail;
30381 }
30382 resultobj = SWIG_Py_Void();
30383 return resultobj;
30384fail:
30385 return NULL;
30386}
30387
30388
30389SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30390 PyObject *obj;
30391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30392 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30393 return SWIG_Py_Void();
30394}
30395
30396SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30397 return SWIG_Python_InitShadowInstance(args);
30398}
30399
30400SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30401 PyObject *resultobj = 0;
30402 wxOverlay *arg1 = 0 ;
30403 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30404 int arg3 ;
30405 int arg4 ;
30406 int arg5 ;
30407 int arg6 ;
30408 wxDCOverlay *result = 0 ;
30409 void *argp1 = 0 ;
30410 int res1 = 0 ;
30411 void *argp2 = 0 ;
30412 int res2 = 0 ;
30413 int val3 ;
30414 int ecode3 = 0 ;
30415 int val4 ;
30416 int ecode4 = 0 ;
30417 int val5 ;
30418 int ecode5 = 0 ;
30419 int val6 ;
30420 int ecode6 = 0 ;
30421
30422 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30424 if (!SWIG_IsOK(res1)) {
30425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30426 }
30427 if (!argp1) {
30428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30429 }
30430 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30431 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30432 if (!SWIG_IsOK(res2)) {
30433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30434 }
30435 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30436 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30437 if (!SWIG_IsOK(ecode3)) {
30438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30439 }
30440 arg3 = static_cast< int >(val3);
30441 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30442 if (!SWIG_IsOK(ecode4)) {
30443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30444 }
30445 arg4 = static_cast< int >(val4);
30446 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30447 if (!SWIG_IsOK(ecode5)) {
30448 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30449 }
30450 arg5 = static_cast< int >(val5);
30451 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30452 if (!SWIG_IsOK(ecode6)) {
30453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30454 }
30455 arg6 = static_cast< int >(val6);
30456 {
30457 PyThreadState* __tstate = wxPyBeginAllowThreads();
30458 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30459 wxPyEndAllowThreads(__tstate);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 }
30462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30463 return resultobj;
30464fail:
30465 return NULL;
30466}
30467
30468
30469SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30470 PyObject *resultobj = 0;
30471 wxOverlay *arg1 = 0 ;
30472 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30473 wxDCOverlay *result = 0 ;
30474 void *argp1 = 0 ;
30475 int res1 = 0 ;
30476 void *argp2 = 0 ;
30477 int res2 = 0 ;
30478
30479 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30481 if (!SWIG_IsOK(res1)) {
30482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30483 }
30484 if (!argp1) {
30485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30486 }
30487 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30488 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30489 if (!SWIG_IsOK(res2)) {
30490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30491 }
30492 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30493 {
30494 PyThreadState* __tstate = wxPyBeginAllowThreads();
30495 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30496 wxPyEndAllowThreads(__tstate);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30500 return resultobj;
30501fail:
30502 return NULL;
30503}
30504
30505
30506SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30507 int argc;
30508 PyObject *argv[7];
30509
30510 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30511 --argc;
30512 if (argc == 2) {
30513 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30514 }
30515 if (argc == 6) {
30516 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30517 }
30518
30519fail:
30520 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30521 return NULL;
30522}
30523
30524
30525SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30526 PyObject *resultobj = 0;
30527 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30528 void *argp1 = 0 ;
30529 int res1 = 0 ;
30530 PyObject *swig_obj[1] ;
30531
30532 if (!args) SWIG_fail;
30533 swig_obj[0] = args;
30534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30535 if (!SWIG_IsOK(res1)) {
30536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30537 }
30538 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 delete arg1;
30542
30543 wxPyEndAllowThreads(__tstate);
30544 if (PyErr_Occurred()) SWIG_fail;
30545 }
30546 resultobj = SWIG_Py_Void();
30547 return resultobj;
30548fail:
30549 return NULL;
30550}
30551
30552
30553SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30554 PyObject *resultobj = 0;
30555 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30556 void *argp1 = 0 ;
30557 int res1 = 0 ;
30558 PyObject *swig_obj[1] ;
30559
30560 if (!args) SWIG_fail;
30561 swig_obj[0] = args;
30562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30563 if (!SWIG_IsOK(res1)) {
30564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30565 }
30566 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30567 {
30568 PyThreadState* __tstate = wxPyBeginAllowThreads();
30569 (arg1)->Clear();
30570 wxPyEndAllowThreads(__tstate);
30571 if (PyErr_Occurred()) SWIG_fail;
30572 }
30573 resultobj = SWIG_Py_Void();
30574 return resultobj;
30575fail:
30576 return NULL;
30577}
30578
30579
30580SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30581 PyObject *obj;
30582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30583 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30584 return SWIG_Py_Void();
30585}
30586
30587SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30588 return SWIG_Python_InitShadowInstance(args);
30589}
30590
72ef6efb
RD
30591SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30592 PyObject *resultobj = 0;
30593 int arg1 ;
30594 int arg2 ;
30595 int arg3 = (int) true ;
30596 int arg4 = (int) 1 ;
30597 wxImageList *result = 0 ;
30598 int val1 ;
30599 int ecode1 = 0 ;
30600 int val2 ;
30601 int ecode2 = 0 ;
30602 int val3 ;
30603 int ecode3 = 0 ;
30604 int val4 ;
30605 int ecode4 = 0 ;
30606 PyObject * obj0 = 0 ;
30607 PyObject * obj1 = 0 ;
30608 PyObject * obj2 = 0 ;
30609 PyObject * obj3 = 0 ;
30610 char * kwnames[] = {
30611 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30612 };
30613
30614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30615 ecode1 = SWIG_AsVal_int(obj0, &val1);
30616 if (!SWIG_IsOK(ecode1)) {
30617 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30618 }
30619 arg1 = static_cast< int >(val1);
30620 ecode2 = SWIG_AsVal_int(obj1, &val2);
30621 if (!SWIG_IsOK(ecode2)) {
30622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30623 }
30624 arg2 = static_cast< int >(val2);
30625 if (obj2) {
30626 ecode3 = SWIG_AsVal_int(obj2, &val3);
30627 if (!SWIG_IsOK(ecode3)) {
30628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30629 }
30630 arg3 = static_cast< int >(val3);
30631 }
30632 if (obj3) {
30633 ecode4 = SWIG_AsVal_int(obj3, &val4);
30634 if (!SWIG_IsOK(ecode4)) {
30635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30636 }
30637 arg4 = static_cast< int >(val4);
30638 }
30639 {
30640 if (!wxPyCheckForApp()) SWIG_fail;
30641 PyThreadState* __tstate = wxPyBeginAllowThreads();
30642 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30643 wxPyEndAllowThreads(__tstate);
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
e02c0a13 30646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30647 return resultobj;
30648fail:
30649 return NULL;
30650}
30651
30652
30653SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30654 PyObject *resultobj = 0;
30655 wxImageList *arg1 = (wxImageList *) 0 ;
30656 void *argp1 = 0 ;
30657 int res1 = 0 ;
30658 PyObject *swig_obj[1] ;
30659
30660 if (!args) SWIG_fail;
30661 swig_obj[0] = args;
30662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30663 if (!SWIG_IsOK(res1)) {
30664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30665 }
30666 arg1 = reinterpret_cast< wxImageList * >(argp1);
30667 {
30668 PyThreadState* __tstate = wxPyBeginAllowThreads();
30669 delete arg1;
30670
30671 wxPyEndAllowThreads(__tstate);
30672 if (PyErr_Occurred()) SWIG_fail;
30673 }
30674 resultobj = SWIG_Py_Void();
30675 return resultobj;
30676fail:
30677 return NULL;
30678}
30679
30680
30681SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30682 PyObject *resultobj = 0;
30683 wxImageList *arg1 = (wxImageList *) 0 ;
30684 wxBitmap *arg2 = 0 ;
30685 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30686 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30687 int result;
30688 void *argp1 = 0 ;
30689 int res1 = 0 ;
30690 void *argp2 = 0 ;
30691 int res2 = 0 ;
30692 void *argp3 = 0 ;
30693 int res3 = 0 ;
30694 PyObject * obj0 = 0 ;
30695 PyObject * obj1 = 0 ;
30696 PyObject * obj2 = 0 ;
30697 char * kwnames[] = {
30698 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30699 };
30700
30701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30703 if (!SWIG_IsOK(res1)) {
30704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30705 }
30706 arg1 = reinterpret_cast< wxImageList * >(argp1);
30707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30708 if (!SWIG_IsOK(res2)) {
30709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30710 }
30711 if (!argp2) {
30712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30713 }
30714 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30715 if (obj2) {
30716 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30717 if (!SWIG_IsOK(res3)) {
30718 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30719 }
30720 if (!argp3) {
30721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30722 }
30723 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30724 }
30725 {
30726 PyThreadState* __tstate = wxPyBeginAllowThreads();
30727 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30728 wxPyEndAllowThreads(__tstate);
30729 if (PyErr_Occurred()) SWIG_fail;
30730 }
30731 resultobj = SWIG_From_int(static_cast< int >(result));
30732 return resultobj;
30733fail:
30734 return NULL;
30735}
30736
30737
30738SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30739 PyObject *resultobj = 0;
30740 wxImageList *arg1 = (wxImageList *) 0 ;
30741 wxBitmap *arg2 = 0 ;
30742 wxColour *arg3 = 0 ;
30743 int result;
30744 void *argp1 = 0 ;
30745 int res1 = 0 ;
30746 void *argp2 = 0 ;
30747 int res2 = 0 ;
30748 wxColour temp3 ;
30749 PyObject * obj0 = 0 ;
30750 PyObject * obj1 = 0 ;
30751 PyObject * obj2 = 0 ;
30752 char * kwnames[] = {
30753 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30754 };
30755
30756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30758 if (!SWIG_IsOK(res1)) {
30759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30760 }
30761 arg1 = reinterpret_cast< wxImageList * >(argp1);
30762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30763 if (!SWIG_IsOK(res2)) {
30764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30765 }
30766 if (!argp2) {
30767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30768 }
30769 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30770 {
30771 arg3 = &temp3;
30772 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30773 }
30774 {
30775 PyThreadState* __tstate = wxPyBeginAllowThreads();
30776 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30777 wxPyEndAllowThreads(__tstate);
30778 if (PyErr_Occurred()) SWIG_fail;
30779 }
30780 resultobj = SWIG_From_int(static_cast< int >(result));
30781 return resultobj;
30782fail:
30783 return NULL;
30784}
30785
30786
30787SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30788 PyObject *resultobj = 0;
30789 wxImageList *arg1 = (wxImageList *) 0 ;
30790 wxIcon *arg2 = 0 ;
30791 int result;
30792 void *argp1 = 0 ;
30793 int res1 = 0 ;
30794 void *argp2 = 0 ;
30795 int res2 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 char * kwnames[] = {
30799 (char *) "self",(char *) "icon", NULL
30800 };
30801
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30806 }
1bd55598
RD
30807 arg1 = reinterpret_cast< wxImageList * >(argp1);
30808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30809 if (!SWIG_IsOK(res2)) {
30810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30811 }
30812 if (!argp2) {
30813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30814 }
30815 arg2 = reinterpret_cast< wxIcon * >(argp2);
30816 {
30817 PyThreadState* __tstate = wxPyBeginAllowThreads();
30818 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30819 wxPyEndAllowThreads(__tstate);
30820 if (PyErr_Occurred()) SWIG_fail;
30821 }
30822 resultobj = SWIG_From_int(static_cast< int >(result));
30823 return resultobj;
30824fail:
30825 return NULL;
30826}
30827
30828
30829SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30830 PyObject *resultobj = 0;
30831 wxImageList *arg1 = (wxImageList *) 0 ;
30832 int arg2 ;
30833 SwigValueWrapper<wxBitmap > result;
30834 void *argp1 = 0 ;
30835 int res1 = 0 ;
30836 int val2 ;
30837 int ecode2 = 0 ;
30838 PyObject * obj0 = 0 ;
30839 PyObject * obj1 = 0 ;
30840 char * kwnames[] = {
30841 (char *) "self",(char *) "index", NULL
30842 };
30843
30844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
30845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30846 if (!SWIG_IsOK(res1)) {
30847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
30848 }
30849 arg1 = reinterpret_cast< wxImageList * >(argp1);
30850 ecode2 = SWIG_AsVal_int(obj1, &val2);
30851 if (!SWIG_IsOK(ecode2)) {
30852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
30853 }
30854 arg2 = static_cast< int >(val2);
30855 {
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
30857 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
30858 wxPyEndAllowThreads(__tstate);
30859 if (PyErr_Occurred()) SWIG_fail;
30860 }
30861 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
30862 return resultobj;
30863fail:
30864 return NULL;
30865}
30866
30867
30868SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30869 PyObject *resultobj = 0;
30870 wxImageList *arg1 = (wxImageList *) 0 ;
30871 int arg2 ;
30872 wxIcon result;
30873 void *argp1 = 0 ;
30874 int res1 = 0 ;
30875 int val2 ;
30876 int ecode2 = 0 ;
30877 PyObject * obj0 = 0 ;
30878 PyObject * obj1 = 0 ;
30879 char * kwnames[] = {
30880 (char *) "self",(char *) "index", NULL
30881 };
30882
30883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30885 if (!SWIG_IsOK(res1)) {
30886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
30887 }
30888 arg1 = reinterpret_cast< wxImageList * >(argp1);
30889 ecode2 = SWIG_AsVal_int(obj1, &val2);
30890 if (!SWIG_IsOK(ecode2)) {
30891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
30892 }
30893 arg2 = static_cast< int >(val2);
30894 {
30895 PyThreadState* __tstate = wxPyBeginAllowThreads();
30896 result = ((wxImageList const *)arg1)->GetIcon(arg2);
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
30900 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
30901 return resultobj;
30902fail:
30903 return NULL;
30904}
30905
30906
30907SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30908 PyObject *resultobj = 0;
30909 wxImageList *arg1 = (wxImageList *) 0 ;
30910 int arg2 ;
30911 wxBitmap *arg3 = 0 ;
2131d850
RD
30912 wxBitmap const &arg4_defvalue = wxNullBitmap ;
30913 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
30914 bool result;
30915 void *argp1 = 0 ;
30916 int res1 = 0 ;
30917 int val2 ;
30918 int ecode2 = 0 ;
30919 void *argp3 = 0 ;
30920 int res3 = 0 ;
2131d850
RD
30921 void *argp4 = 0 ;
30922 int res4 = 0 ;
1bd55598
RD
30923 PyObject * obj0 = 0 ;
30924 PyObject * obj1 = 0 ;
30925 PyObject * obj2 = 0 ;
2131d850 30926 PyObject * obj3 = 0 ;
1bd55598 30927 char * kwnames[] = {
2131d850 30928 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
30929 };
30930
2131d850 30931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
30932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30933 if (!SWIG_IsOK(res1)) {
30934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
30935 }
30936 arg1 = reinterpret_cast< wxImageList * >(argp1);
30937 ecode2 = SWIG_AsVal_int(obj1, &val2);
30938 if (!SWIG_IsOK(ecode2)) {
30939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
30940 }
30941 arg2 = static_cast< int >(val2);
30942 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30943 if (!SWIG_IsOK(res3)) {
30944 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30945 }
30946 if (!argp3) {
30947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30948 }
30949 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
30950 if (obj3) {
30951 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
30952 if (!SWIG_IsOK(res4)) {
30953 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
30954 }
30955 if (!argp4) {
30956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
30957 }
30958 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30959 }
1bd55598
RD
30960 {
30961 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 30962 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
30963 wxPyEndAllowThreads(__tstate);
30964 if (PyErr_Occurred()) SWIG_fail;
30965 }
30966 {
30967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30968 }
30969 return resultobj;
30970fail:
30971 return NULL;
30972}
30973
30974
30975SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30976 PyObject *resultobj = 0;
30977 wxImageList *arg1 = (wxImageList *) 0 ;
30978 int arg2 ;
30979 wxDC *arg3 = 0 ;
30980 int arg4 ;
30981 int arg5 ;
30982 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
30983 bool arg7 = (bool) (bool)false ;
30984 bool result;
30985 void *argp1 = 0 ;
30986 int res1 = 0 ;
30987 int val2 ;
30988 int ecode2 = 0 ;
30989 void *argp3 = 0 ;
30990 int res3 = 0 ;
30991 int val4 ;
30992 int ecode4 = 0 ;
30993 int val5 ;
30994 int ecode5 = 0 ;
30995 int val6 ;
30996 int ecode6 = 0 ;
30997 bool val7 ;
30998 int ecode7 = 0 ;
30999 PyObject * obj0 = 0 ;
31000 PyObject * obj1 = 0 ;
31001 PyObject * obj2 = 0 ;
31002 PyObject * obj3 = 0 ;
31003 PyObject * obj4 = 0 ;
31004 PyObject * obj5 = 0 ;
31005 PyObject * obj6 = 0 ;
31006 char * kwnames[] = {
31007 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31008 };
31009
31010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31012 if (!SWIG_IsOK(res1)) {
31013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31014 }
31015 arg1 = reinterpret_cast< wxImageList * >(argp1);
31016 ecode2 = SWIG_AsVal_int(obj1, &val2);
31017 if (!SWIG_IsOK(ecode2)) {
31018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31019 }
31020 arg2 = static_cast< int >(val2);
31021 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31022 if (!SWIG_IsOK(res3)) {
31023 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31024 }
31025 if (!argp3) {
31026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31027 }
31028 arg3 = reinterpret_cast< wxDC * >(argp3);
31029 ecode4 = SWIG_AsVal_int(obj3, &val4);
31030 if (!SWIG_IsOK(ecode4)) {
31031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31032 }
31033 arg4 = static_cast< int >(val4);
31034 ecode5 = SWIG_AsVal_int(obj4, &val5);
31035 if (!SWIG_IsOK(ecode5)) {
31036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31037 }
31038 arg5 = static_cast< int >(val5);
31039 if (obj5) {
31040 ecode6 = SWIG_AsVal_int(obj5, &val6);
31041 if (!SWIG_IsOK(ecode6)) {
31042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31043 }
31044 arg6 = static_cast< int >(val6);
31045 }
31046 if (obj6) {
31047 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31048 if (!SWIG_IsOK(ecode7)) {
31049 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31050 }
31051 arg7 = static_cast< bool >(val7);
31052 }
31053 {
31054 PyThreadState* __tstate = wxPyBeginAllowThreads();
31055 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31056 wxPyEndAllowThreads(__tstate);
31057 if (PyErr_Occurred()) SWIG_fail;
31058 }
31059 {
31060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31061 }
31062 return resultobj;
31063fail:
31064 return NULL;
31065}
31066
31067
31068SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31069 PyObject *resultobj = 0;
31070 wxImageList *arg1 = (wxImageList *) 0 ;
31071 int result;
31072 void *argp1 = 0 ;
31073 int res1 = 0 ;
31074 PyObject *swig_obj[1] ;
31075
31076 if (!args) SWIG_fail;
31077 swig_obj[0] = args;
31078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31079 if (!SWIG_IsOK(res1)) {
31080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31081 }
31082 arg1 = reinterpret_cast< wxImageList * >(argp1);
31083 {
31084 PyThreadState* __tstate = wxPyBeginAllowThreads();
31085 result = (int)(arg1)->GetImageCount();
31086 wxPyEndAllowThreads(__tstate);
31087 if (PyErr_Occurred()) SWIG_fail;
31088 }
31089 resultobj = SWIG_From_int(static_cast< int >(result));
31090 return resultobj;
31091fail:
31092 return NULL;
31093}
31094
31095
31096SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31097 PyObject *resultobj = 0;
31098 wxImageList *arg1 = (wxImageList *) 0 ;
31099 int arg2 ;
31100 bool result;
31101 void *argp1 = 0 ;
31102 int res1 = 0 ;
31103 int val2 ;
31104 int ecode2 = 0 ;
31105 PyObject * obj0 = 0 ;
31106 PyObject * obj1 = 0 ;
31107 char * kwnames[] = {
31108 (char *) "self",(char *) "index", NULL
31109 };
31110
31111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31113 if (!SWIG_IsOK(res1)) {
31114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31115 }
31116 arg1 = reinterpret_cast< wxImageList * >(argp1);
31117 ecode2 = SWIG_AsVal_int(obj1, &val2);
31118 if (!SWIG_IsOK(ecode2)) {
31119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31120 }
31121 arg2 = static_cast< int >(val2);
31122 {
31123 PyThreadState* __tstate = wxPyBeginAllowThreads();
31124 result = (bool)(arg1)->Remove(arg2);
31125 wxPyEndAllowThreads(__tstate);
31126 if (PyErr_Occurred()) SWIG_fail;
31127 }
31128 {
31129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31130 }
31131 return resultobj;
31132fail:
31133 return NULL;
31134}
31135
31136
31137SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31138 PyObject *resultobj = 0;
31139 wxImageList *arg1 = (wxImageList *) 0 ;
31140 bool result;
31141 void *argp1 = 0 ;
31142 int res1 = 0 ;
31143 PyObject *swig_obj[1] ;
31144
31145 if (!args) SWIG_fail;
31146 swig_obj[0] = args;
31147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31148 if (!SWIG_IsOK(res1)) {
31149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31150 }
31151 arg1 = reinterpret_cast< wxImageList * >(argp1);
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 result = (bool)(arg1)->RemoveAll();
31155 wxPyEndAllowThreads(__tstate);
31156 if (PyErr_Occurred()) SWIG_fail;
31157 }
31158 {
31159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31160 }
31161 return resultobj;
31162fail:
31163 return NULL;
31164}
31165
31166
31167SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31168 PyObject *resultobj = 0;
31169 wxImageList *arg1 = (wxImageList *) 0 ;
31170 int arg2 ;
31171 int *arg3 = 0 ;
31172 int *arg4 = 0 ;
31173 void *argp1 = 0 ;
31174 int res1 = 0 ;
31175 int val2 ;
31176 int ecode2 = 0 ;
31177 int temp3 ;
31178 int res3 = SWIG_TMPOBJ ;
31179 int temp4 ;
31180 int res4 = SWIG_TMPOBJ ;
31181 PyObject * obj0 = 0 ;
31182 PyObject * obj1 = 0 ;
31183 char * kwnames[] = {
31184 (char *) "self",(char *) "index", NULL
31185 };
31186
31187 arg3 = &temp3;
31188 arg4 = &temp4;
31189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31193 }
31194 arg1 = reinterpret_cast< wxImageList * >(argp1);
31195 ecode2 = SWIG_AsVal_int(obj1, &val2);
31196 if (!SWIG_IsOK(ecode2)) {
31197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31198 }
31199 arg2 = static_cast< int >(val2);
31200 {
31201 PyThreadState* __tstate = wxPyBeginAllowThreads();
31202 (arg1)->GetSize(arg2,*arg3,*arg4);
31203 wxPyEndAllowThreads(__tstate);
31204 if (PyErr_Occurred()) SWIG_fail;
31205 }
31206 resultobj = SWIG_Py_Void();
31207 if (SWIG_IsTmpObj(res3)) {
31208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31209 } else {
31210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31212 }
31213 if (SWIG_IsTmpObj(res4)) {
31214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31215 } else {
31216 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31218 }
31219 return resultobj;
31220fail:
31221 return NULL;
31222}
31223
31224
31225SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31226 PyObject *obj;
31227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31228 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31229 return SWIG_Py_Void();
31230}
31231
31232SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31233 return SWIG_Python_InitShadowInstance(args);
31234}
31235
da91cb0f
RD
31236SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31237 PyObject *resultobj = 0;
31238 wxStockGDI *result = 0 ;
1bd55598 31239
da91cb0f
RD
31240 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31241 {
31242 PyThreadState* __tstate = wxPyBeginAllowThreads();
31243 result = (wxStockGDI *)new wxStockGDI();
31244 wxPyEndAllowThreads(__tstate);
31245 if (PyErr_Occurred()) SWIG_fail;
31246 }
31247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31248 return resultobj;
31249fail:
31250 return NULL;
1bd55598
RD
31251}
31252
31253
da91cb0f
RD
31254SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31255 PyObject *resultobj = 0;
31256 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31257 void *argp1 = 0 ;
31258 int res1 = 0 ;
31259 PyObject *swig_obj[1] ;
1bd55598 31260
da91cb0f
RD
31261 if (!args) SWIG_fail;
31262 swig_obj[0] = args;
31263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31264 if (!SWIG_IsOK(res1)) {
31265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31266 }
31267 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31268 {
31269 PyThreadState* __tstate = wxPyBeginAllowThreads();
31270 delete arg1;
31271
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 resultobj = SWIG_Py_Void();
31276 return resultobj;
31277fail:
31278 return NULL;
1bd55598
RD
31279}
31280
31281
da91cb0f
RD
31282SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31283 PyObject *resultobj = 0;
1bd55598 31284
da91cb0f
RD
31285 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31286 {
31287 PyThreadState* __tstate = wxPyBeginAllowThreads();
31288 wxStockGDI::DeleteAll();
31289 wxPyEndAllowThreads(__tstate);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 }
31292 resultobj = SWIG_Py_Void();
31293 return resultobj;
31294fail:
31295 return NULL;
1bd55598
RD
31296}
31297
31298
da91cb0f
RD
31299SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31300 PyObject *resultobj = 0;
31301 wxStockGDI *result = 0 ;
1bd55598 31302
da91cb0f
RD
31303 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31304 {
31305 PyThreadState* __tstate = wxPyBeginAllowThreads();
31306 {
31307 wxStockGDI &_result_ref = wxStockGDI::instance();
31308 result = (wxStockGDI *) &_result_ref;
31309 }
31310 wxPyEndAllowThreads(__tstate);
31311 if (PyErr_Occurred()) SWIG_fail;
31312 }
31313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31314 return resultobj;
31315fail:
31316 return NULL;
1bd55598
RD
31317}
31318
31319
da91cb0f
RD
31320SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31321 PyObject *resultobj = 0;
31322 wxStockGDI::Item arg1 ;
31323 wxBrush *result = 0 ;
31324 int val1 ;
31325 int ecode1 = 0 ;
31326 PyObject * obj0 = 0 ;
31327 char * kwnames[] = {
31328 (char *) "item", NULL
31329 };
31330
31331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31332 ecode1 = SWIG_AsVal_int(obj0, &val1);
31333 if (!SWIG_IsOK(ecode1)) {
31334 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31335 }
31336 arg1 = static_cast< wxStockGDI::Item >(val1);
31337 {
31338 PyThreadState* __tstate = wxPyBeginAllowThreads();
31339 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31340 wxPyEndAllowThreads(__tstate);
31341 if (PyErr_Occurred()) SWIG_fail;
31342 }
31343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31344 return resultobj;
31345fail:
31346 return NULL;
1bd55598
RD
31347}
31348
31349
da91cb0f
RD
31350SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31351 PyObject *resultobj = 0;
31352 wxStockGDI::Item arg1 ;
31353 wxColour *result = 0 ;
31354 int val1 ;
31355 int ecode1 = 0 ;
31356 PyObject * obj0 = 0 ;
31357 char * kwnames[] = {
31358 (char *) "item", NULL
31359 };
1bd55598 31360
da91cb0f
RD
31361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31362 ecode1 = SWIG_AsVal_int(obj0, &val1);
31363 if (!SWIG_IsOK(ecode1)) {
31364 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31365 }
31366 arg1 = static_cast< wxStockGDI::Item >(val1);
31367 {
31368 PyThreadState* __tstate = wxPyBeginAllowThreads();
31369 result = (wxColour *)wxStockGDI::GetColour(arg1);
31370 wxPyEndAllowThreads(__tstate);
31371 if (PyErr_Occurred()) SWIG_fail;
31372 }
31373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31374 return resultobj;
31375fail:
31376 return NULL;
1bd55598
RD
31377}
31378
31379
da91cb0f
RD
31380SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31381 PyObject *resultobj = 0;
31382 wxStockGDI::Item arg1 ;
31383 wxCursor *result = 0 ;
31384 int val1 ;
31385 int ecode1 = 0 ;
31386 PyObject * obj0 = 0 ;
31387 char * kwnames[] = {
31388 (char *) "item", NULL
31389 };
31390
31391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31392 ecode1 = SWIG_AsVal_int(obj0, &val1);
31393 if (!SWIG_IsOK(ecode1)) {
31394 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31395 }
31396 arg1 = static_cast< wxStockGDI::Item >(val1);
31397 {
31398 PyThreadState* __tstate = wxPyBeginAllowThreads();
31399 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31400 wxPyEndAllowThreads(__tstate);
31401 if (PyErr_Occurred()) SWIG_fail;
31402 }
31403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31404 return resultobj;
31405fail:
31406 return NULL;
1bd55598
RD
31407}
31408
31409
da91cb0f
RD
31410SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31411 PyObject *resultobj = 0;
31412 wxStockGDI::Item arg1 ;
31413 wxPen *result = 0 ;
31414 int val1 ;
31415 int ecode1 = 0 ;
31416 PyObject * obj0 = 0 ;
31417 char * kwnames[] = {
31418 (char *) "item", NULL
31419 };
31420
31421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31422 ecode1 = SWIG_AsVal_int(obj0, &val1);
31423 if (!SWIG_IsOK(ecode1)) {
31424 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31425 }
31426 arg1 = static_cast< wxStockGDI::Item >(val1);
31427 {
31428 PyThreadState* __tstate = wxPyBeginAllowThreads();
31429 result = (wxPen *)wxStockGDI::GetPen(arg1);
31430 wxPyEndAllowThreads(__tstate);
31431 if (PyErr_Occurred()) SWIG_fail;
31432 }
31433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31434 return resultobj;
31435fail:
31436 return NULL;
1bd55598
RD
31437}
31438
31439
da91cb0f
RD
31440SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31441 PyObject *resultobj = 0;
31442 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31443 wxStockGDI::Item arg2 ;
31444 wxFont *result = 0 ;
31445 void *argp1 = 0 ;
31446 int res1 = 0 ;
31447 int val2 ;
31448 int ecode2 = 0 ;
31449 PyObject * obj0 = 0 ;
31450 PyObject * obj1 = 0 ;
31451 char * kwnames[] = {
31452 (char *) "self",(char *) "item", NULL
31453 };
1bd55598 31454
da91cb0f
RD
31455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31457 if (!SWIG_IsOK(res1)) {
31458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31459 }
31460 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31461 ecode2 = SWIG_AsVal_int(obj1, &val2);
31462 if (!SWIG_IsOK(ecode2)) {
31463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31464 }
31465 arg2 = static_cast< wxStockGDI::Item >(val2);
31466 {
31467 PyThreadState* __tstate = wxPyBeginAllowThreads();
31468 result = (wxFont *)(arg1)->GetFont(arg2);
31469 wxPyEndAllowThreads(__tstate);
31470 if (PyErr_Occurred()) SWIG_fail;
31471 }
31472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31473 return resultobj;
31474fail:
31475 return NULL;
1bd55598
RD
31476}
31477
31478
da91cb0f
RD
31479SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31480 PyObject *obj;
31481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31482 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31483 return SWIG_Py_Void();
1bd55598
RD
31484}
31485
da91cb0f
RD
31486SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31487 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31488}
31489
1bd55598
RD
31490SWIGINTERN int NullBitmap_set(PyObject *) {
31491 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31492 return 1;
31493}
31494
31495
31496SWIGINTERN PyObject *NullBitmap_get(void) {
31497 PyObject *pyobj = 0;
31498
31499 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31500 return pyobj;
31501}
31502
31503
31504SWIGINTERN int NullIcon_set(PyObject *) {
31505 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31506 return 1;
31507}
31508
31509
31510SWIGINTERN PyObject *NullIcon_get(void) {
31511 PyObject *pyobj = 0;
31512
31513 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31514 return pyobj;
31515}
31516
31517
31518SWIGINTERN int NullCursor_set(PyObject *) {
31519 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31520 return 1;
31521}
31522
31523
31524SWIGINTERN PyObject *NullCursor_get(void) {
31525 PyObject *pyobj = 0;
31526
31527 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31528 return pyobj;
31529}
31530
31531
31532SWIGINTERN int NullPen_set(PyObject *) {
31533 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31534 return 1;
31535}
31536
31537
31538SWIGINTERN PyObject *NullPen_get(void) {
31539 PyObject *pyobj = 0;
31540
31541 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31542 return pyobj;
31543}
31544
31545
31546SWIGINTERN int NullBrush_set(PyObject *) {
31547 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31548 return 1;
31549}
31550
31551
31552SWIGINTERN PyObject *NullBrush_get(void) {
31553 PyObject *pyobj = 0;
31554
31555 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31556 return pyobj;
31557}
31558
31559
31560SWIGINTERN int NullPalette_set(PyObject *) {
31561 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31562 return 1;
31563}
31564
31565
31566SWIGINTERN PyObject *NullPalette_get(void) {
31567 PyObject *pyobj = 0;
31568
31569 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31570 return pyobj;
31571}
31572
31573
31574SWIGINTERN int NullFont_set(PyObject *) {
31575 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31576 return 1;
31577}
31578
31579
31580SWIGINTERN PyObject *NullFont_get(void) {
31581 PyObject *pyobj = 0;
31582
31583 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31584 return pyobj;
31585}
31586
31587
31588SWIGINTERN int NullColour_set(PyObject *) {
31589 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31590 return 1;
31591}
31592
31593
31594SWIGINTERN PyObject *NullColour_get(void) {
31595 PyObject *pyobj = 0;
31596
31597 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31598 return pyobj;
31599}
31600
31601
da91cb0f 31602SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 31603 PyObject *resultobj = 0;
da91cb0f
RD
31604 wxGDIObjListBase *result = 0 ;
31605
31606 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31607 {
31608 PyThreadState* __tstate = wxPyBeginAllowThreads();
31609 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31610 wxPyEndAllowThreads(__tstate);
31611 if (PyErr_Occurred()) SWIG_fail;
31612 }
31613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31614 return resultobj;
31615fail:
31616 return NULL;
31617}
31618
31619
31620SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31621 PyObject *resultobj = 0;
31622 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
31623 void *argp1 = 0 ;
31624 int res1 = 0 ;
da91cb0f 31625 PyObject *swig_obj[1] ;
1bd55598 31626
da91cb0f
RD
31627 if (!args) SWIG_fail;
31628 swig_obj[0] = args;
31629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 31630 if (!SWIG_IsOK(res1)) {
da91cb0f 31631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 31632 }
da91cb0f 31633 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
31634 {
31635 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
31636 delete arg1;
31637
1bd55598
RD
31638 wxPyEndAllowThreads(__tstate);
31639 if (PyErr_Occurred()) SWIG_fail;
31640 }
31641 resultobj = SWIG_Py_Void();
31642 return resultobj;
31643fail:
31644 return NULL;
31645}
31646
31647
da91cb0f
RD
31648SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31649 PyObject *obj;
31650 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31651 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31652 return SWIG_Py_Void();
31653}
31654
31655SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31656 return SWIG_Python_InitShadowInstance(args);
31657}
31658
1bd55598
RD
31659SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31660 PyObject *resultobj = 0;
31661 wxPenList *arg1 = (wxPenList *) 0 ;
31662 wxColour *arg2 = 0 ;
31663 int arg3 ;
31664 int arg4 ;
31665 wxPen *result = 0 ;
31666 void *argp1 = 0 ;
31667 int res1 = 0 ;
31668 wxColour temp2 ;
31669 int val3 ;
31670 int ecode3 = 0 ;
31671 int val4 ;
31672 int ecode4 = 0 ;
31673 PyObject * obj0 = 0 ;
31674 PyObject * obj1 = 0 ;
31675 PyObject * obj2 = 0 ;
31676 PyObject * obj3 = 0 ;
31677 char * kwnames[] = {
31678 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31679 };
31680
31681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31685 }
31686 arg1 = reinterpret_cast< wxPenList * >(argp1);
31687 {
31688 arg2 = &temp2;
31689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31690 }
31691 ecode3 = SWIG_AsVal_int(obj2, &val3);
31692 if (!SWIG_IsOK(ecode3)) {
31693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31694 }
31695 arg3 = static_cast< int >(val3);
31696 ecode4 = SWIG_AsVal_int(obj3, &val4);
31697 if (!SWIG_IsOK(ecode4)) {
31698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31699 }
31700 arg4 = static_cast< int >(val4);
31701 {
31702 PyThreadState* __tstate = wxPyBeginAllowThreads();
31703 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31704 wxPyEndAllowThreads(__tstate);
31705 if (PyErr_Occurred()) SWIG_fail;
31706 }
31707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31708 return resultobj;
31709fail:
31710 return NULL;
31711}
31712
31713
da91cb0f 31714SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31715 PyObject *resultobj = 0;
31716 wxPenList *arg1 = (wxPenList *) 0 ;
31717 wxPen *arg2 = (wxPen *) 0 ;
31718 void *argp1 = 0 ;
31719 int res1 = 0 ;
31720 void *argp2 = 0 ;
31721 int res2 = 0 ;
31722 PyObject * obj0 = 0 ;
31723 PyObject * obj1 = 0 ;
31724 char * kwnames[] = {
31725 (char *) "self",(char *) "pen", NULL
31726 };
31727
da91cb0f 31728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
31729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31730 if (!SWIG_IsOK(res1)) {
da91cb0f 31731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
31732 }
31733 arg1 = reinterpret_cast< wxPenList * >(argp1);
31734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31735 if (!SWIG_IsOK(res2)) {
da91cb0f 31736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
31737 }
31738 arg2 = reinterpret_cast< wxPen * >(argp2);
31739 {
31740 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31741 (arg1)->AddPen(arg2);
1bd55598
RD
31742 wxPyEndAllowThreads(__tstate);
31743 if (PyErr_Occurred()) SWIG_fail;
31744 }
31745 resultobj = SWIG_Py_Void();
31746 return resultobj;
31747fail:
31748 return NULL;
31749}
31750
31751
da91cb0f 31752SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31753 PyObject *resultobj = 0;
31754 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 31755 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
31756 void *argp1 = 0 ;
31757 int res1 = 0 ;
da91cb0f
RD
31758 void *argp2 = 0 ;
31759 int res2 = 0 ;
31760 PyObject * obj0 = 0 ;
31761 PyObject * obj1 = 0 ;
31762 char * kwnames[] = {
31763 (char *) "self",(char *) "pen", NULL
31764 };
1bd55598 31765
da91cb0f
RD
31766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 31768 if (!SWIG_IsOK(res1)) {
da91cb0f 31769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
31770 }
31771 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
31772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31773 if (!SWIG_IsOK(res2)) {
31774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31775 }
31776 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
31777 {
31778 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31779 (arg1)->RemovePen(arg2);
1bd55598
RD
31780 wxPyEndAllowThreads(__tstate);
31781 if (PyErr_Occurred()) SWIG_fail;
31782 }
da91cb0f 31783 resultobj = SWIG_Py_Void();
1bd55598
RD
31784 return resultobj;
31785fail:
31786 return NULL;
31787}
31788
31789
31790SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31791 PyObject *obj;
31792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31793 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31794 return SWIG_Py_Void();
31795}
31796
da91cb0f
RD
31797SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31798 PyObject *resultobj = 0;
31799 wxBrushList *arg1 = (wxBrushList *) 0 ;
31800 wxColour *arg2 = 0 ;
31801 int arg3 = (int) wxSOLID ;
31802 wxBrush *result = 0 ;
31803 void *argp1 = 0 ;
31804 int res1 = 0 ;
31805 wxColour temp2 ;
31806 int val3 ;
31807 int ecode3 = 0 ;
31808 PyObject * obj0 = 0 ;
31809 PyObject * obj1 = 0 ;
31810 PyObject * obj2 = 0 ;
31811 char * kwnames[] = {
31812 (char *) "self",(char *) "colour",(char *) "style", NULL
31813 };
31814
31815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31817 if (!SWIG_IsOK(res1)) {
31818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31819 }
31820 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31821 {
31822 arg2 = &temp2;
31823 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31824 }
31825 if (obj2) {
31826 ecode3 = SWIG_AsVal_int(obj2, &val3);
31827 if (!SWIG_IsOK(ecode3)) {
31828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31829 }
31830 arg3 = static_cast< int >(val3);
31831 }
31832 {
31833 PyThreadState* __tstate = wxPyBeginAllowThreads();
31834 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31835 wxPyEndAllowThreads(__tstate);
31836 if (PyErr_Occurred()) SWIG_fail;
31837 }
31838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31839 return resultobj;
31840fail:
31841 return NULL;
31842}
31843
31844
1bd55598
RD
31845SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31846 PyObject *resultobj = 0;
31847 wxBrushList *arg1 = (wxBrushList *) 0 ;
31848 wxBrush *arg2 = (wxBrush *) 0 ;
31849 void *argp1 = 0 ;
31850 int res1 = 0 ;
31851 void *argp2 = 0 ;
31852 int res2 = 0 ;
31853 PyObject * obj0 = 0 ;
31854 PyObject * obj1 = 0 ;
31855 char * kwnames[] = {
31856 (char *) "self",(char *) "brush", NULL
31857 };
31858
31859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31861 if (!SWIG_IsOK(res1)) {
31862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31863 }
31864 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31866 if (!SWIG_IsOK(res2)) {
31867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31868 }
31869 arg2 = reinterpret_cast< wxBrush * >(argp2);
31870 {
31871 PyThreadState* __tstate = wxPyBeginAllowThreads();
31872 (arg1)->AddBrush(arg2);
31873 wxPyEndAllowThreads(__tstate);
31874 if (PyErr_Occurred()) SWIG_fail;
31875 }
31876 resultobj = SWIG_Py_Void();
31877 return resultobj;
31878fail:
31879 return NULL;
31880}
31881
31882
da91cb0f 31883SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31884 PyObject *resultobj = 0;
31885 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 31886 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
31887 void *argp1 = 0 ;
31888 int res1 = 0 ;
da91cb0f
RD
31889 void *argp2 = 0 ;
31890 int res2 = 0 ;
31891 PyObject * obj0 = 0 ;
31892 PyObject * obj1 = 0 ;
31893 char * kwnames[] = {
31894 (char *) "self",(char *) "brush", NULL
31895 };
31896
31897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31899 if (!SWIG_IsOK(res1)) {
31900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31901 }
31902 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31904 if (!SWIG_IsOK(res2)) {
31905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31906 }
31907 arg2 = reinterpret_cast< wxBrush * >(argp2);
31908 {
31909 PyThreadState* __tstate = wxPyBeginAllowThreads();
31910 (arg1)->RemoveBrush(arg2);
31911 wxPyEndAllowThreads(__tstate);
31912 if (PyErr_Occurred()) SWIG_fail;
31913 }
31914 resultobj = SWIG_Py_Void();
31915 return resultobj;
31916fail:
31917 return NULL;
31918}
31919
31920
31921SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31922 PyObject *obj;
31923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31924 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
31925 return SWIG_Py_Void();
31926}
31927
31928SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31929 PyObject *resultobj = 0;
31930 wxFontList *arg1 = (wxFontList *) 0 ;
31931 int arg2 ;
31932 int arg3 ;
31933 int arg4 ;
31934 int arg5 ;
31935 bool arg6 = (bool) false ;
31936 wxString const &arg7_defvalue = wxPyEmptyString ;
31937 wxString *arg7 = (wxString *) &arg7_defvalue ;
31938 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
31939 wxFont *result = 0 ;
31940 void *argp1 = 0 ;
31941 int res1 = 0 ;
31942 int val2 ;
31943 int ecode2 = 0 ;
1bd55598
RD
31944 int val3 ;
31945 int ecode3 = 0 ;
da91cb0f
RD
31946 int val4 ;
31947 int ecode4 = 0 ;
31948 int val5 ;
31949 int ecode5 = 0 ;
31950 bool val6 ;
31951 int ecode6 = 0 ;
31952 bool temp7 = false ;
31953 int val8 ;
31954 int ecode8 = 0 ;
1bd55598
RD
31955 PyObject * obj0 = 0 ;
31956 PyObject * obj1 = 0 ;
31957 PyObject * obj2 = 0 ;
da91cb0f
RD
31958 PyObject * obj3 = 0 ;
31959 PyObject * obj4 = 0 ;
31960 PyObject * obj5 = 0 ;
31961 PyObject * obj6 = 0 ;
31962 PyObject * obj7 = 0 ;
1bd55598 31963 char * kwnames[] = {
da91cb0f 31964 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
31965 };
31966
da91cb0f
RD
31967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 31969 if (!SWIG_IsOK(res1)) {
da91cb0f 31970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 31971 }
da91cb0f
RD
31972 arg1 = reinterpret_cast< wxFontList * >(argp1);
31973 ecode2 = SWIG_AsVal_int(obj1, &val2);
31974 if (!SWIG_IsOK(ecode2)) {
31975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
31976 }
31977 arg2 = static_cast< int >(val2);
31978 ecode3 = SWIG_AsVal_int(obj2, &val3);
31979 if (!SWIG_IsOK(ecode3)) {
31980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
31981 }
31982 arg3 = static_cast< int >(val3);
31983 ecode4 = SWIG_AsVal_int(obj3, &val4);
31984 if (!SWIG_IsOK(ecode4)) {
31985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
31986 }
31987 arg4 = static_cast< int >(val4);
31988 ecode5 = SWIG_AsVal_int(obj4, &val5);
31989 if (!SWIG_IsOK(ecode5)) {
31990 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
31991 }
31992 arg5 = static_cast< int >(val5);
31993 if (obj5) {
31994 ecode6 = SWIG_AsVal_bool(obj5, &val6);
31995 if (!SWIG_IsOK(ecode6)) {
31996 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
31997 }
31998 arg6 = static_cast< bool >(val6);
1bd55598 31999 }
da91cb0f
RD
32000 if (obj6) {
32001 {
32002 arg7 = wxString_in_helper(obj6);
32003 if (arg7 == NULL) SWIG_fail;
32004 temp7 = true;
32005 }
32006 }
32007 if (obj7) {
32008 ecode8 = SWIG_AsVal_int(obj7, &val8);
32009 if (!SWIG_IsOK(ecode8)) {
32010 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32011 }
da91cb0f 32012 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32013 }
32014 {
32015 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32016 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32017 wxPyEndAllowThreads(__tstate);
32018 if (PyErr_Occurred()) SWIG_fail;
32019 }
da91cb0f
RD
32020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32021 {
32022 if (temp7)
32023 delete arg7;
32024 }
1bd55598
RD
32025 return resultobj;
32026fail:
da91cb0f
RD
32027 {
32028 if (temp7)
32029 delete arg7;
32030 }
1bd55598
RD
32031 return NULL;
32032}
32033
32034
da91cb0f 32035SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32036 PyObject *resultobj = 0;
da91cb0f
RD
32037 wxFontList *arg1 = (wxFontList *) 0 ;
32038 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32039 void *argp1 = 0 ;
32040 int res1 = 0 ;
32041 void *argp2 = 0 ;
32042 int res2 = 0 ;
32043 PyObject * obj0 = 0 ;
32044 PyObject * obj1 = 0 ;
32045 char * kwnames[] = {
da91cb0f 32046 (char *) "self",(char *) "font", NULL
1bd55598
RD
32047 };
32048
da91cb0f
RD
32049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32051 if (!SWIG_IsOK(res1)) {
da91cb0f 32052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32053 }
da91cb0f
RD
32054 arg1 = reinterpret_cast< wxFontList * >(argp1);
32055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32056 if (!SWIG_IsOK(res2)) {
da91cb0f 32057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32058 }
da91cb0f 32059 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32060 {
32061 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32062 (arg1)->AddFont(arg2);
1bd55598
RD
32063 wxPyEndAllowThreads(__tstate);
32064 if (PyErr_Occurred()) SWIG_fail;
32065 }
32066 resultobj = SWIG_Py_Void();
32067 return resultobj;
32068fail:
32069 return NULL;
32070}
32071
32072
da91cb0f 32073SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32074 PyObject *resultobj = 0;
da91cb0f
RD
32075 wxFontList *arg1 = (wxFontList *) 0 ;
32076 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32077 void *argp1 = 0 ;
32078 int res1 = 0 ;
da91cb0f
RD
32079 void *argp2 = 0 ;
32080 int res2 = 0 ;
32081 PyObject * obj0 = 0 ;
32082 PyObject * obj1 = 0 ;
32083 char * kwnames[] = {
32084 (char *) "self",(char *) "font", NULL
32085 };
1bd55598 32086
da91cb0f
RD
32087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32089 if (!SWIG_IsOK(res1)) {
da91cb0f 32090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32091 }
da91cb0f
RD
32092 arg1 = reinterpret_cast< wxFontList * >(argp1);
32093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32094 if (!SWIG_IsOK(res2)) {
32095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32096 }
32097 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32098 {
32099 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32100 (arg1)->RemoveFont(arg2);
1bd55598
RD
32101 wxPyEndAllowThreads(__tstate);
32102 if (PyErr_Occurred()) SWIG_fail;
32103 }
da91cb0f 32104 resultobj = SWIG_Py_Void();
1bd55598
RD
32105 return resultobj;
32106fail:
32107 return NULL;
32108}
32109
32110
da91cb0f 32111SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32112 PyObject *obj;
32113 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32114 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32115 return SWIG_Py_Void();
32116}
32117
32118SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32119 PyObject *resultobj = 0;
32120 wxColourDatabase *result = 0 ;
32121
32122 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32123 {
32124 if (!wxPyCheckForApp()) SWIG_fail;
32125 PyThreadState* __tstate = wxPyBeginAllowThreads();
32126 result = (wxColourDatabase *)new wxColourDatabase();
32127 wxPyEndAllowThreads(__tstate);
32128 if (PyErr_Occurred()) SWIG_fail;
32129 }
32130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32131 return resultobj;
32132fail:
32133 return NULL;
32134}
32135
32136
32137SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32138 PyObject *resultobj = 0;
32139 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32140 void *argp1 = 0 ;
32141 int res1 = 0 ;
32142 PyObject *swig_obj[1] ;
32143
32144 if (!args) SWIG_fail;
32145 swig_obj[0] = args;
32146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32147 if (!SWIG_IsOK(res1)) {
32148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32149 }
32150 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32151 {
32152 PyThreadState* __tstate = wxPyBeginAllowThreads();
32153 delete arg1;
32154
32155 wxPyEndAllowThreads(__tstate);
32156 if (PyErr_Occurred()) SWIG_fail;
32157 }
32158 resultobj = SWIG_Py_Void();
32159 return resultobj;
32160fail:
32161 return NULL;
32162}
32163
32164
32165SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32166 PyObject *resultobj = 0;
32167 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32168 wxString *arg2 = 0 ;
32169 wxColour result;
32170 void *argp1 = 0 ;
32171 int res1 = 0 ;
32172 bool temp2 = false ;
32173 PyObject * obj0 = 0 ;
32174 PyObject * obj1 = 0 ;
32175 char * kwnames[] = {
32176 (char *) "self",(char *) "name", NULL
32177 };
32178
32179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32181 if (!SWIG_IsOK(res1)) {
32182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32183 }
32184 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32185 {
32186 arg2 = wxString_in_helper(obj1);
32187 if (arg2 == NULL) SWIG_fail;
32188 temp2 = true;
32189 }
32190 {
32191 PyThreadState* __tstate = wxPyBeginAllowThreads();
32192 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32193 wxPyEndAllowThreads(__tstate);
32194 if (PyErr_Occurred()) SWIG_fail;
32195 }
32196 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32197 {
32198 if (temp2)
32199 delete arg2;
32200 }
32201 return resultobj;
32202fail:
32203 {
32204 if (temp2)
32205 delete arg2;
32206 }
32207 return NULL;
32208}
32209
32210
32211SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32212 PyObject *resultobj = 0;
32213 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32214 wxColour *arg2 = 0 ;
32215 wxString result;
32216 void *argp1 = 0 ;
32217 int res1 = 0 ;
32218 wxColour temp2 ;
32219 PyObject * obj0 = 0 ;
32220 PyObject * obj1 = 0 ;
32221 char * kwnames[] = {
32222 (char *) "self",(char *) "colour", NULL
32223 };
32224
32225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32227 if (!SWIG_IsOK(res1)) {
32228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32229 }
32230 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32231 {
32232 arg2 = &temp2;
32233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32234 }
32235 {
32236 PyThreadState* __tstate = wxPyBeginAllowThreads();
32237 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32238 wxPyEndAllowThreads(__tstate);
32239 if (PyErr_Occurred()) SWIG_fail;
32240 }
32241 {
32242#if wxUSE_UNICODE
32243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32244#else
32245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32246#endif
32247 }
32248 return resultobj;
32249fail:
32250 return NULL;
32251}
32252
32253
32254SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32255 PyObject *resultobj = 0;
32256 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32257 wxString *arg2 = 0 ;
32258 wxColour *arg3 = 0 ;
32259 void *argp1 = 0 ;
32260 int res1 = 0 ;
32261 bool temp2 = false ;
32262 wxColour temp3 ;
32263 PyObject * obj0 = 0 ;
32264 PyObject * obj1 = 0 ;
32265 PyObject * obj2 = 0 ;
32266 char * kwnames[] = {
32267 (char *) "self",(char *) "name",(char *) "colour", NULL
32268 };
32269
32270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32272 if (!SWIG_IsOK(res1)) {
32273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32274 }
32275 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32276 {
32277 arg2 = wxString_in_helper(obj1);
32278 if (arg2 == NULL) SWIG_fail;
32279 temp2 = true;
32280 }
32281 {
32282 arg3 = &temp3;
32283 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32284 }
32285 {
32286 PyThreadState* __tstate = wxPyBeginAllowThreads();
32287 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32288 wxPyEndAllowThreads(__tstate);
32289 if (PyErr_Occurred()) SWIG_fail;
32290 }
32291 resultobj = SWIG_Py_Void();
32292 {
32293 if (temp2)
32294 delete arg2;
32295 }
32296 return resultobj;
32297fail:
32298 {
32299 if (temp2)
32300 delete arg2;
32301 }
32302 return NULL;
32303}
32304
32305
32306SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32307 PyObject *resultobj = 0;
32308 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32309 wxString *arg2 = 0 ;
32310 int arg3 ;
32311 int arg4 ;
32312 int arg5 ;
32313 void *argp1 = 0 ;
32314 int res1 = 0 ;
32315 bool temp2 = false ;
32316 int val3 ;
32317 int ecode3 = 0 ;
32318 int val4 ;
32319 int ecode4 = 0 ;
da91cb0f
RD
32320 int val5 ;
32321 int ecode5 = 0 ;
1bd55598
RD
32322 PyObject * obj0 = 0 ;
32323 PyObject * obj1 = 0 ;
32324 PyObject * obj2 = 0 ;
32325 PyObject * obj3 = 0 ;
32326 PyObject * obj4 = 0 ;
1bd55598 32327 char * kwnames[] = {
da91cb0f 32328 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32329 };
32330
da91cb0f
RD
32331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32333 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32335 }
32336 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32337 {
32338 arg2 = wxString_in_helper(obj1);
32339 if (arg2 == NULL) SWIG_fail;
32340 temp2 = true;
1bd55598 32341 }
1bd55598
RD
32342 ecode3 = SWIG_AsVal_int(obj2, &val3);
32343 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32345 }
32346 arg3 = static_cast< int >(val3);
32347 ecode4 = SWIG_AsVal_int(obj3, &val4);
32348 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32350 }
32351 arg4 = static_cast< int >(val4);
32352 ecode5 = SWIG_AsVal_int(obj4, &val5);
32353 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32355 }
32356 arg5 = static_cast< int >(val5);
1bd55598
RD
32357 {
32358 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32359 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32360 wxPyEndAllowThreads(__tstate);
32361 if (PyErr_Occurred()) SWIG_fail;
32362 }
da91cb0f 32363 resultobj = SWIG_Py_Void();
1bd55598 32364 {
da91cb0f
RD
32365 if (temp2)
32366 delete arg2;
1bd55598
RD
32367 }
32368 return resultobj;
32369fail:
32370 {
da91cb0f
RD
32371 if (temp2)
32372 delete arg2;
1bd55598
RD
32373 }
32374 return NULL;
32375}
32376
32377
da91cb0f
RD
32378SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32379 PyObject *obj;
32380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32381 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32382 return SWIG_Py_Void();
32383}
32384
32385SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32386 return SWIG_Python_InitShadowInstance(args);
32387}
32388
32389SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32390 PyObject *resultobj = 0;
da91cb0f 32391 wxFontList *result = 0 ;
1bd55598 32392
da91cb0f 32393 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32394 {
32395 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32396 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32397 wxPyEndAllowThreads(__tstate);
32398 if (PyErr_Occurred()) SWIG_fail;
32399 }
da91cb0f 32400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32401 return resultobj;
32402fail:
32403 return NULL;
32404}
32405
32406
da91cb0f 32407SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32408 PyObject *resultobj = 0;
da91cb0f 32409 wxPenList *result = 0 ;
1bd55598 32410
da91cb0f 32411 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32412 {
32413 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32414 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32415 wxPyEndAllowThreads(__tstate);
32416 if (PyErr_Occurred()) SWIG_fail;
32417 }
da91cb0f 32418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32419 return resultobj;
32420fail:
32421 return NULL;
32422}
32423
32424
da91cb0f
RD
32425SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32426 PyObject *resultobj = 0;
32427 wxBrushList *result = 0 ;
1bd55598 32428
da91cb0f
RD
32429 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32430 {
32431 PyThreadState* __tstate = wxPyBeginAllowThreads();
32432 result = (wxBrushList *)_wxPyInitTheBrushList();
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32437 return resultobj;
32438fail:
32439 return NULL;
1bd55598
RD
32440}
32441
32442
da91cb0f
RD
32443SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32444 PyObject *resultobj = 0;
32445 wxColourDatabase *result = 0 ;
1bd55598 32446
da91cb0f
RD
32447 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32448 {
32449 PyThreadState* __tstate = wxPyBeginAllowThreads();
32450 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32451 wxPyEndAllowThreads(__tstate);
32452 if (PyErr_Occurred()) SWIG_fail;
32453 }
32454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32455 return resultobj;
32456fail:
32457 return NULL;
1bd55598
RD
32458}
32459
32460
32461SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32462 PyObject *resultobj = 0;
32463 wxEffects *result = 0 ;
32464
32465 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32466 {
32467 PyThreadState* __tstate = wxPyBeginAllowThreads();
32468 result = (wxEffects *)new wxEffects();
32469 wxPyEndAllowThreads(__tstate);
32470 if (PyErr_Occurred()) SWIG_fail;
32471 }
32472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32473 return resultobj;
32474fail:
32475 return NULL;
32476}
32477
32478
32479SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32480 PyObject *resultobj = 0;
32481 wxEffects *arg1 = (wxEffects *) 0 ;
32482 wxColour result;
32483 void *argp1 = 0 ;
32484 int res1 = 0 ;
32485 PyObject *swig_obj[1] ;
32486
32487 if (!args) SWIG_fail;
32488 swig_obj[0] = args;
32489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32490 if (!SWIG_IsOK(res1)) {
32491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32492 }
32493 arg1 = reinterpret_cast< wxEffects * >(argp1);
32494 {
32495 PyThreadState* __tstate = wxPyBeginAllowThreads();
32496 result = ((wxEffects const *)arg1)->GetHighlightColour();
32497 wxPyEndAllowThreads(__tstate);
32498 if (PyErr_Occurred()) SWIG_fail;
32499 }
32500 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32501 return resultobj;
32502fail:
32503 return NULL;
32504}
32505
32506
32507SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32508 PyObject *resultobj = 0;
32509 wxEffects *arg1 = (wxEffects *) 0 ;
32510 wxColour result;
32511 void *argp1 = 0 ;
32512 int res1 = 0 ;
32513 PyObject *swig_obj[1] ;
32514
32515 if (!args) SWIG_fail;
32516 swig_obj[0] = args;
32517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32518 if (!SWIG_IsOK(res1)) {
32519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32520 }
32521 arg1 = reinterpret_cast< wxEffects * >(argp1);
32522 {
32523 PyThreadState* __tstate = wxPyBeginAllowThreads();
32524 result = ((wxEffects const *)arg1)->GetLightShadow();
32525 wxPyEndAllowThreads(__tstate);
32526 if (PyErr_Occurred()) SWIG_fail;
32527 }
32528 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32529 return resultobj;
32530fail:
32531 return NULL;
32532}
32533
32534
32535SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32536 PyObject *resultobj = 0;
32537 wxEffects *arg1 = (wxEffects *) 0 ;
32538 wxColour result;
32539 void *argp1 = 0 ;
32540 int res1 = 0 ;
32541 PyObject *swig_obj[1] ;
32542
32543 if (!args) SWIG_fail;
32544 swig_obj[0] = args;
32545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32548 }
32549 arg1 = reinterpret_cast< wxEffects * >(argp1);
32550 {
32551 PyThreadState* __tstate = wxPyBeginAllowThreads();
32552 result = ((wxEffects const *)arg1)->GetFaceColour();
32553 wxPyEndAllowThreads(__tstate);
32554 if (PyErr_Occurred()) SWIG_fail;
32555 }
32556 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32557 return resultobj;
32558fail:
32559 return NULL;
32560}
32561
32562
32563SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32564 PyObject *resultobj = 0;
32565 wxEffects *arg1 = (wxEffects *) 0 ;
32566 wxColour result;
32567 void *argp1 = 0 ;
32568 int res1 = 0 ;
32569 PyObject *swig_obj[1] ;
32570
32571 if (!args) SWIG_fail;
32572 swig_obj[0] = args;
32573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32574 if (!SWIG_IsOK(res1)) {
32575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32576 }
32577 arg1 = reinterpret_cast< wxEffects * >(argp1);
32578 {
32579 PyThreadState* __tstate = wxPyBeginAllowThreads();
32580 result = ((wxEffects const *)arg1)->GetMediumShadow();
32581 wxPyEndAllowThreads(__tstate);
32582 if (PyErr_Occurred()) SWIG_fail;
32583 }
32584 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32585 return resultobj;
32586fail:
32587 return NULL;
32588}
32589
32590
32591SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32592 PyObject *resultobj = 0;
32593 wxEffects *arg1 = (wxEffects *) 0 ;
32594 wxColour result;
32595 void *argp1 = 0 ;
32596 int res1 = 0 ;
32597 PyObject *swig_obj[1] ;
32598
32599 if (!args) SWIG_fail;
32600 swig_obj[0] = args;
32601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32602 if (!SWIG_IsOK(res1)) {
32603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32604 }
32605 arg1 = reinterpret_cast< wxEffects * >(argp1);
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
32608 result = ((wxEffects const *)arg1)->GetDarkShadow();
32609 wxPyEndAllowThreads(__tstate);
32610 if (PyErr_Occurred()) SWIG_fail;
32611 }
32612 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32613 return resultobj;
32614fail:
32615 return NULL;
32616}
32617
32618
32619SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32620 PyObject *resultobj = 0;
32621 wxEffects *arg1 = (wxEffects *) 0 ;
32622 wxColour *arg2 = 0 ;
32623 void *argp1 = 0 ;
32624 int res1 = 0 ;
32625 wxColour temp2 ;
32626 PyObject * obj0 = 0 ;
32627 PyObject * obj1 = 0 ;
32628 char * kwnames[] = {
32629 (char *) "self",(char *) "c", NULL
32630 };
32631
32632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32634 if (!SWIG_IsOK(res1)) {
32635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32636 }
32637 arg1 = reinterpret_cast< wxEffects * >(argp1);
32638 {
32639 arg2 = &temp2;
32640 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32641 }
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 resultobj = SWIG_Py_Void();
32649 return resultobj;
32650fail:
32651 return NULL;
32652}
32653
32654
32655SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32656 PyObject *resultobj = 0;
32657 wxEffects *arg1 = (wxEffects *) 0 ;
32658 wxColour *arg2 = 0 ;
32659 void *argp1 = 0 ;
32660 int res1 = 0 ;
32661 wxColour temp2 ;
32662 PyObject * obj0 = 0 ;
32663 PyObject * obj1 = 0 ;
32664 char * kwnames[] = {
32665 (char *) "self",(char *) "c", NULL
32666 };
32667
32668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32670 if (!SWIG_IsOK(res1)) {
32671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32672 }
32673 arg1 = reinterpret_cast< wxEffects * >(argp1);
32674 {
32675 arg2 = &temp2;
32676 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32677 }
32678 {
32679 PyThreadState* __tstate = wxPyBeginAllowThreads();
32680 (arg1)->SetLightShadow((wxColour const &)*arg2);
32681 wxPyEndAllowThreads(__tstate);
32682 if (PyErr_Occurred()) SWIG_fail;
32683 }
32684 resultobj = SWIG_Py_Void();
32685 return resultobj;
32686fail:
32687 return NULL;
32688}
32689
32690
32691SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32692 PyObject *resultobj = 0;
32693 wxEffects *arg1 = (wxEffects *) 0 ;
32694 wxColour *arg2 = 0 ;
32695 void *argp1 = 0 ;
32696 int res1 = 0 ;
32697 wxColour temp2 ;
32698 PyObject * obj0 = 0 ;
32699 PyObject * obj1 = 0 ;
32700 char * kwnames[] = {
32701 (char *) "self",(char *) "c", NULL
32702 };
32703
32704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32706 if (!SWIG_IsOK(res1)) {
32707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32708 }
32709 arg1 = reinterpret_cast< wxEffects * >(argp1);
32710 {
32711 arg2 = &temp2;
32712 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32713 }
32714 {
32715 PyThreadState* __tstate = wxPyBeginAllowThreads();
32716 (arg1)->SetFaceColour((wxColour const &)*arg2);
32717 wxPyEndAllowThreads(__tstate);
32718 if (PyErr_Occurred()) SWIG_fail;
32719 }
32720 resultobj = SWIG_Py_Void();
32721 return resultobj;
32722fail:
32723 return NULL;
32724}
32725
32726
32727SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32728 PyObject *resultobj = 0;
32729 wxEffects *arg1 = (wxEffects *) 0 ;
32730 wxColour *arg2 = 0 ;
32731 void *argp1 = 0 ;
32732 int res1 = 0 ;
32733 wxColour temp2 ;
32734 PyObject * obj0 = 0 ;
32735 PyObject * obj1 = 0 ;
32736 char * kwnames[] = {
32737 (char *) "self",(char *) "c", NULL
32738 };
32739
32740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32742 if (!SWIG_IsOK(res1)) {
32743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32744 }
32745 arg1 = reinterpret_cast< wxEffects * >(argp1);
32746 {
32747 arg2 = &temp2;
32748 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32749 }
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 resultobj = SWIG_Py_Void();
32757 return resultobj;
32758fail:
32759 return NULL;
32760}
32761
32762
32763SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32764 PyObject *resultobj = 0;
32765 wxEffects *arg1 = (wxEffects *) 0 ;
32766 wxColour *arg2 = 0 ;
32767 void *argp1 = 0 ;
32768 int res1 = 0 ;
32769 wxColour temp2 ;
32770 PyObject * obj0 = 0 ;
32771 PyObject * obj1 = 0 ;
32772 char * kwnames[] = {
32773 (char *) "self",(char *) "c", NULL
32774 };
32775
32776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32778 if (!SWIG_IsOK(res1)) {
32779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32780 }
32781 arg1 = reinterpret_cast< wxEffects * >(argp1);
32782 {
32783 arg2 = &temp2;
32784 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32785 }
32786 {
32787 PyThreadState* __tstate = wxPyBeginAllowThreads();
32788 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32789 wxPyEndAllowThreads(__tstate);
32790 if (PyErr_Occurred()) SWIG_fail;
32791 }
32792 resultobj = SWIG_Py_Void();
32793 return resultobj;
32794fail:
32795 return NULL;
32796}
32797
32798
32799SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32800 PyObject *resultobj = 0;
32801 wxEffects *arg1 = (wxEffects *) 0 ;
32802 wxColour *arg2 = 0 ;
32803 wxColour *arg3 = 0 ;
32804 wxColour *arg4 = 0 ;
32805 wxColour *arg5 = 0 ;
32806 wxColour *arg6 = 0 ;
32807 void *argp1 = 0 ;
32808 int res1 = 0 ;
32809 wxColour temp2 ;
32810 wxColour temp3 ;
32811 wxColour temp4 ;
32812 wxColour temp5 ;
32813 wxColour temp6 ;
32814 PyObject * obj0 = 0 ;
32815 PyObject * obj1 = 0 ;
32816 PyObject * obj2 = 0 ;
32817 PyObject * obj3 = 0 ;
32818 PyObject * obj4 = 0 ;
32819 PyObject * obj5 = 0 ;
32820 char * kwnames[] = {
32821 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32822 };
32823
32824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32826 if (!SWIG_IsOK(res1)) {
32827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32828 }
32829 arg1 = reinterpret_cast< wxEffects * >(argp1);
32830 {
32831 arg2 = &temp2;
32832 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32833 }
32834 {
32835 arg3 = &temp3;
32836 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32837 }
32838 {
32839 arg4 = &temp4;
32840 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32841 }
32842 {
32843 arg5 = &temp5;
32844 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
32845 }
32846 {
32847 arg6 = &temp6;
32848 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
32849 }
32850 {
32851 PyThreadState* __tstate = wxPyBeginAllowThreads();
32852 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
32853 wxPyEndAllowThreads(__tstate);
32854 if (PyErr_Occurred()) SWIG_fail;
32855 }
32856 resultobj = SWIG_Py_Void();
32857 return resultobj;
32858fail:
32859 return NULL;
32860}
32861
32862
32863SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32864 PyObject *resultobj = 0;
32865 wxEffects *arg1 = (wxEffects *) 0 ;
32866 wxDC *arg2 = 0 ;
32867 wxRect *arg3 = 0 ;
32868 int arg4 = (int) 1 ;
32869 void *argp1 = 0 ;
32870 int res1 = 0 ;
32871 void *argp2 = 0 ;
32872 int res2 = 0 ;
32873 wxRect temp3 ;
32874 int val4 ;
32875 int ecode4 = 0 ;
32876 PyObject * obj0 = 0 ;
32877 PyObject * obj1 = 0 ;
32878 PyObject * obj2 = 0 ;
32879 PyObject * obj3 = 0 ;
32880 char * kwnames[] = {
32881 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
32882 };
32883
32884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32886 if (!SWIG_IsOK(res1)) {
32887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
32888 }
32889 arg1 = reinterpret_cast< wxEffects * >(argp1);
32890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
32891 if (!SWIG_IsOK(res2)) {
32892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32893 }
32894 if (!argp2) {
32895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32896 }
32897 arg2 = reinterpret_cast< wxDC * >(argp2);
32898 {
32899 arg3 = &temp3;
32900 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32901 }
32902 if (obj3) {
32903 ecode4 = SWIG_AsVal_int(obj3, &val4);
32904 if (!SWIG_IsOK(ecode4)) {
32905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
32906 }
32907 arg4 = static_cast< int >(val4);
32908 }
32909 {
32910 PyThreadState* __tstate = wxPyBeginAllowThreads();
32911 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
32912 wxPyEndAllowThreads(__tstate);
32913 if (PyErr_Occurred()) SWIG_fail;
32914 }
32915 resultobj = SWIG_Py_Void();
32916 return resultobj;
32917fail:
32918 return NULL;
32919}
32920
32921
32922SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32923 PyObject *resultobj = 0;
32924 wxEffects *arg1 = (wxEffects *) 0 ;
32925 wxRect *arg2 = 0 ;
32926 wxDC *arg3 = 0 ;
32927 wxBitmap *arg4 = 0 ;
32928 bool result;
32929 void *argp1 = 0 ;
32930 int res1 = 0 ;
32931 wxRect temp2 ;
32932 void *argp3 = 0 ;
32933 int res3 = 0 ;
32934 void *argp4 = 0 ;
32935 int res4 = 0 ;
32936 PyObject * obj0 = 0 ;
32937 PyObject * obj1 = 0 ;
32938 PyObject * obj2 = 0 ;
32939 PyObject * obj3 = 0 ;
32940 char * kwnames[] = {
32941 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
32942 };
32943
32944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32946 if (!SWIG_IsOK(res1)) {
32947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
32948 }
32949 arg1 = reinterpret_cast< wxEffects * >(argp1);
32950 {
32951 arg2 = &temp2;
32952 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32953 }
32954 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32955 if (!SWIG_IsOK(res3)) {
32956 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
32957 }
32958 if (!argp3) {
32959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
32960 }
32961 arg3 = reinterpret_cast< wxDC * >(argp3);
32962 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
32963 if (!SWIG_IsOK(res4)) {
32964 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
32965 }
32966 if (!argp4) {
32967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
32968 }
32969 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 {
32977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32978 }
32979 return resultobj;
32980fail:
32981 return NULL;
32982}
32983
32984
32985SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32986 PyObject *obj;
32987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32988 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
32989 return SWIG_Py_Void();
32990}
32991
32992SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32993 return SWIG_Python_InitShadowInstance(args);
32994}
32995
32996SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32997 PyObject *resultobj = 0;
32998 int arg1 ;
32999 int arg2 ;
33000 bool arg3 ;
33001 wxSplitterRenderParams *result = 0 ;
33002 int val1 ;
33003 int ecode1 = 0 ;
33004 int val2 ;
33005 int ecode2 = 0 ;
33006 bool val3 ;
33007 int ecode3 = 0 ;
33008 PyObject * obj0 = 0 ;
33009 PyObject * obj1 = 0 ;
33010 PyObject * obj2 = 0 ;
33011 char * kwnames[] = {
33012 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33013 };
33014
33015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33016 ecode1 = SWIG_AsVal_int(obj0, &val1);
33017 if (!SWIG_IsOK(ecode1)) {
33018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33019 }
33020 arg1 = static_cast< int >(val1);
33021 ecode2 = SWIG_AsVal_int(obj1, &val2);
33022 if (!SWIG_IsOK(ecode2)) {
33023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33024 }
33025 arg2 = static_cast< int >(val2);
33026 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33027 if (!SWIG_IsOK(ecode3)) {
33028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33029 }
33030 arg3 = static_cast< bool >(val3);
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33038 return resultobj;
33039fail:
33040 return NULL;
33041}
33042
33043
33044SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33045 PyObject *resultobj = 0;
33046 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33047 void *argp1 = 0 ;
33048 int res1 = 0 ;
33049 PyObject *swig_obj[1] ;
33050
33051 if (!args) SWIG_fail;
33052 swig_obj[0] = args;
33053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33054 if (!SWIG_IsOK(res1)) {
33055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33056 }
33057 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33058 {
33059 PyThreadState* __tstate = wxPyBeginAllowThreads();
33060 delete arg1;
33061
33062 wxPyEndAllowThreads(__tstate);
33063 if (PyErr_Occurred()) SWIG_fail;
33064 }
33065 resultobj = SWIG_Py_Void();
33066 return resultobj;
33067fail:
33068 return NULL;
33069}
33070
33071
33072SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33073 PyObject *resultobj = 0;
33074 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33075 int result;
33076 void *argp1 = 0 ;
33077 int res1 = 0 ;
33078 PyObject *swig_obj[1] ;
33079
33080 if (!args) SWIG_fail;
33081 swig_obj[0] = args;
33082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33085 }
33086 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33087 result = (int)(int) ((arg1)->widthSash);
33088 resultobj = SWIG_From_int(static_cast< int >(result));
33089 return resultobj;
33090fail:
33091 return NULL;
33092}
33093
33094
33095SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33096 PyObject *resultobj = 0;
33097 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33098 int result;
33099 void *argp1 = 0 ;
33100 int res1 = 0 ;
33101 PyObject *swig_obj[1] ;
33102
33103 if (!args) SWIG_fail;
33104 swig_obj[0] = args;
33105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33108 }
33109 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33110 result = (int)(int) ((arg1)->border);
33111 resultobj = SWIG_From_int(static_cast< int >(result));
33112 return resultobj;
33113fail:
33114 return NULL;
33115}
33116
33117
33118SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33119 PyObject *resultobj = 0;
33120 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33121 bool result;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 PyObject *swig_obj[1] ;
33125
33126 if (!args) SWIG_fail;
33127 swig_obj[0] = args;
33128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33129 if (!SWIG_IsOK(res1)) {
33130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33131 }
33132 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33133 result = (bool)(bool) ((arg1)->isHotSensitive);
33134 resultobj = SWIG_From_bool(static_cast< bool >(result));
33135 return resultobj;
33136fail:
33137 return NULL;
33138}
33139
33140
33141SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33142 PyObject *obj;
33143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33144 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33145 return SWIG_Py_Void();
33146}
33147
33148SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33149 return SWIG_Python_InitShadowInstance(args);
33150}
33151
33d6fd3b
RD
33152SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33153 PyObject *resultobj = 0;
33154 wxHeaderButtonParams *result = 0 ;
33155
33156 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33157 {
33158 PyThreadState* __tstate = wxPyBeginAllowThreads();
33159 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33160 wxPyEndAllowThreads(__tstate);
33161 if (PyErr_Occurred()) SWIG_fail;
33162 }
33163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33164 return resultobj;
33165fail:
33166 return NULL;
33167}
33168
33169
33170SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33171 PyObject *resultobj = 0;
33172 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33173 void *argp1 = 0 ;
33174 int res1 = 0 ;
33175 PyObject *swig_obj[1] ;
33176
33177 if (!args) SWIG_fail;
33178 swig_obj[0] = args;
33179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33180 if (!SWIG_IsOK(res1)) {
33181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33182 }
33183 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33184 {
33185 PyThreadState* __tstate = wxPyBeginAllowThreads();
33186 delete arg1;
33187
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 resultobj = SWIG_Py_Void();
33192 return resultobj;
33193fail:
33194 return NULL;
33195}
33196
33197
33198SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33199 PyObject *resultobj = 0;
33200 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33201 wxColour *arg2 = (wxColour *) 0 ;
33202 void *argp1 = 0 ;
33203 int res1 = 0 ;
33204 wxColour temp2 ;
33205 PyObject *swig_obj[2] ;
33206
33207 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33209 if (!SWIG_IsOK(res1)) {
33210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33211 }
33212 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33213 {
33214 arg2 = &temp2;
33215 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33216 }
33217 if (arg1) (arg1)->m_arrowColour = *arg2;
33218
33219 resultobj = SWIG_Py_Void();
33220 return resultobj;
33221fail:
33222 return NULL;
33223}
33224
33225
33226SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33227 PyObject *resultobj = 0;
33228 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33229 wxColour *result = 0 ;
33230 void *argp1 = 0 ;
33231 int res1 = 0 ;
33232 PyObject *swig_obj[1] ;
33233
33234 if (!args) SWIG_fail;
33235 swig_obj[0] = args;
33236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33237 if (!SWIG_IsOK(res1)) {
33238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33239 }
33240 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33241 result = (wxColour *)& ((arg1)->m_arrowColour);
33242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33243 return resultobj;
33244fail:
33245 return NULL;
33246}
33247
33248
33249SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33250 PyObject *resultobj = 0;
33251 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33252 wxColour *arg2 = (wxColour *) 0 ;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 wxColour temp2 ;
33256 PyObject *swig_obj[2] ;
33257
33258 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33260 if (!SWIG_IsOK(res1)) {
33261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33262 }
33263 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33264 {
33265 arg2 = &temp2;
33266 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33267 }
33268 if (arg1) (arg1)->m_selectionColour = *arg2;
33269
33270 resultobj = SWIG_Py_Void();
33271 return resultobj;
33272fail:
33273 return NULL;
33274}
33275
33276
33277SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33278 PyObject *resultobj = 0;
33279 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33280 wxColour *result = 0 ;
33281 void *argp1 = 0 ;
33282 int res1 = 0 ;
33283 PyObject *swig_obj[1] ;
33284
33285 if (!args) SWIG_fail;
33286 swig_obj[0] = args;
33287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33288 if (!SWIG_IsOK(res1)) {
33289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33290 }
33291 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33292 result = (wxColour *)& ((arg1)->m_selectionColour);
33293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33294 return resultobj;
33295fail:
33296 return NULL;
33297}
33298
33299
33300SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33301 PyObject *resultobj = 0;
33302 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33303 wxString *arg2 = (wxString *) 0 ;
33304 void *argp1 = 0 ;
33305 int res1 = 0 ;
33306 bool temp2 = false ;
33307 PyObject *swig_obj[2] ;
33308
33309 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33311 if (!SWIG_IsOK(res1)) {
33312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33313 }
33314 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33315 {
33316 arg2 = wxString_in_helper(swig_obj[1]);
33317 if (arg2 == NULL) SWIG_fail;
33318 temp2 = true;
33319 }
33320 if (arg1) (arg1)->m_labelText = *arg2;
33321
33322 resultobj = SWIG_Py_Void();
33323 {
33324 if (temp2)
33325 delete arg2;
33326 }
33327 return resultobj;
33328fail:
33329 {
33330 if (temp2)
33331 delete arg2;
33332 }
33333 return NULL;
33334}
33335
33336
33337SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33338 PyObject *resultobj = 0;
33339 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33340 wxString *result = 0 ;
33341 void *argp1 = 0 ;
33342 int res1 = 0 ;
33343 PyObject *swig_obj[1] ;
33344
33345 if (!args) SWIG_fail;
33346 swig_obj[0] = args;
33347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33348 if (!SWIG_IsOK(res1)) {
33349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33350 }
33351 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33352 result = (wxString *)& ((arg1)->m_labelText);
33353 {
33354#if wxUSE_UNICODE
33355 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33356#else
33357 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33358#endif
33359 }
33360 return resultobj;
33361fail:
33362 return NULL;
33363}
33364
33365
33366SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33367 PyObject *resultobj = 0;
33368 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33369 wxFont *arg2 = (wxFont *) 0 ;
33370 void *argp1 = 0 ;
33371 int res1 = 0 ;
33372 void *argp2 = 0 ;
33373 int res2 = 0 ;
33374 PyObject *swig_obj[2] ;
33375
33376 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33378 if (!SWIG_IsOK(res1)) {
33379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33380 }
33381 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33382 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33383 if (!SWIG_IsOK(res2)) {
33384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33385 }
33386 arg2 = reinterpret_cast< wxFont * >(argp2);
33387 if (arg1) (arg1)->m_labelFont = *arg2;
33388
33389 resultobj = SWIG_Py_Void();
33390 return resultobj;
33391fail:
33392 return NULL;
33393}
33394
33395
33396SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33397 PyObject *resultobj = 0;
33398 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33399 wxFont *result = 0 ;
33400 void *argp1 = 0 ;
33401 int res1 = 0 ;
33402 PyObject *swig_obj[1] ;
33403
33404 if (!args) SWIG_fail;
33405 swig_obj[0] = args;
33406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33407 if (!SWIG_IsOK(res1)) {
33408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33409 }
33410 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33411 result = (wxFont *)& ((arg1)->m_labelFont);
33412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33413 return resultobj;
33414fail:
33415 return NULL;
33416}
33417
33418
33419SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33420 PyObject *resultobj = 0;
33421 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33422 wxColour *arg2 = (wxColour *) 0 ;
33423 void *argp1 = 0 ;
33424 int res1 = 0 ;
33425 wxColour temp2 ;
33426 PyObject *swig_obj[2] ;
33427
33428 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33432 }
33433 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33434 {
33435 arg2 = &temp2;
33436 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33437 }
33438 if (arg1) (arg1)->m_labelColour = *arg2;
33439
33440 resultobj = SWIG_Py_Void();
33441 return resultobj;
33442fail:
33443 return NULL;
33444}
33445
33446
33447SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33448 PyObject *resultobj = 0;
33449 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33450 wxColour *result = 0 ;
33451 void *argp1 = 0 ;
33452 int res1 = 0 ;
33453 PyObject *swig_obj[1] ;
33454
33455 if (!args) SWIG_fail;
33456 swig_obj[0] = args;
33457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33458 if (!SWIG_IsOK(res1)) {
33459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33460 }
33461 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33462 result = (wxColour *)& ((arg1)->m_labelColour);
33463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33464 return resultobj;
33465fail:
33466 return NULL;
33467}
33468
33469
33470SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33471 PyObject *resultobj = 0;
33472 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33473 wxBitmap *arg2 = (wxBitmap *) 0 ;
33474 void *argp1 = 0 ;
33475 int res1 = 0 ;
33476 void *argp2 = 0 ;
33477 int res2 = 0 ;
33478 PyObject *swig_obj[2] ;
33479
33480 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33482 if (!SWIG_IsOK(res1)) {
33483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33484 }
33485 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33486 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33487 if (!SWIG_IsOK(res2)) {
33488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33489 }
33490 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33491 if (arg1) (arg1)->m_labelBitmap = *arg2;
33492
33493 resultobj = SWIG_Py_Void();
33494 return resultobj;
33495fail:
33496 return NULL;
33497}
33498
33499
33500SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33501 PyObject *resultobj = 0;
33502 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33503 wxBitmap *result = 0 ;
33504 void *argp1 = 0 ;
33505 int res1 = 0 ;
33506 PyObject *swig_obj[1] ;
33507
33508 if (!args) SWIG_fail;
33509 swig_obj[0] = args;
33510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33511 if (!SWIG_IsOK(res1)) {
33512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33513 }
33514 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33515 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33517 return resultobj;
33518fail:
33519 return NULL;
33520}
33521
33522
33523SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33524 PyObject *resultobj = 0;
33525 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33526 int arg2 ;
33527 void *argp1 = 0 ;
33528 int res1 = 0 ;
33529 int val2 ;
33530 int ecode2 = 0 ;
33531 PyObject *swig_obj[2] ;
33532
33533 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33535 if (!SWIG_IsOK(res1)) {
33536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33537 }
33538 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33539 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33540 if (!SWIG_IsOK(ecode2)) {
33541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33542 }
33543 arg2 = static_cast< int >(val2);
33544 if (arg1) (arg1)->m_labelAlignment = arg2;
33545
33546 resultobj = SWIG_Py_Void();
33547 return resultobj;
33548fail:
33549 return NULL;
33550}
33551
33552
33553SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33554 PyObject *resultobj = 0;
33555 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33556 int result;
33557 void *argp1 = 0 ;
33558 int res1 = 0 ;
33559 PyObject *swig_obj[1] ;
33560
33561 if (!args) SWIG_fail;
33562 swig_obj[0] = args;
33563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33564 if (!SWIG_IsOK(res1)) {
33565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33566 }
33567 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33568 result = (int) ((arg1)->m_labelAlignment);
33569 resultobj = SWIG_From_int(static_cast< int >(result));
33570 return resultobj;
33571fail:
33572 return NULL;
33573}
33574
33575
33576SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33577 PyObject *obj;
33578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33579 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33580 return SWIG_Py_Void();
33581}
33582
33583SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33584 return SWIG_Python_InitShadowInstance(args);
33585}
33586
1bd55598
RD
33587SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33588 PyObject *resultobj = 0;
33589 int arg1 ;
33590 int arg2 ;
33591 wxRendererVersion *result = 0 ;
33592 int val1 ;
33593 int ecode1 = 0 ;
33594 int val2 ;
33595 int ecode2 = 0 ;
33596 PyObject * obj0 = 0 ;
33597 PyObject * obj1 = 0 ;
33598 char * kwnames[] = {
33599 (char *) "version_",(char *) "age_", NULL
33600 };
33601
33602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33603 ecode1 = SWIG_AsVal_int(obj0, &val1);
33604 if (!SWIG_IsOK(ecode1)) {
33605 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33606 }
33607 arg1 = static_cast< int >(val1);
33608 ecode2 = SWIG_AsVal_int(obj1, &val2);
33609 if (!SWIG_IsOK(ecode2)) {
33610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33611 }
33612 arg2 = static_cast< int >(val2);
33613 {
33614 PyThreadState* __tstate = wxPyBeginAllowThreads();
33615 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33616 wxPyEndAllowThreads(__tstate);
33617 if (PyErr_Occurred()) SWIG_fail;
33618 }
33619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33620 return resultobj;
33621fail:
33622 return NULL;
33623}
33624
33625
33626SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33627 PyObject *resultobj = 0;
33628 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33629 void *argp1 = 0 ;
33630 int res1 = 0 ;
33631 PyObject *swig_obj[1] ;
33632
33633 if (!args) SWIG_fail;
33634 swig_obj[0] = args;
33635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33636 if (!SWIG_IsOK(res1)) {
33637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33638 }
33639 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 delete arg1;
33643
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 resultobj = SWIG_Py_Void();
33648 return resultobj;
33649fail:
33650 return NULL;
33651}
33652
33653
33654SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33655 PyObject *resultobj = 0;
33656 wxRendererVersion *arg1 = 0 ;
33657 bool result;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 PyObject * obj0 = 0 ;
33661 char * kwnames[] = {
33662 (char *) "ver", NULL
33663 };
33664
33665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33666 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33667 if (!SWIG_IsOK(res1)) {
33668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33669 }
33670 if (!argp1) {
33671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33672 }
33673 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33674 {
33675 PyThreadState* __tstate = wxPyBeginAllowThreads();
33676 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33677 wxPyEndAllowThreads(__tstate);
33678 if (PyErr_Occurred()) SWIG_fail;
33679 }
33680 {
33681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33682 }
33683 return resultobj;
33684fail:
33685 return NULL;
33686}
33687
33688
33689SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33690 PyObject *resultobj = 0;
33691 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33692 int result;
33693 void *argp1 = 0 ;
33694 int res1 = 0 ;
33695 PyObject *swig_obj[1] ;
33696
33697 if (!args) SWIG_fail;
33698 swig_obj[0] = args;
33699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33700 if (!SWIG_IsOK(res1)) {
33701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33702 }
33703 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33704 result = (int)(int) ((arg1)->version);
33705 resultobj = SWIG_From_int(static_cast< int >(result));
33706 return resultobj;
33707fail:
33708 return NULL;
33709}
33710
33711
33712SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33713 PyObject *resultobj = 0;
33714 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33715 int result;
33716 void *argp1 = 0 ;
33717 int res1 = 0 ;
33718 PyObject *swig_obj[1] ;
33719
33720 if (!args) SWIG_fail;
33721 swig_obj[0] = args;
33722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33723 if (!SWIG_IsOK(res1)) {
33724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33725 }
33726 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33727 result = (int)(int) ((arg1)->age);
33728 resultobj = SWIG_From_int(static_cast< int >(result));
33729 return resultobj;
33730fail:
33731 return NULL;
33732}
33733
33734
33735SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33736 PyObject *obj;
33737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33738 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33739 return SWIG_Py_Void();
33740}
33741
33742SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33743 return SWIG_Python_InitShadowInstance(args);
33744}
33745
33746SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33747 PyObject *resultobj = 0;
33748 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33749 wxWindow *arg2 = (wxWindow *) 0 ;
33750 wxDC *arg3 = 0 ;
33751 wxRect *arg4 = 0 ;
33752 int arg5 = (int) 0 ;
33d6fd3b
RD
33753 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33754 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
33755 void *argp1 = 0 ;
33756 int res1 = 0 ;
33757 void *argp2 = 0 ;
33758 int res2 = 0 ;
33759 void *argp3 = 0 ;
33760 int res3 = 0 ;
33761 wxRect temp4 ;
33762 int val5 ;
33763 int ecode5 = 0 ;
33d6fd3b
RD
33764 int val6 ;
33765 int ecode6 = 0 ;
33766 void *argp7 = 0 ;
33767 int res7 = 0 ;
1bd55598
RD
33768 PyObject * obj0 = 0 ;
33769 PyObject * obj1 = 0 ;
33770 PyObject * obj2 = 0 ;
33771 PyObject * obj3 = 0 ;
33772 PyObject * obj4 = 0 ;
33d6fd3b
RD
33773 PyObject * obj5 = 0 ;
33774 PyObject * obj6 = 0 ;
1bd55598 33775 char * kwnames[] = {
33d6fd3b 33776 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
33777 };
33778
33d6fd3b 33779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
33780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33781 if (!SWIG_IsOK(res1)) {
33782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33783 }
33784 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33786 if (!SWIG_IsOK(res2)) {
33787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33788 }
33789 arg2 = reinterpret_cast< wxWindow * >(argp2);
33790 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33791 if (!SWIG_IsOK(res3)) {
33792 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33793 }
33794 if (!argp3) {
33795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33796 }
33797 arg3 = reinterpret_cast< wxDC * >(argp3);
33798 {
33799 arg4 = &temp4;
33800 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33801 }
33802 if (obj4) {
33803 ecode5 = SWIG_AsVal_int(obj4, &val5);
33804 if (!SWIG_IsOK(ecode5)) {
33805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33806 }
33807 arg5 = static_cast< int >(val5);
33808 }
33d6fd3b
RD
33809 if (obj5) {
33810 ecode6 = SWIG_AsVal_int(obj5, &val6);
33811 if (!SWIG_IsOK(ecode6)) {
33812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33813 }
33814 arg6 = static_cast< wxHeaderSortIconType >(val6);
33815 }
33816 if (obj6) {
33817 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33818 if (!SWIG_IsOK(res7)) {
33819 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33820 }
33821 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33822 }
33823 {
33824 PyThreadState* __tstate = wxPyBeginAllowThreads();
33825 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33826 wxPyEndAllowThreads(__tstate);
33827 if (PyErr_Occurred()) SWIG_fail;
33828 }
33829 resultobj = SWIG_Py_Void();
33830 return resultobj;
33831fail:
33832 return NULL;
33833}
33834
33835
33836SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33837 PyObject *resultobj = 0;
33838 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33839 wxWindow *arg2 = (wxWindow *) 0 ;
33840 wxDC *arg3 = 0 ;
33841 wxRect *arg4 = 0 ;
33842 int arg5 = (int) 0 ;
33843 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33844 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33845 void *argp1 = 0 ;
33846 int res1 = 0 ;
33847 void *argp2 = 0 ;
33848 int res2 = 0 ;
33849 void *argp3 = 0 ;
33850 int res3 = 0 ;
33851 wxRect temp4 ;
33852 int val5 ;
33853 int ecode5 = 0 ;
33854 int val6 ;
33855 int ecode6 = 0 ;
33856 void *argp7 = 0 ;
33857 int res7 = 0 ;
33858 PyObject * obj0 = 0 ;
33859 PyObject * obj1 = 0 ;
33860 PyObject * obj2 = 0 ;
33861 PyObject * obj3 = 0 ;
33862 PyObject * obj4 = 0 ;
33863 PyObject * obj5 = 0 ;
33864 PyObject * obj6 = 0 ;
33865 char * kwnames[] = {
33866 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33867 };
33868
33869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33873 }
33874 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33876 if (!SWIG_IsOK(res2)) {
33877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
33878 }
33879 arg2 = reinterpret_cast< wxWindow * >(argp2);
33880 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33881 if (!SWIG_IsOK(res3)) {
33882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33883 }
33884 if (!argp3) {
33885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33886 }
33887 arg3 = reinterpret_cast< wxDC * >(argp3);
33888 {
33889 arg4 = &temp4;
33890 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33891 }
33892 if (obj4) {
33893 ecode5 = SWIG_AsVal_int(obj4, &val5);
33894 if (!SWIG_IsOK(ecode5)) {
33895 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
33896 }
33897 arg5 = static_cast< int >(val5);
33898 }
33899 if (obj5) {
33900 ecode6 = SWIG_AsVal_int(obj5, &val6);
33901 if (!SWIG_IsOK(ecode6)) {
33902 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33903 }
33904 arg6 = static_cast< wxHeaderSortIconType >(val6);
33905 }
33906 if (obj6) {
33907 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33908 if (!SWIG_IsOK(res7)) {
33909 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33910 }
33911 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33912 }
1bd55598
RD
33913 {
33914 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 33915 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
33916 wxPyEndAllowThreads(__tstate);
33917 if (PyErr_Occurred()) SWIG_fail;
33918 }
33919 resultobj = SWIG_Py_Void();
33920 return resultobj;
33921fail:
33922 return NULL;
33923}
33924
33925
33d6fd3b
RD
33926SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33927 PyObject *resultobj = 0;
33928 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33929 wxWindow *arg2 = (wxWindow *) 0 ;
33930 int result;
33931 void *argp1 = 0 ;
33932 int res1 = 0 ;
33933 void *argp2 = 0 ;
33934 int res2 = 0 ;
33935 PyObject * obj0 = 0 ;
33936 PyObject * obj1 = 0 ;
33937 char * kwnames[] = {
33938 (char *) "self",(char *) "win", NULL
33939 };
33940
33941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
33942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33943 if (!SWIG_IsOK(res1)) {
33944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33945 }
33946 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33948 if (!SWIG_IsOK(res2)) {
33949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
33950 }
33951 arg2 = reinterpret_cast< wxWindow * >(argp2);
33952 {
33953 PyThreadState* __tstate = wxPyBeginAllowThreads();
33954 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
33955 wxPyEndAllowThreads(__tstate);
33956 if (PyErr_Occurred()) SWIG_fail;
33957 }
33958 resultobj = SWIG_From_int(static_cast< int >(result));
33959 return resultobj;
33960fail:
33961 return NULL;
33962}
33963
33964
1bd55598
RD
33965SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33966 PyObject *resultobj = 0;
33967 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33968 wxWindow *arg2 = (wxWindow *) 0 ;
33969 wxDC *arg3 = 0 ;
33970 wxRect *arg4 = 0 ;
33971 int arg5 = (int) 0 ;
33972 void *argp1 = 0 ;
33973 int res1 = 0 ;
33974 void *argp2 = 0 ;
33975 int res2 = 0 ;
33976 void *argp3 = 0 ;
33977 int res3 = 0 ;
33978 wxRect temp4 ;
33979 int val5 ;
33980 int ecode5 = 0 ;
33981 PyObject * obj0 = 0 ;
33982 PyObject * obj1 = 0 ;
33983 PyObject * obj2 = 0 ;
33984 PyObject * obj3 = 0 ;
33985 PyObject * obj4 = 0 ;
33986 char * kwnames[] = {
33987 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33988 };
33989
33990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33992 if (!SWIG_IsOK(res1)) {
33993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33994 }
33995 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33997 if (!SWIG_IsOK(res2)) {
33998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33999 }
34000 arg2 = reinterpret_cast< wxWindow * >(argp2);
34001 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34002 if (!SWIG_IsOK(res3)) {
34003 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34004 }
34005 if (!argp3) {
34006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34007 }
34008 arg3 = reinterpret_cast< wxDC * >(argp3);
34009 {
34010 arg4 = &temp4;
34011 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34012 }
34013 if (obj4) {
34014 ecode5 = SWIG_AsVal_int(obj4, &val5);
34015 if (!SWIG_IsOK(ecode5)) {
34016 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34017 }
34018 arg5 = static_cast< int >(val5);
34019 }
34020 {
34021 PyThreadState* __tstate = wxPyBeginAllowThreads();
34022 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34023 wxPyEndAllowThreads(__tstate);
34024 if (PyErr_Occurred()) SWIG_fail;
34025 }
34026 resultobj = SWIG_Py_Void();
34027 return resultobj;
34028fail:
34029 return NULL;
34030}
34031
34032
34033SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34034 PyObject *resultobj = 0;
34035 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34036 wxWindow *arg2 = (wxWindow *) 0 ;
34037 wxDC *arg3 = 0 ;
34038 wxRect *arg4 = 0 ;
34039 int arg5 = (int) 0 ;
34040 void *argp1 = 0 ;
34041 int res1 = 0 ;
34042 void *argp2 = 0 ;
34043 int res2 = 0 ;
34044 void *argp3 = 0 ;
34045 int res3 = 0 ;
34046 wxRect temp4 ;
34047 int val5 ;
34048 int ecode5 = 0 ;
34049 PyObject * obj0 = 0 ;
34050 PyObject * obj1 = 0 ;
34051 PyObject * obj2 = 0 ;
34052 PyObject * obj3 = 0 ;
34053 PyObject * obj4 = 0 ;
34054 char * kwnames[] = {
34055 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34056 };
34057
34058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34060 if (!SWIG_IsOK(res1)) {
34061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34062 }
34063 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34065 if (!SWIG_IsOK(res2)) {
34066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34067 }
34068 arg2 = reinterpret_cast< wxWindow * >(argp2);
34069 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34070 if (!SWIG_IsOK(res3)) {
34071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34072 }
34073 if (!argp3) {
34074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34075 }
34076 arg3 = reinterpret_cast< wxDC * >(argp3);
34077 {
34078 arg4 = &temp4;
34079 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34080 }
34081 if (obj4) {
34082 ecode5 = SWIG_AsVal_int(obj4, &val5);
34083 if (!SWIG_IsOK(ecode5)) {
34084 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34085 }
34086 arg5 = static_cast< int >(val5);
34087 }
34088 {
34089 PyThreadState* __tstate = wxPyBeginAllowThreads();
34090 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34091 wxPyEndAllowThreads(__tstate);
34092 if (PyErr_Occurred()) SWIG_fail;
34093 }
34094 resultobj = SWIG_Py_Void();
34095 return resultobj;
34096fail:
34097 return NULL;
34098}
34099
34100
34101SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34102 PyObject *resultobj = 0;
34103 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34104 wxWindow *arg2 = (wxWindow *) 0 ;
34105 wxDC *arg3 = 0 ;
34106 wxSize *arg4 = 0 ;
34107 int arg5 ;
34108 wxOrientation arg6 ;
34109 int arg7 = (int) 0 ;
34110 void *argp1 = 0 ;
34111 int res1 = 0 ;
34112 void *argp2 = 0 ;
34113 int res2 = 0 ;
34114 void *argp3 = 0 ;
34115 int res3 = 0 ;
34116 wxSize temp4 ;
34117 int val5 ;
34118 int ecode5 = 0 ;
34119 int val6 ;
34120 int ecode6 = 0 ;
34121 int val7 ;
34122 int ecode7 = 0 ;
34123 PyObject * obj0 = 0 ;
34124 PyObject * obj1 = 0 ;
34125 PyObject * obj2 = 0 ;
34126 PyObject * obj3 = 0 ;
34127 PyObject * obj4 = 0 ;
34128 PyObject * obj5 = 0 ;
34129 PyObject * obj6 = 0 ;
34130 char * kwnames[] = {
34131 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34132 };
34133
34134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34136 if (!SWIG_IsOK(res1)) {
34137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34138 }
34139 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34141 if (!SWIG_IsOK(res2)) {
34142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34143 }
34144 arg2 = reinterpret_cast< wxWindow * >(argp2);
34145 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34146 if (!SWIG_IsOK(res3)) {
34147 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34148 }
34149 if (!argp3) {
34150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34151 }
34152 arg3 = reinterpret_cast< wxDC * >(argp3);
34153 {
34154 arg4 = &temp4;
34155 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34156 }
34157 ecode5 = SWIG_AsVal_int(obj4, &val5);
34158 if (!SWIG_IsOK(ecode5)) {
34159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34160 }
34161 arg5 = static_cast< int >(val5);
34162 ecode6 = SWIG_AsVal_int(obj5, &val6);
34163 if (!SWIG_IsOK(ecode6)) {
34164 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34165 }
34166 arg6 = static_cast< wxOrientation >(val6);
34167 if (obj6) {
34168 ecode7 = SWIG_AsVal_int(obj6, &val7);
34169 if (!SWIG_IsOK(ecode7)) {
34170 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34171 }
34172 arg7 = static_cast< int >(val7);
34173 }
34174 {
34175 PyThreadState* __tstate = wxPyBeginAllowThreads();
34176 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34177 wxPyEndAllowThreads(__tstate);
34178 if (PyErr_Occurred()) SWIG_fail;
34179 }
34180 resultobj = SWIG_Py_Void();
34181 return resultobj;
34182fail:
34183 return NULL;
34184}
34185
34186
34187SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34188 PyObject *resultobj = 0;
34189 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34190 wxWindow *arg2 = (wxWindow *) 0 ;
34191 wxDC *arg3 = 0 ;
34192 wxRect *arg4 = 0 ;
34193 int arg5 = (int) 0 ;
34194 void *argp1 = 0 ;
34195 int res1 = 0 ;
34196 void *argp2 = 0 ;
34197 int res2 = 0 ;
34198 void *argp3 = 0 ;
34199 int res3 = 0 ;
34200 wxRect temp4 ;
34201 int val5 ;
34202 int ecode5 = 0 ;
34203 PyObject * obj0 = 0 ;
34204 PyObject * obj1 = 0 ;
34205 PyObject * obj2 = 0 ;
34206 PyObject * obj3 = 0 ;
34207 PyObject * obj4 = 0 ;
34208 char * kwnames[] = {
34209 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34210 };
34211
34212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34214 if (!SWIG_IsOK(res1)) {
34215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34216 }
34217 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34218 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34219 if (!SWIG_IsOK(res2)) {
34220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34221 }
34222 arg2 = reinterpret_cast< wxWindow * >(argp2);
34223 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34224 if (!SWIG_IsOK(res3)) {
34225 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34226 }
34227 if (!argp3) {
34228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34229 }
34230 arg3 = reinterpret_cast< wxDC * >(argp3);
34231 {
34232 arg4 = &temp4;
34233 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34234 }
34235 if (obj4) {
34236 ecode5 = SWIG_AsVal_int(obj4, &val5);
34237 if (!SWIG_IsOK(ecode5)) {
34238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34239 }
34240 arg5 = static_cast< int >(val5);
34241 }
34242 {
34243 PyThreadState* __tstate = wxPyBeginAllowThreads();
34244 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34245 wxPyEndAllowThreads(__tstate);
34246 if (PyErr_Occurred()) SWIG_fail;
34247 }
34248 resultobj = SWIG_Py_Void();
34249 return resultobj;
34250fail:
34251 return NULL;
34252}
34253
34254
34255SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34256 PyObject *resultobj = 0;
34257 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34258 wxWindow *arg2 = (wxWindow *) 0 ;
34259 wxDC *arg3 = 0 ;
34260 wxRect *arg4 = 0 ;
34261 int arg5 = (int) 0 ;
34262 void *argp1 = 0 ;
34263 int res1 = 0 ;
34264 void *argp2 = 0 ;
34265 int res2 = 0 ;
34266 void *argp3 = 0 ;
34267 int res3 = 0 ;
34268 wxRect temp4 ;
34269 int val5 ;
34270 int ecode5 = 0 ;
34271 PyObject * obj0 = 0 ;
34272 PyObject * obj1 = 0 ;
34273 PyObject * obj2 = 0 ;
34274 PyObject * obj3 = 0 ;
34275 PyObject * obj4 = 0 ;
34276 char * kwnames[] = {
34277 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34278 };
34279
34280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34282 if (!SWIG_IsOK(res1)) {
34283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34284 }
34285 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34287 if (!SWIG_IsOK(res2)) {
34288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34289 }
34290 arg2 = reinterpret_cast< wxWindow * >(argp2);
34291 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34292 if (!SWIG_IsOK(res3)) {
34293 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34294 }
34295 if (!argp3) {
34296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34297 }
34298 arg3 = reinterpret_cast< wxDC * >(argp3);
34299 {
34300 arg4 = &temp4;
34301 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34302 }
34303 if (obj4) {
34304 ecode5 = SWIG_AsVal_int(obj4, &val5);
34305 if (!SWIG_IsOK(ecode5)) {
34306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34307 }
34308 arg5 = static_cast< int >(val5);
34309 }
34310 {
34311 PyThreadState* __tstate = wxPyBeginAllowThreads();
34312 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34313 wxPyEndAllowThreads(__tstate);
34314 if (PyErr_Occurred()) SWIG_fail;
34315 }
34316 resultobj = SWIG_Py_Void();
34317 return resultobj;
34318fail:
34319 return NULL;
34320}
34321
34322
2131d850 34323SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34324 PyObject *resultobj = 0;
34325 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34326 wxWindow *arg2 = (wxWindow *) 0 ;
34327 wxDC *arg3 = 0 ;
34328 wxRect *arg4 = 0 ;
34329 int arg5 = (int) 0 ;
34330 void *argp1 = 0 ;
34331 int res1 = 0 ;
34332 void *argp2 = 0 ;
34333 int res2 = 0 ;
34334 void *argp3 = 0 ;
34335 int res3 = 0 ;
34336 wxRect temp4 ;
34337 int val5 ;
34338 int ecode5 = 0 ;
34339 PyObject * obj0 = 0 ;
34340 PyObject * obj1 = 0 ;
34341 PyObject * obj2 = 0 ;
34342 PyObject * obj3 = 0 ;
34343 PyObject * obj4 = 0 ;
34344 char * kwnames[] = {
34345 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34346 };
34347
2131d850 34348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34350 if (!SWIG_IsOK(res1)) {
2131d850 34351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34352 }
34353 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34355 if (!SWIG_IsOK(res2)) {
2131d850 34356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34357 }
34358 arg2 = reinterpret_cast< wxWindow * >(argp2);
34359 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34360 if (!SWIG_IsOK(res3)) {
2131d850 34361 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34362 }
34363 if (!argp3) {
2131d850 34364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34365 }
34366 arg3 = reinterpret_cast< wxDC * >(argp3);
34367 {
34368 arg4 = &temp4;
34369 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34370 }
34371 if (obj4) {
34372 ecode5 = SWIG_AsVal_int(obj4, &val5);
34373 if (!SWIG_IsOK(ecode5)) {
2131d850 34374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34375 }
34376 arg5 = static_cast< int >(val5);
34377 }
34378 {
34379 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34380 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34381 wxPyEndAllowThreads(__tstate);
34382 if (PyErr_Occurred()) SWIG_fail;
34383 }
34384 resultobj = SWIG_Py_Void();
34385 return resultobj;
34386fail:
34387 return NULL;
34388}
34389
34390
34391SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34392 PyObject *resultobj = 0;
34393 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34394 wxWindow *arg2 = (wxWindow *) 0 ;
34395 wxDC *arg3 = 0 ;
34396 wxRect *arg4 = 0 ;
34397 int arg5 = (int) 0 ;
34398 void *argp1 = 0 ;
34399 int res1 = 0 ;
34400 void *argp2 = 0 ;
34401 int res2 = 0 ;
34402 void *argp3 = 0 ;
34403 int res3 = 0 ;
34404 wxRect temp4 ;
34405 int val5 ;
34406 int ecode5 = 0 ;
34407 PyObject * obj0 = 0 ;
34408 PyObject * obj1 = 0 ;
34409 PyObject * obj2 = 0 ;
34410 PyObject * obj3 = 0 ;
34411 PyObject * obj4 = 0 ;
34412 char * kwnames[] = {
34413 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34414 };
34415
34416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34418 if (!SWIG_IsOK(res1)) {
34419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34420 }
34421 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34422 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34423 if (!SWIG_IsOK(res2)) {
34424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34425 }
34426 arg2 = reinterpret_cast< wxWindow * >(argp2);
34427 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34428 if (!SWIG_IsOK(res3)) {
34429 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34430 }
34431 if (!argp3) {
34432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34433 }
34434 arg3 = reinterpret_cast< wxDC * >(argp3);
34435 {
34436 arg4 = &temp4;
34437 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34438 }
34439 if (obj4) {
34440 ecode5 = SWIG_AsVal_int(obj4, &val5);
34441 if (!SWIG_IsOK(ecode5)) {
34442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34443 }
34444 arg5 = static_cast< int >(val5);
34445 }
34446 {
34447 PyThreadState* __tstate = wxPyBeginAllowThreads();
34448 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34449 wxPyEndAllowThreads(__tstate);
34450 if (PyErr_Occurred()) SWIG_fail;
34451 }
34452 resultobj = SWIG_Py_Void();
34453 return resultobj;
34454fail:
34455 return NULL;
34456}
34457
34458
34459SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34460 PyObject *resultobj = 0;
34461 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34462 wxWindow *arg2 = (wxWindow *) 0 ;
34463 wxDC *arg3 = 0 ;
34464 wxRect *arg4 = 0 ;
34465 int arg5 = (int) 0 ;
34466 void *argp1 = 0 ;
34467 int res1 = 0 ;
34468 void *argp2 = 0 ;
34469 int res2 = 0 ;
34470 void *argp3 = 0 ;
34471 int res3 = 0 ;
34472 wxRect temp4 ;
34473 int val5 ;
34474 int ecode5 = 0 ;
34475 PyObject * obj0 = 0 ;
34476 PyObject * obj1 = 0 ;
34477 PyObject * obj2 = 0 ;
34478 PyObject * obj3 = 0 ;
34479 PyObject * obj4 = 0 ;
34480 char * kwnames[] = {
34481 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34482 };
34483
34484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34486 if (!SWIG_IsOK(res1)) {
34487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34488 }
34489 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34490 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34491 if (!SWIG_IsOK(res2)) {
34492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34493 }
34494 arg2 = reinterpret_cast< wxWindow * >(argp2);
34495 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34496 if (!SWIG_IsOK(res3)) {
34497 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34498 }
34499 if (!argp3) {
34500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34501 }
34502 arg3 = reinterpret_cast< wxDC * >(argp3);
34503 {
34504 arg4 = &temp4;
34505 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34506 }
34507 if (obj4) {
34508 ecode5 = SWIG_AsVal_int(obj4, &val5);
34509 if (!SWIG_IsOK(ecode5)) {
34510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34511 }
34512 arg5 = static_cast< int >(val5);
34513 }
34514 {
34515 PyThreadState* __tstate = wxPyBeginAllowThreads();
34516 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34517 wxPyEndAllowThreads(__tstate);
34518 if (PyErr_Occurred()) SWIG_fail;
34519 }
34520 resultobj = SWIG_Py_Void();
34521 return resultobj;
34522fail:
34523 return NULL;
34524}
34525
34526
1bd55598
RD
34527SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34528 PyObject *resultobj = 0;
34529 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34530 wxWindow *arg2 = (wxWindow *) 0 ;
34531 SwigValueWrapper<wxSplitterRenderParams > result;
34532 void *argp1 = 0 ;
34533 int res1 = 0 ;
34534 void *argp2 = 0 ;
34535 int res2 = 0 ;
34536 PyObject * obj0 = 0 ;
34537 PyObject * obj1 = 0 ;
34538 char * kwnames[] = {
34539 (char *) "self",(char *) "win", NULL
34540 };
34541
34542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34544 if (!SWIG_IsOK(res1)) {
34545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34546 }
34547 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34549 if (!SWIG_IsOK(res2)) {
34550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34551 }
34552 arg2 = reinterpret_cast< wxWindow * >(argp2);
34553 {
34554 PyThreadState* __tstate = wxPyBeginAllowThreads();
34555 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34556 wxPyEndAllowThreads(__tstate);
34557 if (PyErr_Occurred()) SWIG_fail;
34558 }
34559 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34560 return resultobj;
34561fail:
34562 return NULL;
34563}
34564
34565
34566SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34567 PyObject *resultobj = 0;
34568 wxRendererNative *result = 0 ;
34569
34570 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34571 {
704eda0c 34572 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34573 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 34574 {
1bd55598
RD
34575 wxRendererNative &_result_ref = wxRendererNative::Get();
34576 result = (wxRendererNative *) &_result_ref;
36ed4f51 34577 }
1bd55598
RD
34578 wxPyEndAllowThreads(__tstate);
34579 if (PyErr_Occurred()) SWIG_fail;
34580 }
34581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34582 return resultobj;
34583fail:
34584 return NULL;
34585}
34586
34587
34588SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34589 PyObject *resultobj = 0;
34590 wxRendererNative *result = 0 ;
34591
34592 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34593 {
704eda0c 34594 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34595 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34596 {
1bd55598
RD
34597 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34598 result = (wxRendererNative *) &_result_ref;
be9b1dca 34599 }
1bd55598
RD
34600 wxPyEndAllowThreads(__tstate);
34601 if (PyErr_Occurred()) SWIG_fail;
34602 }
34603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34604 return resultobj;
34605fail:
34606 return NULL;
34607}
34608
34609
34610SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34611 PyObject *resultobj = 0;
34612 wxRendererNative *result = 0 ;
34613
34614 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34615 {
704eda0c 34616 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34617 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34618 {
1bd55598
RD
34619 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34620 result = (wxRendererNative *) &_result_ref;
be9b1dca 34621 }
1bd55598
RD
34622 wxPyEndAllowThreads(__tstate);
34623 if (PyErr_Occurred()) SWIG_fail;
34624 }
34625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34626 return resultobj;
34627fail:
34628 return NULL;
34629}
34630
34631
34632SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34633 PyObject *resultobj = 0;
34634 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34635 wxRendererNative *result = 0 ;
34636 void *argp1 = 0 ;
34637 int res1 = 0 ;
34638 PyObject * obj0 = 0 ;
34639 char * kwnames[] = {
34640 (char *) "renderer", NULL
34641 };
34642
34643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34645 if (!SWIG_IsOK(res1)) {
34646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34647 }
34648 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34649 {
704eda0c 34650 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
34651 PyThreadState* __tstate = wxPyBeginAllowThreads();
34652 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34653 wxPyEndAllowThreads(__tstate);
34654 if (PyErr_Occurred()) SWIG_fail;
34655 }
34656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34657 return resultobj;
34658fail:
34659 return NULL;
34660}
34661
34662
34663SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34664 PyObject *resultobj = 0;
34665 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34666 SwigValueWrapper<wxRendererVersion > result;
34667 void *argp1 = 0 ;
34668 int res1 = 0 ;
34669 PyObject *swig_obj[1] ;
34670
34671 if (!args) SWIG_fail;
34672 swig_obj[0] = args;
34673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34674 if (!SWIG_IsOK(res1)) {
34675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34676 }
34677 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34678 {
34679 PyThreadState* __tstate = wxPyBeginAllowThreads();
34680 result = ((wxRendererNative const *)arg1)->GetVersion();
34681 wxPyEndAllowThreads(__tstate);
34682 if (PyErr_Occurred()) SWIG_fail;
34683 }
34684 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34685 return resultobj;
34686fail:
34687 return NULL;
34688}
34689
34690
34691SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34692 PyObject *obj;
34693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34694 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34695 return SWIG_Py_Void();
34696}
34697
27e45892
RD
34698SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34699 PyObject *resultobj = 0;
34700 wxPseudoDC *result = 0 ;
34701
34702 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34703 {
34704 PyThreadState* __tstate = wxPyBeginAllowThreads();
34705 result = (wxPseudoDC *)new wxPseudoDC();
34706 wxPyEndAllowThreads(__tstate);
34707 if (PyErr_Occurred()) SWIG_fail;
34708 }
34709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34710 return resultobj;
34711fail:
34712 return NULL;
34713}
34714
34715
34716SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34717 PyObject *resultobj = 0;
34718 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34719 void *argp1 = 0 ;
34720 int res1 = 0 ;
34721 PyObject *swig_obj[1] ;
34722
34723 if (!args) SWIG_fail;
34724 swig_obj[0] = args;
34725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34726 if (!SWIG_IsOK(res1)) {
34727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34728 }
34729 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34730 {
34731 PyThreadState* __tstate = wxPyBeginAllowThreads();
34732 (arg1)->BeginDrawing();
34733 wxPyEndAllowThreads(__tstate);
34734 if (PyErr_Occurred()) SWIG_fail;
34735 }
34736 resultobj = SWIG_Py_Void();
34737 return resultobj;
34738fail:
34739 return NULL;
34740}
34741
34742
34743SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34744 PyObject *resultobj = 0;
34745 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34746 void *argp1 = 0 ;
34747 int res1 = 0 ;
34748 PyObject *swig_obj[1] ;
34749
34750 if (!args) SWIG_fail;
34751 swig_obj[0] = args;
34752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34753 if (!SWIG_IsOK(res1)) {
34754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34755 }
34756 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34757 {
34758 PyThreadState* __tstate = wxPyBeginAllowThreads();
34759 (arg1)->EndDrawing();
34760 wxPyEndAllowThreads(__tstate);
34761 if (PyErr_Occurred()) SWIG_fail;
34762 }
34763 resultobj = SWIG_Py_Void();
34764 return resultobj;
34765fail:
34766 return NULL;
34767}
34768
34769
34770SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34771 PyObject *resultobj = 0;
34772 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34773 void *argp1 = 0 ;
34774 int res1 = 0 ;
34775 PyObject *swig_obj[1] ;
34776
34777 if (!args) SWIG_fail;
34778 swig_obj[0] = args;
34779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34780 if (!SWIG_IsOK(res1)) {
34781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34782 }
34783 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34784 {
34785 PyThreadState* __tstate = wxPyBeginAllowThreads();
34786 delete arg1;
34787
34788 wxPyEndAllowThreads(__tstate);
34789 if (PyErr_Occurred()) SWIG_fail;
34790 }
34791 resultobj = SWIG_Py_Void();
34792 return resultobj;
34793fail:
34794 return NULL;
34795}
34796
34797
34798SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34799 PyObject *resultobj = 0;
34800 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34801 void *argp1 = 0 ;
34802 int res1 = 0 ;
34803 PyObject *swig_obj[1] ;
34804
34805 if (!args) SWIG_fail;
34806 swig_obj[0] = args;
34807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34808 if (!SWIG_IsOK(res1)) {
34809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34810 }
34811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34812 {
34813 PyThreadState* __tstate = wxPyBeginAllowThreads();
34814 (arg1)->RemoveAll();
34815 wxPyEndAllowThreads(__tstate);
34816 if (PyErr_Occurred()) SWIG_fail;
34817 }
34818 resultobj = SWIG_Py_Void();
34819 return resultobj;
34820fail:
34821 return NULL;
34822}
34823
34824
34825SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34826 PyObject *resultobj = 0;
34827 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34828 int result;
34829 void *argp1 = 0 ;
34830 int res1 = 0 ;
34831 PyObject *swig_obj[1] ;
34832
34833 if (!args) SWIG_fail;
34834 swig_obj[0] = args;
34835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34836 if (!SWIG_IsOK(res1)) {
34837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34838 }
34839 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34840 {
34841 PyThreadState* __tstate = wxPyBeginAllowThreads();
34842 result = (int)(arg1)->GetLen();
34843 wxPyEndAllowThreads(__tstate);
34844 if (PyErr_Occurred()) SWIG_fail;
34845 }
34846 resultobj = SWIG_From_int(static_cast< int >(result));
34847 return resultobj;
34848fail:
34849 return NULL;
34850}
34851
34852
34853SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34854 PyObject *resultobj = 0;
34855 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34856 int arg2 ;
34857 void *argp1 = 0 ;
34858 int res1 = 0 ;
34859 int val2 ;
34860 int ecode2 = 0 ;
34861 PyObject * obj0 = 0 ;
34862 PyObject * obj1 = 0 ;
34863 char * kwnames[] = {
34864 (char *) "self",(char *) "id", NULL
34865 };
34866
34867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
34868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34869 if (!SWIG_IsOK(res1)) {
34870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34871 }
34872 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34873 ecode2 = SWIG_AsVal_int(obj1, &val2);
34874 if (!SWIG_IsOK(ecode2)) {
34875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
34876 }
34877 arg2 = static_cast< int >(val2);
34878 {
34879 PyThreadState* __tstate = wxPyBeginAllowThreads();
34880 (arg1)->SetId(arg2);
34881 wxPyEndAllowThreads(__tstate);
34882 if (PyErr_Occurred()) SWIG_fail;
34883 }
34884 resultobj = SWIG_Py_Void();
34885 return resultobj;
34886fail:
34887 return NULL;
34888}
34889
34890
34891SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34892 PyObject *resultobj = 0;
34893 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34894 int arg2 ;
34895 void *argp1 = 0 ;
34896 int res1 = 0 ;
34897 int val2 ;
34898 int ecode2 = 0 ;
34899 PyObject * obj0 = 0 ;
34900 PyObject * obj1 = 0 ;
34901 char * kwnames[] = {
34902 (char *) "self",(char *) "id", NULL
34903 };
34904
34905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
34906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34907 if (!SWIG_IsOK(res1)) {
34908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34909 }
34910 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34911 ecode2 = SWIG_AsVal_int(obj1, &val2);
34912 if (!SWIG_IsOK(ecode2)) {
34913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
34914 }
34915 arg2 = static_cast< int >(val2);
34916 {
34917 PyThreadState* __tstate = wxPyBeginAllowThreads();
34918 (arg1)->ClearId(arg2);
34919 wxPyEndAllowThreads(__tstate);
34920 if (PyErr_Occurred()) SWIG_fail;
34921 }
34922 resultobj = SWIG_Py_Void();
34923 return resultobj;
34924fail:
34925 return NULL;
34926}
34927
34928
34929SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34930 PyObject *resultobj = 0;
34931 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34932 int arg2 ;
34933 void *argp1 = 0 ;
34934 int res1 = 0 ;
34935 int val2 ;
34936 int ecode2 = 0 ;
34937 PyObject * obj0 = 0 ;
34938 PyObject * obj1 = 0 ;
34939 char * kwnames[] = {
34940 (char *) "self",(char *) "id", NULL
34941 };
34942
34943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
34944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34945 if (!SWIG_IsOK(res1)) {
34946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34947 }
34948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34949 ecode2 = SWIG_AsVal_int(obj1, &val2);
34950 if (!SWIG_IsOK(ecode2)) {
34951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
34952 }
34953 arg2 = static_cast< int >(val2);
34954 {
34955 PyThreadState* __tstate = wxPyBeginAllowThreads();
34956 (arg1)->RemoveId(arg2);
34957 wxPyEndAllowThreads(__tstate);
34958 if (PyErr_Occurred()) SWIG_fail;
34959 }
34960 resultobj = SWIG_Py_Void();
34961 return resultobj;
34962fail:
34963 return NULL;
34964}
34965
34966
34967SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34968 PyObject *resultobj = 0;
34969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34970 int arg2 ;
34971 int arg3 ;
34972 int arg4 ;
34973 void *argp1 = 0 ;
34974 int res1 = 0 ;
34975 int val2 ;
34976 int ecode2 = 0 ;
34977 int val3 ;
34978 int ecode3 = 0 ;
34979 int val4 ;
34980 int ecode4 = 0 ;
34981 PyObject * obj0 = 0 ;
34982 PyObject * obj1 = 0 ;
34983 PyObject * obj2 = 0 ;
34984 PyObject * obj3 = 0 ;
34985 char * kwnames[] = {
34986 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
34987 };
34988
34989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34991 if (!SWIG_IsOK(res1)) {
34992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34993 }
34994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34995 ecode2 = SWIG_AsVal_int(obj1, &val2);
34996 if (!SWIG_IsOK(ecode2)) {
34997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
34998 }
34999 arg2 = static_cast< int >(val2);
35000 ecode3 = SWIG_AsVal_int(obj2, &val3);
35001 if (!SWIG_IsOK(ecode3)) {
35002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35003 }
35004 arg3 = static_cast< int >(val3);
35005 ecode4 = SWIG_AsVal_int(obj3, &val4);
35006 if (!SWIG_IsOK(ecode4)) {
35007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35008 }
35009 arg4 = static_cast< int >(val4);
35010 {
35011 PyThreadState* __tstate = wxPyBeginAllowThreads();
35012 (arg1)->TranslateId(arg2,arg3,arg4);
35013 wxPyEndAllowThreads(__tstate);
35014 if (PyErr_Occurred()) SWIG_fail;
35015 }
35016 resultobj = SWIG_Py_Void();
35017 return resultobj;
35018fail:
35019 return NULL;
35020}
35021
35022
72ef6efb
RD
35023SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35024 PyObject *resultobj = 0;
35025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35026 int arg2 ;
35027 bool arg3 = (bool) true ;
35028 void *argp1 = 0 ;
35029 int res1 = 0 ;
35030 int val2 ;
35031 int ecode2 = 0 ;
35032 bool val3 ;
35033 int ecode3 = 0 ;
35034 PyObject * obj0 = 0 ;
35035 PyObject * obj1 = 0 ;
35036 PyObject * obj2 = 0 ;
35037 char * kwnames[] = {
35038 (char *) "self",(char *) "id",(char *) "greyout", NULL
35039 };
35040
35041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35043 if (!SWIG_IsOK(res1)) {
35044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35045 }
35046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35047 ecode2 = SWIG_AsVal_int(obj1, &val2);
35048 if (!SWIG_IsOK(ecode2)) {
35049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35050 }
35051 arg2 = static_cast< int >(val2);
35052 if (obj2) {
35053 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35054 if (!SWIG_IsOK(ecode3)) {
35055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35056 }
35057 arg3 = static_cast< bool >(val3);
35058 }
35059 {
35060 PyThreadState* __tstate = wxPyBeginAllowThreads();
35061 (arg1)->SetIdGreyedOut(arg2,arg3);
35062 wxPyEndAllowThreads(__tstate);
35063 if (PyErr_Occurred()) SWIG_fail;
35064 }
35065 resultobj = SWIG_Py_Void();
35066 return resultobj;
35067fail:
35068 return NULL;
35069}
35070
35071
35072SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35073 PyObject *resultobj = 0;
35074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35075 int arg2 ;
35076 bool result;
35077 void *argp1 = 0 ;
35078 int res1 = 0 ;
35079 int val2 ;
35080 int ecode2 = 0 ;
35081 PyObject * obj0 = 0 ;
35082 PyObject * obj1 = 0 ;
35083 char * kwnames[] = {
35084 (char *) "self",(char *) "id", NULL
35085 };
35086
35087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35089 if (!SWIG_IsOK(res1)) {
35090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35091 }
35092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35093 ecode2 = SWIG_AsVal_int(obj1, &val2);
35094 if (!SWIG_IsOK(ecode2)) {
35095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35096 }
35097 arg2 = static_cast< int >(val2);
35098 {
35099 PyThreadState* __tstate = wxPyBeginAllowThreads();
35100 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35101 wxPyEndAllowThreads(__tstate);
35102 if (PyErr_Occurred()) SWIG_fail;
35103 }
35104 {
35105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35106 }
35107 return resultobj;
35108fail:
35109 return NULL;
35110}
35111
35112
35113SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35114 PyObject *resultobj = 0;
35115 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35116 int arg2 ;
35117 int arg3 ;
35118 int arg4 = (int) 1 ;
35119 wxColor const &arg5_defvalue = *wxWHITE ;
35120 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35121 PyObject *result = 0 ;
35122 void *argp1 = 0 ;
35123 int res1 = 0 ;
35124 int val2 ;
35125 int ecode2 = 0 ;
35126 int val3 ;
35127 int ecode3 = 0 ;
35128 int val4 ;
35129 int ecode4 = 0 ;
35130 void *argp5 = 0 ;
35131 int res5 = 0 ;
35132 PyObject * obj0 = 0 ;
35133 PyObject * obj1 = 0 ;
35134 PyObject * obj2 = 0 ;
35135 PyObject * obj3 = 0 ;
35136 PyObject * obj4 = 0 ;
35137 char * kwnames[] = {
35138 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35139 };
35140
35141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35143 if (!SWIG_IsOK(res1)) {
35144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35145 }
35146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35147 ecode2 = SWIG_AsVal_int(obj1, &val2);
35148 if (!SWIG_IsOK(ecode2)) {
35149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35150 }
35151 arg2 = static_cast< int >(val2);
35152 ecode3 = SWIG_AsVal_int(obj2, &val3);
35153 if (!SWIG_IsOK(ecode3)) {
35154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35155 }
35156 arg3 = static_cast< int >(val3);
35157 if (obj3) {
35158 ecode4 = SWIG_AsVal_int(obj3, &val4);
35159 if (!SWIG_IsOK(ecode4)) {
35160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35161 }
35162 arg4 = static_cast< int >(val4);
35163 }
35164 if (obj4) {
35165 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35166 if (!SWIG_IsOK(res5)) {
35167 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35168 }
35169 if (!argp5) {
35170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35171 }
35172 arg5 = reinterpret_cast< wxColor * >(argp5);
35173 }
35174 {
35175 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35176 if (PyErr_Occurred()) SWIG_fail;
35177 }
35178 resultobj = result;
35179 return resultobj;
35180fail:
35181 return NULL;
35182}
35183
35184
35185SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35186 PyObject *resultobj = 0;
35187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35188 int arg2 ;
35189 int arg3 ;
35190 PyObject *result = 0 ;
35191 void *argp1 = 0 ;
35192 int res1 = 0 ;
35193 int val2 ;
35194 int ecode2 = 0 ;
35195 int val3 ;
35196 int ecode3 = 0 ;
35197 PyObject * obj0 = 0 ;
35198 PyObject * obj1 = 0 ;
35199 PyObject * obj2 = 0 ;
35200 char * kwnames[] = {
35201 (char *) "self",(char *) "x",(char *) "y", NULL
35202 };
35203
35204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35206 if (!SWIG_IsOK(res1)) {
35207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35208 }
35209 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35210 ecode2 = SWIG_AsVal_int(obj1, &val2);
35211 if (!SWIG_IsOK(ecode2)) {
35212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35213 }
35214 arg2 = static_cast< int >(val2);
35215 ecode3 = SWIG_AsVal_int(obj2, &val3);
35216 if (!SWIG_IsOK(ecode3)) {
35217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35218 }
35219 arg3 = static_cast< int >(val3);
35220 {
35221 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35222 if (PyErr_Occurred()) SWIG_fail;
35223 }
35224 resultobj = result;
35225 return resultobj;
35226fail:
35227 return NULL;
35228}
35229
35230
27e45892
RD
35231SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35232 PyObject *resultobj = 0;
35233 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35234 int arg2 ;
35235 wxDC *arg3 = (wxDC *) 0 ;
35236 void *argp1 = 0 ;
35237 int res1 = 0 ;
35238 int val2 ;
35239 int ecode2 = 0 ;
35240 void *argp3 = 0 ;
35241 int res3 = 0 ;
35242 PyObject * obj0 = 0 ;
35243 PyObject * obj1 = 0 ;
35244 PyObject * obj2 = 0 ;
35245 char * kwnames[] = {
35246 (char *) "self",(char *) "id",(char *) "dc", NULL
35247 };
35248
35249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35251 if (!SWIG_IsOK(res1)) {
35252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35253 }
35254 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35255 ecode2 = SWIG_AsVal_int(obj1, &val2);
35256 if (!SWIG_IsOK(ecode2)) {
35257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35258 }
35259 arg2 = static_cast< int >(val2);
35260 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35261 if (!SWIG_IsOK(res3)) {
35262 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35263 }
35264 arg3 = reinterpret_cast< wxDC * >(argp3);
35265 {
35266 PyThreadState* __tstate = wxPyBeginAllowThreads();
35267 (arg1)->DrawIdToDC(arg2,arg3);
35268 wxPyEndAllowThreads(__tstate);
35269 if (PyErr_Occurred()) SWIG_fail;
35270 }
35271 resultobj = SWIG_Py_Void();
35272 return resultobj;
35273fail:
35274 return NULL;
35275}
35276
35277
35278SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35279 PyObject *resultobj = 0;
35280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35281 int arg2 ;
35282 wxRect *arg3 = 0 ;
35283 void *argp1 = 0 ;
35284 int res1 = 0 ;
35285 int val2 ;
35286 int ecode2 = 0 ;
35287 wxRect temp3 ;
35288 PyObject * obj0 = 0 ;
35289 PyObject * obj1 = 0 ;
35290 PyObject * obj2 = 0 ;
35291 char * kwnames[] = {
35292 (char *) "self",(char *) "id",(char *) "rect", NULL
35293 };
35294
35295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35297 if (!SWIG_IsOK(res1)) {
35298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35299 }
35300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35301 ecode2 = SWIG_AsVal_int(obj1, &val2);
35302 if (!SWIG_IsOK(ecode2)) {
35303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35304 }
35305 arg2 = static_cast< int >(val2);
35306 {
35307 arg3 = &temp3;
35308 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35309 }
35310 {
35311 PyThreadState* __tstate = wxPyBeginAllowThreads();
35312 (arg1)->SetIdBounds(arg2,*arg3);
35313 wxPyEndAllowThreads(__tstate);
35314 if (PyErr_Occurred()) SWIG_fail;
35315 }
35316 resultobj = SWIG_Py_Void();
35317 return resultobj;
35318fail:
35319 return NULL;
35320}
35321
35322
35323SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35324 PyObject *resultobj = 0;
35325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35326 int arg2 ;
35327 wxRect result;
35328 void *argp1 = 0 ;
35329 int res1 = 0 ;
35330 int val2 ;
35331 int ecode2 = 0 ;
35332 PyObject * obj0 = 0 ;
35333 PyObject * obj1 = 0 ;
35334 char * kwnames[] = {
35335 (char *) "self",(char *) "id", NULL
35336 };
35337
35338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35340 if (!SWIG_IsOK(res1)) {
35341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35342 }
35343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35344 ecode2 = SWIG_AsVal_int(obj1, &val2);
35345 if (!SWIG_IsOK(ecode2)) {
35346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35347 }
35348 arg2 = static_cast< int >(val2);
35349 {
35350 PyThreadState* __tstate = wxPyBeginAllowThreads();
35351 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35352 wxPyEndAllowThreads(__tstate);
35353 if (PyErr_Occurred()) SWIG_fail;
35354 }
35355 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35356 return resultobj;
35357fail:
35358 return NULL;
35359}
35360
35361
35362SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35363 PyObject *resultobj = 0;
35364 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35365 wxDC *arg2 = (wxDC *) 0 ;
35366 wxRect *arg3 = 0 ;
35367 void *argp1 = 0 ;
35368 int res1 = 0 ;
35369 void *argp2 = 0 ;
35370 int res2 = 0 ;
35371 wxRect temp3 ;
35372 PyObject * obj0 = 0 ;
35373 PyObject * obj1 = 0 ;
35374 PyObject * obj2 = 0 ;
35375 char * kwnames[] = {
35376 (char *) "self",(char *) "dc",(char *) "rect", NULL
35377 };
35378
35379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35381 if (!SWIG_IsOK(res1)) {
35382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35383 }
35384 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35386 if (!SWIG_IsOK(res2)) {
35387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35388 }
35389 arg2 = reinterpret_cast< wxDC * >(argp2);
35390 {
35391 arg3 = &temp3;
35392 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35393 }
35394 {
35395 PyThreadState* __tstate = wxPyBeginAllowThreads();
35396 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35397 wxPyEndAllowThreads(__tstate);
35398 if (PyErr_Occurred()) SWIG_fail;
35399 }
35400 resultobj = SWIG_Py_Void();
35401 return resultobj;
35402fail:
35403 return NULL;
35404}
35405
35406
35407SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35408 PyObject *resultobj = 0;
35409 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35410 wxDC *arg2 = (wxDC *) 0 ;
35411 wxRegion *arg3 = 0 ;
35412 void *argp1 = 0 ;
35413 int res1 = 0 ;
35414 void *argp2 = 0 ;
35415 int res2 = 0 ;
35416 void *argp3 = 0 ;
35417 int res3 = 0 ;
35418 PyObject * obj0 = 0 ;
35419 PyObject * obj1 = 0 ;
35420 PyObject * obj2 = 0 ;
35421 char * kwnames[] = {
35422 (char *) "self",(char *) "dc",(char *) "region", NULL
35423 };
35424
35425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35427 if (!SWIG_IsOK(res1)) {
35428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35429 }
35430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35431 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35432 if (!SWIG_IsOK(res2)) {
35433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35434 }
35435 arg2 = reinterpret_cast< wxDC * >(argp2);
35436 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35437 if (!SWIG_IsOK(res3)) {
35438 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35439 }
35440 if (!argp3) {
35441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35442 }
35443 arg3 = reinterpret_cast< wxRegion * >(argp3);
35444 {
35445 PyThreadState* __tstate = wxPyBeginAllowThreads();
35446 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35447 wxPyEndAllowThreads(__tstate);
35448 if (PyErr_Occurred()) SWIG_fail;
35449 }
35450 resultobj = SWIG_Py_Void();
35451 return resultobj;
35452fail:
35453 return NULL;
35454}
35455
35456
35457SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35458 PyObject *resultobj = 0;
35459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35460 wxDC *arg2 = (wxDC *) 0 ;
35461 void *argp1 = 0 ;
35462 int res1 = 0 ;
35463 void *argp2 = 0 ;
35464 int res2 = 0 ;
35465 PyObject * obj0 = 0 ;
35466 PyObject * obj1 = 0 ;
35467 char * kwnames[] = {
35468 (char *) "self",(char *) "dc", NULL
35469 };
35470
35471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35473 if (!SWIG_IsOK(res1)) {
35474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35475 }
35476 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35477 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35478 if (!SWIG_IsOK(res2)) {
35479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35480 }
35481 arg2 = reinterpret_cast< wxDC * >(argp2);
35482 {
35483 PyThreadState* __tstate = wxPyBeginAllowThreads();
35484 (arg1)->DrawToDC(arg2);
35485 wxPyEndAllowThreads(__tstate);
35486 if (PyErr_Occurred()) SWIG_fail;
35487 }
35488 resultobj = SWIG_Py_Void();
35489 return resultobj;
35490fail:
35491 return NULL;
35492}
35493
35494
35495SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35496 PyObject *resultobj = 0;
35497 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35498 int arg2 ;
35499 int arg3 ;
35500 wxColour *arg4 = 0 ;
35501 int arg5 = (int) wxFLOOD_SURFACE ;
35502 void *argp1 = 0 ;
35503 int res1 = 0 ;
35504 int val2 ;
35505 int ecode2 = 0 ;
35506 int val3 ;
35507 int ecode3 = 0 ;
35508 wxColour temp4 ;
35509 int val5 ;
35510 int ecode5 = 0 ;
35511 PyObject * obj0 = 0 ;
35512 PyObject * obj1 = 0 ;
35513 PyObject * obj2 = 0 ;
35514 PyObject * obj3 = 0 ;
35515 PyObject * obj4 = 0 ;
35516 char * kwnames[] = {
35517 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35518 };
35519
35520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35522 if (!SWIG_IsOK(res1)) {
35523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35524 }
35525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35526 ecode2 = SWIG_AsVal_int(obj1, &val2);
35527 if (!SWIG_IsOK(ecode2)) {
35528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35529 }
35530 arg2 = static_cast< int >(val2);
35531 ecode3 = SWIG_AsVal_int(obj2, &val3);
35532 if (!SWIG_IsOK(ecode3)) {
35533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35534 }
35535 arg3 = static_cast< int >(val3);
35536 {
35537 arg4 = &temp4;
35538 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35539 }
35540 if (obj4) {
35541 ecode5 = SWIG_AsVal_int(obj4, &val5);
35542 if (!SWIG_IsOK(ecode5)) {
35543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35544 }
35545 arg5 = static_cast< int >(val5);
35546 }
35547 {
35548 PyThreadState* __tstate = wxPyBeginAllowThreads();
35549 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35550 wxPyEndAllowThreads(__tstate);
35551 if (PyErr_Occurred()) SWIG_fail;
35552 }
35553 resultobj = SWIG_Py_Void();
35554 return resultobj;
35555fail:
35556 return NULL;
35557}
35558
35559
35560SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35561 PyObject *resultobj = 0;
35562 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35563 wxPoint *arg2 = 0 ;
35564 wxColour *arg3 = 0 ;
35565 int arg4 = (int) wxFLOOD_SURFACE ;
35566 void *argp1 = 0 ;
35567 int res1 = 0 ;
35568 wxPoint temp2 ;
35569 wxColour temp3 ;
35570 int val4 ;
35571 int ecode4 = 0 ;
35572 PyObject * obj0 = 0 ;
35573 PyObject * obj1 = 0 ;
35574 PyObject * obj2 = 0 ;
35575 PyObject * obj3 = 0 ;
35576 char * kwnames[] = {
35577 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35578 };
35579
35580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35582 if (!SWIG_IsOK(res1)) {
35583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35584 }
35585 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35586 {
35587 arg2 = &temp2;
35588 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35589 }
35590 {
35591 arg3 = &temp3;
35592 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35593 }
35594 if (obj3) {
35595 ecode4 = SWIG_AsVal_int(obj3, &val4);
35596 if (!SWIG_IsOK(ecode4)) {
35597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35598 }
35599 arg4 = static_cast< int >(val4);
35600 }
35601 {
35602 PyThreadState* __tstate = wxPyBeginAllowThreads();
35603 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35604 wxPyEndAllowThreads(__tstate);
35605 if (PyErr_Occurred()) SWIG_fail;
35606 }
35607 resultobj = SWIG_Py_Void();
35608 return resultobj;
35609fail:
35610 return NULL;
35611}
35612
35613
35614SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35615 PyObject *resultobj = 0;
35616 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35617 int arg2 ;
35618 int arg3 ;
35619 int arg4 ;
35620 int arg5 ;
35621 void *argp1 = 0 ;
35622 int res1 = 0 ;
35623 int val2 ;
35624 int ecode2 = 0 ;
35625 int val3 ;
35626 int ecode3 = 0 ;
35627 int val4 ;
35628 int ecode4 = 0 ;
35629 int val5 ;
35630 int ecode5 = 0 ;
35631 PyObject * obj0 = 0 ;
35632 PyObject * obj1 = 0 ;
35633 PyObject * obj2 = 0 ;
35634 PyObject * obj3 = 0 ;
35635 PyObject * obj4 = 0 ;
35636 char * kwnames[] = {
35637 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35638 };
35639
35640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35642 if (!SWIG_IsOK(res1)) {
35643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35644 }
35645 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35646 ecode2 = SWIG_AsVal_int(obj1, &val2);
35647 if (!SWIG_IsOK(ecode2)) {
35648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35649 }
35650 arg2 = static_cast< int >(val2);
35651 ecode3 = SWIG_AsVal_int(obj2, &val3);
35652 if (!SWIG_IsOK(ecode3)) {
35653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35654 }
35655 arg3 = static_cast< int >(val3);
35656 ecode4 = SWIG_AsVal_int(obj3, &val4);
35657 if (!SWIG_IsOK(ecode4)) {
35658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35659 }
35660 arg4 = static_cast< int >(val4);
35661 ecode5 = SWIG_AsVal_int(obj4, &val5);
35662 if (!SWIG_IsOK(ecode5)) {
35663 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35664 }
35665 arg5 = static_cast< int >(val5);
35666 {
35667 PyThreadState* __tstate = wxPyBeginAllowThreads();
35668 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35669 wxPyEndAllowThreads(__tstate);
35670 if (PyErr_Occurred()) SWIG_fail;
35671 }
35672 resultobj = SWIG_Py_Void();
35673 return resultobj;
35674fail:
35675 return NULL;
35676}
35677
35678
35679SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35680 PyObject *resultobj = 0;
35681 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35682 wxPoint *arg2 = 0 ;
35683 wxPoint *arg3 = 0 ;
35684 void *argp1 = 0 ;
35685 int res1 = 0 ;
35686 wxPoint temp2 ;
35687 wxPoint temp3 ;
35688 PyObject * obj0 = 0 ;
35689 PyObject * obj1 = 0 ;
35690 PyObject * obj2 = 0 ;
35691 char * kwnames[] = {
35692 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35693 };
35694
35695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35697 if (!SWIG_IsOK(res1)) {
35698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35699 }
35700 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35701 {
35702 arg2 = &temp2;
35703 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35704 }
35705 {
35706 arg3 = &temp3;
35707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35708 }
35709 {
35710 PyThreadState* __tstate = wxPyBeginAllowThreads();
35711 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35712 wxPyEndAllowThreads(__tstate);
35713 if (PyErr_Occurred()) SWIG_fail;
35714 }
35715 resultobj = SWIG_Py_Void();
35716 return resultobj;
35717fail:
35718 return NULL;
35719}
35720
35721
35722SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35723 PyObject *resultobj = 0;
35724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35725 int arg2 ;
35726 int arg3 ;
35727 void *argp1 = 0 ;
35728 int res1 = 0 ;
35729 int val2 ;
35730 int ecode2 = 0 ;
35731 int val3 ;
35732 int ecode3 = 0 ;
35733 PyObject * obj0 = 0 ;
35734 PyObject * obj1 = 0 ;
35735 PyObject * obj2 = 0 ;
35736 char * kwnames[] = {
35737 (char *) "self",(char *) "x",(char *) "y", NULL
35738 };
35739
35740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35742 if (!SWIG_IsOK(res1)) {
35743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35744 }
35745 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35746 ecode2 = SWIG_AsVal_int(obj1, &val2);
35747 if (!SWIG_IsOK(ecode2)) {
35748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35749 }
35750 arg2 = static_cast< int >(val2);
35751 ecode3 = SWIG_AsVal_int(obj2, &val3);
35752 if (!SWIG_IsOK(ecode3)) {
35753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35754 }
35755 arg3 = static_cast< int >(val3);
35756 {
35757 PyThreadState* __tstate = wxPyBeginAllowThreads();
35758 (arg1)->CrossHair(arg2,arg3);
35759 wxPyEndAllowThreads(__tstate);
35760 if (PyErr_Occurred()) SWIG_fail;
35761 }
35762 resultobj = SWIG_Py_Void();
35763 return resultobj;
35764fail:
35765 return NULL;
35766}
35767
35768
35769SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35770 PyObject *resultobj = 0;
35771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35772 wxPoint *arg2 = 0 ;
35773 void *argp1 = 0 ;
35774 int res1 = 0 ;
35775 wxPoint temp2 ;
35776 PyObject * obj0 = 0 ;
35777 PyObject * obj1 = 0 ;
35778 char * kwnames[] = {
35779 (char *) "self",(char *) "pt", NULL
35780 };
35781
35782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35784 if (!SWIG_IsOK(res1)) {
35785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35786 }
35787 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35788 {
35789 arg2 = &temp2;
35790 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35791 }
35792 {
35793 PyThreadState* __tstate = wxPyBeginAllowThreads();
35794 (arg1)->CrossHair((wxPoint const &)*arg2);
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 resultobj = SWIG_Py_Void();
35799 return resultobj;
35800fail:
35801 return NULL;
35802}
35803
35804
35805SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35806 PyObject *resultobj = 0;
35807 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35808 int arg2 ;
35809 int arg3 ;
35810 int arg4 ;
35811 int arg5 ;
35812 int arg6 ;
35813 int arg7 ;
35814 void *argp1 = 0 ;
35815 int res1 = 0 ;
35816 int val2 ;
35817 int ecode2 = 0 ;
35818 int val3 ;
35819 int ecode3 = 0 ;
35820 int val4 ;
35821 int ecode4 = 0 ;
35822 int val5 ;
35823 int ecode5 = 0 ;
35824 int val6 ;
35825 int ecode6 = 0 ;
35826 int val7 ;
35827 int ecode7 = 0 ;
35828 PyObject * obj0 = 0 ;
35829 PyObject * obj1 = 0 ;
35830 PyObject * obj2 = 0 ;
35831 PyObject * obj3 = 0 ;
35832 PyObject * obj4 = 0 ;
35833 PyObject * obj5 = 0 ;
35834 PyObject * obj6 = 0 ;
35835 char * kwnames[] = {
35836 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35837 };
35838
35839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35841 if (!SWIG_IsOK(res1)) {
35842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35843 }
35844 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35845 ecode2 = SWIG_AsVal_int(obj1, &val2);
35846 if (!SWIG_IsOK(ecode2)) {
35847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
35848 }
35849 arg2 = static_cast< int >(val2);
35850 ecode3 = SWIG_AsVal_int(obj2, &val3);
35851 if (!SWIG_IsOK(ecode3)) {
35852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
35853 }
35854 arg3 = static_cast< int >(val3);
35855 ecode4 = SWIG_AsVal_int(obj3, &val4);
35856 if (!SWIG_IsOK(ecode4)) {
35857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
35858 }
35859 arg4 = static_cast< int >(val4);
35860 ecode5 = SWIG_AsVal_int(obj4, &val5);
35861 if (!SWIG_IsOK(ecode5)) {
35862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
35863 }
35864 arg5 = static_cast< int >(val5);
35865 ecode6 = SWIG_AsVal_int(obj5, &val6);
35866 if (!SWIG_IsOK(ecode6)) {
35867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
35868 }
35869 arg6 = static_cast< int >(val6);
35870 ecode7 = SWIG_AsVal_int(obj6, &val7);
35871 if (!SWIG_IsOK(ecode7)) {
35872 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
35873 }
35874 arg7 = static_cast< int >(val7);
35875 {
35876 PyThreadState* __tstate = wxPyBeginAllowThreads();
35877 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
35878 wxPyEndAllowThreads(__tstate);
35879 if (PyErr_Occurred()) SWIG_fail;
35880 }
35881 resultobj = SWIG_Py_Void();
35882 return resultobj;
35883fail:
35884 return NULL;
35885}
35886
35887
35888SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35889 PyObject *resultobj = 0;
35890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35891 wxPoint *arg2 = 0 ;
35892 wxPoint *arg3 = 0 ;
35893 wxPoint *arg4 = 0 ;
35894 void *argp1 = 0 ;
35895 int res1 = 0 ;
35896 wxPoint temp2 ;
35897 wxPoint temp3 ;
35898 wxPoint temp4 ;
35899 PyObject * obj0 = 0 ;
35900 PyObject * obj1 = 0 ;
35901 PyObject * obj2 = 0 ;
35902 PyObject * obj3 = 0 ;
35903 char * kwnames[] = {
35904 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
35905 };
35906
35907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35909 if (!SWIG_IsOK(res1)) {
35910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35911 }
35912 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35913 {
35914 arg2 = &temp2;
35915 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35916 }
35917 {
35918 arg3 = &temp3;
35919 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35920 }
35921 {
35922 arg4 = &temp4;
35923 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
35924 }
35925 {
35926 PyThreadState* __tstate = wxPyBeginAllowThreads();
35927 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
35928 wxPyEndAllowThreads(__tstate);
35929 if (PyErr_Occurred()) SWIG_fail;
35930 }
35931 resultobj = SWIG_Py_Void();
35932 return resultobj;
35933fail:
35934 return NULL;
35935}
35936
35937
35938SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35939 PyObject *resultobj = 0;
35940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35941 int arg2 ;
35942 int arg3 ;
35943 int arg4 ;
35944 int arg5 ;
35945 void *argp1 = 0 ;
35946 int res1 = 0 ;
35947 int val2 ;
35948 int ecode2 = 0 ;
35949 int val3 ;
35950 int ecode3 = 0 ;
35951 int val4 ;
35952 int ecode4 = 0 ;
35953 int val5 ;
35954 int ecode5 = 0 ;
35955 PyObject * obj0 = 0 ;
35956 PyObject * obj1 = 0 ;
35957 PyObject * obj2 = 0 ;
35958 PyObject * obj3 = 0 ;
35959 PyObject * obj4 = 0 ;
35960 char * kwnames[] = {
35961 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35962 };
35963
35964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35966 if (!SWIG_IsOK(res1)) {
35967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35968 }
35969 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35970 ecode2 = SWIG_AsVal_int(obj1, &val2);
35971 if (!SWIG_IsOK(ecode2)) {
35972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
35973 }
35974 arg2 = static_cast< int >(val2);
35975 ecode3 = SWIG_AsVal_int(obj2, &val3);
35976 if (!SWIG_IsOK(ecode3)) {
35977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
35978 }
35979 arg3 = static_cast< int >(val3);
35980 ecode4 = SWIG_AsVal_int(obj3, &val4);
35981 if (!SWIG_IsOK(ecode4)) {
35982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
35983 }
35984 arg4 = static_cast< int >(val4);
35985 ecode5 = SWIG_AsVal_int(obj4, &val5);
35986 if (!SWIG_IsOK(ecode5)) {
35987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
35988 }
35989 arg5 = static_cast< int >(val5);
35990 {
35991 PyThreadState* __tstate = wxPyBeginAllowThreads();
35992 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
35993 wxPyEndAllowThreads(__tstate);
35994 if (PyErr_Occurred()) SWIG_fail;
35995 }
35996 resultobj = SWIG_Py_Void();
35997 return resultobj;
35998fail:
35999 return NULL;
36000}
36001
36002
36003SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36004 PyObject *resultobj = 0;
36005 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36006 wxRect *arg2 = 0 ;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 wxRect temp2 ;
36010 PyObject * obj0 = 0 ;
36011 PyObject * obj1 = 0 ;
36012 char * kwnames[] = {
36013 (char *) "self",(char *) "rect", NULL
36014 };
36015
36016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36018 if (!SWIG_IsOK(res1)) {
36019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36020 }
36021 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36022 {
36023 arg2 = &temp2;
36024 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36025 }
36026 {
36027 PyThreadState* __tstate = wxPyBeginAllowThreads();
36028 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36029 wxPyEndAllowThreads(__tstate);
36030 if (PyErr_Occurred()) SWIG_fail;
36031 }
36032 resultobj = SWIG_Py_Void();
36033 return resultobj;
36034fail:
36035 return NULL;
36036}
36037
36038
36039SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36040 PyObject *resultobj = 0;
36041 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36042 int arg2 ;
36043 int arg3 ;
36044 int arg4 ;
36045 int arg5 ;
36046 double arg6 ;
36047 double arg7 ;
36048 void *argp1 = 0 ;
36049 int res1 = 0 ;
36050 int val2 ;
36051 int ecode2 = 0 ;
36052 int val3 ;
36053 int ecode3 = 0 ;
36054 int val4 ;
36055 int ecode4 = 0 ;
36056 int val5 ;
36057 int ecode5 = 0 ;
36058 double val6 ;
36059 int ecode6 = 0 ;
36060 double val7 ;
36061 int ecode7 = 0 ;
36062 PyObject * obj0 = 0 ;
36063 PyObject * obj1 = 0 ;
36064 PyObject * obj2 = 0 ;
36065 PyObject * obj3 = 0 ;
36066 PyObject * obj4 = 0 ;
36067 PyObject * obj5 = 0 ;
36068 PyObject * obj6 = 0 ;
36069 char * kwnames[] = {
36070 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36071 };
36072
36073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36075 if (!SWIG_IsOK(res1)) {
36076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36077 }
36078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36079 ecode2 = SWIG_AsVal_int(obj1, &val2);
36080 if (!SWIG_IsOK(ecode2)) {
36081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36082 }
36083 arg2 = static_cast< int >(val2);
36084 ecode3 = SWIG_AsVal_int(obj2, &val3);
36085 if (!SWIG_IsOK(ecode3)) {
36086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36087 }
36088 arg3 = static_cast< int >(val3);
36089 ecode4 = SWIG_AsVal_int(obj3, &val4);
36090 if (!SWIG_IsOK(ecode4)) {
36091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36092 }
36093 arg4 = static_cast< int >(val4);
36094 ecode5 = SWIG_AsVal_int(obj4, &val5);
36095 if (!SWIG_IsOK(ecode5)) {
36096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36097 }
36098 arg5 = static_cast< int >(val5);
36099 ecode6 = SWIG_AsVal_double(obj5, &val6);
36100 if (!SWIG_IsOK(ecode6)) {
36101 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36102 }
36103 arg6 = static_cast< double >(val6);
36104 ecode7 = SWIG_AsVal_double(obj6, &val7);
36105 if (!SWIG_IsOK(ecode7)) {
36106 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36107 }
36108 arg7 = static_cast< double >(val7);
36109 {
36110 PyThreadState* __tstate = wxPyBeginAllowThreads();
36111 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36112 wxPyEndAllowThreads(__tstate);
36113 if (PyErr_Occurred()) SWIG_fail;
36114 }
36115 resultobj = SWIG_Py_Void();
36116 return resultobj;
36117fail:
36118 return NULL;
36119}
36120
36121
36122SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36123 PyObject *resultobj = 0;
36124 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36125 wxPoint *arg2 = 0 ;
36126 wxSize *arg3 = 0 ;
36127 double arg4 ;
36128 double arg5 ;
36129 void *argp1 = 0 ;
36130 int res1 = 0 ;
36131 wxPoint temp2 ;
36132 wxSize temp3 ;
36133 double val4 ;
36134 int ecode4 = 0 ;
36135 double val5 ;
36136 int ecode5 = 0 ;
36137 PyObject * obj0 = 0 ;
36138 PyObject * obj1 = 0 ;
36139 PyObject * obj2 = 0 ;
36140 PyObject * obj3 = 0 ;
36141 PyObject * obj4 = 0 ;
36142 char * kwnames[] = {
36143 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36144 };
36145
36146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36148 if (!SWIG_IsOK(res1)) {
36149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36150 }
36151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36152 {
36153 arg2 = &temp2;
36154 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36155 }
36156 {
36157 arg3 = &temp3;
36158 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36159 }
36160 ecode4 = SWIG_AsVal_double(obj3, &val4);
36161 if (!SWIG_IsOK(ecode4)) {
36162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36163 }
36164 arg4 = static_cast< double >(val4);
36165 ecode5 = SWIG_AsVal_double(obj4, &val5);
36166 if (!SWIG_IsOK(ecode5)) {
36167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36168 }
36169 arg5 = static_cast< double >(val5);
36170 {
36171 PyThreadState* __tstate = wxPyBeginAllowThreads();
36172 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36173 wxPyEndAllowThreads(__tstate);
36174 if (PyErr_Occurred()) SWIG_fail;
36175 }
36176 resultobj = SWIG_Py_Void();
36177 return resultobj;
36178fail:
36179 return NULL;
36180}
36181
36182
36183SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj = 0;
36185 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36186 int arg2 ;
36187 int arg3 ;
36188 void *argp1 = 0 ;
36189 int res1 = 0 ;
36190 int val2 ;
36191 int ecode2 = 0 ;
36192 int val3 ;
36193 int ecode3 = 0 ;
36194 PyObject * obj0 = 0 ;
36195 PyObject * obj1 = 0 ;
36196 PyObject * obj2 = 0 ;
36197 char * kwnames[] = {
36198 (char *) "self",(char *) "x",(char *) "y", NULL
36199 };
36200
36201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36203 if (!SWIG_IsOK(res1)) {
36204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36205 }
36206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36207 ecode2 = SWIG_AsVal_int(obj1, &val2);
36208 if (!SWIG_IsOK(ecode2)) {
36209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36210 }
36211 arg2 = static_cast< int >(val2);
36212 ecode3 = SWIG_AsVal_int(obj2, &val3);
36213 if (!SWIG_IsOK(ecode3)) {
36214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36215 }
36216 arg3 = static_cast< int >(val3);
36217 {
36218 PyThreadState* __tstate = wxPyBeginAllowThreads();
36219 (arg1)->DrawPoint(arg2,arg3);
36220 wxPyEndAllowThreads(__tstate);
36221 if (PyErr_Occurred()) SWIG_fail;
36222 }
36223 resultobj = SWIG_Py_Void();
36224 return resultobj;
36225fail:
36226 return NULL;
36227}
36228
36229
36230SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36231 PyObject *resultobj = 0;
36232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36233 wxPoint *arg2 = 0 ;
36234 void *argp1 = 0 ;
36235 int res1 = 0 ;
36236 wxPoint temp2 ;
36237 PyObject * obj0 = 0 ;
36238 PyObject * obj1 = 0 ;
36239 char * kwnames[] = {
36240 (char *) "self",(char *) "pt", NULL
36241 };
36242
36243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36245 if (!SWIG_IsOK(res1)) {
36246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36247 }
36248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36249 {
36250 arg2 = &temp2;
36251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36252 }
36253 {
36254 PyThreadState* __tstate = wxPyBeginAllowThreads();
36255 (arg1)->DrawPoint((wxPoint const &)*arg2);
36256 wxPyEndAllowThreads(__tstate);
36257 if (PyErr_Occurred()) SWIG_fail;
36258 }
36259 resultobj = SWIG_Py_Void();
36260 return resultobj;
36261fail:
36262 return NULL;
36263}
36264
36265
36266SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36267 PyObject *resultobj = 0;
36268 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36269 int arg2 ;
36270 int arg3 ;
36271 int arg4 ;
36272 int arg5 ;
36273 void *argp1 = 0 ;
36274 int res1 = 0 ;
36275 int val2 ;
36276 int ecode2 = 0 ;
36277 int val3 ;
36278 int ecode3 = 0 ;
36279 int val4 ;
36280 int ecode4 = 0 ;
36281 int val5 ;
36282 int ecode5 = 0 ;
36283 PyObject * obj0 = 0 ;
36284 PyObject * obj1 = 0 ;
36285 PyObject * obj2 = 0 ;
36286 PyObject * obj3 = 0 ;
36287 PyObject * obj4 = 0 ;
36288 char * kwnames[] = {
36289 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36290 };
36291
36292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36294 if (!SWIG_IsOK(res1)) {
36295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36296 }
36297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36298 ecode2 = SWIG_AsVal_int(obj1, &val2);
36299 if (!SWIG_IsOK(ecode2)) {
36300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36301 }
36302 arg2 = static_cast< int >(val2);
36303 ecode3 = SWIG_AsVal_int(obj2, &val3);
36304 if (!SWIG_IsOK(ecode3)) {
36305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36306 }
36307 arg3 = static_cast< int >(val3);
36308 ecode4 = SWIG_AsVal_int(obj3, &val4);
36309 if (!SWIG_IsOK(ecode4)) {
36310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36311 }
36312 arg4 = static_cast< int >(val4);
36313 ecode5 = SWIG_AsVal_int(obj4, &val5);
36314 if (!SWIG_IsOK(ecode5)) {
36315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36316 }
36317 arg5 = static_cast< int >(val5);
36318 {
36319 PyThreadState* __tstate = wxPyBeginAllowThreads();
36320 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36321 wxPyEndAllowThreads(__tstate);
36322 if (PyErr_Occurred()) SWIG_fail;
36323 }
36324 resultobj = SWIG_Py_Void();
36325 return resultobj;
36326fail:
36327 return NULL;
36328}
36329
36330
36331SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36332 PyObject *resultobj = 0;
36333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36334 wxRect *arg2 = 0 ;
36335 void *argp1 = 0 ;
36336 int res1 = 0 ;
36337 wxRect temp2 ;
36338 PyObject * obj0 = 0 ;
36339 PyObject * obj1 = 0 ;
36340 char * kwnames[] = {
36341 (char *) "self",(char *) "rect", NULL
36342 };
36343
36344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36346 if (!SWIG_IsOK(res1)) {
36347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36348 }
36349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36350 {
36351 arg2 = &temp2;
36352 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36353 }
36354 {
36355 PyThreadState* __tstate = wxPyBeginAllowThreads();
36356 (arg1)->DrawRectangle((wxRect const &)*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_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36368 PyObject *resultobj = 0;
36369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36370 wxPoint *arg2 = 0 ;
36371 wxSize *arg3 = 0 ;
36372 void *argp1 = 0 ;
36373 int res1 = 0 ;
36374 wxPoint temp2 ;
36375 wxSize temp3 ;
36376 PyObject * obj0 = 0 ;
36377 PyObject * obj1 = 0 ;
36378 PyObject * obj2 = 0 ;
36379 char * kwnames[] = {
36380 (char *) "self",(char *) "pt",(char *) "sz", NULL
36381 };
36382
36383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36385 if (!SWIG_IsOK(res1)) {
36386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36387 }
36388 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36389 {
36390 arg2 = &temp2;
36391 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36392 }
36393 {
36394 arg3 = &temp3;
36395 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36396 }
36397 {
36398 PyThreadState* __tstate = wxPyBeginAllowThreads();
36399 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36400 wxPyEndAllowThreads(__tstate);
36401 if (PyErr_Occurred()) SWIG_fail;
36402 }
36403 resultobj = SWIG_Py_Void();
36404 return resultobj;
36405fail:
36406 return NULL;
36407}
36408
36409
36410SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36411 PyObject *resultobj = 0;
36412 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36413 int arg2 ;
36414 int arg3 ;
36415 int arg4 ;
36416 int arg5 ;
36417 double arg6 ;
36418 void *argp1 = 0 ;
36419 int res1 = 0 ;
36420 int val2 ;
36421 int ecode2 = 0 ;
36422 int val3 ;
36423 int ecode3 = 0 ;
36424 int val4 ;
36425 int ecode4 = 0 ;
36426 int val5 ;
36427 int ecode5 = 0 ;
36428 double val6 ;
36429 int ecode6 = 0 ;
36430 PyObject * obj0 = 0 ;
36431 PyObject * obj1 = 0 ;
36432 PyObject * obj2 = 0 ;
36433 PyObject * obj3 = 0 ;
36434 PyObject * obj4 = 0 ;
36435 PyObject * obj5 = 0 ;
36436 char * kwnames[] = {
36437 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36438 };
36439
36440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36442 if (!SWIG_IsOK(res1)) {
36443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36444 }
36445 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36446 ecode2 = SWIG_AsVal_int(obj1, &val2);
36447 if (!SWIG_IsOK(ecode2)) {
36448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36449 }
36450 arg2 = static_cast< int >(val2);
36451 ecode3 = SWIG_AsVal_int(obj2, &val3);
36452 if (!SWIG_IsOK(ecode3)) {
36453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36454 }
36455 arg3 = static_cast< int >(val3);
36456 ecode4 = SWIG_AsVal_int(obj3, &val4);
36457 if (!SWIG_IsOK(ecode4)) {
36458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36459 }
36460 arg4 = static_cast< int >(val4);
36461 ecode5 = SWIG_AsVal_int(obj4, &val5);
36462 if (!SWIG_IsOK(ecode5)) {
36463 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36464 }
36465 arg5 = static_cast< int >(val5);
36466 ecode6 = SWIG_AsVal_double(obj5, &val6);
36467 if (!SWIG_IsOK(ecode6)) {
36468 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36469 }
36470 arg6 = static_cast< double >(val6);
36471 {
36472 PyThreadState* __tstate = wxPyBeginAllowThreads();
36473 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36474 wxPyEndAllowThreads(__tstate);
36475 if (PyErr_Occurred()) SWIG_fail;
36476 }
36477 resultobj = SWIG_Py_Void();
36478 return resultobj;
36479fail:
36480 return NULL;
36481}
36482
36483
36484SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36485 PyObject *resultobj = 0;
36486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36487 wxRect *arg2 = 0 ;
36488 double arg3 ;
36489 void *argp1 = 0 ;
36490 int res1 = 0 ;
36491 wxRect temp2 ;
36492 double val3 ;
36493 int ecode3 = 0 ;
36494 PyObject * obj0 = 0 ;
36495 PyObject * obj1 = 0 ;
36496 PyObject * obj2 = 0 ;
36497 char * kwnames[] = {
36498 (char *) "self",(char *) "r",(char *) "radius", NULL
36499 };
36500
36501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36503 if (!SWIG_IsOK(res1)) {
36504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36505 }
36506 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36507 {
36508 arg2 = &temp2;
36509 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36510 }
36511 ecode3 = SWIG_AsVal_double(obj2, &val3);
36512 if (!SWIG_IsOK(ecode3)) {
36513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36514 }
36515 arg3 = static_cast< double >(val3);
36516 {
36517 PyThreadState* __tstate = wxPyBeginAllowThreads();
36518 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36519 wxPyEndAllowThreads(__tstate);
36520 if (PyErr_Occurred()) SWIG_fail;
36521 }
36522 resultobj = SWIG_Py_Void();
36523 return resultobj;
36524fail:
36525 return NULL;
36526}
36527
36528
36529SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36530 PyObject *resultobj = 0;
36531 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36532 wxPoint *arg2 = 0 ;
36533 wxSize *arg3 = 0 ;
36534 double arg4 ;
36535 void *argp1 = 0 ;
36536 int res1 = 0 ;
36537 wxPoint temp2 ;
36538 wxSize temp3 ;
36539 double val4 ;
36540 int ecode4 = 0 ;
36541 PyObject * obj0 = 0 ;
36542 PyObject * obj1 = 0 ;
36543 PyObject * obj2 = 0 ;
36544 PyObject * obj3 = 0 ;
36545 char * kwnames[] = {
36546 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36547 };
36548
36549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36551 if (!SWIG_IsOK(res1)) {
36552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36553 }
36554 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36555 {
36556 arg2 = &temp2;
36557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36558 }
36559 {
36560 arg3 = &temp3;
36561 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36562 }
36563 ecode4 = SWIG_AsVal_double(obj3, &val4);
36564 if (!SWIG_IsOK(ecode4)) {
36565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36566 }
36567 arg4 = static_cast< double >(val4);
36568 {
36569 PyThreadState* __tstate = wxPyBeginAllowThreads();
36570 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36571 wxPyEndAllowThreads(__tstate);
36572 if (PyErr_Occurred()) SWIG_fail;
36573 }
36574 resultobj = SWIG_Py_Void();
36575 return resultobj;
36576fail:
36577 return NULL;
36578}
36579
36580
36581SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36582 PyObject *resultobj = 0;
36583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36584 int arg2 ;
36585 int arg3 ;
36586 int arg4 ;
36587 void *argp1 = 0 ;
36588 int res1 = 0 ;
36589 int val2 ;
36590 int ecode2 = 0 ;
36591 int val3 ;
36592 int ecode3 = 0 ;
36593 int val4 ;
36594 int ecode4 = 0 ;
36595 PyObject * obj0 = 0 ;
36596 PyObject * obj1 = 0 ;
36597 PyObject * obj2 = 0 ;
36598 PyObject * obj3 = 0 ;
36599 char * kwnames[] = {
36600 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36601 };
36602
36603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36605 if (!SWIG_IsOK(res1)) {
36606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36607 }
36608 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36609 ecode2 = SWIG_AsVal_int(obj1, &val2);
36610 if (!SWIG_IsOK(ecode2)) {
36611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36612 }
36613 arg2 = static_cast< int >(val2);
36614 ecode3 = SWIG_AsVal_int(obj2, &val3);
36615 if (!SWIG_IsOK(ecode3)) {
36616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36617 }
36618 arg3 = static_cast< int >(val3);
36619 ecode4 = SWIG_AsVal_int(obj3, &val4);
36620 if (!SWIG_IsOK(ecode4)) {
36621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36622 }
36623 arg4 = static_cast< int >(val4);
36624 {
36625 PyThreadState* __tstate = wxPyBeginAllowThreads();
36626 (arg1)->DrawCircle(arg2,arg3,arg4);
36627 wxPyEndAllowThreads(__tstate);
36628 if (PyErr_Occurred()) SWIG_fail;
36629 }
36630 resultobj = SWIG_Py_Void();
36631 return resultobj;
36632fail:
36633 return NULL;
36634}
36635
36636
36637SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36638 PyObject *resultobj = 0;
36639 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36640 wxPoint *arg2 = 0 ;
36641 int arg3 ;
36642 void *argp1 = 0 ;
36643 int res1 = 0 ;
36644 wxPoint temp2 ;
36645 int val3 ;
36646 int ecode3 = 0 ;
36647 PyObject * obj0 = 0 ;
36648 PyObject * obj1 = 0 ;
36649 PyObject * obj2 = 0 ;
36650 char * kwnames[] = {
36651 (char *) "self",(char *) "pt",(char *) "radius", NULL
36652 };
36653
36654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36656 if (!SWIG_IsOK(res1)) {
36657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36658 }
36659 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36660 {
36661 arg2 = &temp2;
36662 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36663 }
36664 ecode3 = SWIG_AsVal_int(obj2, &val3);
36665 if (!SWIG_IsOK(ecode3)) {
36666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36667 }
36668 arg3 = static_cast< int >(val3);
36669 {
36670 PyThreadState* __tstate = wxPyBeginAllowThreads();
36671 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36672 wxPyEndAllowThreads(__tstate);
36673 if (PyErr_Occurred()) SWIG_fail;
36674 }
36675 resultobj = SWIG_Py_Void();
36676 return resultobj;
36677fail:
36678 return NULL;
36679}
36680
36681
36682SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36683 PyObject *resultobj = 0;
36684 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36685 int arg2 ;
36686 int arg3 ;
36687 int arg4 ;
36688 int arg5 ;
36689 void *argp1 = 0 ;
36690 int res1 = 0 ;
36691 int val2 ;
36692 int ecode2 = 0 ;
36693 int val3 ;
36694 int ecode3 = 0 ;
36695 int val4 ;
36696 int ecode4 = 0 ;
36697 int val5 ;
36698 int ecode5 = 0 ;
36699 PyObject * obj0 = 0 ;
36700 PyObject * obj1 = 0 ;
36701 PyObject * obj2 = 0 ;
36702 PyObject * obj3 = 0 ;
36703 PyObject * obj4 = 0 ;
36704 char * kwnames[] = {
36705 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36706 };
36707
36708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36710 if (!SWIG_IsOK(res1)) {
36711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36712 }
36713 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36714 ecode2 = SWIG_AsVal_int(obj1, &val2);
36715 if (!SWIG_IsOK(ecode2)) {
36716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36717 }
36718 arg2 = static_cast< int >(val2);
36719 ecode3 = SWIG_AsVal_int(obj2, &val3);
36720 if (!SWIG_IsOK(ecode3)) {
36721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36722 }
36723 arg3 = static_cast< int >(val3);
36724 ecode4 = SWIG_AsVal_int(obj3, &val4);
36725 if (!SWIG_IsOK(ecode4)) {
36726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36727 }
36728 arg4 = static_cast< int >(val4);
36729 ecode5 = SWIG_AsVal_int(obj4, &val5);
36730 if (!SWIG_IsOK(ecode5)) {
36731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36732 }
36733 arg5 = static_cast< int >(val5);
36734 {
36735 PyThreadState* __tstate = wxPyBeginAllowThreads();
36736 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_Py_Void();
36741 return resultobj;
36742fail:
36743 return NULL;
36744}
36745
36746
36747SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36748 PyObject *resultobj = 0;
36749 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36750 wxRect *arg2 = 0 ;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 wxRect temp2 ;
36754 PyObject * obj0 = 0 ;
36755 PyObject * obj1 = 0 ;
36756 char * kwnames[] = {
36757 (char *) "self",(char *) "rect", NULL
36758 };
36759
36760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36762 if (!SWIG_IsOK(res1)) {
36763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36764 }
36765 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36766 {
36767 arg2 = &temp2;
36768 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36769 }
36770 {
36771 PyThreadState* __tstate = wxPyBeginAllowThreads();
36772 (arg1)->DrawEllipse((wxRect const &)*arg2);
36773 wxPyEndAllowThreads(__tstate);
36774 if (PyErr_Occurred()) SWIG_fail;
36775 }
36776 resultobj = SWIG_Py_Void();
36777 return resultobj;
36778fail:
36779 return NULL;
36780}
36781
36782
36783SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36784 PyObject *resultobj = 0;
36785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36786 wxPoint *arg2 = 0 ;
36787 wxSize *arg3 = 0 ;
36788 void *argp1 = 0 ;
36789 int res1 = 0 ;
36790 wxPoint temp2 ;
36791 wxSize temp3 ;
36792 PyObject * obj0 = 0 ;
36793 PyObject * obj1 = 0 ;
36794 PyObject * obj2 = 0 ;
36795 char * kwnames[] = {
36796 (char *) "self",(char *) "pt",(char *) "sz", NULL
36797 };
36798
36799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36801 if (!SWIG_IsOK(res1)) {
36802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36803 }
36804 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36805 {
36806 arg2 = &temp2;
36807 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36808 }
36809 {
36810 arg3 = &temp3;
36811 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36812 }
36813 {
36814 PyThreadState* __tstate = wxPyBeginAllowThreads();
36815 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36816 wxPyEndAllowThreads(__tstate);
36817 if (PyErr_Occurred()) SWIG_fail;
36818 }
36819 resultobj = SWIG_Py_Void();
36820 return resultobj;
36821fail:
36822 return NULL;
36823}
36824
36825
36826SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36827 PyObject *resultobj = 0;
36828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36829 wxIcon *arg2 = 0 ;
36830 int arg3 ;
36831 int arg4 ;
36832 void *argp1 = 0 ;
36833 int res1 = 0 ;
36834 void *argp2 = 0 ;
36835 int res2 = 0 ;
36836 int val3 ;
36837 int ecode3 = 0 ;
36838 int val4 ;
36839 int ecode4 = 0 ;
36840 PyObject * obj0 = 0 ;
36841 PyObject * obj1 = 0 ;
36842 PyObject * obj2 = 0 ;
36843 PyObject * obj3 = 0 ;
36844 char * kwnames[] = {
36845 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
36846 };
36847
36848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36850 if (!SWIG_IsOK(res1)) {
36851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36852 }
36853 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36855 if (!SWIG_IsOK(res2)) {
36856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36857 }
36858 if (!argp2) {
36859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36860 }
36861 arg2 = reinterpret_cast< wxIcon * >(argp2);
36862 ecode3 = SWIG_AsVal_int(obj2, &val3);
36863 if (!SWIG_IsOK(ecode3)) {
36864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
36865 }
36866 arg3 = static_cast< int >(val3);
36867 ecode4 = SWIG_AsVal_int(obj3, &val4);
36868 if (!SWIG_IsOK(ecode4)) {
36869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
36870 }
36871 arg4 = static_cast< int >(val4);
36872 {
36873 PyThreadState* __tstate = wxPyBeginAllowThreads();
36874 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
36875 wxPyEndAllowThreads(__tstate);
36876 if (PyErr_Occurred()) SWIG_fail;
36877 }
36878 resultobj = SWIG_Py_Void();
36879 return resultobj;
36880fail:
36881 return NULL;
36882}
36883
36884
36885SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36886 PyObject *resultobj = 0;
36887 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36888 wxIcon *arg2 = 0 ;
36889 wxPoint *arg3 = 0 ;
36890 void *argp1 = 0 ;
36891 int res1 = 0 ;
36892 void *argp2 = 0 ;
36893 int res2 = 0 ;
36894 wxPoint temp3 ;
36895 PyObject * obj0 = 0 ;
36896 PyObject * obj1 = 0 ;
36897 PyObject * obj2 = 0 ;
36898 char * kwnames[] = {
36899 (char *) "self",(char *) "icon",(char *) "pt", NULL
36900 };
36901
36902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36904 if (!SWIG_IsOK(res1)) {
36905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36906 }
36907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36909 if (!SWIG_IsOK(res2)) {
36910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36911 }
36912 if (!argp2) {
36913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36914 }
36915 arg2 = reinterpret_cast< wxIcon * >(argp2);
36916 {
36917 arg3 = &temp3;
36918 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36919 }
36920 {
36921 PyThreadState* __tstate = wxPyBeginAllowThreads();
36922 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
36923 wxPyEndAllowThreads(__tstate);
36924 if (PyErr_Occurred()) SWIG_fail;
36925 }
36926 resultobj = SWIG_Py_Void();
36927 return resultobj;
36928fail:
36929 return NULL;
36930}
36931
36932
36933SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36934 PyObject *resultobj = 0;
36935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36936 wxBitmap *arg2 = 0 ;
36937 int arg3 ;
36938 int arg4 ;
36939 bool arg5 = (bool) false ;
36940 void *argp1 = 0 ;
36941 int res1 = 0 ;
36942 void *argp2 = 0 ;
36943 int res2 = 0 ;
36944 int val3 ;
36945 int ecode3 = 0 ;
36946 int val4 ;
36947 int ecode4 = 0 ;
36948 bool val5 ;
36949 int ecode5 = 0 ;
36950 PyObject * obj0 = 0 ;
36951 PyObject * obj1 = 0 ;
36952 PyObject * obj2 = 0 ;
36953 PyObject * obj3 = 0 ;
36954 PyObject * obj4 = 0 ;
36955 char * kwnames[] = {
36956 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
36957 };
36958
36959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36961 if (!SWIG_IsOK(res1)) {
36962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36963 }
36964 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
36966 if (!SWIG_IsOK(res2)) {
36967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36968 }
36969 if (!argp2) {
36970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36971 }
36972 arg2 = reinterpret_cast< wxBitmap * >(argp2);
36973 ecode3 = SWIG_AsVal_int(obj2, &val3);
36974 if (!SWIG_IsOK(ecode3)) {
36975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
36976 }
36977 arg3 = static_cast< int >(val3);
36978 ecode4 = SWIG_AsVal_int(obj3, &val4);
36979 if (!SWIG_IsOK(ecode4)) {
36980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
36981 }
36982 arg4 = static_cast< int >(val4);
36983 if (obj4) {
36984 ecode5 = SWIG_AsVal_bool(obj4, &val5);
36985 if (!SWIG_IsOK(ecode5)) {
36986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
36987 }
36988 arg5 = static_cast< bool >(val5);
36989 }
36990 {
36991 PyThreadState* __tstate = wxPyBeginAllowThreads();
36992 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
36993 wxPyEndAllowThreads(__tstate);
36994 if (PyErr_Occurred()) SWIG_fail;
36995 }
36996 resultobj = SWIG_Py_Void();
36997 return resultobj;
36998fail:
36999 return NULL;
37000}
37001
37002
37003SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37004 PyObject *resultobj = 0;
37005 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37006 wxBitmap *arg2 = 0 ;
37007 wxPoint *arg3 = 0 ;
37008 bool arg4 = (bool) false ;
37009 void *argp1 = 0 ;
37010 int res1 = 0 ;
37011 void *argp2 = 0 ;
37012 int res2 = 0 ;
37013 wxPoint temp3 ;
37014 bool val4 ;
37015 int ecode4 = 0 ;
37016 PyObject * obj0 = 0 ;
37017 PyObject * obj1 = 0 ;
37018 PyObject * obj2 = 0 ;
37019 PyObject * obj3 = 0 ;
37020 char * kwnames[] = {
37021 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37022 };
37023
37024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37026 if (!SWIG_IsOK(res1)) {
37027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37028 }
37029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37030 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37031 if (!SWIG_IsOK(res2)) {
37032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37033 }
37034 if (!argp2) {
37035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37036 }
37037 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37038 {
37039 arg3 = &temp3;
37040 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37041 }
37042 if (obj3) {
37043 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37044 if (!SWIG_IsOK(ecode4)) {
37045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37046 }
37047 arg4 = static_cast< bool >(val4);
37048 }
37049 {
37050 PyThreadState* __tstate = wxPyBeginAllowThreads();
37051 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37052 wxPyEndAllowThreads(__tstate);
37053 if (PyErr_Occurred()) SWIG_fail;
37054 }
37055 resultobj = SWIG_Py_Void();
37056 return resultobj;
37057fail:
37058 return NULL;
37059}
37060
37061
37062SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37063 PyObject *resultobj = 0;
37064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37065 wxString *arg2 = 0 ;
37066 int arg3 ;
37067 int arg4 ;
37068 void *argp1 = 0 ;
37069 int res1 = 0 ;
37070 bool temp2 = false ;
37071 int val3 ;
37072 int ecode3 = 0 ;
37073 int val4 ;
37074 int ecode4 = 0 ;
37075 PyObject * obj0 = 0 ;
37076 PyObject * obj1 = 0 ;
37077 PyObject * obj2 = 0 ;
37078 PyObject * obj3 = 0 ;
37079 char * kwnames[] = {
37080 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37081 };
37082
37083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37085 if (!SWIG_IsOK(res1)) {
37086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37087 }
37088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37089 {
37090 arg2 = wxString_in_helper(obj1);
37091 if (arg2 == NULL) SWIG_fail;
37092 temp2 = true;
37093 }
37094 ecode3 = SWIG_AsVal_int(obj2, &val3);
37095 if (!SWIG_IsOK(ecode3)) {
37096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37097 }
37098 arg3 = static_cast< int >(val3);
37099 ecode4 = SWIG_AsVal_int(obj3, &val4);
37100 if (!SWIG_IsOK(ecode4)) {
37101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37102 }
37103 arg4 = static_cast< int >(val4);
37104 {
37105 PyThreadState* __tstate = wxPyBeginAllowThreads();
37106 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37107 wxPyEndAllowThreads(__tstate);
37108 if (PyErr_Occurred()) SWIG_fail;
37109 }
37110 resultobj = SWIG_Py_Void();
37111 {
37112 if (temp2)
37113 delete arg2;
37114 }
37115 return resultobj;
37116fail:
37117 {
37118 if (temp2)
37119 delete arg2;
37120 }
37121 return NULL;
37122}
37123
37124
37125SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37126 PyObject *resultobj = 0;
37127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37128 wxString *arg2 = 0 ;
37129 wxPoint *arg3 = 0 ;
37130 void *argp1 = 0 ;
37131 int res1 = 0 ;
37132 bool temp2 = false ;
37133 wxPoint temp3 ;
37134 PyObject * obj0 = 0 ;
37135 PyObject * obj1 = 0 ;
37136 PyObject * obj2 = 0 ;
37137 char * kwnames[] = {
37138 (char *) "self",(char *) "text",(char *) "pt", NULL
37139 };
37140
37141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37143 if (!SWIG_IsOK(res1)) {
37144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37145 }
37146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37147 {
37148 arg2 = wxString_in_helper(obj1);
37149 if (arg2 == NULL) SWIG_fail;
37150 temp2 = true;
37151 }
37152 {
37153 arg3 = &temp3;
37154 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37155 }
37156 {
37157 PyThreadState* __tstate = wxPyBeginAllowThreads();
37158 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37159 wxPyEndAllowThreads(__tstate);
37160 if (PyErr_Occurred()) SWIG_fail;
37161 }
37162 resultobj = SWIG_Py_Void();
37163 {
37164 if (temp2)
37165 delete arg2;
37166 }
37167 return resultobj;
37168fail:
37169 {
37170 if (temp2)
37171 delete arg2;
37172 }
37173 return NULL;
37174}
37175
37176
37177SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37178 PyObject *resultobj = 0;
37179 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37180 wxString *arg2 = 0 ;
37181 int arg3 ;
37182 int arg4 ;
37183 double arg5 ;
37184 void *argp1 = 0 ;
37185 int res1 = 0 ;
37186 bool temp2 = false ;
37187 int val3 ;
37188 int ecode3 = 0 ;
37189 int val4 ;
37190 int ecode4 = 0 ;
37191 double val5 ;
37192 int ecode5 = 0 ;
37193 PyObject * obj0 = 0 ;
37194 PyObject * obj1 = 0 ;
37195 PyObject * obj2 = 0 ;
37196 PyObject * obj3 = 0 ;
37197 PyObject * obj4 = 0 ;
37198 char * kwnames[] = {
37199 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37200 };
37201
37202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37204 if (!SWIG_IsOK(res1)) {
37205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37206 }
37207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37208 {
37209 arg2 = wxString_in_helper(obj1);
37210 if (arg2 == NULL) SWIG_fail;
37211 temp2 = true;
37212 }
37213 ecode3 = SWIG_AsVal_int(obj2, &val3);
37214 if (!SWIG_IsOK(ecode3)) {
37215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37216 }
37217 arg3 = static_cast< int >(val3);
37218 ecode4 = SWIG_AsVal_int(obj3, &val4);
37219 if (!SWIG_IsOK(ecode4)) {
37220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37221 }
37222 arg4 = static_cast< int >(val4);
37223 ecode5 = SWIG_AsVal_double(obj4, &val5);
37224 if (!SWIG_IsOK(ecode5)) {
37225 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37226 }
37227 arg5 = static_cast< double >(val5);
37228 {
37229 PyThreadState* __tstate = wxPyBeginAllowThreads();
37230 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37231 wxPyEndAllowThreads(__tstate);
37232 if (PyErr_Occurred()) SWIG_fail;
37233 }
37234 resultobj = SWIG_Py_Void();
37235 {
37236 if (temp2)
37237 delete arg2;
37238 }
37239 return resultobj;
37240fail:
37241 {
37242 if (temp2)
37243 delete arg2;
37244 }
37245 return NULL;
37246}
37247
37248
37249SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37250 PyObject *resultobj = 0;
37251 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37252 wxString *arg2 = 0 ;
37253 wxPoint *arg3 = 0 ;
37254 double arg4 ;
37255 void *argp1 = 0 ;
37256 int res1 = 0 ;
37257 bool temp2 = false ;
37258 wxPoint temp3 ;
37259 double val4 ;
37260 int ecode4 = 0 ;
37261 PyObject * obj0 = 0 ;
37262 PyObject * obj1 = 0 ;
37263 PyObject * obj2 = 0 ;
37264 PyObject * obj3 = 0 ;
37265 char * kwnames[] = {
37266 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37267 };
37268
37269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37271 if (!SWIG_IsOK(res1)) {
37272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37273 }
37274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37275 {
37276 arg2 = wxString_in_helper(obj1);
37277 if (arg2 == NULL) SWIG_fail;
37278 temp2 = true;
37279 }
37280 {
37281 arg3 = &temp3;
37282 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37283 }
37284 ecode4 = SWIG_AsVal_double(obj3, &val4);
37285 if (!SWIG_IsOK(ecode4)) {
37286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37287 }
37288 arg4 = static_cast< double >(val4);
37289 {
37290 PyThreadState* __tstate = wxPyBeginAllowThreads();
37291 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37292 wxPyEndAllowThreads(__tstate);
37293 if (PyErr_Occurred()) SWIG_fail;
37294 }
37295 resultobj = SWIG_Py_Void();
37296 {
37297 if (temp2)
37298 delete arg2;
37299 }
37300 return resultobj;
37301fail:
37302 {
37303 if (temp2)
37304 delete arg2;
37305 }
37306 return NULL;
37307}
37308
37309
37310SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37311 PyObject *resultobj = 0;
37312 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37313 int arg2 ;
37314 wxPoint *arg3 = (wxPoint *) 0 ;
37315 int arg4 = (int) 0 ;
37316 int arg5 = (int) 0 ;
37317 void *argp1 = 0 ;
37318 int res1 = 0 ;
37319 int val4 ;
37320 int ecode4 = 0 ;
37321 int val5 ;
37322 int ecode5 = 0 ;
37323 PyObject * obj0 = 0 ;
37324 PyObject * obj1 = 0 ;
37325 PyObject * obj2 = 0 ;
37326 PyObject * obj3 = 0 ;
37327 char * kwnames[] = {
37328 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37329 };
37330
37331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37333 if (!SWIG_IsOK(res1)) {
37334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37335 }
37336 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37337 {
37338 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37339 if (arg3 == NULL) SWIG_fail;
37340 }
37341 if (obj2) {
37342 ecode4 = SWIG_AsVal_int(obj2, &val4);
37343 if (!SWIG_IsOK(ecode4)) {
37344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37345 }
37346 arg4 = static_cast< int >(val4);
37347 }
37348 if (obj3) {
37349 ecode5 = SWIG_AsVal_int(obj3, &val5);
37350 if (!SWIG_IsOK(ecode5)) {
37351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37352 }
37353 arg5 = static_cast< int >(val5);
37354 }
37355 {
37356 PyThreadState* __tstate = wxPyBeginAllowThreads();
37357 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37358 wxPyEndAllowThreads(__tstate);
37359 if (PyErr_Occurred()) SWIG_fail;
37360 }
37361 resultobj = SWIG_Py_Void();
37362 {
37363 if (arg3) delete [] arg3;
37364 }
37365 return resultobj;
37366fail:
37367 {
37368 if (arg3) delete [] arg3;
37369 }
37370 return NULL;
37371}
37372
37373
37374SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37375 PyObject *resultobj = 0;
37376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37377 int arg2 ;
37378 wxPoint *arg3 = (wxPoint *) 0 ;
37379 int arg4 = (int) 0 ;
37380 int arg5 = (int) 0 ;
37381 int arg6 = (int) wxODDEVEN_RULE ;
37382 void *argp1 = 0 ;
37383 int res1 = 0 ;
37384 int val4 ;
37385 int ecode4 = 0 ;
37386 int val5 ;
37387 int ecode5 = 0 ;
37388 int val6 ;
37389 int ecode6 = 0 ;
37390 PyObject * obj0 = 0 ;
37391 PyObject * obj1 = 0 ;
37392 PyObject * obj2 = 0 ;
37393 PyObject * obj3 = 0 ;
37394 PyObject * obj4 = 0 ;
37395 char * kwnames[] = {
37396 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37397 };
37398
37399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37401 if (!SWIG_IsOK(res1)) {
37402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37403 }
37404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37405 {
37406 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37407 if (arg3 == NULL) SWIG_fail;
37408 }
37409 if (obj2) {
37410 ecode4 = SWIG_AsVal_int(obj2, &val4);
37411 if (!SWIG_IsOK(ecode4)) {
37412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37413 }
37414 arg4 = static_cast< int >(val4);
37415 }
37416 if (obj3) {
37417 ecode5 = SWIG_AsVal_int(obj3, &val5);
37418 if (!SWIG_IsOK(ecode5)) {
37419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37420 }
37421 arg5 = static_cast< int >(val5);
37422 }
37423 if (obj4) {
37424 ecode6 = SWIG_AsVal_int(obj4, &val6);
37425 if (!SWIG_IsOK(ecode6)) {
37426 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37427 }
37428 arg6 = static_cast< int >(val6);
37429 }
37430 {
37431 PyThreadState* __tstate = wxPyBeginAllowThreads();
37432 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37433 wxPyEndAllowThreads(__tstate);
37434 if (PyErr_Occurred()) SWIG_fail;
37435 }
37436 resultobj = SWIG_Py_Void();
37437 {
37438 if (arg3) delete [] arg3;
37439 }
37440 return resultobj;
37441fail:
37442 {
37443 if (arg3) delete [] arg3;
37444 }
37445 return NULL;
37446}
37447
37448
37449SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37450 PyObject *resultobj = 0;
37451 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37452 wxString *arg2 = 0 ;
37453 wxRect *arg3 = 0 ;
37454 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37455 int arg5 = (int) -1 ;
37456 void *argp1 = 0 ;
37457 int res1 = 0 ;
37458 bool temp2 = false ;
37459 wxRect temp3 ;
37460 int val4 ;
37461 int ecode4 = 0 ;
37462 int val5 ;
37463 int ecode5 = 0 ;
37464 PyObject * obj0 = 0 ;
37465 PyObject * obj1 = 0 ;
37466 PyObject * obj2 = 0 ;
37467 PyObject * obj3 = 0 ;
37468 PyObject * obj4 = 0 ;
37469 char * kwnames[] = {
37470 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37471 };
37472
37473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37475 if (!SWIG_IsOK(res1)) {
37476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37477 }
37478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37479 {
37480 arg2 = wxString_in_helper(obj1);
37481 if (arg2 == NULL) SWIG_fail;
37482 temp2 = true;
37483 }
37484 {
37485 arg3 = &temp3;
37486 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37487 }
37488 if (obj3) {
37489 ecode4 = SWIG_AsVal_int(obj3, &val4);
37490 if (!SWIG_IsOK(ecode4)) {
37491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37492 }
37493 arg4 = static_cast< int >(val4);
37494 }
37495 if (obj4) {
37496 ecode5 = SWIG_AsVal_int(obj4, &val5);
37497 if (!SWIG_IsOK(ecode5)) {
37498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37499 }
37500 arg5 = static_cast< int >(val5);
37501 }
37502 {
37503 PyThreadState* __tstate = wxPyBeginAllowThreads();
37504 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37505 wxPyEndAllowThreads(__tstate);
37506 if (PyErr_Occurred()) SWIG_fail;
37507 }
37508 resultobj = SWIG_Py_Void();
37509 {
37510 if (temp2)
37511 delete arg2;
37512 }
37513 return resultobj;
37514fail:
37515 {
37516 if (temp2)
37517 delete arg2;
37518 }
37519 return NULL;
37520}
37521
37522
37523SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37524 PyObject *resultobj = 0;
37525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37526 wxString *arg2 = 0 ;
37527 wxBitmap *arg3 = 0 ;
37528 wxRect *arg4 = 0 ;
37529 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37530 int arg6 = (int) -1 ;
37531 void *argp1 = 0 ;
37532 int res1 = 0 ;
37533 bool temp2 = false ;
37534 void *argp3 = 0 ;
37535 int res3 = 0 ;
37536 wxRect temp4 ;
37537 int val5 ;
37538 int ecode5 = 0 ;
37539 int val6 ;
37540 int ecode6 = 0 ;
37541 PyObject * obj0 = 0 ;
37542 PyObject * obj1 = 0 ;
37543 PyObject * obj2 = 0 ;
37544 PyObject * obj3 = 0 ;
37545 PyObject * obj4 = 0 ;
37546 PyObject * obj5 = 0 ;
37547 char * kwnames[] = {
37548 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37549 };
37550
37551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37553 if (!SWIG_IsOK(res1)) {
37554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37555 }
37556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37557 {
37558 arg2 = wxString_in_helper(obj1);
37559 if (arg2 == NULL) SWIG_fail;
37560 temp2 = true;
37561 }
37562 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37563 if (!SWIG_IsOK(res3)) {
37564 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37565 }
37566 if (!argp3) {
37567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37568 }
37569 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37570 {
37571 arg4 = &temp4;
37572 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37573 }
37574 if (obj4) {
37575 ecode5 = SWIG_AsVal_int(obj4, &val5);
37576 if (!SWIG_IsOK(ecode5)) {
37577 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37578 }
37579 arg5 = static_cast< int >(val5);
37580 }
37581 if (obj5) {
37582 ecode6 = SWIG_AsVal_int(obj5, &val6);
37583 if (!SWIG_IsOK(ecode6)) {
37584 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37585 }
37586 arg6 = static_cast< int >(val6);
37587 }
37588 {
37589 PyThreadState* __tstate = wxPyBeginAllowThreads();
37590 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37591 wxPyEndAllowThreads(__tstate);
37592 if (PyErr_Occurred()) SWIG_fail;
37593 }
37594 resultobj = SWIG_Py_Void();
37595 {
37596 if (temp2)
37597 delete arg2;
37598 }
37599 return resultobj;
37600fail:
37601 {
37602 if (temp2)
37603 delete arg2;
37604 }
37605 return NULL;
37606}
37607
37608
37609SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37610 PyObject *resultobj = 0;
37611 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37612 int arg2 ;
37613 wxPoint *arg3 = (wxPoint *) 0 ;
37614 void *argp1 = 0 ;
37615 int res1 = 0 ;
37616 PyObject * obj0 = 0 ;
37617 PyObject * obj1 = 0 ;
37618 char * kwnames[] = {
37619 (char *) "self",(char *) "points", NULL
37620 };
37621
37622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37624 if (!SWIG_IsOK(res1)) {
37625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37626 }
37627 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37628 {
37629 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37630 if (arg3 == NULL) SWIG_fail;
37631 }
37632 {
37633 PyThreadState* __tstate = wxPyBeginAllowThreads();
37634 (arg1)->DrawSpline(arg2,arg3);
37635 wxPyEndAllowThreads(__tstate);
37636 if (PyErr_Occurred()) SWIG_fail;
37637 }
37638 resultobj = SWIG_Py_Void();
37639 {
37640 if (arg3) delete [] arg3;
37641 }
37642 return resultobj;
37643fail:
37644 {
37645 if (arg3) delete [] arg3;
37646 }
37647 return NULL;
37648}
37649
37650
37651SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37652 PyObject *resultobj = 0;
37653 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37654 void *argp1 = 0 ;
37655 int res1 = 0 ;
37656 PyObject *swig_obj[1] ;
37657
37658 if (!args) SWIG_fail;
37659 swig_obj[0] = args;
37660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37661 if (!SWIG_IsOK(res1)) {
37662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37663 }
37664 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37665 {
37666 PyThreadState* __tstate = wxPyBeginAllowThreads();
37667 (arg1)->Clear();
37668 wxPyEndAllowThreads(__tstate);
37669 if (PyErr_Occurred()) SWIG_fail;
37670 }
37671 resultobj = SWIG_Py_Void();
37672 return resultobj;
37673fail:
37674 return NULL;
37675}
37676
37677
37678SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37679 PyObject *resultobj = 0;
37680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37681 wxFont *arg2 = 0 ;
37682 void *argp1 = 0 ;
37683 int res1 = 0 ;
37684 void *argp2 = 0 ;
37685 int res2 = 0 ;
37686 PyObject * obj0 = 0 ;
37687 PyObject * obj1 = 0 ;
37688 char * kwnames[] = {
37689 (char *) "self",(char *) "font", NULL
37690 };
37691
37692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37694 if (!SWIG_IsOK(res1)) {
37695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37696 }
37697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37699 if (!SWIG_IsOK(res2)) {
37700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37701 }
37702 if (!argp2) {
37703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37704 }
37705 arg2 = reinterpret_cast< wxFont * >(argp2);
37706 {
37707 PyThreadState* __tstate = wxPyBeginAllowThreads();
37708 (arg1)->SetFont((wxFont const &)*arg2);
37709 wxPyEndAllowThreads(__tstate);
37710 if (PyErr_Occurred()) SWIG_fail;
37711 }
37712 resultobj = SWIG_Py_Void();
37713 return resultobj;
37714fail:
37715 return NULL;
37716}
37717
37718
37719SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37720 PyObject *resultobj = 0;
37721 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37722 wxPen *arg2 = 0 ;
37723 void *argp1 = 0 ;
37724 int res1 = 0 ;
37725 void *argp2 = 0 ;
37726 int res2 = 0 ;
37727 PyObject * obj0 = 0 ;
37728 PyObject * obj1 = 0 ;
37729 char * kwnames[] = {
37730 (char *) "self",(char *) "pen", NULL
37731 };
37732
37733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37735 if (!SWIG_IsOK(res1)) {
37736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37737 }
37738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37739 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37740 if (!SWIG_IsOK(res2)) {
37741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37742 }
37743 if (!argp2) {
37744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37745 }
37746 arg2 = reinterpret_cast< wxPen * >(argp2);
37747 {
37748 PyThreadState* __tstate = wxPyBeginAllowThreads();
37749 (arg1)->SetPen((wxPen const &)*arg2);
37750 wxPyEndAllowThreads(__tstate);
37751 if (PyErr_Occurred()) SWIG_fail;
37752 }
37753 resultobj = SWIG_Py_Void();
37754 return resultobj;
37755fail:
37756 return NULL;
37757}
37758
37759
37760SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37761 PyObject *resultobj = 0;
37762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37763 wxBrush *arg2 = 0 ;
37764 void *argp1 = 0 ;
37765 int res1 = 0 ;
37766 void *argp2 = 0 ;
37767 int res2 = 0 ;
37768 PyObject * obj0 = 0 ;
37769 PyObject * obj1 = 0 ;
37770 char * kwnames[] = {
37771 (char *) "self",(char *) "brush", NULL
37772 };
37773
37774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37776 if (!SWIG_IsOK(res1)) {
37777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37778 }
37779 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37781 if (!SWIG_IsOK(res2)) {
37782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37783 }
37784 if (!argp2) {
37785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37786 }
37787 arg2 = reinterpret_cast< wxBrush * >(argp2);
37788 {
37789 PyThreadState* __tstate = wxPyBeginAllowThreads();
37790 (arg1)->SetBrush((wxBrush const &)*arg2);
37791 wxPyEndAllowThreads(__tstate);
37792 if (PyErr_Occurred()) SWIG_fail;
37793 }
37794 resultobj = SWIG_Py_Void();
37795 return resultobj;
37796fail:
37797 return NULL;
37798}
37799
37800
37801SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37802 PyObject *resultobj = 0;
37803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37804 wxBrush *arg2 = 0 ;
37805 void *argp1 = 0 ;
37806 int res1 = 0 ;
37807 void *argp2 = 0 ;
37808 int res2 = 0 ;
37809 PyObject * obj0 = 0 ;
37810 PyObject * obj1 = 0 ;
37811 char * kwnames[] = {
37812 (char *) "self",(char *) "brush", NULL
37813 };
37814
37815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37817 if (!SWIG_IsOK(res1)) {
37818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37819 }
37820 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37822 if (!SWIG_IsOK(res2)) {
37823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37824 }
37825 if (!argp2) {
37826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37827 }
37828 arg2 = reinterpret_cast< wxBrush * >(argp2);
37829 {
37830 PyThreadState* __tstate = wxPyBeginAllowThreads();
37831 (arg1)->SetBackground((wxBrush const &)*arg2);
37832 wxPyEndAllowThreads(__tstate);
37833 if (PyErr_Occurred()) SWIG_fail;
37834 }
37835 resultobj = SWIG_Py_Void();
37836 return resultobj;
37837fail:
37838 return NULL;
37839}
37840
37841
37842SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37843 PyObject *resultobj = 0;
37844 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37845 int arg2 ;
37846 void *argp1 = 0 ;
37847 int res1 = 0 ;
37848 int val2 ;
37849 int ecode2 = 0 ;
37850 PyObject * obj0 = 0 ;
37851 PyObject * obj1 = 0 ;
37852 char * kwnames[] = {
37853 (char *) "self",(char *) "mode", NULL
37854 };
37855
37856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
37857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37858 if (!SWIG_IsOK(res1)) {
37859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37860 }
37861 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37862 ecode2 = SWIG_AsVal_int(obj1, &val2);
37863 if (!SWIG_IsOK(ecode2)) {
37864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
37865 }
37866 arg2 = static_cast< int >(val2);
37867 {
37868 PyThreadState* __tstate = wxPyBeginAllowThreads();
37869 (arg1)->SetBackgroundMode(arg2);
37870 wxPyEndAllowThreads(__tstate);
37871 if (PyErr_Occurred()) SWIG_fail;
37872 }
37873 resultobj = SWIG_Py_Void();
37874 return resultobj;
37875fail:
37876 return NULL;
37877}
37878
37879
37880SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37881 PyObject *resultobj = 0;
37882 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37883 wxPalette *arg2 = 0 ;
37884 void *argp1 = 0 ;
37885 int res1 = 0 ;
37886 void *argp2 = 0 ;
37887 int res2 = 0 ;
37888 PyObject * obj0 = 0 ;
37889 PyObject * obj1 = 0 ;
37890 char * kwnames[] = {
37891 (char *) "self",(char *) "palette", NULL
37892 };
37893
37894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
37895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37896 if (!SWIG_IsOK(res1)) {
37897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37898 }
37899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
37901 if (!SWIG_IsOK(res2)) {
37902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37903 }
37904 if (!argp2) {
37905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37906 }
37907 arg2 = reinterpret_cast< wxPalette * >(argp2);
37908 {
37909 PyThreadState* __tstate = wxPyBeginAllowThreads();
37910 (arg1)->SetPalette((wxPalette const &)*arg2);
37911 wxPyEndAllowThreads(__tstate);
37912 if (PyErr_Occurred()) SWIG_fail;
37913 }
37914 resultobj = SWIG_Py_Void();
37915 return resultobj;
37916fail:
37917 return NULL;
37918}
37919
37920
37921SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37922 PyObject *resultobj = 0;
37923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37924 wxColour *arg2 = 0 ;
37925 void *argp1 = 0 ;
37926 int res1 = 0 ;
37927 wxColour temp2 ;
37928 PyObject * obj0 = 0 ;
37929 PyObject * obj1 = 0 ;
37930 char * kwnames[] = {
37931 (char *) "self",(char *) "colour", NULL
37932 };
37933
37934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
37935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37936 if (!SWIG_IsOK(res1)) {
37937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37938 }
37939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37940 {
37941 arg2 = &temp2;
37942 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37943 }
37944 {
37945 PyThreadState* __tstate = wxPyBeginAllowThreads();
37946 (arg1)->SetTextForeground((wxColour const &)*arg2);
37947 wxPyEndAllowThreads(__tstate);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 }
37950 resultobj = SWIG_Py_Void();
37951 return resultobj;
37952fail:
37953 return NULL;
37954}
37955
37956
37957SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37958 PyObject *resultobj = 0;
37959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37960 wxColour *arg2 = 0 ;
37961 void *argp1 = 0 ;
37962 int res1 = 0 ;
37963 wxColour temp2 ;
37964 PyObject * obj0 = 0 ;
37965 PyObject * obj1 = 0 ;
37966 char * kwnames[] = {
37967 (char *) "self",(char *) "colour", NULL
37968 };
37969
37970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37972 if (!SWIG_IsOK(res1)) {
37973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37974 }
37975 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37976 {
37977 arg2 = &temp2;
37978 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37979 }
37980 {
37981 PyThreadState* __tstate = wxPyBeginAllowThreads();
37982 (arg1)->SetTextBackground((wxColour const &)*arg2);
37983 wxPyEndAllowThreads(__tstate);
37984 if (PyErr_Occurred()) SWIG_fail;
37985 }
37986 resultobj = SWIG_Py_Void();
37987 return resultobj;
37988fail:
37989 return NULL;
37990}
37991
37992
37993SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37994 PyObject *resultobj = 0;
37995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37996 int arg2 ;
37997 void *argp1 = 0 ;
37998 int res1 = 0 ;
37999 int val2 ;
38000 int ecode2 = 0 ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 char * kwnames[] = {
38004 (char *) "self",(char *) "function", NULL
38005 };
38006
38007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38009 if (!SWIG_IsOK(res1)) {
38010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38011 }
38012 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38013 ecode2 = SWIG_AsVal_int(obj1, &val2);
38014 if (!SWIG_IsOK(ecode2)) {
38015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38016 }
38017 arg2 = static_cast< int >(val2);
38018 {
38019 PyThreadState* __tstate = wxPyBeginAllowThreads();
38020 (arg1)->SetLogicalFunction(arg2);
38021 wxPyEndAllowThreads(__tstate);
38022 if (PyErr_Occurred()) SWIG_fail;
38023 }
38024 resultobj = SWIG_Py_Void();
38025 return resultobj;
38026fail:
38027 return NULL;
38028}
38029
38030
38031SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38032 PyObject *obj;
38033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38034 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38035 return SWIG_Py_Void();
38036}
38037
38038SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38039 return SWIG_Python_InitShadowInstance(args);
38040}
38041
38042static PyMethodDef SwigMethods[] = {
38043 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38044 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38045 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38046 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38047 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38048 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38049 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38050 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38051 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38052 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38053 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38054 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38055 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38056 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38057 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38058 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38059 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38060 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38061 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38062 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38063 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38064 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38065 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38066 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38067 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38068 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38069 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38070 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38071 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38072 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38073 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38074 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38075 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38076 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38077 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38078 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38079 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38080 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38081 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38082 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38083 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38084 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38085 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38086 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38087 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38088 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38089 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38090 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38091 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38092 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38093 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38094 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38095 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38096 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38097 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38098 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38099 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38100 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38101 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38102 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38103 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38104 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38105 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38106 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38107 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38108 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38109 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38110 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38111 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38112 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38113 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38114 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38115 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38116 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38117 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38118 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38119 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38120 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38121 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38122 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38123 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38124 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38125 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38126 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38127 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38128 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38129 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38130 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38131 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38132 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38133 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38134 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38135 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38136 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38137 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38138 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38139 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38140 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38141 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38142 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38143 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38144 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38145 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38146 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38147 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38148 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38149 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38150 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38151 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38152 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38153 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38154 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38155 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38156 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38157 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38158 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38159 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38160 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38161 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38162 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38163 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38164 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38165 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38166 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38167 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38168 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38169 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38170 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38171 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38172 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38173 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38174 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38175 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38176 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38177 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38178 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38179 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38180 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38181 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38182 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38183 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38184 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38185 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38186 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38187 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38188 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38189 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38190 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38191 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38192 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38193 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38194 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38195 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38196 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38197 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38198 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38199 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38200 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38201 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38202 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38203 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38204 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38205 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38206 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38207 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38208 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38209 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38210 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38211 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38212 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38213 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38214 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38215 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38216 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38217 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38218 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38219 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38220 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38221 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38222 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38223 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38224 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38225 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38226 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38227 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38228 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38229 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38230 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38231 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38232 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38233 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38234 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38235 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38236 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38237 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38238 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38239 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38240 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38241 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38242 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38243 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38244 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38245 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38246 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38247 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38248 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38249 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38250 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38251 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38252 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38253 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38254 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38255 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38256 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38257 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38258 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38259 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38260 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38261 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38262 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38263 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38264 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38265 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38266 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38267 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38268 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38269 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38270 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38271 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38272 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38273 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38274 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38275 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38276 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38277 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38278 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38279 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38280 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38281 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38282 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38283 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38285 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38286 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38287 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38288 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38289 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38290 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38291 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38292 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38294 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38295 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38296 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38297 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38299 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38300 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38301 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38302 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38303 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38304 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38305 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38306 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38307 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38308 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38309 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38310 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38311 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38312 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38313 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38314 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38315 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38316 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38317 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38318 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38319 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38320 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38322 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38323 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38324 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38326 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38328 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38329 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38330 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38331 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38332 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38333 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38334 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38335 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38336 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38337 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38342 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38343 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38344 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38345 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38346 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38347 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38348 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38349 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38350 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38351 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38352 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38353 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38354 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38355 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38356 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38357 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38358 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38359 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38360 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38361 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38365 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38370 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38371 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38372 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38374 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38375 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38376 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38377 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38378 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38379 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38380 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38383 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38384 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38385 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38386 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38387 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38388 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38389 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38390 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38391 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38392 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38393 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38394 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38395 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38396 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38397 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38400 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38401 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38402 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38403 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38404 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38405 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38406 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38407 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38409 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38410 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38416 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38417 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38418 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38419 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38421 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38422 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38425 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38426 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38427 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38428 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38429 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38430 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38431 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38432 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38434 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38436 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38437 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38438 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38443 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38445 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38448 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38453 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38464 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38468 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38469 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38470 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38474 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38475 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38487 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38489 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38490 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38491 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38498 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38499 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38500 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38501 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38502 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38507 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38508 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38509 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38510 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38519 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38520 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38521 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38522 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38523 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38524 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38525 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38526 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38527 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38528 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38529 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38530 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38533 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38535 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38537 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38539 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38540 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38543 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38544 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38548 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38550 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38553 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38554 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38555 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38556 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38557 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38558 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38559 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38560 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38567 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38569 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38570 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38571 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38573 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38574 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38575 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38577 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38578 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38579 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38580 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38581 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38582 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 38583 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38584 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38587 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38588 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38589 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38592 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38593 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38594 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38596 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38597 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38599 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38600 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38602 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38603 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38604 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38605 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38606 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38607 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38608 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38610 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38611 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38613 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38614 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38615 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38617 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38618 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38620 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38623 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38624 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38625 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 38627 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
38628 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
38630 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
38631 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
38632 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38633 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38634 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38635 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
38636 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38637 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38638 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38639 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38640 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38641 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38643 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38644 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38645 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38646 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38647 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38648 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38649 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38650 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38651 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38652 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38653 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38654 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38655 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38656 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38657 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38658 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
5c8c7dd3
RD
38659 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38660 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38664 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38666 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38672 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 38673 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38674 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38675 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38676 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38677 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38678 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38679 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38680 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38681 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38685 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38688 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38691 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb
RD
38692 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
38693 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38694 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38695 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38696 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38697 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38698 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38704 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38705 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38706 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38707 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38708 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38709 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38710 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38713 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38716 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38717 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38718 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38719 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38722 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38724 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38725 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38730 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38731 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38732 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38736 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38737 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38738 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38739 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38740 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38741 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38744 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
38751 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
38753 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38754 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38755 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38756 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
38757 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38758 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38759 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38760 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38761 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38762 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38763 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38764 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38765 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38766 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38767 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38769 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38777 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38779 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38781 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
38782 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38783 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38784 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38785 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38786 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38792 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38793 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38794 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38795 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38796 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 38797 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 38798 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38799 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38800 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 38801 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 38802 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38803 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38804 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
38805 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
38809 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38810 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38811 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38816 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
38817 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38818 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38819 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38820 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
38821 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38822 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38823 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38824 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38825 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38826 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38827 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38836 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38837 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38839 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38840 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
38841 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
38842 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
38843 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
38844 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
38845 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
38846 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
38847 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
38848 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
38849 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
38850 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
38851 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
38852 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
38853 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
38854 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
38855 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
38856 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
38857 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
38858 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
38859 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
38860 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
38861 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38862 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
38864 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
38866 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
38867 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
38868 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
38869 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
38870 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38872 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
38877 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38880 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
38882 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
38883 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
38884 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
38886 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
38887 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
38888 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
38889 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
38890 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
38891 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
38892 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
38893 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38897 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38901 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
38946 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
38956 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38957 { NULL, NULL, 0, NULL }
38958};
38959
38960
38961/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
38962
72ef6efb
RD
38963static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
38964 return (void *)((wxClientDC *) ((wxPaintDC *) x));
38965}
8e99bda9
RD
38966static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
38967 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
38968}
38969static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
38970 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
38971}
72ef6efb
RD
38972static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
38973 return (void *)((wxWindowDC *) ((wxClientDC *) x));
38974}
38975static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
38976 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
38977}
fc46b7f3
RD
38978static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
38979 return (void *)((wxLocale *) ((wxPyLocale *) x));
38980}
70d7cb34
RD
38981static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
38982 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
38983}
38984static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
38985 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
38986}
38987static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
38988 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
38989}
38990static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
38991 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
38992}
38993static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
38994 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
38995}
38996static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
38997 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
38998}
1bd55598
RD
38999static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39000 return (void *)((wxGDIObject *) ((wxIcon *) x));
39001}
39002static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39003 return (void *)((wxGDIObject *) ((wxPalette *) x));
39004}
39005static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39006 return (void *)((wxGDIObject *) ((wxPen *) x));
39007}
39008static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39009 return (void *)((wxGDIObject *) ((wxFont *) x));
39010}
39011static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39012 return (void *)((wxGDIObject *) ((wxCursor *) x));
39013}
39014static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39015 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39016}
39017static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39018 return (void *)((wxGDIObject *) ((wxRegion *) x));
39019}
39020static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39021 return (void *)((wxGDIObject *) ((wxBrush *) x));
39022}
72ef6efb
RD
39023static void *_p_wxGCDCTo_p_wxDC(void *x) {
39024 return (void *)((wxDC *) ((wxGCDC *) x));
39025}
1bd55598
RD
39026static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39027 return (void *)((wxDC *) ((wxScreenDC *) x));
39028}
24f6c4e8
RD
39029static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39030 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39031}
1bd55598
RD
39032static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39033 return (void *)((wxDC *) ((wxMirrorDC *) x));
39034}
39035static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39036 return (void *)((wxDC *) ((wxMemoryDC *) x));
39037}
39038static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39039 return (void *)((wxDC *) ((wxWindowDC *) x));
39040}
39041static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39042 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39043}
1bd55598 39044static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39045 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39046}
39047static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39048 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39049}
24f6c4e8
RD
39050static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39051 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39052}
39053static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39054 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39055}
1bd55598
RD
39056static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39057 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39058}
39059static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39060 return (void *)((wxDC *) ((wxPrinterDC *) x));
39061}
da91cb0f
RD
39062static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39063 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39064}
39065static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39066 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39067}
39068static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39069 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39070}
1bd55598
RD
39071static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39072 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39073}
39074static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39075 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39076}
39077static void *_p_wxPenTo_p_wxObject(void *x) {
39078 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39079}
39080static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39081 return (void *)((wxObject *) ((wxRegionIterator *) x));
39082}
1bd55598
RD
39083static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39084 return (void *)((wxObject *) ((wxSizerItem *) x));
39085}
34e0a3bb
RD
39086static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39087 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39088}
1bd55598
RD
39089static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39090 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39091}
39092static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39093 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39094}
39095static void *_p_wxIconTo_p_wxObject(void *x) {
39096 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39097}
39098static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39099 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39100}
39101static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39102 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39103}
39104static void *_p_wxSizerTo_p_wxObject(void *x) {
39105 return (void *)((wxObject *) ((wxSizer *) x));
39106}
39107static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39108 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39109}
39110static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39111 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39112}
1bd55598
RD
39113static void *_p_wxEventTo_p_wxObject(void *x) {
39114 return (void *)((wxObject *) ((wxEvent *) x));
39115}
39116static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39117 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39118}
39119static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39120 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39121}
39122static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39123 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39124}
27e45892
RD
39125static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39126 return (void *)((wxObject *) ((wxPseudoDC *) x));
39127}
2131d850
RD
39128static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39129 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39130}
1bd55598
RD
39131static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39132 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39133}
39134static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39135 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39136}
39137static void *_p_wxDCTo_p_wxObject(void *x) {
39138 return (void *)((wxObject *) ((wxDC *) x));
39139}
39140static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39141 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39142}
39143static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39144 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39145}
39146static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39147 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39148}
39149static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39150 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39151}
39152static void *_p_wxControlTo_p_wxObject(void *x) {
39153 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39154}
70d7cb34
RD
39155static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39156 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39157}
1bd55598
RD
39158static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39159 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39160}
39161static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39162 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39163}
39164static void *_p_wxFSFileTo_p_wxObject(void *x) {
39165 return (void *)((wxObject *) ((wxFSFile *) x));
39166}
39167static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39168 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39169}
39170static void *_p_wxRegionTo_p_wxObject(void *x) {
39171 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39172}
39173static void *_p_wxPySizerTo_p_wxObject(void *x) {
39174 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39175}
39176static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39177 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39178}
39179static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39180 return (void *)((wxObject *) ((wxGDIObject *) x));
39181}
70d7cb34
RD
39182static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39183 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39184}
39185static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39186 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39187}
1bd55598
RD
39188static void *_p_wxEffectsTo_p_wxObject(void *x) {
39189 return (void *)((wxObject *) ((wxEffects *) x));
39190}
39191static void *_p_wxPyEventTo_p_wxObject(void *x) {
39192 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39193}
39194static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39195 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39196}
39197static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39198 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39199}
70d7cb34
RD
39200static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39201 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39202}
1bd55598
RD
39203static void *_p_wxShowEventTo_p_wxObject(void *x) {
39204 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39205}
39206static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39207 return (void *)((wxObject *) ((wxMenuItem *) x));
39208}
39209static void *_p_wxDateEventTo_p_wxObject(void *x) {
39210 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39211}
39212static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39213 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39214}
39215static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39216 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39217}
39218static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39219 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39220}
39221static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39222 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39223}
39224static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39225 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39226}
39227static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39228 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39229}
39230static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39231 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39232}
39233static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39234 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39235}
39236static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39237 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39238}
39239static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39240 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39241}
39242static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39243 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39244}
39245static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39246 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39247}
39248static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39249 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39250}
39251static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39252 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39253}
39254static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39255 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39256}
39257static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39258 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39259}
39260static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39261 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39262}
39263static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39264 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39265}
39266static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39267 return (void *)((wxObject *) ((wxImageHandler *) x));
39268}
39269static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39270 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39271}
39272static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39273 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39274}
39275static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39276 return (void *)((wxObject *) ((wxEvtHandler *) x));
39277}
34e0a3bb
RD
39278static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39279 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39280}
24f6c4e8
RD
39281static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39282 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39283}
1bd55598 39284static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39285 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39286}
24f6c4e8
RD
39287static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39288 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39289}
39290static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39291 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39292}
39293static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39294 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39295}
39296static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39297 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39298}
39299static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39300 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39301}
39302static void *_p_wxImageTo_p_wxObject(void *x) {
39303 return (void *)((wxObject *) ((wxImage *) x));
39304}
39305static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39306 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39307}
70d7cb34
RD
39308static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39309 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39310}
39311static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39312 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39313}
1bd55598
RD
39314static void *_p_wxPaletteTo_p_wxObject(void *x) {
39315 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39316}
39317static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39318 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39319}
39320static void *_p_wxImageListTo_p_wxObject(void *x) {
39321 return (void *)((wxObject *) ((wxImageList *) x));
39322}
72ef6efb
RD
39323static void *_p_wxGCDCTo_p_wxObject(void *x) {
39324 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39325}
1bd55598
RD
39326static void *_p_wxCursorTo_p_wxObject(void *x) {
39327 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39328}
39329static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39330 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39331}
39332static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39333 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39334}
70d7cb34
RD
39335static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39336 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39337}
1bd55598
RD
39338static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39339 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39340}
39341static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39342 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39343}
39344static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39345 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39346}
39347static void *_p_wxWindowTo_p_wxObject(void *x) {
39348 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39349}
39350static void *_p_wxMenuTo_p_wxObject(void *x) {
39351 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39352}
39353static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39354 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39355}
39356static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39357 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39358}
1bd55598
RD
39359static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39360 return (void *)((wxObject *) ((wxFileSystem *) x));
39361}
39362static void *_p_wxBitmapTo_p_wxObject(void *x) {
39363 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39364}
39365static void *_p_wxMaskTo_p_wxObject(void *x) {
39366 return (void *)((wxObject *) ((wxMask *) x));
39367}
70d7cb34
RD
39368static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39369 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39370}
1bd55598
RD
39371static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39372 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39373}
39374static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39375 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39376}
39377static void *_p_wxPyAppTo_p_wxObject(void *x) {
39378 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39379}
39380static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39381 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39382}
39383static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39384 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39385}
39386static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39387 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39388}
39389static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39390 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39391}
39392static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39393 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39394}
39395static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39396 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39397}
39398static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39399 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39400}
39401static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39402 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39403}
39404static void *_p_wxFontTo_p_wxObject(void *x) {
39405 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39406}
39407static void *_p_wxBrushTo_p_wxObject(void *x) {
39408 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39409}
39410static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39411 return (void *)((wxObject *) ((wxMetaFile *) x));
39412}
39413static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39414 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39415}
39416static void *_p_wxColourTo_p_wxObject(void *x) {
39417 return (void *)((wxObject *) ((wxColour *) x));
39418}
1bd55598
RD
39419static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39420 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39421}
39422static void *_p_wxValidatorTo_p_wxObject(void *x) {
39423 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39424}
39425static void *_p_wxControlTo_p_wxWindow(void *x) {
39426 return (void *)((wxWindow *) ((wxControl *) x));
39427}
39428static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39429 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39430}
39431static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39432 return (void *)((wxWindow *) ((wxMenuBar *) x));
39433}
fc46b7f3
RD
39434static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39435 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39436}
39437static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39438 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39439}
39440static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39441static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39442static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39443static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39444static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39445static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39446static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39447static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39448static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39449static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39450static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39451static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39452static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39453static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39454static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39455static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39456static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39457static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39458static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39459static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39460static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39461static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39462static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39463static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39464static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39465static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39466static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39467static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39468static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39469static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39470static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39471static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39472static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39473static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39474static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39475static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39476static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39477static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39478static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39479static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39480static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39481static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39482static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39483static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39484static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39485static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39486static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39487static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39488static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39489static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39490static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39491static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39492static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39493static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39494static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39495static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39496static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39497static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39498static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39499static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39500static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39501static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39502static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39503static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39504static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39505static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39506static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39507static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39508static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39509static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39510static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39511static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39512static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39513static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39514static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39515static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39516static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39517static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39518static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39519static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39520static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39521static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39522static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39523static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39524static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39525static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39526static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39527static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39528static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39529static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39530static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39531static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39532static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39533static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39534static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39535static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39536static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39537static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39538static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39539static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39540static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39541static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39542static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39543static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 39544static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39545static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39546static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39547static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39548static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39549static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39550static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39551static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39552static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39553static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39554static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
39555static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39556static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39557static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39558static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39559static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39560static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39561static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39562static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39563static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39564static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39565static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39566static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39567static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39568static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39569static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39570static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39571static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39572static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39573static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39574static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39575static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39576static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39577static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39578static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39579static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39580static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39581static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
39582static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39583static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39584static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39585static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39586static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39587static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 39588static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39589static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39590static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39591static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39592static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39593static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39594static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 39595static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39596static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 39597static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39598static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39599static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39600static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39601static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39602static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39603static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39604static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39605static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 39606static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
39607static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39608static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39609static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39610
39611static swig_type_info *swig_type_initial[] = {
fc46b7f3 39612 &_swigt__p_buffer,
1bd55598
RD
39613 &_swigt__p_char,
39614 &_swigt__p_double,
39615 &_swigt__p_form_ops_t,
39616 &_swigt__p_int,
39617 &_swigt__p_unsigned_char,
39618 &_swigt__p_unsigned_int,
39619 &_swigt__p_unsigned_long,
0a27f394 39620 &_swigt__p_void,
1bd55598
RD
39621 &_swigt__p_wxANIHandler,
39622 &_swigt__p_wxAcceleratorTable,
39623 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39624 &_swigt__p_wxAlphaPixelData,
39625 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39626 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
39627 &_swigt__p_wxBMPHandler,
39628 &_swigt__p_wxBitmap,
39629 &_swigt__p_wxBoxSizer,
39630 &_swigt__p_wxBrush,
39631 &_swigt__p_wxBrushList,
39632 &_swigt__p_wxBufferedDC,
39633 &_swigt__p_wxBufferedPaintDC,
39634 &_swigt__p_wxCURHandler,
fc46b7f3 39635 &_swigt__p_wxChar,
1bd55598
RD
39636 &_swigt__p_wxChildFocusEvent,
39637 &_swigt__p_wxClientDC,
2131d850 39638 &_swigt__p_wxClipboardTextEvent,
1bd55598 39639 &_swigt__p_wxCloseEvent,
72ef6efb 39640 &_swigt__p_wxColor,
1bd55598
RD
39641 &_swigt__p_wxColour,
39642 &_swigt__p_wxColourDatabase,
39643 &_swigt__p_wxCommandEvent,
39644 &_swigt__p_wxContextMenuEvent,
39645 &_swigt__p_wxControl,
39646 &_swigt__p_wxControlWithItems,
39647 &_swigt__p_wxCursor,
39648 &_swigt__p_wxDC,
70d7cb34
RD
39649 &_swigt__p_wxDCBrushChanger,
39650 &_swigt__p_wxDCClipper,
b39fe951 39651 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39652 &_swigt__p_wxDCPenChanger,
39653 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
39654 &_swigt__p_wxDash,
39655 &_swigt__p_wxDateEvent,
39656 &_swigt__p_wxDisplayChangedEvent,
39657 &_swigt__p_wxDropFilesEvent,
39658 &_swigt__p_wxDuplexMode,
39659 &_swigt__p_wxEffects,
39660 &_swigt__p_wxEncodingConverter,
39661 &_swigt__p_wxEraseEvent,
39662 &_swigt__p_wxEvent,
39663 &_swigt__p_wxEvtHandler,
39664 &_swigt__p_wxFSFile,
39665 &_swigt__p_wxFileSystem,
39666 &_swigt__p_wxFlexGridSizer,
39667 &_swigt__p_wxFocusEvent,
39668 &_swigt__p_wxFont,
39669 &_swigt__p_wxFontList,
39670 &_swigt__p_wxFontMapper,
39671 &_swigt__p_wxGBSizerItem,
72ef6efb 39672 &_swigt__p_wxGCDC,
da91cb0f 39673 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
39674 &_swigt__p_wxGDIObject,
39675 &_swigt__p_wxGIFHandler,
70d7cb34 39676 &_swigt__p_wxGraphicsBrush,
72ef6efb 39677 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39678 &_swigt__p_wxGraphicsFont,
39679 &_swigt__p_wxGraphicsMatrix,
39680 &_swigt__p_wxGraphicsObject,
72ef6efb 39681 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39682 &_swigt__p_wxGraphicsPen,
39683 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
39684 &_swigt__p_wxGridBagSizer,
39685 &_swigt__p_wxGridSizer,
33d6fd3b 39686 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
39687 &_swigt__p_wxICOHandler,
39688 &_swigt__p_wxIcon,
39689 &_swigt__p_wxIconBundle,
39690 &_swigt__p_wxIconLocation,
39691 &_swigt__p_wxIconizeEvent,
39692 &_swigt__p_wxIdleEvent,
39693 &_swigt__p_wxImage,
39694 &_swigt__p_wxImageHandler,
39695 &_swigt__p_wxImageList,
39696 &_swigt__p_wxIndividualLayoutConstraint,
39697 &_swigt__p_wxInitDialogEvent,
39698 &_swigt__p_wxJPEGHandler,
39699 &_swigt__p_wxKeyEvent,
39700 &_swigt__p_wxLanguageInfo,
39701 &_swigt__p_wxLayoutConstraints,
39702 &_swigt__p_wxLocale,
39703 &_swigt__p_wxMask,
39704 &_swigt__p_wxMaximizeEvent,
39705 &_swigt__p_wxMemoryDC,
39706 &_swigt__p_wxMenu,
39707 &_swigt__p_wxMenuBar,
39708 &_swigt__p_wxMenuEvent,
39709 &_swigt__p_wxMenuItem,
39710 &_swigt__p_wxMetaFile,
39711 &_swigt__p_wxMetaFileDC,
39712 &_swigt__p_wxMirrorDC,
39713 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39714 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
39715 &_swigt__p_wxMouseEvent,
39716 &_swigt__p_wxMoveEvent,
39717 &_swigt__p_wxNativeEncodingInfo,
39718 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39719 &_swigt__p_wxNativePixelData,
39720 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
39721 &_swigt__p_wxNavigationKeyEvent,
39722 &_swigt__p_wxNcPaintEvent,
39723 &_swigt__p_wxNotifyEvent,
39724 &_swigt__p_wxObject,
b39fe951 39725 &_swigt__p_wxOverlay,
1bd55598
RD
39726 &_swigt__p_wxPCXHandler,
39727 &_swigt__p_wxPNGHandler,
39728 &_swigt__p_wxPNMHandler,
39729 &_swigt__p_wxPaintDC,
39730 &_swigt__p_wxPaintEvent,
39731 &_swigt__p_wxPalette,
39732 &_swigt__p_wxPaletteChangedEvent,
39733 &_swigt__p_wxPaperSize,
39734 &_swigt__p_wxPen,
39735 &_swigt__p_wxPenList,
fc46b7f3 39736 &_swigt__p_wxPixelDataBase,
1bd55598 39737 &_swigt__p_wxPoint,
72ef6efb 39738 &_swigt__p_wxPoint2D,
70d7cb34 39739 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
39740 &_swigt__p_wxPostScriptDC,
39741 &_swigt__p_wxPrintData,
39742 &_swigt__p_wxPrinterDC,
27e45892 39743 &_swigt__p_wxPseudoDC,
1bd55598
RD
39744 &_swigt__p_wxPyApp,
39745 &_swigt__p_wxPyCommandEvent,
39746 &_swigt__p_wxPyEvent,
39747 &_swigt__p_wxPyFontEnumerator,
39748 &_swigt__p_wxPyImageHandler,
fc46b7f3 39749 &_swigt__p_wxPyLocale,
1bd55598
RD
39750 &_swigt__p_wxPySizer,
39751 &_swigt__p_wxPyValidator,
39752 &_swigt__p_wxQueryNewPaletteEvent,
39753 &_swigt__p_wxRect,
70d7cb34 39754 &_swigt__p_wxRect2DDouble,
1bd55598
RD
39755 &_swigt__p_wxRegion,
39756 &_swigt__p_wxRegionIterator,
39757 &_swigt__p_wxRendererNative,
39758 &_swigt__p_wxRendererVersion,
39759 &_swigt__p_wxScreenDC,
39760 &_swigt__p_wxScrollEvent,
39761 &_swigt__p_wxScrollWinEvent,
39762 &_swigt__p_wxSetCursorEvent,
39763 &_swigt__p_wxShowEvent,
39764 &_swigt__p_wxSize,
39765 &_swigt__p_wxSizeEvent,
39766 &_swigt__p_wxSizer,
39767 &_swigt__p_wxSizerItem,
39768 &_swigt__p_wxSplitterRenderParams,
39769 &_swigt__p_wxStaticBoxSizer,
39770 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 39771 &_swigt__p_wxStockGDI,
1bd55598
RD
39772 &_swigt__p_wxString,
39773 &_swigt__p_wxSysColourChangedEvent,
39774 &_swigt__p_wxTIFFHandler,
39775 &_swigt__p_wxUpdateUIEvent,
39776 &_swigt__p_wxValidator,
39777 &_swigt__p_wxWindow,
39778 &_swigt__p_wxWindowCreateEvent,
39779 &_swigt__p_wxWindowDC,
39780 &_swigt__p_wxWindowDestroyEvent,
39781 &_swigt__p_wxXPMHandler,
39782};
39783
fc46b7f3 39784static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39785static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39786static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39787static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39788static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39789static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39790static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39791static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 39792static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39793static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39794static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39795static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39796static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39797static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39798static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39799static 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}};
39800static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39801static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
39802static 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}};
39803static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39804static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39805static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39806static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39807static 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
39808static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39809static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 39810static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39811static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39812static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39813static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39814static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39815static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39816static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39817static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39818static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39819static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39820static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 39821static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
1bd55598 39822static 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 39823static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39824static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39825static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39826static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
39827static 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 39828static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39829static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
39830static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 39831static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39832static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
39833static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
39834static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
39835static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
39836static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
39837static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39838static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39839static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 39840static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39841static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
39842static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
39843static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
39844static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
39845static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39846static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
39847static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39848static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39849static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39850static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39851static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
39852static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
39853static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39854static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39855static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
39856static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
39857static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
39858static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
39859static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
39860static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39861static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39862static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39863static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39864static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39865static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39866static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39867static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39868static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39869static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39870static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
39871static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
39872static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
39873static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
39874static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
39875static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
39876static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
39877static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
39878static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
39879static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
39880static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
39881static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
39882static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39883static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39884static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39885static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
39886static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39887static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39888static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
39889static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
39890static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39891static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39892static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
39893static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39894static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39895static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 39896static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39897static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39898static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
39899static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
39900static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39901static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39902static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
39903static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
39904static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
39905static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
39906static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39907static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39908static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
39909static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
39910static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39911static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39912static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
39913static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
39914static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
39915static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
39916static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39917static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39918static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
39919static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39920static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39921static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
39922static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
39923static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39924static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_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 39925static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39926static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39927static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
39928static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
39929static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
39930static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39931static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
1bd55598 39932static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39933static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39934static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39935static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
39936static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
39937static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 39938static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39939static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39940static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39941static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39942static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39943static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
39944static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
39945static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
39946static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
39947static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
39948static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
39949static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 39950static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39951static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
39952static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 39953static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39954
39955static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 39956 _swigc__p_buffer,
1bd55598
RD
39957 _swigc__p_char,
39958 _swigc__p_double,
39959 _swigc__p_form_ops_t,
39960 _swigc__p_int,
39961 _swigc__p_unsigned_char,
39962 _swigc__p_unsigned_int,
39963 _swigc__p_unsigned_long,
0a27f394 39964 _swigc__p_void,
1bd55598
RD
39965 _swigc__p_wxANIHandler,
39966 _swigc__p_wxAcceleratorTable,
39967 _swigc__p_wxActivateEvent,
fc46b7f3
RD
39968 _swigc__p_wxAlphaPixelData,
39969 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 39970 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
39971 _swigc__p_wxBMPHandler,
39972 _swigc__p_wxBitmap,
39973 _swigc__p_wxBoxSizer,
39974 _swigc__p_wxBrush,
39975 _swigc__p_wxBrushList,
39976 _swigc__p_wxBufferedDC,
39977 _swigc__p_wxBufferedPaintDC,
39978 _swigc__p_wxCURHandler,
fc46b7f3 39979 _swigc__p_wxChar,
1bd55598
RD
39980 _swigc__p_wxChildFocusEvent,
39981 _swigc__p_wxClientDC,
2131d850 39982 _swigc__p_wxClipboardTextEvent,
1bd55598 39983 _swigc__p_wxCloseEvent,
72ef6efb 39984 _swigc__p_wxColor,
1bd55598
RD
39985 _swigc__p_wxColour,
39986 _swigc__p_wxColourDatabase,
39987 _swigc__p_wxCommandEvent,
39988 _swigc__p_wxContextMenuEvent,
39989 _swigc__p_wxControl,
39990 _swigc__p_wxControlWithItems,
39991 _swigc__p_wxCursor,
39992 _swigc__p_wxDC,
70d7cb34
RD
39993 _swigc__p_wxDCBrushChanger,
39994 _swigc__p_wxDCClipper,
b39fe951 39995 _swigc__p_wxDCOverlay,
70d7cb34
RD
39996 _swigc__p_wxDCPenChanger,
39997 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
39998 _swigc__p_wxDash,
39999 _swigc__p_wxDateEvent,
40000 _swigc__p_wxDisplayChangedEvent,
40001 _swigc__p_wxDropFilesEvent,
40002 _swigc__p_wxDuplexMode,
40003 _swigc__p_wxEffects,
40004 _swigc__p_wxEncodingConverter,
40005 _swigc__p_wxEraseEvent,
40006 _swigc__p_wxEvent,
40007 _swigc__p_wxEvtHandler,
40008 _swigc__p_wxFSFile,
40009 _swigc__p_wxFileSystem,
40010 _swigc__p_wxFlexGridSizer,
40011 _swigc__p_wxFocusEvent,
40012 _swigc__p_wxFont,
40013 _swigc__p_wxFontList,
40014 _swigc__p_wxFontMapper,
40015 _swigc__p_wxGBSizerItem,
72ef6efb 40016 _swigc__p_wxGCDC,
da91cb0f 40017 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40018 _swigc__p_wxGDIObject,
40019 _swigc__p_wxGIFHandler,
70d7cb34 40020 _swigc__p_wxGraphicsBrush,
72ef6efb 40021 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40022 _swigc__p_wxGraphicsFont,
40023 _swigc__p_wxGraphicsMatrix,
40024 _swigc__p_wxGraphicsObject,
72ef6efb 40025 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40026 _swigc__p_wxGraphicsPen,
40027 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40028 _swigc__p_wxGridBagSizer,
40029 _swigc__p_wxGridSizer,
33d6fd3b 40030 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40031 _swigc__p_wxICOHandler,
40032 _swigc__p_wxIcon,
40033 _swigc__p_wxIconBundle,
40034 _swigc__p_wxIconLocation,
40035 _swigc__p_wxIconizeEvent,
40036 _swigc__p_wxIdleEvent,
40037 _swigc__p_wxImage,
40038 _swigc__p_wxImageHandler,
40039 _swigc__p_wxImageList,
40040 _swigc__p_wxIndividualLayoutConstraint,
40041 _swigc__p_wxInitDialogEvent,
40042 _swigc__p_wxJPEGHandler,
40043 _swigc__p_wxKeyEvent,
40044 _swigc__p_wxLanguageInfo,
40045 _swigc__p_wxLayoutConstraints,
40046 _swigc__p_wxLocale,
40047 _swigc__p_wxMask,
40048 _swigc__p_wxMaximizeEvent,
40049 _swigc__p_wxMemoryDC,
40050 _swigc__p_wxMenu,
40051 _swigc__p_wxMenuBar,
40052 _swigc__p_wxMenuEvent,
40053 _swigc__p_wxMenuItem,
40054 _swigc__p_wxMetaFile,
40055 _swigc__p_wxMetaFileDC,
40056 _swigc__p_wxMirrorDC,
40057 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40058 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40059 _swigc__p_wxMouseEvent,
40060 _swigc__p_wxMoveEvent,
40061 _swigc__p_wxNativeEncodingInfo,
40062 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40063 _swigc__p_wxNativePixelData,
40064 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40065 _swigc__p_wxNavigationKeyEvent,
40066 _swigc__p_wxNcPaintEvent,
40067 _swigc__p_wxNotifyEvent,
40068 _swigc__p_wxObject,
b39fe951 40069 _swigc__p_wxOverlay,
1bd55598
RD
40070 _swigc__p_wxPCXHandler,
40071 _swigc__p_wxPNGHandler,
40072 _swigc__p_wxPNMHandler,
40073 _swigc__p_wxPaintDC,
40074 _swigc__p_wxPaintEvent,
40075 _swigc__p_wxPalette,
40076 _swigc__p_wxPaletteChangedEvent,
40077 _swigc__p_wxPaperSize,
40078 _swigc__p_wxPen,
40079 _swigc__p_wxPenList,
fc46b7f3 40080 _swigc__p_wxPixelDataBase,
1bd55598 40081 _swigc__p_wxPoint,
72ef6efb 40082 _swigc__p_wxPoint2D,
70d7cb34 40083 _swigc__p_wxPoint2DDouble,
1bd55598
RD
40084 _swigc__p_wxPostScriptDC,
40085 _swigc__p_wxPrintData,
40086 _swigc__p_wxPrinterDC,
27e45892 40087 _swigc__p_wxPseudoDC,
1bd55598
RD
40088 _swigc__p_wxPyApp,
40089 _swigc__p_wxPyCommandEvent,
40090 _swigc__p_wxPyEvent,
40091 _swigc__p_wxPyFontEnumerator,
40092 _swigc__p_wxPyImageHandler,
fc46b7f3 40093 _swigc__p_wxPyLocale,
1bd55598
RD
40094 _swigc__p_wxPySizer,
40095 _swigc__p_wxPyValidator,
40096 _swigc__p_wxQueryNewPaletteEvent,
40097 _swigc__p_wxRect,
70d7cb34 40098 _swigc__p_wxRect2DDouble,
1bd55598
RD
40099 _swigc__p_wxRegion,
40100 _swigc__p_wxRegionIterator,
40101 _swigc__p_wxRendererNative,
40102 _swigc__p_wxRendererVersion,
40103 _swigc__p_wxScreenDC,
40104 _swigc__p_wxScrollEvent,
40105 _swigc__p_wxScrollWinEvent,
40106 _swigc__p_wxSetCursorEvent,
40107 _swigc__p_wxShowEvent,
40108 _swigc__p_wxSize,
40109 _swigc__p_wxSizeEvent,
40110 _swigc__p_wxSizer,
40111 _swigc__p_wxSizerItem,
40112 _swigc__p_wxSplitterRenderParams,
40113 _swigc__p_wxStaticBoxSizer,
40114 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40115 _swigc__p_wxStockGDI,
1bd55598
RD
40116 _swigc__p_wxString,
40117 _swigc__p_wxSysColourChangedEvent,
40118 _swigc__p_wxTIFFHandler,
40119 _swigc__p_wxUpdateUIEvent,
40120 _swigc__p_wxValidator,
40121 _swigc__p_wxWindow,
40122 _swigc__p_wxWindowCreateEvent,
40123 _swigc__p_wxWindowDC,
40124 _swigc__p_wxWindowDestroyEvent,
40125 _swigc__p_wxXPMHandler,
40126};
40127
40128
40129/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40130
40131static swig_const_info swig_const_table[] = {
40132{0, 0, 0, 0.0, 0, 0}};
40133
40134#ifdef __cplusplus
40135}
40136#endif
40137/* -----------------------------------------------------------------------------
40138 * Type initialization:
40139 * This problem is tough by the requirement that no dynamic
40140 * memory is used. Also, since swig_type_info structures store pointers to
40141 * swig_cast_info structures and swig_cast_info structures store pointers back
40142 * to swig_type_info structures, we need some lookup code at initialization.
40143 * The idea is that swig generates all the structures that are needed.
40144 * The runtime then collects these partially filled structures.
40145 * The SWIG_InitializeModule function takes these initial arrays out of
40146 * swig_module, and does all the lookup, filling in the swig_module.types
40147 * array with the correct data and linking the correct swig_cast_info
40148 * structures together.
40149 *
40150 * The generated swig_type_info structures are assigned staticly to an initial
40151 * array. We just loop though that array, and handle each type individually.
40152 * First we lookup if this type has been already loaded, and if so, use the
40153 * loaded structure instead of the generated one. Then we have to fill in the
40154 * cast linked list. The cast data is initially stored in something like a
40155 * two-dimensional array. Each row corresponds to a type (there are the same
40156 * number of rows as there are in the swig_type_initial array). Each entry in
40157 * a column is one of the swig_cast_info structures for that type.
40158 * The cast_initial array is actually an array of arrays, because each row has
40159 * a variable number of columns. So to actually build the cast linked list,
40160 * we find the array of casts associated with the type, and loop through it
40161 * adding the casts to the list. The one last trick we need to do is making
40162 * sure the type pointer in the swig_cast_info struct is correct.
40163 *
40164 * First off, we lookup the cast->type name to see if it is already loaded.
40165 * There are three cases to handle:
40166 * 1) If the cast->type has already been loaded AND the type we are adding
40167 * casting info to has not been loaded (it is in this module), THEN we
40168 * replace the cast->type pointer with the type pointer that has already
40169 * been loaded.
40170 * 2) If BOTH types (the one we are adding casting info to, and the
40171 * cast->type) are loaded, THEN the cast info has already been loaded by
40172 * the previous module so we just ignore it.
40173 * 3) Finally, if cast->type has not already been loaded, then we add that
40174 * swig_cast_info to the linked list (because the cast->type) pointer will
40175 * be correct.
40176 * ----------------------------------------------------------------------------- */
40177
40178#ifdef __cplusplus
40179extern "C" {
40180#if 0
40181} /* c-mode */
40182#endif
40183#endif
40184
40185#if 0
40186#define SWIGRUNTIME_DEBUG
40187#endif
40188
40189SWIGRUNTIME void
40190SWIG_InitializeModule(void *clientdata) {
40191 size_t i;
40192 swig_module_info *module_head;
40193 static int init_run = 0;
40194
40195 clientdata = clientdata;
40196
40197 if (init_run) return;
40198 init_run = 1;
40199
40200 /* Initialize the swig_module */
40201 swig_module.type_initial = swig_type_initial;
40202 swig_module.cast_initial = swig_cast_initial;
40203
40204 /* Try and load any already created modules */
40205 module_head = SWIG_GetModule(clientdata);
40206 if (module_head) {
40207 swig_module.next = module_head->next;
40208 module_head->next = &swig_module;
40209 } else {
40210 /* This is the first module loaded */
40211 swig_module.next = &swig_module;
40212 SWIG_SetModule(clientdata, &swig_module);
40213 }
40214
40215 /* Now work on filling in swig_module.types */
40216#ifdef SWIGRUNTIME_DEBUG
40217 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40218#endif
40219 for (i = 0; i < swig_module.size; ++i) {
40220 swig_type_info *type = 0;
40221 swig_type_info *ret;
40222 swig_cast_info *cast;
40223
40224#ifdef SWIGRUNTIME_DEBUG
40225 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40226#endif
40227
40228 /* if there is another module already loaded */
40229 if (swig_module.next != &swig_module) {
40230 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40231 }
1bd55598
RD
40232 if (type) {
40233 /* Overwrite clientdata field */
40234#ifdef SWIGRUNTIME_DEBUG
40235 printf("SWIG_InitializeModule: found type %s\n", type->name);
40236#endif
40237 if (swig_module.type_initial[i]->clientdata) {
40238 type->clientdata = swig_module.type_initial[i]->clientdata;
40239#ifdef SWIGRUNTIME_DEBUG
40240 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40241#endif
40242 }
40243 } else {
40244 type = swig_module.type_initial[i];
be9b1dca 40245 }
1bd55598
RD
40246
40247 /* Insert casting types */
40248 cast = swig_module.cast_initial[i];
40249 while (cast->type) {
40250 /* Don't need to add information already in the list */
40251 ret = 0;
40252#ifdef SWIGRUNTIME_DEBUG
40253 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40254#endif
40255 if (swig_module.next != &swig_module) {
40256 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40257#ifdef SWIGRUNTIME_DEBUG
40258 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40259#endif
40260 }
40261 if (ret) {
40262 if (type == swig_module.type_initial[i]) {
40263#ifdef SWIGRUNTIME_DEBUG
40264 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40265#endif
40266 cast->type = ret;
40267 ret = 0;
40268 } else {
40269 /* Check for casting already in the list */
40270 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40271#ifdef SWIGRUNTIME_DEBUG
40272 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40273#endif
40274 if (!ocast) ret = 0;
40275 }
40276 }
40277
40278 if (!ret) {
40279#ifdef SWIGRUNTIME_DEBUG
40280 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40281#endif
40282 if (type->cast) {
40283 type->cast->prev = cast;
40284 cast->next = type->cast;
40285 }
40286 type->cast = cast;
40287 }
40288 cast++;
be9b1dca 40289 }
1bd55598
RD
40290 /* Set entry in modules->types array equal to the type */
40291 swig_module.types[i] = type;
40292 }
40293 swig_module.types[i] = 0;
40294
40295#ifdef SWIGRUNTIME_DEBUG
40296 printf("**** SWIG_InitializeModule: Cast List ******\n");
40297 for (i = 0; i < swig_module.size; ++i) {
40298 int j = 0;
40299 swig_cast_info *cast = swig_module.cast_initial[i];
40300 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40301 while (cast->type) {
40302 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40303 cast++;
40304 ++j;
40305 }
40306 printf("---- Total casts: %d\n",j);
40307 }
40308 printf("**** SWIG_InitializeModule: Cast List ******\n");
40309#endif
40310}
40311
40312/* This function will propagate the clientdata field of type to
40313* any new swig_type_info structures that have been added into the list
40314* of equivalent types. It is like calling
40315* SWIG_TypeClientData(type, clientdata) a second time.
40316*/
40317SWIGRUNTIME void
40318SWIG_PropagateClientData(void) {
40319 size_t i;
40320 swig_cast_info *equiv;
40321 static int init_run = 0;
40322
40323 if (init_run) return;
40324 init_run = 1;
40325
40326 for (i = 0; i < swig_module.size; i++) {
40327 if (swig_module.types[i]->clientdata) {
40328 equiv = swig_module.types[i]->cast;
40329 while (equiv) {
40330 if (!equiv->converter) {
40331 if (equiv->type && !equiv->type->clientdata)
40332 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40333 }
40334 equiv = equiv->next;
40335 }
be9b1dca 40336 }
1bd55598
RD
40337 }
40338}
40339
40340#ifdef __cplusplus
40341#if 0
40342{
40343 /* c-mode */
40344#endif
40345}
40346#endif
40347
40348
40349
40350#ifdef __cplusplus
40351extern "C" {
40352#endif
40353
40354 /* Python-specific SWIG API */
40355#define SWIG_newvarlink() SWIG_Python_newvarlink()
40356#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40357#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40358
40359 /* -----------------------------------------------------------------------------
40360 * global variable support code.
40361 * ----------------------------------------------------------------------------- */
40362
40363 typedef struct swig_globalvar {
40364 char *name; /* Name of global variable */
40365 PyObject *(*get_attr)(void); /* Return the current value */
40366 int (*set_attr)(PyObject *); /* Set the value */
40367 struct swig_globalvar *next;
40368 } swig_globalvar;
40369
40370 typedef struct swig_varlinkobject {
40371 PyObject_HEAD
40372 swig_globalvar *vars;
40373 } swig_varlinkobject;
40374
40375 SWIGINTERN PyObject *
40376 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40377 return PyString_FromString("<Swig global variables>");
40378 }
40379
40380 SWIGINTERN PyObject *
40381 swig_varlink_str(swig_varlinkobject *v) {
40382 PyObject *str = PyString_FromString("(");
40383 swig_globalvar *var;
40384 for (var = v->vars; var; var=var->next) {
40385 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40386 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40387 }
40388 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40389 return str;
40390 }
40391
40392 SWIGINTERN int
40393 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40394 PyObject *str = swig_varlink_str(v);
40395 fprintf(fp,"Swig global variables ");
40396 fprintf(fp,"%s\n", PyString_AsString(str));
40397 Py_DECREF(str);
40398 return 0;
40399 }
40400
40401 SWIGINTERN void
40402 swig_varlink_dealloc(swig_varlinkobject *v) {
40403 swig_globalvar *var = v->vars;
40404 while (var) {
40405 swig_globalvar *n = var->next;
40406 free(var->name);
40407 free(var);
40408 var = n;
be9b1dca 40409 }
1bd55598
RD
40410 }
40411
40412 SWIGINTERN PyObject *
40413 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40414 PyObject *res = NULL;
40415 swig_globalvar *var = v->vars;
40416 while (var) {
40417 if (strcmp(var->name,n) == 0) {
40418 res = (*var->get_attr)();
40419 break;
40420 }
40421 var = var->next;
be9b1dca 40422 }
1bd55598
RD
40423 if (res == NULL && !PyErr_Occurred()) {
40424 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40425 }
1bd55598
RD
40426 return res;
40427 }
40428
40429 SWIGINTERN int
40430 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40431 int res = 1;
40432 swig_globalvar *var = v->vars;
40433 while (var) {
40434 if (strcmp(var->name,n) == 0) {
40435 res = (*var->set_attr)(p);
40436 break;
40437 }
40438 var = var->next;
be9b1dca 40439 }
1bd55598
RD
40440 if (res == 1 && !PyErr_Occurred()) {
40441 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40442 }
1bd55598
RD
40443 return res;
40444 }
40445
40446 SWIGINTERN PyTypeObject*
40447 swig_varlink_type(void) {
40448 static char varlink__doc__[] = "Swig var link object";
40449 static PyTypeObject varlink_type;
40450 static int type_init = 0;
40451 if (!type_init) {
40452 const PyTypeObject tmp
40453 = {
40454 PyObject_HEAD_INIT(NULL)
40455 0, /* Number of items in variable part (ob_size) */
40456 (char *)"swigvarlink", /* Type name (tp_name) */
40457 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40458 0, /* Itemsize (tp_itemsize) */
40459 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40460 (printfunc) swig_varlink_print, /* Print (tp_print) */
40461 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40462 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40463 0, /* tp_compare */
40464 (reprfunc) swig_varlink_repr, /* tp_repr */
40465 0, /* tp_as_number */
40466 0, /* tp_as_sequence */
40467 0, /* tp_as_mapping */
40468 0, /* tp_hash */
40469 0, /* tp_call */
40470 (reprfunc)swig_varlink_str, /* tp_str */
40471 0, /* tp_getattro */
40472 0, /* tp_setattro */
40473 0, /* tp_as_buffer */
40474 0, /* tp_flags */
40475 varlink__doc__, /* tp_doc */
40476 0, /* tp_traverse */
40477 0, /* tp_clear */
40478 0, /* tp_richcompare */
40479 0, /* tp_weaklistoffset */
40480#if PY_VERSION_HEX >= 0x02020000
40481 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40482#endif
40483#if PY_VERSION_HEX >= 0x02030000
40484 0, /* tp_del */
40485#endif
40486#ifdef COUNT_ALLOCS
40487 0,0,0,0 /* tp_alloc -> tp_next */
40488#endif
40489 };
40490 varlink_type = tmp;
40491 varlink_type.ob_type = &PyType_Type;
40492 type_init = 1;
be9b1dca 40493 }
1bd55598
RD
40494 return &varlink_type;
40495 }
40496
40497 /* Create a variable linking object for use later */
40498 SWIGINTERN PyObject *
40499 SWIG_Python_newvarlink(void) {
40500 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40501 if (result) {
40502 result->vars = 0;
40503 }
40504 return ((PyObject*) result);
40505 }
40506
40507 SWIGINTERN void
40508 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40509 swig_varlinkobject *v = (swig_varlinkobject *) p;
40510 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40511 if (gv) {
40512 size_t size = strlen(name)+1;
40513 gv->name = (char *)malloc(size);
40514 if (gv->name) {
40515 strncpy(gv->name,name,size);
40516 gv->get_attr = get_attr;
40517 gv->set_attr = set_attr;
40518 gv->next = v->vars;
40519 }
be9b1dca 40520 }
1bd55598
RD
40521 v->vars = gv;
40522 }
40523
40524 SWIGINTERN PyObject *
40525 SWIG_globals() {
40526 static PyObject *_SWIG_globals = 0;
40527 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40528 return _SWIG_globals;
40529 }
40530
40531 /* -----------------------------------------------------------------------------
40532 * constants/methods manipulation
40533 * ----------------------------------------------------------------------------- */
40534
40535 /* Install Constants */
40536 SWIGINTERN void
40537 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40538 PyObject *obj = 0;
40539 size_t i;
40540 for (i = 0; constants[i].type; ++i) {
40541 switch(constants[i].type) {
40542 case SWIG_PY_POINTER:
40543 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40544 break;
40545 case SWIG_PY_BINARY:
40546 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40547 break;
40548 default:
40549 obj = 0;
40550 break;
40551 }
40552 if (obj) {
40553 PyDict_SetItemString(d, constants[i].name, obj);
40554 Py_DECREF(obj);
40555 }
be9b1dca 40556 }
1bd55598
RD
40557 }
40558
40559 /* -----------------------------------------------------------------------------*/
40560 /* Fix SwigMethods to carry the callback ptrs when needed */
40561 /* -----------------------------------------------------------------------------*/
40562
40563 SWIGINTERN void
40564 SWIG_Python_FixMethods(PyMethodDef *methods,
40565 swig_const_info *const_table,
40566 swig_type_info **types,
40567 swig_type_info **types_initial) {
40568 size_t i;
40569 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 40570 const char *c = methods[i].ml_doc;
1bd55598
RD
40571 if (c && (c = strstr(c, "swig_ptr: "))) {
40572 int j;
40573 swig_const_info *ci = 0;
3d6c9062 40574 const char *name = c + 10;
1bd55598
RD
40575 for (j = 0; const_table[j].type; ++j) {
40576 if (strncmp(const_table[j].name, name,
40577 strlen(const_table[j].name)) == 0) {
40578 ci = &(const_table[j]);
40579 break;
40580 }
40581 }
40582 if (ci) {
40583 size_t shift = (ci->ptype) - types;
40584 swig_type_info *ty = types_initial[shift];
40585 size_t ldoc = (c - methods[i].ml_doc);
40586 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40587 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40588 if (ndoc) {
40589 char *buff = ndoc;
40590 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40591 if (ptr) {
40592 strncpy(buff, methods[i].ml_doc, ldoc);
40593 buff += ldoc;
40594 strncpy(buff, "swig_ptr: ", 10);
40595 buff += 10;
40596 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40597 methods[i].ml_doc = ndoc;
40598 }
40599 }
40600 }
40601 }
be9b1dca 40602 }
1bd55598
RD
40603 }
40604
40605#ifdef __cplusplus
40606}
40607#endif
40608
40609/* -----------------------------------------------------------------------------*
40610 * Partial Init method
40611 * -----------------------------------------------------------------------------*/
40612
40613#ifdef __cplusplus
40614extern "C"
40615#endif
40616SWIGEXPORT void SWIG_init(void) {
40617 PyObject *m, *d;
40618
40619 /* Fix SwigMethods to carry the callback ptrs when needed */
40620 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40621
40622 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40623 d = PyModule_GetDict(m);
40624
40625 SWIG_InitializeModule(0);
40626 SWIG_InstallConstants(d,swig_const_table);
40627
40628
2131d850
RD
40629 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40630 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40631 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40632 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40633 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
40634 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40635 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40636 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40637 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40638 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40639 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40640 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40641 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40642 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40643 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40644 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40645 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40646 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40647 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40648 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40649 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40650 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40651 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40652 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40653 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40654 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40655 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40656 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40657 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40658 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40659 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40660 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40661 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40662 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40663 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40664 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40665 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40666 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40667 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40668 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40669 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40670 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40671 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40672 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40673 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40674 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40675 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40676 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40677 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40678 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40679 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40680 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40681 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40682 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40683 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40684 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40685 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40686 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40687 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40688 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40689 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40690 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40691 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40692 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40693 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40694 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40695 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40696 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40697 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40698 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40699 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40700 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40701 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40702 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40703 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40704 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40705 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40706 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40707 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40708 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40709 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40710 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40711 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40712 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40713 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40714 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40715 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40716 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40717 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40718 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40719 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40720 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40721 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40722 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40723 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40724 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40725 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40726 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40727 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40728 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40729 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40730 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40731 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40732 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40733 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40734 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40735 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40736 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40737 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40738 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40739 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40740 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40741 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40742 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40743 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40744 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40745 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40746 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40747 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40748 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40749 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40750 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40751 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40752 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40753 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40754 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40755 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40756 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40757 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40758 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40759 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40760 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40761
40762 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40763
40764 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40765 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40766 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40767 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40768 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40769 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40770 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40771 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40772 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40773 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40774 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40775 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40776 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40777 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40778 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40779 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40780 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40781 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40782 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40783 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40784 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40785 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40786 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40787 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40788 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40789 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40790 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40791 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40792 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40793 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40794 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40795 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40796 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40797 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40798 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40799 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40800 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40801 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40802 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40803 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40804 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40805 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40806 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40807 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40808 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40809 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40810 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40811 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40812 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40813 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40814 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40815 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40816 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40817 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40818 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40819 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40820 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40821 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40822 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40823 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40824 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
40825 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
40826 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
40827 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
40828 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
40829 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
40830 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
40831 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
40832 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
40833 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
40834 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
40835 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
40836 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
40837 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
40838 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
40839 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
40840 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
40841 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
40842 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
40843 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
40844 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
40845 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
40846 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
40847 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
40848 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
40849 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
40850 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
40851 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
40852 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
40853 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
40854 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
40855 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
40856 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
40857 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
40858 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
40859 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
40860 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
40861 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
40862 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
40863 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
40864 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
40865 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
40866 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
40867 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
40868 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
40869 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
40870 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
40871 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
40872 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
40873 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
40874 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
40875 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
40876 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
40877 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
40878 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
40879 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
40880 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
40881 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
40882 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
40883 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
40884 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
40885 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
40886 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
40887 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
40888 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
40889 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
40890 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
40891 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
40892 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
40893 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
40894 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
40895 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
40896 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
40897 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
40898 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
40899 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
40900 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
40901 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
40902 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
40903 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
40904 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
40905 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
40906 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
40907 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
40908 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
40909 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
40910 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
40911 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
40912 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
40913 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
40914 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
40915 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
40916 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
40917 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
40918 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
40919 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
40920 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
40921 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
40922 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
40923 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
40924 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
40925 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
40926 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
40927 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
40928 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
40929 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
40930 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
40931 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
40932 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
40933 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
40934 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
40935 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
40936 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
40937 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
40938 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
40939 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
40940 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
40941 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
40942 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
40943 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
40944 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
40945 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
40946 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
40947 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
40948 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
40949 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
40950 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
40951 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
40952 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
40953 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
40954 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
40955 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
40956 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
40957 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
40958 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
40959 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
40960 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
40961 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
40962 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
40963 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
40964 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
40965 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
40966 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
40967 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
40968 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
40969 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
40970 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
40971 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
40972 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
40973 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
40974 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
40975 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
40976 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
40977 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
40978 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
40979 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
40980 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
40981 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
40982 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
40983 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
40984 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
40985 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
40986 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
40987 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
40988 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
40989 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
40990 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
40991 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
40992 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
40993 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
40994 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
40995 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
40996 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
40997 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
40998 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
40999 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41000 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41001 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41002 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41003 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41004 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41005 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41006 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41007 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41008 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41009 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41010 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41011 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41012 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41013 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41014 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41015 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41016 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41017 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41018 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41019 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41020 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41021 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41022 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41023 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41024 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41025 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41026 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41027 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41028 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41029 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41030 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41031 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41032 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41033 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41034 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41035 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41036 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41037 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41038 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41039 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41040 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41041 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41042 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41043 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41044 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41045 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41046 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41047 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41048 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41049 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41050 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41051 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41052 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41053 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41054 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41055 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41056 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41057 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41058 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41059 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41060 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41061 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41062 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41063 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41064 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41065 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41066 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41067 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41068 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41069 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41070 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41071 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41072 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41073 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41074 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41075 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41076 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41077 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41078 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41079 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41080 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41081 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41082 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41083 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41084 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41085 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41086 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41087 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41088
41089 // Work around a chicken/egg problem in drawlist.cpp
41090 wxPyDrawList_SetAPIPtr();
41091
d55e5bfc
RD
41092}
41093