]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
more about the downloadable swig
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
093d3ff1 3 * Version 1.3.24
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
d55e5bfc
RD
12
13#ifdef __cplusplus
14template<class T> class SwigValueWrapper {
15 T *tt;
16public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 26};
d55e5bfc
RD
27#endif
28
29
093d3ff1
RD
30#ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31# if defined(__SUNPRO_CC)
32# define SWIG_TEMPLATE_DISAMBIGUATOR template
33# else
34# define SWIG_TEMPLATE_DISAMBIGUATOR
35# endif
36#endif
d55e5bfc 37
d55e5bfc 38
093d3ff1 39#include <Python.h>
d55e5bfc
RD
40
41/***********************************************************************
093d3ff1 42 * swigrun.swg
d55e5bfc 43 *
093d3ff1
RD
44 * This file contains generic CAPI SWIG runtime support for pointer
45 * type checking.
d55e5bfc
RD
46 *
47 ************************************************************************/
48
093d3ff1
RD
49/* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51#define SWIG_RUNTIME_VERSION "1"
d55e5bfc 52
093d3ff1
RD
53/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54#ifdef SWIG_TYPE_TABLE
55#define SWIG_QUOTE_STRING(x) #x
56#define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57#define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 58#else
093d3ff1 59#define SWIG_TYPE_TABLE_NAME
d55e5bfc
RD
60#endif
61
093d3ff1
RD
62#include <string.h>
63
64#ifndef SWIGINLINE
65#if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66# define SWIGINLINE inline
d55e5bfc 67#else
093d3ff1
RD
68# define SWIGINLINE
69#endif
70#endif
71
72/*
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
76
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
79*/
80#ifndef SWIGRUNTIME
81#define SWIGRUNTIME static
82#endif
83#ifndef SWIGRUNTIMEINLINE
84#define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
85#endif
86
87#ifdef __cplusplus
88extern "C" {
89#endif
90
91typedef void *(*swig_converter_func)(void *);
92typedef struct swig_type_info *(*swig_dycast_func)(void **);
93
94typedef struct swig_type_info {
95 const char *name;
96 swig_converter_func converter;
97 const char *str;
98 void *clientdata;
99 swig_dycast_func dcast;
100 struct swig_type_info *next;
101 struct swig_type_info *prev;
102} swig_type_info;
103
093d3ff1
RD
104/*
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
107
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
110*/
111SWIGRUNTIME int
112SWIG_TypeNameComp(const char *f1, const char *l1,
113 const char *f2, const char *l2) {
114 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
115 while ((*f1 == ' ') && (f1 != l1)) ++f1;
116 while ((*f2 == ' ') && (f2 != l2)) ++f2;
117 if (*f1 != *f2) return *f1 - *f2;
118 }
119 return (l1 - f1) - (l2 - f2);
120}
121
122/*
123 Check type equivalence in a name list like <name1>|<name2>|...
124*/
125SWIGRUNTIME int
126SWIG_TypeEquiv(const char *nb, const char *tb) {
127 int equiv = 0;
128 const char* te = tb + strlen(tb);
129 const char* ne = nb;
130 while (!equiv && *ne) {
131 for (nb = ne; *ne; ++ne) {
132 if (*ne == '|') break;
133 }
134 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
135 if (*ne) ++ne;
136 }
137 return equiv;
138}
139
140/*
141 Register a type mapping with the type-checking
142*/
143SWIGRUNTIME swig_type_info *
144SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) {
145 swig_type_info *tc, *head, *ret, *next;
146 /* Check to see if this type has already been registered */
147 tc = *tl;
148 while (tc) {
149 /* check simple type equivalence */
150 int typeequiv = (strcmp(tc->name, ti->name) == 0);
151 /* check full type equivalence, resolving typedefs */
152 if (!typeequiv) {
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc->str && ti->str && !strstr(tc->str,"|")) {
155 typeequiv = SWIG_TypeEquiv(ti->str,tc->str);
156 }
157 }
158 if (typeequiv) {
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti->clientdata) tc->clientdata = ti->clientdata;
161 head = tc;
162 next = tc->next;
163 goto l1;
164 }
165 tc = tc->prev;
166 }
167 head = ti;
168 next = 0;
169
170 /* Place in list */
171 ti->prev = *tl;
172 *tl = ti;
173
174 /* Build linked lists */
175 l1:
176 ret = head;
177 tc = ti + 1;
178 /* Patch up the rest of the links */
179 while (tc->name) {
180 head->next = tc;
181 tc->prev = head;
182 head = tc;
183 tc++;
184 }
185 if (next) next->prev = head;
186 head->next = next;
187
188 return ret;
189}
190
191/*
192 Check the typename
193*/
194SWIGRUNTIME swig_type_info *
195SWIG_TypeCheck(const char *c, swig_type_info *ty) {
196 swig_type_info *s;
197 if (!ty) return 0; /* Void pointer */
198 s = ty->next; /* First element always just a name */
199 do {
200 if (strcmp(s->name,c) == 0) {
201 if (s == ty->next) return s;
202 /* Move s to the top of the linked list */
203 s->prev->next = s->next;
204 if (s->next) {
205 s->next->prev = s->prev;
206 }
207 /* Insert s as second element in the list */
208 s->next = ty->next;
209 if (ty->next) ty->next->prev = s;
210 ty->next = s;
211 s->prev = ty;
212 return s;
213 }
214 s = s->next;
215 } while (s && (s != ty->next));
216 return 0;
217}
218
219/*
220 Cast a pointer up an inheritance hierarchy
221*/
222SWIGRUNTIMEINLINE void *
223SWIG_TypeCast(swig_type_info *ty, void *ptr) {
224 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
225}
226
227/*
228 Dynamic pointer casting. Down an inheritance hierarchy
229*/
230SWIGRUNTIME swig_type_info *
231SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
232 swig_type_info *lastty = ty;
233 if (!ty || !ty->dcast) return ty;
234 while (ty && (ty->dcast)) {
235 ty = (*ty->dcast)(ptr);
236 if (ty) lastty = ty;
237 }
238 return lastty;
239}
240
241/*
242 Return the name associated with this type
243*/
244SWIGRUNTIMEINLINE const char *
245SWIG_TypeName(const swig_type_info *ty) {
246 return ty->name;
247}
248
249/*
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
252*/
253SWIGRUNTIME const char *
254SWIG_TypePrettyName(const swig_type_info *type) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
258 specific. */
259 if (type->str != NULL) {
260 const char *last_name = type->str;
261 const char *s;
262 for (s = type->str; *s; s++)
263 if (*s == '|') last_name = s+1;
264 return last_name;
265 }
266 else
267 return type->name;
268}
269
270/*
271 Search for a swig_type_info structure
272*/
273SWIGRUNTIME swig_type_info *
274SWIG_TypeQueryTL(swig_type_info *tl, const char *name) {
275 swig_type_info *ty = tl;
276 while (ty) {
277 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
278 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
279 ty = ty->prev;
280 }
281 return 0;
282}
283
284/*
285 Set the clientdata field for a type
286*/
287SWIGRUNTIME void
288SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) {
289 swig_type_info *tc, *equiv;
290 if (ti->clientdata) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti->clientdata = clientdata;
293 equiv = ti->next;
294 while (equiv) {
295 if (!equiv->converter) {
296 tc = tl;
297 while (tc) {
298 if ((strcmp(tc->name, equiv->name) == 0))
299 SWIG_TypeClientDataTL(tl,tc,clientdata);
300 tc = tc->prev;
301 }
302 }
303 equiv = equiv->next;
304 }
305}
306
307/*
308 Pack binary data into a string
309*/
310SWIGRUNTIME char *
311SWIG_PackData(char *c, void *ptr, size_t sz) {
312 static char hex[17] = "0123456789abcdef";
313 unsigned char *u = (unsigned char *) ptr;
314 const unsigned char *eu = u + sz;
315 register unsigned char uu;
316 for (; u != eu; ++u) {
317 uu = *u;
318 *(c++) = hex[(uu & 0xf0) >> 4];
319 *(c++) = hex[uu & 0xf];
320 }
321 return c;
322}
323
324/*
325 Unpack binary data from a string
326*/
327SWIGRUNTIME const char *
328SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
329 register unsigned char *u = (unsigned char *) ptr;
330 register const unsigned char *eu = u + sz;
331 for (; u != eu; ++u) {
332 register int d = *(c++);
333 register unsigned char uu = 0;
334 if ((d >= '0') && (d <= '9'))
335 uu = ((d - '0') << 4);
336 else if ((d >= 'a') && (d <= 'f'))
337 uu = ((d - ('a'-10)) << 4);
338 else
339 return (char *) 0;
340 d = *(c++);
341 if ((d >= '0') && (d <= '9'))
342 uu |= (d - '0');
343 else if ((d >= 'a') && (d <= 'f'))
344 uu |= (d - ('a'-10));
345 else
346 return (char *) 0;
347 *u = uu;
348 }
349 return c;
350}
351
352/*
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
357*/
358SWIGRUNTIME void
359SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) {
360 swig_type_info *equiv = type->next;
361 swig_type_info *tc;
362 if (!type->clientdata) return;
363 while (equiv) {
364 if (!equiv->converter) {
365 tc = tl;
366 while (tc) {
367 if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata)
368 SWIG_TypeClientDataTL(tl,tc, type->clientdata);
369 tc = tc->prev;
370 }
371 }
372 equiv = equiv->next;
373 }
374}
d55e5bfc 375
093d3ff1
RD
376/*
377 Pack 'void *' into a string buffer.
378*/
379SWIGRUNTIME char *
380SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
381 char *r = buff;
382 if ((2*sizeof(void *) + 2) > bsz) return 0;
383 *(r++) = '_';
384 r = SWIG_PackData(r,&ptr,sizeof(void *));
385 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
386 strcpy(r,name);
387 return buff;
388}
389
390SWIGRUNTIME const char *
391SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
392 if (*c != '_') {
393 if (strcmp(c,"NULL") == 0) {
394 *ptr = (void *) 0;
395 return name;
396 } else {
397 return 0;
398 }
399 }
400 return SWIG_UnpackData(++c,ptr,sizeof(void *));
401}
402
403SWIGRUNTIME char *
404SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
405 char *r = buff;
406 size_t lname = (name ? strlen(name) : 0);
407 if ((2*sz + 2 + lname) > bsz) return 0;
408 *(r++) = '_';
409 r = SWIG_PackData(r,ptr,sz);
410 if (lname) {
411 strncpy(r,name,lname+1);
412 } else {
413 *r = 0;
414 }
415 return buff;
416}
d55e5bfc 417
093d3ff1
RD
418SWIGRUNTIME const char *
419SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
420 if (*c != '_') {
421 if (strcmp(c,"NULL") == 0) {
422 memset(ptr,0,sz);
423 return name;
424 } else {
425 return 0;
426 }
427 }
428 return SWIG_UnpackData(++c,ptr,sz);
429}
d55e5bfc
RD
430
431#ifdef __cplusplus
432}
433#endif
434
435/***********************************************************************
093d3ff1
RD
436 * common.swg
437 *
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
440 * external linkage.
d55e5bfc 441 *
093d3ff1 442 * Author : David Beazley (beazley@cs.uchicago.edu)
d55e5bfc 443 *
093d3ff1
RD
444 * Copyright (c) 1999-2000, The University of Chicago
445 *
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
d55e5bfc
RD
448 ************************************************************************/
449
093d3ff1
RD
450
451#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452# if !defined(STATIC_LINKED)
453# define SWIGEXPORT(a) __declspec(dllexport) a
454# else
455# define SWIGEXPORT(a) a
456# endif
457#else
458# define SWIGEXPORT(a) a
459#endif
460
d55e5bfc
RD
461#ifdef __cplusplus
462extern "C" {
463#endif
464
d55e5bfc 465
093d3ff1 466/*************************************************************************/
d55e5bfc 467
d55e5bfc 468
093d3ff1 469/* The static type info list */
d55e5bfc 470
093d3ff1
RD
471static swig_type_info *swig_type_list = 0;
472static swig_type_info **swig_type_list_handle = &swig_type_list;
473
d55e5bfc 474
093d3ff1
RD
475/* Register a type mapping with the type-checking */
476static swig_type_info *
477SWIG_TypeRegister(swig_type_info *ti) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle, ti);
479}
d55e5bfc 480
093d3ff1
RD
481/* Search for a swig_type_info structure */
482static swig_type_info *
483SWIG_TypeQuery(const char *name) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle, name);
485}
d55e5bfc 486
093d3ff1
RD
487/* Set the clientdata field for a type */
488static void
489SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata);
491}
d55e5bfc 492
093d3ff1
RD
493/* This function will propagate the clientdata field of type to
494* any new swig_type_info structures that have been added into the list
495* of equivalent types. It is like calling
496* SWIG_TypeClientData(type, clientdata) a second time.
497*/
498static void
499SWIG_PropagateClientData(swig_type_info *type) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle, type);
501}
d55e5bfc
RD
502
503#ifdef __cplusplus
504}
505#endif
506
093d3ff1
RD
507/* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
d55e5bfc 510
093d3ff1
RD
511#ifdef __cplusplus
512extern "C" {
513#endif
c32bde28 514
093d3ff1
RD
515/* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
d55e5bfc 518
093d3ff1
RD
519#ifndef SWIGINTERN
520#define SWIGINTERN static
521#endif
d55e5bfc 522
093d3ff1
RD
523#ifndef SWIGINTERNSHORT
524#ifdef __cplusplus
525#define SWIGINTERNSHORT static inline
526#else /* C case */
527#define SWIGINTERNSHORT static
528#endif /* __cplusplus */
529#endif
d55e5bfc
RD
530
531
093d3ff1
RD
532/*
533 Exception handling in wrappers
534*/
535#define SWIG_fail goto fail
536#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
541
542/*
543 Contract support
544*/
545#define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
547
548/* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
d55e5bfc 551
093d3ff1
RD
552/* Constant Types */
553#define SWIG_PY_INT 1
554#define SWIG_PY_FLOAT 2
555#define SWIG_PY_STRING 3
556#define SWIG_PY_POINTER 4
557#define SWIG_PY_BINARY 5
558
559/* Constant information structure */
560typedef struct swig_const_info {
561 int type;
562 char *name;
563 long lvalue;
564 double dvalue;
565 void *pvalue;
566 swig_type_info **ptype;
567} swig_const_info;
d55e5bfc 568
c32bde28 569
093d3ff1
RD
570/* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
c32bde28
RD
573#define SWIG_OLDOBJ 1
574#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575#define SWIG_PYSTR SWIG_NEWOBJ + 1
d55e5bfc
RD
576
577#ifdef __cplusplus
093d3ff1
RD
578}
579#endif
d55e5bfc 580
d55e5bfc 581
093d3ff1
RD
582/***********************************************************************
583 * pyrun.swg
584 *
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
587 * type checking.
588 *
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
d55e5bfc 591
093d3ff1
RD
592/* Common SWIG API */
593#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
9d7dfdff 596
d55e5bfc 597
093d3ff1
RD
598/* Python-specific SWIG API */
599#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 601
d55e5bfc 602
093d3ff1
RD
603/* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
606/*
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
609 not always safe.
610*/
611#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612# define SWIG_COBJECT_TYPES
613#endif
d55e5bfc 614
093d3ff1
RD
615/* Flags for pointer conversion */
616#define SWIG_POINTER_EXCEPTION 0x1
617#define SWIG_POINTER_DISOWN 0x2
d55e5bfc 618
d55e5bfc 619
093d3ff1
RD
620#ifdef __cplusplus
621extern "C" {
622#endif
c32bde28 623
093d3ff1
RD
624/* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
c32bde28 627
093d3ff1
RD
628#ifndef SWIG_BUFFER_SIZE
629#define SWIG_BUFFER_SIZE 1024
630#endif
d55e5bfc 631
093d3ff1
RD
632#if defined(SWIG_COBJECT_TYPES)
633#if !defined(SWIG_COBJECT_PYTHON)
634/* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
d55e5bfc 637
093d3ff1
RD
638typedef struct {
639 PyObject_HEAD
640 void *ptr;
641 const char *desc;
642} PySwigObject;
c32bde28 643
093d3ff1 644/* Declarations for objects of type PySwigObject */
c32bde28 645
093d3ff1
RD
646SWIGRUNTIME int
647PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
648{
649 char result[SWIG_BUFFER_SIZE];
650 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
651 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
652 return 0;
d55e5bfc 653 } else {
093d3ff1 654 return 1;
d55e5bfc
RD
655 }
656}
9d7dfdff 657
093d3ff1
RD
658SWIGRUNTIME PyObject *
659PySwigObject_repr(PySwigObject *v)
c32bde28 660{
093d3ff1
RD
661 char result[SWIG_BUFFER_SIZE];
662 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
663 PyString_FromFormat("<Swig Object at %s>", result) : 0;
c32bde28 664}
d55e5bfc 665
093d3ff1
RD
666SWIGRUNTIME PyObject *
667PySwigObject_str(PySwigObject *v)
c32bde28 668{
093d3ff1
RD
669 char result[SWIG_BUFFER_SIZE];
670 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
671 PyString_FromString(result) : 0;
c32bde28 672}
d55e5bfc 673
093d3ff1
RD
674SWIGRUNTIME PyObject *
675PySwigObject_long(PySwigObject *v)
d55e5bfc 676{
093d3ff1 677 return PyLong_FromUnsignedLong((unsigned long) v->ptr);
c32bde28
RD
678}
679
093d3ff1
RD
680SWIGRUNTIME PyObject *
681PySwigObject_oct(PySwigObject *v)
c32bde28 682{
093d3ff1
RD
683 char buf[100];
684 unsigned long x = (unsigned long)v->ptr;
685 if (x == 0)
686 strcpy(buf, "0");
687 else
688 PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
689 return PyString_FromString(buf);
d55e5bfc
RD
690}
691
093d3ff1
RD
692SWIGRUNTIME PyObject *
693PySwigObject_hex(PySwigObject *v)
d55e5bfc 694{
093d3ff1
RD
695 char buf[100];
696 PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
697 return PyString_FromString(buf);
d55e5bfc
RD
698}
699
093d3ff1
RD
700SWIGRUNTIME int
701PySwigObject_compare(PySwigObject *v, PySwigObject *w)
d55e5bfc 702{
093d3ff1
RD
703 int c = strcmp(v->desc, w->desc);
704 if (c) {
705 return c;
706 } else {
707 void *i = v->ptr;
708 void *j = w->ptr;
709 return (i < j) ? -1 : (i > j) ? 1 : 0;
d55e5bfc 710 }
093d3ff1 711}
d55e5bfc 712
093d3ff1
RD
713SWIGRUNTIME void
714PySwigObject_dealloc(PySwigObject *self)
715{
716 PyObject_DEL(self);
717}
d55e5bfc 718
093d3ff1
RD
719SWIGRUNTIME PyTypeObject*
720PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__[] =
722 "Swig object carries a C/C++ instance pointer";
9d7dfdff 723
093d3ff1
RD
724 static PyNumberMethods PySwigObject_as_number = {
725 (binaryfunc)0, /*nb_add*/
726 (binaryfunc)0, /*nb_subtract*/
727 (binaryfunc)0, /*nb_multiply*/
728 (binaryfunc)0, /*nb_divide*/
729 (binaryfunc)0, /*nb_remainder*/
730 (binaryfunc)0, /*nb_divmod*/
731 (ternaryfunc)0,/*nb_power*/
732 (unaryfunc)0, /*nb_negative*/
733 (unaryfunc)0, /*nb_positive*/
734 (unaryfunc)0, /*nb_absolute*/
735 (inquiry)0, /*nb_nonzero*/
736 0, /*nb_invert*/
737 0, /*nb_lshift*/
738 0, /*nb_rshift*/
739 0, /*nb_and*/
740 0, /*nb_xor*/
741 0, /*nb_or*/
742 (coercion)0, /*nb_coerce*/
743 (unaryfunc)PySwigObject_long, /*nb_int*/
744 (unaryfunc)PySwigObject_long, /*nb_long*/
745 (unaryfunc)0, /*nb_float*/
746 (unaryfunc)PySwigObject_oct, /*nb_oct*/
747 (unaryfunc)PySwigObject_hex, /*nb_hex*/
748#if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
750#endif
751 };
752
753 static int type_init = 0;
754 static PyTypeObject PySwigObject_Type;
755
756 if (!type_init) {
757 PyTypeObject tmp = {
758 PyObject_HEAD_INIT(&PyType_Type)
759 0, /*ob_size*/
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject), /*tp_basicsize*/
762 0, /*tp_itemsize*/
763 /* methods */
764 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
765 (printfunc)PySwigObject_print, /*tp_print*/
766 (getattrfunc)0, /*tp_getattr*/
767 (setattrfunc)0, /*tp_setattr*/
768 (cmpfunc)PySwigObject_compare, /*tp_compare*/
769 (reprfunc)PySwigObject_repr, /*tp_repr*/
770 &PySwigObject_as_number, /*tp_as_number*/
771 0, /*tp_as_sequence*/
772 0, /*tp_as_mapping*/
773 (hashfunc)0, /*tp_hash*/
774 (ternaryfunc)0, /*tp_call*/
775 (reprfunc)PySwigObject_str, /*tp_str*/
776 /* Space for future expansion */
777 0L,0L,0L,0L,
778 PySwigObject_Type__doc__, /* Documentation string */
779#if PY_VERSION_HEX >= 0x02000000
780 0, /* tp_traverse */
781 0, /* tp_clear */
782#endif
783#if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
786#endif
787#if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
789#endif
790#if PY_VERSION_HEX >= 0x02030000
791 0, /* tp_del */
792#endif
793#ifdef COUNT_ALLOCS
794 0,0,0,0 /* tp_alloc -> tp_next */
795#endif
796 };
797
798 PySwigObject_Type = tmp;
799 type_init = 1;
c32bde28 800 }
093d3ff1
RD
801
802 return &PySwigObject_Type;
d55e5bfc
RD
803}
804
093d3ff1
RD
805SWIGRUNTIME PyObject *
806PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
807{
808 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType());
809 if (self == NULL) return NULL;
810 self->ptr = ptr;
811 self->desc = desc;
812 return (PyObject *)self;
813}
d55e5bfc 814
093d3ff1
RD
815SWIGRUNTIMEINLINE void *
816PySwigObject_AsVoidPtr(PyObject *self)
d55e5bfc 817{
093d3ff1 818 return ((PySwigObject *)self)->ptr;
d55e5bfc
RD
819}
820
093d3ff1
RD
821SWIGRUNTIMEINLINE const char *
822PySwigObject_GetDesc(PyObject *self)
d55e5bfc 823{
093d3ff1 824 return ((PySwigObject *)self)->desc;
c32bde28
RD
825}
826
093d3ff1
RD
827SWIGRUNTIMEINLINE int
828PySwigObject_Check(PyObject *op) {
829 return ((op)->ob_type == PySwigObject_GetType())
830 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
831}
c32bde28 832
093d3ff1
RD
833/* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
836
837typedef struct {
838 PyObject_HEAD
839 void *pack;
840 const char *desc;
841 size_t size;
842} PySwigPacked;
843
844SWIGRUNTIME int
845PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
c32bde28 846{
093d3ff1
RD
847 char result[SWIG_BUFFER_SIZE];
848 fputs("<Swig Packed ", fp);
849 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
850 fputs("at ", fp);
851 fputs(result, fp);
d55e5bfc 852 }
093d3ff1
RD
853 fputs(v->desc,fp);
854 fputs(">", fp);
855 return 0;
c32bde28 856}
9d7dfdff 857
093d3ff1
RD
858SWIGRUNTIME PyObject *
859PySwigPacked_repr(PySwigPacked *v)
c32bde28 860{
093d3ff1
RD
861 char result[SWIG_BUFFER_SIZE];
862 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
864 } else {
865 return PyString_FromFormat("<Swig Packed %s>", v->desc);
866 }
d55e5bfc
RD
867}
868
093d3ff1
RD
869SWIGRUNTIME PyObject *
870PySwigPacked_str(PySwigPacked *v)
d55e5bfc 871{
093d3ff1
RD
872 char result[SWIG_BUFFER_SIZE];
873 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
874 return PyString_FromFormat("%s%s", result, v->desc);
875 } else {
876 return PyString_FromFormat("%s", v->desc);
877 }
d55e5bfc
RD
878}
879
093d3ff1
RD
880SWIGRUNTIME int
881PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 882{
093d3ff1
RD
883 int c = strcmp(v->desc, w->desc);
884 if (c) {
885 return c;
886 } else {
887 size_t i = v->size;
888 size_t j = w->size;
889 int s = (i < j) ? -1 : (i > j) ? 1 : 0;
890 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc 891 }
d55e5bfc
RD
892}
893
093d3ff1
RD
894SWIGRUNTIME void
895PySwigPacked_dealloc(PySwigPacked *self)
d55e5bfc 896{
093d3ff1
RD
897 free(self->pack);
898 PyObject_DEL(self);
d55e5bfc
RD
899}
900
093d3ff1
RD
901SWIGRUNTIME PyTypeObject*
902PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init = 0;
9d7dfdff 906
093d3ff1
RD
907 static PyTypeObject PySwigPacked_Type;
908 if (!type_init) {
909 PyTypeObject tmp = {
910 PyObject_HEAD_INIT(&PyType_Type)
911 0, /*ob_size*/
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked), /*tp_basicsize*/
914 0, /*tp_itemsize*/
915 /* methods */
916 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
917 (printfunc)PySwigPacked_print, /*tp_print*/
918 (getattrfunc)0, /*tp_getattr*/
919 (setattrfunc)0, /*tp_setattr*/
920 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
921 (reprfunc)PySwigPacked_repr, /*tp_repr*/
922 0, /*tp_as_number*/
923 0, /*tp_as_sequence*/
924 0, /*tp_as_mapping*/
925 (hashfunc)0, /*tp_hash*/
926 (ternaryfunc)0, /*tp_call*/
927 (reprfunc)PySwigPacked_str, /*tp_str*/
928 /* Space for future expansion */
929 0L,0L,0L,0L,
930 PySwigPacked_Type__doc__, /* Documentation string */
931#if PY_VERSION_HEX >= 0x02000000
932 0, /* tp_traverse */
933 0, /* tp_clear */
934#endif
935#if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
938#endif
939#if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
941#endif
942#if PY_VERSION_HEX >= 0x02030000
943 0, /* tp_del */
944#endif
945#ifdef COUNT_ALLOCS
946 0,0,0,0 /* tp_alloc -> tp_next */
947#endif
948 };
d55e5bfc 949
093d3ff1
RD
950 PySwigPacked_Type = tmp;
951 type_init = 1;
952 }
9d7dfdff
RD
953
954
d55e5bfc 955
093d3ff1
RD
956 return &PySwigPacked_Type;
957}
958
959SWIGRUNTIME PyObject *
960PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
961{
962 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType());
963 if (self == NULL) {
964 return NULL;
965 } else {
966 void *pack = malloc(size);
967 memcpy(pack, ptr, size);
968 self->pack = pack;
969 self->desc = desc;
970 self->size = size;
971 return (PyObject *) self;
7e63a440 972 }
093d3ff1 973}
d55e5bfc 974
093d3ff1
RD
975SWIGRUNTIMEINLINE const char *
976PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
977{
978 PySwigPacked *self = (PySwigPacked *)obj;
979 if (self->size != size) return 0;
980 memcpy(ptr, self->pack, size);
981 return self->desc;
982}
c32bde28 983
093d3ff1
RD
984SWIGRUNTIMEINLINE const char *
985PySwigPacked_GetDesc(PyObject *self)
986{
987 return ((PySwigPacked *)self)->desc;
988}
c24da6d6 989
093d3ff1
RD
990SWIGRUNTIMEINLINE int
991PySwigPacked_Check(PyObject *op) {
992 return ((op)->ob_type == PySwigPacked_GetType())
993 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
994}
d55e5bfc 995
093d3ff1
RD
996#else
997/* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
d55e5bfc 1000
093d3ff1
RD
1001#define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002#define PySwigObject_Check(obj) PyCObject_Check(obj)
1003#define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004#define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
d55e5bfc 1005
093d3ff1 1006#endif
d55e5bfc 1007
093d3ff1 1008#endif
d55e5bfc 1009
093d3ff1
RD
1010/* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
d55e5bfc 1013
093d3ff1
RD
1014SWIGRUNTIME void
1015SWIG_Python_TypeError(const char *type, PyObject *obj)
1016{
1017 if (type) {
1018#if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj)) {
1020 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1021 if (otype) {
1022 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1023 type, otype);
1024 return;
1025 }
1026 } else
1027#endif
1028 {
1029 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1030 if (otype) {
1031 PyObject *str = PyObject_Str(obj);
1032 const char *cstr = str ? PyString_AsString(str) : 0;
1033 if (cstr) {
1034 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1035 type, otype, cstr);
1036 } else {
1037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1038 type, otype);
1039 }
66af7a75
RD
1040 if (str)
1041 Py_DECREF(str);
093d3ff1
RD
1042 return;
1043 }
1044 }
1045 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1046 } else {
1047 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1048 }
1049}
d55e5bfc 1050
093d3ff1
RD
1051SWIGRUNTIMEINLINE void
1052SWIG_Python_NullRef(const char *type)
d55e5bfc 1053{
093d3ff1
RD
1054 if (type) {
1055 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1056 } else {
1057 PyErr_Format(PyExc_TypeError, "null reference was received");
d55e5bfc 1058 }
c32bde28
RD
1059}
1060
093d3ff1
RD
1061SWIGRUNTIME int
1062SWIG_Python_AddErrMesg(const char* mesg, int infront)
c32bde28 1063{
093d3ff1
RD
1064 if (PyErr_Occurred()) {
1065 PyObject *type = 0;
1066 PyObject *value = 0;
1067 PyObject *traceback = 0;
1068 PyErr_Fetch(&type, &value, &traceback);
1069 if (value) {
1070 PyObject *old_str = PyObject_Str(value);
1071 Py_XINCREF(type);
1072 PyErr_Clear();
1073 if (infront) {
1074 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1075 } else {
1076 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1077 }
1078 Py_DECREF(old_str);
1079 }
1080 return 1;
1081 } else {
1082 return 0;
1083 }
d55e5bfc
RD
1084}
1085
093d3ff1
RD
1086SWIGRUNTIME int
1087SWIG_Python_ArgFail(int argnum)
1088{
1089 if (PyErr_Occurred()) {
1090 /* add information about failing argument */
1091 char mesg[256];
1092 sprintf(mesg, "argument number %d:", argnum);
1093 return SWIG_Python_AddErrMesg(mesg, 1);
1094 } else {
1095 return 0;
1096 }
1097}
d55e5bfc 1098
d55e5bfc 1099
093d3ff1
RD
1100/* -----------------------------------------------------------------------------
1101 * pointers/data manipulation
1102 * ----------------------------------------------------------------------------- */
d55e5bfc 1103
093d3ff1
RD
1104/* Convert a pointer value */
1105SWIGRUNTIME int
1106SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1107 swig_type_info *tc;
1108 const char *c = 0;
1109 static PyObject *SWIG_this = 0;
1110 int newref = 0;
1111 PyObject *pyobj = 0;
1112 void *vptr;
9d7dfdff 1113
093d3ff1
RD
1114 if (!obj) return 0;
1115 if (obj == Py_None) {
1116 *ptr = 0;
1117 return 0;
1118 }
d55e5bfc 1119
093d3ff1
RD
1120#ifdef SWIG_COBJECT_TYPES
1121 if (!(PySwigObject_Check(obj))) {
1122 if (!SWIG_this)
1123 SWIG_this = PyString_FromString("this");
1124 pyobj = obj;
1125 obj = PyObject_GetAttr(obj,SWIG_this);
1126 newref = 1;
1127 if (!obj) goto type_error;
1128 if (!PySwigObject_Check(obj)) {
1129 Py_DECREF(obj);
1130 goto type_error;
1131 }
1132 }
1133 vptr = PySwigObject_AsVoidPtr(obj);
1134 c = (const char *) PySwigObject_GetDesc(obj);
1135 if (newref) { Py_DECREF(obj); }
1136 goto type_check;
1137#else
1138 if (!(PyString_Check(obj))) {
1139 if (!SWIG_this)
1140 SWIG_this = PyString_FromString("this");
1141 pyobj = obj;
1142 obj = PyObject_GetAttr(obj,SWIG_this);
1143 newref = 1;
1144 if (!obj) goto type_error;
1145 if (!PyString_Check(obj)) {
1146 Py_DECREF(obj);
1147 goto type_error;
1148 }
1149 }
1150 c = PyString_AS_STRING(obj);
1151 /* Pointer values must start with leading underscore */
1152 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1153 if (newref) { Py_DECREF(obj); }
1154 if (!c) goto type_error;
1155#endif
d55e5bfc 1156
093d3ff1 1157type_check:
d55e5bfc 1158
093d3ff1
RD
1159 if (ty) {
1160 tc = SWIG_TypeCheck(c,ty);
1161 if (!tc) goto type_error;
1162 *ptr = SWIG_TypeCast(tc,vptr);
1163 } else {
1164 *ptr = vptr;
1165 }
d55e5bfc 1166
093d3ff1
RD
1167 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1168 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1169 }
1170 return 0;
d55e5bfc 1171
093d3ff1
RD
1172type_error:
1173 PyErr_Clear();
1174 if (pyobj && !obj) {
1175 obj = pyobj;
1176 if (PyCFunction_Check(obj)) {
1177 /* here we get the method pointer for callbacks */
1178 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1179 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1180 if (c) {
1181 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1182 if (!c) goto type_error;
1183 goto type_check;
1184 }
1185 }
1186 }
1187 if (flags & SWIG_POINTER_EXCEPTION) {
1188 if (ty) {
1189 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1190 } else {
1191 SWIG_Python_TypeError("C/C++ pointer", obj);
1192 }
1193 }
1194 return -1;
1195}
d55e5bfc 1196
093d3ff1
RD
1197/* Convert a pointer value, signal an exception on a type mismatch */
1198SWIGRUNTIME void *
1199SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1200 void *result;
1201 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1202 PyErr_Clear();
1203 if (flags & SWIG_POINTER_EXCEPTION) {
1204 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1205 SWIG_Python_ArgFail(argnum);
1206 }
1207 }
1208 return result;
1209}
d55e5bfc 1210
093d3ff1
RD
1211/* Convert a packed value value */
1212SWIGRUNTIME int
1213SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1214 swig_type_info *tc;
1215 const char *c = 0;
d55e5bfc 1216
093d3ff1
RD
1217#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1218 c = PySwigPacked_UnpackData(obj, ptr, sz);
1219#else
1220 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1221 c = PyString_AS_STRING(obj);
1222 /* Pointer values must start with leading underscore */
1223 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1224#endif
1225 if (!c) goto type_error;
1226 if (ty) {
1227 tc = SWIG_TypeCheck(c,ty);
1228 if (!tc) goto type_error;
1229 }
1230 return 0;
d55e5bfc 1231
093d3ff1
RD
1232type_error:
1233 PyErr_Clear();
1234 if (flags & SWIG_POINTER_EXCEPTION) {
1235 if (ty) {
1236 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1237 } else {
1238 SWIG_Python_TypeError("C/C++ packed data", obj);
1239 }
1240 }
1241 return -1;
1242}
1243
1244/* Create a new array object */
1245SWIGRUNTIME PyObject *
1246SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1247 PyObject *robj = 0;
1248 if (!ptr) {
1249 Py_INCREF(Py_None);
1250 return Py_None;
1251 }
1252#ifdef SWIG_COBJECT_TYPES
1253 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1254#else
1255 {
1256 char result[SWIG_BUFFER_SIZE];
1257 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1258 PyString_FromString(result) : 0;
1259 }
1260#endif
1261 if (!robj || (robj == Py_None)) return robj;
1262 if (type->clientdata) {
1263 PyObject *inst;
1264 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1265 Py_DECREF(robj);
1266 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1267 Py_DECREF(args);
1268 if (inst) {
1269 if (own) {
1270 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1271 }
1272 robj = inst;
1273 }
1274 }
1275 return robj;
1276}
1277
1278SWIGRUNTIME PyObject *
1279SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1280 PyObject *robj = 0;
1281 if (!ptr) {
1282 Py_INCREF(Py_None);
1283 return Py_None;
1284 }
1285#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1286 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1287#else
1288 {
1289 char result[SWIG_BUFFER_SIZE];
1290 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1291 PyString_FromString(result) : 0;
1292 }
1293#endif
1294 return robj;
1295}
d55e5bfc 1296
093d3ff1
RD
1297/* -----------------------------------------------------------------------------*
1298 * Get type list
1299 * -----------------------------------------------------------------------------*/
d55e5bfc 1300
093d3ff1
RD
1301#ifdef SWIG_LINK_RUNTIME
1302void *SWIG_ReturnGlobalTypeList(void *);
1303#endif
d55e5bfc 1304
093d3ff1
RD
1305SWIGRUNTIME swig_type_info **
1306SWIG_Python_GetTypeListHandle() {
1307 static void *type_pointer = (void *)0;
1308 /* first check if module already created */
1309 if (!type_pointer) {
1310#ifdef SWIG_LINK_RUNTIME
1311 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 1312#else
093d3ff1
RD
1313 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1314 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1315 if (PyErr_Occurred()) {
1316 PyErr_Clear();
1317 type_pointer = (void *)0;
1318 }
1319 }
d55e5bfc 1320#endif
093d3ff1
RD
1321 return (swig_type_info **) type_pointer;
1322}
d55e5bfc 1323
093d3ff1
RD
1324/*
1325 Search for a swig_type_info structure
1326 */
1327SWIGRUNTIMEINLINE swig_type_info *
1328SWIG_Python_GetTypeList() {
1329 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1330 return tlh ? *tlh : (swig_type_info*)0;
1331}
d55e5bfc 1332
093d3ff1 1333#define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
d55e5bfc 1334
093d3ff1
RD
1335#ifdef __cplusplus
1336}
1337#endif
d55e5bfc 1338
5e483524 1339
093d3ff1 1340/* -------- TYPES TABLE (BEGIN) -------- */
d55e5bfc 1341
093d3ff1
RD
1342#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
1343#define SWIGTYPE_p_wxBrush swig_types[1]
1344#define SWIGTYPE_p_wxColour swig_types[2]
1345#define SWIGTYPE_p_wxDC swig_types[3]
1346#define SWIGTYPE_p_wxMirrorDC swig_types[4]
1347#define SWIGTYPE_p_form_ops_t swig_types[5]
be9b1dca
RD
1348#define SWIGTYPE_p_wxRendererVersion swig_types[6]
1349#define SWIGTYPE_p_wxDuplexMode swig_types[7]
1350#define SWIGTYPE_p_wxPyFontEnumerator swig_types[8]
1351#define SWIGTYPE_p_char swig_types[9]
1352#define SWIGTYPE_p_wxIconLocation swig_types[10]
1353#define SWIGTYPE_p_wxImage swig_types[11]
1354#define SWIGTYPE_p_wxMetaFileDC swig_types[12]
1355#define SWIGTYPE_p_wxMask swig_types[13]
1356#define SWIGTYPE_p_wxSize swig_types[14]
1357#define SWIGTYPE_p_wxFont swig_types[15]
1358#define SWIGTYPE_p_wxWindow swig_types[16]
1359#define SWIGTYPE_p_double swig_types[17]
1360#define SWIGTYPE_p_wxMemoryDC swig_types[18]
1361#define SWIGTYPE_p_wxFontMapper swig_types[19]
1362#define SWIGTYPE_p_wxEffects swig_types[20]
1363#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[21]
1364#define SWIGTYPE_p_wxPalette swig_types[22]
1365#define SWIGTYPE_p_wxBitmap swig_types[23]
1366#define SWIGTYPE_p_wxObject swig_types[24]
1367#define SWIGTYPE_p_wxRegionIterator swig_types[25]
1368#define SWIGTYPE_p_wxRect swig_types[26]
1369#define SWIGTYPE_p_wxPaperSize swig_types[27]
1370#define SWIGTYPE_p_wxString swig_types[28]
1371#define SWIGTYPE_unsigned_int swig_types[29]
1372#define SWIGTYPE_p_unsigned_int swig_types[30]
1373#define SWIGTYPE_p_wxPrinterDC swig_types[31]
1374#define SWIGTYPE_p_wxIconBundle swig_types[32]
1375#define SWIGTYPE_p_wxPoint swig_types[33]
1376#define SWIGTYPE_p_wxDash swig_types[34]
1377#define SWIGTYPE_p_wxScreenDC swig_types[35]
1378#define SWIGTYPE_p_wxCursor swig_types[36]
1379#define SWIGTYPE_p_wxClientDC swig_types[37]
1380#define SWIGTYPE_p_wxBufferedDC swig_types[38]
1381#define SWIGTYPE_p_wxImageList swig_types[39]
1382#define SWIGTYPE_p_unsigned_char swig_types[40]
1383#define SWIGTYPE_p_wxGDIObject swig_types[41]
1384#define SWIGTYPE_p_wxIcon swig_types[42]
1385#define SWIGTYPE_p_wxLocale swig_types[43]
1386#define SWIGTYPE_ptrdiff_t swig_types[44]
1387#define SWIGTYPE_std__ptrdiff_t swig_types[45]
1388#define SWIGTYPE_p_wxRegion swig_types[46]
9d7dfdff
RD
1389#define SWIGTYPE_p_wxLanguageInfo swig_types[47]
1390#define SWIGTYPE_p_wxWindowDC swig_types[48]
1391#define SWIGTYPE_p_wxPrintData swig_types[49]
1392#define SWIGTYPE_p_wxBrushList swig_types[50]
1393#define SWIGTYPE_p_wxFontList swig_types[51]
1394#define SWIGTYPE_p_wxPen swig_types[52]
1395#define SWIGTYPE_p_wxBufferedPaintDC swig_types[53]
1396#define SWIGTYPE_p_wxPaintDC swig_types[54]
1397#define SWIGTYPE_p_wxPenList swig_types[55]
1398#define SWIGTYPE_p_int swig_types[56]
1399#define SWIGTYPE_p_wxMetaFile swig_types[57]
1400#define SWIGTYPE_p_wxRendererNative swig_types[58]
1401#define SWIGTYPE_p_unsigned_long swig_types[59]
1402#define SWIGTYPE_p_wxNativeFontInfo swig_types[60]
1403#define SWIGTYPE_p_wxEncodingConverter swig_types[61]
1404#define SWIGTYPE_p_wxSplitterRenderParams swig_types[62]
1405#define SWIGTYPE_p_wxColourDatabase swig_types[63]
1406static swig_type_info *swig_types[65];
d55e5bfc 1407
093d3ff1 1408/* -------- TYPES TABLE (END) -------- */
d55e5bfc 1409
d55e5bfc 1410
093d3ff1
RD
1411/*-----------------------------------------------
1412 @(target):= _gdi_.so
1413 ------------------------------------------------*/
1414#define SWIG_init init_gdi_
d55e5bfc 1415
093d3ff1 1416#define SWIG_name "_gdi_"
d55e5bfc 1417
093d3ff1
RD
1418#include "wx/wxPython/wxPython.h"
1419#include "wx/wxPython/pyclasses.h"
1420
d55e5bfc 1421
093d3ff1 1422 static const wxString wxPyEmptyString(wxEmptyString);
d55e5bfc 1423
093d3ff1 1424#include <limits.h>
d55e5bfc
RD
1425
1426
093d3ff1
RD
1427SWIGINTERN int
1428 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1429 const char *errmsg)
1430{
1431 if (value < min_value) {
1432 if (errmsg) {
1433 PyErr_Format(PyExc_OverflowError,
1434 "value %ld is less than '%s' minimum %ld",
1435 value, errmsg, min_value);
1436 }
1437 return 0;
1438 } else if (value > max_value) {
1439 if (errmsg) {
1440 PyErr_Format(PyExc_OverflowError,
1441 "value %ld is greater than '%s' maximum %ld",
1442 value, errmsg, max_value);
1443 }
1444 return 0;
1445 }
1446 return 1;
1447}
d55e5bfc 1448
d55e5bfc 1449
093d3ff1
RD
1450SWIGINTERN int
1451SWIG_AsVal_long(PyObject* obj, long* val)
d55e5bfc 1452{
c32bde28 1453 if (PyNumber_Check(obj)) {
093d3ff1 1454 if (val) *val = PyInt_AsLong(obj);
c32bde28
RD
1455 return 1;
1456 }
d55e5bfc 1457 else {
093d3ff1 1458 SWIG_type_error("number", obj);
d55e5bfc 1459 }
c32bde28 1460 return 0;
d55e5bfc
RD
1461}
1462
1463
093d3ff1
RD
1464#if INT_MAX != LONG_MAX
1465SWIGINTERN int
1466 SWIG_AsVal_int(PyObject *obj, int *val)
1467{
1468 const char* errmsg = val ? "int" : (char*)0;
1469 long v;
1470 if (SWIG_AsVal_long(obj, &v)) {
1471 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1472 if (val) *val = (int)(v);
1473 return 1;
1474 } else {
1475 return 0;
1476 }
1477 } else {
1478 PyErr_Clear();
1479 }
1480 if (val) {
1481 SWIG_type_error(errmsg, obj);
1482 }
1483 return 0;
1484}
1485#else
1486SWIGINTERNSHORT int
1487 SWIG_AsVal_int(PyObject *obj, int *val)
d55e5bfc 1488{
093d3ff1
RD
1489 return SWIG_AsVal_long(obj,(long*)val);
1490}
1491#endif
1492
1493
1494SWIGINTERN int
1495 SWIG_AsVal_bool(PyObject *obj, bool *val)
1496{
1497 if (obj == Py_True) {
1498 if (val) *val = true;
1499 return 1;
1500 }
1501 if (obj == Py_False) {
1502 if (val) *val = false;
1503 return 1;
1504 }
1505 int res = 0;
1506 if (SWIG_AsVal_int(obj, &res)) {
1507 if (val) *val = res ? true : false;
1508 return 1;
1509 } else {
1510 PyErr_Clear();
1511 }
1512 if (val) {
1513 SWIG_type_error("bool", obj);
1514 }
1515 return 0;
1516}
1517
1518
1519SWIGINTERNSHORT bool
1520SWIG_As_bool(PyObject* obj)
1521{
1522 bool v;
1523 if (!SWIG_AsVal_bool(obj, &v)) {
c32bde28 1524 /*
093d3ff1 1525 this is needed to make valgrind/purify happier.
c32bde28 1526 */
093d3ff1 1527 memset((void*)&v, 0, sizeof(bool));
d55e5bfc 1528 }
c32bde28
RD
1529 return v;
1530}
1531
1532
093d3ff1
RD
1533SWIGINTERNSHORT int
1534SWIG_Check_bool(PyObject* obj)
c32bde28 1535{
093d3ff1 1536 return SWIG_AsVal_bool(obj, (bool*)0);
d55e5bfc
RD
1537}
1538
c32bde28 1539
093d3ff1
RD
1540SWIGINTERN int
1541SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1542{
1543 long v = 0;
1544 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1545 SWIG_type_error("unsigned number", obj);
1546 }
1547 else if (val)
1548 *val = (unsigned long)v;
1549 return 1;
1550}
c32bde28 1551
d55e5bfc 1552
093d3ff1
RD
1553SWIGINTERNSHORT int
1554 SWIG_CheckUnsignedLongInRange(unsigned long value,
1555 unsigned long max_value,
1556 const char *errmsg)
1557{
1558 if (value > max_value) {
1559 if (errmsg) {
1560 PyErr_Format(PyExc_OverflowError,
1561 "value %lu is greater than '%s' minimum %lu",
1562 value, errmsg, max_value);
1563 }
1564 return 0;
1565 }
1566 return 1;
1567 }
1568
1569
1570SWIGINTERN int
1571 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1572{
1573 const char* errmsg = val ? "unsigned char" : (char*)0;
1574 unsigned long v;
1575 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1576 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1577 if (val) *val = (unsigned char)(v);
1578 return 1;
1579 } else {
1580 return 0;
1581 }
1582 } else {
1583 PyErr_Clear();
1584 }
1585 if (val) {
1586 SWIG_type_error(errmsg, obj);
1587 }
1588 return 0;
d55e5bfc
RD
1589}
1590
1591
093d3ff1
RD
1592SWIGINTERNSHORT unsigned char
1593SWIG_As_unsigned_SS_char(PyObject* obj)
1594{
1595 unsigned char v;
1596 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1597 /*
1598 this is needed to make valgrind/purify happier.
1599 */
1600 memset((void*)&v, 0, sizeof(unsigned char));
1601 }
1602 return v;
1603}
d55e5bfc 1604
093d3ff1
RD
1605
1606SWIGINTERNSHORT int
1607SWIG_Check_unsigned_SS_char(PyObject* obj)
1608{
1609 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1610}
d55e5bfc 1611
d55e5bfc 1612
093d3ff1
RD
1613SWIGINTERNSHORT unsigned long
1614SWIG_As_unsigned_SS_long(PyObject* obj)
1615{
1616 unsigned long v;
1617 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1618 /*
1619 this is needed to make valgrind/purify happier.
1620 */
1621 memset((void*)&v, 0, sizeof(unsigned long));
1622 }
1623 return v;
1624}
d55e5bfc 1625
093d3ff1
RD
1626
1627SWIGINTERNSHORT int
1628SWIG_Check_unsigned_SS_long(PyObject* obj)
1629{
1630 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1631}
d55e5bfc
RD
1632
1633
9d7dfdff 1634 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
093d3ff1
RD
1635#define SWIG_From_unsigned_SS_char PyInt_FromLong
1636/*@@*/
d55e5bfc 1637
d55e5bfc 1638
9d7dfdff 1639 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
093d3ff1
RD
1640#define SWIG_From_long PyInt_FromLong
1641/*@@*/
d55e5bfc 1642
093d3ff1
RD
1643static PyObject *wxColour_Get(wxColour *self){
1644 PyObject* rv = PyTuple_New(3);
1645 int red = -1;
1646 int green = -1;
1647 int blue = -1;
1648 if (self->Ok()) {
1649 red = self->Red();
1650 green = self->Green();
1651 blue = self->Blue();
1652 }
1653 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
1654 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
1655 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
1656 return rv;
1657 }
1658static unsigned long wxColour_GetRGB(wxColour *self){
1659 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
1660 }
1661
1662SWIGINTERNSHORT PyObject*
1663 SWIG_From_unsigned_SS_long(unsigned long value)
1664{
1665 return (value > LONG_MAX) ?
1666 PyLong_FromUnsignedLong(value)
1667 : PyInt_FromLong((long)(value));
d55e5bfc
RD
1668}
1669
1670
093d3ff1
RD
1671SWIGINTERNSHORT int
1672SWIG_As_int(PyObject* obj)
1673{
1674 int v;
1675 if (!SWIG_AsVal_int(obj, &v)) {
1676 /*
1677 this is needed to make valgrind/purify happier.
1678 */
1679 memset((void*)&v, 0, sizeof(int));
1680 }
1681 return v;
d55e5bfc
RD
1682}
1683
093d3ff1
RD
1684
1685SWIGINTERNSHORT int
1686SWIG_Check_int(PyObject* obj)
1687{
1688 return SWIG_AsVal_int(obj, (int*)0);
d55e5bfc
RD
1689}
1690
1691
9d7dfdff 1692 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
093d3ff1
RD
1693#define SWIG_From_int PyInt_FromLong
1694/*@@*/
d55e5bfc
RD
1695
1696
093d3ff1
RD
1697 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1698 PyObject* o2;
1699 PyObject* o3;
d55e5bfc 1700
093d3ff1
RD
1701 if (!target) {
1702 target = o;
1703 } else if (target == Py_None) {
1704 Py_DECREF(Py_None);
1705 target = o;
1706 } else {
1707 if (!PyTuple_Check(target)) {
1708 o2 = target;
1709 target = PyTuple_New(1);
1710 PyTuple_SetItem(target, 0, o2);
1711 }
1712 o3 = PyTuple_New(1);
1713 PyTuple_SetItem(o3, 0, o);
1714
1715 o2 = target;
1716 target = PySequence_Concat(o2, o3);
1717 Py_DECREF(o2);
1718 Py_DECREF(o3);
d55e5bfc 1719 }
093d3ff1
RD
1720 return target;
1721 }
d55e5bfc
RD
1722
1723
093d3ff1
RD
1724static PyObject *wxPen_GetDashes(wxPen *self){
1725 wxDash* dashes;
1726 int count = self->GetDashes(&dashes);
5a446332 1727 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
1728 PyObject* retval = PyList_New(0);
1729 for (int x=0; x<count; x++) {
1730 PyObject* pyint = PyInt_FromLong(dashes[x]);
1731 PyList_Append(retval, pyint);
1732 Py_DECREF(pyint);
1733 }
1734 wxPyEndBlockThreads(blocked);
1735 return retval;
1736 }
1737static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 1738 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
1739 int size = PyList_Size(pyDashes);
1740 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 1741
093d3ff1
RD
1742 // black magic warning! The array of wxDashes needs to exist as
1743 // long as the pen does because wxPen does not copy the array. So
1744 // stick a copy in a Python string object and attach it to _self,
1745 // and then call SetDashes with a pointer to that array. Then
1746 // when the Python pen object is destroyed the array will be
1747 // cleaned up too.
1748 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
1749 PyObject_SetAttrString(_self, "_dashes", strDashes);
1750
1751 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
1752 delete [] dashes;
1753 Py_DECREF(strDashes);
1754 wxPyEndBlockThreads(blocked);
1755 }
1756static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
1757static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 1758
093d3ff1 1759#include <wx/image.h>
d55e5bfc 1760
093d3ff1
RD
1761 static char** ConvertListOfStrings(PyObject* listOfStrings) {
1762 char** cArray = NULL;
1763 int count;
d55e5bfc 1764
093d3ff1
RD
1765 if (!PyList_Check(listOfStrings)) {
1766 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
1767 return NULL;
1768 }
1769 count = PyList_Size(listOfStrings);
1770 cArray = new char*[count];
d55e5bfc 1771
093d3ff1
RD
1772 for(int x=0; x<count; x++) {
1773 // TODO: Need some validation and error checking here
1774 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
1775 }
1776 return cArray;
d55e5bfc 1777 }
d55e5bfc
RD
1778
1779
093d3ff1
RD
1780static wxBitmap *new_wxBitmap(PyObject *listOfStrings){
1781 char** cArray = NULL;
1782 wxBitmap* bmp;
d55e5bfc 1783
093d3ff1
RD
1784 cArray = ConvertListOfStrings(listOfStrings);
1785 if (! cArray)
1786 return NULL;
1787 bmp = new wxBitmap(cArray);
1788 delete [] cArray;
1789 return bmp;
1790 }
1791static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
1792 char* buf;
1793 int length;
1794 PyString_AsStringAndSize(bits, &buf, &length);
1795 return new wxBitmap(buf, width, height, depth);
1796 }
d55e5bfc 1797
093d3ff1
RD
1798SWIGINTERNSHORT long
1799SWIG_As_long(PyObject* obj)
1800{
1801 long v;
1802 if (!SWIG_AsVal_long(obj, &v)) {
1803 /*
1804 this is needed to make valgrind/purify happier.
1805 */
1806 memset((void*)&v, 0, sizeof(long));
1807 }
1808 return v;
d55e5bfc
RD
1809}
1810
093d3ff1
RD
1811
1812SWIGINTERNSHORT int
1813SWIG_Check_long(PyObject* obj)
1814{
1815 return SWIG_AsVal_long(obj, (long*)0);
1816}
d55e5bfc 1817
093d3ff1
RD
1818static void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
1819static wxSize wxBitmap_GetSize(wxBitmap *self){
1820 wxSize size(self->GetWidth(), self->GetHeight());
1821 return size;
1822 }
1823static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
1824 wxMask *mask = new wxMask(*self, colour);
1825 self->SetMask(mask);
1826 }
1827static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
1828 self->SetWidth(size.x);
1829 self->SetHeight(size.y);
1830 }
1831static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
1832static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
1833static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
1834 if ( !colour.Ok() )
1835 return new wxMask(bitmap, *wxBLACK);
1836 else
1837 return new wxMask(bitmap, colour);
1838 }
d55e5bfc 1839
093d3ff1 1840#include <wx/iconbndl.h>
d55e5bfc 1841
093d3ff1
RD
1842static wxIcon *new_wxIcon(wxBitmap const &bmp){
1843 wxIcon* icon = new wxIcon();
1844 icon->CopyFromBitmap(bmp);
1845 return icon;
1846 }
1847static wxIcon *new_wxIcon(PyObject *listOfStrings){
1848 char** cArray = NULL;
1849 wxIcon* icon;
d55e5bfc 1850
093d3ff1
RD
1851 cArray = ConvertListOfStrings(listOfStrings);
1852 if (! cArray)
1853 return NULL;
1854 icon = new wxIcon(cArray);
1855 delete [] cArray;
1856 return icon;
1857 }
1858static void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
1859static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 1860
093d3ff1 1861 return new wxIconLocation(*filename, num);
d55e5bfc
RD
1862
1863
d55e5bfc 1864
093d3ff1
RD
1865 }
1866static void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 1867
093d3ff1 1868 self->SetIndex(num);
d55e5bfc
RD
1869
1870
d55e5bfc 1871
093d3ff1
RD
1872 }
1873static int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 1874
093d3ff1 1875 return self->GetIndex();
d55e5bfc
RD
1876
1877
d55e5bfc 1878
093d3ff1 1879 }
fef4c27a 1880static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 1881#ifdef __WXGTK__
fef4c27a
RD
1882 wxImage img(cursorName, type);
1883 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
1884 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
1885 return new wxCursor(img);
093d3ff1 1886#else
fef4c27a 1887 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
1888#endif
1889 }
1890static void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 1891
093d3ff1
RD
1892
1893static void wxRegionIterator_Next(wxRegionIterator *self){
1894 (*self) ++;
1895 }
1896static bool wxRegionIterator___nonzero__(wxRegionIterator *self){
1897 return self->operator bool();
1898 }
1899
1900#include <wx/fontutil.h>
1901#include <wx/fontmap.h>
1902#include <wx/fontenum.h>
1903
1904static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
1905 return self->ToString();
1906 }
1907
1908 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
1909 { wxPyRaiseNotImplemented(); return NULL; }
1910
1911 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
1912 { wxPyRaiseNotImplemented(); return false; }
1913
1914static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
1915 wxFontEncoding alt_enc;
1916 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
1917 return PyInt_FromLong(alt_enc);
1918 else {
1919 Py_INCREF(Py_None);
1920 return Py_None;
1921 }
1922 }
1923static wxFont *new_wxFont(wxString const &info){
a97cefba
RD
1924 wxNativeFontInfo nfi;
1925 nfi.FromString(info);
1926 return new wxFont(nfi);
1927 }
093d3ff1 1928static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
1929 return wxFont::New(pointSize, family, flags, face, encoding);
1930 }
093d3ff1 1931static 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
1932 return wxFontBase::New(pixelSize, family,
1933 style, weight, underlined,
1934 face, encoding);
1935 }
1936static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
1937 return wxFontBase::New(pixelSize, family, flags, face, encoding);
1938 }
093d3ff1
RD
1939static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
1940static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
1941
1942class wxPyFontEnumerator : public wxFontEnumerator {
1943public:
1944 wxPyFontEnumerator() {}
1945 ~wxPyFontEnumerator() {}
1946
1947 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
1948 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
1949
1950 PYPRIVATE;
1951};
1952
1953IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
1954IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
1955
1956
1957static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
1958 wxArrayString* arr = self->GetEncodings();
1959 if (arr)
1960 return wxArrayString2PyList_helper(*arr);
1961 else
1962 return PyList_New(0);
1963 }
1964static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
1965 wxArrayString* arr = self->GetFacenames();
1966 if (arr)
1967 return wxArrayString2PyList_helper(*arr);
1968 else
1969 return PyList_New(0);
1970 }
1971
1972#include <locale.h>
1973
1974static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
1975 wxLocale* loc;
1976 if (language == -1)
1977 loc = new wxLocale();
1978 else
1979 loc = new wxLocale(language, flags);
1980 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
1981 // for the floating point conversions and such to work right.
1982#if PY_VERSION_HEX < 0x02040000
1983 setlocale(LC_NUMERIC, "C");
1984#endif
1985 return loc;
1986 }
1987static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
1988 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
1989 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
1990 // for the floating point conversions and such to work right.
1991#if PY_VERSION_HEX < 0x02040000
1992 setlocale(LC_NUMERIC, "C");
1993#endif
1994 return rc;
1995 }
1996static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
1997 bool rc = self->Init(language, flags);
1998 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
1999 // for the floating point conversions and such to work right.
2000#if PY_VERSION_HEX < 0x02040000
2001 setlocale(LC_NUMERIC, "C");
2002#endif
2003 return rc;
2004 }
2005
2006#include "wx/wxPython/pydrawxxx.h"
2007
2008static wxColour wxDC_GetPixel(wxDC *self,int x,int y){
2009 wxColour col;
2010 self->GetPixel(x, y, &col);
2011 return col;
2012 }
2013static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
2014 wxColour col;
2015 self->GetPixel(pt, &col);
2016 return col;
2017 }
2018
2019SWIGINTERN int
2020SWIG_AsVal_double(PyObject *obj, double* val)
2021{
2022 if (PyNumber_Check(obj)) {
2023 if (val) *val = PyFloat_AsDouble(obj);
2024 return 1;
d55e5bfc 2025 }
093d3ff1
RD
2026 else {
2027 SWIG_type_error("number", obj);
2028 }
2029 return 0;
d55e5bfc
RD
2030}
2031
2032
093d3ff1
RD
2033SWIGINTERNSHORT double
2034SWIG_As_double(PyObject* obj)
2035{
2036 double v;
2037 if (!SWIG_AsVal_double(obj, &v)) {
2038 /*
2039 this is needed to make valgrind/purify happier.
2040 */
2041 memset((void*)&v, 0, sizeof(double));
2042 }
2043 return v;
2044}
2045
2046
2047SWIGINTERNSHORT int
2048SWIG_Check_double(PyObject* obj)
2049{
2050 return SWIG_AsVal_double(obj, (double*)0);
2051}
2052
2053static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
2054 wxRect rv;
2055 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
2056 return rv;
2057 }
2058
2059static wxRect wxDC_GetClippingRect(wxDC *self){
2060 wxRect rect;
2061 self->GetClippingBox(rect);
2062 return rect;
2063 }
2064static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
2065 wxArrayInt widths;
2066 self->GetPartialTextExtents(text, widths);
2067 return widths;
2068 }
2069
9d7dfdff 2070 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
093d3ff1
RD
2071#define SWIG_From_double PyFloat_FromDouble
2072/*@@*/
2073
2074
2075static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
2076 self->SetLogicalOrigin(point.x, point.y);
2077 }
2078static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
2079 self->SetDeviceOrigin(point.x, point.y);
2080 }
2081static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
2082 self->CalcBoundingBox(point.x, point.y);
2083 }
2084static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2085 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
2086 }
2087static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2088 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
2089 }
2090static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2091 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
2092 }
2093static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2094 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
2095 }
2096static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2097 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
2098 }
2099static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
2100 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
2101 }
2102
2103static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
2104 *x1 = dc->MinX();
2105 *y1 = dc->MinY();
2106 *x2 = dc->MaxX();
2107 *y2 = dc->MaxY();
2108}
2109
2110
2111#include <wx/dcbuffer.h>
2112
2113
2114#include <wx/dcps.h>
2115
2116
2117#include <wx/metafile.h>
2118
2119
2120
2121static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
2122 self->AddColour(name, wxColour(red, green, blue));
2123 }
2124
2125#include <wx/effects.h>
2126
be9b1dca
RD
2127
2128#include "wx/renderer.h"
2129
2130
2131SWIGINTERNSHORT PyObject*
2132 SWIG_From_bool(bool value)
2133{
2134 PyObject *obj = value ? Py_True : Py_False;
2135 Py_INCREF(obj);
2136 return obj;
2137}
2138
093d3ff1
RD
2139#ifdef __cplusplus
2140extern "C" {
2141#endif
2142static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2143 PyObject *resultobj;
093d3ff1 2144 wxGDIObject *result;
d55e5bfc 2145 char *kwnames[] = {
093d3ff1 2146 NULL
d55e5bfc
RD
2147 };
2148
093d3ff1 2149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
d55e5bfc 2150 {
093d3ff1 2151 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 2152 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2153 result = (wxGDIObject *)new wxGDIObject();
d55e5bfc
RD
2154
2155 wxPyEndAllowThreads(__tstate);
2156 if (PyErr_Occurred()) SWIG_fail;
2157 }
093d3ff1 2158 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d55e5bfc
RD
2159 return resultobj;
2160 fail:
2161 return NULL;
2162}
2163
2164
093d3ff1 2165static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2166 PyObject *resultobj;
093d3ff1 2167 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
d55e5bfc
RD
2168 PyObject * obj0 = 0 ;
2169 char *kwnames[] = {
2170 (char *) "self", NULL
2171 };
2172
093d3ff1
RD
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2174 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2175 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2176 {
2177 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2178 delete arg1;
d55e5bfc
RD
2179
2180 wxPyEndAllowThreads(__tstate);
2181 if (PyErr_Occurred()) SWIG_fail;
2182 }
093d3ff1 2183 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2184 return resultobj;
2185 fail:
2186 return NULL;
2187}
2188
2189
093d3ff1 2190static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2191 PyObject *resultobj;
093d3ff1
RD
2192 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2193 bool result;
d55e5bfc 2194 PyObject * obj0 = 0 ;
d55e5bfc 2195 char *kwnames[] = {
093d3ff1 2196 (char *) "self", NULL
d55e5bfc
RD
2197 };
2198
093d3ff1
RD
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2200 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2201 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2202 {
2203 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2204 result = (bool)(arg1)->GetVisible();
d55e5bfc
RD
2205
2206 wxPyEndAllowThreads(__tstate);
110da5b0 2207 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 2208 }
093d3ff1
RD
2209 {
2210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2211 }
d55e5bfc
RD
2212 return resultobj;
2213 fail:
2214 return NULL;
2215}
2216
2217
093d3ff1 2218static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2219 PyObject *resultobj;
093d3ff1
RD
2220 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2221 bool arg2 ;
d55e5bfc 2222 PyObject * obj0 = 0 ;
093d3ff1 2223 PyObject * obj1 = 0 ;
d55e5bfc 2224 char *kwnames[] = {
093d3ff1 2225 (char *) "self",(char *) "visible", NULL
d55e5bfc
RD
2226 };
2227
093d3ff1
RD
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2229 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2230 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 2231 {
093d3ff1
RD
2232 arg2 = (bool)(SWIG_As_bool(obj1));
2233 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 2234 }
d55e5bfc
RD
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2237 (arg1)->SetVisible(arg2);
d55e5bfc
RD
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
093d3ff1 2242 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2243 return resultobj;
2244 fail:
2245 return NULL;
2246}
2247
2248
093d3ff1 2249static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2250 PyObject *resultobj;
093d3ff1 2251 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
d55e5bfc 2252 bool result;
d55e5bfc 2253 PyObject * obj0 = 0 ;
d55e5bfc 2254 char *kwnames[] = {
093d3ff1 2255 (char *) "self", NULL
d55e5bfc
RD
2256 };
2257
093d3ff1
RD
2258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2259 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2260 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2261 {
2262 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2263 result = (bool)(arg1)->IsNull();
d55e5bfc
RD
2264
2265 wxPyEndAllowThreads(__tstate);
2266 if (PyErr_Occurred()) SWIG_fail;
2267 }
2268 {
2269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2270 }
d55e5bfc
RD
2271 return resultobj;
2272 fail:
2273 return NULL;
2274}
2275
2276
093d3ff1
RD
2277static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
2278 PyObject *obj;
2279 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2280 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
2281 Py_INCREF(obj);
2282 return Py_BuildValue((char *)"");
2283}
2284static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
b519803b 2285 PyObject *resultobj;
093d3ff1
RD
2286 byte arg1 = (byte) 0 ;
2287 byte arg2 = (byte) 0 ;
2288 byte arg3 = (byte) 0 ;
2289 wxColour *result;
b519803b 2290 PyObject * obj0 = 0 ;
093d3ff1
RD
2291 PyObject * obj1 = 0 ;
2292 PyObject * obj2 = 0 ;
b519803b 2293 char *kwnames[] = {
093d3ff1 2294 (char *) "red",(char *) "green",(char *) "blue", NULL
b519803b
RD
2295 };
2296
093d3ff1
RD
2297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2298 if (obj0) {
2299 {
2300 arg1 = (byte)(SWIG_As_unsigned_SS_char(obj0));
2301 if (SWIG_arg_fail(1)) SWIG_fail;
2302 }
2303 }
2304 if (obj1) {
2305 {
2306 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
2307 if (SWIG_arg_fail(2)) SWIG_fail;
2308 }
2309 }
2310 if (obj2) {
2311 {
2312 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
2313 if (SWIG_arg_fail(3)) SWIG_fail;
2314 }
2315 }
b519803b
RD
2316 {
2317 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2318 result = (wxColour *)new wxColour(arg1,arg2,arg3);
b519803b
RD
2319
2320 wxPyEndAllowThreads(__tstate);
2321 if (PyErr_Occurred()) SWIG_fail;
2322 }
093d3ff1 2323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
b519803b
RD
2324 return resultobj;
2325 fail:
2326 return NULL;
2327}
2328
2329
093d3ff1 2330static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2331 PyObject *resultobj;
093d3ff1
RD
2332 wxString *arg1 = 0 ;
2333 wxColour *result;
2334 bool temp1 = false ;
d55e5bfc
RD
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
093d3ff1 2337 (char *) "colorName", NULL
d55e5bfc
RD
2338 };
2339
093d3ff1
RD
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
2341 {
2342 arg1 = wxString_in_helper(obj0);
2343 if (arg1 == NULL) SWIG_fail;
2344 temp1 = true;
2345 }
d55e5bfc 2346 {
093d3ff1 2347 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2349 result = (wxColour *)new wxColour((wxString const &)*arg1);
d55e5bfc
RD
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
093d3ff1 2354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d55e5bfc 2355 {
093d3ff1
RD
2356 if (temp1)
2357 delete arg1;
d55e5bfc
RD
2358 }
2359 return resultobj;
2360 fail:
093d3ff1
RD
2361 {
2362 if (temp1)
2363 delete arg1;
2364 }
d55e5bfc
RD
2365 return NULL;
2366}
2367
2368
093d3ff1 2369static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2370 PyObject *resultobj;
093d3ff1
RD
2371 unsigned long arg1 ;
2372 wxColour *result;
d55e5bfc 2373 PyObject * obj0 = 0 ;
d55e5bfc 2374 char *kwnames[] = {
093d3ff1 2375 (char *) "colRGB", NULL
d55e5bfc
RD
2376 };
2377
093d3ff1 2378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
d55e5bfc 2379 {
093d3ff1
RD
2380 arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
2381 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2382 }
2383 {
2384 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2385 result = (wxColour *)new wxColour(arg1);
d55e5bfc
RD
2386
2387 wxPyEndAllowThreads(__tstate);
110da5b0 2388 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 2389 }
093d3ff1 2390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d55e5bfc
RD
2391 return resultobj;
2392 fail:
2393 return NULL;
2394}
2395
2396
093d3ff1 2397static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2398 PyObject *resultobj;
093d3ff1 2399 wxColour *arg1 = (wxColour *) 0 ;
d55e5bfc
RD
2400 PyObject * obj0 = 0 ;
2401 char *kwnames[] = {
2402 (char *) "self", NULL
2403 };
2404
093d3ff1
RD
2405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2406 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2407 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2408 {
2409 PyThreadState* __tstate = wxPyBeginAllowThreads();
2410 delete arg1;
2411
2412 wxPyEndAllowThreads(__tstate);
2413 if (PyErr_Occurred()) SWIG_fail;
2414 }
2415 Py_INCREF(Py_None); resultobj = Py_None;
2416 return resultobj;
2417 fail:
2418 return NULL;
2419}
2420
2421
093d3ff1 2422static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2423 PyObject *resultobj;
093d3ff1
RD
2424 wxColour *arg1 = (wxColour *) 0 ;
2425 byte result;
d55e5bfc
RD
2426 PyObject * obj0 = 0 ;
2427 char *kwnames[] = {
2428 (char *) "self", NULL
2429 };
2430
093d3ff1
RD
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2433 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2434 {
2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2436 result = (byte)(arg1)->Red();
d55e5bfc
RD
2437
2438 wxPyEndAllowThreads(__tstate);
2439 if (PyErr_Occurred()) SWIG_fail;
2440 }
093d3ff1
RD
2441 {
2442 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
2443 }
d55e5bfc
RD
2444 return resultobj;
2445 fail:
2446 return NULL;
2447}
2448
2449
093d3ff1 2450static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2451 PyObject *resultobj;
093d3ff1
RD
2452 wxColour *arg1 = (wxColour *) 0 ;
2453 byte result;
d55e5bfc
RD
2454 PyObject * obj0 = 0 ;
2455 char *kwnames[] = {
2456 (char *) "self", NULL
2457 };
2458
093d3ff1
RD
2459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2461 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2462 {
2463 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2464 result = (byte)(arg1)->Green();
d55e5bfc
RD
2465
2466 wxPyEndAllowThreads(__tstate);
2467 if (PyErr_Occurred()) SWIG_fail;
2468 }
2469 {
093d3ff1 2470 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
d55e5bfc
RD
2471 }
2472 return resultobj;
2473 fail:
2474 return NULL;
2475}
2476
2477
093d3ff1 2478static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2479 PyObject *resultobj;
093d3ff1
RD
2480 wxColour *arg1 = (wxColour *) 0 ;
2481 byte result;
d55e5bfc
RD
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self", NULL
2485 };
2486
093d3ff1
RD
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2488 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2489 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2492 result = (byte)(arg1)->Blue();
d55e5bfc
RD
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
093d3ff1
RD
2497 {
2498 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
2499 }
d55e5bfc
RD
2500 return resultobj;
2501 fail:
2502 return NULL;
2503}
2504
2505
093d3ff1 2506static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2507 PyObject *resultobj;
093d3ff1
RD
2508 wxColour *arg1 = (wxColour *) 0 ;
2509 bool result;
d55e5bfc
RD
2510 PyObject * obj0 = 0 ;
2511 char *kwnames[] = {
2512 (char *) "self", NULL
2513 };
2514
093d3ff1
RD
2515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2516 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2517 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2518 {
2519 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2520 result = (bool)(arg1)->Ok();
d55e5bfc
RD
2521
2522 wxPyEndAllowThreads(__tstate);
2523 if (PyErr_Occurred()) SWIG_fail;
2524 }
093d3ff1
RD
2525 {
2526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2527 }
d55e5bfc
RD
2528 return resultobj;
2529 fail:
2530 return NULL;
2531}
2532
2533
093d3ff1 2534static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2535 PyObject *resultobj;
093d3ff1
RD
2536 wxColour *arg1 = (wxColour *) 0 ;
2537 byte arg2 ;
2538 byte arg3 ;
2539 byte arg4 ;
d55e5bfc 2540 PyObject * obj0 = 0 ;
093d3ff1
RD
2541 PyObject * obj1 = 0 ;
2542 PyObject * obj2 = 0 ;
2543 PyObject * obj3 = 0 ;
d55e5bfc 2544 char *kwnames[] = {
093d3ff1 2545 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
d55e5bfc
RD
2546 };
2547
093d3ff1
RD
2548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2550 if (SWIG_arg_fail(1)) SWIG_fail;
2551 {
2552 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
2553 if (SWIG_arg_fail(2)) SWIG_fail;
2554 }
2555 {
2556 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
2557 if (SWIG_arg_fail(3)) SWIG_fail;
2558 }
2559 {
2560 arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3));
2561 if (SWIG_arg_fail(4)) SWIG_fail;
2562 }
d55e5bfc
RD
2563 {
2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2565 (arg1)->Set(arg2,arg3,arg4);
d55e5bfc
RD
2566
2567 wxPyEndAllowThreads(__tstate);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 }
093d3ff1 2570 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2571 return resultobj;
2572 fail:
2573 return NULL;
2574}
2575
2576
093d3ff1 2577static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2578 PyObject *resultobj;
093d3ff1
RD
2579 wxColour *arg1 = (wxColour *) 0 ;
2580 unsigned long arg2 ;
d55e5bfc 2581 PyObject * obj0 = 0 ;
093d3ff1 2582 PyObject * obj1 = 0 ;
d55e5bfc 2583 char *kwnames[] = {
093d3ff1 2584 (char *) "self",(char *) "colRGB", NULL
d55e5bfc
RD
2585 };
2586
093d3ff1
RD
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2588 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2589 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 2590 {
093d3ff1
RD
2591 arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
2592 if (SWIG_arg_fail(2)) SWIG_fail;
2593 }
2594 {
2595 PyThreadState* __tstate = wxPyBeginAllowThreads();
2596 (arg1)->Set(arg2);
d55e5bfc
RD
2597
2598 wxPyEndAllowThreads(__tstate);
2599 if (PyErr_Occurred()) SWIG_fail;
2600 }
093d3ff1 2601 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2602 return resultobj;
2603 fail:
2604 return NULL;
2605}
2606
2607
093d3ff1 2608static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2609 PyObject *resultobj;
093d3ff1
RD
2610 wxColour *arg1 = (wxColour *) 0 ;
2611 wxString *arg2 = 0 ;
2612 bool temp2 = false ;
d55e5bfc
RD
2613 PyObject * obj0 = 0 ;
2614 PyObject * obj1 = 0 ;
2615 char *kwnames[] = {
093d3ff1 2616 (char *) "self",(char *) "colourName", NULL
d55e5bfc
RD
2617 };
2618
093d3ff1
RD
2619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2620 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2621 if (SWIG_arg_fail(1)) SWIG_fail;
2622 {
2623 arg2 = wxString_in_helper(obj1);
2624 if (arg2 == NULL) SWIG_fail;
2625 temp2 = true;
2626 }
d55e5bfc
RD
2627 {
2628 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2629 (arg1)->InitFromName((wxString const &)*arg2);
d55e5bfc
RD
2630
2631 wxPyEndAllowThreads(__tstate);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
2635 {
2636 if (temp2)
2637 delete arg2;
2638 }
2639 return resultobj;
2640 fail:
2641 {
2642 if (temp2)
2643 delete arg2;
2644 }
2645 return NULL;
2646}
2647
2648
2649static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
2650 PyObject *resultobj;
2651 wxColour *arg1 = (wxColour *) 0 ;
2652 long result;
2653 PyObject * obj0 = 0 ;
2654 char *kwnames[] = {
2655 (char *) "self", NULL
2656 };
2657
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2660 if (SWIG_arg_fail(1)) SWIG_fail;
2661 {
2662 PyThreadState* __tstate = wxPyBeginAllowThreads();
2663 result = (long)((wxColour const *)arg1)->GetPixel();
2664
2665 wxPyEndAllowThreads(__tstate);
2666 if (PyErr_Occurred()) SWIG_fail;
2667 }
2668 {
2669 resultobj = SWIG_From_long((long)(result));
2670 }
d55e5bfc
RD
2671 return resultobj;
2672 fail:
2673 return NULL;
2674}
2675
2676
093d3ff1 2677static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2678 PyObject *resultobj;
093d3ff1 2679 wxColour *arg1 = (wxColour *) 0 ;
d55e5bfc 2680 wxColour *arg2 = 0 ;
093d3ff1 2681 bool result;
d55e5bfc
RD
2682 wxColour temp2 ;
2683 PyObject * obj0 = 0 ;
2684 PyObject * obj1 = 0 ;
2685 char *kwnames[] = {
2686 (char *) "self",(char *) "colour", NULL
2687 };
2688
093d3ff1
RD
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2690 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2691 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2692 {
2693 arg2 = &temp2;
2694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2695 }
2696 {
2697 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2698 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
d55e5bfc
RD
2699
2700 wxPyEndAllowThreads(__tstate);
2701 if (PyErr_Occurred()) SWIG_fail;
2702 }
093d3ff1
RD
2703 {
2704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2705 }
d55e5bfc
RD
2706 return resultobj;
2707 fail:
2708 return NULL;
2709}
2710
2711
093d3ff1 2712static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2713 PyObject *resultobj;
093d3ff1
RD
2714 wxColour *arg1 = (wxColour *) 0 ;
2715 wxColour *arg2 = 0 ;
2716 bool result;
2717 wxColour temp2 ;
d55e5bfc
RD
2718 PyObject * obj0 = 0 ;
2719 PyObject * obj1 = 0 ;
2720 char *kwnames[] = {
093d3ff1 2721 (char *) "self",(char *) "colour", NULL
d55e5bfc
RD
2722 };
2723
093d3ff1
RD
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2725 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2726 if (SWIG_arg_fail(1)) SWIG_fail;
2727 {
2728 arg2 = &temp2;
2729 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2730 }
d55e5bfc
RD
2731 {
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2733 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
d55e5bfc
RD
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
093d3ff1
RD
2738 {
2739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2740 }
d55e5bfc
RD
2741 return resultobj;
2742 fail:
2743 return NULL;
2744}
2745
2746
093d3ff1 2747static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2748 PyObject *resultobj;
093d3ff1
RD
2749 wxColour *arg1 = (wxColour *) 0 ;
2750 PyObject *result;
d55e5bfc 2751 PyObject * obj0 = 0 ;
d55e5bfc 2752 char *kwnames[] = {
093d3ff1 2753 (char *) "self", NULL
d55e5bfc
RD
2754 };
2755
093d3ff1
RD
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2758 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2759 {
2760 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2761 result = (PyObject *)wxColour_Get(arg1);
d55e5bfc
RD
2762
2763 wxPyEndAllowThreads(__tstate);
2764 if (PyErr_Occurred()) SWIG_fail;
2765 }
093d3ff1 2766 resultobj = result;
d55e5bfc
RD
2767 return resultobj;
2768 fail:
2769 return NULL;
2770}
2771
2772
093d3ff1 2773static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2774 PyObject *resultobj;
093d3ff1
RD
2775 wxColour *arg1 = (wxColour *) 0 ;
2776 unsigned long result;
d55e5bfc 2777 PyObject * obj0 = 0 ;
d55e5bfc 2778 char *kwnames[] = {
093d3ff1 2779 (char *) "self", NULL
d55e5bfc
RD
2780 };
2781
093d3ff1
RD
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2783 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2784 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2785 {
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2787 result = (unsigned long)wxColour_GetRGB(arg1);
d55e5bfc
RD
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 }
093d3ff1
RD
2792 {
2793 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
2794 }
d55e5bfc
RD
2795 return resultobj;
2796 fail:
2797 return NULL;
2798}
2799
2800
093d3ff1
RD
2801static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
2802 PyObject *obj;
2803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2804 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
2805 Py_INCREF(obj);
2806 return Py_BuildValue((char *)"");
2807}
2808static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2809 PyObject *resultobj;
093d3ff1
RD
2810 int arg1 ;
2811 unsigned char *arg2 = (unsigned char *) 0 ;
2812 unsigned char *arg3 = (unsigned char *) 0 ;
2813 unsigned char *arg4 = (unsigned char *) 0 ;
2814 wxPalette *result;
d55e5bfc
RD
2815 PyObject * obj0 = 0 ;
2816 PyObject * obj1 = 0 ;
093d3ff1
RD
2817 PyObject * obj2 = 0 ;
2818 PyObject * obj3 = 0 ;
d55e5bfc 2819 char *kwnames[] = {
093d3ff1 2820 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
d55e5bfc
RD
2821 };
2822
093d3ff1 2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc 2824 {
093d3ff1
RD
2825 arg1 = (int)(SWIG_As_int(obj0));
2826 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 2827 }
093d3ff1
RD
2828 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2829 if (SWIG_arg_fail(2)) SWIG_fail;
2830 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2831 if (SWIG_arg_fail(3)) SWIG_fail;
2832 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2833 if (SWIG_arg_fail(4)) SWIG_fail;
d55e5bfc 2834 {
093d3ff1 2835 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2837 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
d55e5bfc
RD
2838
2839 wxPyEndAllowThreads(__tstate);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
093d3ff1 2842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d55e5bfc
RD
2843 return resultobj;
2844 fail:
d55e5bfc
RD
2845 return NULL;
2846}
2847
2848
093d3ff1 2849static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2850 PyObject *resultobj;
093d3ff1 2851 wxPalette *arg1 = (wxPalette *) 0 ;
d55e5bfc
RD
2852 PyObject * obj0 = 0 ;
2853 char *kwnames[] = {
2854 (char *) "self", NULL
2855 };
2856
093d3ff1
RD
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
2858 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2859 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2860 {
2861 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2862 delete arg1;
d55e5bfc
RD
2863
2864 wxPyEndAllowThreads(__tstate);
2865 if (PyErr_Occurred()) SWIG_fail;
2866 }
093d3ff1 2867 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2868 return resultobj;
2869 fail:
2870 return NULL;
2871}
2872
2873
093d3ff1 2874static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2875 PyObject *resultobj;
093d3ff1
RD
2876 wxPalette *arg1 = (wxPalette *) 0 ;
2877 byte arg2 ;
2878 byte arg3 ;
2879 byte arg4 ;
2880 int result;
d55e5bfc
RD
2881 PyObject * obj0 = 0 ;
2882 PyObject * obj1 = 0 ;
c24da6d6 2883 PyObject * obj2 = 0 ;
093d3ff1 2884 PyObject * obj3 = 0 ;
d55e5bfc 2885 char *kwnames[] = {
093d3ff1 2886 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
d55e5bfc
RD
2887 };
2888
093d3ff1
RD
2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2890 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2891 if (SWIG_arg_fail(1)) SWIG_fail;
2892 {
2893 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
2894 if (SWIG_arg_fail(2)) SWIG_fail;
2895 }
2896 {
2897 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
2898 if (SWIG_arg_fail(3)) SWIG_fail;
2899 }
2900 {
2901 arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3));
2902 if (SWIG_arg_fail(4)) SWIG_fail;
2903 }
d55e5bfc
RD
2904 {
2905 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2906 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
d55e5bfc
RD
2907
2908 wxPyEndAllowThreads(__tstate);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
093d3ff1
RD
2911 {
2912 resultobj = SWIG_From_int((int)(result));
2913 }
d55e5bfc
RD
2914 return resultobj;
2915 fail:
2916 return NULL;
2917}
2918
2919
093d3ff1 2920static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2921 PyObject *resultobj;
093d3ff1
RD
2922 wxPalette *arg1 = (wxPalette *) 0 ;
2923 int arg2 ;
2924 byte *arg3 = (byte *) 0 ;
2925 byte *arg4 = (byte *) 0 ;
2926 byte *arg5 = (byte *) 0 ;
2927 bool result;
2928 byte temp3 ;
2929 int res3 = 0 ;
2930 byte temp4 ;
2931 int res4 = 0 ;
2932 byte temp5 ;
2933 int res5 = 0 ;
d55e5bfc 2934 PyObject * obj0 = 0 ;
093d3ff1 2935 PyObject * obj1 = 0 ;
d55e5bfc 2936 char *kwnames[] = {
093d3ff1 2937 (char *) "self",(char *) "pixel", NULL
d55e5bfc
RD
2938 };
2939
093d3ff1
RD
2940 arg3 = &temp3; res3 = SWIG_NEWOBJ;
2941 arg4 = &temp4; res4 = SWIG_NEWOBJ;
2942 arg5 = &temp5; res5 = SWIG_NEWOBJ;
2943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
2944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2945 if (SWIG_arg_fail(1)) SWIG_fail;
2946 {
2947 arg2 = (int)(SWIG_As_int(obj1));
2948 if (SWIG_arg_fail(2)) SWIG_fail;
2949 }
d55e5bfc
RD
2950 {
2951 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2952 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
d55e5bfc
RD
2953
2954 wxPyEndAllowThreads(__tstate);
2955 if (PyErr_Occurred()) SWIG_fail;
2956 }
093d3ff1
RD
2957 {
2958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2959 }
2960 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
2961 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
2962 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
2963 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
2964 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
2965 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0)));
d55e5bfc
RD
2966 return resultobj;
2967 fail:
2968 return NULL;
2969}
2970
2971
093d3ff1 2972static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2973 PyObject *resultobj;
093d3ff1
RD
2974 wxPalette *arg1 = (wxPalette *) 0 ;
2975 int result;
d55e5bfc
RD
2976 PyObject * obj0 = 0 ;
2977 char *kwnames[] = {
2978 (char *) "self", NULL
2979 };
2980
093d3ff1
RD
2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
2982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2983 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2986 result = (int)((wxPalette const *)arg1)->GetColoursCount();
d55e5bfc
RD
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
093d3ff1
RD
2991 {
2992 resultobj = SWIG_From_int((int)(result));
2993 }
d55e5bfc
RD
2994 return resultobj;
2995 fail:
2996 return NULL;
2997}
2998
2999
093d3ff1 3000static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3001 PyObject *resultobj;
093d3ff1
RD
3002 wxPalette *arg1 = (wxPalette *) 0 ;
3003 bool result;
d55e5bfc 3004 PyObject * obj0 = 0 ;
d55e5bfc 3005 char *kwnames[] = {
093d3ff1 3006 (char *) "self", NULL
d55e5bfc
RD
3007 };
3008
093d3ff1
RD
3009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
3010 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3011 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3012 {
3013 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3014 result = (bool)(arg1)->Ok();
d55e5bfc
RD
3015
3016 wxPyEndAllowThreads(__tstate);
3017 if (PyErr_Occurred()) SWIG_fail;
3018 }
d55e5bfc 3019 {
c24da6d6 3020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
3021 }
3022 return resultobj;
3023 fail:
d55e5bfc
RD
3024 return NULL;
3025}
3026
3027
093d3ff1 3028static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3029 PyObject *obj;
3030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 3031 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
d55e5bfc
RD
3032 Py_INCREF(obj);
3033 return Py_BuildValue((char *)"");
3034}
093d3ff1 3035static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3036 PyObject *resultobj;
3037 wxColour *arg1 = 0 ;
093d3ff1
RD
3038 int arg2 = (int) 1 ;
3039 int arg3 = (int) wxSOLID ;
3040 wxPen *result;
d55e5bfc
RD
3041 wxColour temp1 ;
3042 PyObject * obj0 = 0 ;
3043 PyObject * obj1 = 0 ;
093d3ff1 3044 PyObject * obj2 = 0 ;
d55e5bfc 3045 char *kwnames[] = {
093d3ff1 3046 (char *) "colour",(char *) "width",(char *) "style", NULL
d55e5bfc
RD
3047 };
3048
093d3ff1 3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
3050 {
3051 arg1 = &temp1;
3052 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3053 }
3054 if (obj1) {
093d3ff1
RD
3055 {
3056 arg2 = (int)(SWIG_As_int(obj1));
3057 if (SWIG_arg_fail(2)) SWIG_fail;
3058 }
3059 }
3060 if (obj2) {
3061 {
3062 arg3 = (int)(SWIG_As_int(obj2));
3063 if (SWIG_arg_fail(3)) SWIG_fail;
3064 }
d55e5bfc
RD
3065 }
3066 {
0439c23b 3067 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 3068 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3069 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
d55e5bfc
RD
3070
3071 wxPyEndAllowThreads(__tstate);
110da5b0 3072 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3073 }
093d3ff1 3074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d55e5bfc
RD
3075 return resultobj;
3076 fail:
3077 return NULL;
3078}
3079
3080
093d3ff1 3081static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3082 PyObject *resultobj;
093d3ff1 3083 wxPen *arg1 = (wxPen *) 0 ;
d55e5bfc
RD
3084 PyObject * obj0 = 0 ;
3085 char *kwnames[] = {
3086 (char *) "self", NULL
3087 };
3088
093d3ff1
RD
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
3090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3091 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3092 {
3093 PyThreadState* __tstate = wxPyBeginAllowThreads();
3094 delete arg1;
3095
3096 wxPyEndAllowThreads(__tstate);
3097 if (PyErr_Occurred()) SWIG_fail;
3098 }
3099 Py_INCREF(Py_None); resultobj = Py_None;
3100 return resultobj;
3101 fail:
3102 return NULL;
3103}
3104
3105
093d3ff1 3106static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3107 PyObject *resultobj;
093d3ff1
RD
3108 wxPen *arg1 = (wxPen *) 0 ;
3109 int result;
d55e5bfc 3110 PyObject * obj0 = 0 ;
d55e5bfc 3111 char *kwnames[] = {
093d3ff1 3112 (char *) "self", NULL
d55e5bfc
RD
3113 };
3114
093d3ff1
RD
3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
3116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3117 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3120 result = (int)(arg1)->GetCap();
d55e5bfc
RD
3121
3122 wxPyEndAllowThreads(__tstate);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 }
093d3ff1
RD
3125 {
3126 resultobj = SWIG_From_int((int)(result));
3127 }
d55e5bfc
RD
3128 return resultobj;
3129 fail:
3130 return NULL;
3131}
3132
3133
093d3ff1 3134static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3135 PyObject *resultobj;
093d3ff1
RD
3136 wxPen *arg1 = (wxPen *) 0 ;
3137 wxColour result;
d55e5bfc 3138 PyObject * obj0 = 0 ;
d55e5bfc 3139 char *kwnames[] = {
093d3ff1 3140 (char *) "self", NULL
d55e5bfc
RD
3141 };
3142
093d3ff1
RD
3143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
3144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3145 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3148 result = (arg1)->GetColour();
d55e5bfc
RD
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) SWIG_fail;
3152 }
093d3ff1
RD
3153 {
3154 wxColour * resultptr;
3155 resultptr = new wxColour((wxColour &)(result));
3156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3157 }
d55e5bfc
RD
3158 return resultobj;
3159 fail:
3160 return NULL;
3161}
3162
3163
093d3ff1 3164static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3165 PyObject *resultobj;
093d3ff1
RD
3166 wxPen *arg1 = (wxPen *) 0 ;
3167 int result;
d55e5bfc 3168 PyObject * obj0 = 0 ;
d55e5bfc 3169 char *kwnames[] = {
093d3ff1 3170 (char *) "self", NULL
d55e5bfc
RD
3171 };
3172
093d3ff1
RD
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
3174 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3175 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3178 result = (int)(arg1)->GetJoin();
d55e5bfc
RD
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
093d3ff1
RD
3183 {
3184 resultobj = SWIG_From_int((int)(result));
3185 }
d55e5bfc
RD
3186 return resultobj;
3187 fail:
3188 return NULL;
3189}
3190
3191
093d3ff1 3192static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3193 PyObject *resultobj;
093d3ff1
RD
3194 wxPen *arg1 = (wxPen *) 0 ;
3195 int result;
d55e5bfc
RD
3196 PyObject * obj0 = 0 ;
3197 char *kwnames[] = {
3198 (char *) "self", NULL
3199 };
3200
093d3ff1
RD
3201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
3202 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3203 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3204 {
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3206 result = (int)(arg1)->GetStyle();
d55e5bfc
RD
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 {
093d3ff1 3212 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
3213 }
3214 return resultobj;
3215 fail:
3216 return NULL;
3217}
3218
3219
093d3ff1 3220static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3221 PyObject *resultobj;
093d3ff1 3222 wxPen *arg1 = (wxPen *) 0 ;
d55e5bfc
RD
3223 int result;
3224 PyObject * obj0 = 0 ;
3225 char *kwnames[] = {
3226 (char *) "self", NULL
3227 };
3228
093d3ff1
RD
3229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
3230 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3231 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3232 {
3233 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3234 result = (int)(arg1)->GetWidth();
d55e5bfc
RD
3235
3236 wxPyEndAllowThreads(__tstate);
3237 if (PyErr_Occurred()) SWIG_fail;
3238 }
093d3ff1
RD
3239 {
3240 resultobj = SWIG_From_int((int)(result));
3241 }
d55e5bfc
RD
3242 return resultobj;
3243 fail:
3244 return NULL;
3245}
3246
3247
093d3ff1 3248static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3249 PyObject *resultobj;
093d3ff1
RD
3250 wxPen *arg1 = (wxPen *) 0 ;
3251 bool result;
d55e5bfc
RD
3252 PyObject * obj0 = 0 ;
3253 char *kwnames[] = {
3254 (char *) "self", NULL
3255 };
3256
093d3ff1
RD
3257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
3258 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3259 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3262 result = (bool)(arg1)->Ok();
d55e5bfc
RD
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) SWIG_fail;
3266 }
093d3ff1
RD
3267 {
3268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3269 }
d55e5bfc
RD
3270 return resultobj;
3271 fail:
3272 return NULL;
3273}
3274
3275
093d3ff1 3276static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
f78cc896 3277 PyObject *resultobj;
093d3ff1
RD
3278 wxPen *arg1 = (wxPen *) 0 ;
3279 int arg2 ;
f78cc896 3280 PyObject * obj0 = 0 ;
093d3ff1 3281 PyObject * obj1 = 0 ;
f78cc896 3282 char *kwnames[] = {
093d3ff1 3283 (char *) "self",(char *) "cap_style", NULL
f78cc896
RD
3284 };
3285
093d3ff1
RD
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
3287 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3288 if (SWIG_arg_fail(1)) SWIG_fail;
3289 {
3290 arg2 = (int)(SWIG_As_int(obj1));
3291 if (SWIG_arg_fail(2)) SWIG_fail;
3292 }
f78cc896
RD
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3295 (arg1)->SetCap(arg2);
f78cc896
RD
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
093d3ff1 3300 Py_INCREF(Py_None); resultobj = Py_None;
f78cc896
RD
3301 return resultobj;
3302 fail:
3303 return NULL;
3304}
3305
3306
093d3ff1 3307static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3308 PyObject *resultobj;
093d3ff1
RD
3309 wxPen *arg1 = (wxPen *) 0 ;
3310 wxColour *arg2 = 0 ;
3311 wxColour temp2 ;
d55e5bfc 3312 PyObject * obj0 = 0 ;
093d3ff1 3313 PyObject * obj1 = 0 ;
d55e5bfc 3314 char *kwnames[] = {
093d3ff1 3315 (char *) "self",(char *) "colour", NULL
d55e5bfc
RD
3316 };
3317
093d3ff1
RD
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
3319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3320 if (SWIG_arg_fail(1)) SWIG_fail;
3321 {
3322 arg2 = &temp2;
3323 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3324 }
d55e5bfc
RD
3325 {
3326 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3327 (arg1)->SetColour(*arg2);
d55e5bfc
RD
3328
3329 wxPyEndAllowThreads(__tstate);
3330 if (PyErr_Occurred()) SWIG_fail;
3331 }
093d3ff1 3332 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3333 return resultobj;
3334 fail:
3335 return NULL;
3336}
3337
3338
093d3ff1 3339static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3340 PyObject *resultobj;
093d3ff1
RD
3341 wxPen *arg1 = (wxPen *) 0 ;
3342 int arg2 ;
d55e5bfc
RD
3343 PyObject * obj0 = 0 ;
3344 PyObject * obj1 = 0 ;
3345 char *kwnames[] = {
093d3ff1 3346 (char *) "self",(char *) "join_style", NULL
d55e5bfc
RD
3347 };
3348
093d3ff1
RD
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
3350 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3351 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 3352 {
093d3ff1
RD
3353 arg2 = (int)(SWIG_As_int(obj1));
3354 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
3355 }
3356 {
3357 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3358 (arg1)->SetJoin(arg2);
d55e5bfc
RD
3359
3360 wxPyEndAllowThreads(__tstate);
110da5b0 3361 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3362 }
093d3ff1 3363 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3364 return resultobj;
3365 fail:
d55e5bfc
RD
3366 return NULL;
3367}
3368
3369
093d3ff1 3370static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3371 PyObject *resultobj;
093d3ff1
RD
3372 wxPen *arg1 = (wxPen *) 0 ;
3373 int arg2 ;
d55e5bfc 3374 PyObject * obj0 = 0 ;
093d3ff1 3375 PyObject * obj1 = 0 ;
d55e5bfc 3376 char *kwnames[] = {
093d3ff1 3377 (char *) "self",(char *) "style", NULL
d55e5bfc
RD
3378 };
3379
093d3ff1
RD
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3382 if (SWIG_arg_fail(1)) SWIG_fail;
3383 {
3384 arg2 = (int)(SWIG_As_int(obj1));
3385 if (SWIG_arg_fail(2)) SWIG_fail;
3386 }
d55e5bfc
RD
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3389 (arg1)->SetStyle(arg2);
d55e5bfc
RD
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 Py_INCREF(Py_None); resultobj = Py_None;
3395 return resultobj;
3396 fail:
3397 return NULL;
3398}
3399
3400
093d3ff1 3401static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6 3402 PyObject *resultobj;
093d3ff1 3403 wxPen *arg1 = (wxPen *) 0 ;
c24da6d6 3404 int arg2 ;
c24da6d6
RD
3405 PyObject * obj0 = 0 ;
3406 PyObject * obj1 = 0 ;
c24da6d6 3407 char *kwnames[] = {
093d3ff1 3408 (char *) "self",(char *) "width", NULL
c24da6d6
RD
3409 };
3410
093d3ff1
RD
3411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3413 if (SWIG_arg_fail(1)) SWIG_fail;
3414 {
3415 arg2 = (int)(SWIG_As_int(obj1));
3416 if (SWIG_arg_fail(2)) SWIG_fail;
c24da6d6
RD
3417 }
3418 {
3419 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3420 (arg1)->SetWidth(arg2);
c24da6d6
RD
3421
3422 wxPyEndAllowThreads(__tstate);
110da5b0 3423 if (PyErr_Occurred()) SWIG_fail;
c24da6d6 3424 }
093d3ff1 3425 Py_INCREF(Py_None); resultobj = Py_None;
c24da6d6
RD
3426 return resultobj;
3427 fail:
3428 return NULL;
3429}
3430
3431
093d3ff1 3432static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3433 PyObject *resultobj;
093d3ff1
RD
3434 wxPen *arg1 = (wxPen *) 0 ;
3435 int arg2 ;
3436 wxDash *arg3 = (wxDash *) 0 ;
d55e5bfc 3437 PyObject * obj0 = 0 ;
093d3ff1 3438 PyObject * obj1 = 0 ;
d55e5bfc 3439 char *kwnames[] = {
093d3ff1 3440 (char *) "self",(char *) "dashes", NULL
d55e5bfc
RD
3441 };
3442
093d3ff1
RD
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
3444 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3445 if (SWIG_arg_fail(1)) SWIG_fail;
3446 {
3447 arg2 = PyList_Size(obj1);
3448 arg3 = (wxDash*)byte_LIST_helper(obj1);
3449 if (arg3 == NULL) SWIG_fail;
d55e5bfc
RD
3450 }
3451 {
3452 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3453 (arg1)->SetDashes(arg2,arg3);
d55e5bfc
RD
3454
3455 wxPyEndAllowThreads(__tstate);
110da5b0 3456 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3457 }
093d3ff1
RD
3458 Py_INCREF(Py_None); resultobj = Py_None;
3459 {
3460 if (arg3) delete [] arg3;
3461 }
d55e5bfc
RD
3462 return resultobj;
3463 fail:
093d3ff1
RD
3464 {
3465 if (arg3) delete [] arg3;
3466 }
d55e5bfc
RD
3467 return NULL;
3468}
3469
3470
093d3ff1 3471static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3472 PyObject *resultobj;
093d3ff1
RD
3473 wxPen *arg1 = (wxPen *) 0 ;
3474 PyObject *result;
d55e5bfc 3475 PyObject * obj0 = 0 ;
d55e5bfc 3476 char *kwnames[] = {
093d3ff1 3477 (char *) "self", NULL
d55e5bfc
RD
3478 };
3479
093d3ff1
RD
3480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
3481 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3482 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3483 {
3484 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3485 result = (PyObject *)wxPen_GetDashes(arg1);
d55e5bfc
RD
3486
3487 wxPyEndAllowThreads(__tstate);
110da5b0 3488 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3489 }
093d3ff1 3490 resultobj = result;
d55e5bfc
RD
3491 return resultobj;
3492 fail:
3493 return NULL;
3494}
3495
3496
093d3ff1 3497static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3498 PyObject *resultobj;
093d3ff1
RD
3499 wxPen *arg1 = (wxPen *) 0 ;
3500 PyObject *arg2 = (PyObject *) 0 ;
3501 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc 3502 PyObject * obj0 = 0 ;
093d3ff1
RD
3503 PyObject * obj1 = 0 ;
3504 PyObject * obj2 = 0 ;
d55e5bfc 3505 char *kwnames[] = {
093d3ff1 3506 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d55e5bfc
RD
3507 };
3508
093d3ff1
RD
3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
3510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3511 if (SWIG_arg_fail(1)) SWIG_fail;
3512 arg2 = obj1;
3513 arg3 = obj2;
d55e5bfc
RD
3514 {
3515 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3516 wxPen__SetDashes(arg1,arg2,arg3);
d55e5bfc
RD
3517
3518 wxPyEndAllowThreads(__tstate);
110da5b0 3519 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3520 }
093d3ff1 3521 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3522 return resultobj;
3523 fail:
3524 return NULL;
3525}
3526
3527
093d3ff1 3528static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3529 PyObject *resultobj;
093d3ff1
RD
3530 wxPen *arg1 = (wxPen *) 0 ;
3531 int result;
d55e5bfc 3532 PyObject * obj0 = 0 ;
d55e5bfc 3533 char *kwnames[] = {
093d3ff1 3534 (char *) "self", NULL
d55e5bfc
RD
3535 };
3536
093d3ff1
RD
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
3538 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3539 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3540 {
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3542 result = (int)((wxPen const *)arg1)->GetDashCount();
d55e5bfc
RD
3543
3544 wxPyEndAllowThreads(__tstate);
110da5b0 3545 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3546 }
093d3ff1
RD
3547 {
3548 resultobj = SWIG_From_int((int)(result));
3549 }
d55e5bfc
RD
3550 return resultobj;
3551 fail:
3552 return NULL;
3553}
3554
3555
093d3ff1 3556static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3557 PyObject *resultobj;
093d3ff1
RD
3558 wxPen *arg1 = (wxPen *) 0 ;
3559 wxBitmap *result;
d55e5bfc 3560 PyObject * obj0 = 0 ;
c24da6d6
RD
3561 char *kwnames[] = {
3562 (char *) "self", NULL
3563 };
d55e5bfc 3564
093d3ff1
RD
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
3566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3567 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 3568 {
c24da6d6 3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3570 result = (wxBitmap *)(arg1)->GetStipple();
c24da6d6
RD
3571
3572 wxPyEndAllowThreads(__tstate);
d55e5bfc
RD
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
093d3ff1 3575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
c24da6d6
RD
3576 return resultobj;
3577 fail:
3578 return NULL;
3579}
3580
3581
093d3ff1 3582static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6 3583 PyObject *resultobj;
093d3ff1
RD
3584 wxPen *arg1 = (wxPen *) 0 ;
3585 wxBitmap *arg2 = 0 ;
c24da6d6
RD
3586 PyObject * obj0 = 0 ;
3587 PyObject * obj1 = 0 ;
3588 char *kwnames[] = {
093d3ff1 3589 (char *) "self",(char *) "stipple", NULL
c24da6d6
RD
3590 };
3591
093d3ff1
RD
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3594 if (SWIG_arg_fail(1)) SWIG_fail;
3595 {
3596 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3597 if (SWIG_arg_fail(2)) SWIG_fail;
3598 if (arg2 == NULL) {
3599 SWIG_null_ref("wxBitmap");
3600 }
3601 if (SWIG_arg_fail(2)) SWIG_fail;
3602 }
d55e5bfc
RD
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3605 (arg1)->SetStipple(*arg2);
d55e5bfc
RD
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
c24da6d6 3610 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3611 return resultobj;
3612 fail:
3613 return NULL;
3614}
3615
3616
093d3ff1 3617static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3618 PyObject *resultobj;
093d3ff1
RD
3619 wxPen *arg1 = (wxPen *) 0 ;
3620 wxPen *arg2 = (wxPen *) 0 ;
d55e5bfc
RD
3621 bool result;
3622 PyObject * obj0 = 0 ;
093d3ff1 3623 PyObject * obj1 = 0 ;
d55e5bfc 3624 char *kwnames[] = {
093d3ff1 3625 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
3626 };
3627
093d3ff1
RD
3628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
3629 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3630 if (SWIG_arg_fail(1)) SWIG_fail;
3631 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3632 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
3633 {
3634 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3635 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
3636
3637 wxPyEndAllowThreads(__tstate);
3638 if (PyErr_Occurred()) SWIG_fail;
3639 }
3640 {
3641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3642 }
3643 return resultobj;
3644 fail:
3645 return NULL;
3646}
3647
3648
093d3ff1 3649static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3650 PyObject *resultobj;
093d3ff1
RD
3651 wxPen *arg1 = (wxPen *) 0 ;
3652 wxPen *arg2 = (wxPen *) 0 ;
3653 bool result;
d55e5bfc 3654 PyObject * obj0 = 0 ;
093d3ff1 3655 PyObject * obj1 = 0 ;
d55e5bfc 3656 char *kwnames[] = {
093d3ff1 3657 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
3658 };
3659
093d3ff1
RD
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
3661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3662 if (SWIG_arg_fail(1)) SWIG_fail;
3663 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3664 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3667 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
093d3ff1
RD
3672 {
3673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3674 }
d55e5bfc
RD
3675 return resultobj;
3676 fail:
3677 return NULL;
3678}
3679
3680
093d3ff1
RD
3681static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
3682 PyObject *obj;
3683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3684 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
3685 Py_INCREF(obj);
3686 return Py_BuildValue((char *)"");
3687}
3688static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3689 PyObject *resultobj;
093d3ff1
RD
3690 wxColour *arg1 = 0 ;
3691 int arg2 = (int) wxSOLID ;
3692 wxBrush *result;
3693 wxColour temp1 ;
d55e5bfc 3694 PyObject * obj0 = 0 ;
093d3ff1 3695 PyObject * obj1 = 0 ;
d55e5bfc 3696 char *kwnames[] = {
093d3ff1 3697 (char *) "colour",(char *) "style", NULL
d55e5bfc
RD
3698 };
3699
093d3ff1
RD
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
3701 {
3702 arg1 = &temp1;
3703 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3704 }
3705 if (obj1) {
3706 {
3707 arg2 = (int)(SWIG_As_int(obj1));
3708 if (SWIG_arg_fail(2)) SWIG_fail;
3709 }
3710 }
d55e5bfc 3711 {
093d3ff1 3712 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3714 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
d55e5bfc
RD
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
093d3ff1 3719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d55e5bfc
RD
3720 return resultobj;
3721 fail:
3722 return NULL;
3723}
3724
3725
d04418a7
RD
3726static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3727 PyObject *resultobj;
3728 wxBitmap *arg1 = 0 ;
3729 wxBrush *result;
3730 PyObject * obj0 = 0 ;
3731 char *kwnames[] = {
3732 (char *) "stippleBitmap", NULL
3733 };
3734
3735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
3736 {
3737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3738 if (SWIG_arg_fail(1)) SWIG_fail;
3739 if (arg1 == NULL) {
3740 SWIG_null_ref("wxBitmap");
3741 }
3742 if (SWIG_arg_fail(1)) SWIG_fail;
3743 }
3744 {
3745 if (!wxPyCheckForApp()) SWIG_fail;
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
3747 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
3748
3749 wxPyEndAllowThreads(__tstate);
3750 if (PyErr_Occurred()) SWIG_fail;
3751 }
3752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3753 return resultobj;
3754 fail:
3755 return NULL;
3756}
3757
3758
093d3ff1 3759static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3760 PyObject *resultobj;
093d3ff1 3761 wxBrush *arg1 = (wxBrush *) 0 ;
d55e5bfc
RD
3762 PyObject * obj0 = 0 ;
3763 char *kwnames[] = {
3764 (char *) "self", NULL
3765 };
3766
093d3ff1
RD
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
3768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3769 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3772 delete arg1;
d55e5bfc
RD
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
093d3ff1 3777 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3778 return resultobj;
3779 fail:
3780 return NULL;
3781}
3782
3783
093d3ff1 3784static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3785 PyObject *resultobj;
093d3ff1
RD
3786 wxBrush *arg1 = (wxBrush *) 0 ;
3787 wxColour *arg2 = 0 ;
3788 wxColour temp2 ;
d55e5bfc 3789 PyObject * obj0 = 0 ;
093d3ff1 3790 PyObject * obj1 = 0 ;
d55e5bfc 3791 char *kwnames[] = {
093d3ff1 3792 (char *) "self",(char *) "col", NULL
d55e5bfc
RD
3793 };
3794
093d3ff1
RD
3795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
3796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3797 if (SWIG_arg_fail(1)) SWIG_fail;
3798 {
3799 arg2 = &temp2;
3800 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3801 }
d55e5bfc
RD
3802 {
3803 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3804 (arg1)->SetColour((wxColour const &)*arg2);
d55e5bfc
RD
3805
3806 wxPyEndAllowThreads(__tstate);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
093d3ff1 3809 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3810 return resultobj;
3811 fail:
3812 return NULL;
3813}
3814
3815
093d3ff1 3816static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3817 PyObject *resultobj;
093d3ff1
RD
3818 wxBrush *arg1 = (wxBrush *) 0 ;
3819 int arg2 ;
d55e5bfc 3820 PyObject * obj0 = 0 ;
093d3ff1 3821 PyObject * obj1 = 0 ;
d55e5bfc 3822 char *kwnames[] = {
093d3ff1 3823 (char *) "self",(char *) "style", NULL
d55e5bfc
RD
3824 };
3825
093d3ff1
RD
3826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3827 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3828 if (SWIG_arg_fail(1)) SWIG_fail;
3829 {
3830 arg2 = (int)(SWIG_As_int(obj1));
3831 if (SWIG_arg_fail(2)) SWIG_fail;
3832 }
d55e5bfc
RD
3833 {
3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3835 (arg1)->SetStyle(arg2);
d55e5bfc
RD
3836
3837 wxPyEndAllowThreads(__tstate);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
093d3ff1
RD
3840 Py_INCREF(Py_None); resultobj = Py_None;
3841 return resultobj;
3842 fail:
3843 return NULL;
3844}
3845
3846
3847static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3848 PyObject *resultobj;
3849 wxBrush *arg1 = (wxBrush *) 0 ;
3850 wxBitmap *arg2 = 0 ;
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "self",(char *) "stipple", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3858 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3859 if (SWIG_arg_fail(1)) SWIG_fail;
3860 {
3861 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3862 if (SWIG_arg_fail(2)) SWIG_fail;
3863 if (arg2 == NULL) {
3864 SWIG_null_ref("wxBitmap");
3865 }
3866 if (SWIG_arg_fail(2)) SWIG_fail;
3867 }
d55e5bfc 3868 {
093d3ff1
RD
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 (arg1)->SetStipple((wxBitmap const &)*arg2);
3871
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3874 }
093d3ff1 3875 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3876 return resultobj;
3877 fail:
3878 return NULL;
3879}
3880
3881
093d3ff1 3882static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3883 PyObject *resultobj;
093d3ff1
RD
3884 wxBrush *arg1 = (wxBrush *) 0 ;
3885 wxColour result;
d55e5bfc
RD
3886 PyObject * obj0 = 0 ;
3887 char *kwnames[] = {
3888 (char *) "self", NULL
3889 };
3890
093d3ff1
RD
3891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
3892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3893 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3894 {
3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3896 result = ((wxBrush const *)arg1)->GetColour();
d55e5bfc
RD
3897
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
093d3ff1
RD
3901 {
3902 wxColour * resultptr;
3903 resultptr = new wxColour((wxColour &)(result));
3904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3905 }
d55e5bfc
RD
3906 return resultobj;
3907 fail:
3908 return NULL;
3909}
3910
3911
093d3ff1 3912static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3913 PyObject *resultobj;
093d3ff1
RD
3914 wxBrush *arg1 = (wxBrush *) 0 ;
3915 int result;
d55e5bfc 3916 PyObject * obj0 = 0 ;
d55e5bfc 3917 char *kwnames[] = {
093d3ff1 3918 (char *) "self", NULL
d55e5bfc
RD
3919 };
3920
093d3ff1
RD
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
3922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3923 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3924 {
3925 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3926 result = (int)((wxBrush const *)arg1)->GetStyle();
d55e5bfc
RD
3927
3928 wxPyEndAllowThreads(__tstate);
3929 if (PyErr_Occurred()) SWIG_fail;
3930 }
093d3ff1
RD
3931 {
3932 resultobj = SWIG_From_int((int)(result));
3933 }
d55e5bfc
RD
3934 return resultobj;
3935 fail:
3936 return NULL;
3937}
3938
3939
093d3ff1 3940static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3941 PyObject *resultobj;
093d3ff1
RD
3942 wxBrush *arg1 = (wxBrush *) 0 ;
3943 wxBitmap *result;
d55e5bfc 3944 PyObject * obj0 = 0 ;
d55e5bfc 3945 char *kwnames[] = {
093d3ff1 3946 (char *) "self", NULL
d55e5bfc
RD
3947 };
3948
093d3ff1
RD
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
3950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3951 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3954 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
d55e5bfc
RD
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
093d3ff1 3959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d55e5bfc
RD
3960 return resultobj;
3961 fail:
3962 return NULL;
3963}
3964
3965
093d3ff1 3966static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3967 PyObject *resultobj;
093d3ff1
RD
3968 wxBrush *arg1 = (wxBrush *) 0 ;
3969 bool result;
d55e5bfc 3970 PyObject * obj0 = 0 ;
d55e5bfc 3971 char *kwnames[] = {
093d3ff1 3972 (char *) "self", NULL
d55e5bfc
RD
3973 };
3974
093d3ff1
RD
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
3976 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3977 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
3978 {
3979 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3980 result = (bool)((wxBrush const *)arg1)->IsHatch();
d55e5bfc
RD
3981
3982 wxPyEndAllowThreads(__tstate);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 {
093d3ff1 3986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
3987 }
3988 return resultobj;
3989 fail:
3990 return NULL;
3991}
3992
3993
093d3ff1 3994static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3995 PyObject *resultobj;
093d3ff1 3996 wxBrush *arg1 = (wxBrush *) 0 ;
d55e5bfc 3997 bool result;
d55e5bfc 3998 PyObject * obj0 = 0 ;
d55e5bfc 3999 char *kwnames[] = {
093d3ff1 4000 (char *) "self", NULL
d55e5bfc
RD
4001 };
4002
093d3ff1
RD
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
4004 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4005 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4008 result = (bool)(arg1)->Ok();
d55e5bfc
RD
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 {
4014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4015 }
d55e5bfc
RD
4016 return resultobj;
4017 fail:
d55e5bfc
RD
4018 return NULL;
4019}
4020
4021
093d3ff1
RD
4022static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
4023 PyObject *obj;
4024 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4025 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
4026 Py_INCREF(obj);
4027 return Py_BuildValue((char *)"");
4028}
4029static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4030 PyObject *resultobj;
093d3ff1
RD
4031 wxString *arg1 = 0 ;
4032 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
4033 wxBitmap *result;
4034 bool temp1 = false ;
d55e5bfc
RD
4035 PyObject * obj0 = 0 ;
4036 PyObject * obj1 = 0 ;
d55e5bfc 4037 char *kwnames[] = {
093d3ff1 4038 (char *) "name",(char *) "type", NULL
d55e5bfc
RD
4039 };
4040
093d3ff1 4041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 4042 {
093d3ff1
RD
4043 arg1 = wxString_in_helper(obj0);
4044 if (arg1 == NULL) SWIG_fail;
4045 temp1 = true;
4046 }
4047 if (obj1) {
4048 {
4049 arg2 = (wxBitmapType)(SWIG_As_int(obj1));
4050 if (SWIG_arg_fail(2)) SWIG_fail;
4051 }
d55e5bfc 4052 }
d55e5bfc 4053 {
093d3ff1 4054 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4056 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
d55e5bfc
RD
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
093d3ff1 4061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d55e5bfc 4062 {
093d3ff1
RD
4063 if (temp1)
4064 delete arg1;
d55e5bfc
RD
4065 }
4066 return resultobj;
4067 fail:
4068 {
093d3ff1
RD
4069 if (temp1)
4070 delete arg1;
d55e5bfc
RD
4071 }
4072 return NULL;
4073}
4074
4075
093d3ff1 4076static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
c1cb24a4
RD
4077 PyObject *resultobj;
4078 wxBitmap *arg1 = (wxBitmap *) 0 ;
c1cb24a4
RD
4079 PyObject * obj0 = 0 ;
4080 char *kwnames[] = {
4081 (char *) "self", NULL
4082 };
4083
093d3ff1
RD
4084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
4085 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4086 if (SWIG_arg_fail(1)) SWIG_fail;
c1cb24a4
RD
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4089 delete arg1;
c1cb24a4
RD
4090
4091 wxPyEndAllowThreads(__tstate);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
093d3ff1 4094 Py_INCREF(Py_None); resultobj = Py_None;
c1cb24a4
RD
4095 return resultobj;
4096 fail:
4097 return NULL;
4098}
4099
4100
093d3ff1 4101static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
c1cb24a4 4102 PyObject *resultobj;
093d3ff1
RD
4103 int arg1 ;
4104 int arg2 ;
4105 int arg3 = (int) -1 ;
4106 wxBitmap *result;
c1cb24a4
RD
4107 PyObject * obj0 = 0 ;
4108 PyObject * obj1 = 0 ;
093d3ff1 4109 PyObject * obj2 = 0 ;
c1cb24a4 4110 char *kwnames[] = {
093d3ff1 4111 (char *) "width",(char *) "height",(char *) "depth", NULL
c1cb24a4
RD
4112 };
4113
093d3ff1
RD
4114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4115 {
4116 arg1 = (int)(SWIG_As_int(obj0));
4117 if (SWIG_arg_fail(1)) SWIG_fail;
4118 }
4119 {
4120 arg2 = (int)(SWIG_As_int(obj1));
4121 if (SWIG_arg_fail(2)) SWIG_fail;
4122 }
4123 if (obj2) {
4124 {
4125 arg3 = (int)(SWIG_As_int(obj2));
4126 if (SWIG_arg_fail(3)) SWIG_fail;
4127 }
c1cb24a4
RD
4128 }
4129 {
093d3ff1 4130 if (!wxPyCheckForApp()) SWIG_fail;
c1cb24a4 4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4132 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
c1cb24a4
RD
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
093d3ff1 4137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
c1cb24a4
RD
4138 return resultobj;
4139 fail:
4140 return NULL;
4141}
4142
4143
093d3ff1 4144static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4145 PyObject *resultobj;
093d3ff1
RD
4146 wxIcon *arg1 = 0 ;
4147 wxBitmap *result;
d55e5bfc 4148 PyObject * obj0 = 0 ;
d55e5bfc 4149 char *kwnames[] = {
093d3ff1 4150 (char *) "icon", NULL
d55e5bfc
RD
4151 };
4152
093d3ff1
RD
4153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
4154 {
4155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4156 if (SWIG_arg_fail(1)) SWIG_fail;
4157 if (arg1 == NULL) {
4158 SWIG_null_ref("wxIcon");
4159 }
4160 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4161 }
4162 {
093d3ff1 4163 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4164 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4165 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
d55e5bfc
RD
4166
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
093d3ff1 4170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d55e5bfc
RD
4171 return resultobj;
4172 fail:
4173 return NULL;
4174}
4175
4176
093d3ff1 4177static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4178 PyObject *resultobj;
093d3ff1
RD
4179 wxImage *arg1 = 0 ;
4180 int arg2 = (int) -1 ;
4181 wxBitmap *result;
4182 PyObject * obj0 = 0 ;
d55e5bfc
RD
4183 PyObject * obj1 = 0 ;
4184 char *kwnames[] = {
093d3ff1 4185 (char *) "image",(char *) "depth", NULL
d55e5bfc
RD
4186 };
4187
093d3ff1 4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 4189 {
093d3ff1
RD
4190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
4191 if (SWIG_arg_fail(1)) SWIG_fail;
4192 if (arg1 == NULL) {
4193 SWIG_null_ref("wxImage");
4194 }
4195 if (SWIG_arg_fail(1)) SWIG_fail;
4196 }
4197 if (obj1) {
4198 {
4199 arg2 = (int)(SWIG_As_int(obj1));
4200 if (SWIG_arg_fail(2)) SWIG_fail;
4201 }
4202 }
4203 {
4204 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4206 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
d55e5bfc
RD
4207
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
093d3ff1 4211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d55e5bfc
RD
4212 return resultobj;
4213 fail:
4214 return NULL;
4215}
4216
4217
093d3ff1 4218static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4219 PyObject *resultobj;
093d3ff1
RD
4220 PyObject *arg1 = (PyObject *) 0 ;
4221 wxBitmap *result;
d55e5bfc 4222 PyObject * obj0 = 0 ;
d55e5bfc 4223 char *kwnames[] = {
093d3ff1 4224 (char *) "listOfStrings", NULL
d55e5bfc
RD
4225 };
4226
093d3ff1
RD
4227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
4228 arg1 = obj0;
d55e5bfc 4229 {
093d3ff1 4230 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4232 result = (wxBitmap *)new_wxBitmap(arg1);
d55e5bfc
RD
4233
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
093d3ff1 4237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d55e5bfc
RD
4238 return resultobj;
4239 fail:
4240 return NULL;
4241}
4242
4243
093d3ff1 4244static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4245 PyObject *resultobj;
093d3ff1 4246 PyObject *arg1 = (PyObject *) 0 ;
d55e5bfc 4247 int arg2 ;
093d3ff1
RD
4248 int arg3 ;
4249 int arg4 = (int) 1 ;
4250 wxBitmap *result;
d55e5bfc
RD
4251 PyObject * obj0 = 0 ;
4252 PyObject * obj1 = 0 ;
093d3ff1
RD
4253 PyObject * obj2 = 0 ;
4254 PyObject * obj3 = 0 ;
d55e5bfc 4255 char *kwnames[] = {
093d3ff1 4256 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
d55e5bfc
RD
4257 };
4258
093d3ff1
RD
4259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4260 arg1 = obj0;
4261 {
4262 arg2 = (int)(SWIG_As_int(obj1));
4263 if (SWIG_arg_fail(2)) SWIG_fail;
4264 }
4265 {
4266 arg3 = (int)(SWIG_As_int(obj2));
4267 if (SWIG_arg_fail(3)) SWIG_fail;
4268 }
4269 if (obj3) {
4270 {
4271 arg4 = (int)(SWIG_As_int(obj3));
4272 if (SWIG_arg_fail(4)) SWIG_fail;
4273 }
4274 }
d55e5bfc 4275 {
093d3ff1 4276 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4278 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
d55e5bfc
RD
4279
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
093d3ff1 4283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d55e5bfc
RD
4284 return resultobj;
4285 fail:
4286 return NULL;
4287}
4288
4289
093d3ff1 4290static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4291 PyObject *resultobj;
4292 wxBitmap *arg1 = (wxBitmap *) 0 ;
093d3ff1 4293 long result;
d55e5bfc 4294 PyObject * obj0 = 0 ;
d55e5bfc 4295 char *kwnames[] = {
093d3ff1 4296 (char *) "self", NULL
d55e5bfc
RD
4297 };
4298
093d3ff1
RD
4299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
4300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4301 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4302 {
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4304 result = (long)(arg1)->GetHandle();
d55e5bfc
RD
4305
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
093d3ff1
RD
4309 {
4310 resultobj = SWIG_From_long((long)(result));
4311 }
d55e5bfc
RD
4312 return resultobj;
4313 fail:
4314 return NULL;
4315}
4316
4317
093d3ff1 4318static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4319 PyObject *resultobj;
4320 wxBitmap *arg1 = (wxBitmap *) 0 ;
093d3ff1 4321 long arg2 ;
d55e5bfc
RD
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char *kwnames[] = {
093d3ff1 4325 (char *) "self",(char *) "handle", NULL
d55e5bfc
RD
4326 };
4327
093d3ff1
RD
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4329 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4330 if (SWIG_arg_fail(1)) SWIG_fail;
4331 {
4332 arg2 = (long)(SWIG_As_long(obj1));
4333 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
4334 }
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4337 wxBitmap_SetHandle(arg1,arg2);
d55e5bfc
RD
4338
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
093d3ff1 4342 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
4343 return resultobj;
4344 fail:
4345 return NULL;
4346}
4347
4348
093d3ff1 4349static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4350 PyObject *resultobj;
4351 wxBitmap *arg1 = (wxBitmap *) 0 ;
093d3ff1 4352 bool result;
d55e5bfc
RD
4353 PyObject * obj0 = 0 ;
4354 char *kwnames[] = {
4355 (char *) "self", NULL
4356 };
4357
093d3ff1
RD
4358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
4359 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4360 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4363 result = (bool)(arg1)->Ok();
d55e5bfc
RD
4364
4365 wxPyEndAllowThreads(__tstate);
4366 if (PyErr_Occurred()) SWIG_fail;
4367 }
093d3ff1
RD
4368 {
4369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4370 }
d55e5bfc
RD
4371 return resultobj;
4372 fail:
4373 return NULL;
4374}
4375
4376
093d3ff1 4377static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4378 PyObject *resultobj;
4379 wxBitmap *arg1 = (wxBitmap *) 0 ;
093d3ff1 4380 int result;
d55e5bfc 4381 PyObject * obj0 = 0 ;
d55e5bfc 4382 char *kwnames[] = {
093d3ff1 4383 (char *) "self", NULL
d55e5bfc
RD
4384 };
4385
093d3ff1
RD
4386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
4387 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4388 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4391 result = (int)(arg1)->GetWidth();
d55e5bfc
RD
4392
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
093d3ff1
RD
4396 {
4397 resultobj = SWIG_From_int((int)(result));
4398 }
d55e5bfc
RD
4399 return resultobj;
4400 fail:
4401 return NULL;
4402}
4403
4404
093d3ff1 4405static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4406 PyObject *resultobj;
4407 wxBitmap *arg1 = (wxBitmap *) 0 ;
093d3ff1 4408 int result;
d55e5bfc 4409 PyObject * obj0 = 0 ;
d55e5bfc 4410 char *kwnames[] = {
093d3ff1 4411 (char *) "self", NULL
d55e5bfc
RD
4412 };
4413
093d3ff1
RD
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
4415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4416 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4419 result = (int)(arg1)->GetHeight();
d55e5bfc
RD
4420
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 {
093d3ff1 4425 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
4426 }
4427 return resultobj;
4428 fail:
4429 return NULL;
4430}
4431
4432
093d3ff1 4433static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4434 PyObject *resultobj;
4435 wxBitmap *arg1 = (wxBitmap *) 0 ;
093d3ff1 4436 int result;
d55e5bfc 4437 PyObject * obj0 = 0 ;
d55e5bfc 4438 char *kwnames[] = {
093d3ff1 4439 (char *) "self", NULL
d55e5bfc
RD
4440 };
4441
093d3ff1
RD
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
4443 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4444 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4445 {
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4447 result = (int)(arg1)->GetDepth();
d55e5bfc
RD
4448
4449 wxPyEndAllowThreads(__tstate);
4450 if (PyErr_Occurred()) SWIG_fail;
4451 }
4452 {
093d3ff1 4453 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
4454 }
4455 return resultobj;
4456 fail:
4457 return NULL;
4458}
4459
4460
093d3ff1 4461static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4462 PyObject *resultobj;
093d3ff1
RD
4463 wxBitmap *arg1 = (wxBitmap *) 0 ;
4464 wxSize result;
d55e5bfc 4465 PyObject * obj0 = 0 ;
d55e5bfc 4466 char *kwnames[] = {
093d3ff1 4467 (char *) "self", NULL
d55e5bfc
RD
4468 };
4469
093d3ff1
RD
4470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
4471 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4472 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4473 {
4474 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4475 result = wxBitmap_GetSize(arg1);
d55e5bfc
RD
4476
4477 wxPyEndAllowThreads(__tstate);
110da5b0 4478 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4479 }
093d3ff1
RD
4480 {
4481 wxSize * resultptr;
4482 resultptr = new wxSize((wxSize &)(result));
4483 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4484 }
d55e5bfc
RD
4485 return resultobj;
4486 fail:
4487 return NULL;
4488}
4489
4490
093d3ff1 4491static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4492 PyObject *resultobj;
093d3ff1
RD
4493 wxBitmap *arg1 = (wxBitmap *) 0 ;
4494 SwigValueWrapper<wxImage > result;
d55e5bfc 4495 PyObject * obj0 = 0 ;
d55e5bfc 4496 char *kwnames[] = {
093d3ff1 4497 (char *) "self", NULL
d55e5bfc
RD
4498 };
4499
093d3ff1
RD
4500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
4501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4502 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4505 result = ((wxBitmap const *)arg1)->ConvertToImage();
d55e5bfc
RD
4506
4507 wxPyEndAllowThreads(__tstate);
110da5b0 4508 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4509 }
d55e5bfc 4510 {
093d3ff1
RD
4511 wxImage * resultptr;
4512 resultptr = new wxImage((wxImage &)(result));
4513 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
d55e5bfc
RD
4514 }
4515 return resultobj;
4516 fail:
d55e5bfc
RD
4517 return NULL;
4518}
4519
4520
093d3ff1 4521static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4522 PyObject *resultobj;
093d3ff1
RD
4523 wxBitmap *arg1 = (wxBitmap *) 0 ;
4524 wxMask *result;
d55e5bfc
RD
4525 PyObject * obj0 = 0 ;
4526 char *kwnames[] = {
4527 (char *) "self", NULL
4528 };
4529
093d3ff1
RD
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
4531 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4532 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4535 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
d55e5bfc
RD
4536
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 }
093d3ff1 4540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d55e5bfc
RD
4541 return resultobj;
4542 fail:
4543 return NULL;
4544}
4545
4546
093d3ff1 4547static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4548 PyObject *resultobj;
093d3ff1
RD
4549 wxBitmap *arg1 = (wxBitmap *) 0 ;
4550 wxMask *arg2 = (wxMask *) 0 ;
4551 PyObject * obj0 = 0 ;
4552 PyObject * obj1 = 0 ;
d55e5bfc 4553 char *kwnames[] = {
093d3ff1 4554 (char *) "self",(char *) "mask", NULL
d55e5bfc
RD
4555 };
4556
093d3ff1
RD
4557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
4558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4559 if (SWIG_arg_fail(1)) SWIG_fail;
4560 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0);
4561 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4564 (arg1)->SetMask(arg2);
d55e5bfc
RD
4565
4566 wxPyEndAllowThreads(__tstate);
110da5b0 4567 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4568 }
093d3ff1 4569 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
4570 return resultobj;
4571 fail:
4572 return NULL;
4573}
4574
4575
093d3ff1 4576static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4577 PyObject *resultobj;
093d3ff1
RD
4578 wxBitmap *arg1 = (wxBitmap *) 0 ;
4579 wxColour *arg2 = 0 ;
4580 wxColour temp2 ;
d55e5bfc 4581 PyObject * obj0 = 0 ;
093d3ff1 4582 PyObject * obj1 = 0 ;
d55e5bfc 4583 char *kwnames[] = {
093d3ff1 4584 (char *) "self",(char *) "colour", NULL
d55e5bfc
RD
4585 };
4586
093d3ff1
RD
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
4588 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4589 if (SWIG_arg_fail(1)) SWIG_fail;
4590 {
4591 arg2 = &temp2;
4592 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
4593 }
4594 {
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4596 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
d55e5bfc
RD
4597
4598 wxPyEndAllowThreads(__tstate);
110da5b0 4599 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4600 }
093d3ff1 4601 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
4602 return resultobj;
4603 fail:
4604 return NULL;
4605}
4606
4607
093d3ff1 4608static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4609 PyObject *resultobj;
093d3ff1
RD
4610 wxBitmap *arg1 = (wxBitmap *) 0 ;
4611 wxRect *arg2 = 0 ;
4612 SwigValueWrapper<wxBitmap > result;
4613 wxRect temp2 ;
d55e5bfc 4614 PyObject * obj0 = 0 ;
093d3ff1 4615 PyObject * obj1 = 0 ;
d55e5bfc 4616 char *kwnames[] = {
093d3ff1 4617 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
4618 };
4619
093d3ff1
RD
4620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
4621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4622 if (SWIG_arg_fail(1)) SWIG_fail;
4623 {
4624 arg2 = &temp2;
4625 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
4626 }
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4629 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
d55e5bfc
RD
4630
4631 wxPyEndAllowThreads(__tstate);
110da5b0 4632 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4633 }
093d3ff1
RD
4634 {
4635 wxBitmap * resultptr;
4636 resultptr = new wxBitmap((wxBitmap &)(result));
4637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4638 }
d55e5bfc
RD
4639 return resultobj;
4640 fail:
4641 return NULL;
4642}
4643
4644
093d3ff1 4645static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4646 PyObject *resultobj;
093d3ff1
RD
4647 wxBitmap *arg1 = (wxBitmap *) 0 ;
4648 wxString *arg2 = 0 ;
4649 wxBitmapType arg3 ;
4650 wxPalette *arg4 = (wxPalette *) NULL ;
4651 bool result;
4652 bool temp2 = false ;
d55e5bfc 4653 PyObject * obj0 = 0 ;
093d3ff1
RD
4654 PyObject * obj1 = 0 ;
4655 PyObject * obj2 = 0 ;
4656 PyObject * obj3 = 0 ;
d55e5bfc 4657 char *kwnames[] = {
093d3ff1 4658 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
d55e5bfc
RD
4659 };
4660
093d3ff1
RD
4661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4662 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4663 if (SWIG_arg_fail(1)) SWIG_fail;
4664 {
4665 arg2 = wxString_in_helper(obj1);
4666 if (arg2 == NULL) SWIG_fail;
4667 temp2 = true;
4668 }
4669 {
4670 arg3 = (wxBitmapType)(SWIG_As_int(obj2));
4671 if (SWIG_arg_fail(3)) SWIG_fail;
4672 }
4673 if (obj3) {
4674 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4675 if (SWIG_arg_fail(4)) SWIG_fail;
4676 }
d55e5bfc
RD
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4679 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
d55e5bfc
RD
4680
4681 wxPyEndAllowThreads(__tstate);
110da5b0 4682 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4683 }
093d3ff1
RD
4684 {
4685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4686 }
4687 {
4688 if (temp2)
4689 delete arg2;
4690 }
d55e5bfc
RD
4691 return resultobj;
4692 fail:
093d3ff1
RD
4693 {
4694 if (temp2)
4695 delete arg2;
4696 }
d55e5bfc
RD
4697 return NULL;
4698}
4699
4700
093d3ff1 4701static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4702 PyObject *resultobj;
093d3ff1 4703 wxBitmap *arg1 = (wxBitmap *) 0 ;
d55e5bfc 4704 wxString *arg2 = 0 ;
093d3ff1 4705 wxBitmapType arg3 ;
d55e5bfc 4706 bool result;
ae8162c8 4707 bool temp2 = false ;
d55e5bfc
RD
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 PyObject * obj2 = 0 ;
4711 char *kwnames[] = {
4712 (char *) "self",(char *) "name",(char *) "type", NULL
4713 };
4714
093d3ff1
RD
4715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4717 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4718 {
4719 arg2 = wxString_in_helper(obj1);
4720 if (arg2 == NULL) SWIG_fail;
ae8162c8 4721 temp2 = true;
d55e5bfc 4722 }
093d3ff1
RD
4723 {
4724 arg3 = (wxBitmapType)(SWIG_As_int(obj2));
4725 if (SWIG_arg_fail(3)) SWIG_fail;
4726 }
d55e5bfc
RD
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
4730
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 {
4735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4736 }
4737 {
4738 if (temp2)
4739 delete arg2;
4740 }
4741 return resultobj;
4742 fail:
4743 {
4744 if (temp2)
4745 delete arg2;
4746 }
4747 return NULL;
4748}
4749
4750
093d3ff1 4751static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4752 PyObject *resultobj;
093d3ff1
RD
4753 wxBitmap *arg1 = (wxBitmap *) 0 ;
4754 wxPalette *result;
d55e5bfc
RD
4755 PyObject * obj0 = 0 ;
4756 char *kwnames[] = {
4757 (char *) "self", NULL
4758 };
4759
093d3ff1
RD
4760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
4761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4762 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4765 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
d55e5bfc
RD
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
093d3ff1 4770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
d55e5bfc
RD
4771 return resultobj;
4772 fail:
4773 return NULL;
4774}
4775
4776
093d3ff1 4777static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4778 PyObject *resultobj;
093d3ff1
RD
4779 wxBitmap *arg1 = (wxBitmap *) 0 ;
4780 wxPalette *arg2 = 0 ;
d55e5bfc
RD
4781 PyObject * obj0 = 0 ;
4782 PyObject * obj1 = 0 ;
4783 char *kwnames[] = {
093d3ff1 4784 (char *) "self",(char *) "palette", NULL
d55e5bfc
RD
4785 };
4786
093d3ff1
RD
4787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
4788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4789 if (SWIG_arg_fail(1)) SWIG_fail;
4790 {
4791 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4792 if (SWIG_arg_fail(2)) SWIG_fail;
4793 if (arg2 == NULL) {
4794 SWIG_null_ref("wxPalette");
4795 }
4796 if (SWIG_arg_fail(2)) SWIG_fail;
4797 }
d55e5bfc
RD
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4800 (arg1)->SetPalette((wxPalette const &)*arg2);
d55e5bfc
RD
4801
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 Py_INCREF(Py_None); resultobj = Py_None;
4806 return resultobj;
4807 fail:
4808 return NULL;
4809}
4810
4811
093d3ff1 4812static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4813 PyObject *resultobj;
093d3ff1
RD
4814 wxBitmap *arg1 = (wxBitmap *) 0 ;
4815 wxIcon *arg2 = 0 ;
d55e5bfc
RD
4816 bool result;
4817 PyObject * obj0 = 0 ;
093d3ff1 4818 PyObject * obj1 = 0 ;
d55e5bfc 4819 char *kwnames[] = {
093d3ff1 4820 (char *) "self",(char *) "icon", NULL
d55e5bfc
RD
4821 };
4822
093d3ff1
RD
4823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
4824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4825 if (SWIG_arg_fail(1)) SWIG_fail;
4826 {
4827 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4828 if (SWIG_arg_fail(2)) SWIG_fail;
4829 if (arg2 == NULL) {
4830 SWIG_null_ref("wxIcon");
4831 }
4832 if (SWIG_arg_fail(2)) SWIG_fail;
4833 }
d55e5bfc
RD
4834 {
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4836 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
d55e5bfc
RD
4837
4838 wxPyEndAllowThreads(__tstate);
4839 if (PyErr_Occurred()) SWIG_fail;
4840 }
4841 {
4842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4843 }
4844 return resultobj;
4845 fail:
4846 return NULL;
4847}
4848
4849
093d3ff1 4850static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4851 PyObject *resultobj;
093d3ff1
RD
4852 wxBitmap *arg1 = (wxBitmap *) 0 ;
4853 int arg2 ;
d55e5bfc 4854 PyObject * obj0 = 0 ;
093d3ff1 4855 PyObject * obj1 = 0 ;
d55e5bfc 4856 char *kwnames[] = {
093d3ff1 4857 (char *) "self",(char *) "height", NULL
d55e5bfc
RD
4858 };
4859
093d3ff1
RD
4860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4862 if (SWIG_arg_fail(1)) SWIG_fail;
4863 {
4864 arg2 = (int)(SWIG_As_int(obj1));
4865 if (SWIG_arg_fail(2)) SWIG_fail;
4866 }
d55e5bfc
RD
4867 {
4868 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4869 (arg1)->SetHeight(arg2);
d55e5bfc
RD
4870
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
093d3ff1 4874 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
4875 return resultobj;
4876 fail:
4877 return NULL;
4878}
4879
4880
093d3ff1 4881static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4882 PyObject *resultobj;
093d3ff1
RD
4883 wxBitmap *arg1 = (wxBitmap *) 0 ;
4884 int arg2 ;
d55e5bfc 4885 PyObject * obj0 = 0 ;
093d3ff1 4886 PyObject * obj1 = 0 ;
d55e5bfc 4887 char *kwnames[] = {
093d3ff1 4888 (char *) "self",(char *) "width", NULL
d55e5bfc
RD
4889 };
4890
093d3ff1
RD
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4893 if (SWIG_arg_fail(1)) SWIG_fail;
4894 {
4895 arg2 = (int)(SWIG_As_int(obj1));
4896 if (SWIG_arg_fail(2)) SWIG_fail;
4897 }
d55e5bfc
RD
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4900 (arg1)->SetWidth(arg2);
d55e5bfc
RD
4901
4902 wxPyEndAllowThreads(__tstate);
4903 if (PyErr_Occurred()) SWIG_fail;
4904 }
093d3ff1 4905 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
4906 return resultobj;
4907 fail:
4908 return NULL;
4909}
4910
4911
093d3ff1 4912static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4913 PyObject *resultobj;
093d3ff1
RD
4914 wxBitmap *arg1 = (wxBitmap *) 0 ;
4915 int arg2 ;
d55e5bfc 4916 PyObject * obj0 = 0 ;
093d3ff1 4917 PyObject * obj1 = 0 ;
d55e5bfc 4918 char *kwnames[] = {
093d3ff1 4919 (char *) "self",(char *) "depth", NULL
d55e5bfc
RD
4920 };
4921
093d3ff1
RD
4922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4924 if (SWIG_arg_fail(1)) SWIG_fail;
4925 {
4926 arg2 = (int)(SWIG_As_int(obj1));
4927 if (SWIG_arg_fail(2)) SWIG_fail;
4928 }
d55e5bfc
RD
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4931 (arg1)->SetDepth(arg2);
d55e5bfc
RD
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
093d3ff1 4936 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
4937 return resultobj;
4938 fail:
4939 return NULL;
4940}
4941
4942
093d3ff1 4943static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4944 PyObject *resultobj;
093d3ff1
RD
4945 wxBitmap *arg1 = (wxBitmap *) 0 ;
4946 wxSize *arg2 = 0 ;
4947 wxSize temp2 ;
d55e5bfc
RD
4948 PyObject * obj0 = 0 ;
4949 PyObject * obj1 = 0 ;
4950 char *kwnames[] = {
093d3ff1 4951 (char *) "self",(char *) "size", NULL
d55e5bfc
RD
4952 };
4953
093d3ff1
RD
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
4955 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4956 if (SWIG_arg_fail(1)) SWIG_fail;
4957 {
4958 arg2 = &temp2;
4959 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4960 }
d55e5bfc
RD
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4963 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
d55e5bfc
RD
4964
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 Py_INCREF(Py_None); resultobj = Py_None;
4969 return resultobj;
4970 fail:
4971 return NULL;
4972}
4973
4974
093d3ff1 4975static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 4976 PyObject *resultobj;
093d3ff1
RD
4977 wxBitmap *arg1 = (wxBitmap *) 0 ;
4978 wxCursor *arg2 = 0 ;
4979 bool result;
d55e5bfc
RD
4980 PyObject * obj0 = 0 ;
4981 PyObject * obj1 = 0 ;
4982 char *kwnames[] = {
093d3ff1 4983 (char *) "self",(char *) "cursor", NULL
d55e5bfc
RD
4984 };
4985
093d3ff1
RD
4986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
4987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4988 if (SWIG_arg_fail(1)) SWIG_fail;
4989 {
4990 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
4991 if (SWIG_arg_fail(2)) SWIG_fail;
4992 if (arg2 == NULL) {
4993 SWIG_null_ref("wxCursor");
4994 }
4995 if (SWIG_arg_fail(2)) SWIG_fail;
4996 }
d55e5bfc
RD
4997 {
4998 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4999 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
d55e5bfc
RD
5000
5001 wxPyEndAllowThreads(__tstate);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
093d3ff1
RD
5004 {
5005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5006 }
d55e5bfc
RD
5007 return resultobj;
5008 fail:
5009 return NULL;
5010}
5011
5012
093d3ff1 5013static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5014 PyObject *resultobj;
093d3ff1
RD
5015 wxBitmap *arg1 = (wxBitmap *) 0 ;
5016 wxBitmap *arg2 = (wxBitmap *) 0 ;
5017 bool result;
d55e5bfc
RD
5018 PyObject * obj0 = 0 ;
5019 PyObject * obj1 = 0 ;
5020 char *kwnames[] = {
093d3ff1 5021 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
5022 };
5023
093d3ff1
RD
5024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
5025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5026 if (SWIG_arg_fail(1)) SWIG_fail;
5027 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5028 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
5029 {
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5031 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
d55e5bfc
RD
5032
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
093d3ff1
RD
5036 {
5037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5038 }
d55e5bfc
RD
5039 return resultobj;
5040 fail:
5041 return NULL;
5042}
5043
5044
093d3ff1 5045static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5046 PyObject *resultobj;
093d3ff1
RD
5047 wxBitmap *arg1 = (wxBitmap *) 0 ;
5048 wxBitmap *arg2 = (wxBitmap *) 0 ;
5049 bool result;
d55e5bfc
RD
5050 PyObject * obj0 = 0 ;
5051 PyObject * obj1 = 0 ;
5052 char *kwnames[] = {
093d3ff1 5053 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
5054 };
5055
093d3ff1
RD
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
5057 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5058 if (SWIG_arg_fail(1)) SWIG_fail;
5059 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5060 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5063 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
d55e5bfc
RD
5064
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
d55e5bfc 5068 {
093d3ff1 5069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
5070 }
5071 return resultobj;
5072 fail:
d55e5bfc
RD
5073 return NULL;
5074}
5075
5076
093d3ff1
RD
5077static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
5078 PyObject *obj;
5079 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5080 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
5081 Py_INCREF(obj);
5082 return Py_BuildValue((char *)"");
5083}
5084static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5085 PyObject *resultobj;
093d3ff1
RD
5086 wxBitmap *arg1 = 0 ;
5087 wxColour const &arg2_defvalue = wxNullColour ;
5088 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5089 wxMask *result;
5090 wxColour temp2 ;
d55e5bfc 5091 PyObject * obj0 = 0 ;
093d3ff1 5092 PyObject * obj1 = 0 ;
d55e5bfc 5093 char *kwnames[] = {
093d3ff1 5094 (char *) "bitmap",(char *) "colour", NULL
d55e5bfc
RD
5095 };
5096
093d3ff1
RD
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
5098 {
5099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5100 if (SWIG_arg_fail(1)) SWIG_fail;
5101 if (arg1 == NULL) {
5102 SWIG_null_ref("wxBitmap");
5103 }
5104 if (SWIG_arg_fail(1)) SWIG_fail;
5105 }
5106 if (obj1) {
5107 {
5108 arg2 = &temp2;
5109 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5110 }
5111 }
d55e5bfc 5112 {
093d3ff1 5113 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5115 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d55e5bfc
RD
5116
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
093d3ff1 5120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d55e5bfc
RD
5121 return resultobj;
5122 fail:
5123 return NULL;
5124}
5125
5126
093d3ff1
RD
5127static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
5128 PyObject *obj;
5129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5130 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
5131 Py_INCREF(obj);
5132 return Py_BuildValue((char *)"");
5133}
5134static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5135 PyObject *resultobj;
093d3ff1
RD
5136 wxString *arg1 = 0 ;
5137 wxBitmapType arg2 ;
5138 int arg3 = (int) -1 ;
5139 int arg4 = (int) -1 ;
5140 wxIcon *result;
5141 bool temp1 = false ;
d55e5bfc 5142 PyObject * obj0 = 0 ;
093d3ff1
RD
5143 PyObject * obj1 = 0 ;
5144 PyObject * obj2 = 0 ;
5145 PyObject * obj3 = 0 ;
d55e5bfc 5146 char *kwnames[] = {
093d3ff1 5147 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d55e5bfc
RD
5148 };
5149
093d3ff1
RD
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5151 {
5152 arg1 = wxString_in_helper(obj0);
5153 if (arg1 == NULL) SWIG_fail;
5154 temp1 = true;
5155 }
5156 {
5157 arg2 = (wxBitmapType)(SWIG_As_int(obj1));
5158 if (SWIG_arg_fail(2)) SWIG_fail;
5159 }
5160 if (obj2) {
5161 {
5162 arg3 = (int)(SWIG_As_int(obj2));
5163 if (SWIG_arg_fail(3)) SWIG_fail;
5164 }
5165 }
5166 if (obj3) {
5167 {
5168 arg4 = (int)(SWIG_As_int(obj3));
5169 if (SWIG_arg_fail(4)) SWIG_fail;
5170 }
5171 }
d55e5bfc 5172 {
093d3ff1 5173 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5175 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
d55e5bfc
RD
5176
5177 wxPyEndAllowThreads(__tstate);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 }
093d3ff1 5180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d55e5bfc 5181 {
093d3ff1
RD
5182 if (temp1)
5183 delete arg1;
d55e5bfc
RD
5184 }
5185 return resultobj;
5186 fail:
093d3ff1
RD
5187 {
5188 if (temp1)
5189 delete arg1;
5190 }
d55e5bfc
RD
5191 return NULL;
5192}
5193
5194
093d3ff1 5195static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5196 PyObject *resultobj;
093d3ff1 5197 wxIcon *arg1 = (wxIcon *) 0 ;
d55e5bfc 5198 PyObject * obj0 = 0 ;
d55e5bfc 5199 char *kwnames[] = {
093d3ff1 5200 (char *) "self", NULL
d55e5bfc
RD
5201 };
5202
093d3ff1
RD
5203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
5204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5205 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5208 delete arg1;
d55e5bfc
RD
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
5214 return resultobj;
5215 fail:
d55e5bfc
RD
5216 return NULL;
5217}
5218
5219
093d3ff1 5220static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5221 PyObject *resultobj;
093d3ff1 5222 wxIcon *result;
d55e5bfc 5223 char *kwnames[] = {
093d3ff1 5224 NULL
d55e5bfc
RD
5225 };
5226
093d3ff1 5227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
d55e5bfc 5228 {
093d3ff1 5229 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5231 result = (wxIcon *)new wxIcon();
d55e5bfc
RD
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
093d3ff1 5236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d55e5bfc
RD
5237 return resultobj;
5238 fail:
5239 return NULL;
5240}
5241
5242
093d3ff1 5243static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5244 PyObject *resultobj;
093d3ff1
RD
5245 wxIconLocation *arg1 = 0 ;
5246 wxIcon *result;
d55e5bfc 5247 PyObject * obj0 = 0 ;
d55e5bfc 5248 char *kwnames[] = {
093d3ff1 5249 (char *) "loc", NULL
d55e5bfc
RD
5250 };
5251
093d3ff1
RD
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
5253 {
5254 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5255 if (SWIG_arg_fail(1)) SWIG_fail;
5256 if (arg1 == NULL) {
5257 SWIG_null_ref("wxIconLocation");
5258 }
5259 if (SWIG_arg_fail(1)) SWIG_fail;
5260 }
d55e5bfc 5261 {
093d3ff1 5262 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 5263 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5264 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
d55e5bfc
RD
5265
5266 wxPyEndAllowThreads(__tstate);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 }
093d3ff1 5269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d55e5bfc
RD
5270 return resultobj;
5271 fail:
5272 return NULL;
5273}
5274
5275
093d3ff1 5276static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5277 PyObject *resultobj;
093d3ff1
RD
5278 wxBitmap *arg1 = 0 ;
5279 wxIcon *result;
d55e5bfc
RD
5280 PyObject * obj0 = 0 ;
5281 char *kwnames[] = {
093d3ff1 5282 (char *) "bmp", NULL
d55e5bfc
RD
5283 };
5284
093d3ff1 5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
d55e5bfc 5286 {
093d3ff1
RD
5287 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5288 if (SWIG_arg_fail(1)) SWIG_fail;
5289 if (arg1 == NULL) {
5290 SWIG_null_ref("wxBitmap");
5291 }
5292 if (SWIG_arg_fail(1)) SWIG_fail;
5293 }
5294 {
5295 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5297 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
d55e5bfc
RD
5298
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
093d3ff1 5302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d55e5bfc
RD
5303 return resultobj;
5304 fail:
5305 return NULL;
5306}
5307
5308
093d3ff1 5309static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5310 PyObject *resultobj;
093d3ff1
RD
5311 PyObject *arg1 = (PyObject *) 0 ;
5312 wxIcon *result;
5313 PyObject * obj0 = 0 ;
d55e5bfc 5314 char *kwnames[] = {
093d3ff1 5315 (char *) "listOfStrings", NULL
d55e5bfc
RD
5316 };
5317
093d3ff1
RD
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
5319 arg1 = obj0;
d55e5bfc 5320 {
093d3ff1 5321 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 5322 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5323 result = (wxIcon *)new_wxIcon(arg1);
d55e5bfc
RD
5324
5325 wxPyEndAllowThreads(__tstate);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 }
093d3ff1 5328 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d55e5bfc
RD
5329 return resultobj;
5330 fail:
5331 return NULL;
5332}
5333
5334
093d3ff1 5335static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5336 PyObject *resultobj;
093d3ff1
RD
5337 wxIcon *arg1 = (wxIcon *) 0 ;
5338 wxString *arg2 = 0 ;
5339 wxBitmapType arg3 ;
5340 bool result;
5341 bool temp2 = false ;
d55e5bfc
RD
5342 PyObject * obj0 = 0 ;
5343 PyObject * obj1 = 0 ;
093d3ff1 5344 PyObject * obj2 = 0 ;
d55e5bfc 5345 char *kwnames[] = {
093d3ff1 5346 (char *) "self",(char *) "name",(char *) "type", NULL
d55e5bfc
RD
5347 };
5348
093d3ff1
RD
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
5350 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5351 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 5352 {
093d3ff1
RD
5353 arg2 = wxString_in_helper(obj1);
5354 if (arg2 == NULL) SWIG_fail;
5355 temp2 = true;
5356 }
5357 {
5358 arg3 = (wxBitmapType)(SWIG_As_int(obj2));
5359 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc 5360 }
d55e5bfc
RD
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5363 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d55e5bfc
RD
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
d55e5bfc 5368 {
093d3ff1
RD
5369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5370 }
5371 {
5372 if (temp2)
5373 delete arg2;
d55e5bfc
RD
5374 }
5375 return resultobj;
5376 fail:
5377 {
093d3ff1
RD
5378 if (temp2)
5379 delete arg2;
d55e5bfc
RD
5380 }
5381 return NULL;
5382}
5383
5384
093d3ff1 5385static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5386 PyObject *resultobj;
093d3ff1
RD
5387 wxIcon *arg1 = (wxIcon *) 0 ;
5388 long result;
d55e5bfc
RD
5389 PyObject * obj0 = 0 ;
5390 char *kwnames[] = {
093d3ff1 5391 (char *) "self", NULL
d55e5bfc
RD
5392 };
5393
093d3ff1
RD
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
5395 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5396 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5399 result = (long)(arg1)->GetHandle();
d55e5bfc
RD
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
093d3ff1
RD
5404 {
5405 resultobj = SWIG_From_long((long)(result));
5406 }
d55e5bfc
RD
5407 return resultobj;
5408 fail:
5409 return NULL;
5410}
5411
5412
093d3ff1 5413static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5414 PyObject *resultobj;
093d3ff1
RD
5415 wxIcon *arg1 = (wxIcon *) 0 ;
5416 long arg2 ;
d55e5bfc 5417 PyObject * obj0 = 0 ;
093d3ff1 5418 PyObject * obj1 = 0 ;
d55e5bfc 5419 char *kwnames[] = {
093d3ff1 5420 (char *) "self",(char *) "handle", NULL
d55e5bfc
RD
5421 };
5422
093d3ff1
RD
5423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5424 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5425 if (SWIG_arg_fail(1)) SWIG_fail;
5426 {
5427 arg2 = (long)(SWIG_As_long(obj1));
5428 if (SWIG_arg_fail(2)) SWIG_fail;
5429 }
d55e5bfc
RD
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5432 wxIcon_SetHandle(arg1,arg2);
d55e5bfc
RD
5433
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 Py_INCREF(Py_None); resultobj = Py_None;
5438 return resultobj;
5439 fail:
5440 return NULL;
5441}
5442
5443
093d3ff1 5444static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5445 PyObject *resultobj;
093d3ff1
RD
5446 wxIcon *arg1 = (wxIcon *) 0 ;
5447 bool result;
d55e5bfc 5448 PyObject * obj0 = 0 ;
d55e5bfc 5449 char *kwnames[] = {
093d3ff1 5450 (char *) "self", NULL
d55e5bfc
RD
5451 };
5452
093d3ff1
RD
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
5454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5455 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5458 result = (bool)(arg1)->Ok();
d55e5bfc
RD
5459
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
093d3ff1
RD
5463 {
5464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5465 }
d55e5bfc
RD
5466 return resultobj;
5467 fail:
5468 return NULL;
5469}
5470
5471
093d3ff1 5472static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5473 PyObject *resultobj;
093d3ff1
RD
5474 wxIcon *arg1 = (wxIcon *) 0 ;
5475 int result;
d55e5bfc 5476 PyObject * obj0 = 0 ;
d55e5bfc 5477 char *kwnames[] = {
093d3ff1 5478 (char *) "self", NULL
d55e5bfc
RD
5479 };
5480
093d3ff1
RD
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
5482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5483 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5484 {
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5486 result = (int)(arg1)->GetWidth();
d55e5bfc
RD
5487
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
d55e5bfc 5491 {
093d3ff1 5492 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
5493 }
5494 return resultobj;
5495 fail:
d55e5bfc
RD
5496 return NULL;
5497}
5498
5499
093d3ff1 5500static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5501 PyObject *resultobj;
093d3ff1
RD
5502 wxIcon *arg1 = (wxIcon *) 0 ;
5503 int result;
d55e5bfc 5504 PyObject * obj0 = 0 ;
d55e5bfc 5505 char *kwnames[] = {
093d3ff1 5506 (char *) "self", NULL
d55e5bfc
RD
5507 };
5508
093d3ff1
RD
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
5510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5511 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5512 {
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5514 result = (int)(arg1)->GetHeight();
d55e5bfc
RD
5515
5516 wxPyEndAllowThreads(__tstate);
5517 if (PyErr_Occurred()) SWIG_fail;
5518 }
5519 {
093d3ff1 5520 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
5521 }
5522 return resultobj;
5523 fail:
5524 return NULL;
5525}
5526
5527
093d3ff1 5528static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5529 PyObject *resultobj;
093d3ff1
RD
5530 wxIcon *arg1 = (wxIcon *) 0 ;
5531 int result;
d55e5bfc 5532 PyObject * obj0 = 0 ;
d55e5bfc 5533 char *kwnames[] = {
093d3ff1 5534 (char *) "self", NULL
d55e5bfc
RD
5535 };
5536
093d3ff1
RD
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
5538 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5539 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5542 result = (int)(arg1)->GetDepth();
d55e5bfc
RD
5543
5544 wxPyEndAllowThreads(__tstate);
110da5b0 5545 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 5546 }
d55e5bfc 5547 {
093d3ff1 5548 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
5549 }
5550 return resultobj;
5551 fail:
d55e5bfc
RD
5552 return NULL;
5553}
5554
5555
093d3ff1 5556static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5557 PyObject *resultobj;
093d3ff1
RD
5558 wxIcon *arg1 = (wxIcon *) 0 ;
5559 int arg2 ;
d55e5bfc 5560 PyObject * obj0 = 0 ;
093d3ff1 5561 PyObject * obj1 = 0 ;
d55e5bfc 5562 char *kwnames[] = {
093d3ff1 5563 (char *) "self",(char *) "w", NULL
d55e5bfc
RD
5564 };
5565
093d3ff1
RD
5566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5567 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5568 if (SWIG_arg_fail(1)) SWIG_fail;
5569 {
5570 arg2 = (int)(SWIG_As_int(obj1));
5571 if (SWIG_arg_fail(2)) SWIG_fail;
5572 }
d55e5bfc
RD
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5575 (arg1)->SetWidth(arg2);
d55e5bfc
RD
5576
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 Py_INCREF(Py_None); resultobj = Py_None;
5581 return resultobj;
5582 fail:
5583 return NULL;
5584}
5585
5586
093d3ff1 5587static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5588 PyObject *resultobj;
093d3ff1
RD
5589 wxIcon *arg1 = (wxIcon *) 0 ;
5590 int arg2 ;
d55e5bfc 5591 PyObject * obj0 = 0 ;
093d3ff1 5592 PyObject * obj1 = 0 ;
d55e5bfc 5593 char *kwnames[] = {
093d3ff1 5594 (char *) "self",(char *) "h", NULL
d55e5bfc
RD
5595 };
5596
093d3ff1
RD
5597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5598 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5599 if (SWIG_arg_fail(1)) SWIG_fail;
5600 {
5601 arg2 = (int)(SWIG_As_int(obj1));
5602 if (SWIG_arg_fail(2)) SWIG_fail;
5603 }
d55e5bfc
RD
5604 {
5605 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5606 (arg1)->SetHeight(arg2);
d55e5bfc
RD
5607
5608 wxPyEndAllowThreads(__tstate);
110da5b0 5609 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 5610 }
093d3ff1 5611 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
5612 return resultobj;
5613 fail:
5614 return NULL;
5615}
5616
5617
093d3ff1 5618static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5619 PyObject *resultobj;
093d3ff1
RD
5620 wxIcon *arg1 = (wxIcon *) 0 ;
5621 int arg2 ;
d55e5bfc 5622 PyObject * obj0 = 0 ;
093d3ff1 5623 PyObject * obj1 = 0 ;
d55e5bfc 5624 char *kwnames[] = {
093d3ff1 5625 (char *) "self",(char *) "d", NULL
d55e5bfc
RD
5626 };
5627
093d3ff1
RD
5628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5629 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5630 if (SWIG_arg_fail(1)) SWIG_fail;
5631 {
5632 arg2 = (int)(SWIG_As_int(obj1));
5633 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
5634 }
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5637 (arg1)->SetDepth(arg2);
d55e5bfc
RD
5638
5639 wxPyEndAllowThreads(__tstate);
110da5b0 5640 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 5641 }
093d3ff1 5642 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
5643 return resultobj;
5644 fail:
5645 return NULL;
5646}
5647
5648
093d3ff1 5649static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5650 PyObject *resultobj;
093d3ff1
RD
5651 wxIcon *arg1 = (wxIcon *) 0 ;
5652 wxSize *arg2 = 0 ;
5653 wxSize temp2 ;
d55e5bfc 5654 PyObject * obj0 = 0 ;
093d3ff1 5655 PyObject * obj1 = 0 ;
d55e5bfc 5656 char *kwnames[] = {
093d3ff1 5657 (char *) "self",(char *) "size", NULL
d55e5bfc
RD
5658 };
5659
093d3ff1
RD
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
5661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5662 if (SWIG_arg_fail(1)) SWIG_fail;
5663 {
5664 arg2 = &temp2;
5665 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5666 }
d55e5bfc
RD
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5669 (arg1)->SetSize((wxSize const &)*arg2);
d55e5bfc
RD
5670
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
093d3ff1 5674 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
5675 return resultobj;
5676 fail:
5677 return NULL;
5678}
5679
5680
093d3ff1 5681static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5682 PyObject *resultobj;
093d3ff1
RD
5683 wxIcon *arg1 = (wxIcon *) 0 ;
5684 wxBitmap *arg2 = 0 ;
d55e5bfc
RD
5685 PyObject * obj0 = 0 ;
5686 PyObject * obj1 = 0 ;
5687 char *kwnames[] = {
093d3ff1 5688 (char *) "self",(char *) "bmp", NULL
d55e5bfc
RD
5689 };
5690
093d3ff1
RD
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
5692 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5693 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 5694 {
093d3ff1
RD
5695 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5696 if (SWIG_arg_fail(2)) SWIG_fail;
5697 if (arg2 == NULL) {
5698 SWIG_null_ref("wxBitmap");
5699 }
5700 if (SWIG_arg_fail(2)) SWIG_fail;
5701 }
5702 {
5703 PyThreadState* __tstate = wxPyBeginAllowThreads();
5704 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
d55e5bfc
RD
5705
5706 wxPyEndAllowThreads(__tstate);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 }
5709 Py_INCREF(Py_None); resultobj = Py_None;
5710 return resultobj;
5711 fail:
5712 return NULL;
5713}
5714
5715
093d3ff1
RD
5716static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
5717 PyObject *obj;
5718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5719 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
5720 Py_INCREF(obj);
5721 return Py_BuildValue((char *)"");
5722}
5723static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5724 PyObject *resultobj;
093d3ff1
RD
5725 wxString *arg1 = (wxString *) &wxPyEmptyString ;
5726 int arg2 = (int) 0 ;
5727 wxIconLocation *result;
5728 bool temp1 = false ;
d55e5bfc 5729 PyObject * obj0 = 0 ;
093d3ff1 5730 PyObject * obj1 = 0 ;
d55e5bfc 5731 char *kwnames[] = {
093d3ff1 5732 (char *) "filename",(char *) "num", NULL
d55e5bfc
RD
5733 };
5734
093d3ff1
RD
5735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
5736 if (obj0) {
5737 {
5738 arg1 = wxString_in_helper(obj0);
5739 if (arg1 == NULL) SWIG_fail;
5740 temp1 = true;
5741 }
5742 }
5743 if (obj1) {
5744 {
5745 arg2 = (int)(SWIG_As_int(obj1));
5746 if (SWIG_arg_fail(2)) SWIG_fail;
5747 }
5748 }
d55e5bfc
RD
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5751 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
d55e5bfc
RD
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
093d3ff1 5756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
d55e5bfc 5757 {
093d3ff1
RD
5758 if (temp1)
5759 delete arg1;
d55e5bfc
RD
5760 }
5761 return resultobj;
5762 fail:
093d3ff1
RD
5763 {
5764 if (temp1)
5765 delete arg1;
5766 }
d55e5bfc
RD
5767 return NULL;
5768}
5769
5770
093d3ff1 5771static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5772 PyObject *resultobj;
093d3ff1 5773 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
d55e5bfc
RD
5774 PyObject * obj0 = 0 ;
5775 char *kwnames[] = {
5776 (char *) "self", NULL
5777 };
5778
093d3ff1
RD
5779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
5780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5781 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5784 delete arg1;
d55e5bfc
RD
5785
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
093d3ff1 5789 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
5790 return resultobj;
5791 fail:
5792 return NULL;
5793}
5794
5795
093d3ff1 5796static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5797 PyObject *resultobj;
093d3ff1
RD
5798 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5799 bool result;
d55e5bfc
RD
5800 PyObject * obj0 = 0 ;
5801 char *kwnames[] = {
5802 (char *) "self", NULL
5803 };
5804
093d3ff1
RD
5805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
5806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5807 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5808 {
5809 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5810 result = (bool)((wxIconLocation const *)arg1)->IsOk();
d55e5bfc
RD
5811
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
093d3ff1
RD
5815 {
5816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5817 }
d55e5bfc
RD
5818 return resultobj;
5819 fail:
5820 return NULL;
5821}
5822
5823
093d3ff1 5824static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5825 PyObject *resultobj;
093d3ff1
RD
5826 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5827 wxString *arg2 = 0 ;
5828 bool temp2 = false ;
d55e5bfc 5829 PyObject * obj0 = 0 ;
093d3ff1 5830 PyObject * obj1 = 0 ;
d55e5bfc 5831 char *kwnames[] = {
093d3ff1 5832 (char *) "self",(char *) "filename", NULL
d55e5bfc
RD
5833 };
5834
093d3ff1
RD
5835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
5836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5837 if (SWIG_arg_fail(1)) SWIG_fail;
5838 {
5839 arg2 = wxString_in_helper(obj1);
5840 if (arg2 == NULL) SWIG_fail;
5841 temp2 = true;
5842 }
d55e5bfc
RD
5843 {
5844 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5845 (arg1)->SetFileName((wxString const &)*arg2);
d55e5bfc
RD
5846
5847 wxPyEndAllowThreads(__tstate);
5848 if (PyErr_Occurred()) SWIG_fail;
5849 }
093d3ff1
RD
5850 Py_INCREF(Py_None); resultobj = Py_None;
5851 {
5852 if (temp2)
5853 delete arg2;
5854 }
d55e5bfc
RD
5855 return resultobj;
5856 fail:
093d3ff1
RD
5857 {
5858 if (temp2)
5859 delete arg2;
5860 }
d55e5bfc
RD
5861 return NULL;
5862}
5863
5864
093d3ff1 5865static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5866 PyObject *resultobj;
093d3ff1
RD
5867 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5868 wxString *result;
d55e5bfc 5869 PyObject * obj0 = 0 ;
d55e5bfc 5870 char *kwnames[] = {
093d3ff1 5871 (char *) "self", NULL
d55e5bfc
RD
5872 };
5873
093d3ff1
RD
5874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
5875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5876 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5877 {
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
5879 {
5880 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
5881 result = (wxString *) &_result_ref;
5882 }
d55e5bfc
RD
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
093d3ff1
RD
5887 {
5888#if wxUSE_UNICODE
5889 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5890#else
5891 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5892#endif
5893 }
d55e5bfc
RD
5894 return resultobj;
5895 fail:
5896 return NULL;
5897}
5898
5899
093d3ff1 5900static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5901 PyObject *resultobj;
093d3ff1 5902 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
d55e5bfc
RD
5903 int arg2 ;
5904 PyObject * obj0 = 0 ;
5905 PyObject * obj1 = 0 ;
5906 char *kwnames[] = {
093d3ff1 5907 (char *) "self",(char *) "num", NULL
d55e5bfc
RD
5908 };
5909
093d3ff1
RD
5910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
5911 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5912 if (SWIG_arg_fail(1)) SWIG_fail;
5913 {
5914 arg2 = (int)(SWIG_As_int(obj1));
5915 if (SWIG_arg_fail(2)) SWIG_fail;
5916 }
d55e5bfc
RD
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5919 wxIconLocation_SetIndex(arg1,arg2);
d55e5bfc
RD
5920
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 Py_INCREF(Py_None); resultobj = Py_None;
5925 return resultobj;
5926 fail:
5927 return NULL;
5928}
5929
5930
093d3ff1 5931static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5932 PyObject *resultobj;
093d3ff1
RD
5933 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5934 int result;
d55e5bfc 5935 PyObject * obj0 = 0 ;
d55e5bfc 5936 char *kwnames[] = {
093d3ff1 5937 (char *) "self", NULL
d55e5bfc
RD
5938 };
5939
093d3ff1
RD
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
5941 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5942 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
5943 {
5944 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5945 result = (int)wxIconLocation_GetIndex(arg1);
d55e5bfc
RD
5946
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
093d3ff1
RD
5950 {
5951 resultobj = SWIG_From_int((int)(result));
5952 }
d55e5bfc
RD
5953 return resultobj;
5954 fail:
5955 return NULL;
5956}
5957
5958
093d3ff1
RD
5959static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
5960 PyObject *obj;
5961 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5962 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
5963 Py_INCREF(obj);
5964 return Py_BuildValue((char *)"");
5965}
5966static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5967 PyObject *resultobj;
093d3ff1 5968 wxIconBundle *result;
d55e5bfc 5969 char *kwnames[] = {
093d3ff1 5970 NULL
d55e5bfc
RD
5971 };
5972
093d3ff1 5973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
d55e5bfc
RD
5974 {
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5976 result = (wxIconBundle *)new wxIconBundle();
d55e5bfc
RD
5977
5978 wxPyEndAllowThreads(__tstate);
5979 if (PyErr_Occurred()) SWIG_fail;
5980 }
093d3ff1 5981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d55e5bfc
RD
5982 return resultobj;
5983 fail:
5984 return NULL;
5985}
5986
5987
093d3ff1 5988static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 5989 PyObject *resultobj;
093d3ff1
RD
5990 wxString *arg1 = 0 ;
5991 long arg2 ;
5992 wxIconBundle *result;
5993 bool temp1 = false ;
d55e5bfc
RD
5994 PyObject * obj0 = 0 ;
5995 PyObject * obj1 = 0 ;
d55e5bfc 5996 char *kwnames[] = {
093d3ff1 5997 (char *) "file",(char *) "type", NULL
d55e5bfc
RD
5998 };
5999
093d3ff1
RD
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
6001 {
6002 arg1 = wxString_in_helper(obj0);
6003 if (arg1 == NULL) SWIG_fail;
6004 temp1 = true;
d55e5bfc 6005 }
093d3ff1
RD
6006 {
6007 arg2 = (long)(SWIG_As_long(obj1));
6008 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
6009 }
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6012 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
d55e5bfc
RD
6013
6014 wxPyEndAllowThreads(__tstate);
110da5b0 6015 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 6016 }
093d3ff1
RD
6017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6018 {
6019 if (temp1)
6020 delete arg1;
6021 }
d55e5bfc
RD
6022 return resultobj;
6023 fail:
093d3ff1
RD
6024 {
6025 if (temp1)
6026 delete arg1;
6027 }
d55e5bfc
RD
6028 return NULL;
6029}
6030
6031
093d3ff1 6032static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6033 PyObject *resultobj;
093d3ff1
RD
6034 wxIcon *arg1 = 0 ;
6035 wxIconBundle *result;
a2569024
RD
6036 PyObject * obj0 = 0 ;
6037 char *kwnames[] = {
093d3ff1 6038 (char *) "icon", NULL
a2569024
RD
6039 };
6040
093d3ff1
RD
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
6042 {
6043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6044 if (SWIG_arg_fail(1)) SWIG_fail;
6045 if (arg1 == NULL) {
6046 SWIG_null_ref("wxIcon");
6047 }
6048 if (SWIG_arg_fail(1)) SWIG_fail;
a2569024
RD
6049 }
6050 {
a2569024 6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6052 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
a2569024
RD
6053
6054 wxPyEndAllowThreads(__tstate);
110da5b0 6055 if (PyErr_Occurred()) SWIG_fail;
a2569024 6056 }
093d3ff1 6057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
a2569024
RD
6058 return resultobj;
6059 fail:
6060 return NULL;
6061}
6062
6063
093d3ff1 6064static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
a2569024 6065 PyObject *resultobj;
093d3ff1 6066 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
d55e5bfc 6067 PyObject * obj0 = 0 ;
d55e5bfc 6068 char *kwnames[] = {
093d3ff1 6069 (char *) "self", NULL
d55e5bfc
RD
6070 };
6071
093d3ff1
RD
6072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
6073 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6074 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6075 {
6076 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6077 delete arg1;
d55e5bfc
RD
6078
6079 wxPyEndAllowThreads(__tstate);
110da5b0 6080 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 6081 }
093d3ff1 6082 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6083 return resultobj;
6084 fail:
6085 return NULL;
6086}
6087
6088
093d3ff1 6089static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6090 PyObject *resultobj;
093d3ff1
RD
6091 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6092 wxIcon *arg2 = 0 ;
d55e5bfc
RD
6093 PyObject * obj0 = 0 ;
6094 PyObject * obj1 = 0 ;
6095 char *kwnames[] = {
093d3ff1 6096 (char *) "self",(char *) "icon", NULL
d55e5bfc
RD
6097 };
6098
093d3ff1
RD
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
6100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6101 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 6102 {
093d3ff1
RD
6103 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6104 if (SWIG_arg_fail(2)) SWIG_fail;
6105 if (arg2 == NULL) {
6106 SWIG_null_ref("wxIcon");
6107 }
6108 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
6109 }
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6112 (arg1)->AddIcon((wxIcon const &)*arg2);
d55e5bfc
RD
6113
6114 wxPyEndAllowThreads(__tstate);
110da5b0 6115 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 6116 }
093d3ff1 6117 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6118 return resultobj;
6119 fail:
d55e5bfc
RD
6120 return NULL;
6121}
6122
6123
093d3ff1 6124static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6125 PyObject *resultobj;
093d3ff1
RD
6126 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6127 wxString *arg2 = 0 ;
6128 long arg3 ;
6129 bool temp2 = false ;
d55e5bfc 6130 PyObject * obj0 = 0 ;
093d3ff1
RD
6131 PyObject * obj1 = 0 ;
6132 PyObject * obj2 = 0 ;
d55e5bfc 6133 char *kwnames[] = {
093d3ff1 6134 (char *) "self",(char *) "file",(char *) "type", NULL
d55e5bfc
RD
6135 };
6136
093d3ff1
RD
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6138 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6139 if (SWIG_arg_fail(1)) SWIG_fail;
6140 {
6141 arg2 = wxString_in_helper(obj1);
6142 if (arg2 == NULL) SWIG_fail;
6143 temp2 = true;
6144 }
6145 {
6146 arg3 = (long)(SWIG_As_long(obj2));
6147 if (SWIG_arg_fail(3)) SWIG_fail;
6148 }
d55e5bfc
RD
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6151 (arg1)->AddIcon((wxString const &)*arg2,arg3);
d55e5bfc
RD
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
6157 {
6158 if (temp2)
6159 delete arg2;
6160 }
d55e5bfc
RD
6161 return resultobj;
6162 fail:
093d3ff1
RD
6163 {
6164 if (temp2)
6165 delete arg2;
6166 }
d55e5bfc
RD
6167 return NULL;
6168}
6169
6170
093d3ff1 6171static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6172 PyObject *resultobj;
093d3ff1
RD
6173 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6174 wxSize *arg2 = 0 ;
6175 wxIcon *result;
6176 wxSize temp2 ;
d55e5bfc 6177 PyObject * obj0 = 0 ;
093d3ff1 6178 PyObject * obj1 = 0 ;
d55e5bfc 6179 char *kwnames[] = {
093d3ff1 6180 (char *) "self",(char *) "size", NULL
d55e5bfc
RD
6181 };
6182
093d3ff1
RD
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
6184 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6185 if (SWIG_arg_fail(1)) SWIG_fail;
6186 {
6187 arg2 = &temp2;
6188 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6189 }
d55e5bfc
RD
6190 {
6191 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
6192 {
6193 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
6194 result = (wxIcon *) &_result_ref;
6195 }
d55e5bfc
RD
6196
6197 wxPyEndAllowThreads(__tstate);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
093d3ff1
RD
6200 {
6201 wxIcon* resultptr = new wxIcon(*result);
6202 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
6203 }
d55e5bfc
RD
6204 return resultobj;
6205 fail:
6206 return NULL;
6207}
6208
6209
093d3ff1
RD
6210static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
6211 PyObject *obj;
6212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6213 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
6214 Py_INCREF(obj);
6215 return Py_BuildValue((char *)"");
6216}
6217static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6218 PyObject *resultobj;
fef4c27a 6219 wxString *arg1 = 0 ;
093d3ff1
RD
6220 long arg2 ;
6221 int arg3 = (int) 0 ;
6222 int arg4 = (int) 0 ;
6223 wxCursor *result;
6224 bool temp1 = false ;
d55e5bfc
RD
6225 PyObject * obj0 = 0 ;
6226 PyObject * obj1 = 0 ;
6227 PyObject * obj2 = 0 ;
093d3ff1 6228 PyObject * obj3 = 0 ;
d55e5bfc 6229 char *kwnames[] = {
093d3ff1 6230 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d55e5bfc
RD
6231 };
6232
093d3ff1
RD
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6234 {
6235 arg1 = wxString_in_helper(obj0);
6236 if (arg1 == NULL) SWIG_fail;
6237 temp1 = true;
6238 }
6239 {
6240 arg2 = (long)(SWIG_As_long(obj1));
6241 if (SWIG_arg_fail(2)) SWIG_fail;
6242 }
6243 if (obj2) {
6244 {
6245 arg3 = (int)(SWIG_As_int(obj2));
6246 if (SWIG_arg_fail(3)) SWIG_fail;
6247 }
6248 }
6249 if (obj3) {
6250 {
6251 arg4 = (int)(SWIG_As_int(obj3));
6252 if (SWIG_arg_fail(4)) SWIG_fail;
6253 }
6254 }
d55e5bfc 6255 {
093d3ff1 6256 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
fef4c27a 6258 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
d55e5bfc
RD
6259
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
093d3ff1 6263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d55e5bfc 6264 {
093d3ff1
RD
6265 if (temp1)
6266 delete arg1;
d55e5bfc
RD
6267 }
6268 return resultobj;
6269 fail:
093d3ff1
RD
6270 {
6271 if (temp1)
6272 delete arg1;
6273 }
d55e5bfc
RD
6274 return NULL;
6275}
6276
6277
093d3ff1 6278static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6279 PyObject *resultobj;
093d3ff1 6280 wxCursor *arg1 = (wxCursor *) 0 ;
d55e5bfc 6281 PyObject * obj0 = 0 ;
d55e5bfc 6282 char *kwnames[] = {
093d3ff1 6283 (char *) "self", NULL
d55e5bfc
RD
6284 };
6285
093d3ff1
RD
6286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
6287 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6288 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6291 delete arg1;
d55e5bfc
RD
6292
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
093d3ff1 6296 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6297 return resultobj;
6298 fail:
6299 return NULL;
6300}
6301
6302
093d3ff1 6303static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6304 PyObject *resultobj;
093d3ff1
RD
6305 int arg1 ;
6306 wxCursor *result;
d55e5bfc 6307 PyObject * obj0 = 0 ;
d55e5bfc 6308 char *kwnames[] = {
093d3ff1 6309 (char *) "id", NULL
d55e5bfc
RD
6310 };
6311
093d3ff1 6312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
d55e5bfc 6313 {
093d3ff1
RD
6314 arg1 = (int)(SWIG_As_int(obj0));
6315 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6316 }
6317 {
093d3ff1 6318 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6320 result = (wxCursor *)new wxCursor(arg1);
d55e5bfc
RD
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
093d3ff1 6325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d55e5bfc
RD
6326 return resultobj;
6327 fail:
6328 return NULL;
6329}
6330
6331
093d3ff1 6332static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6333 PyObject *resultobj;
093d3ff1
RD
6334 wxImage *arg1 = 0 ;
6335 wxCursor *result;
d55e5bfc 6336 PyObject * obj0 = 0 ;
d55e5bfc 6337 char *kwnames[] = {
093d3ff1 6338 (char *) "image", NULL
d55e5bfc
RD
6339 };
6340
093d3ff1 6341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
d55e5bfc 6342 {
093d3ff1
RD
6343 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
6344 if (SWIG_arg_fail(1)) SWIG_fail;
6345 if (arg1 == NULL) {
6346 SWIG_null_ref("wxImage");
6347 }
6348 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6349 }
6350 {
093d3ff1 6351 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6353 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
d55e5bfc
RD
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
093d3ff1 6358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d55e5bfc
RD
6359 return resultobj;
6360 fail:
6361 return NULL;
6362}
6363
6364
093d3ff1 6365static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6366 PyObject *resultobj;
093d3ff1
RD
6367 wxCursor *arg1 = (wxCursor *) 0 ;
6368 long result;
d55e5bfc 6369 PyObject * obj0 = 0 ;
d55e5bfc 6370 char *kwnames[] = {
093d3ff1 6371 (char *) "self", NULL
d55e5bfc
RD
6372 };
6373
093d3ff1
RD
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
6375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6376 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6377 {
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6379 result = (long)(arg1)->GetHandle();
d55e5bfc
RD
6380
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
093d3ff1
RD
6384 {
6385 resultobj = SWIG_From_long((long)(result));
6386 }
d55e5bfc
RD
6387 return resultobj;
6388 fail:
6389 return NULL;
6390}
6391
6392
093d3ff1 6393static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6394 PyObject *resultobj;
093d3ff1
RD
6395 wxCursor *arg1 = (wxCursor *) 0 ;
6396 long arg2 ;
d55e5bfc 6397 PyObject * obj0 = 0 ;
093d3ff1 6398 PyObject * obj1 = 0 ;
d55e5bfc 6399 char *kwnames[] = {
093d3ff1 6400 (char *) "self",(char *) "handle", NULL
d55e5bfc
RD
6401 };
6402
093d3ff1
RD
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
6404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6405 if (SWIG_arg_fail(1)) SWIG_fail;
6406 {
6407 arg2 = (long)(SWIG_As_long(obj1));
6408 if (SWIG_arg_fail(2)) SWIG_fail;
6409 }
d55e5bfc
RD
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6412 wxCursor_SetHandle(arg1,arg2);
d55e5bfc
RD
6413
6414 wxPyEndAllowThreads(__tstate);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
093d3ff1 6417 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6418 return resultobj;
6419 fail:
6420 return NULL;
6421}
6422
6423
093d3ff1 6424static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6425 PyObject *resultobj;
093d3ff1 6426 wxCursor *arg1 = (wxCursor *) 0 ;
d55e5bfc
RD
6427 bool result;
6428 PyObject * obj0 = 0 ;
d55e5bfc 6429 char *kwnames[] = {
093d3ff1 6430 (char *) "self", NULL
d55e5bfc
RD
6431 };
6432
093d3ff1
RD
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
6434 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6435 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6436 {
6437 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6438 result = (bool)(arg1)->Ok();
d55e5bfc
RD
6439
6440 wxPyEndAllowThreads(__tstate);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 {
6444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6445 }
6446 return resultobj;
6447 fail:
6448 return NULL;
6449}
6450
6451
093d3ff1 6452static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6453 PyObject *resultobj;
093d3ff1
RD
6454 wxCursor *arg1 = (wxCursor *) 0 ;
6455 int result;
d55e5bfc 6456 PyObject * obj0 = 0 ;
d55e5bfc 6457 char *kwnames[] = {
093d3ff1 6458 (char *) "self", NULL
d55e5bfc
RD
6459 };
6460
093d3ff1
RD
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
6462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6463 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6466 result = (int)(arg1)->GetWidth();
d55e5bfc
RD
6467
6468 wxPyEndAllowThreads(__tstate);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 {
093d3ff1 6472 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
6473 }
6474 return resultobj;
6475 fail:
6476 return NULL;
6477}
6478
6479
093d3ff1 6480static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6481 PyObject *resultobj;
093d3ff1
RD
6482 wxCursor *arg1 = (wxCursor *) 0 ;
6483 int result;
d55e5bfc 6484 PyObject * obj0 = 0 ;
d55e5bfc 6485 char *kwnames[] = {
093d3ff1 6486 (char *) "self", NULL
d55e5bfc
RD
6487 };
6488
093d3ff1
RD
6489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
6490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6491 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6494 result = (int)(arg1)->GetHeight();
d55e5bfc
RD
6495
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 {
093d3ff1 6500 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
6501 }
6502 return resultobj;
6503 fail:
6504 return NULL;
6505}
6506
6507
093d3ff1 6508static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6509 PyObject *resultobj;
093d3ff1
RD
6510 wxCursor *arg1 = (wxCursor *) 0 ;
6511 int result;
d55e5bfc
RD
6512 PyObject * obj0 = 0 ;
6513 char *kwnames[] = {
6514 (char *) "self", NULL
6515 };
6516
093d3ff1
RD
6517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
6518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6519 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6520 {
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6522 result = (int)(arg1)->GetDepth();
d55e5bfc
RD
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 {
093d3ff1 6528 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
6529 }
6530 return resultobj;
6531 fail:
6532 return NULL;
6533}
6534
6535
093d3ff1 6536static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6537 PyObject *resultobj;
093d3ff1 6538 wxCursor *arg1 = (wxCursor *) 0 ;
d55e5bfc 6539 int arg2 ;
d55e5bfc
RD
6540 PyObject * obj0 = 0 ;
6541 PyObject * obj1 = 0 ;
d55e5bfc 6542 char *kwnames[] = {
093d3ff1 6543 (char *) "self",(char *) "w", NULL
d55e5bfc
RD
6544 };
6545
093d3ff1
RD
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
6547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6548 if (SWIG_arg_fail(1)) SWIG_fail;
6549 {
6550 arg2 = (int)(SWIG_As_int(obj1));
6551 if (SWIG_arg_fail(2)) SWIG_fail;
6552 }
d55e5bfc
RD
6553 {
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6555 (arg1)->SetWidth(arg2);
d55e5bfc
RD
6556
6557 wxPyEndAllowThreads(__tstate);
6558 if (PyErr_Occurred()) SWIG_fail;
6559 }
093d3ff1 6560 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6561 return resultobj;
6562 fail:
6563 return NULL;
6564}
6565
6566
093d3ff1 6567static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6568 PyObject *resultobj;
093d3ff1
RD
6569 wxCursor *arg1 = (wxCursor *) 0 ;
6570 int arg2 ;
d55e5bfc
RD
6571 PyObject * obj0 = 0 ;
6572 PyObject * obj1 = 0 ;
6573 char *kwnames[] = {
093d3ff1 6574 (char *) "self",(char *) "h", NULL
d55e5bfc
RD
6575 };
6576
093d3ff1
RD
6577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
6578 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6579 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 6580 {
093d3ff1
RD
6581 arg2 = (int)(SWIG_As_int(obj1));
6582 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
6583 }
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6586 (arg1)->SetHeight(arg2);
d55e5bfc
RD
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
093d3ff1 6591 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6592 return resultobj;
6593 fail:
6594 return NULL;
6595}
6596
6597
093d3ff1 6598static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6599 PyObject *resultobj;
093d3ff1
RD
6600 wxCursor *arg1 = (wxCursor *) 0 ;
6601 int arg2 ;
d55e5bfc
RD
6602 PyObject * obj0 = 0 ;
6603 PyObject * obj1 = 0 ;
6604 char *kwnames[] = {
093d3ff1 6605 (char *) "self",(char *) "d", NULL
d55e5bfc
RD
6606 };
6607
093d3ff1
RD
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
6609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6610 if (SWIG_arg_fail(1)) SWIG_fail;
6611 {
6612 arg2 = (int)(SWIG_As_int(obj1));
6613 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
6614 }
6615 {
6616 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6617 (arg1)->SetDepth(arg2);
d55e5bfc
RD
6618
6619 wxPyEndAllowThreads(__tstate);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
093d3ff1 6622 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6623 return resultobj;
6624 fail:
6625 return NULL;
6626}
6627
6628
093d3ff1 6629static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6630 PyObject *resultobj;
093d3ff1
RD
6631 wxCursor *arg1 = (wxCursor *) 0 ;
6632 wxSize *arg2 = 0 ;
6633 wxSize temp2 ;
d55e5bfc
RD
6634 PyObject * obj0 = 0 ;
6635 PyObject * obj1 = 0 ;
d55e5bfc 6636 char *kwnames[] = {
093d3ff1 6637 (char *) "self",(char *) "size", NULL
d55e5bfc
RD
6638 };
6639
093d3ff1
RD
6640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
6641 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6642 if (SWIG_arg_fail(1)) SWIG_fail;
6643 {
6644 arg2 = &temp2;
6645 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6646 }
d55e5bfc
RD
6647 {
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6649 (arg1)->SetSize((wxSize const &)*arg2);
d55e5bfc
RD
6650
6651 wxPyEndAllowThreads(__tstate);
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
093d3ff1 6654 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6655 return resultobj;
6656 fail:
6657 return NULL;
6658}
6659
6660
093d3ff1
RD
6661static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
6662 PyObject *obj;
6663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6664 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
6665 Py_INCREF(obj);
6666 return Py_BuildValue((char *)"");
6667}
6668static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6669 PyObject *resultobj;
093d3ff1
RD
6670 int arg1 = (int) 0 ;
6671 int arg2 = (int) 0 ;
6672 int arg3 = (int) 0 ;
6673 int arg4 = (int) 0 ;
6674 wxRegion *result;
d55e5bfc
RD
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
093d3ff1
RD
6677 PyObject * obj2 = 0 ;
6678 PyObject * obj3 = 0 ;
d55e5bfc 6679 char *kwnames[] = {
093d3ff1 6680 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
6681 };
6682
093d3ff1
RD
6683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6684 if (obj0) {
6685 {
6686 arg1 = (int)(SWIG_As_int(obj0));
6687 if (SWIG_arg_fail(1)) SWIG_fail;
6688 }
6689 }
6690 if (obj1) {
6691 {
6692 arg2 = (int)(SWIG_As_int(obj1));
6693 if (SWIG_arg_fail(2)) SWIG_fail;
6694 }
6695 }
6696 if (obj2) {
6697 {
6698 arg3 = (int)(SWIG_As_int(obj2));
6699 if (SWIG_arg_fail(3)) SWIG_fail;
6700 }
6701 }
6702 if (obj3) {
6703 {
6704 arg4 = (int)(SWIG_As_int(obj3));
6705 if (SWIG_arg_fail(4)) SWIG_fail;
6706 }
d55e5bfc
RD
6707 }
6708 {
093d3ff1 6709 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6710 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6711 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
d55e5bfc
RD
6712
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
093d3ff1 6716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d55e5bfc
RD
6717 return resultobj;
6718 fail:
6719 return NULL;
6720}
6721
6722
093d3ff1 6723static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6724 PyObject *resultobj;
093d3ff1
RD
6725 wxBitmap *arg1 = 0 ;
6726 wxRegion *result;
d55e5bfc 6727 PyObject * obj0 = 0 ;
d55e5bfc 6728 char *kwnames[] = {
093d3ff1 6729 (char *) "bmp", NULL
d55e5bfc
RD
6730 };
6731
093d3ff1
RD
6732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
6733 {
6734 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6735 if (SWIG_arg_fail(1)) SWIG_fail;
6736 if (arg1 == NULL) {
6737 SWIG_null_ref("wxBitmap");
6738 }
6739 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6740 }
6741 {
093d3ff1 6742 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6743 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6744 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
d55e5bfc
RD
6745
6746 wxPyEndAllowThreads(__tstate);
6747 if (PyErr_Occurred()) SWIG_fail;
6748 }
093d3ff1 6749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d55e5bfc
RD
6750 return resultobj;
6751 fail:
6752 return NULL;
6753}
6754
6755
093d3ff1 6756static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6757 PyObject *resultobj;
093d3ff1
RD
6758 wxBitmap *arg1 = 0 ;
6759 wxColour *arg2 = 0 ;
6760 int arg3 = (int) 0 ;
6761 wxRegion *result;
6762 wxColour temp2 ;
d55e5bfc
RD
6763 PyObject * obj0 = 0 ;
6764 PyObject * obj1 = 0 ;
6765 PyObject * obj2 = 0 ;
d55e5bfc 6766 char *kwnames[] = {
093d3ff1 6767 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
d55e5bfc
RD
6768 };
6769
093d3ff1
RD
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6771 {
6772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6773 if (SWIG_arg_fail(1)) SWIG_fail;
6774 if (arg1 == NULL) {
6775 SWIG_null_ref("wxBitmap");
6776 }
6777 if (SWIG_arg_fail(1)) SWIG_fail;
6778 }
6779 {
6780 arg2 = &temp2;
6781 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6782 }
6783 if (obj2) {
6784 {
6785 arg3 = (int)(SWIG_As_int(obj2));
6786 if (SWIG_arg_fail(3)) SWIG_fail;
6787 }
6788 }
d55e5bfc 6789 {
093d3ff1 6790 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6791 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6792 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
d55e5bfc
RD
6793
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
093d3ff1 6797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d55e5bfc
RD
6798 return resultobj;
6799 fail:
6800 return NULL;
6801}
6802
6803
093d3ff1 6804static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6805 PyObject *resultobj;
093d3ff1
RD
6806 int arg1 ;
6807 wxPoint *arg2 = (wxPoint *) 0 ;
6808 int arg3 = (int) wxWINDING_RULE ;
6809 wxRegion *result;
d55e5bfc
RD
6810 PyObject * obj0 = 0 ;
6811 PyObject * obj1 = 0 ;
6812 char *kwnames[] = {
093d3ff1 6813 (char *) "points",(char *) "fillStyle", NULL
d55e5bfc
RD
6814 };
6815
093d3ff1 6816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 6817 {
093d3ff1
RD
6818 arg2 = wxPoint_LIST_helper(obj0, &arg1);
6819 if (arg2 == NULL) SWIG_fail;
6820 }
6821 if (obj1) {
6822 {
6823 arg3 = (int)(SWIG_As_int(obj1));
6824 if (SWIG_arg_fail(3)) SWIG_fail;
6825 }
d55e5bfc
RD
6826 }
6827 {
093d3ff1 6828 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 6829 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6830 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
d55e5bfc
RD
6831
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
093d3ff1 6835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d55e5bfc 6836 {
093d3ff1 6837 if (arg2) delete [] arg2;
d55e5bfc
RD
6838 }
6839 return resultobj;
6840 fail:
093d3ff1
RD
6841 {
6842 if (arg2) delete [] arg2;
6843 }
d55e5bfc
RD
6844 return NULL;
6845}
6846
6847
093d3ff1 6848static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6849 PyObject *resultobj;
6850 wxRegion *arg1 = (wxRegion *) 0 ;
d55e5bfc 6851 PyObject * obj0 = 0 ;
d55e5bfc 6852 char *kwnames[] = {
093d3ff1 6853 (char *) "self", NULL
d55e5bfc
RD
6854 };
6855
093d3ff1
RD
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
6857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6858 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6859 {
6860 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6861 delete arg1;
d55e5bfc
RD
6862
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
093d3ff1 6866 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6867 return resultobj;
6868 fail:
6869 return NULL;
6870}
6871
6872
093d3ff1 6873static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6874 PyObject *resultobj;
6875 wxRegion *arg1 = (wxRegion *) 0 ;
d55e5bfc
RD
6876 PyObject * obj0 = 0 ;
6877 char *kwnames[] = {
6878 (char *) "self", NULL
6879 };
6880
093d3ff1
RD
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
6882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6883 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
6884 {
6885 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6886 (arg1)->Clear();
d55e5bfc
RD
6887
6888 wxPyEndAllowThreads(__tstate);
6889 if (PyErr_Occurred()) SWIG_fail;
6890 }
093d3ff1 6891 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
6892 return resultobj;
6893 fail:
6894 return NULL;
6895}
6896
6897
093d3ff1 6898static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6899 PyObject *resultobj;
6900 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6901 int arg2 ;
6902 int arg3 ;
a2569024
RD
6903 bool result;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
093d3ff1 6906 PyObject * obj2 = 0 ;
a2569024 6907 char *kwnames[] = {
093d3ff1 6908 (char *) "self",(char *) "x",(char *) "y", NULL
a2569024
RD
6909 };
6910
093d3ff1
RD
6911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
6912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6913 if (SWIG_arg_fail(1)) SWIG_fail;
6914 {
6915 arg2 = (int)(SWIG_As_int(obj1));
6916 if (SWIG_arg_fail(2)) SWIG_fail;
6917 }
6918 {
6919 arg3 = (int)(SWIG_As_int(obj2));
6920 if (SWIG_arg_fail(3)) SWIG_fail;
a2569024
RD
6921 }
6922 {
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6924 result = (bool)(arg1)->Offset(arg2,arg3);
a2569024
RD
6925
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 {
6930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6931 }
6932 return resultobj;
6933 fail:
6934 return NULL;
6935}
6936
6937
093d3ff1 6938static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
a2569024
RD
6939 PyObject *resultobj;
6940 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6941 int arg2 ;
6942 int arg3 ;
6943 wxRegionContain result;
d55e5bfc
RD
6944 PyObject * obj0 = 0 ;
6945 PyObject * obj1 = 0 ;
6946 PyObject * obj2 = 0 ;
d55e5bfc 6947 char *kwnames[] = {
093d3ff1 6948 (char *) "self",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
6949 };
6950
093d3ff1
RD
6951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
6952 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6953 if (SWIG_arg_fail(1)) SWIG_fail;
a2569024 6954 {
093d3ff1
RD
6955 arg2 = (int)(SWIG_As_int(obj1));
6956 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 6957 }
093d3ff1
RD
6958 {
6959 arg3 = (int)(SWIG_As_int(obj2));
6960 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
6961 }
6962 {
6963 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6964 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
d55e5bfc
RD
6965
6966 wxPyEndAllowThreads(__tstate);
6967 if (PyErr_Occurred()) SWIG_fail;
6968 }
093d3ff1 6969 resultobj = SWIG_From_int((result));
d55e5bfc
RD
6970 return resultobj;
6971 fail:
6972 return NULL;
6973}
6974
6975
093d3ff1 6976static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 6977 PyObject *resultobj;
093d3ff1
RD
6978 wxRegion *arg1 = (wxRegion *) 0 ;
6979 wxPoint *arg2 = 0 ;
6980 wxRegionContain result;
6981 wxPoint temp2 ;
d55e5bfc 6982 PyObject * obj0 = 0 ;
093d3ff1 6983 PyObject * obj1 = 0 ;
d55e5bfc 6984 char *kwnames[] = {
093d3ff1 6985 (char *) "self",(char *) "pt", NULL
d55e5bfc
RD
6986 };
6987
093d3ff1
RD
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
6989 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6990 if (SWIG_arg_fail(1)) SWIG_fail;
6991 {
6992 arg2 = &temp2;
6993 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
6994 }
6995 {
6996 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6997 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
d55e5bfc
RD
6998
6999 wxPyEndAllowThreads(__tstate);
110da5b0 7000 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 7001 }
093d3ff1 7002 resultobj = SWIG_From_int((result));
d55e5bfc
RD
7003 return resultobj;
7004 fail:
7005 return NULL;
7006}
7007
7008
093d3ff1 7009static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7010 PyObject *resultobj;
093d3ff1
RD
7011 wxRegion *arg1 = (wxRegion *) 0 ;
7012 wxRect *arg2 = 0 ;
7013 wxRegionContain result;
7014 wxRect temp2 ;
d55e5bfc 7015 PyObject * obj0 = 0 ;
093d3ff1 7016 PyObject * obj1 = 0 ;
d55e5bfc 7017 char *kwnames[] = {
093d3ff1 7018 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
7019 };
7020
093d3ff1
RD
7021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
7022 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7023 if (SWIG_arg_fail(1)) SWIG_fail;
7024 {
7025 arg2 = &temp2;
7026 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7027 }
d55e5bfc
RD
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7030 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
d55e5bfc
RD
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
093d3ff1 7035 resultobj = SWIG_From_int((result));
d55e5bfc
RD
7036 return resultobj;
7037 fail:
7038 return NULL;
7039}
7040
7041
093d3ff1 7042static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7043 PyObject *resultobj;
093d3ff1
RD
7044 wxRegion *arg1 = (wxRegion *) 0 ;
7045 int arg2 ;
7046 int arg3 ;
7047 int arg4 ;
7048 int arg5 ;
7049 wxRegionContain result;
d55e5bfc 7050 PyObject * obj0 = 0 ;
093d3ff1
RD
7051 PyObject * obj1 = 0 ;
7052 PyObject * obj2 = 0 ;
7053 PyObject * obj3 = 0 ;
7054 PyObject * obj4 = 0 ;
d55e5bfc 7055 char *kwnames[] = {
093d3ff1 7056 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
d55e5bfc
RD
7057 };
7058
093d3ff1
RD
7059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7061 if (SWIG_arg_fail(1)) SWIG_fail;
7062 {
7063 arg2 = (int)(SWIG_As_int(obj1));
7064 if (SWIG_arg_fail(2)) SWIG_fail;
7065 }
7066 {
7067 arg3 = (int)(SWIG_As_int(obj2));
7068 if (SWIG_arg_fail(3)) SWIG_fail;
7069 }
7070 {
7071 arg4 = (int)(SWIG_As_int(obj3));
7072 if (SWIG_arg_fail(4)) SWIG_fail;
7073 }
7074 {
7075 arg5 = (int)(SWIG_As_int(obj4));
7076 if (SWIG_arg_fail(5)) SWIG_fail;
7077 }
d55e5bfc
RD
7078 {
7079 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7080 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
d55e5bfc
RD
7081
7082 wxPyEndAllowThreads(__tstate);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 }
093d3ff1 7085 resultobj = SWIG_From_int((result));
d55e5bfc
RD
7086 return resultobj;
7087 fail:
7088 return NULL;
7089}
7090
7091
093d3ff1 7092static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7093 PyObject *resultobj;
093d3ff1
RD
7094 wxRegion *arg1 = (wxRegion *) 0 ;
7095 wxRect result;
d55e5bfc
RD
7096 PyObject * obj0 = 0 ;
7097 char *kwnames[] = {
7098 (char *) "self", NULL
7099 };
7100
093d3ff1
RD
7101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
7102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7103 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7106 result = (arg1)->GetBox();
d55e5bfc
RD
7107
7108 wxPyEndAllowThreads(__tstate);
7109 if (PyErr_Occurred()) SWIG_fail;
7110 }
093d3ff1
RD
7111 {
7112 wxRect * resultptr;
7113 resultptr = new wxRect((wxRect &)(result));
7114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
7115 }
d55e5bfc
RD
7116 return resultobj;
7117 fail:
7118 return NULL;
7119}
7120
7121
093d3ff1 7122static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7123 PyObject *resultobj;
093d3ff1
RD
7124 wxRegion *arg1 = (wxRegion *) 0 ;
7125 int arg2 ;
7126 int arg3 ;
7127 int arg4 ;
7128 int arg5 ;
7129 bool result;
d55e5bfc 7130 PyObject * obj0 = 0 ;
093d3ff1
RD
7131 PyObject * obj1 = 0 ;
7132 PyObject * obj2 = 0 ;
7133 PyObject * obj3 = 0 ;
7134 PyObject * obj4 = 0 ;
d55e5bfc 7135 char *kwnames[] = {
093d3ff1 7136 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
7137 };
7138
093d3ff1
RD
7139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7140 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7141 if (SWIG_arg_fail(1)) SWIG_fail;
7142 {
7143 arg2 = (int)(SWIG_As_int(obj1));
7144 if (SWIG_arg_fail(2)) SWIG_fail;
7145 }
7146 {
7147 arg3 = (int)(SWIG_As_int(obj2));
7148 if (SWIG_arg_fail(3)) SWIG_fail;
7149 }
7150 {
7151 arg4 = (int)(SWIG_As_int(obj3));
7152 if (SWIG_arg_fail(4)) SWIG_fail;
7153 }
7154 {
7155 arg5 = (int)(SWIG_As_int(obj4));
7156 if (SWIG_arg_fail(5)) SWIG_fail;
7157 }
d55e5bfc
RD
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7160 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
d55e5bfc
RD
7161
7162 wxPyEndAllowThreads(__tstate);
7163 if (PyErr_Occurred()) SWIG_fail;
7164 }
093d3ff1
RD
7165 {
7166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7167 }
d55e5bfc
RD
7168 return resultobj;
7169 fail:
7170 return NULL;
7171}
7172
7173
093d3ff1 7174static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7175 PyObject *resultobj;
093d3ff1
RD
7176 wxRegion *arg1 = (wxRegion *) 0 ;
7177 wxRect *arg2 = 0 ;
7178 bool result;
7179 wxRect temp2 ;
d55e5bfc 7180 PyObject * obj0 = 0 ;
093d3ff1 7181 PyObject * obj1 = 0 ;
d55e5bfc 7182 char *kwnames[] = {
093d3ff1 7183 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
7184 };
7185
093d3ff1
RD
7186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
7187 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7188 if (SWIG_arg_fail(1)) SWIG_fail;
7189 {
7190 arg2 = &temp2;
7191 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7192 }
d55e5bfc
RD
7193 {
7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7195 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
d55e5bfc
RD
7196
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
093d3ff1
RD
7200 {
7201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7202 }
d55e5bfc
RD
7203 return resultobj;
7204 fail:
7205 return NULL;
7206}
7207
7208
093d3ff1 7209static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7210 PyObject *resultobj;
093d3ff1
RD
7211 wxRegion *arg1 = (wxRegion *) 0 ;
7212 wxRegion *arg2 = 0 ;
7213 bool result;
d55e5bfc 7214 PyObject * obj0 = 0 ;
093d3ff1 7215 PyObject * obj1 = 0 ;
d55e5bfc 7216 char *kwnames[] = {
093d3ff1 7217 (char *) "self",(char *) "region", NULL
d55e5bfc
RD
7218 };
7219
093d3ff1
RD
7220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
7221 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7222 if (SWIG_arg_fail(1)) SWIG_fail;
7223 {
7224 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7225 if (SWIG_arg_fail(2)) SWIG_fail;
7226 if (arg2 == NULL) {
7227 SWIG_null_ref("wxRegion");
7228 }
7229 if (SWIG_arg_fail(2)) SWIG_fail;
7230 }
d55e5bfc
RD
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7233 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
d55e5bfc
RD
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
093d3ff1
RD
7238 {
7239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7240 }
d55e5bfc
RD
7241 return resultobj;
7242 fail:
7243 return NULL;
7244}
7245
7246
093d3ff1 7247static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7248 PyObject *resultobj;
093d3ff1
RD
7249 wxRegion *arg1 = (wxRegion *) 0 ;
7250 bool result;
d55e5bfc
RD
7251 PyObject * obj0 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self", NULL
7254 };
7255
093d3ff1
RD
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
7257 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7258 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7261 result = (bool)(arg1)->IsEmpty();
d55e5bfc
RD
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
093d3ff1
RD
7266 {
7267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7268 }
d55e5bfc
RD
7269 return resultobj;
7270 fail:
7271 return NULL;
7272}
7273
7274
093d3ff1 7275static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7276 PyObject *resultobj;
093d3ff1
RD
7277 wxRegion *arg1 = (wxRegion *) 0 ;
7278 int arg2 ;
7279 int arg3 ;
7280 int arg4 ;
7281 int arg5 ;
7282 bool result;
d55e5bfc 7283 PyObject * obj0 = 0 ;
093d3ff1
RD
7284 PyObject * obj1 = 0 ;
7285 PyObject * obj2 = 0 ;
7286 PyObject * obj3 = 0 ;
7287 PyObject * obj4 = 0 ;
d55e5bfc 7288 char *kwnames[] = {
093d3ff1 7289 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
7290 };
7291
093d3ff1
RD
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7293 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7294 if (SWIG_arg_fail(1)) SWIG_fail;
7295 {
7296 arg2 = (int)(SWIG_As_int(obj1));
7297 if (SWIG_arg_fail(2)) SWIG_fail;
7298 }
7299 {
7300 arg3 = (int)(SWIG_As_int(obj2));
7301 if (SWIG_arg_fail(3)) SWIG_fail;
7302 }
7303 {
7304 arg4 = (int)(SWIG_As_int(obj3));
7305 if (SWIG_arg_fail(4)) SWIG_fail;
7306 }
7307 {
7308 arg5 = (int)(SWIG_As_int(obj4));
7309 if (SWIG_arg_fail(5)) SWIG_fail;
7310 }
d55e5bfc
RD
7311 {
7312 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7313 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
d55e5bfc
RD
7314
7315 wxPyEndAllowThreads(__tstate);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 {
093d3ff1 7319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
7320 }
7321 return resultobj;
7322 fail:
7323 return NULL;
7324}
7325
7326
093d3ff1 7327static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7328 PyObject *resultobj;
093d3ff1
RD
7329 wxRegion *arg1 = (wxRegion *) 0 ;
7330 wxRect *arg2 = 0 ;
d55e5bfc 7331 bool result;
093d3ff1 7332 wxRect temp2 ;
d55e5bfc 7333 PyObject * obj0 = 0 ;
093d3ff1 7334 PyObject * obj1 = 0 ;
d55e5bfc 7335 char *kwnames[] = {
093d3ff1 7336 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
7337 };
7338
093d3ff1
RD
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
7340 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7341 if (SWIG_arg_fail(1)) SWIG_fail;
7342 {
7343 arg2 = &temp2;
7344 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7345 }
d55e5bfc
RD
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7348 result = (bool)(arg1)->Union((wxRect const &)*arg2);
d55e5bfc
RD
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 {
7354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7355 }
7356 return resultobj;
7357 fail:
7358 return NULL;
7359}
7360
7361
093d3ff1 7362static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7363 PyObject *resultobj;
093d3ff1
RD
7364 wxRegion *arg1 = (wxRegion *) 0 ;
7365 wxRegion *arg2 = 0 ;
7366 bool result;
d55e5bfc 7367 PyObject * obj0 = 0 ;
093d3ff1 7368 PyObject * obj1 = 0 ;
d55e5bfc 7369 char *kwnames[] = {
093d3ff1 7370 (char *) "self",(char *) "region", NULL
d55e5bfc
RD
7371 };
7372
093d3ff1
RD
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
7374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7375 if (SWIG_arg_fail(1)) SWIG_fail;
7376 {
7377 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7378 if (SWIG_arg_fail(2)) SWIG_fail;
7379 if (arg2 == NULL) {
7380 SWIG_null_ref("wxRegion");
7381 }
7382 if (SWIG_arg_fail(2)) SWIG_fail;
7383 }
d55e5bfc
RD
7384 {
7385 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7386 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
d55e5bfc
RD
7387
7388 wxPyEndAllowThreads(__tstate);
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
093d3ff1
RD
7391 {
7392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7393 }
d55e5bfc
RD
7394 return resultobj;
7395 fail:
7396 return NULL;
7397}
7398
7399
093d3ff1 7400static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7401 PyObject *resultobj;
093d3ff1
RD
7402 wxRegion *arg1 = (wxRegion *) 0 ;
7403 int arg2 ;
7404 int arg3 ;
7405 int arg4 ;
7406 int arg5 ;
7407 bool result;
d55e5bfc 7408 PyObject * obj0 = 0 ;
093d3ff1
RD
7409 PyObject * obj1 = 0 ;
7410 PyObject * obj2 = 0 ;
7411 PyObject * obj3 = 0 ;
7412 PyObject * obj4 = 0 ;
d55e5bfc 7413 char *kwnames[] = {
093d3ff1 7414 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
7415 };
7416
093d3ff1
RD
7417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7418 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7419 if (SWIG_arg_fail(1)) SWIG_fail;
7420 {
7421 arg2 = (int)(SWIG_As_int(obj1));
7422 if (SWIG_arg_fail(2)) SWIG_fail;
7423 }
7424 {
7425 arg3 = (int)(SWIG_As_int(obj2));
7426 if (SWIG_arg_fail(3)) SWIG_fail;
7427 }
7428 {
7429 arg4 = (int)(SWIG_As_int(obj3));
7430 if (SWIG_arg_fail(4)) SWIG_fail;
7431 }
7432 {
7433 arg5 = (int)(SWIG_As_int(obj4));
7434 if (SWIG_arg_fail(5)) SWIG_fail;
7435 }
d55e5bfc
RD
7436 {
7437 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7438 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
d55e5bfc
RD
7439
7440 wxPyEndAllowThreads(__tstate);
7441 if (PyErr_Occurred()) SWIG_fail;
7442 }
093d3ff1
RD
7443 {
7444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7445 }
d55e5bfc
RD
7446 return resultobj;
7447 fail:
7448 return NULL;
7449}
7450
7451
093d3ff1 7452static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7453 PyObject *resultobj;
093d3ff1
RD
7454 wxRegion *arg1 = (wxRegion *) 0 ;
7455 wxRect *arg2 = 0 ;
d55e5bfc 7456 bool result;
093d3ff1 7457 wxRect temp2 ;
d55e5bfc 7458 PyObject * obj0 = 0 ;
093d3ff1 7459 PyObject * obj1 = 0 ;
d55e5bfc 7460 char *kwnames[] = {
093d3ff1 7461 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
7462 };
7463
093d3ff1
RD
7464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
7465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7466 if (SWIG_arg_fail(1)) SWIG_fail;
7467 {
7468 arg2 = &temp2;
7469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7470 }
d55e5bfc
RD
7471 {
7472 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7473 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
d55e5bfc
RD
7474
7475 wxPyEndAllowThreads(__tstate);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 {
7479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7480 }
7481 return resultobj;
7482 fail:
7483 return NULL;
7484}
7485
7486
093d3ff1 7487static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7488 PyObject *resultobj;
093d3ff1
RD
7489 wxRegion *arg1 = (wxRegion *) 0 ;
7490 wxRegion *arg2 = 0 ;
7491 bool result;
7492 PyObject * obj0 = 0 ;
7493 PyObject * obj1 = 0 ;
d55e5bfc 7494 char *kwnames[] = {
093d3ff1 7495 (char *) "self",(char *) "region", NULL
d55e5bfc
RD
7496 };
7497
093d3ff1
RD
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
7499 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7500 if (SWIG_arg_fail(1)) SWIG_fail;
7501 {
7502 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7503 if (SWIG_arg_fail(2)) SWIG_fail;
7504 if (arg2 == NULL) {
7505 SWIG_null_ref("wxRegion");
7506 }
7507 if (SWIG_arg_fail(2)) SWIG_fail;
7508 }
d55e5bfc
RD
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7511 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
d55e5bfc
RD
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
093d3ff1
RD
7516 {
7517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7518 }
d55e5bfc
RD
7519 return resultobj;
7520 fail:
7521 return NULL;
7522}
7523
7524
093d3ff1 7525static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7526 PyObject *resultobj;
093d3ff1
RD
7527 wxRegion *arg1 = (wxRegion *) 0 ;
7528 int arg2 ;
7529 int arg3 ;
7530 int arg4 ;
7531 int arg5 ;
7532 bool result;
d55e5bfc 7533 PyObject * obj0 = 0 ;
093d3ff1
RD
7534 PyObject * obj1 = 0 ;
7535 PyObject * obj2 = 0 ;
7536 PyObject * obj3 = 0 ;
7537 PyObject * obj4 = 0 ;
d55e5bfc 7538 char *kwnames[] = {
093d3ff1 7539 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
7540 };
7541
093d3ff1
RD
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7544 if (SWIG_arg_fail(1)) SWIG_fail;
7545 {
7546 arg2 = (int)(SWIG_As_int(obj1));
7547 if (SWIG_arg_fail(2)) SWIG_fail;
7548 }
7549 {
7550 arg3 = (int)(SWIG_As_int(obj2));
7551 if (SWIG_arg_fail(3)) SWIG_fail;
7552 }
7553 {
7554 arg4 = (int)(SWIG_As_int(obj3));
7555 if (SWIG_arg_fail(4)) SWIG_fail;
7556 }
7557 {
7558 arg5 = (int)(SWIG_As_int(obj4));
7559 if (SWIG_arg_fail(5)) SWIG_fail;
7560 }
d55e5bfc
RD
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7563 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
d55e5bfc
RD
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
093d3ff1
RD
7568 {
7569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7570 }
d55e5bfc
RD
7571 return resultobj;
7572 fail:
7573 return NULL;
7574}
7575
7576
093d3ff1 7577static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7578 PyObject *resultobj;
093d3ff1
RD
7579 wxRegion *arg1 = (wxRegion *) 0 ;
7580 wxRect *arg2 = 0 ;
7581 bool result;
7582 wxRect temp2 ;
d55e5bfc 7583 PyObject * obj0 = 0 ;
093d3ff1 7584 PyObject * obj1 = 0 ;
d55e5bfc 7585 char *kwnames[] = {
093d3ff1 7586 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
7587 };
7588
093d3ff1
RD
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
7590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7591 if (SWIG_arg_fail(1)) SWIG_fail;
7592 {
7593 arg2 = &temp2;
7594 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7595 }
d55e5bfc
RD
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7598 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
d55e5bfc
RD
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
093d3ff1
RD
7603 {
7604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7605 }
d55e5bfc
RD
7606 return resultobj;
7607 fail:
7608 return NULL;
7609}
7610
7611
093d3ff1 7612static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7613 PyObject *resultobj;
093d3ff1
RD
7614 wxRegion *arg1 = (wxRegion *) 0 ;
7615 wxRegion *arg2 = 0 ;
7616 bool result;
d55e5bfc
RD
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 char *kwnames[] = {
093d3ff1 7620 (char *) "self",(char *) "region", NULL
d55e5bfc
RD
7621 };
7622
093d3ff1
RD
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
7624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7625 if (SWIG_arg_fail(1)) SWIG_fail;
7626 {
7627 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7628 if (SWIG_arg_fail(2)) SWIG_fail;
7629 if (arg2 == NULL) {
7630 SWIG_null_ref("wxRegion");
7631 }
7632 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7636 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
d55e5bfc
RD
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
093d3ff1
RD
7641 {
7642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7643 }
d55e5bfc
RD
7644 return resultobj;
7645 fail:
7646 return NULL;
7647}
7648
7649
093d3ff1 7650static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7651 PyObject *resultobj;
093d3ff1
RD
7652 wxRegion *arg1 = (wxRegion *) 0 ;
7653 SwigValueWrapper<wxBitmap > result;
d55e5bfc
RD
7654 PyObject * obj0 = 0 ;
7655 char *kwnames[] = {
7656 (char *) "self", NULL
7657 };
7658
093d3ff1
RD
7659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
7660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7661 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7664 result = (arg1)->ConvertToBitmap();
d55e5bfc
RD
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
093d3ff1
RD
7669 {
7670 wxBitmap * resultptr;
7671 resultptr = new wxBitmap((wxBitmap &)(result));
7672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
7673 }
d55e5bfc
RD
7674 return resultobj;
7675 fail:
7676 return NULL;
7677}
7678
7679
093d3ff1 7680static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5e483524 7681 PyObject *resultobj;
093d3ff1
RD
7682 wxRegion *arg1 = (wxRegion *) 0 ;
7683 wxBitmap *arg2 = 0 ;
7684 bool result;
5e483524 7685 PyObject * obj0 = 0 ;
093d3ff1 7686 PyObject * obj1 = 0 ;
5e483524 7687 char *kwnames[] = {
093d3ff1 7688 (char *) "self",(char *) "bmp", NULL
5e483524
RD
7689 };
7690
093d3ff1
RD
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
7692 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7693 if (SWIG_arg_fail(1)) SWIG_fail;
7694 {
7695 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7696 if (SWIG_arg_fail(2)) SWIG_fail;
7697 if (arg2 == NULL) {
7698 SWIG_null_ref("wxBitmap");
7699 }
7700 if (SWIG_arg_fail(2)) SWIG_fail;
7701 }
5e483524
RD
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7704 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5e483524
RD
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
093d3ff1 7710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5e483524
RD
7711 }
7712 return resultobj;
7713 fail:
7714 return NULL;
7715}
7716
7717
093d3ff1 7718static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7719 PyObject *resultobj;
093d3ff1
RD
7720 wxRegion *arg1 = (wxRegion *) 0 ;
7721 wxBitmap *arg2 = 0 ;
7722 wxColour *arg3 = 0 ;
7723 int arg4 = (int) 0 ;
7724 bool result;
7725 wxColour temp3 ;
d55e5bfc 7726 PyObject * obj0 = 0 ;
093d3ff1
RD
7727 PyObject * obj1 = 0 ;
7728 PyObject * obj2 = 0 ;
7729 PyObject * obj3 = 0 ;
d55e5bfc 7730 char *kwnames[] = {
093d3ff1 7731 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
d55e5bfc
RD
7732 };
7733
093d3ff1
RD
7734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7736 if (SWIG_arg_fail(1)) SWIG_fail;
7737 {
7738 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7739 if (SWIG_arg_fail(2)) SWIG_fail;
7740 if (arg2 == NULL) {
7741 SWIG_null_ref("wxBitmap");
7742 }
7743 if (SWIG_arg_fail(2)) SWIG_fail;
7744 }
7745 {
7746 arg3 = &temp3;
7747 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
7748 }
7749 if (obj3) {
7750 {
7751 arg4 = (int)(SWIG_As_int(obj3));
7752 if (SWIG_arg_fail(4)) SWIG_fail;
7753 }
7754 }
d55e5bfc
RD
7755 {
7756 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7757 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
d55e5bfc
RD
7758
7759 wxPyEndAllowThreads(__tstate);
7760 if (PyErr_Occurred()) SWIG_fail;
7761 }
093d3ff1
RD
7762 {
7763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7764 }
d55e5bfc
RD
7765 return resultobj;
7766 fail:
7767 return NULL;
7768}
7769
7770
093d3ff1
RD
7771static PyObject * Region_swigregister(PyObject *, PyObject *args) {
7772 PyObject *obj;
7773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7774 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
7775 Py_INCREF(obj);
7776 return Py_BuildValue((char *)"");
7777}
7778static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7779 PyObject *resultobj;
093d3ff1
RD
7780 wxRegion *arg1 = 0 ;
7781 wxRegionIterator *result;
d55e5bfc
RD
7782 PyObject * obj0 = 0 ;
7783 char *kwnames[] = {
093d3ff1 7784 (char *) "region", NULL
d55e5bfc
RD
7785 };
7786
093d3ff1 7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
d55e5bfc 7788 {
093d3ff1
RD
7789 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7790 if (SWIG_arg_fail(1)) SWIG_fail;
7791 if (arg1 == NULL) {
7792 SWIG_null_ref("wxRegion");
7793 }
7794 if (SWIG_arg_fail(1)) SWIG_fail;
7795 }
7796 {
7797 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 7798 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7799 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
d55e5bfc
RD
7800
7801 wxPyEndAllowThreads(__tstate);
7802 if (PyErr_Occurred()) SWIG_fail;
7803 }
093d3ff1 7804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d55e5bfc
RD
7805 return resultobj;
7806 fail:
7807 return NULL;
7808}
7809
7810
093d3ff1 7811static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7812 PyObject *resultobj;
093d3ff1 7813 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d55e5bfc
RD
7814 PyObject * obj0 = 0 ;
7815 char *kwnames[] = {
7816 (char *) "self", NULL
7817 };
7818
093d3ff1
RD
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
7820 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7821 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7822 {
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7824 delete arg1;
d55e5bfc
RD
7825
7826 wxPyEndAllowThreads(__tstate);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
093d3ff1 7829 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
7830 return resultobj;
7831 fail:
7832 return NULL;
7833}
7834
7835
093d3ff1 7836static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7837 PyObject *resultobj;
093d3ff1
RD
7838 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7839 int result;
d55e5bfc
RD
7840 PyObject * obj0 = 0 ;
7841 char *kwnames[] = {
7842 (char *) "self", NULL
7843 };
7844
093d3ff1
RD
7845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
7846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7847 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7848 {
7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7850 result = (int)(arg1)->GetX();
d55e5bfc
RD
7851
7852 wxPyEndAllowThreads(__tstate);
7853 if (PyErr_Occurred()) SWIG_fail;
7854 }
7855 {
093d3ff1 7856 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
7857 }
7858 return resultobj;
7859 fail:
7860 return NULL;
7861}
7862
7863
093d3ff1 7864static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7865 PyObject *resultobj;
093d3ff1 7866 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d55e5bfc
RD
7867 int result;
7868 PyObject * obj0 = 0 ;
7869 char *kwnames[] = {
7870 (char *) "self", NULL
7871 };
7872
093d3ff1
RD
7873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
7874 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7875 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7878 result = (int)(arg1)->GetY();
d55e5bfc
RD
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
093d3ff1
RD
7883 {
7884 resultobj = SWIG_From_int((int)(result));
7885 }
d55e5bfc
RD
7886 return resultobj;
7887 fail:
7888 return NULL;
7889}
7890
7891
093d3ff1 7892static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7893 PyObject *resultobj;
093d3ff1 7894 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d55e5bfc
RD
7895 int result;
7896 PyObject * obj0 = 0 ;
7897 char *kwnames[] = {
7898 (char *) "self", NULL
7899 };
7900
093d3ff1
RD
7901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
7902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7903 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7904 {
7905 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7906 result = (int)(arg1)->GetW();
d55e5bfc
RD
7907
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
093d3ff1
RD
7911 {
7912 resultobj = SWIG_From_int((int)(result));
7913 }
d55e5bfc
RD
7914 return resultobj;
7915 fail:
7916 return NULL;
7917}
7918
7919
093d3ff1 7920static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7921 PyObject *resultobj;
093d3ff1
RD
7922 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7923 int result;
d55e5bfc 7924 PyObject * obj0 = 0 ;
d55e5bfc 7925 char *kwnames[] = {
093d3ff1 7926 (char *) "self", NULL
d55e5bfc
RD
7927 };
7928
093d3ff1
RD
7929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
7930 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7931 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7932 {
7933 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7934 result = (int)(arg1)->GetWidth();
d55e5bfc
RD
7935
7936 wxPyEndAllowThreads(__tstate);
7937 if (PyErr_Occurred()) SWIG_fail;
7938 }
093d3ff1
RD
7939 {
7940 resultobj = SWIG_From_int((int)(result));
7941 }
d55e5bfc
RD
7942 return resultobj;
7943 fail:
7944 return NULL;
7945}
7946
7947
093d3ff1 7948static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5e483524 7949 PyObject *resultobj;
093d3ff1
RD
7950 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7951 int result;
5e483524 7952 PyObject * obj0 = 0 ;
5e483524 7953 char *kwnames[] = {
093d3ff1 7954 (char *) "self", NULL
5e483524
RD
7955 };
7956
093d3ff1
RD
7957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
7958 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7959 if (SWIG_arg_fail(1)) SWIG_fail;
5e483524
RD
7960 {
7961 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7962 result = (int)(arg1)->GetH();
5e483524
RD
7963
7964 wxPyEndAllowThreads(__tstate);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
093d3ff1
RD
7967 {
7968 resultobj = SWIG_From_int((int)(result));
7969 }
5e483524
RD
7970 return resultobj;
7971 fail:
7972 return NULL;
7973}
7974
7975
093d3ff1 7976static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7977 PyObject *resultobj;
093d3ff1
RD
7978 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7979 int result;
d55e5bfc 7980 PyObject * obj0 = 0 ;
d55e5bfc 7981 char *kwnames[] = {
093d3ff1 7982 (char *) "self", NULL
d55e5bfc
RD
7983 };
7984
093d3ff1
RD
7985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
7986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7987 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7990 result = (int)(arg1)->GetHeight();
d55e5bfc
RD
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
093d3ff1
RD
7995 {
7996 resultobj = SWIG_From_int((int)(result));
7997 }
d55e5bfc
RD
7998 return resultobj;
7999 fail:
8000 return NULL;
8001}
8002
8003
093d3ff1 8004static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8005 PyObject *resultobj;
093d3ff1
RD
8006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8007 wxRect result;
d55e5bfc 8008 PyObject * obj0 = 0 ;
d55e5bfc 8009 char *kwnames[] = {
093d3ff1 8010 (char *) "self", NULL
d55e5bfc
RD
8011 };
8012
093d3ff1
RD
8013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
8014 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8015 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8018 result = (arg1)->GetRect();
d55e5bfc
RD
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
093d3ff1
RD
8023 {
8024 wxRect * resultptr;
8025 resultptr = new wxRect((wxRect &)(result));
8026 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
8027 }
d55e5bfc
RD
8028 return resultobj;
8029 fail:
8030 return NULL;
8031}
8032
8033
093d3ff1 8034static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8035 PyObject *resultobj;
093d3ff1
RD
8036 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8037 bool result;
d55e5bfc 8038 PyObject * obj0 = 0 ;
d55e5bfc 8039 char *kwnames[] = {
093d3ff1 8040 (char *) "self", NULL
d55e5bfc
RD
8041 };
8042
093d3ff1
RD
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
8044 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8045 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8046 {
8047 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8048 result = (bool)(arg1)->HaveRects();
d55e5bfc
RD
8049
8050 wxPyEndAllowThreads(__tstate);
8051 if (PyErr_Occurred()) SWIG_fail;
8052 }
093d3ff1
RD
8053 {
8054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8055 }
d55e5bfc
RD
8056 return resultobj;
8057 fail:
8058 return NULL;
8059}
8060
8061
093d3ff1 8062static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8063 PyObject *resultobj;
093d3ff1 8064 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d55e5bfc 8065 PyObject * obj0 = 0 ;
d55e5bfc 8066 char *kwnames[] = {
093d3ff1 8067 (char *) "self", NULL
d55e5bfc
RD
8068 };
8069
093d3ff1
RD
8070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
8071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8072 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8075 (arg1)->Reset();
d55e5bfc
RD
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 Py_INCREF(Py_None); resultobj = Py_None;
8081 return resultobj;
8082 fail:
8083 return NULL;
8084}
8085
8086
093d3ff1 8087static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8088 PyObject *resultobj;
093d3ff1 8089 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d55e5bfc 8090 PyObject * obj0 = 0 ;
d55e5bfc 8091 char *kwnames[] = {
093d3ff1 8092 (char *) "self", NULL
d55e5bfc
RD
8093 };
8094
093d3ff1
RD
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
8096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8097 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8098 {
8099 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8100 wxRegionIterator_Next(arg1);
d55e5bfc
RD
8101
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 Py_INCREF(Py_None); resultobj = Py_None;
8106 return resultobj;
8107 fail:
8108 return NULL;
8109}
8110
8111
093d3ff1 8112static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8113 PyObject *resultobj;
093d3ff1
RD
8114 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8115 bool result;
d55e5bfc 8116 PyObject * obj0 = 0 ;
d55e5bfc 8117 char *kwnames[] = {
093d3ff1 8118 (char *) "self", NULL
d55e5bfc
RD
8119 };
8120
093d3ff1
RD
8121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
8122 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8123 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8124 {
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8126 result = (bool)wxRegionIterator___nonzero__(arg1);
d55e5bfc
RD
8127
8128 wxPyEndAllowThreads(__tstate);
8129 if (PyErr_Occurred()) SWIG_fail;
8130 }
093d3ff1
RD
8131 {
8132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8133 }
d55e5bfc
RD
8134 return resultobj;
8135 fail:
8136 return NULL;
8137}
8138
8139
093d3ff1
RD
8140static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
8141 PyObject *obj;
8142 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8143 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
8144 Py_INCREF(obj);
8145 return Py_BuildValue((char *)"");
8146}
8147static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8148 PyObject *resultobj;
093d3ff1 8149 wxNativeFontInfo *result;
d55e5bfc 8150 char *kwnames[] = {
093d3ff1 8151 NULL
d55e5bfc
RD
8152 };
8153
093d3ff1 8154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
d55e5bfc
RD
8155 {
8156 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8157 result = (wxNativeFontInfo *)new wxNativeFontInfo();
d55e5bfc
RD
8158
8159 wxPyEndAllowThreads(__tstate);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
093d3ff1 8162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d55e5bfc
RD
8163 return resultobj;
8164 fail:
d55e5bfc
RD
8165 return NULL;
8166}
8167
8168
093d3ff1 8169static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8170 PyObject *resultobj;
8171 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d55e5bfc
RD
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self", NULL
8175 };
8176
093d3ff1
RD
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
8178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8179 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8182 delete arg1;
d55e5bfc
RD
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
093d3ff1 8187 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8188 return resultobj;
8189 fail:
8190 return NULL;
8191}
8192
8193
093d3ff1 8194static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8195 PyObject *resultobj;
8196 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d55e5bfc
RD
8197 PyObject * obj0 = 0 ;
8198 char *kwnames[] = {
8199 (char *) "self", NULL
8200 };
8201
093d3ff1
RD
8202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
8203 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8204 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8205 {
8206 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8207 (arg1)->Init();
d55e5bfc
RD
8208
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
093d3ff1 8212 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8213 return resultobj;
8214 fail:
8215 return NULL;
8216}
8217
8218
093d3ff1 8219static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8220 PyObject *resultobj;
8221 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
093d3ff1 8222 wxFont *arg2 = 0 ;
d55e5bfc
RD
8223 PyObject * obj0 = 0 ;
8224 PyObject * obj1 = 0 ;
8225 char *kwnames[] = {
093d3ff1 8226 (char *) "self",(char *) "font", NULL
d55e5bfc
RD
8227 };
8228
093d3ff1
RD
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
8230 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8231 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 8232 {
093d3ff1
RD
8233 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
8234 if (SWIG_arg_fail(2)) SWIG_fail;
8235 if (arg2 == NULL) {
8236 SWIG_null_ref("wxFont");
8237 }
8238 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
8239 }
8240 {
8241 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8242 (arg1)->InitFromFont((wxFont const &)*arg2);
d55e5bfc
RD
8243
8244 wxPyEndAllowThreads(__tstate);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
093d3ff1 8247 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8248 return resultobj;
8249 fail:
d55e5bfc
RD
8250 return NULL;
8251}
8252
8253
093d3ff1 8254static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8255 PyObject *resultobj;
8256 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
093d3ff1 8257 int result;
d55e5bfc
RD
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "self", NULL
8261 };
8262
093d3ff1
RD
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
8264 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8265 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8268 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
d55e5bfc
RD
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 {
093d3ff1 8274 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
8275 }
8276 return resultobj;
8277 fail:
8278 return NULL;
8279}
8280
8281
093d3ff1 8282static PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8283 PyObject *resultobj;
093d3ff1
RD
8284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8285 wxSize result;
d55e5bfc 8286 PyObject * obj0 = 0 ;
d55e5bfc 8287 char *kwnames[] = {
093d3ff1 8288 (char *) "self", NULL
d55e5bfc
RD
8289 };
8290
093d3ff1
RD
8291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPixelSize",kwnames,&obj0)) goto fail;
8292 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8293 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 8294 {
093d3ff1
RD
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 8300 }
d55e5bfc 8301 {
093d3ff1
RD
8302 wxSize * resultptr;
8303 resultptr = new wxSize((wxSize &)(result));
8304 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d55e5bfc
RD
8305 }
8306 return resultobj;
8307 fail:
d55e5bfc
RD
8308 return NULL;
8309}
8310
8311
093d3ff1 8312static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8313 PyObject *resultobj;
093d3ff1
RD
8314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8315 wxFontStyle result;
d55e5bfc
RD
8316 PyObject * obj0 = 0 ;
8317 char *kwnames[] = {
8318 (char *) "self", NULL
8319 };
8320
093d3ff1
RD
8321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
8322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8323 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 8324 {
093d3ff1
RD
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
8327
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 8330 }
093d3ff1 8331 resultobj = SWIG_From_int((result));
d55e5bfc
RD
8332 return resultobj;
8333 fail:
8334 return NULL;
8335}
8336
8337
093d3ff1 8338static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8339 PyObject *resultobj;
093d3ff1
RD
8340 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8341 wxFontWeight result;
d55e5bfc 8342 PyObject * obj0 = 0 ;
d55e5bfc 8343 char *kwnames[] = {
093d3ff1 8344 (char *) "self", NULL
d55e5bfc
RD
8345 };
8346
093d3ff1
RD
8347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
8348 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8349 if (SWIG_arg_fail(1)) SWIG_fail;
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = SWIG_From_int((result));
d55e5bfc
RD
8358 return resultobj;
8359 fail:
8360 return NULL;
8361}
8362
8363
093d3ff1 8364static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8365 PyObject *resultobj;
093d3ff1
RD
8366 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8367 bool result;
d55e5bfc
RD
8368 PyObject * obj0 = 0 ;
8369 char *kwnames[] = {
8370 (char *) "self", NULL
8371 };
8372
093d3ff1
RD
8373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
8374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8375 if (SWIG_arg_fail(1)) SWIG_fail;
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 {
8384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8385 }
d55e5bfc
RD
8386 return resultobj;
8387 fail:
8388 return NULL;
8389}
8390
8391
093d3ff1 8392static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8393 PyObject *resultobj;
093d3ff1
RD
8394 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8395 wxString result;
8396 PyObject * obj0 = 0 ;
d55e5bfc 8397 char *kwnames[] = {
093d3ff1 8398 (char *) "self", NULL
d55e5bfc
RD
8399 };
8400
093d3ff1
RD
8401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
8402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8403 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8404 {
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8406 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
d55e5bfc
RD
8407
8408 wxPyEndAllowThreads(__tstate);
8409 if (PyErr_Occurred()) SWIG_fail;
8410 }
093d3ff1
RD
8411 {
8412#if wxUSE_UNICODE
8413 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8414#else
8415 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8416#endif
8417 }
d55e5bfc
RD
8418 return resultobj;
8419 fail:
8420 return NULL;
8421}
8422
8423
093d3ff1 8424static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8425 PyObject *resultobj;
093d3ff1
RD
8426 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8427 wxFontFamily result;
d55e5bfc
RD
8428 PyObject * obj0 = 0 ;
8429 char *kwnames[] = {
8430 (char *) "self", NULL
8431 };
8432
093d3ff1
RD
8433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
8434 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8435 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8438 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
d55e5bfc
RD
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
093d3ff1 8443 resultobj = SWIG_From_int((result));
d55e5bfc
RD
8444 return resultobj;
8445 fail:
8446 return NULL;
8447}
8448
8449
093d3ff1 8450static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8451 PyObject *resultobj;
093d3ff1
RD
8452 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8453 wxFontEncoding result;
d55e5bfc 8454 PyObject * obj0 = 0 ;
d55e5bfc 8455 char *kwnames[] = {
093d3ff1 8456 (char *) "self", NULL
d55e5bfc
RD
8457 };
8458
093d3ff1
RD
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
8460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8461 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8462 {
8463 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8464 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
d55e5bfc
RD
8465
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
093d3ff1 8469 resultobj = SWIG_From_int((result));
d55e5bfc
RD
8470 return resultobj;
8471 fail:
d55e5bfc
RD
8472 return NULL;
8473}
8474
8475
093d3ff1 8476static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8477 PyObject *resultobj;
093d3ff1
RD
8478 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8479 int arg2 ;
d55e5bfc 8480 PyObject * obj0 = 0 ;
093d3ff1 8481 PyObject * obj1 = 0 ;
d55e5bfc 8482 char *kwnames[] = {
093d3ff1 8483 (char *) "self",(char *) "pointsize", NULL
d55e5bfc
RD
8484 };
8485
093d3ff1
RD
8486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8488 if (SWIG_arg_fail(1)) SWIG_fail;
8489 {
8490 arg2 = (int)(SWIG_As_int(obj1));
8491 if (SWIG_arg_fail(2)) SWIG_fail;
8492 }
d55e5bfc
RD
8493 {
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8495 (arg1)->SetPointSize(arg2);
d55e5bfc
RD
8496
8497 wxPyEndAllowThreads(__tstate);
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
093d3ff1 8500 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8501 return resultobj;
8502 fail:
8503 return NULL;
8504}
8505
8506
093d3ff1 8507static PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8508 PyObject *resultobj;
093d3ff1
RD
8509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8510 wxSize *arg2 = 0 ;
8511 wxSize temp2 ;
d55e5bfc 8512 PyObject * obj0 = 0 ;
093d3ff1 8513 PyObject * obj1 = 0 ;
d55e5bfc 8514 char *kwnames[] = {
093d3ff1 8515 (char *) "self",(char *) "pixelSize", NULL
d55e5bfc
RD
8516 };
8517
093d3ff1
RD
8518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8520 if (SWIG_arg_fail(1)) SWIG_fail;
8521 {
8522 arg2 = &temp2;
8523 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8524 }
d55e5bfc
RD
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8527 (arg1)->SetPixelSize((wxSize const &)*arg2);
d55e5bfc
RD
8528
8529 wxPyEndAllowThreads(__tstate);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
093d3ff1 8532 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8533 return resultobj;
8534 fail:
8535 return NULL;
8536}
8537
8538
093d3ff1 8539static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8540 PyObject *resultobj;
093d3ff1
RD
8541 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8542 wxFontStyle arg2 ;
d55e5bfc 8543 PyObject * obj0 = 0 ;
093d3ff1 8544 PyObject * obj1 = 0 ;
d55e5bfc 8545 char *kwnames[] = {
093d3ff1 8546 (char *) "self",(char *) "style", NULL
d55e5bfc
RD
8547 };
8548
093d3ff1
RD
8549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8550 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8551 if (SWIG_arg_fail(1)) SWIG_fail;
8552 {
8553 arg2 = (wxFontStyle)(SWIG_As_int(obj1));
8554 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
8555 }
8556 {
8557 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8558 (arg1)->SetStyle((wxFontStyle )arg2);
d55e5bfc
RD
8559
8560 wxPyEndAllowThreads(__tstate);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 }
093d3ff1
RD
8563 Py_INCREF(Py_None); resultobj = Py_None;
8564 return resultobj;
8565 fail:
8566 return NULL;
8567}
8568
8569
8570static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8571 PyObject *resultobj;
8572 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8573 wxFontWeight arg2 ;
8574 PyObject * obj0 = 0 ;
8575 PyObject * obj1 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self",(char *) "weight", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8582 if (SWIG_arg_fail(1)) SWIG_fail;
8583 {
8584 arg2 = (wxFontWeight)(SWIG_As_int(obj1));
8585 if (SWIG_arg_fail(2)) SWIG_fail;
8586 }
d55e5bfc 8587 {
093d3ff1
RD
8588 PyThreadState* __tstate = wxPyBeginAllowThreads();
8589 (arg1)->SetWeight((wxFontWeight )arg2);
8590
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 8593 }
093d3ff1 8594 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8595 return resultobj;
8596 fail:
8597 return NULL;
8598}
8599
8600
093d3ff1 8601static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8602 PyObject *resultobj;
093d3ff1
RD
8603 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8604 bool arg2 ;
8605 PyObject * obj0 = 0 ;
8606 PyObject * obj1 = 0 ;
d55e5bfc 8607 char *kwnames[] = {
093d3ff1 8608 (char *) "self",(char *) "underlined", NULL
d55e5bfc
RD
8609 };
8610
093d3ff1
RD
8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8613 if (SWIG_arg_fail(1)) SWIG_fail;
8614 {
8615 arg2 = (bool)(SWIG_As_bool(obj1));
8616 if (SWIG_arg_fail(2)) SWIG_fail;
8617 }
d55e5bfc
RD
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8620 (arg1)->SetUnderlined(arg2);
d55e5bfc
RD
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
093d3ff1 8625 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8626 return resultobj;
8627 fail:
8628 return NULL;
8629}
8630
8631
093d3ff1 8632static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8633 PyObject *resultobj;
093d3ff1
RD
8634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8635 wxString arg2 ;
d55e5bfc 8636 PyObject * obj0 = 0 ;
093d3ff1 8637 PyObject * obj1 = 0 ;
d55e5bfc 8638 char *kwnames[] = {
093d3ff1 8639 (char *) "self",(char *) "facename", NULL
d55e5bfc
RD
8640 };
8641
093d3ff1
RD
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8644 if (SWIG_arg_fail(1)) SWIG_fail;
8645 {
8646 wxString* sptr = wxString_in_helper(obj1);
8647 if (sptr == NULL) SWIG_fail;
8648 arg2 = *sptr;
8649 delete sptr;
8650 }
d55e5bfc
RD
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8653 (arg1)->SetFaceName(arg2);
d55e5bfc
RD
8654
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 Py_INCREF(Py_None); resultobj = Py_None;
8659 return resultobj;
8660 fail:
8661 return NULL;
8662}
8663
8664
093d3ff1 8665static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8666 PyObject *resultobj;
093d3ff1
RD
8667 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8668 wxFontFamily arg2 ;
8669 PyObject * obj0 = 0 ;
8670 PyObject * obj1 = 0 ;
d55e5bfc 8671 char *kwnames[] = {
093d3ff1 8672 (char *) "self",(char *) "family", NULL
d55e5bfc
RD
8673 };
8674
093d3ff1
RD
8675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8677 if (SWIG_arg_fail(1)) SWIG_fail;
8678 {
8679 arg2 = (wxFontFamily)(SWIG_As_int(obj1));
8680 if (SWIG_arg_fail(2)) SWIG_fail;
8681 }
d55e5bfc
RD
8682 {
8683 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8684 (arg1)->SetFamily((wxFontFamily )arg2);
d55e5bfc
RD
8685
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
093d3ff1 8689 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8690 return resultobj;
8691 fail:
8692 return NULL;
8693}
8694
8695
093d3ff1 8696static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8697 PyObject *resultobj;
093d3ff1
RD
8698 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8699 wxFontEncoding arg2 ;
d55e5bfc 8700 PyObject * obj0 = 0 ;
093d3ff1 8701 PyObject * obj1 = 0 ;
d55e5bfc 8702 char *kwnames[] = {
093d3ff1 8703 (char *) "self",(char *) "encoding", NULL
d55e5bfc
RD
8704 };
8705
093d3ff1
RD
8706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8707 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8708 if (SWIG_arg_fail(1)) SWIG_fail;
8709 {
8710 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
8711 if (SWIG_arg_fail(2)) SWIG_fail;
8712 }
d55e5bfc
RD
8713 {
8714 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8715 (arg1)->SetEncoding((wxFontEncoding )arg2);
d55e5bfc
RD
8716
8717 wxPyEndAllowThreads(__tstate);
8718 if (PyErr_Occurred()) SWIG_fail;
8719 }
093d3ff1 8720 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
8721 return resultobj;
8722 fail:
8723 return NULL;
8724}
8725
8726
093d3ff1 8727static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8728 PyObject *resultobj;
093d3ff1 8729 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d55e5bfc 8730 wxString *arg2 = 0 ;
093d3ff1 8731 bool result;
ae8162c8 8732 bool temp2 = false ;
d55e5bfc
RD
8733 PyObject * obj0 = 0 ;
8734 PyObject * obj1 = 0 ;
d55e5bfc 8735 char *kwnames[] = {
093d3ff1 8736 (char *) "self",(char *) "s", NULL
d55e5bfc
RD
8737 };
8738
093d3ff1
RD
8739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8741 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8742 {
8743 arg2 = wxString_in_helper(obj1);
8744 if (arg2 == NULL) SWIG_fail;
ae8162c8 8745 temp2 = true;
d55e5bfc 8746 }
d55e5bfc
RD
8747 {
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8749 result = (bool)(arg1)->FromString((wxString const &)*arg2);
d55e5bfc
RD
8750
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
093d3ff1
RD
8754 {
8755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8756 }
d55e5bfc
RD
8757 {
8758 if (temp2)
8759 delete arg2;
8760 }
8761 return resultobj;
8762 fail:
8763 {
8764 if (temp2)
8765 delete arg2;
8766 }
8767 return NULL;
8768}
8769
8770
093d3ff1 8771static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8772 PyObject *resultobj;
093d3ff1
RD
8773 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8774 wxString result;
8775 PyObject * obj0 = 0 ;
d55e5bfc 8776 char *kwnames[] = {
093d3ff1 8777 (char *) "self", NULL
d55e5bfc
RD
8778 };
8779
093d3ff1
RD
8780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
8781 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8782 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8785 result = ((wxNativeFontInfo const *)arg1)->ToString();
d55e5bfc
RD
8786
8787 wxPyEndAllowThreads(__tstate);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
093d3ff1
RD
8790 {
8791#if wxUSE_UNICODE
8792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8793#else
8794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8795#endif
8796 }
d55e5bfc
RD
8797 return resultobj;
8798 fail:
8799 return NULL;
8800}
8801
8802
093d3ff1 8803static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8804 PyObject *resultobj;
093d3ff1
RD
8805 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8806 wxString result;
d55e5bfc
RD
8807 PyObject * obj0 = 0 ;
8808 char *kwnames[] = {
093d3ff1 8809 (char *) "self", NULL
d55e5bfc
RD
8810 };
8811
093d3ff1
RD
8812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
8813 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8814 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8817 result = wxNativeFontInfo___str__(arg1);
d55e5bfc
RD
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
093d3ff1
RD
8822 {
8823#if wxUSE_UNICODE
8824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8825#else
8826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8827#endif
8828 }
d55e5bfc
RD
8829 return resultobj;
8830 fail:
8831 return NULL;
8832}
8833
8834
093d3ff1 8835static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8836 PyObject *resultobj;
093d3ff1
RD
8837 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8838 wxString *arg2 = 0 ;
8839 bool result;
8840 bool temp2 = false ;
d55e5bfc 8841 PyObject * obj0 = 0 ;
093d3ff1 8842 PyObject * obj1 = 0 ;
d55e5bfc 8843 char *kwnames[] = {
093d3ff1 8844 (char *) "self",(char *) "s", NULL
d55e5bfc
RD
8845 };
8846
093d3ff1
RD
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
8848 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8849 if (SWIG_arg_fail(1)) SWIG_fail;
8850 {
8851 arg2 = wxString_in_helper(obj1);
8852 if (arg2 == NULL) SWIG_fail;
8853 temp2 = true;
8854 }
d55e5bfc
RD
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8857 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
d55e5bfc
RD
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 {
093d3ff1
RD
8863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8864 }
8865 {
8866 if (temp2)
8867 delete arg2;
d55e5bfc
RD
8868 }
8869 return resultobj;
8870 fail:
093d3ff1
RD
8871 {
8872 if (temp2)
8873 delete arg2;
8874 }
d55e5bfc
RD
8875 return NULL;
8876}
8877
8878
093d3ff1 8879static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8880 PyObject *resultobj;
093d3ff1 8881 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d55e5bfc
RD
8882 wxString result;
8883 PyObject * obj0 = 0 ;
8884 char *kwnames[] = {
093d3ff1 8885 (char *) "self", NULL
d55e5bfc
RD
8886 };
8887
093d3ff1
RD
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
8889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8890 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8893 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
d55e5bfc
RD
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 {
8899#if wxUSE_UNICODE
8900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8901#else
8902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8903#endif
8904 }
8905 return resultobj;
8906 fail:
8907 return NULL;
8908}
8909
8910
093d3ff1
RD
8911static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
8912 PyObject *obj;
8913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8914 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
8915 Py_INCREF(obj);
8916 return Py_BuildValue((char *)"");
8917}
8918static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 8919 PyObject *resultobj;
093d3ff1
RD
8920 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8921 wxString *arg2 = (wxString *) 0 ;
8922 bool temp2 = false ;
d55e5bfc 8923 PyObject * obj0 = 0 ;
093d3ff1 8924 PyObject * obj1 = 0 ;
d55e5bfc 8925 char *kwnames[] = {
093d3ff1 8926 (char *) "self",(char *) "facename", NULL
d55e5bfc
RD
8927 };
8928
093d3ff1
RD
8929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
8930 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8931 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 8932 {
093d3ff1
RD
8933 arg2 = wxString_in_helper(obj1);
8934 if (arg2 == NULL) SWIG_fail;
8935 temp2 = true;
d55e5bfc 8936 }
093d3ff1
RD
8937 if (arg1) (arg1)->facename = *arg2;
8938
8939 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc 8940 {
093d3ff1
RD
8941 if (temp2)
8942 delete arg2;
d55e5bfc 8943 }
093d3ff1
RD
8944 return resultobj;
8945 fail:
d55e5bfc 8946 {
093d3ff1
RD
8947 if (temp2)
8948 delete arg2;
8949 }
8950 return NULL;
8951}
8952
8953
8954static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
8955 PyObject *resultobj;
8956 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8957 wxString *result;
8958 PyObject * obj0 = 0 ;
8959 char *kwnames[] = {
8960 (char *) "self", NULL
8961 };
8962
8963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
8964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8965 if (SWIG_arg_fail(1)) SWIG_fail;
8966 result = (wxString *)& ((arg1)->facename);
8967
8968 {
8969#if wxUSE_UNICODE
8970 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8971#else
8972 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8973#endif
8974 }
8975 return resultobj;
8976 fail:
8977 return NULL;
8978}
8979
8980
8981static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
8982 PyObject *resultobj;
8983 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8984 wxFontEncoding arg2 ;
8985 PyObject * obj0 = 0 ;
8986 PyObject * obj1 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self",(char *) "encoding", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
8992 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8993 if (SWIG_arg_fail(1)) SWIG_fail;
8994 {
8995 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
8996 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 8997 }
093d3ff1
RD
8998 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
8999
9000 Py_INCREF(Py_None); resultobj = Py_None;
9001 return resultobj;
9002 fail:
9003 return NULL;
9004}
9005
9006
9007static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
9008 PyObject *resultobj;
9009 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9010 wxFontEncoding result;
9011 PyObject * obj0 = 0 ;
9012 char *kwnames[] = {
9013 (char *) "self", NULL
9014 };
9015
9016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
9017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9018 if (SWIG_arg_fail(1)) SWIG_fail;
9019 result = (wxFontEncoding) ((arg1)->encoding);
9020
9021 resultobj = SWIG_From_int((result));
d55e5bfc
RD
9022 return resultobj;
9023 fail:
093d3ff1
RD
9024 return NULL;
9025}
9026
9027
9028static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxNativeEncodingInfo *result;
9031 char *kwnames[] = {
9032 NULL
9033 };
9034
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
d55e5bfc 9036 {
093d3ff1
RD
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
9039
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9042 }
093d3ff1
RD
9043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
9044 return resultobj;
9045 fail:
d55e5bfc
RD
9046 return NULL;
9047}
9048
9049
093d3ff1 9050static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9051 PyObject *resultobj;
093d3ff1 9052 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d55e5bfc 9053 PyObject * obj0 = 0 ;
d55e5bfc 9054 char *kwnames[] = {
093d3ff1 9055 (char *) "self", NULL
d55e5bfc
RD
9056 };
9057
093d3ff1
RD
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
9059 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9060 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9061 {
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9063 delete arg1;
d55e5bfc
RD
9064
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 Py_INCREF(Py_None); resultobj = Py_None;
9069 return resultobj;
9070 fail:
9071 return NULL;
9072}
9073
9074
093d3ff1 9075static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9076 PyObject *resultobj;
093d3ff1 9077 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d55e5bfc 9078 wxString *arg2 = 0 ;
093d3ff1 9079 bool result;
ae8162c8 9080 bool temp2 = false ;
d55e5bfc
RD
9081 PyObject * obj0 = 0 ;
9082 PyObject * obj1 = 0 ;
9083 char *kwnames[] = {
093d3ff1 9084 (char *) "self",(char *) "s", NULL
d55e5bfc
RD
9085 };
9086
093d3ff1
RD
9087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
9088 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9089 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9090 {
9091 arg2 = wxString_in_helper(obj1);
9092 if (arg2 == NULL) SWIG_fail;
ae8162c8 9093 temp2 = true;
d55e5bfc
RD
9094 }
9095 {
9096 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9097 result = (bool)(arg1)->FromString((wxString const &)*arg2);
d55e5bfc
RD
9098
9099 wxPyEndAllowThreads(__tstate);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
093d3ff1
RD
9102 {
9103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9104 }
d55e5bfc
RD
9105 {
9106 if (temp2)
9107 delete arg2;
9108 }
9109 return resultobj;
9110 fail:
9111 {
9112 if (temp2)
9113 delete arg2;
9114 }
9115 return NULL;
9116}
9117
9118
093d3ff1 9119static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9120 PyObject *resultobj;
093d3ff1 9121 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d55e5bfc 9122 wxString result;
093d3ff1 9123 PyObject * obj0 = 0 ;
d55e5bfc 9124 char *kwnames[] = {
093d3ff1 9125 (char *) "self", NULL
d55e5bfc
RD
9126 };
9127
093d3ff1
RD
9128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
9129 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9130 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9133 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
d55e5bfc
RD
9134
9135 wxPyEndAllowThreads(__tstate);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
9138 {
9139#if wxUSE_UNICODE
9140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9141#else
9142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9143#endif
9144 }
9145 return resultobj;
9146 fail:
9147 return NULL;
9148}
9149
9150
093d3ff1
RD
9151static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
9152 PyObject *obj;
9153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9154 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
9155 Py_INCREF(obj);
9156 return Py_BuildValue((char *)"");
9157}
9158static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9159 PyObject *resultobj;
093d3ff1
RD
9160 wxFontEncoding arg1 ;
9161 wxNativeEncodingInfo *result;
d55e5bfc 9162 PyObject * obj0 = 0 ;
d55e5bfc 9163 char *kwnames[] = {
093d3ff1 9164 (char *) "encoding", NULL
d55e5bfc
RD
9165 };
9166
093d3ff1
RD
9167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
9168 {
9169 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
9170 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9171 }
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9174 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
d55e5bfc
RD
9175
9176 wxPyEndAllowThreads(__tstate);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
093d3ff1 9179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d55e5bfc
RD
9180 return resultobj;
9181 fail:
d55e5bfc
RD
9182 return NULL;
9183}
9184
9185
093d3ff1 9186static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9187 PyObject *resultobj;
093d3ff1 9188 wxNativeEncodingInfo *arg1 = 0 ;
d55e5bfc 9189 bool result;
d55e5bfc 9190 PyObject * obj0 = 0 ;
d55e5bfc 9191 char *kwnames[] = {
093d3ff1 9192 (char *) "info", NULL
d55e5bfc
RD
9193 };
9194
093d3ff1
RD
9195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
9196 {
9197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9198 if (SWIG_arg_fail(1)) SWIG_fail;
9199 if (arg1 == NULL) {
9200 SWIG_null_ref("wxNativeEncodingInfo");
d55e5bfc 9201 }
093d3ff1 9202 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9203 }
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9206 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
d55e5bfc
RD
9207
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 {
9212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9213 }
d55e5bfc
RD
9214 return resultobj;
9215 fail:
d55e5bfc
RD
9216 return NULL;
9217}
9218
9219
093d3ff1 9220static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9221 PyObject *resultobj;
093d3ff1 9222 wxFontMapper *result;
d55e5bfc 9223 char *kwnames[] = {
093d3ff1 9224 NULL
d55e5bfc
RD
9225 };
9226
093d3ff1 9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
d55e5bfc
RD
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9230 result = (wxFontMapper *)new wxFontMapper();
d55e5bfc
RD
9231
9232 wxPyEndAllowThreads(__tstate);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 }
093d3ff1 9235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d55e5bfc
RD
9236 return resultobj;
9237 fail:
9238 return NULL;
9239}
9240
9241
093d3ff1 9242static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9243 PyObject *resultobj;
9244 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
d55e5bfc 9245 PyObject * obj0 = 0 ;
d55e5bfc 9246 char *kwnames[] = {
093d3ff1 9247 (char *) "self", NULL
d55e5bfc
RD
9248 };
9249
093d3ff1
RD
9250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
9251 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9252 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9255 delete arg1;
d55e5bfc
RD
9256
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
9261 return resultobj;
9262 fail:
9263 return NULL;
9264}
9265
9266
9267static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj;
9269 wxFontMapper *result;
9270 char *kwnames[] = {
9271 NULL
9272 };
9273
9274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
d55e5bfc 9275 {
093d3ff1
RD
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = (wxFontMapper *)wxFontMapper::Get();
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9281 }
093d3ff1 9282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d55e5bfc
RD
9283 return resultobj;
9284 fail:
093d3ff1
RD
9285 return NULL;
9286}
9287
9288
9289static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
9290 PyObject *resultobj;
9291 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9292 wxFontMapper *result;
9293 PyObject * obj0 = 0 ;
9294 char *kwnames[] = {
9295 (char *) "mapper", NULL
9296 };
9297
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
9299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9300 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 9301 {
093d3ff1
RD
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 result = (wxFontMapper *)wxFontMapper::Set(arg1);
9304
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9307 }
093d3ff1
RD
9308 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
9309 return resultobj;
9310 fail:
d55e5bfc
RD
9311 return NULL;
9312}
9313
9314
093d3ff1 9315static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9316 PyObject *resultobj;
093d3ff1
RD
9317 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9318 wxString *arg2 = 0 ;
9319 bool arg3 = (bool) true ;
9320 wxFontEncoding result;
9321 bool temp2 = false ;
d55e5bfc
RD
9322 PyObject * obj0 = 0 ;
9323 PyObject * obj1 = 0 ;
9324 PyObject * obj2 = 0 ;
d55e5bfc 9325 char *kwnames[] = {
093d3ff1 9326 (char *) "self",(char *) "charset",(char *) "interactive", NULL
d55e5bfc
RD
9327 };
9328
093d3ff1
RD
9329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
9330 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9331 if (SWIG_arg_fail(1)) SWIG_fail;
9332 {
9333 arg2 = wxString_in_helper(obj1);
9334 if (arg2 == NULL) SWIG_fail;
9335 temp2 = true;
d55e5bfc 9336 }
093d3ff1 9337 if (obj2) {
d55e5bfc 9338 {
093d3ff1
RD
9339 arg3 = (bool)(SWIG_As_bool(obj2));
9340 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
9341 }
9342 }
d55e5bfc
RD
9343 {
9344 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9345 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
d55e5bfc
RD
9346
9347 wxPyEndAllowThreads(__tstate);
110da5b0 9348 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9349 }
093d3ff1 9350 resultobj = SWIG_From_int((result));
d55e5bfc 9351 {
093d3ff1
RD
9352 if (temp2)
9353 delete arg2;
d55e5bfc
RD
9354 }
9355 return resultobj;
9356 fail:
9357 {
093d3ff1
RD
9358 if (temp2)
9359 delete arg2;
d55e5bfc
RD
9360 }
9361 return NULL;
9362}
9363
9364
093d3ff1 9365static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9366 PyObject *resultobj;
093d3ff1 9367 size_t result;
d55e5bfc 9368 char *kwnames[] = {
093d3ff1 9369 NULL
d55e5bfc
RD
9370 };
9371
093d3ff1 9372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
d55e5bfc
RD
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9375 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
d55e5bfc
RD
9376
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
093d3ff1
RD
9380 {
9381 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
9382 }
d55e5bfc
RD
9383 return resultobj;
9384 fail:
9385 return NULL;
9386}
9387
9388
093d3ff1 9389static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9390 PyObject *resultobj;
093d3ff1
RD
9391 size_t arg1 ;
9392 wxFontEncoding result;
d55e5bfc
RD
9393 PyObject * obj0 = 0 ;
9394 char *kwnames[] = {
093d3ff1 9395 (char *) "n", NULL
d55e5bfc
RD
9396 };
9397
093d3ff1
RD
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
9399 {
9400 arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0));
9401 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9402 }
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9405 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
d55e5bfc
RD
9406
9407 wxPyEndAllowThreads(__tstate);
110da5b0 9408 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9409 }
093d3ff1 9410 resultobj = SWIG_From_int((result));
d55e5bfc
RD
9411 return resultobj;
9412 fail:
9413 return NULL;
9414}
9415
9416
093d3ff1 9417static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9418 PyObject *resultobj;
093d3ff1
RD
9419 wxFontEncoding arg1 ;
9420 wxString result;
d55e5bfc
RD
9421 PyObject * obj0 = 0 ;
9422 char *kwnames[] = {
093d3ff1 9423 (char *) "encoding", NULL
d55e5bfc
RD
9424 };
9425
093d3ff1 9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
d55e5bfc 9427 {
093d3ff1
RD
9428 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
9429 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9430 }
9431 {
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9433 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
d55e5bfc
RD
9434
9435 wxPyEndAllowThreads(__tstate);
110da5b0 9436 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9437 }
d55e5bfc 9438 {
093d3ff1
RD
9439#if wxUSE_UNICODE
9440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9441#else
9442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9443#endif
d55e5bfc
RD
9444 }
9445 return resultobj;
9446 fail:
d55e5bfc
RD
9447 return NULL;
9448}
9449
9450
093d3ff1 9451static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9452 PyObject *resultobj;
093d3ff1
RD
9453 wxFontEncoding arg1 ;
9454 wxString result;
d55e5bfc 9455 PyObject * obj0 = 0 ;
d55e5bfc 9456 char *kwnames[] = {
093d3ff1 9457 (char *) "encoding", NULL
d55e5bfc
RD
9458 };
9459
093d3ff1
RD
9460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
9461 {
9462 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
9463 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9464 }
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9467 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
d55e5bfc
RD
9468
9469 wxPyEndAllowThreads(__tstate);
110da5b0 9470 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9471 }
d55e5bfc 9472 {
093d3ff1
RD
9473#if wxUSE_UNICODE
9474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9475#else
9476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9477#endif
d55e5bfc
RD
9478 }
9479 return resultobj;
9480 fail:
d55e5bfc
RD
9481 return NULL;
9482}
9483
9484
093d3ff1 9485static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
5e483524 9486 PyObject *resultobj;
093d3ff1
RD
9487 wxString *arg1 = 0 ;
9488 wxFontEncoding result;
9489 bool temp1 = false ;
5e483524 9490 PyObject * obj0 = 0 ;
5e483524 9491 char *kwnames[] = {
093d3ff1 9492 (char *) "name", NULL
5e483524
RD
9493 };
9494
093d3ff1 9495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
5e483524 9496 {
093d3ff1
RD
9497 arg1 = wxString_in_helper(obj0);
9498 if (arg1 == NULL) SWIG_fail;
9499 temp1 = true;
5e483524
RD
9500 }
9501 {
5e483524 9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9503 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
5e483524
RD
9504
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
093d3ff1 9508 resultobj = SWIG_From_int((result));
5e483524 9509 {
093d3ff1
RD
9510 if (temp1)
9511 delete arg1;
5e483524
RD
9512 }
9513 return resultobj;
9514 fail:
9515 {
093d3ff1
RD
9516 if (temp1)
9517 delete arg1;
5e483524
RD
9518 }
9519 return NULL;
9520}
9521
9522
093d3ff1 9523static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9524 PyObject *resultobj;
093d3ff1
RD
9525 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9526 wxString *arg2 = 0 ;
9527 bool temp2 = false ;
d55e5bfc
RD
9528 PyObject * obj0 = 0 ;
9529 PyObject * obj1 = 0 ;
9530 char *kwnames[] = {
093d3ff1 9531 (char *) "self",(char *) "prefix", NULL
d55e5bfc
RD
9532 };
9533
093d3ff1
RD
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
9535 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9536 if (SWIG_arg_fail(1)) SWIG_fail;
9537 {
9538 arg2 = wxString_in_helper(obj1);
9539 if (arg2 == NULL) SWIG_fail;
9540 temp2 = true;
9541 }
d55e5bfc
RD
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9544 (arg1)->SetConfigPath((wxString const &)*arg2);
d55e5bfc
RD
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
093d3ff1 9549 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc 9550 {
093d3ff1
RD
9551 if (temp2)
9552 delete arg2;
d55e5bfc
RD
9553 }
9554 return resultobj;
9555 fail:
093d3ff1
RD
9556 {
9557 if (temp2)
9558 delete arg2;
9559 }
d55e5bfc
RD
9560 return NULL;
9561}
9562
9563
093d3ff1 9564static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9565 PyObject *resultobj;
093d3ff1 9566 wxString result;
d55e5bfc 9567 char *kwnames[] = {
093d3ff1 9568 NULL
d55e5bfc
RD
9569 };
9570
093d3ff1 9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
d55e5bfc
RD
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9574 result = wxFontMapper::GetDefaultConfigPath();
d55e5bfc
RD
9575
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 {
093d3ff1
RD
9580#if wxUSE_UNICODE
9581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9582#else
9583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9584#endif
d55e5bfc
RD
9585 }
9586 return resultobj;
9587 fail:
9588 return NULL;
9589}
9590
9591
093d3ff1 9592static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9593 PyObject *resultobj;
093d3ff1
RD
9594 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9595 wxFontEncoding arg2 ;
9596 wxString const &arg3_defvalue = wxPyEmptyString ;
9597 wxString *arg3 = (wxString *) &arg3_defvalue ;
9598 bool arg4 = (bool) true ;
9599 PyObject *result;
9600 bool temp3 = false ;
d55e5bfc 9601 PyObject * obj0 = 0 ;
093d3ff1
RD
9602 PyObject * obj1 = 0 ;
9603 PyObject * obj2 = 0 ;
9604 PyObject * obj3 = 0 ;
d55e5bfc 9605 char *kwnames[] = {
093d3ff1 9606 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
d55e5bfc
RD
9607 };
9608
093d3ff1
RD
9609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9610 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9611 if (SWIG_arg_fail(1)) SWIG_fail;
9612 {
9613 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
9614 if (SWIG_arg_fail(2)) SWIG_fail;
9615 }
9616 if (obj2) {
9617 {
9618 arg3 = wxString_in_helper(obj2);
9619 if (arg3 == NULL) SWIG_fail;
9620 temp3 = true;
9621 }
9622 }
9623 if (obj3) {
9624 {
9625 arg4 = (bool)(SWIG_As_bool(obj3));
9626 if (SWIG_arg_fail(4)) SWIG_fail;
9627 }
9628 }
d55e5bfc
RD
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9631 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
d55e5bfc
RD
9632
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) SWIG_fail;
9635 }
093d3ff1
RD
9636 resultobj = result;
9637 {
9638 if (temp3)
9639 delete arg3;
9640 }
d55e5bfc
RD
9641 return resultobj;
9642 fail:
093d3ff1
RD
9643 {
9644 if (temp3)
9645 delete arg3;
9646 }
d55e5bfc
RD
9647 return NULL;
9648}
9649
9650
093d3ff1 9651static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
5e483524 9652 PyObject *resultobj;
093d3ff1
RD
9653 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9654 wxFontEncoding arg2 ;
9655 wxString const &arg3_defvalue = wxPyEmptyString ;
9656 wxString *arg3 = (wxString *) &arg3_defvalue ;
9657 bool result;
9658 bool temp3 = false ;
5e483524 9659 PyObject * obj0 = 0 ;
093d3ff1
RD
9660 PyObject * obj1 = 0 ;
9661 PyObject * obj2 = 0 ;
5e483524 9662 char *kwnames[] = {
093d3ff1 9663 (char *) "self",(char *) "encoding",(char *) "facename", NULL
5e483524
RD
9664 };
9665
093d3ff1
RD
9666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
9667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9668 if (SWIG_arg_fail(1)) SWIG_fail;
9669 {
9670 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
9671 if (SWIG_arg_fail(2)) SWIG_fail;
9672 }
9673 if (obj2) {
9674 {
9675 arg3 = wxString_in_helper(obj2);
9676 if (arg3 == NULL) SWIG_fail;
9677 temp3 = true;
9678 }
9679 }
5e483524
RD
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9682 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
5e483524
RD
9683
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 {
093d3ff1
RD
9688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9689 }
9690 {
9691 if (temp3)
9692 delete arg3;
5e483524
RD
9693 }
9694 return resultobj;
9695 fail:
093d3ff1
RD
9696 {
9697 if (temp3)
9698 delete arg3;
9699 }
5e483524
RD
9700 return NULL;
9701}
9702
9703
093d3ff1 9704static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
5e483524 9705 PyObject *resultobj;
093d3ff1
RD
9706 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9707 wxWindow *arg2 = (wxWindow *) 0 ;
5e483524 9708 PyObject * obj0 = 0 ;
093d3ff1 9709 PyObject * obj1 = 0 ;
5e483524 9710 char *kwnames[] = {
093d3ff1 9711 (char *) "self",(char *) "parent", NULL
5e483524
RD
9712 };
9713
093d3ff1
RD
9714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
9715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9716 if (SWIG_arg_fail(1)) SWIG_fail;
9717 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
9718 if (SWIG_arg_fail(2)) SWIG_fail;
5e483524
RD
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9721 (arg1)->SetDialogParent(arg2);
5e483524
RD
9722
9723 wxPyEndAllowThreads(__tstate);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
093d3ff1 9726 Py_INCREF(Py_None); resultobj = Py_None;
5e483524
RD
9727 return resultobj;
9728 fail:
9729 return NULL;
9730}
9731
9732
093d3ff1 9733static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9734 PyObject *resultobj;
093d3ff1
RD
9735 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9736 wxString *arg2 = 0 ;
9737 bool temp2 = false ;
d55e5bfc 9738 PyObject * obj0 = 0 ;
093d3ff1 9739 PyObject * obj1 = 0 ;
d55e5bfc 9740 char *kwnames[] = {
093d3ff1 9741 (char *) "self",(char *) "title", NULL
d55e5bfc
RD
9742 };
9743
093d3ff1
RD
9744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
9745 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9746 if (SWIG_arg_fail(1)) SWIG_fail;
9747 {
9748 arg2 = wxString_in_helper(obj1);
9749 if (arg2 == NULL) SWIG_fail;
9750 temp2 = true;
9751 }
d55e5bfc
RD
9752 {
9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9754 (arg1)->SetDialogTitle((wxString const &)*arg2);
d55e5bfc
RD
9755
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
093d3ff1
RD
9759 Py_INCREF(Py_None); resultobj = Py_None;
9760 {
9761 if (temp2)
9762 delete arg2;
9763 }
d55e5bfc
RD
9764 return resultobj;
9765 fail:
093d3ff1
RD
9766 {
9767 if (temp2)
9768 delete arg2;
9769 }
d55e5bfc
RD
9770 return NULL;
9771}
9772
9773
093d3ff1
RD
9774static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
9775 PyObject *obj;
9776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9777 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
9778 Py_INCREF(obj);
9779 return Py_BuildValue((char *)"");
9780}
9781static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9782 PyObject *resultobj;
093d3ff1
RD
9783 int arg1 ;
9784 int arg2 ;
9785 int arg3 ;
9786 int arg4 ;
9787 bool arg5 = (bool) false ;
9788 wxString const &arg6_defvalue = wxPyEmptyString ;
9789 wxString *arg6 = (wxString *) &arg6_defvalue ;
9790 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9791 wxFont *result;
9792 bool temp6 = false ;
d55e5bfc 9793 PyObject * obj0 = 0 ;
093d3ff1
RD
9794 PyObject * obj1 = 0 ;
9795 PyObject * obj2 = 0 ;
9796 PyObject * obj3 = 0 ;
9797 PyObject * obj4 = 0 ;
9798 PyObject * obj5 = 0 ;
9799 PyObject * obj6 = 0 ;
d55e5bfc 9800 char *kwnames[] = {
093d3ff1 9801 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
d55e5bfc
RD
9802 };
9803
093d3ff1
RD
9804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9805 {
9806 arg1 = (int)(SWIG_As_int(obj0));
9807 if (SWIG_arg_fail(1)) SWIG_fail;
9808 }
9809 {
9810 arg2 = (int)(SWIG_As_int(obj1));
9811 if (SWIG_arg_fail(2)) SWIG_fail;
9812 }
9813 {
9814 arg3 = (int)(SWIG_As_int(obj2));
9815 if (SWIG_arg_fail(3)) SWIG_fail;
9816 }
9817 {
9818 arg4 = (int)(SWIG_As_int(obj3));
9819 if (SWIG_arg_fail(4)) SWIG_fail;
9820 }
9821 if (obj4) {
9822 {
9823 arg5 = (bool)(SWIG_As_bool(obj4));
9824 if (SWIG_arg_fail(5)) SWIG_fail;
9825 }
9826 }
9827 if (obj5) {
9828 {
9829 arg6 = wxString_in_helper(obj5);
9830 if (arg6 == NULL) SWIG_fail;
9831 temp6 = true;
9832 }
9833 }
9834 if (obj6) {
9835 {
9836 arg7 = (wxFontEncoding)(SWIG_As_int(obj6));
9837 if (SWIG_arg_fail(7)) SWIG_fail;
9838 }
9839 }
d55e5bfc 9840 {
093d3ff1 9841 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9843 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
d55e5bfc
RD
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
093d3ff1
RD
9848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9849 {
9850 if (temp6)
9851 delete arg6;
9852 }
d55e5bfc
RD
9853 return resultobj;
9854 fail:
093d3ff1
RD
9855 {
9856 if (temp6)
9857 delete arg6;
9858 }
d55e5bfc
RD
9859 return NULL;
9860}
9861
9862
093d3ff1 9863static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9864 PyObject *resultobj;
9865 wxFont *arg1 = (wxFont *) 0 ;
d55e5bfc
RD
9866 PyObject * obj0 = 0 ;
9867 char *kwnames[] = {
9868 (char *) "self", NULL
9869 };
9870
093d3ff1
RD
9871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
9872 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9873 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9876 delete arg1;
d55e5bfc
RD
9877
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
093d3ff1 9881 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
9882 return resultobj;
9883 fail:
9884 return NULL;
9885}
9886
9887
093d3ff1 9888static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9889 PyObject *resultobj;
093d3ff1
RD
9890 wxNativeFontInfo *arg1 = 0 ;
9891 wxFont *result;
d55e5bfc
RD
9892 PyObject * obj0 = 0 ;
9893 char *kwnames[] = {
093d3ff1 9894 (char *) "info", NULL
d55e5bfc
RD
9895 };
9896
093d3ff1
RD
9897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
9898 {
9899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9900 if (SWIG_arg_fail(1)) SWIG_fail;
9901 if (arg1 == NULL) {
9902 SWIG_null_ref("wxNativeFontInfo");
9903 }
9904 if (SWIG_arg_fail(1)) SWIG_fail;
9905 }
d55e5bfc 9906 {
093d3ff1 9907 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9909 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
d55e5bfc
RD
9910
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
093d3ff1 9914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d55e5bfc
RD
9915 return resultobj;
9916 fail:
9917 return NULL;
9918}
9919
9920
093d3ff1 9921static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9922 PyObject *resultobj;
093d3ff1
RD
9923 wxString *arg1 = 0 ;
9924 wxFont *result;
9925 bool temp1 = false ;
d55e5bfc
RD
9926 PyObject * obj0 = 0 ;
9927 char *kwnames[] = {
093d3ff1 9928 (char *) "info", NULL
d55e5bfc
RD
9929 };
9930
093d3ff1
RD
9931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
9932 {
9933 arg1 = wxString_in_helper(obj0);
9934 if (arg1 == NULL) SWIG_fail;
9935 temp1 = true;
9936 }
d55e5bfc 9937 {
093d3ff1 9938 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9940 result = (wxFont *)new_wxFont((wxString const &)*arg1);
d55e5bfc
RD
9941
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
093d3ff1 9945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d55e5bfc 9946 {
093d3ff1
RD
9947 if (temp1)
9948 delete arg1;
d55e5bfc
RD
9949 }
9950 return resultobj;
9951 fail:
093d3ff1
RD
9952 {
9953 if (temp1)
9954 delete arg1;
9955 }
d55e5bfc
RD
9956 return NULL;
9957}
9958
9959
a97cefba 9960static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9961 PyObject *resultobj;
093d3ff1
RD
9962 int arg1 ;
9963 wxFontFamily arg2 ;
9964 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9965 wxString const &arg4_defvalue = wxPyEmptyString ;
9966 wxString *arg4 = (wxString *) &arg4_defvalue ;
9967 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9968 wxFont *result;
9969 bool temp4 = false ;
d55e5bfc 9970 PyObject * obj0 = 0 ;
093d3ff1
RD
9971 PyObject * obj1 = 0 ;
9972 PyObject * obj2 = 0 ;
9973 PyObject * obj3 = 0 ;
9974 PyObject * obj4 = 0 ;
d55e5bfc 9975 char *kwnames[] = {
093d3ff1 9976 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
d55e5bfc
RD
9977 };
9978
a97cefba 9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
093d3ff1
RD
9980 {
9981 arg1 = (int)(SWIG_As_int(obj0));
9982 if (SWIG_arg_fail(1)) SWIG_fail;
9983 }
9984 {
9985 arg2 = (wxFontFamily)(SWIG_As_int(obj1));
9986 if (SWIG_arg_fail(2)) SWIG_fail;
9987 }
9988 if (obj2) {
9989 {
9990 arg3 = (int)(SWIG_As_int(obj2));
9991 if (SWIG_arg_fail(3)) SWIG_fail;
9992 }
9993 }
9994 if (obj3) {
9995 {
9996 arg4 = wxString_in_helper(obj3);
9997 if (arg4 == NULL) SWIG_fail;
9998 temp4 = true;
9999 }
10000 }
10001 if (obj4) {
10002 {
10003 arg5 = (wxFontEncoding)(SWIG_As_int(obj4));
10004 if (SWIG_arg_fail(5)) SWIG_fail;
10005 }
10006 }
d55e5bfc 10007 {
093d3ff1 10008 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10010 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
d55e5bfc
RD
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
093d3ff1
RD
10015 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10016 {
10017 if (temp4)
10018 delete arg4;
10019 }
d55e5bfc
RD
10020 return resultobj;
10021 fail:
093d3ff1
RD
10022 {
10023 if (temp4)
10024 delete arg4;
10025 }
d55e5bfc
RD
10026 return NULL;
10027}
10028
10029
093d3ff1 10030static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10031 PyObject *resultobj;
093d3ff1
RD
10032 wxSize *arg1 = 0 ;
10033 int arg2 ;
10034 int arg3 ;
10035 int arg4 ;
10036 bool arg5 = (bool) false ;
10037 wxString const &arg6_defvalue = wxEmptyString ;
10038 wxString *arg6 = (wxString *) &arg6_defvalue ;
10039 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10040 wxFont *result;
10041 wxSize temp1 ;
10042 bool temp6 = false ;
d55e5bfc 10043 PyObject * obj0 = 0 ;
093d3ff1
RD
10044 PyObject * obj1 = 0 ;
10045 PyObject * obj2 = 0 ;
10046 PyObject * obj3 = 0 ;
10047 PyObject * obj4 = 0 ;
10048 PyObject * obj5 = 0 ;
10049 PyObject * obj6 = 0 ;
d55e5bfc 10050 char *kwnames[] = {
093d3ff1 10051 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
d55e5bfc
RD
10052 };
10053
093d3ff1
RD
10054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10055 {
10056 arg1 = &temp1;
10057 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
10058 }
10059 {
10060 arg2 = (int)(SWIG_As_int(obj1));
10061 if (SWIG_arg_fail(2)) SWIG_fail;
10062 }
10063 {
10064 arg3 = (int)(SWIG_As_int(obj2));
10065 if (SWIG_arg_fail(3)) SWIG_fail;
10066 }
10067 {
10068 arg4 = (int)(SWIG_As_int(obj3));
10069 if (SWIG_arg_fail(4)) SWIG_fail;
10070 }
10071 if (obj4) {
10072 {
10073 arg5 = (bool)(SWIG_As_bool(obj4));
10074 if (SWIG_arg_fail(5)) SWIG_fail;
10075 }
10076 }
10077 if (obj5) {
10078 {
10079 arg6 = wxString_in_helper(obj5);
10080 if (arg6 == NULL) SWIG_fail;
10081 temp6 = true;
10082 }
10083 }
10084 if (obj6) {
10085 {
10086 arg7 = (wxFontEncoding)(SWIG_As_int(obj6));
10087 if (SWIG_arg_fail(7)) SWIG_fail;
10088 }
10089 }
d55e5bfc 10090 {
093d3ff1 10091 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 10092 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10093 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
d55e5bfc
RD
10094
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
093d3ff1
RD
10098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10099 {
10100 if (temp6)
10101 delete arg6;
10102 }
d55e5bfc
RD
10103 return resultobj;
10104 fail:
093d3ff1
RD
10105 {
10106 if (temp6)
10107 delete arg6;
10108 }
d55e5bfc
RD
10109 return NULL;
10110}
10111
10112
a97cefba
RD
10113static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10114 PyObject *resultobj;
10115 wxSize *arg1 = 0 ;
10116 wxFontFamily arg2 ;
10117 int arg3 = (int) wxFONTFLAG_DEFAULT ;
10118 wxString const &arg4_defvalue = wxEmptyString ;
10119 wxString *arg4 = (wxString *) &arg4_defvalue ;
10120 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10121 wxFont *result;
10122 wxSize temp1 ;
10123 bool temp4 = false ;
10124 PyObject * obj0 = 0 ;
10125 PyObject * obj1 = 0 ;
10126 PyObject * obj2 = 0 ;
10127 PyObject * obj3 = 0 ;
10128 PyObject * obj4 = 0 ;
10129 char *kwnames[] = {
10130 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
10131 };
10132
10133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10134 {
10135 arg1 = &temp1;
10136 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
10137 }
10138 {
10139 arg2 = (wxFontFamily)(SWIG_As_int(obj1));
10140 if (SWIG_arg_fail(2)) SWIG_fail;
10141 }
10142 if (obj2) {
10143 {
10144 arg3 = (int)(SWIG_As_int(obj2));
10145 if (SWIG_arg_fail(3)) SWIG_fail;
10146 }
10147 }
10148 if (obj3) {
10149 {
10150 arg4 = wxString_in_helper(obj3);
10151 if (arg4 == NULL) SWIG_fail;
10152 temp4 = true;
10153 }
10154 }
10155 if (obj4) {
10156 {
10157 arg5 = (wxFontEncoding)(SWIG_As_int(obj4));
10158 if (SWIG_arg_fail(5)) SWIG_fail;
10159 }
10160 }
10161 {
10162 if (!wxPyCheckForApp()) SWIG_fail;
10163 PyThreadState* __tstate = wxPyBeginAllowThreads();
10164 result = (wxFont *)new_wxFont((wxSize const &)*arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
10165
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 }
10169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10170 {
10171 if (temp4)
10172 delete arg4;
10173 }
10174 return resultobj;
10175 fail:
10176 {
10177 if (temp4)
10178 delete arg4;
10179 }
10180 return NULL;
10181}
10182
10183
093d3ff1 10184static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10185 PyObject *resultobj;
10186 wxFont *arg1 = (wxFont *) 0 ;
10187 bool result;
10188 PyObject * obj0 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self", NULL
10191 };
10192
093d3ff1
RD
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
10194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10195 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10198 result = (bool)((wxFont const *)arg1)->Ok();
d55e5bfc
RD
10199
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 {
10204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10205 }
10206 return resultobj;
10207 fail:
10208 return NULL;
10209}
10210
10211
093d3ff1 10212static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10213 PyObject *resultobj;
10214 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1
RD
10215 wxFont *arg2 = (wxFont *) 0 ;
10216 bool result;
d55e5bfc 10217 PyObject * obj0 = 0 ;
093d3ff1 10218 PyObject * obj1 = 0 ;
d55e5bfc 10219 char *kwnames[] = {
093d3ff1 10220 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
10221 };
10222
093d3ff1
RD
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
10224 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10225 if (SWIG_arg_fail(1)) SWIG_fail;
10226 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10227 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10230 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
d55e5bfc
RD
10231
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
093d3ff1 10236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
10237 }
10238 return resultobj;
10239 fail:
10240 return NULL;
10241}
10242
10243
093d3ff1 10244static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10245 PyObject *resultobj;
10246 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1
RD
10247 wxFont *arg2 = (wxFont *) 0 ;
10248 bool result;
d55e5bfc 10249 PyObject * obj0 = 0 ;
093d3ff1 10250 PyObject * obj1 = 0 ;
d55e5bfc 10251 char *kwnames[] = {
093d3ff1 10252 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
10253 };
10254
093d3ff1
RD
10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
10256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10257 if (SWIG_arg_fail(1)) SWIG_fail;
10258 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10259 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
10260 {
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10262 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d55e5bfc
RD
10263
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 {
093d3ff1 10268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
10269 }
10270 return resultobj;
10271 fail:
10272 return NULL;
10273}
10274
10275
093d3ff1 10276static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10277 PyObject *resultobj;
10278 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10279 int result;
d55e5bfc 10280 PyObject * obj0 = 0 ;
d55e5bfc 10281 char *kwnames[] = {
093d3ff1 10282 (char *) "self", NULL
d55e5bfc
RD
10283 };
10284
093d3ff1
RD
10285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
10286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10287 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10288 {
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10290 result = (int)((wxFont const *)arg1)->GetPointSize();
d55e5bfc
RD
10291
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
093d3ff1
RD
10295 {
10296 resultobj = SWIG_From_int((int)(result));
10297 }
d55e5bfc
RD
10298 return resultobj;
10299 fail:
10300 return NULL;
10301}
10302
10303
093d3ff1 10304static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
5e483524
RD
10305 PyObject *resultobj;
10306 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10307 wxSize result;
5e483524 10308 PyObject * obj0 = 0 ;
5e483524 10309 char *kwnames[] = {
093d3ff1 10310 (char *) "self", NULL
5e483524
RD
10311 };
10312
093d3ff1
RD
10313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
10314 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10315 if (SWIG_arg_fail(1)) SWIG_fail;
5e483524
RD
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10318 result = ((wxFont const *)arg1)->GetPixelSize();
5e483524
RD
10319
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 }
093d3ff1
RD
10323 {
10324 wxSize * resultptr;
10325 resultptr = new wxSize((wxSize &)(result));
10326 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10327 }
5e483524
RD
10328 return resultobj;
10329 fail:
10330 return NULL;
10331}
10332
10333
093d3ff1 10334static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10335 PyObject *resultobj;
10336 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10337 bool result;
d55e5bfc 10338 PyObject * obj0 = 0 ;
d55e5bfc 10339 char *kwnames[] = {
093d3ff1 10340 (char *) "self", NULL
d55e5bfc
RD
10341 };
10342
093d3ff1
RD
10343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
10344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10345 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10348 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
d55e5bfc
RD
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
093d3ff1
RD
10353 {
10354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10355 }
d55e5bfc
RD
10356 return resultobj;
10357 fail:
10358 return NULL;
10359}
10360
10361
093d3ff1 10362static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10363 PyObject *resultobj;
10364 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10365 int result;
d55e5bfc 10366 PyObject * obj0 = 0 ;
d55e5bfc 10367 char *kwnames[] = {
093d3ff1 10368 (char *) "self", NULL
d55e5bfc
RD
10369 };
10370
093d3ff1
RD
10371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
10372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10373 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10374 {
10375 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10376 result = (int)((wxFont const *)arg1)->GetFamily();
d55e5bfc
RD
10377
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
093d3ff1
RD
10381 {
10382 resultobj = SWIG_From_int((int)(result));
10383 }
d55e5bfc
RD
10384 return resultobj;
10385 fail:
10386 return NULL;
10387}
10388
10389
093d3ff1 10390static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10391 PyObject *resultobj;
10392 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10393 int result;
d55e5bfc 10394 PyObject * obj0 = 0 ;
d55e5bfc 10395 char *kwnames[] = {
093d3ff1 10396 (char *) "self", NULL
d55e5bfc
RD
10397 };
10398
093d3ff1
RD
10399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
10400 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10401 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10404 result = (int)((wxFont const *)arg1)->GetStyle();
d55e5bfc
RD
10405
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
093d3ff1
RD
10409 {
10410 resultobj = SWIG_From_int((int)(result));
10411 }
d55e5bfc
RD
10412 return resultobj;
10413 fail:
10414 return NULL;
10415}
10416
10417
093d3ff1 10418static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10419 PyObject *resultobj;
10420 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10421 int result;
d55e5bfc 10422 PyObject * obj0 = 0 ;
d55e5bfc 10423 char *kwnames[] = {
093d3ff1 10424 (char *) "self", NULL
d55e5bfc
RD
10425 };
10426
093d3ff1
RD
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
10428 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10429 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10432 result = (int)((wxFont const *)arg1)->GetWeight();
d55e5bfc
RD
10433
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
d55e5bfc 10437 {
093d3ff1 10438 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
10439 }
10440 return resultobj;
10441 fail:
d55e5bfc
RD
10442 return NULL;
10443}
10444
10445
093d3ff1 10446static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10447 PyObject *resultobj;
10448 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10449 bool result;
d55e5bfc 10450 PyObject * obj0 = 0 ;
d55e5bfc 10451 char *kwnames[] = {
093d3ff1 10452 (char *) "self", NULL
d55e5bfc
RD
10453 };
10454
093d3ff1
RD
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
10456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10457 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10460 result = (bool)((wxFont const *)arg1)->GetUnderlined();
d55e5bfc
RD
10461
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
093d3ff1
RD
10465 {
10466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10467 }
d55e5bfc
RD
10468 return resultobj;
10469 fail:
10470 return NULL;
10471}
10472
10473
093d3ff1 10474static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10475 PyObject *resultobj;
10476 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10477 wxString result;
d55e5bfc 10478 PyObject * obj0 = 0 ;
d55e5bfc 10479 char *kwnames[] = {
093d3ff1 10480 (char *) "self", NULL
d55e5bfc
RD
10481 };
10482
093d3ff1
RD
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
10484 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10485 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10488 result = ((wxFont const *)arg1)->GetFaceName();
d55e5bfc
RD
10489
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
093d3ff1
RD
10493 {
10494#if wxUSE_UNICODE
10495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10496#else
10497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10498#endif
10499 }
d55e5bfc
RD
10500 return resultobj;
10501 fail:
10502 return NULL;
10503}
10504
10505
093d3ff1 10506static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10507 PyObject *resultobj;
10508 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10509 wxFontEncoding result;
d55e5bfc 10510 PyObject * obj0 = 0 ;
d55e5bfc 10511 char *kwnames[] = {
093d3ff1 10512 (char *) "self", NULL
d55e5bfc
RD
10513 };
10514
093d3ff1
RD
10515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
10516 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10517 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10518 {
10519 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10520 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
d55e5bfc
RD
10521
10522 wxPyEndAllowThreads(__tstate);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 }
093d3ff1 10525 resultobj = SWIG_From_int((result));
d55e5bfc
RD
10526 return resultobj;
10527 fail:
10528 return NULL;
10529}
10530
10531
093d3ff1 10532static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10533 PyObject *resultobj;
10534 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10535 wxNativeFontInfo *result;
d55e5bfc 10536 PyObject * obj0 = 0 ;
d55e5bfc 10537 char *kwnames[] = {
093d3ff1 10538 (char *) "self", NULL
d55e5bfc
RD
10539 };
10540
093d3ff1
RD
10541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
10542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10543 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10546 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
d55e5bfc
RD
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
093d3ff1 10551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d55e5bfc
RD
10552 return resultobj;
10553 fail:
d55e5bfc
RD
10554 return NULL;
10555}
10556
10557
093d3ff1 10558static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10559 PyObject *resultobj;
10560 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10561 bool result;
d55e5bfc 10562 PyObject * obj0 = 0 ;
d55e5bfc 10563 char *kwnames[] = {
093d3ff1 10564 (char *) "self", NULL
d55e5bfc
RD
10565 };
10566
093d3ff1
RD
10567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
10568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10569 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10572 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
d55e5bfc
RD
10573
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
d55e5bfc 10577 {
093d3ff1 10578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
10579 }
10580 return resultobj;
10581 fail:
d55e5bfc
RD
10582 return NULL;
10583}
10584
10585
093d3ff1 10586static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10587 PyObject *resultobj;
10588 wxFont *arg1 = (wxFont *) 0 ;
10589 wxString result;
10590 PyObject * obj0 = 0 ;
10591 char *kwnames[] = {
10592 (char *) "self", NULL
10593 };
10594
093d3ff1
RD
10595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
10596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10597 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10600 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
d55e5bfc
RD
10601
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 {
10606#if wxUSE_UNICODE
10607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10608#else
10609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10610#endif
10611 }
10612 return resultobj;
10613 fail:
10614 return NULL;
10615}
10616
10617
093d3ff1 10618static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10619 PyObject *resultobj;
10620 wxFont *arg1 = (wxFont *) 0 ;
10621 wxString result;
10622 PyObject * obj0 = 0 ;
10623 char *kwnames[] = {
10624 (char *) "self", NULL
10625 };
10626
093d3ff1
RD
10627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
10628 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10629 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10632 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
d55e5bfc
RD
10633
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 {
10638#if wxUSE_UNICODE
10639 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10640#else
10641 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10642#endif
10643 }
10644 return resultobj;
10645 fail:
10646 return NULL;
10647}
10648
10649
093d3ff1 10650static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10651 PyObject *resultobj;
10652 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10653 int arg2 ;
d55e5bfc 10654 PyObject * obj0 = 0 ;
093d3ff1 10655 PyObject * obj1 = 0 ;
d55e5bfc 10656 char *kwnames[] = {
093d3ff1 10657 (char *) "self",(char *) "pointSize", NULL
d55e5bfc
RD
10658 };
10659
093d3ff1
RD
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
10661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10662 if (SWIG_arg_fail(1)) SWIG_fail;
10663 {
10664 arg2 = (int)(SWIG_As_int(obj1));
10665 if (SWIG_arg_fail(2)) SWIG_fail;
10666 }
d55e5bfc
RD
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10669 (arg1)->SetPointSize(arg2);
d55e5bfc
RD
10670
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
093d3ff1 10674 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
10675 return resultobj;
10676 fail:
10677 return NULL;
10678}
10679
10680
093d3ff1 10681static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10682 PyObject *resultobj;
10683 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1
RD
10684 wxSize *arg2 = 0 ;
10685 wxSize temp2 ;
d55e5bfc
RD
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 char *kwnames[] = {
093d3ff1 10689 (char *) "self",(char *) "pixelSize", NULL
d55e5bfc
RD
10690 };
10691
093d3ff1
RD
10692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
10693 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10694 if (SWIG_arg_fail(1)) SWIG_fail;
10695 {
10696 arg2 = &temp2;
10697 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
10698 }
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10701 (arg1)->SetPixelSize((wxSize const &)*arg2);
d55e5bfc
RD
10702
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 Py_INCREF(Py_None); resultobj = Py_None;
10707 return resultobj;
10708 fail:
10709 return NULL;
10710}
10711
10712
093d3ff1 10713static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10714 PyObject *resultobj;
10715 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10716 int arg2 ;
d55e5bfc 10717 PyObject * obj0 = 0 ;
093d3ff1 10718 PyObject * obj1 = 0 ;
d55e5bfc 10719 char *kwnames[] = {
093d3ff1 10720 (char *) "self",(char *) "family", NULL
d55e5bfc
RD
10721 };
10722
093d3ff1
RD
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
10724 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10725 if (SWIG_arg_fail(1)) SWIG_fail;
10726 {
10727 arg2 = (int)(SWIG_As_int(obj1));
10728 if (SWIG_arg_fail(2)) SWIG_fail;
10729 }
d55e5bfc
RD
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10732 (arg1)->SetFamily(arg2);
d55e5bfc
RD
10733
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
093d3ff1 10737 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
10738 return resultobj;
10739 fail:
10740 return NULL;
10741}
10742
10743
093d3ff1 10744static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10745 PyObject *resultobj;
093d3ff1
RD
10746 wxFont *arg1 = (wxFont *) 0 ;
10747 int arg2 ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
d55e5bfc 10750 char *kwnames[] = {
093d3ff1 10751 (char *) "self",(char *) "style", NULL
d55e5bfc
RD
10752 };
10753
093d3ff1
RD
10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
10755 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10756 if (SWIG_arg_fail(1)) SWIG_fail;
10757 {
10758 arg2 = (int)(SWIG_As_int(obj1));
10759 if (SWIG_arg_fail(2)) SWIG_fail;
10760 }
d55e5bfc
RD
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10763 (arg1)->SetStyle(arg2);
d55e5bfc
RD
10764
10765 wxPyEndAllowThreads(__tstate);
110da5b0 10766 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 10767 }
093d3ff1 10768 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
10769 return resultobj;
10770 fail:
10771 return NULL;
10772}
10773
10774
093d3ff1 10775static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10776 PyObject *resultobj;
093d3ff1
RD
10777 wxFont *arg1 = (wxFont *) 0 ;
10778 int arg2 ;
d55e5bfc 10779 PyObject * obj0 = 0 ;
093d3ff1 10780 PyObject * obj1 = 0 ;
d55e5bfc 10781 char *kwnames[] = {
093d3ff1 10782 (char *) "self",(char *) "weight", NULL
d55e5bfc
RD
10783 };
10784
093d3ff1
RD
10785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
10786 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10787 if (SWIG_arg_fail(1)) SWIG_fail;
10788 {
10789 arg2 = (int)(SWIG_As_int(obj1));
10790 if (SWIG_arg_fail(2)) SWIG_fail;
10791 }
d55e5bfc
RD
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10794 (arg1)->SetWeight(arg2);
d55e5bfc
RD
10795
10796 wxPyEndAllowThreads(__tstate);
110da5b0 10797 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10798 }
10799 Py_INCREF(Py_None); resultobj = Py_None;
10800 return resultobj;
10801 fail:
10802 return NULL;
10803}
10804
10805
093d3ff1 10806static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10807 PyObject *resultobj;
093d3ff1
RD
10808 wxFont *arg1 = (wxFont *) 0 ;
10809 wxString *arg2 = 0 ;
10810 bool temp2 = false ;
10811 PyObject * obj0 = 0 ;
10812 PyObject * obj1 = 0 ;
d55e5bfc 10813 char *kwnames[] = {
093d3ff1 10814 (char *) "self",(char *) "faceName", NULL
d55e5bfc
RD
10815 };
10816
093d3ff1
RD
10817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
10818 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10819 if (SWIG_arg_fail(1)) SWIG_fail;
10820 {
10821 arg2 = wxString_in_helper(obj1);
10822 if (arg2 == NULL) SWIG_fail;
10823 temp2 = true;
10824 }
d55e5bfc
RD
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10827 (arg1)->SetFaceName((wxString const &)*arg2);
d55e5bfc
RD
10828
10829 wxPyEndAllowThreads(__tstate);
110da5b0 10830 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 10831 }
093d3ff1
RD
10832 Py_INCREF(Py_None); resultobj = Py_None;
10833 {
10834 if (temp2)
10835 delete arg2;
10836 }
d55e5bfc
RD
10837 return resultobj;
10838 fail:
093d3ff1
RD
10839 {
10840 if (temp2)
10841 delete arg2;
10842 }
d55e5bfc
RD
10843 return NULL;
10844}
10845
10846
093d3ff1 10847static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10848 PyObject *resultobj;
093d3ff1
RD
10849 wxFont *arg1 = (wxFont *) 0 ;
10850 bool arg2 ;
d55e5bfc 10851 PyObject * obj0 = 0 ;
093d3ff1 10852 PyObject * obj1 = 0 ;
d55e5bfc 10853 char *kwnames[] = {
093d3ff1 10854 (char *) "self",(char *) "underlined", NULL
d55e5bfc
RD
10855 };
10856
093d3ff1
RD
10857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
10858 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10859 if (SWIG_arg_fail(1)) SWIG_fail;
10860 {
10861 arg2 = (bool)(SWIG_As_bool(obj1));
10862 if (SWIG_arg_fail(2)) SWIG_fail;
10863 }
d55e5bfc
RD
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10866 (arg1)->SetUnderlined(arg2);
d55e5bfc
RD
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 Py_INCREF(Py_None); resultobj = Py_None;
10872 return resultobj;
10873 fail:
10874 return NULL;
10875}
10876
10877
093d3ff1 10878static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10879 PyObject *resultobj;
093d3ff1
RD
10880 wxFont *arg1 = (wxFont *) 0 ;
10881 wxFontEncoding arg2 ;
d55e5bfc
RD
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
d55e5bfc 10884 char *kwnames[] = {
093d3ff1 10885 (char *) "self",(char *) "encoding", NULL
d55e5bfc
RD
10886 };
10887
093d3ff1
RD
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
10889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10890 if (SWIG_arg_fail(1)) SWIG_fail;
10891 {
10892 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
10893 if (SWIG_arg_fail(2)) SWIG_fail;
10894 }
d55e5bfc
RD
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10897 (arg1)->SetEncoding((wxFontEncoding )arg2);
d55e5bfc
RD
10898
10899 wxPyEndAllowThreads(__tstate);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 }
10902 Py_INCREF(Py_None); resultobj = Py_None;
10903 return resultobj;
10904 fail:
10905 return NULL;
10906}
10907
10908
093d3ff1 10909static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10910 PyObject *resultobj;
093d3ff1
RD
10911 wxFont *arg1 = (wxFont *) 0 ;
10912 wxNativeFontInfo *arg2 = 0 ;
d55e5bfc
RD
10913 PyObject * obj0 = 0 ;
10914 PyObject * obj1 = 0 ;
d55e5bfc 10915 char *kwnames[] = {
093d3ff1 10916 (char *) "self",(char *) "info", NULL
d55e5bfc
RD
10917 };
10918
093d3ff1
RD
10919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
10920 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10921 if (SWIG_arg_fail(1)) SWIG_fail;
10922 {
10923 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
10924 if (SWIG_arg_fail(2)) SWIG_fail;
10925 if (arg2 == NULL) {
10926 SWIG_null_ref("wxNativeFontInfo");
10927 }
10928 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
10929 }
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10932 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
d55e5bfc
RD
10933
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
093d3ff1 10937 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
10938 return resultobj;
10939 fail:
10940 return NULL;
10941}
10942
10943
093d3ff1 10944static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10945 PyObject *resultobj;
093d3ff1
RD
10946 wxFont *arg1 = (wxFont *) 0 ;
10947 wxString *arg2 = 0 ;
ae8162c8 10948 bool temp2 = false ;
d55e5bfc
RD
10949 PyObject * obj0 = 0 ;
10950 PyObject * obj1 = 0 ;
10951 char *kwnames[] = {
093d3ff1 10952 (char *) "self",(char *) "info", NULL
d55e5bfc
RD
10953 };
10954
093d3ff1
RD
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
10956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10957 if (SWIG_arg_fail(1)) SWIG_fail;
10958 {
10959 arg2 = wxString_in_helper(obj1);
10960 if (arg2 == NULL) SWIG_fail;
10961 temp2 = true;
d55e5bfc
RD
10962 }
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10965 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
d55e5bfc
RD
10966
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
093d3ff1 10970 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
10971 {
10972 if (temp2)
10973 delete arg2;
10974 }
10975 return resultobj;
10976 fail:
10977 {
10978 if (temp2)
10979 delete arg2;
10980 }
10981 return NULL;
10982}
10983
10984
093d3ff1 10985static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10986 PyObject *resultobj;
093d3ff1
RD
10987 wxFont *arg1 = (wxFont *) 0 ;
10988 wxString *arg2 = 0 ;
10989 bool temp2 = false ;
d55e5bfc 10990 PyObject * obj0 = 0 ;
093d3ff1 10991 PyObject * obj1 = 0 ;
d55e5bfc 10992 char *kwnames[] = {
093d3ff1 10993 (char *) "self",(char *) "info", NULL
d55e5bfc
RD
10994 };
10995
093d3ff1
RD
10996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
10997 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10998 if (SWIG_arg_fail(1)) SWIG_fail;
10999 {
11000 arg2 = wxString_in_helper(obj1);
11001 if (arg2 == NULL) SWIG_fail;
11002 temp2 = true;
11003 }
d55e5bfc
RD
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11006 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
d55e5bfc
RD
11007
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
093d3ff1
RD
11011 Py_INCREF(Py_None); resultobj = Py_None;
11012 {
11013 if (temp2)
11014 delete arg2;
11015 }
d55e5bfc
RD
11016 return resultobj;
11017 fail:
093d3ff1
RD
11018 {
11019 if (temp2)
11020 delete arg2;
11021 }
d55e5bfc
RD
11022 return NULL;
11023}
11024
11025
093d3ff1 11026static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11027 PyObject *resultobj;
093d3ff1
RD
11028 wxFont *arg1 = (wxFont *) 0 ;
11029 wxString result;
d55e5bfc
RD
11030 PyObject * obj0 = 0 ;
11031 char *kwnames[] = {
11032 (char *) "self", NULL
11033 };
11034
093d3ff1
RD
11035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
11036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11037 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11040 result = ((wxFont const *)arg1)->GetFamilyString();
d55e5bfc
RD
11041
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
093d3ff1
RD
11045 {
11046#if wxUSE_UNICODE
11047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11048#else
11049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11050#endif
11051 }
d55e5bfc
RD
11052 return resultobj;
11053 fail:
11054 return NULL;
11055}
11056
11057
093d3ff1 11058static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11059 PyObject *resultobj;
093d3ff1
RD
11060 wxFont *arg1 = (wxFont *) 0 ;
11061 wxString result;
d55e5bfc 11062 PyObject * obj0 = 0 ;
d55e5bfc 11063 char *kwnames[] = {
093d3ff1 11064 (char *) "self", NULL
d55e5bfc
RD
11065 };
11066
093d3ff1
RD
11067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
11068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11069 if (SWIG_arg_fail(1)) SWIG_fail;
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = ((wxFont const *)arg1)->GetStyleString();
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078#if wxUSE_UNICODE
11079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11080#else
11081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11082#endif
11083 }
d55e5bfc
RD
11084 return resultobj;
11085 fail:
11086 return NULL;
11087}
11088
11089
093d3ff1 11090static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11091 PyObject *resultobj;
093d3ff1
RD
11092 wxFont *arg1 = (wxFont *) 0 ;
11093 wxString result;
d55e5bfc
RD
11094 PyObject * obj0 = 0 ;
11095 char *kwnames[] = {
11096 (char *) "self", NULL
11097 };
11098
093d3ff1
RD
11099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
11100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11101 if (SWIG_arg_fail(1)) SWIG_fail;
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 result = ((wxFont const *)arg1)->GetWeightString();
11105
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 {
11110#if wxUSE_UNICODE
11111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11112#else
11113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11114#endif
11115 }
d55e5bfc
RD
11116 return resultobj;
11117 fail:
11118 return NULL;
11119}
11120
11121
093d3ff1 11122static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11123 PyObject *resultobj;
093d3ff1
RD
11124 wxFont *arg1 = (wxFont *) 0 ;
11125 bool arg2 = (bool) true ;
d55e5bfc
RD
11126 PyObject * obj0 = 0 ;
11127 PyObject * obj1 = 0 ;
11128 char *kwnames[] = {
093d3ff1 11129 (char *) "self",(char *) "no", NULL
d55e5bfc
RD
11130 };
11131
093d3ff1
RD
11132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
11133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11134 if (SWIG_arg_fail(1)) SWIG_fail;
11135 if (obj1) {
11136 {
11137 arg2 = (bool)(SWIG_As_bool(obj1));
11138 if (SWIG_arg_fail(2)) SWIG_fail;
11139 }
d55e5bfc 11140 }
d55e5bfc 11141 {
093d3ff1
RD
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 (arg1)->SetNoAntiAliasing(arg2);
11144
11145 wxPyEndAllowThreads(__tstate);
11146 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 11147 }
093d3ff1 11148 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
11149 return resultobj;
11150 fail:
d55e5bfc
RD
11151 return NULL;
11152}
11153
11154
093d3ff1 11155static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11156 PyObject *resultobj;
093d3ff1
RD
11157 wxFont *arg1 = (wxFont *) 0 ;
11158 bool result;
d55e5bfc
RD
11159 PyObject * obj0 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "self", NULL
11162 };
11163
093d3ff1
RD
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
11165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11166 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 11167 {
093d3ff1
RD
11168 PyThreadState* __tstate = wxPyBeginAllowThreads();
11169 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
11170
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 {
11175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
11176 }
11177 return resultobj;
11178 fail:
11179 return NULL;
11180}
11181
11182
093d3ff1 11183static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11184 PyObject *resultobj;
093d3ff1 11185 wxFontEncoding result;
d55e5bfc 11186 char *kwnames[] = {
093d3ff1 11187 NULL
d55e5bfc
RD
11188 };
11189
093d3ff1 11190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
d55e5bfc 11191 {
093d3ff1
RD
11192 if (!wxPyCheckForApp()) SWIG_fail;
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 11198 }
093d3ff1 11199 resultobj = SWIG_From_int((result));
d55e5bfc
RD
11200 return resultobj;
11201 fail:
d55e5bfc
RD
11202 return NULL;
11203}
11204
11205
093d3ff1 11206static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11207 PyObject *resultobj;
093d3ff1 11208 wxFontEncoding arg1 ;
d55e5bfc
RD
11209 PyObject * obj0 = 0 ;
11210 char *kwnames[] = {
093d3ff1 11211 (char *) "encoding", NULL
d55e5bfc
RD
11212 };
11213
093d3ff1 11214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
d55e5bfc 11215 {
093d3ff1
RD
11216 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
11217 if (SWIG_arg_fail(1)) SWIG_fail;
11218 }
11219 {
11220 if (!wxPyCheckForApp()) SWIG_fail;
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
11223
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 11226 }
093d3ff1 11227 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
11228 return resultobj;
11229 fail:
11230 return NULL;
11231}
11232
11233
093d3ff1 11234static PyObject * Font_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11235 PyObject *obj;
11236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 11237 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
d55e5bfc
RD
11238 Py_INCREF(obj);
11239 return Py_BuildValue((char *)"");
11240}
093d3ff1 11241static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11242 PyObject *resultobj;
093d3ff1 11243 wxPyFontEnumerator *result;
d55e5bfc 11244 char *kwnames[] = {
093d3ff1 11245 NULL
d55e5bfc
RD
11246 };
11247
093d3ff1 11248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
d55e5bfc 11249 {
093d3ff1 11250 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11252 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
d55e5bfc
RD
11253
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 }
093d3ff1 11257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d55e5bfc
RD
11258 return resultobj;
11259 fail:
11260 return NULL;
11261}
11262
11263
093d3ff1 11264static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11265 PyObject *resultobj;
093d3ff1 11266 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
d55e5bfc
RD
11267 PyObject * obj0 = 0 ;
11268 char *kwnames[] = {
11269 (char *) "self", NULL
11270 };
11271
093d3ff1
RD
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
11273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11274 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11275 {
11276 PyThreadState* __tstate = wxPyBeginAllowThreads();
11277 delete arg1;
11278
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 Py_INCREF(Py_None); resultobj = Py_None;
11283 return resultobj;
11284 fail:
11285 return NULL;
11286}
11287
11288
093d3ff1 11289static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11290 PyObject *resultobj;
093d3ff1
RD
11291 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11292 PyObject *arg2 = (PyObject *) 0 ;
11293 PyObject *arg3 = (PyObject *) 0 ;
11294 bool arg4 ;
d55e5bfc
RD
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 PyObject * obj2 = 0 ;
11298 PyObject * obj3 = 0 ;
d55e5bfc 11299 char *kwnames[] = {
093d3ff1 11300 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
d55e5bfc
RD
11301 };
11302
093d3ff1
RD
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11304 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11305 if (SWIG_arg_fail(1)) SWIG_fail;
11306 arg2 = obj1;
11307 arg3 = obj2;
d55e5bfc 11308 {
093d3ff1
RD
11309 arg4 = (bool)(SWIG_As_bool(obj3));
11310 if (SWIG_arg_fail(4)) SWIG_fail;
d55e5bfc
RD
11311 }
11312 {
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11314 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
d55e5bfc
RD
11315
11316 wxPyEndAllowThreads(__tstate);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
093d3ff1 11319 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
11320 return resultobj;
11321 fail:
d55e5bfc
RD
11322 return NULL;
11323}
11324
11325
093d3ff1 11326static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11327 PyObject *resultobj;
093d3ff1
RD
11328 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11329 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
11330 bool arg3 = (bool) false ;
d55e5bfc
RD
11331 bool result;
11332 PyObject * obj0 = 0 ;
11333 PyObject * obj1 = 0 ;
11334 PyObject * obj2 = 0 ;
11335 char *kwnames[] = {
093d3ff1 11336 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
d55e5bfc
RD
11337 };
11338
093d3ff1
RD
11339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
11340 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11341 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 11342 if (obj1) {
093d3ff1
RD
11343 {
11344 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
11345 if (SWIG_arg_fail(2)) SWIG_fail;
11346 }
d55e5bfc
RD
11347 }
11348 if (obj2) {
093d3ff1
RD
11349 {
11350 arg3 = (bool)(SWIG_As_bool(obj2));
11351 if (SWIG_arg_fail(3)) SWIG_fail;
11352 }
d55e5bfc
RD
11353 }
11354 {
11355 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11356 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
d55e5bfc
RD
11357
11358 wxPyEndAllowThreads(__tstate);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 }
11361 {
11362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11363 }
11364 return resultobj;
11365 fail:
11366 return NULL;
11367}
11368
11369
093d3ff1 11370static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11371 PyObject *resultobj;
093d3ff1
RD
11372 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11373 wxString const &arg2_defvalue = wxPyEmptyString ;
11374 wxString *arg2 = (wxString *) &arg2_defvalue ;
11375 bool result;
11376 bool temp2 = false ;
11377 PyObject * obj0 = 0 ;
11378 PyObject * obj1 = 0 ;
d55e5bfc 11379 char *kwnames[] = {
093d3ff1 11380 (char *) "self",(char *) "facename", NULL
d55e5bfc
RD
11381 };
11382
093d3ff1
RD
11383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
11384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11385 if (SWIG_arg_fail(1)) SWIG_fail;
11386 if (obj1) {
11387 {
11388 arg2 = wxString_in_helper(obj1);
11389 if (arg2 == NULL) SWIG_fail;
11390 temp2 = true;
11391 }
11392 }
d55e5bfc
RD
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11395 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
d55e5bfc
RD
11396
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
093d3ff1
RD
11400 {
11401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11402 }
11403 {
11404 if (temp2)
11405 delete arg2;
11406 }
d55e5bfc
RD
11407 return resultobj;
11408 fail:
093d3ff1
RD
11409 {
11410 if (temp2)
11411 delete arg2;
11412 }
d55e5bfc
RD
11413 return NULL;
11414}
11415
11416
093d3ff1 11417static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11418 PyObject *resultobj;
093d3ff1
RD
11419 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11420 PyObject *result;
11421 PyObject * obj0 = 0 ;
d55e5bfc 11422 char *kwnames[] = {
093d3ff1 11423 (char *) "self", NULL
d55e5bfc
RD
11424 };
11425
093d3ff1
RD
11426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
11427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11428 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11431 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
d55e5bfc
RD
11432
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
093d3ff1 11436 resultobj = result;
d55e5bfc
RD
11437 return resultobj;
11438 fail:
11439 return NULL;
11440}
11441
11442
093d3ff1 11443static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11444 PyObject *resultobj;
093d3ff1
RD
11445 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11446 PyObject *result;
11447 PyObject * obj0 = 0 ;
11448 char *kwnames[] = {
11449 (char *) "self", NULL
d55e5bfc
RD
11450 };
11451
093d3ff1
RD
11452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
11453 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11454 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11457 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
d55e5bfc
RD
11458
11459 wxPyEndAllowThreads(__tstate);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 }
093d3ff1
RD
11462 resultobj = result;
11463 return resultobj;
11464 fail:
11465 return NULL;
11466}
11467
11468
11469static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
11470 PyObject *obj;
11471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11472 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
11473 Py_INCREF(obj);
11474 return Py_BuildValue((char *)"");
11475}
11476static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
11477 PyObject *resultobj;
11478 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11479 int arg2 ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 char *kwnames[] = {
11483 (char *) "self",(char *) "Language", NULL
11484 };
11485
11486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
11487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11488 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 11489 {
093d3ff1
RD
11490 arg2 = (int)(SWIG_As_int(obj1));
11491 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 11492 }
093d3ff1
RD
11493 if (arg1) (arg1)->Language = arg2;
11494
11495 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
11496 return resultobj;
11497 fail:
11498 return NULL;
11499}
11500
11501
093d3ff1 11502static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11503 PyObject *resultobj;
093d3ff1
RD
11504 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11505 int result;
d55e5bfc
RD
11506 PyObject * obj0 = 0 ;
11507 char *kwnames[] = {
11508 (char *) "self", NULL
11509 };
11510
093d3ff1
RD
11511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
11512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11513 if (SWIG_arg_fail(1)) SWIG_fail;
11514 result = (int) ((arg1)->Language);
11515
d55e5bfc 11516 {
093d3ff1 11517 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
11518 }
11519 return resultobj;
11520 fail:
11521 return NULL;
11522}
11523
11524
093d3ff1 11525static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11526 PyObject *resultobj;
093d3ff1
RD
11527 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11528 wxString *arg2 = (wxString *) 0 ;
11529 bool temp2 = false ;
d55e5bfc 11530 PyObject * obj0 = 0 ;
093d3ff1 11531 PyObject * obj1 = 0 ;
d55e5bfc 11532 char *kwnames[] = {
093d3ff1 11533 (char *) "self",(char *) "CanonicalName", NULL
d55e5bfc
RD
11534 };
11535
093d3ff1
RD
11536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
11537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11538 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 11539 {
093d3ff1
RD
11540 arg2 = wxString_in_helper(obj1);
11541 if (arg2 == NULL) SWIG_fail;
11542 temp2 = true;
d55e5bfc 11543 }
093d3ff1
RD
11544 if (arg1) (arg1)->CanonicalName = *arg2;
11545
11546 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc 11547 {
093d3ff1
RD
11548 if (temp2)
11549 delete arg2;
d55e5bfc
RD
11550 }
11551 return resultobj;
11552 fail:
093d3ff1
RD
11553 {
11554 if (temp2)
11555 delete arg2;
11556 }
d55e5bfc
RD
11557 return NULL;
11558}
11559
11560
093d3ff1 11561static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11562 PyObject *resultobj;
093d3ff1
RD
11563 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11564 wxString *result;
d55e5bfc
RD
11565 PyObject * obj0 = 0 ;
11566 char *kwnames[] = {
11567 (char *) "self", NULL
11568 };
11569
093d3ff1
RD
11570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
11571 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11572 if (SWIG_arg_fail(1)) SWIG_fail;
11573 result = (wxString *)& ((arg1)->CanonicalName);
11574
d55e5bfc 11575 {
093d3ff1
RD
11576#if wxUSE_UNICODE
11577 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11578#else
11579 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11580#endif
d55e5bfc 11581 }
d55e5bfc
RD
11582 return resultobj;
11583 fail:
11584 return NULL;
11585}
11586
11587
093d3ff1 11588static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11589 PyObject *resultobj;
093d3ff1
RD
11590 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11591 wxString *arg2 = (wxString *) 0 ;
11592 bool temp2 = false ;
d55e5bfc 11593 PyObject * obj0 = 0 ;
093d3ff1 11594 PyObject * obj1 = 0 ;
d55e5bfc 11595 char *kwnames[] = {
093d3ff1 11596 (char *) "self",(char *) "Description", NULL
d55e5bfc
RD
11597 };
11598
093d3ff1
RD
11599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
11600 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11601 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 11602 {
093d3ff1
RD
11603 arg2 = wxString_in_helper(obj1);
11604 if (arg2 == NULL) SWIG_fail;
11605 temp2 = true;
d55e5bfc 11606 }
093d3ff1
RD
11607 if (arg1) (arg1)->Description = *arg2;
11608
11609 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc 11610 {
093d3ff1
RD
11611 if (temp2)
11612 delete arg2;
d55e5bfc
RD
11613 }
11614 return resultobj;
11615 fail:
093d3ff1
RD
11616 {
11617 if (temp2)
11618 delete arg2;
11619 }
d55e5bfc
RD
11620 return NULL;
11621}
11622
11623
093d3ff1 11624static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11625 PyObject *resultobj;
093d3ff1
RD
11626 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11627 wxString *result;
d55e5bfc
RD
11628 PyObject * obj0 = 0 ;
11629 char *kwnames[] = {
11630 (char *) "self", NULL
11631 };
11632
093d3ff1
RD
11633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
11634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11635 if (SWIG_arg_fail(1)) SWIG_fail;
11636 result = (wxString *)& ((arg1)->Description);
11637
d55e5bfc
RD
11638 {
11639#if wxUSE_UNICODE
093d3ff1 11640 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 11641#else
093d3ff1 11642 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc
RD
11643#endif
11644 }
11645 return resultobj;
11646 fail:
11647 return NULL;
11648}
11649
11650
093d3ff1
RD
11651static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
11652 PyObject *obj;
11653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11654 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
11655 Py_INCREF(obj);
11656 return Py_BuildValue((char *)"");
11657}
11658static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11659 PyObject *resultobj;
093d3ff1
RD
11660 int arg1 = (int) -1 ;
11661 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11662 wxLocale *result;
d55e5bfc 11663 PyObject * obj0 = 0 ;
093d3ff1 11664 PyObject * obj1 = 0 ;
d55e5bfc 11665 char *kwnames[] = {
093d3ff1 11666 (char *) "language",(char *) "flags", NULL
d55e5bfc
RD
11667 };
11668
093d3ff1
RD
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
11670 if (obj0) {
11671 {
11672 arg1 = (int)(SWIG_As_int(obj0));
11673 if (SWIG_arg_fail(1)) SWIG_fail;
11674 }
11675 }
11676 if (obj1) {
11677 {
11678 arg2 = (int)(SWIG_As_int(obj1));
11679 if (SWIG_arg_fail(2)) SWIG_fail;
11680 }
d55e5bfc
RD
11681 }
11682 {
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11684 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
093d3ff1 11689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d55e5bfc
RD
11690 return resultobj;
11691 fail:
d55e5bfc
RD
11692 return NULL;
11693}
11694
11695
093d3ff1 11696static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11697 PyObject *resultobj;
11698 wxLocale *arg1 = (wxLocale *) 0 ;
d55e5bfc 11699 PyObject * obj0 = 0 ;
d55e5bfc 11700 char *kwnames[] = {
093d3ff1 11701 (char *) "self", NULL
d55e5bfc
RD
11702 };
11703
093d3ff1
RD
11704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
11705 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11706 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11709 delete arg1;
d55e5bfc
RD
11710
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
093d3ff1 11714 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
11715 return resultobj;
11716 fail:
d55e5bfc
RD
11717 return NULL;
11718}
11719
11720
093d3ff1 11721static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11722 PyObject *resultobj;
11723 wxLocale *arg1 = (wxLocale *) 0 ;
11724 wxString *arg2 = 0 ;
093d3ff1
RD
11725 wxString const &arg3_defvalue = wxPyEmptyString ;
11726 wxString *arg3 = (wxString *) &arg3_defvalue ;
11727 wxString const &arg4_defvalue = wxPyEmptyString ;
11728 wxString *arg4 = (wxString *) &arg4_defvalue ;
11729 bool arg5 = (bool) true ;
11730 bool arg6 = (bool) false ;
d55e5bfc 11731 bool result;
ae8162c8 11732 bool temp2 = false ;
093d3ff1
RD
11733 bool temp3 = false ;
11734 bool temp4 = false ;
d55e5bfc
RD
11735 PyObject * obj0 = 0 ;
11736 PyObject * obj1 = 0 ;
093d3ff1
RD
11737 PyObject * obj2 = 0 ;
11738 PyObject * obj3 = 0 ;
11739 PyObject * obj4 = 0 ;
11740 PyObject * obj5 = 0 ;
d55e5bfc 11741 char *kwnames[] = {
093d3ff1 11742 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
d55e5bfc
RD
11743 };
11744
093d3ff1
RD
11745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11747 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11748 {
11749 arg2 = wxString_in_helper(obj1);
11750 if (arg2 == NULL) SWIG_fail;
ae8162c8 11751 temp2 = true;
d55e5bfc 11752 }
093d3ff1
RD
11753 if (obj2) {
11754 {
11755 arg3 = wxString_in_helper(obj2);
11756 if (arg3 == NULL) SWIG_fail;
11757 temp3 = true;
11758 }
11759 }
11760 if (obj3) {
11761 {
11762 arg4 = wxString_in_helper(obj3);
11763 if (arg4 == NULL) SWIG_fail;
11764 temp4 = true;
11765 }
11766 }
11767 if (obj4) {
11768 {
11769 arg5 = (bool)(SWIG_As_bool(obj4));
11770 if (SWIG_arg_fail(5)) SWIG_fail;
11771 }
11772 }
11773 if (obj5) {
11774 {
11775 arg6 = (bool)(SWIG_As_bool(obj5));
11776 if (SWIG_arg_fail(6)) SWIG_fail;
11777 }
11778 }
d55e5bfc
RD
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11781 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
d55e5bfc
RD
11782
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 {
11787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11788 }
11789 {
11790 if (temp2)
11791 delete arg2;
11792 }
093d3ff1
RD
11793 {
11794 if (temp3)
11795 delete arg3;
11796 }
11797 {
11798 if (temp4)
11799 delete arg4;
11800 }
d55e5bfc
RD
11801 return resultobj;
11802 fail:
11803 {
11804 if (temp2)
11805 delete arg2;
11806 }
093d3ff1
RD
11807 {
11808 if (temp3)
11809 delete arg3;
11810 }
11811 {
11812 if (temp4)
11813 delete arg4;
11814 }
d55e5bfc
RD
11815 return NULL;
11816}
11817
11818
093d3ff1 11819static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11820 PyObject *resultobj;
093d3ff1
RD
11821 wxLocale *arg1 = (wxLocale *) 0 ;
11822 int arg2 = (int) wxLANGUAGE_DEFAULT ;
11823 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11824 bool result;
d55e5bfc 11825 PyObject * obj0 = 0 ;
093d3ff1
RD
11826 PyObject * obj1 = 0 ;
11827 PyObject * obj2 = 0 ;
d55e5bfc 11828 char *kwnames[] = {
093d3ff1 11829 (char *) "self",(char *) "language",(char *) "flags", NULL
d55e5bfc
RD
11830 };
11831
093d3ff1
RD
11832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
11833 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11834 if (SWIG_arg_fail(1)) SWIG_fail;
11835 if (obj1) {
11836 {
11837 arg2 = (int)(SWIG_As_int(obj1));
11838 if (SWIG_arg_fail(2)) SWIG_fail;
11839 }
11840 }
11841 if (obj2) {
11842 {
11843 arg3 = (int)(SWIG_As_int(obj2));
11844 if (SWIG_arg_fail(3)) SWIG_fail;
11845 }
11846 }
d55e5bfc
RD
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11849 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
d55e5bfc
RD
11850
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
093d3ff1
RD
11854 {
11855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11856 }
d55e5bfc
RD
11857 return resultobj;
11858 fail:
11859 return NULL;
11860}
11861
11862
093d3ff1 11863static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11864 PyObject *resultobj;
093d3ff1 11865 int result;
d55e5bfc 11866 char *kwnames[] = {
093d3ff1 11867 NULL
d55e5bfc
RD
11868 };
11869
093d3ff1 11870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
d55e5bfc
RD
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11873 result = (int)wxLocale::GetSystemLanguage();
d55e5bfc
RD
11874
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
093d3ff1 11879 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
11880 }
11881 return resultobj;
11882 fail:
11883 return NULL;
11884}
11885
11886
093d3ff1 11887static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11888 PyObject *resultobj;
093d3ff1 11889 wxFontEncoding result;
d55e5bfc 11890 char *kwnames[] = {
093d3ff1 11891 NULL
d55e5bfc
RD
11892 };
11893
093d3ff1 11894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
d55e5bfc 11895 {
093d3ff1
RD
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
11898
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 11901 }
093d3ff1
RD
11902 resultobj = SWIG_From_int((result));
11903 return resultobj;
11904 fail:
11905 return NULL;
11906}
11907
11908
11909static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
11910 PyObject *resultobj;
11911 wxString result;
11912 char *kwnames[] = {
11913 NULL
11914 };
11915
11916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
d55e5bfc
RD
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11919 result = wxLocale::GetSystemEncodingName();
d55e5bfc
RD
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
d55e5bfc 11924 {
093d3ff1
RD
11925#if wxUSE_UNICODE
11926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11927#else
11928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11929#endif
d55e5bfc
RD
11930 }
11931 return resultobj;
11932 fail:
d55e5bfc
RD
11933 return NULL;
11934}
11935
11936
093d3ff1 11937static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11938 PyObject *resultobj;
093d3ff1
RD
11939 wxLocale *arg1 = (wxLocale *) 0 ;
11940 bool result;
d55e5bfc
RD
11941 PyObject * obj0 = 0 ;
11942 char *kwnames[] = {
093d3ff1 11943 (char *) "self", NULL
d55e5bfc
RD
11944 };
11945
093d3ff1
RD
11946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
11947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11948 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11951 result = (bool)((wxLocale const *)arg1)->IsOk();
d55e5bfc
RD
11952
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
093d3ff1
RD
11956 {
11957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11958 }
d55e5bfc
RD
11959 return resultobj;
11960 fail:
11961 return NULL;
11962}
11963
11964
093d3ff1 11965static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11966 PyObject *resultobj;
11967 wxLocale *arg1 = (wxLocale *) 0 ;
d55e5bfc 11968 wxString result;
d55e5bfc 11969 PyObject * obj0 = 0 ;
d55e5bfc 11970 char *kwnames[] = {
093d3ff1 11971 (char *) "self", NULL
d55e5bfc
RD
11972 };
11973
093d3ff1
RD
11974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
11975 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11976 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
11977 {
11978 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11979 result = ((wxLocale const *)arg1)->GetLocale();
d55e5bfc
RD
11980
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 {
11985#if wxUSE_UNICODE
11986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11987#else
11988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11989#endif
11990 }
d55e5bfc
RD
11991 return resultobj;
11992 fail:
d55e5bfc
RD
11993 return NULL;
11994}
11995
11996
093d3ff1 11997static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11998 PyObject *resultobj;
11999 wxLocale *arg1 = (wxLocale *) 0 ;
093d3ff1 12000 int result;
d55e5bfc
RD
12001 PyObject * obj0 = 0 ;
12002 char *kwnames[] = {
12003 (char *) "self", NULL
12004 };
12005
093d3ff1
RD
12006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
12007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12008 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12011 result = (int)((wxLocale const *)arg1)->GetLanguage();
d55e5bfc
RD
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 {
093d3ff1 12017 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
12018 }
12019 return resultobj;
12020 fail:
12021 return NULL;
12022}
12023
12024
093d3ff1 12025static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12026 PyObject *resultobj;
093d3ff1
RD
12027 wxLocale *arg1 = (wxLocale *) 0 ;
12028 wxString result;
12029 PyObject * obj0 = 0 ;
d55e5bfc 12030 char *kwnames[] = {
093d3ff1 12031 (char *) "self", NULL
d55e5bfc
RD
12032 };
12033
093d3ff1
RD
12034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
12035 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12036 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12037 {
12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12039 result = ((wxLocale const *)arg1)->GetSysName();
d55e5bfc
RD
12040
12041 wxPyEndAllowThreads(__tstate);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
093d3ff1
RD
12044 {
12045#if wxUSE_UNICODE
12046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12047#else
12048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12049#endif
12050 }
d55e5bfc
RD
12051 return resultobj;
12052 fail:
12053 return NULL;
12054}
12055
12056
093d3ff1 12057static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12058 PyObject *resultobj;
093d3ff1 12059 wxLocale *arg1 = (wxLocale *) 0 ;
d55e5bfc 12060 wxString result;
d55e5bfc 12061 PyObject * obj0 = 0 ;
093d3ff1
RD
12062 char *kwnames[] = {
12063 (char *) "self", NULL
12064 };
d55e5bfc 12065
093d3ff1
RD
12066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
12067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12068 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12071 result = ((wxLocale const *)arg1)->GetCanonicalName();
d55e5bfc
RD
12072
12073 wxPyEndAllowThreads(__tstate);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 {
12077#if wxUSE_UNICODE
12078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12079#else
12080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12081#endif
12082 }
d55e5bfc
RD
12083 return resultobj;
12084 fail:
d55e5bfc
RD
12085 return NULL;
12086}
12087
12088
093d3ff1 12089static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12090 PyObject *resultobj;
12091 wxString *arg1 = 0 ;
ae8162c8 12092 bool temp1 = false ;
d55e5bfc 12093 PyObject * obj0 = 0 ;
093d3ff1
RD
12094 char *kwnames[] = {
12095 (char *) "prefix", NULL
12096 };
d55e5bfc 12097
093d3ff1 12098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
d55e5bfc
RD
12099 {
12100 arg1 = wxString_in_helper(obj0);
12101 if (arg1 == NULL) SWIG_fail;
ae8162c8 12102 temp1 = true;
d55e5bfc 12103 }
d55e5bfc
RD
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12106 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
d55e5bfc
RD
12107
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
093d3ff1 12111 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
12112 {
12113 if (temp1)
12114 delete arg1;
12115 }
d55e5bfc
RD
12116 return resultobj;
12117 fail:
12118 {
12119 if (temp1)
12120 delete arg1;
12121 }
d55e5bfc
RD
12122 return NULL;
12123}
12124
12125
093d3ff1 12126static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12127 PyObject *resultobj;
093d3ff1
RD
12128 wxLocale *arg1 = (wxLocale *) 0 ;
12129 wxString *arg2 = 0 ;
d55e5bfc 12130 bool result;
093d3ff1 12131 bool temp2 = false ;
d55e5bfc
RD
12132 PyObject * obj0 = 0 ;
12133 PyObject * obj1 = 0 ;
d55e5bfc 12134 char *kwnames[] = {
093d3ff1 12135 (char *) "self",(char *) "szDomain", NULL
d55e5bfc
RD
12136 };
12137
093d3ff1
RD
12138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
12139 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12140 if (SWIG_arg_fail(1)) SWIG_fail;
12141 {
12142 arg2 = wxString_in_helper(obj1);
12143 if (arg2 == NULL) SWIG_fail;
12144 temp2 = true;
d55e5bfc
RD
12145 }
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12148 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
d55e5bfc
RD
12149
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12155 }
093d3ff1
RD
12156 {
12157 if (temp2)
12158 delete arg2;
12159 }
d55e5bfc
RD
12160 return resultobj;
12161 fail:
093d3ff1
RD
12162 {
12163 if (temp2)
12164 delete arg2;
12165 }
d55e5bfc
RD
12166 return NULL;
12167}
12168
12169
093d3ff1 12170static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12171 PyObject *resultobj;
093d3ff1 12172 wxLocale *arg1 = (wxLocale *) 0 ;
d55e5bfc 12173 wxString *arg2 = 0 ;
093d3ff1 12174 bool result;
ae8162c8 12175 bool temp2 = false ;
d55e5bfc
RD
12176 PyObject * obj0 = 0 ;
12177 PyObject * obj1 = 0 ;
12178 char *kwnames[] = {
093d3ff1 12179 (char *) "self",(char *) "szDomain", NULL
d55e5bfc
RD
12180 };
12181
093d3ff1
RD
12182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
12183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12184 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12185 {
12186 arg2 = wxString_in_helper(obj1);
12187 if (arg2 == NULL) SWIG_fail;
ae8162c8 12188 temp2 = true;
d55e5bfc
RD
12189 }
12190 {
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12192 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
d55e5bfc
RD
12193
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 {
093d3ff1 12198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
12199 }
12200 {
12201 if (temp2)
12202 delete arg2;
12203 }
12204 return resultobj;
12205 fail:
12206 {
12207 if (temp2)
12208 delete arg2;
12209 }
12210 return NULL;
12211}
12212
12213
093d3ff1 12214static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12215 PyObject *resultobj;
12216 int arg1 ;
093d3ff1 12217 wxLanguageInfo *result;
d55e5bfc 12218 PyObject * obj0 = 0 ;
d55e5bfc 12219 char *kwnames[] = {
093d3ff1 12220 (char *) "lang", NULL
d55e5bfc
RD
12221 };
12222
093d3ff1
RD
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
12224 {
12225 arg1 = (int)(SWIG_As_int(obj0));
12226 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12227 }
12228 {
12229 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12230 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
d55e5bfc
RD
12231
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
093d3ff1 12235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d55e5bfc
RD
12236 return resultobj;
12237 fail:
12238 return NULL;
12239}
12240
12241
093d3ff1 12242static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12243 PyObject *resultobj;
12244 int arg1 ;
093d3ff1 12245 wxString result;
d55e5bfc
RD
12246 PyObject * obj0 = 0 ;
12247 char *kwnames[] = {
093d3ff1 12248 (char *) "lang", NULL
d55e5bfc
RD
12249 };
12250
093d3ff1
RD
12251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
12252 {
12253 arg1 = (int)(SWIG_As_int(obj0));
12254 if (SWIG_arg_fail(1)) SWIG_fail;
12255 }
d55e5bfc
RD
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12258 result = wxLocale::GetLanguageName(arg1);
d55e5bfc
RD
12259
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 {
093d3ff1
RD
12264#if wxUSE_UNICODE
12265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12266#else
12267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12268#endif
d55e5bfc
RD
12269 }
12270 return resultobj;
12271 fail:
12272 return NULL;
12273}
12274
12275
093d3ff1 12276static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12277 PyObject *resultobj;
093d3ff1
RD
12278 wxString *arg1 = 0 ;
12279 wxLanguageInfo *result;
12280 bool temp1 = false ;
d55e5bfc 12281 PyObject * obj0 = 0 ;
d55e5bfc 12282 char *kwnames[] = {
093d3ff1 12283 (char *) "locale", NULL
d55e5bfc
RD
12284 };
12285
093d3ff1
RD
12286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
12287 {
12288 arg1 = wxString_in_helper(obj0);
12289 if (arg1 == NULL) SWIG_fail;
12290 temp1 = true;
12291 }
d55e5bfc
RD
12292 {
12293 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12294 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
d55e5bfc
RD
12295
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
093d3ff1 12299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d55e5bfc 12300 {
093d3ff1
RD
12301 if (temp1)
12302 delete arg1;
d55e5bfc
RD
12303 }
12304 return resultobj;
12305 fail:
093d3ff1
RD
12306 {
12307 if (temp1)
12308 delete arg1;
12309 }
d55e5bfc
RD
12310 return NULL;
12311}
12312
12313
093d3ff1 12314static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12315 PyObject *resultobj;
093d3ff1 12316 wxLanguageInfo *arg1 = 0 ;
d55e5bfc
RD
12317 PyObject * obj0 = 0 ;
12318 char *kwnames[] = {
093d3ff1 12319 (char *) "info", NULL
d55e5bfc
RD
12320 };
12321
093d3ff1
RD
12322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
12323 {
12324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
12325 if (SWIG_arg_fail(1)) SWIG_fail;
12326 if (arg1 == NULL) {
12327 SWIG_null_ref("wxLanguageInfo");
12328 }
12329 if (SWIG_arg_fail(1)) SWIG_fail;
12330 }
d55e5bfc
RD
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12333 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
d55e5bfc
RD
12334
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 Py_INCREF(Py_None); resultobj = Py_None;
12339 return resultobj;
12340 fail:
12341 return NULL;
12342}
12343
12344
093d3ff1 12345static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12346 PyObject *resultobj;
093d3ff1
RD
12347 wxLocale *arg1 = (wxLocale *) 0 ;
12348 wxString *arg2 = 0 ;
12349 wxString const &arg3_defvalue = wxPyEmptyString ;
12350 wxString *arg3 = (wxString *) &arg3_defvalue ;
12351 wxString result;
12352 bool temp2 = false ;
12353 bool temp3 = false ;
d55e5bfc 12354 PyObject * obj0 = 0 ;
093d3ff1
RD
12355 PyObject * obj1 = 0 ;
12356 PyObject * obj2 = 0 ;
d55e5bfc 12357 char *kwnames[] = {
093d3ff1 12358 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
d55e5bfc
RD
12359 };
12360
093d3ff1
RD
12361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12363 if (SWIG_arg_fail(1)) SWIG_fail;
12364 {
12365 arg2 = wxString_in_helper(obj1);
12366 if (arg2 == NULL) SWIG_fail;
12367 temp2 = true;
12368 }
12369 if (obj2) {
12370 {
12371 arg3 = wxString_in_helper(obj2);
12372 if (arg3 == NULL) SWIG_fail;
12373 temp3 = true;
12374 }
12375 }
d55e5bfc
RD
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12378 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
d55e5bfc
RD
12379
12380 wxPyEndAllowThreads(__tstate);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
093d3ff1
RD
12383 {
12384#if wxUSE_UNICODE
12385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12386#else
12387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12388#endif
12389 }
12390 {
12391 if (temp2)
12392 delete arg2;
12393 }
12394 {
12395 if (temp3)
12396 delete arg3;
12397 }
d55e5bfc
RD
12398 return resultobj;
12399 fail:
093d3ff1
RD
12400 {
12401 if (temp2)
12402 delete arg2;
12403 }
12404 {
12405 if (temp3)
12406 delete arg3;
12407 }
d55e5bfc
RD
12408 return NULL;
12409}
12410
12411
093d3ff1 12412static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12413 PyObject *resultobj;
093d3ff1
RD
12414 wxLocale *arg1 = (wxLocale *) 0 ;
12415 wxString *result;
d55e5bfc
RD
12416 PyObject * obj0 = 0 ;
12417 char *kwnames[] = {
12418 (char *) "self", NULL
12419 };
12420
093d3ff1
RD
12421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
12422 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12423 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
12426 {
12427 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
12428 result = (wxString *) &_result_ref;
12429 }
d55e5bfc
RD
12430
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
093d3ff1
RD
12434 {
12435#if wxUSE_UNICODE
12436 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12437#else
12438 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12439#endif
12440 }
d55e5bfc
RD
12441 return resultobj;
12442 fail:
12443 return NULL;
12444}
12445
12446
093d3ff1
RD
12447static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
12448 PyObject *obj;
12449 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12450 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
12451 Py_INCREF(obj);
12452 return Py_BuildValue((char *)"");
12453}
12454static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12455 PyObject *resultobj;
093d3ff1 12456 wxLocale *result;
d55e5bfc 12457 char *kwnames[] = {
093d3ff1 12458 NULL
d55e5bfc
RD
12459 };
12460
093d3ff1 12461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
d55e5bfc
RD
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12464 result = (wxLocale *)wxGetLocale();
d55e5bfc
RD
12465
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
093d3ff1 12469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d55e5bfc
RD
12470 return resultobj;
12471 fail:
12472 return NULL;
12473}
12474
12475
093d3ff1 12476static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc 12477 PyObject *resultobj;
093d3ff1
RD
12478 wxString *arg1 = 0 ;
12479 wxString result;
12480 bool temp1 = false ;
d55e5bfc 12481 PyObject * obj0 = 0 ;
d55e5bfc 12482
093d3ff1 12483 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
d55e5bfc 12484 {
093d3ff1
RD
12485 arg1 = wxString_in_helper(obj0);
12486 if (arg1 == NULL) SWIG_fail;
12487 temp1 = true;
d55e5bfc
RD
12488 }
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12491 result = wxGetTranslation((wxString const &)*arg1);
d55e5bfc
RD
12492
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 {
093d3ff1
RD
12497#if wxUSE_UNICODE
12498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12499#else
12500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12501#endif
12502 }
12503 {
12504 if (temp1)
12505 delete arg1;
d55e5bfc
RD
12506 }
12507 return resultobj;
12508 fail:
093d3ff1
RD
12509 {
12510 if (temp1)
12511 delete arg1;
12512 }
d55e5bfc
RD
12513 return NULL;
12514}
12515
12516
093d3ff1 12517static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc 12518 PyObject *resultobj;
093d3ff1
RD
12519 wxString *arg1 = 0 ;
12520 wxString *arg2 = 0 ;
12521 size_t arg3 ;
12522 wxString result;
12523 bool temp1 = false ;
12524 bool temp2 = false ;
d55e5bfc
RD
12525 PyObject * obj0 = 0 ;
12526 PyObject * obj1 = 0 ;
12527 PyObject * obj2 = 0 ;
d55e5bfc 12528
093d3ff1 12529 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
d55e5bfc 12530 {
093d3ff1
RD
12531 arg1 = wxString_in_helper(obj0);
12532 if (arg1 == NULL) SWIG_fail;
12533 temp1 = true;
d55e5bfc
RD
12534 }
12535 {
093d3ff1
RD
12536 arg2 = wxString_in_helper(obj1);
12537 if (arg2 == NULL) SWIG_fail;
12538 temp2 = true;
d55e5bfc 12539 }
d55e5bfc 12540 {
093d3ff1
RD
12541 arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2));
12542 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
12543 }
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12546 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
d55e5bfc
RD
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 {
093d3ff1
RD
12552#if wxUSE_UNICODE
12553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12554#else
12555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12556#endif
12557 }
12558 {
12559 if (temp1)
12560 delete arg1;
12561 }
12562 {
12563 if (temp2)
12564 delete arg2;
d55e5bfc
RD
12565 }
12566 return resultobj;
12567 fail:
093d3ff1
RD
12568 {
12569 if (temp1)
12570 delete arg1;
12571 }
12572 {
12573 if (temp2)
12574 delete arg2;
12575 }
d55e5bfc
RD
12576 return NULL;
12577}
12578
12579
093d3ff1
RD
12580static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
12581 int argc;
12582 PyObject *argv[4];
12583 int ii;
d55e5bfc 12584
093d3ff1
RD
12585 argc = PyObject_Length(args);
12586 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
12587 argv[ii] = PyTuple_GetItem(args,ii);
d55e5bfc 12588 }
093d3ff1
RD
12589 if (argc == 1) {
12590 int _v;
12591 {
12592 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12593 }
12594 if (_v) {
12595 return _wrap_GetTranslation__SWIG_0(self,args);
12596 }
12597 }
12598 if (argc == 3) {
12599 int _v;
12600 {
12601 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12602 }
12603 if (_v) {
12604 {
12605 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
12606 }
12607 if (_v) {
12608 _v = SWIG_Check_unsigned_SS_long(argv[2]);
12609 if (_v) {
12610 return _wrap_GetTranslation__SWIG_1(self,args);
12611 }
12612 }
12613 }
12614 }
12615
12616 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
d55e5bfc
RD
12617 return NULL;
12618}
12619
12620
093d3ff1 12621static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12622 PyObject *resultobj;
093d3ff1 12623 wxEncodingConverter *result;
d55e5bfc 12624 char *kwnames[] = {
093d3ff1 12625 NULL
d55e5bfc
RD
12626 };
12627
093d3ff1 12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
d55e5bfc
RD
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12631 result = (wxEncodingConverter *)new wxEncodingConverter();
d55e5bfc
RD
12632
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
093d3ff1 12636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d55e5bfc
RD
12637 return resultobj;
12638 fail:
12639 return NULL;
12640}
12641
12642
093d3ff1 12643static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12644 PyObject *resultobj;
093d3ff1 12645 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
d55e5bfc 12646 PyObject * obj0 = 0 ;
d55e5bfc 12647 char *kwnames[] = {
093d3ff1 12648 (char *) "self", NULL
d55e5bfc
RD
12649 };
12650
093d3ff1
RD
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
12652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12653 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12654 {
12655 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12656 delete arg1;
d55e5bfc
RD
12657
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 }
12661 Py_INCREF(Py_None); resultobj = Py_None;
12662 return resultobj;
12663 fail:
12664 return NULL;
12665}
12666
12667
093d3ff1 12668static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12669 PyObject *resultobj;
093d3ff1
RD
12670 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12671 wxFontEncoding arg2 ;
12672 wxFontEncoding arg3 ;
12673 int arg4 = (int) wxCONVERT_STRICT ;
12674 bool result;
d55e5bfc
RD
12675 PyObject * obj0 = 0 ;
12676 PyObject * obj1 = 0 ;
093d3ff1
RD
12677 PyObject * obj2 = 0 ;
12678 PyObject * obj3 = 0 ;
d55e5bfc 12679 char *kwnames[] = {
093d3ff1 12680 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
d55e5bfc
RD
12681 };
12682
093d3ff1
RD
12683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12685 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 12686 {
093d3ff1
RD
12687 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
12688 if (SWIG_arg_fail(2)) SWIG_fail;
12689 }
12690 {
12691 arg3 = (wxFontEncoding)(SWIG_As_int(obj2));
12692 if (SWIG_arg_fail(3)) SWIG_fail;
12693 }
12694 if (obj3) {
12695 {
12696 arg4 = (int)(SWIG_As_int(obj3));
12697 if (SWIG_arg_fail(4)) SWIG_fail;
12698 }
d55e5bfc
RD
12699 }
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12702 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
d55e5bfc
RD
12703
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
093d3ff1
RD
12707 {
12708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12709 }
d55e5bfc
RD
12710 return resultobj;
12711 fail:
12712 return NULL;
12713}
12714
12715
093d3ff1 12716static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12717 PyObject *resultobj;
093d3ff1
RD
12718 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12719 wxString *arg2 = 0 ;
12720 wxString result;
12721 bool temp2 = false ;
d55e5bfc
RD
12722 PyObject * obj0 = 0 ;
12723 PyObject * obj1 = 0 ;
d55e5bfc 12724 char *kwnames[] = {
093d3ff1 12725 (char *) "self",(char *) "input", NULL
d55e5bfc
RD
12726 };
12727
093d3ff1
RD
12728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
12729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12730 if (SWIG_arg_fail(1)) SWIG_fail;
12731 {
12732 arg2 = wxString_in_helper(obj1);
12733 if (arg2 == NULL) SWIG_fail;
12734 temp2 = true;
12735 }
d55e5bfc
RD
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12738 result = (arg1)->Convert((wxString const &)*arg2);
d55e5bfc
RD
12739
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
093d3ff1
RD
12743 {
12744#if wxUSE_UNICODE
12745 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12746#else
12747 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12748#endif
12749 }
12750 {
12751 if (temp2)
12752 delete arg2;
12753 }
d55e5bfc
RD
12754 return resultobj;
12755 fail:
093d3ff1
RD
12756 {
12757 if (temp2)
12758 delete arg2;
12759 }
d55e5bfc
RD
12760 return NULL;
12761}
12762
12763
093d3ff1 12764static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12765 PyObject *resultobj;
093d3ff1
RD
12766 wxFontEncoding arg1 ;
12767 int arg2 = (int) wxPLATFORM_CURRENT ;
12768 wxFontEncodingArray result;
d55e5bfc
RD
12769 PyObject * obj0 = 0 ;
12770 PyObject * obj1 = 0 ;
d55e5bfc 12771 char *kwnames[] = {
093d3ff1 12772 (char *) "enc",(char *) "platform", NULL
d55e5bfc
RD
12773 };
12774
093d3ff1 12775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 12776 {
093d3ff1
RD
12777 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
12778 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 12779 }
093d3ff1
RD
12780 if (obj1) {
12781 {
12782 arg2 = (int)(SWIG_As_int(obj1));
12783 if (SWIG_arg_fail(2)) SWIG_fail;
12784 }
d55e5bfc
RD
12785 }
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12788 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
d55e5bfc
RD
12789
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
093d3ff1
RD
12793 {
12794 resultobj = PyList_New(0);
12795 for (size_t i=0; i < (&result)->GetCount(); i++) {
12796 PyObject* number = PyInt_FromLong((&result)->Item(i));
12797 PyList_Append(resultobj, number);
12798 Py_DECREF(number);
12799 }
12800 }
d55e5bfc
RD
12801 return resultobj;
12802 fail:
12803 return NULL;
12804}
12805
12806
093d3ff1 12807static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12808 PyObject *resultobj;
093d3ff1
RD
12809 wxFontEncoding arg1 ;
12810 wxFontEncodingArray result;
d55e5bfc 12811 PyObject * obj0 = 0 ;
d55e5bfc 12812 char *kwnames[] = {
093d3ff1 12813 (char *) "enc", NULL
d55e5bfc
RD
12814 };
12815
093d3ff1
RD
12816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
12817 {
12818 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
12819 if (SWIG_arg_fail(1)) SWIG_fail;
12820 }
d55e5bfc
RD
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12823 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
d55e5bfc
RD
12824
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
093d3ff1
RD
12828 {
12829 resultobj = PyList_New(0);
12830 for (size_t i=0; i < (&result)->GetCount(); i++) {
12831 PyObject* number = PyInt_FromLong((&result)->Item(i));
12832 PyList_Append(resultobj, number);
12833 Py_DECREF(number);
12834 }
12835 }
d55e5bfc
RD
12836 return resultobj;
12837 fail:
12838 return NULL;
12839}
12840
12841
093d3ff1 12842static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12843 PyObject *resultobj;
093d3ff1
RD
12844 wxFontEncoding arg1 ;
12845 wxFontEncoding arg2 ;
12846 bool result;
d55e5bfc
RD
12847 PyObject * obj0 = 0 ;
12848 PyObject * obj1 = 0 ;
12849 char *kwnames[] = {
093d3ff1 12850 (char *) "encIn",(char *) "encOut", NULL
d55e5bfc
RD
12851 };
12852
093d3ff1 12853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 12854 {
093d3ff1
RD
12855 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
12856 if (SWIG_arg_fail(1)) SWIG_fail;
12857 }
12858 {
12859 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
12860 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
12861 }
12862 {
12863 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12864 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
d55e5bfc
RD
12865
12866 wxPyEndAllowThreads(__tstate);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
093d3ff1
RD
12869 {
12870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12871 }
d55e5bfc
RD
12872 return resultobj;
12873 fail:
12874 return NULL;
12875}
12876
12877
093d3ff1
RD
12878static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
12879 PyObject *obj;
12880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12881 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
12882 Py_INCREF(obj);
12883 return Py_BuildValue((char *)"");
12884}
12885static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12886 PyObject *resultobj;
12887 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 12888 PyObject * obj0 = 0 ;
d55e5bfc 12889 char *kwnames[] = {
093d3ff1 12890 (char *) "self", NULL
d55e5bfc
RD
12891 };
12892
093d3ff1
RD
12893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
12894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12895 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12898 delete arg1;
d55e5bfc
RD
12899
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 Py_INCREF(Py_None); resultobj = Py_None;
12904 return resultobj;
12905 fail:
12906 return NULL;
12907}
12908
12909
093d3ff1 12910static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12911 PyObject *resultobj;
12912 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 12913 PyObject * obj0 = 0 ;
d55e5bfc 12914 char *kwnames[] = {
093d3ff1 12915 (char *) "self", NULL
d55e5bfc
RD
12916 };
12917
093d3ff1
RD
12918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
12919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12920 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12923 (arg1)->BeginDrawing();
d55e5bfc
RD
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 Py_INCREF(Py_None); resultobj = Py_None;
12929 return resultobj;
12930 fail:
12931 return NULL;
12932}
12933
12934
093d3ff1 12935static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12936 PyObject *resultobj;
12937 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 12938 PyObject * obj0 = 0 ;
d55e5bfc 12939 char *kwnames[] = {
093d3ff1 12940 (char *) "self", NULL
d55e5bfc
RD
12941 };
12942
093d3ff1
RD
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
12944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12945 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12948 (arg1)->EndDrawing();
d55e5bfc
RD
12949
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 Py_INCREF(Py_None); resultobj = Py_None;
12954 return resultobj;
12955 fail:
12956 return NULL;
12957}
12958
12959
093d3ff1 12960static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12961 PyObject *resultobj;
12962 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12963 int arg2 ;
12964 int arg3 ;
12965 wxColour *arg4 = 0 ;
12966 int arg5 = (int) wxFLOOD_SURFACE ;
12967 bool result;
12968 wxColour temp4 ;
d55e5bfc
RD
12969 PyObject * obj0 = 0 ;
12970 PyObject * obj1 = 0 ;
093d3ff1
RD
12971 PyObject * obj2 = 0 ;
12972 PyObject * obj3 = 0 ;
12973 PyObject * obj4 = 0 ;
d55e5bfc 12974 char *kwnames[] = {
093d3ff1 12975 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
d55e5bfc
RD
12976 };
12977
093d3ff1
RD
12978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12979 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12980 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 12981 {
093d3ff1
RD
12982 arg2 = (int)(SWIG_As_int(obj1));
12983 if (SWIG_arg_fail(2)) SWIG_fail;
12984 }
12985 {
12986 arg3 = (int)(SWIG_As_int(obj2));
12987 if (SWIG_arg_fail(3)) SWIG_fail;
12988 }
12989 {
12990 arg4 = &temp4;
12991 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12992 }
12993 if (obj4) {
12994 {
12995 arg5 = (int)(SWIG_As_int(obj4));
12996 if (SWIG_arg_fail(5)) SWIG_fail;
12997 }
d55e5bfc
RD
12998 }
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13001 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
d55e5bfc
RD
13002
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
093d3ff1
RD
13006 {
13007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13008 }
d55e5bfc
RD
13009 return resultobj;
13010 fail:
13011 return NULL;
13012}
13013
13014
093d3ff1 13015static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13016 PyObject *resultobj;
13017 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13018 wxPoint *arg2 = 0 ;
13019 wxColour *arg3 = 0 ;
13020 int arg4 = (int) wxFLOOD_SURFACE ;
13021 bool result;
13022 wxPoint temp2 ;
13023 wxColour temp3 ;
d55e5bfc
RD
13024 PyObject * obj0 = 0 ;
13025 PyObject * obj1 = 0 ;
13026 PyObject * obj2 = 0 ;
13027 PyObject * obj3 = 0 ;
d55e5bfc 13028 char *kwnames[] = {
093d3ff1 13029 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
d55e5bfc
RD
13030 };
13031
093d3ff1
RD
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13034 if (SWIG_arg_fail(1)) SWIG_fail;
13035 {
13036 arg2 = &temp2;
13037 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13038 }
13039 {
13040 arg3 = &temp3;
13041 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13042 }
13043 if (obj3) {
13044 {
13045 arg4 = (int)(SWIG_As_int(obj3));
13046 if (SWIG_arg_fail(4)) SWIG_fail;
13047 }
13048 }
d55e5bfc
RD
13049 {
13050 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13051 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
d55e5bfc
RD
13052
13053 wxPyEndAllowThreads(__tstate);
13054 if (PyErr_Occurred()) SWIG_fail;
13055 }
093d3ff1
RD
13056 {
13057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13058 }
d55e5bfc
RD
13059 return resultobj;
13060 fail:
13061 return NULL;
13062}
13063
13064
093d3ff1 13065static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13066 PyObject *resultobj;
13067 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13068 int arg2 ;
13069 int arg3 ;
13070 wxColour result;
d55e5bfc
RD
13071 PyObject * obj0 = 0 ;
13072 PyObject * obj1 = 0 ;
093d3ff1 13073 PyObject * obj2 = 0 ;
d55e5bfc 13074 char *kwnames[] = {
093d3ff1 13075 (char *) "self",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
13076 };
13077
093d3ff1
RD
13078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
13079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13080 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 13081 {
093d3ff1
RD
13082 arg2 = (int)(SWIG_As_int(obj1));
13083 if (SWIG_arg_fail(2)) SWIG_fail;
13084 }
13085 {
13086 arg3 = (int)(SWIG_As_int(obj2));
13087 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
13088 }
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13091 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
13092
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
093d3ff1
RD
13096 {
13097 wxColour * resultptr;
13098 resultptr = new wxColour((wxColour &)(result));
13099 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13100 }
d55e5bfc
RD
13101 return resultobj;
13102 fail:
13103 return NULL;
13104}
13105
13106
093d3ff1 13107static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13108 PyObject *resultobj;
13109 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6 13110 wxPoint *arg2 = 0 ;
093d3ff1 13111 wxColour result;
c24da6d6 13112 wxPoint temp2 ;
d55e5bfc
RD
13113 PyObject * obj0 = 0 ;
13114 PyObject * obj1 = 0 ;
13115 char *kwnames[] = {
093d3ff1 13116 (char *) "self",(char *) "pt", NULL
d55e5bfc
RD
13117 };
13118
093d3ff1
RD
13119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
13120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13121 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
13122 {
13123 arg2 = &temp2;
c24da6d6
RD
13124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13125 }
d55e5bfc
RD
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13128 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
13129
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
093d3ff1
RD
13133 {
13134 wxColour * resultptr;
13135 resultptr = new wxColour((wxColour &)(result));
13136 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13137 }
d55e5bfc
RD
13138 return resultobj;
13139 fail:
13140 return NULL;
13141}
13142
13143
093d3ff1 13144static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13145 PyObject *resultobj;
13146 wxDC *arg1 = (wxDC *) 0 ;
13147 int arg2 ;
13148 int arg3 ;
13149 int arg4 ;
13150 int arg5 ;
d55e5bfc
RD
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 PyObject * obj2 = 0 ;
13154 PyObject * obj3 = 0 ;
13155 PyObject * obj4 = 0 ;
d55e5bfc 13156 char *kwnames[] = {
093d3ff1 13157 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
d55e5bfc
RD
13158 };
13159
093d3ff1
RD
13160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13162 if (SWIG_arg_fail(1)) SWIG_fail;
13163 {
13164 arg2 = (int)(SWIG_As_int(obj1));
13165 if (SWIG_arg_fail(2)) SWIG_fail;
13166 }
13167 {
13168 arg3 = (int)(SWIG_As_int(obj2));
13169 if (SWIG_arg_fail(3)) SWIG_fail;
13170 }
13171 {
13172 arg4 = (int)(SWIG_As_int(obj3));
13173 if (SWIG_arg_fail(4)) SWIG_fail;
13174 }
13175 {
13176 arg5 = (int)(SWIG_As_int(obj4));
13177 if (SWIG_arg_fail(5)) SWIG_fail;
13178 }
d55e5bfc
RD
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13181 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
d55e5bfc
RD
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 Py_INCREF(Py_None); resultobj = Py_None;
13187 return resultobj;
13188 fail:
13189 return NULL;
13190}
13191
13192
093d3ff1 13193static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13194 PyObject *resultobj;
13195 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13196 wxPoint *arg2 = 0 ;
13197 wxPoint *arg3 = 0 ;
13198 wxPoint temp2 ;
13199 wxPoint temp3 ;
d55e5bfc
RD
13200 PyObject * obj0 = 0 ;
13201 PyObject * obj1 = 0 ;
13202 PyObject * obj2 = 0 ;
d55e5bfc 13203 char *kwnames[] = {
093d3ff1 13204 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
d55e5bfc
RD
13205 };
13206
093d3ff1
RD
13207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13208 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13209 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
13210 {
13211 arg2 = &temp2;
093d3ff1
RD
13212 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13213 }
13214 {
13215 arg3 = &temp3;
13216 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 13217 }
d55e5bfc
RD
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13220 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
d55e5bfc
RD
13221
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 Py_INCREF(Py_None); resultobj = Py_None;
13226 return resultobj;
13227 fail:
13228 return NULL;
13229}
13230
13231
093d3ff1 13232static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13233 PyObject *resultobj;
13234 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13235 int arg2 ;
13236 int arg3 ;
d55e5bfc
RD
13237 PyObject * obj0 = 0 ;
13238 PyObject * obj1 = 0 ;
13239 PyObject * obj2 = 0 ;
13240 char *kwnames[] = {
093d3ff1 13241 (char *) "self",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
13242 };
13243
093d3ff1
RD
13244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
13245 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13246 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 13247 {
093d3ff1
RD
13248 arg2 = (int)(SWIG_As_int(obj1));
13249 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 13250 }
c24da6d6 13251 {
093d3ff1
RD
13252 arg3 = (int)(SWIG_As_int(obj2));
13253 if (SWIG_arg_fail(3)) SWIG_fail;
c24da6d6 13254 }
d55e5bfc
RD
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13257 (arg1)->CrossHair(arg2,arg3);
d55e5bfc
RD
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 Py_INCREF(Py_None); resultobj = Py_None;
13263 return resultobj;
13264 fail:
13265 return NULL;
13266}
13267
13268
093d3ff1 13269static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13270 PyObject *resultobj;
13271 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13272 wxPoint *arg2 = 0 ;
13273 wxPoint temp2 ;
d55e5bfc
RD
13274 PyObject * obj0 = 0 ;
13275 PyObject * obj1 = 0 ;
d55e5bfc 13276 char *kwnames[] = {
093d3ff1 13277 (char *) "self",(char *) "pt", NULL
d55e5bfc
RD
13278 };
13279
093d3ff1
RD
13280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
13281 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13282 if (SWIG_arg_fail(1)) SWIG_fail;
13283 {
13284 arg2 = &temp2;
13285 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13286 }
d55e5bfc
RD
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13289 (arg1)->CrossHair((wxPoint const &)*arg2);
d55e5bfc
RD
13290
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 Py_INCREF(Py_None); resultobj = Py_None;
13295 return resultobj;
13296 fail:
13297 return NULL;
13298}
13299
13300
093d3ff1 13301static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13302 PyObject *resultobj;
13303 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 13304 int arg2 ;
d55e5bfc 13305 int arg3 ;
093d3ff1
RD
13306 int arg4 ;
13307 int arg5 ;
13308 int arg6 ;
13309 int arg7 ;
13310 PyObject * obj0 = 0 ;
13311 PyObject * obj1 = 0 ;
13312 PyObject * obj2 = 0 ;
13313 PyObject * obj3 = 0 ;
13314 PyObject * obj4 = 0 ;
13315 PyObject * obj5 = 0 ;
13316 PyObject * obj6 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13323 if (SWIG_arg_fail(1)) SWIG_fail;
13324 {
13325 arg2 = (int)(SWIG_As_int(obj1));
13326 if (SWIG_arg_fail(2)) SWIG_fail;
13327 }
13328 {
13329 arg3 = (int)(SWIG_As_int(obj2));
13330 if (SWIG_arg_fail(3)) SWIG_fail;
13331 }
13332 {
13333 arg4 = (int)(SWIG_As_int(obj3));
13334 if (SWIG_arg_fail(4)) SWIG_fail;
13335 }
13336 {
13337 arg5 = (int)(SWIG_As_int(obj4));
13338 if (SWIG_arg_fail(5)) SWIG_fail;
13339 }
13340 {
13341 arg6 = (int)(SWIG_As_int(obj5));
13342 if (SWIG_arg_fail(6)) SWIG_fail;
13343 }
13344 {
13345 arg7 = (int)(SWIG_As_int(obj6));
13346 if (SWIG_arg_fail(7)) SWIG_fail;
13347 }
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
13351
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 Py_INCREF(Py_None); resultobj = Py_None;
13356 return resultobj;
13357 fail:
13358 return NULL;
13359}
13360
13361
13362static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj;
13364 wxDC *arg1 = (wxDC *) 0 ;
13365 wxPoint *arg2 = 0 ;
13366 wxPoint *arg3 = 0 ;
13367 wxPoint *arg4 = 0 ;
d55e5bfc 13368 wxPoint temp2 ;
093d3ff1
RD
13369 wxPoint temp3 ;
13370 wxPoint temp4 ;
d55e5bfc
RD
13371 PyObject * obj0 = 0 ;
13372 PyObject * obj1 = 0 ;
13373 PyObject * obj2 = 0 ;
093d3ff1 13374 PyObject * obj3 = 0 ;
d55e5bfc 13375 char *kwnames[] = {
093d3ff1 13376 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d55e5bfc
RD
13377 };
13378
093d3ff1
RD
13379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13380 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13381 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
13382 {
13383 arg2 = &temp2;
13384 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13385 }
093d3ff1
RD
13386 {
13387 arg3 = &temp3;
13388 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13389 }
13390 {
13391 arg4 = &temp4;
13392 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13393 }
d55e5bfc
RD
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13396 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
d55e5bfc
RD
13397
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 Py_INCREF(Py_None); resultobj = Py_None;
13402 return resultobj;
13403 fail:
13404 return NULL;
13405}
13406
13407
093d3ff1 13408static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13409 PyObject *resultobj;
13410 wxDC *arg1 = (wxDC *) 0 ;
13411 int arg2 ;
13412 int arg3 ;
13413 int arg4 ;
13414 int arg5 ;
13415 PyObject * obj0 = 0 ;
13416 PyObject * obj1 = 0 ;
13417 PyObject * obj2 = 0 ;
13418 PyObject * obj3 = 0 ;
13419 PyObject * obj4 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13422 };
13423
093d3ff1
RD
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13425 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13426 if (SWIG_arg_fail(1)) SWIG_fail;
13427 {
13428 arg2 = (int)(SWIG_As_int(obj1));
13429 if (SWIG_arg_fail(2)) SWIG_fail;
13430 }
13431 {
13432 arg3 = (int)(SWIG_As_int(obj2));
13433 if (SWIG_arg_fail(3)) SWIG_fail;
13434 }
13435 {
13436 arg4 = (int)(SWIG_As_int(obj3));
13437 if (SWIG_arg_fail(4)) SWIG_fail;
13438 }
13439 {
13440 arg5 = (int)(SWIG_As_int(obj4));
13441 if (SWIG_arg_fail(5)) SWIG_fail;
13442 }
d55e5bfc
RD
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13445 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
d55e5bfc
RD
13446
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 Py_INCREF(Py_None); resultobj = Py_None;
13451 return resultobj;
13452 fail:
13453 return NULL;
13454}
13455
13456
093d3ff1 13457static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13458 PyObject *resultobj;
13459 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
13460 wxRect *arg2 = 0 ;
13461 wxRect temp2 ;
d55e5bfc
RD
13462 PyObject * obj0 = 0 ;
13463 PyObject * obj1 = 0 ;
d55e5bfc 13464 char *kwnames[] = {
c24da6d6 13465 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
13466 };
13467
093d3ff1
RD
13468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
13469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13470 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
13471 {
13472 arg2 = &temp2;
c24da6d6 13473 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
13474 }
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13477 (arg1)->DrawCheckMark((wxRect const &)*arg2);
d55e5bfc
RD
13478
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 Py_INCREF(Py_None); resultobj = Py_None;
13483 return resultobj;
13484 fail:
13485 return NULL;
13486}
13487
13488
093d3ff1 13489static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13490 PyObject *resultobj;
13491 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13492 int arg2 ;
13493 int arg3 ;
13494 int arg4 ;
13495 int arg5 ;
13496 double arg6 ;
13497 double arg7 ;
d55e5bfc
RD
13498 PyObject * obj0 = 0 ;
13499 PyObject * obj1 = 0 ;
c24da6d6 13500 PyObject * obj2 = 0 ;
093d3ff1
RD
13501 PyObject * obj3 = 0 ;
13502 PyObject * obj4 = 0 ;
13503 PyObject * obj5 = 0 ;
13504 PyObject * obj6 = 0 ;
d55e5bfc 13505 char *kwnames[] = {
093d3ff1 13506 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
13507 };
13508
093d3ff1
RD
13509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13511 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 13512 {
093d3ff1
RD
13513 arg2 = (int)(SWIG_As_int(obj1));
13514 if (SWIG_arg_fail(2)) SWIG_fail;
c24da6d6
RD
13515 }
13516 {
093d3ff1
RD
13517 arg3 = (int)(SWIG_As_int(obj2));
13518 if (SWIG_arg_fail(3)) SWIG_fail;
13519 }
13520 {
13521 arg4 = (int)(SWIG_As_int(obj3));
13522 if (SWIG_arg_fail(4)) SWIG_fail;
13523 }
13524 {
13525 arg5 = (int)(SWIG_As_int(obj4));
13526 if (SWIG_arg_fail(5)) SWIG_fail;
13527 }
13528 {
13529 arg6 = (double)(SWIG_As_double(obj5));
13530 if (SWIG_arg_fail(6)) SWIG_fail;
13531 }
13532 {
13533 arg7 = (double)(SWIG_As_double(obj6));
13534 if (SWIG_arg_fail(7)) SWIG_fail;
d55e5bfc
RD
13535 }
13536 {
13537 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13538 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
d55e5bfc
RD
13539
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
13543 Py_INCREF(Py_None); resultobj = Py_None;
13544 return resultobj;
13545 fail:
13546 return NULL;
13547}
13548
13549
093d3ff1 13550static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13551 PyObject *resultobj;
13552 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13553 wxPoint *arg2 = 0 ;
13554 wxSize *arg3 = 0 ;
13555 double arg4 ;
13556 double arg5 ;
13557 wxPoint temp2 ;
13558 wxSize temp3 ;
d55e5bfc
RD
13559 PyObject * obj0 = 0 ;
13560 PyObject * obj1 = 0 ;
13561 PyObject * obj2 = 0 ;
13562 PyObject * obj3 = 0 ;
093d3ff1 13563 PyObject * obj4 = 0 ;
d55e5bfc 13564 char *kwnames[] = {
093d3ff1 13565 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
13566 };
13567
093d3ff1
RD
13568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13570 if (SWIG_arg_fail(1)) SWIG_fail;
13571 {
13572 arg2 = &temp2;
13573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13574 }
13575 {
13576 arg3 = &temp3;
13577 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13578 }
13579 {
13580 arg4 = (double)(SWIG_As_double(obj3));
13581 if (SWIG_arg_fail(4)) SWIG_fail;
13582 }
13583 {
13584 arg5 = (double)(SWIG_As_double(obj4));
13585 if (SWIG_arg_fail(5)) SWIG_fail;
d55e5bfc 13586 }
d55e5bfc
RD
13587 {
13588 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13589 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
d55e5bfc
RD
13590
13591 wxPyEndAllowThreads(__tstate);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
13594 Py_INCREF(Py_None); resultobj = Py_None;
13595 return resultobj;
13596 fail:
13597 return NULL;
13598}
13599
13600
093d3ff1 13601static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13602 PyObject *resultobj;
13603 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13604 int arg2 ;
13605 int arg3 ;
d55e5bfc
RD
13606 PyObject * obj0 = 0 ;
13607 PyObject * obj1 = 0 ;
13608 PyObject * obj2 = 0 ;
13609 char *kwnames[] = {
093d3ff1 13610 (char *) "self",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
13611 };
13612
093d3ff1
RD
13613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13614 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13615 if (SWIG_arg_fail(1)) SWIG_fail;
13616 {
13617 arg2 = (int)(SWIG_As_int(obj1));
13618 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
13619 }
13620 {
093d3ff1
RD
13621 arg3 = (int)(SWIG_As_int(obj2));
13622 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
13623 }
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13626 (arg1)->DrawPoint(arg2,arg3);
d55e5bfc
RD
13627
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 Py_INCREF(Py_None); resultobj = Py_None;
13632 return resultobj;
13633 fail:
13634 return NULL;
13635}
13636
13637
093d3ff1 13638static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13639 PyObject *resultobj;
13640 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13641 wxPoint *arg2 = 0 ;
13642 wxPoint temp2 ;
d55e5bfc
RD
13643 PyObject * obj0 = 0 ;
13644 PyObject * obj1 = 0 ;
d55e5bfc 13645 char *kwnames[] = {
093d3ff1 13646 (char *) "self",(char *) "pt", NULL
d55e5bfc
RD
13647 };
13648
093d3ff1
RD
13649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
13650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13651 if (SWIG_arg_fail(1)) SWIG_fail;
13652 {
13653 arg2 = &temp2;
13654 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
13655 }
13656 {
13657 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13658 (arg1)->DrawPoint((wxPoint const &)*arg2);
d55e5bfc
RD
13659
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 Py_INCREF(Py_None); resultobj = Py_None;
13664 return resultobj;
13665 fail:
13666 return NULL;
13667}
13668
13669
093d3ff1 13670static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13671 PyObject *resultobj;
13672 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13673 int arg2 ;
13674 int arg3 ;
13675 int arg4 ;
13676 int arg5 ;
d55e5bfc
RD
13677 PyObject * obj0 = 0 ;
13678 PyObject * obj1 = 0 ;
13679 PyObject * obj2 = 0 ;
13680 PyObject * obj3 = 0 ;
093d3ff1 13681 PyObject * obj4 = 0 ;
d55e5bfc 13682 char *kwnames[] = {
093d3ff1 13683 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
13684 };
13685
093d3ff1
RD
13686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13688 if (SWIG_arg_fail(1)) SWIG_fail;
13689 {
13690 arg2 = (int)(SWIG_As_int(obj1));
13691 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
13692 }
13693 {
093d3ff1
RD
13694 arg3 = (int)(SWIG_As_int(obj2));
13695 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc 13696 }
093d3ff1
RD
13697 {
13698 arg4 = (int)(SWIG_As_int(obj3));
13699 if (SWIG_arg_fail(4)) SWIG_fail;
13700 }
13701 {
13702 arg5 = (int)(SWIG_As_int(obj4));
13703 if (SWIG_arg_fail(5)) SWIG_fail;
d55e5bfc
RD
13704 }
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13707 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
d55e5bfc
RD
13708
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 Py_INCREF(Py_None); resultobj = Py_None;
13713 return resultobj;
13714 fail:
13715 return NULL;
13716}
13717
13718
093d3ff1 13719static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13720 PyObject *resultobj;
13721 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13722 wxRect *arg2 = 0 ;
13723 wxRect temp2 ;
d55e5bfc
RD
13724 PyObject * obj0 = 0 ;
13725 PyObject * obj1 = 0 ;
d55e5bfc 13726 char *kwnames[] = {
093d3ff1 13727 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
13728 };
13729
093d3ff1
RD
13730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
13731 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13732 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 13733 {
093d3ff1
RD
13734 arg2 = &temp2;
13735 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 13736 }
d55e5bfc
RD
13737 {
13738 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13739 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
13740
13741 wxPyEndAllowThreads(__tstate);
13742 if (PyErr_Occurred()) SWIG_fail;
13743 }
13744 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
13745 return resultobj;
13746 fail:
d55e5bfc
RD
13747 return NULL;
13748}
13749
13750
093d3ff1 13751static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13752 PyObject *resultobj;
13753 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13754 wxPoint *arg2 = 0 ;
13755 wxSize *arg3 = 0 ;
13756 wxPoint temp2 ;
13757 wxSize temp3 ;
d55e5bfc
RD
13758 PyObject * obj0 = 0 ;
13759 PyObject * obj1 = 0 ;
13760 PyObject * obj2 = 0 ;
13761 char *kwnames[] = {
093d3ff1 13762 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
13763 };
13764
093d3ff1
RD
13765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13767 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 13768 {
093d3ff1
RD
13769 arg2 = &temp2;
13770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
13771 }
13772 {
13773 arg3 = &temp3;
093d3ff1 13774 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
13775 }
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13778 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
13779
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
13784 return resultobj;
13785 fail:
d55e5bfc
RD
13786 return NULL;
13787}
13788
13789
093d3ff1 13790static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13791 PyObject *resultobj;
13792 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 13793 int arg2 ;
d55e5bfc
RD
13794 int arg3 ;
13795 int arg4 ;
093d3ff1
RD
13796 int arg5 ;
13797 double arg6 ;
d55e5bfc
RD
13798 PyObject * obj0 = 0 ;
13799 PyObject * obj1 = 0 ;
13800 PyObject * obj2 = 0 ;
13801 PyObject * obj3 = 0 ;
13802 PyObject * obj4 = 0 ;
093d3ff1 13803 PyObject * obj5 = 0 ;
d55e5bfc 13804 char *kwnames[] = {
093d3ff1 13805 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
d55e5bfc
RD
13806 };
13807
093d3ff1
RD
13808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13809 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13810 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 13811 {
093d3ff1
RD
13812 arg2 = (int)(SWIG_As_int(obj1));
13813 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 13814 }
d55e5bfc 13815 {
093d3ff1
RD
13816 arg3 = (int)(SWIG_As_int(obj2));
13817 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc 13818 }
d55e5bfc 13819 {
093d3ff1
RD
13820 arg4 = (int)(SWIG_As_int(obj3));
13821 if (SWIG_arg_fail(4)) SWIG_fail;
d55e5bfc 13822 }
d55e5bfc 13823 {
093d3ff1
RD
13824 arg5 = (int)(SWIG_As_int(obj4));
13825 if (SWIG_arg_fail(5)) SWIG_fail;
d55e5bfc
RD
13826 }
13827 {
093d3ff1
RD
13828 arg6 = (double)(SWIG_As_double(obj5));
13829 if (SWIG_arg_fail(6)) SWIG_fail;
d55e5bfc 13830 }
d55e5bfc
RD
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13833 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
13839 return resultobj;
13840 fail:
d55e5bfc
RD
13841 return NULL;
13842}
13843
13844
093d3ff1 13845static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13846 PyObject *resultobj;
13847 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13848 wxRect *arg2 = 0 ;
13849 double arg3 ;
13850 wxRect temp2 ;
d55e5bfc
RD
13851 PyObject * obj0 = 0 ;
13852 PyObject * obj1 = 0 ;
13853 PyObject * obj2 = 0 ;
d55e5bfc 13854 char *kwnames[] = {
093d3ff1 13855 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
13856 };
13857
093d3ff1
RD
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13860 if (SWIG_arg_fail(1)) SWIG_fail;
13861 {
13862 arg2 = &temp2;
13863 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 13864 }
093d3ff1
RD
13865 {
13866 arg3 = (double)(SWIG_As_double(obj2));
13867 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
13868 }
13869 {
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13871 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
13872
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
093d3ff1 13876 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
13877 return resultobj;
13878 fail:
13879 return NULL;
13880}
13881
13882
093d3ff1 13883static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13884 PyObject *resultobj;
13885 wxDC *arg1 = (wxDC *) 0 ;
13886 wxPoint *arg2 = 0 ;
13887 wxSize *arg3 = 0 ;
093d3ff1 13888 double arg4 ;
d55e5bfc
RD
13889 wxPoint temp2 ;
13890 wxSize temp3 ;
d55e5bfc
RD
13891 PyObject * obj0 = 0 ;
13892 PyObject * obj1 = 0 ;
13893 PyObject * obj2 = 0 ;
13894 PyObject * obj3 = 0 ;
d55e5bfc 13895 char *kwnames[] = {
093d3ff1 13896 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
13897 };
13898
093d3ff1
RD
13899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13900 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13901 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
13902 {
13903 arg2 = &temp2;
13904 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13905 }
13906 {
13907 arg3 = &temp3;
13908 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13909 }
d55e5bfc 13910 {
093d3ff1
RD
13911 arg4 = (double)(SWIG_As_double(obj3));
13912 if (SWIG_arg_fail(4)) SWIG_fail;
d55e5bfc
RD
13913 }
13914 {
13915 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13916 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
c24da6d6
RD
13917
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
093d3ff1 13921 Py_INCREF(Py_None); resultobj = Py_None;
c24da6d6
RD
13922 return resultobj;
13923 fail:
13924 return NULL;
13925}
13926
13927
093d3ff1 13928static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
13929 PyObject *resultobj;
13930 wxDC *arg1 = (wxDC *) 0 ;
13931 int arg2 ;
13932 int arg3 ;
13933 int arg4 ;
c24da6d6
RD
13934 PyObject * obj0 = 0 ;
13935 PyObject * obj1 = 0 ;
13936 PyObject * obj2 = 0 ;
13937 PyObject * obj3 = 0 ;
c24da6d6 13938 char *kwnames[] = {
093d3ff1 13939 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
c24da6d6
RD
13940 };
13941
093d3ff1
RD
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13944 if (SWIG_arg_fail(1)) SWIG_fail;
13945 {
13946 arg2 = (int)(SWIG_As_int(obj1));
13947 if (SWIG_arg_fail(2)) SWIG_fail;
13948 }
13949 {
13950 arg3 = (int)(SWIG_As_int(obj2));
13951 if (SWIG_arg_fail(3)) SWIG_fail;
13952 }
13953 {
13954 arg4 = (int)(SWIG_As_int(obj3));
13955 if (SWIG_arg_fail(4)) SWIG_fail;
13956 }
c24da6d6
RD
13957 {
13958 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13959 (arg1)->DrawCircle(arg2,arg3,arg4);
c24da6d6
RD
13960
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 Py_INCREF(Py_None); resultobj = Py_None;
13965 return resultobj;
13966 fail:
13967 return NULL;
13968}
13969
13970
093d3ff1 13971static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
13972 PyObject *resultobj;
13973 wxDC *arg1 = (wxDC *) 0 ;
13974 wxPoint *arg2 = 0 ;
093d3ff1 13975 int arg3 ;
c24da6d6 13976 wxPoint temp2 ;
c24da6d6
RD
13977 PyObject * obj0 = 0 ;
13978 PyObject * obj1 = 0 ;
13979 PyObject * obj2 = 0 ;
13980 char *kwnames[] = {
093d3ff1 13981 (char *) "self",(char *) "pt",(char *) "radius", NULL
c24da6d6
RD
13982 };
13983
093d3ff1
RD
13984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13986 if (SWIG_arg_fail(1)) SWIG_fail;
c24da6d6
RD
13987 {
13988 arg2 = &temp2;
13989 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13990 }
13991 {
093d3ff1
RD
13992 arg3 = (int)(SWIG_As_int(obj2));
13993 if (SWIG_arg_fail(3)) SWIG_fail;
c24da6d6
RD
13994 }
13995 {
13996 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13997 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
c24da6d6
RD
13998
13999 wxPyEndAllowThreads(__tstate);
14000 if (PyErr_Occurred()) SWIG_fail;
14001 }
14002 Py_INCREF(Py_None); resultobj = Py_None;
14003 return resultobj;
14004 fail:
14005 return NULL;
14006}
14007
14008
093d3ff1 14009static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
14010 PyObject *resultobj;
14011 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14012 int arg2 ;
14013 int arg3 ;
14014 int arg4 ;
14015 int arg5 ;
c24da6d6
RD
14016 PyObject * obj0 = 0 ;
14017 PyObject * obj1 = 0 ;
093d3ff1
RD
14018 PyObject * obj2 = 0 ;
14019 PyObject * obj3 = 0 ;
14020 PyObject * obj4 = 0 ;
c24da6d6 14021 char *kwnames[] = {
093d3ff1 14022 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
c24da6d6
RD
14023 };
14024
093d3ff1
RD
14025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14027 if (SWIG_arg_fail(1)) SWIG_fail;
14028 {
14029 arg2 = (int)(SWIG_As_int(obj1));
14030 if (SWIG_arg_fail(2)) SWIG_fail;
14031 }
14032 {
14033 arg3 = (int)(SWIG_As_int(obj2));
14034 if (SWIG_arg_fail(3)) SWIG_fail;
14035 }
14036 {
14037 arg4 = (int)(SWIG_As_int(obj3));
14038 if (SWIG_arg_fail(4)) SWIG_fail;
14039 }
14040 {
14041 arg5 = (int)(SWIG_As_int(obj4));
14042 if (SWIG_arg_fail(5)) SWIG_fail;
c24da6d6
RD
14043 }
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14046 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
c24da6d6
RD
14047
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 Py_INCREF(Py_None); resultobj = Py_None;
14052 return resultobj;
14053 fail:
14054 return NULL;
14055}
14056
14057
093d3ff1 14058static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
14059 PyObject *resultobj;
14060 wxDC *arg1 = (wxDC *) 0 ;
14061 wxRect *arg2 = 0 ;
14062 wxRect temp2 ;
14063 PyObject * obj0 = 0 ;
14064 PyObject * obj1 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self",(char *) "rect", NULL
14067 };
14068
093d3ff1
RD
14069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
14070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14071 if (SWIG_arg_fail(1)) SWIG_fail;
c24da6d6
RD
14072 {
14073 arg2 = &temp2;
14074 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14075 }
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14078 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
14079
14080 wxPyEndAllowThreads(__tstate);
14081 if (PyErr_Occurred()) SWIG_fail;
14082 }
c24da6d6 14083 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14084 return resultobj;
14085 fail:
14086 return NULL;
14087}
14088
14089
093d3ff1 14090static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14091 PyObject *resultobj;
14092 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14093 wxPoint *arg2 = 0 ;
14094 wxSize *arg3 = 0 ;
14095 wxPoint temp2 ;
14096 wxSize temp3 ;
d55e5bfc
RD
14097 PyObject * obj0 = 0 ;
14098 PyObject * obj1 = 0 ;
14099 PyObject * obj2 = 0 ;
d55e5bfc 14100 char *kwnames[] = {
093d3ff1 14101 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
14102 };
14103
093d3ff1
RD
14104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14105 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14106 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 14107 {
093d3ff1
RD
14108 arg2 = &temp2;
14109 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 14110 }
093d3ff1
RD
14111 {
14112 arg3 = &temp3;
14113 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
14114 }
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14117 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
14118
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14123 return resultobj;
14124 fail:
d55e5bfc
RD
14125 return NULL;
14126}
14127
14128
093d3ff1 14129static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14130 PyObject *resultobj;
14131 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14132 wxIcon *arg2 = 0 ;
14133 int arg3 ;
14134 int arg4 ;
d55e5bfc
RD
14135 PyObject * obj0 = 0 ;
14136 PyObject * obj1 = 0 ;
14137 PyObject * obj2 = 0 ;
14138 PyObject * obj3 = 0 ;
d55e5bfc 14139 char *kwnames[] = {
093d3ff1 14140 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
14141 };
14142
093d3ff1
RD
14143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14145 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 14146 {
093d3ff1
RD
14147 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
14148 if (SWIG_arg_fail(2)) SWIG_fail;
14149 if (arg2 == NULL) {
14150 SWIG_null_ref("wxIcon");
14151 }
14152 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 14153 }
093d3ff1
RD
14154 {
14155 arg3 = (int)(SWIG_As_int(obj2));
14156 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc 14157 }
093d3ff1
RD
14158 {
14159 arg4 = (int)(SWIG_As_int(obj3));
14160 if (SWIG_arg_fail(4)) SWIG_fail;
d55e5bfc
RD
14161 }
14162 {
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14164 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
d55e5bfc
RD
14165
14166 wxPyEndAllowThreads(__tstate);
14167 if (PyErr_Occurred()) SWIG_fail;
14168 }
14169 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14170 return resultobj;
14171 fail:
d55e5bfc
RD
14172 return NULL;
14173}
14174
14175
093d3ff1 14176static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14177 PyObject *resultobj;
14178 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14179 wxIcon *arg2 = 0 ;
14180 wxPoint *arg3 = 0 ;
14181 wxPoint temp3 ;
d55e5bfc
RD
14182 PyObject * obj0 = 0 ;
14183 PyObject * obj1 = 0 ;
14184 PyObject * obj2 = 0 ;
d55e5bfc 14185 char *kwnames[] = {
093d3ff1 14186 (char *) "self",(char *) "icon",(char *) "pt", NULL
d55e5bfc
RD
14187 };
14188
093d3ff1
RD
14189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14191 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 14192 {
093d3ff1
RD
14193 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
14194 if (SWIG_arg_fail(2)) SWIG_fail;
14195 if (arg2 == NULL) {
14196 SWIG_null_ref("wxIcon");
14197 }
14198 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
14199 }
14200 {
14201 arg3 = &temp3;
093d3ff1 14202 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
14203 }
14204 {
14205 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14206 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
d55e5bfc
RD
14207
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14212 return resultobj;
14213 fail:
d55e5bfc
RD
14214 return NULL;
14215}
14216
14217
093d3ff1 14218static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14219 PyObject *resultobj;
14220 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14221 wxBitmap *arg2 = 0 ;
14222 int arg3 ;
14223 int arg4 ;
14224 bool arg5 = (bool) false ;
d55e5bfc
RD
14225 PyObject * obj0 = 0 ;
14226 PyObject * obj1 = 0 ;
14227 PyObject * obj2 = 0 ;
14228 PyObject * obj3 = 0 ;
14229 PyObject * obj4 = 0 ;
d55e5bfc 14230 char *kwnames[] = {
093d3ff1 14231 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
d55e5bfc
RD
14232 };
14233
093d3ff1
RD
14234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14236 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 14237 {
093d3ff1
RD
14238 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14239 if (SWIG_arg_fail(2)) SWIG_fail;
14240 if (arg2 == NULL) {
14241 SWIG_null_ref("wxBitmap");
14242 }
14243 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 14244 }
093d3ff1
RD
14245 {
14246 arg3 = (int)(SWIG_As_int(obj2));
14247 if (SWIG_arg_fail(3)) SWIG_fail;
d55e5bfc
RD
14248 }
14249 {
093d3ff1
RD
14250 arg4 = (int)(SWIG_As_int(obj3));
14251 if (SWIG_arg_fail(4)) SWIG_fail;
d55e5bfc
RD
14252 }
14253 if (obj4) {
093d3ff1
RD
14254 {
14255 arg5 = (bool)(SWIG_As_bool(obj4));
14256 if (SWIG_arg_fail(5)) SWIG_fail;
14257 }
d55e5bfc
RD
14258 }
14259 {
14260 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14261 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
d55e5bfc
RD
14262
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
093d3ff1 14266 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14267 return resultobj;
14268 fail:
d55e5bfc
RD
14269 return NULL;
14270}
14271
14272
093d3ff1 14273static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14274 PyObject *resultobj;
14275 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14276 wxBitmap *arg2 = 0 ;
14277 wxPoint *arg3 = 0 ;
14278 bool arg4 = (bool) false ;
14279 wxPoint temp3 ;
d55e5bfc
RD
14280 PyObject * obj0 = 0 ;
14281 PyObject * obj1 = 0 ;
093d3ff1
RD
14282 PyObject * obj2 = 0 ;
14283 PyObject * obj3 = 0 ;
d55e5bfc 14284 char *kwnames[] = {
093d3ff1 14285 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
d55e5bfc
RD
14286 };
14287
093d3ff1
RD
14288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14289 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14290 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 14291 {
093d3ff1
RD
14292 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14293 if (SWIG_arg_fail(2)) SWIG_fail;
14294 if (arg2 == NULL) {
14295 SWIG_null_ref("wxBitmap");
14296 }
14297 if (SWIG_arg_fail(2)) SWIG_fail;
14298 }
14299 {
14300 arg3 = &temp3;
14301 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14302 }
14303 if (obj3) {
14304 {
14305 arg4 = (bool)(SWIG_As_bool(obj3));
14306 if (SWIG_arg_fail(4)) SWIG_fail;
14307 }
d55e5bfc
RD
14308 }
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14311 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
d55e5bfc
RD
14312
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14317 return resultobj;
14318 fail:
d55e5bfc
RD
14319 return NULL;
14320}
14321
14322
093d3ff1 14323static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14324 PyObject *resultobj;
14325 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14326 wxString *arg2 = 0 ;
14327 int arg3 ;
14328 int arg4 ;
14329 bool temp2 = false ;
d55e5bfc 14330 PyObject * obj0 = 0 ;
093d3ff1
RD
14331 PyObject * obj1 = 0 ;
14332 PyObject * obj2 = 0 ;
14333 PyObject * obj3 = 0 ;
d55e5bfc 14334 char *kwnames[] = {
093d3ff1 14335 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
14336 };
14337
093d3ff1
RD
14338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14339 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14340 if (SWIG_arg_fail(1)) SWIG_fail;
14341 {
14342 arg2 = wxString_in_helper(obj1);
14343 if (arg2 == NULL) SWIG_fail;
14344 temp2 = true;
14345 }
14346 {
14347 arg3 = (int)(SWIG_As_int(obj2));
14348 if (SWIG_arg_fail(3)) SWIG_fail;
14349 }
14350 {
14351 arg4 = (int)(SWIG_As_int(obj3));
14352 if (SWIG_arg_fail(4)) SWIG_fail;
14353 }
d55e5bfc
RD
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14356 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
d55e5bfc
RD
14357
14358 wxPyEndAllowThreads(__tstate);
14359 if (PyErr_Occurred()) SWIG_fail;
14360 }
14361 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
14362 {
14363 if (temp2)
14364 delete arg2;
14365 }
d55e5bfc
RD
14366 return resultobj;
14367 fail:
093d3ff1
RD
14368 {
14369 if (temp2)
14370 delete arg2;
14371 }
d55e5bfc
RD
14372 return NULL;
14373}
14374
14375
093d3ff1 14376static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14377 PyObject *resultobj;
14378 wxDC *arg1 = (wxDC *) 0 ;
14379 wxString *arg2 = 0 ;
093d3ff1 14380 wxPoint *arg3 = 0 ;
ae8162c8 14381 bool temp2 = false ;
093d3ff1 14382 wxPoint temp3 ;
d55e5bfc
RD
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
093d3ff1 14385 PyObject * obj2 = 0 ;
d55e5bfc 14386 char *kwnames[] = {
093d3ff1 14387 (char *) "self",(char *) "text",(char *) "pt", NULL
d55e5bfc
RD
14388 };
14389
093d3ff1
RD
14390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14391 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14392 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
14393 {
14394 arg2 = wxString_in_helper(obj1);
14395 if (arg2 == NULL) SWIG_fail;
ae8162c8 14396 temp2 = true;
d55e5bfc 14397 }
093d3ff1
RD
14398 {
14399 arg3 = &temp3;
14400 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14401 }
d55e5bfc
RD
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14404 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
d55e5bfc
RD
14405
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
093d3ff1 14409 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
14410 {
14411 if (temp2)
14412 delete arg2;
14413 }
14414 return resultobj;
14415 fail:
14416 {
14417 if (temp2)
14418 delete arg2;
14419 }
14420 return NULL;
14421}
14422
14423
093d3ff1 14424static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14425 PyObject *resultobj;
14426 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14427 wxString *arg2 = 0 ;
14428 int arg3 ;
14429 int arg4 ;
14430 double arg5 ;
14431 bool temp2 = false ;
d55e5bfc 14432 PyObject * obj0 = 0 ;
093d3ff1
RD
14433 PyObject * obj1 = 0 ;
14434 PyObject * obj2 = 0 ;
14435 PyObject * obj3 = 0 ;
14436 PyObject * obj4 = 0 ;
d55e5bfc 14437 char *kwnames[] = {
093d3ff1 14438 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
d55e5bfc
RD
14439 };
14440
093d3ff1
RD
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14443 if (SWIG_arg_fail(1)) SWIG_fail;
14444 {
14445 arg2 = wxString_in_helper(obj1);
14446 if (arg2 == NULL) SWIG_fail;
14447 temp2 = true;
14448 }
14449 {
14450 arg3 = (int)(SWIG_As_int(obj2));
14451 if (SWIG_arg_fail(3)) SWIG_fail;
14452 }
14453 {
14454 arg4 = (int)(SWIG_As_int(obj3));
14455 if (SWIG_arg_fail(4)) SWIG_fail;
14456 }
14457 {
14458 arg5 = (double)(SWIG_As_double(obj4));
14459 if (SWIG_arg_fail(5)) SWIG_fail;
14460 }
d55e5bfc
RD
14461 {
14462 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14463 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
d55e5bfc
RD
14464
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
14469 {
14470 if (temp2)
14471 delete arg2;
14472 }
d55e5bfc
RD
14473 return resultobj;
14474 fail:
d55e5bfc 14475 {
093d3ff1
RD
14476 if (temp2)
14477 delete arg2;
d55e5bfc 14478 }
d55e5bfc
RD
14479 return NULL;
14480}
14481
14482
093d3ff1 14483static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14484 PyObject *resultobj;
14485 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14486 wxString *arg2 = 0 ;
14487 wxPoint *arg3 = 0 ;
14488 double arg4 ;
14489 bool temp2 = false ;
14490 wxPoint temp3 ;
d55e5bfc 14491 PyObject * obj0 = 0 ;
093d3ff1
RD
14492 PyObject * obj1 = 0 ;
14493 PyObject * obj2 = 0 ;
14494 PyObject * obj3 = 0 ;
d55e5bfc 14495 char *kwnames[] = {
093d3ff1 14496 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
d55e5bfc
RD
14497 };
14498
093d3ff1
RD
14499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14500 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14501 if (SWIG_arg_fail(1)) SWIG_fail;
14502 {
14503 arg2 = wxString_in_helper(obj1);
14504 if (arg2 == NULL) SWIG_fail;
14505 temp2 = true;
14506 }
14507 {
14508 arg3 = &temp3;
14509 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14510 }
14511 {
14512 arg4 = (double)(SWIG_As_double(obj3));
14513 if (SWIG_arg_fail(4)) SWIG_fail;
14514 }
d55e5bfc
RD
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14517 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
d55e5bfc
RD
14518
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
14523 {
14524 if (temp2)
14525 delete arg2;
14526 }
d55e5bfc
RD
14527 return resultobj;
14528 fail:
093d3ff1
RD
14529 {
14530 if (temp2)
14531 delete arg2;
14532 }
d55e5bfc
RD
14533 return NULL;
14534}
14535
14536
093d3ff1 14537static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14538 PyObject *resultobj;
14539 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14540 int arg2 ;
14541 int arg3 ;
14542 int arg4 ;
14543 int arg5 ;
14544 wxDC *arg6 = (wxDC *) 0 ;
14545 int arg7 ;
14546 int arg8 ;
14547 int arg9 = (int) wxCOPY ;
14548 bool arg10 = (bool) false ;
14549 int arg11 = (int) -1 ;
14550 int arg12 = (int) -1 ;
14551 bool result;
d55e5bfc
RD
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
093d3ff1
RD
14554 PyObject * obj2 = 0 ;
14555 PyObject * obj3 = 0 ;
14556 PyObject * obj4 = 0 ;
14557 PyObject * obj5 = 0 ;
14558 PyObject * obj6 = 0 ;
14559 PyObject * obj7 = 0 ;
14560 PyObject * obj8 = 0 ;
14561 PyObject * obj9 = 0 ;
14562 PyObject * obj10 = 0 ;
14563 PyObject * obj11 = 0 ;
d55e5bfc 14564 char *kwnames[] = {
093d3ff1 14565 (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
d55e5bfc
RD
14566 };
14567
093d3ff1
RD
14568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
14569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14570 if (SWIG_arg_fail(1)) SWIG_fail;
14571 {
14572 arg2 = (int)(SWIG_As_int(obj1));
14573 if (SWIG_arg_fail(2)) SWIG_fail;
14574 }
14575 {
14576 arg3 = (int)(SWIG_As_int(obj2));
14577 if (SWIG_arg_fail(3)) SWIG_fail;
14578 }
14579 {
14580 arg4 = (int)(SWIG_As_int(obj3));
14581 if (SWIG_arg_fail(4)) SWIG_fail;
14582 }
14583 {
14584 arg5 = (int)(SWIG_As_int(obj4));
14585 if (SWIG_arg_fail(5)) SWIG_fail;
14586 }
14587 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14588 if (SWIG_arg_fail(6)) SWIG_fail;
14589 {
14590 arg7 = (int)(SWIG_As_int(obj6));
14591 if (SWIG_arg_fail(7)) SWIG_fail;
14592 }
14593 {
14594 arg8 = (int)(SWIG_As_int(obj7));
14595 if (SWIG_arg_fail(8)) SWIG_fail;
14596 }
14597 if (obj8) {
14598 {
14599 arg9 = (int)(SWIG_As_int(obj8));
14600 if (SWIG_arg_fail(9)) SWIG_fail;
14601 }
14602 }
14603 if (obj9) {
14604 {
14605 arg10 = (bool)(SWIG_As_bool(obj9));
14606 if (SWIG_arg_fail(10)) SWIG_fail;
14607 }
14608 }
14609 if (obj10) {
14610 {
14611 arg11 = (int)(SWIG_As_int(obj10));
14612 if (SWIG_arg_fail(11)) SWIG_fail;
14613 }
14614 }
14615 if (obj11) {
14616 {
14617 arg12 = (int)(SWIG_As_int(obj11));
14618 if (SWIG_arg_fail(12)) SWIG_fail;
14619 }
d55e5bfc
RD
14620 }
14621 {
14622 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14623 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
d55e5bfc
RD
14624
14625 wxPyEndAllowThreads(__tstate);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
093d3ff1
RD
14628 {
14629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14630 }
d55e5bfc
RD
14631 return resultobj;
14632 fail:
14633 return NULL;
14634}
14635
14636
093d3ff1 14637static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14638 PyObject *resultobj;
14639 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14640 wxPoint *arg2 = 0 ;
14641 wxSize *arg3 = 0 ;
14642 wxDC *arg4 = (wxDC *) 0 ;
14643 wxPoint *arg5 = 0 ;
14644 int arg6 = (int) wxCOPY ;
14645 bool arg7 = (bool) false ;
14646 wxPoint const &arg8_defvalue = wxDefaultPosition ;
14647 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
14648 bool result;
14649 wxPoint temp2 ;
14650 wxSize temp3 ;
14651 wxPoint temp5 ;
14652 wxPoint temp8 ;
d55e5bfc
RD
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
093d3ff1
RD
14655 PyObject * obj2 = 0 ;
14656 PyObject * obj3 = 0 ;
14657 PyObject * obj4 = 0 ;
14658 PyObject * obj5 = 0 ;
14659 PyObject * obj6 = 0 ;
14660 PyObject * obj7 = 0 ;
d55e5bfc 14661 char *kwnames[] = {
093d3ff1 14662 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
d55e5bfc
RD
14663 };
14664
093d3ff1
RD
14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14666 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14667 if (SWIG_arg_fail(1)) SWIG_fail;
14668 {
14669 arg2 = &temp2;
14670 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14671 }
14672 {
14673 arg3 = &temp3;
14674 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14675 }
14676 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14677 if (SWIG_arg_fail(4)) SWIG_fail;
14678 {
14679 arg5 = &temp5;
14680 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14681 }
14682 if (obj5) {
14683 {
14684 arg6 = (int)(SWIG_As_int(obj5));
14685 if (SWIG_arg_fail(6)) SWIG_fail;
14686 }
14687 }
14688 if (obj6) {
14689 {
14690 arg7 = (bool)(SWIG_As_bool(obj6));
14691 if (SWIG_arg_fail(7)) SWIG_fail;
14692 }
14693 }
14694 if (obj7) {
14695 {
14696 arg8 = &temp8;
14697 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
14698 }
d55e5bfc
RD
14699 }
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14702 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
d55e5bfc
RD
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
093d3ff1
RD
14707 {
14708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14709 }
d55e5bfc
RD
14710 return resultobj;
14711 fail:
14712 return NULL;
14713}
14714
14715
093d3ff1 14716static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14717 PyObject *resultobj;
14718 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14719 int arg2 ;
14720 int arg3 ;
14721 int arg4 ;
14722 int arg5 ;
d55e5bfc
RD
14723 PyObject * obj0 = 0 ;
14724 PyObject * obj1 = 0 ;
093d3ff1
RD
14725 PyObject * obj2 = 0 ;
14726 PyObject * obj3 = 0 ;
14727 PyObject * obj4 = 0 ;
d55e5bfc 14728 char *kwnames[] = {
093d3ff1 14729 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
14730 };
14731
093d3ff1
RD
14732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14733 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14734 if (SWIG_arg_fail(1)) SWIG_fail;
14735 {
14736 arg2 = (int)(SWIG_As_int(obj1));
14737 if (SWIG_arg_fail(2)) SWIG_fail;
14738 }
14739 {
14740 arg3 = (int)(SWIG_As_int(obj2));
14741 if (SWIG_arg_fail(3)) SWIG_fail;
14742 }
14743 {
14744 arg4 = (int)(SWIG_As_int(obj3));
14745 if (SWIG_arg_fail(4)) SWIG_fail;
14746 }
14747 {
14748 arg5 = (int)(SWIG_As_int(obj4));
14749 if (SWIG_arg_fail(5)) SWIG_fail;
d55e5bfc
RD
14750 }
14751 {
14752 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14753 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
d55e5bfc
RD
14754
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 Py_INCREF(Py_None); resultobj = Py_None;
14759 return resultobj;
14760 fail:
14761 return NULL;
14762}
14763
14764
093d3ff1 14765static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14766 PyObject *resultobj;
14767 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14768 wxPoint *arg2 = 0 ;
14769 wxSize *arg3 = 0 ;
14770 wxPoint temp2 ;
14771 wxSize temp3 ;
d55e5bfc
RD
14772 PyObject * obj0 = 0 ;
14773 PyObject * obj1 = 0 ;
093d3ff1 14774 PyObject * obj2 = 0 ;
d55e5bfc 14775 char *kwnames[] = {
093d3ff1 14776 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
14777 };
14778
093d3ff1
RD
14779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14781 if (SWIG_arg_fail(1)) SWIG_fail;
14782 {
14783 arg2 = &temp2;
14784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14785 }
14786 {
14787 arg3 = &temp3;
14788 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
14789 }
14790 {
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14792 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
14793
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 Py_INCREF(Py_None); resultobj = Py_None;
14798 return resultobj;
14799 fail:
14800 return NULL;
14801}
14802
14803
093d3ff1 14804static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14805 PyObject *resultobj;
14806 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14807 wxRegion *arg2 = 0 ;
d55e5bfc
RD
14808 PyObject * obj0 = 0 ;
14809 PyObject * obj1 = 0 ;
14810 char *kwnames[] = {
093d3ff1 14811 (char *) "self",(char *) "region", NULL
d55e5bfc
RD
14812 };
14813
093d3ff1
RD
14814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
14815 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14816 if (SWIG_arg_fail(1)) SWIG_fail;
14817 {
14818 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
14819 if (SWIG_arg_fail(2)) SWIG_fail;
14820 if (arg2 == NULL) {
14821 SWIG_null_ref("wxRegion");
14822 }
14823 if (SWIG_arg_fail(2)) SWIG_fail;
14824 }
d55e5bfc
RD
14825 {
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14827 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
d55e5bfc
RD
14828
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 Py_INCREF(Py_None); resultobj = Py_None;
14833 return resultobj;
14834 fail:
14835 return NULL;
14836}
14837
14838
093d3ff1 14839static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14840 PyObject *resultobj;
14841 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14842 wxRect *arg2 = 0 ;
14843 wxRect temp2 ;
d55e5bfc
RD
14844 PyObject * obj0 = 0 ;
14845 PyObject * obj1 = 0 ;
14846 char *kwnames[] = {
093d3ff1 14847 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
14848 };
14849
093d3ff1
RD
14850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
14851 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14852 if (SWIG_arg_fail(1)) SWIG_fail;
14853 {
14854 arg2 = &temp2;
14855 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
14856 }
14857 {
14858 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14859 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
14860
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
14864 Py_INCREF(Py_None); resultobj = Py_None;
14865 return resultobj;
14866 fail:
14867 return NULL;
14868}
14869
14870
093d3ff1 14871static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14872 PyObject *resultobj;
14873 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14874 int arg2 ;
14875 wxPoint *arg3 = (wxPoint *) 0 ;
14876 int arg4 = (int) 0 ;
14877 int arg5 = (int) 0 ;
d55e5bfc 14878 PyObject * obj0 = 0 ;
093d3ff1
RD
14879 PyObject * obj1 = 0 ;
14880 PyObject * obj2 = 0 ;
14881 PyObject * obj3 = 0 ;
d55e5bfc 14882 char *kwnames[] = {
093d3ff1 14883 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
d55e5bfc
RD
14884 };
14885
093d3ff1
RD
14886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14887 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14888 if (SWIG_arg_fail(1)) SWIG_fail;
14889 {
14890 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14891 if (arg3 == NULL) SWIG_fail;
14892 }
14893 if (obj2) {
14894 {
14895 arg4 = (int)(SWIG_As_int(obj2));
14896 if (SWIG_arg_fail(4)) SWIG_fail;
14897 }
14898 }
14899 if (obj3) {
14900 {
14901 arg5 = (int)(SWIG_As_int(obj3));
14902 if (SWIG_arg_fail(5)) SWIG_fail;
14903 }
14904 }
d55e5bfc
RD
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14907 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
d55e5bfc
RD
14908
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
14913 {
14914 if (arg3) delete [] arg3;
14915 }
d55e5bfc
RD
14916 return resultobj;
14917 fail:
093d3ff1
RD
14918 {
14919 if (arg3) delete [] arg3;
14920 }
d55e5bfc
RD
14921 return NULL;
14922}
14923
14924
093d3ff1 14925static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14926 PyObject *resultobj;
14927 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14928 int arg2 ;
14929 wxPoint *arg3 = (wxPoint *) 0 ;
14930 int arg4 = (int) 0 ;
14931 int arg5 = (int) 0 ;
14932 int arg6 = (int) wxODDEVEN_RULE ;
d55e5bfc 14933 PyObject * obj0 = 0 ;
093d3ff1
RD
14934 PyObject * obj1 = 0 ;
14935 PyObject * obj2 = 0 ;
14936 PyObject * obj3 = 0 ;
14937 PyObject * obj4 = 0 ;
d55e5bfc 14938 char *kwnames[] = {
093d3ff1 14939 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
d55e5bfc
RD
14940 };
14941
093d3ff1
RD
14942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14944 if (SWIG_arg_fail(1)) SWIG_fail;
14945 {
14946 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14947 if (arg3 == NULL) SWIG_fail;
14948 }
14949 if (obj2) {
14950 {
14951 arg4 = (int)(SWIG_As_int(obj2));
14952 if (SWIG_arg_fail(4)) SWIG_fail;
14953 }
14954 }
14955 if (obj3) {
14956 {
14957 arg5 = (int)(SWIG_As_int(obj3));
14958 if (SWIG_arg_fail(5)) SWIG_fail;
14959 }
14960 }
14961 if (obj4) {
14962 {
14963 arg6 = (int)(SWIG_As_int(obj4));
14964 if (SWIG_arg_fail(6)) SWIG_fail;
14965 }
14966 }
d55e5bfc
RD
14967 {
14968 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14969 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
14970
14971 wxPyEndAllowThreads(__tstate);
14972 if (PyErr_Occurred()) SWIG_fail;
14973 }
14974 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
14975 {
14976 if (arg3) delete [] arg3;
14977 }
d55e5bfc
RD
14978 return resultobj;
14979 fail:
093d3ff1
RD
14980 {
14981 if (arg3) delete [] arg3;
14982 }
d55e5bfc
RD
14983 return NULL;
14984}
14985
14986
093d3ff1
RD
14987static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj;
14989 wxDC *arg1 = (wxDC *) 0 ;
14990 wxString *arg2 = 0 ;
14991 wxRect *arg3 = 0 ;
14992 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14993 int arg5 = (int) -1 ;
14994 bool temp2 = false ;
14995 wxRect temp3 ;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 PyObject * obj2 = 0 ;
14999 PyObject * obj3 = 0 ;
15000 PyObject * obj4 = 0 ;
15001 char *kwnames[] = {
15002 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
15003 };
15004
15005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15007 if (SWIG_arg_fail(1)) SWIG_fail;
15008 {
15009 arg2 = wxString_in_helper(obj1);
15010 if (arg2 == NULL) SWIG_fail;
15011 temp2 = true;
15012 }
15013 {
15014 arg3 = &temp3;
15015 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15016 }
15017 if (obj3) {
15018 {
15019 arg4 = (int)(SWIG_As_int(obj3));
15020 if (SWIG_arg_fail(4)) SWIG_fail;
15021 }
15022 }
15023 if (obj4) {
15024 {
15025 arg5 = (int)(SWIG_As_int(obj4));
15026 if (SWIG_arg_fail(5)) SWIG_fail;
15027 }
15028 }
15029 {
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
15032
15033 wxPyEndAllowThreads(__tstate);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 Py_INCREF(Py_None); resultobj = Py_None;
15037 {
15038 if (temp2)
15039 delete arg2;
15040 }
15041 return resultobj;
15042 fail:
15043 {
15044 if (temp2)
15045 delete arg2;
15046 }
15047 return NULL;
15048}
15049
15050
15051static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15052 PyObject *resultobj;
15053 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15054 wxString *arg2 = 0 ;
15055 wxBitmap *arg3 = 0 ;
15056 wxRect *arg4 = 0 ;
15057 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
15058 int arg6 = (int) -1 ;
d55e5bfc 15059 wxRect result;
093d3ff1
RD
15060 bool temp2 = false ;
15061 wxRect temp4 ;
d55e5bfc 15062 PyObject * obj0 = 0 ;
093d3ff1
RD
15063 PyObject * obj1 = 0 ;
15064 PyObject * obj2 = 0 ;
15065 PyObject * obj3 = 0 ;
15066 PyObject * obj4 = 0 ;
15067 PyObject * obj5 = 0 ;
d55e5bfc 15068 char *kwnames[] = {
093d3ff1 15069 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
d55e5bfc
RD
15070 };
15071
093d3ff1
RD
15072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15073 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15074 if (SWIG_arg_fail(1)) SWIG_fail;
15075 {
15076 arg2 = wxString_in_helper(obj1);
15077 if (arg2 == NULL) SWIG_fail;
15078 temp2 = true;
15079 }
15080 {
15081 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
15082 if (SWIG_arg_fail(3)) SWIG_fail;
15083 if (arg3 == NULL) {
15084 SWIG_null_ref("wxBitmap");
15085 }
15086 if (SWIG_arg_fail(3)) SWIG_fail;
15087 }
15088 {
15089 arg4 = &temp4;
15090 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
15091 }
15092 if (obj4) {
15093 {
15094 arg5 = (int)(SWIG_As_int(obj4));
15095 if (SWIG_arg_fail(5)) SWIG_fail;
15096 }
15097 }
15098 if (obj5) {
15099 {
15100 arg6 = (int)(SWIG_As_int(obj5));
15101 if (SWIG_arg_fail(6)) SWIG_fail;
15102 }
15103 }
d55e5bfc
RD
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15106 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
d55e5bfc
RD
15107
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 {
15112 wxRect * resultptr;
093d3ff1 15113 resultptr = new wxRect((wxRect &)(result));
d55e5bfc
RD
15114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15115 }
093d3ff1
RD
15116 {
15117 if (temp2)
15118 delete arg2;
15119 }
d55e5bfc
RD
15120 return resultobj;
15121 fail:
093d3ff1
RD
15122 {
15123 if (temp2)
15124 delete arg2;
15125 }
d55e5bfc
RD
15126 return NULL;
15127}
15128
15129
093d3ff1 15130static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15131 PyObject *resultobj;
15132 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15133 int arg2 ;
15134 wxPoint *arg3 = (wxPoint *) 0 ;
d55e5bfc 15135 PyObject * obj0 = 0 ;
093d3ff1 15136 PyObject * obj1 = 0 ;
d55e5bfc 15137 char *kwnames[] = {
093d3ff1 15138 (char *) "self",(char *) "points", NULL
d55e5bfc
RD
15139 };
15140
093d3ff1
RD
15141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
15142 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15143 if (SWIG_arg_fail(1)) SWIG_fail;
15144 {
15145 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15146 if (arg3 == NULL) SWIG_fail;
15147 }
d55e5bfc
RD
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15150 (arg1)->DrawSpline(arg2,arg3);
d55e5bfc
RD
15151
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
093d3ff1
RD
15155 Py_INCREF(Py_None); resultobj = Py_None;
15156 {
15157 if (arg3) delete [] arg3;
15158 }
d55e5bfc
RD
15159 return resultobj;
15160 fail:
093d3ff1
RD
15161 {
15162 if (arg3) delete [] arg3;
15163 }
d55e5bfc
RD
15164 return NULL;
15165}
15166
15167
093d3ff1 15168static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15169 PyObject *resultobj;
15170 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc
RD
15171 PyObject * obj0 = 0 ;
15172 char *kwnames[] = {
15173 (char *) "self", NULL
15174 };
15175
093d3ff1
RD
15176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
15177 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15178 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15181 (arg1)->Clear();
d55e5bfc
RD
15182
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
093d3ff1 15186 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15187 return resultobj;
15188 fail:
15189 return NULL;
15190}
15191
15192
093d3ff1 15193static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15194 PyObject *resultobj;
15195 wxDC *arg1 = (wxDC *) 0 ;
15196 wxString *arg2 = 0 ;
093d3ff1 15197 bool result;
ae8162c8 15198 bool temp2 = false ;
d55e5bfc
RD
15199 PyObject * obj0 = 0 ;
15200 PyObject * obj1 = 0 ;
15201 char *kwnames[] = {
093d3ff1 15202 (char *) "self",(char *) "message", NULL
d55e5bfc
RD
15203 };
15204
093d3ff1
RD
15205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
15206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15207 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15208 {
15209 arg2 = wxString_in_helper(obj1);
15210 if (arg2 == NULL) SWIG_fail;
ae8162c8 15211 temp2 = true;
d55e5bfc
RD
15212 }
15213 {
15214 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15215 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
d55e5bfc
RD
15216
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
093d3ff1
RD
15220 {
15221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15222 }
d55e5bfc
RD
15223 {
15224 if (temp2)
15225 delete arg2;
15226 }
15227 return resultobj;
15228 fail:
15229 {
15230 if (temp2)
15231 delete arg2;
15232 }
15233 return NULL;
15234}
15235
15236
093d3ff1 15237static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15238 PyObject *resultobj;
15239 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 15240 PyObject * obj0 = 0 ;
d55e5bfc 15241 char *kwnames[] = {
093d3ff1 15242 (char *) "self", NULL
d55e5bfc
RD
15243 };
15244
093d3ff1
RD
15245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
15246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15247 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15248 {
15249 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15250 (arg1)->EndDoc();
d55e5bfc
RD
15251
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
15255 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15256 return resultobj;
15257 fail:
d55e5bfc
RD
15258 return NULL;
15259}
15260
15261
093d3ff1 15262static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15263 PyObject *resultobj;
15264 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 15265 PyObject * obj0 = 0 ;
d55e5bfc 15266 char *kwnames[] = {
093d3ff1 15267 (char *) "self", NULL
d55e5bfc
RD
15268 };
15269
093d3ff1
RD
15270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
15271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15272 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15275 (arg1)->StartPage();
d55e5bfc
RD
15276
15277 wxPyEndAllowThreads(__tstate);
15278 if (PyErr_Occurred()) SWIG_fail;
15279 }
15280 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15281 return resultobj;
15282 fail:
d55e5bfc
RD
15283 return NULL;
15284}
15285
15286
093d3ff1 15287static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15288 PyObject *resultobj;
15289 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 15290 PyObject * obj0 = 0 ;
d55e5bfc 15291 char *kwnames[] = {
093d3ff1 15292 (char *) "self", NULL
d55e5bfc
RD
15293 };
15294
093d3ff1
RD
15295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
15296 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15297 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15298 {
15299 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15300 (arg1)->EndPage();
d55e5bfc
RD
15301
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
093d3ff1 15305 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15306 return resultobj;
15307 fail:
d55e5bfc
RD
15308 return NULL;
15309}
15310
15311
093d3ff1 15312static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15313 PyObject *resultobj;
15314 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15315 wxFont *arg2 = 0 ;
d55e5bfc 15316 PyObject * obj0 = 0 ;
093d3ff1 15317 PyObject * obj1 = 0 ;
d55e5bfc 15318 char *kwnames[] = {
093d3ff1 15319 (char *) "self",(char *) "font", NULL
d55e5bfc
RD
15320 };
15321
093d3ff1
RD
15322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
15323 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15324 if (SWIG_arg_fail(1)) SWIG_fail;
15325 {
15326 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15327 if (SWIG_arg_fail(2)) SWIG_fail;
15328 if (arg2 == NULL) {
15329 SWIG_null_ref("wxFont");
15330 }
15331 if (SWIG_arg_fail(2)) SWIG_fail;
15332 }
d55e5bfc
RD
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15335 (arg1)->SetFont((wxFont const &)*arg2);
d55e5bfc
RD
15336
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
093d3ff1 15340 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15341 return resultobj;
15342 fail:
15343 return NULL;
15344}
15345
15346
093d3ff1 15347static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15348 PyObject *resultobj;
15349 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15350 wxPen *arg2 = 0 ;
d55e5bfc 15351 PyObject * obj0 = 0 ;
093d3ff1 15352 PyObject * obj1 = 0 ;
d55e5bfc 15353 char *kwnames[] = {
093d3ff1 15354 (char *) "self",(char *) "pen", NULL
d55e5bfc
RD
15355 };
15356
093d3ff1
RD
15357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
15358 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15359 if (SWIG_arg_fail(1)) SWIG_fail;
15360 {
15361 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
15362 if (SWIG_arg_fail(2)) SWIG_fail;
15363 if (arg2 == NULL) {
15364 SWIG_null_ref("wxPen");
15365 }
15366 if (SWIG_arg_fail(2)) SWIG_fail;
15367 }
d55e5bfc
RD
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15370 (arg1)->SetPen((wxPen const &)*arg2);
d55e5bfc
RD
15371
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15376 return resultobj;
15377 fail:
15378 return NULL;
15379}
15380
15381
093d3ff1 15382static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15383 PyObject *resultobj;
15384 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15385 wxBrush *arg2 = 0 ;
d55e5bfc 15386 PyObject * obj0 = 0 ;
093d3ff1 15387 PyObject * obj1 = 0 ;
d55e5bfc 15388 char *kwnames[] = {
093d3ff1 15389 (char *) "self",(char *) "brush", NULL
d55e5bfc
RD
15390 };
15391
093d3ff1
RD
15392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
15393 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15394 if (SWIG_arg_fail(1)) SWIG_fail;
15395 {
15396 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
15397 if (SWIG_arg_fail(2)) SWIG_fail;
15398 if (arg2 == NULL) {
15399 SWIG_null_ref("wxBrush");
15400 }
15401 if (SWIG_arg_fail(2)) SWIG_fail;
15402 }
d55e5bfc
RD
15403 {
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15405 (arg1)->SetBrush((wxBrush const &)*arg2);
d55e5bfc
RD
15406
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
093d3ff1 15410 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15411 return resultobj;
15412 fail:
15413 return NULL;
15414}
15415
15416
093d3ff1 15417static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15418 PyObject *resultobj;
15419 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15420 wxBrush *arg2 = 0 ;
d55e5bfc 15421 PyObject * obj0 = 0 ;
093d3ff1 15422 PyObject * obj1 = 0 ;
d55e5bfc 15423 char *kwnames[] = {
093d3ff1 15424 (char *) "self",(char *) "brush", NULL
d55e5bfc
RD
15425 };
15426
093d3ff1
RD
15427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
15428 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15429 if (SWIG_arg_fail(1)) SWIG_fail;
15430 {
15431 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
15432 if (SWIG_arg_fail(2)) SWIG_fail;
15433 if (arg2 == NULL) {
15434 SWIG_null_ref("wxBrush");
15435 }
15436 if (SWIG_arg_fail(2)) SWIG_fail;
15437 }
d55e5bfc
RD
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15440 (arg1)->SetBackground((wxBrush const &)*arg2);
d55e5bfc
RD
15441
15442 wxPyEndAllowThreads(__tstate);
15443 if (PyErr_Occurred()) SWIG_fail;
15444 }
15445 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15446 return resultobj;
15447 fail:
15448 return NULL;
15449}
15450
15451
093d3ff1 15452static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15453 PyObject *resultobj;
15454 wxDC *arg1 = (wxDC *) 0 ;
15455 int arg2 ;
d55e5bfc
RD
15456 PyObject * obj0 = 0 ;
15457 PyObject * obj1 = 0 ;
15458 char *kwnames[] = {
093d3ff1 15459 (char *) "self",(char *) "mode", NULL
d55e5bfc
RD
15460 };
15461
093d3ff1
RD
15462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
15463 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15464 if (SWIG_arg_fail(1)) SWIG_fail;
15465 {
15466 arg2 = (int)(SWIG_As_int(obj1));
15467 if (SWIG_arg_fail(2)) SWIG_fail;
15468 }
d55e5bfc
RD
15469 {
15470 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15471 (arg1)->SetBackgroundMode(arg2);
d55e5bfc
RD
15472
15473 wxPyEndAllowThreads(__tstate);
15474 if (PyErr_Occurred()) SWIG_fail;
15475 }
093d3ff1 15476 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15477 return resultobj;
15478 fail:
15479 return NULL;
15480}
15481
15482
093d3ff1 15483static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15484 PyObject *resultobj;
15485 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15486 wxPalette *arg2 = 0 ;
d55e5bfc
RD
15487 PyObject * obj0 = 0 ;
15488 PyObject * obj1 = 0 ;
15489 char *kwnames[] = {
093d3ff1 15490 (char *) "self",(char *) "palette", NULL
d55e5bfc
RD
15491 };
15492
093d3ff1
RD
15493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15494 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15495 if (SWIG_arg_fail(1)) SWIG_fail;
15496 {
15497 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
15498 if (SWIG_arg_fail(2)) SWIG_fail;
15499 if (arg2 == NULL) {
15500 SWIG_null_ref("wxPalette");
15501 }
15502 if (SWIG_arg_fail(2)) SWIG_fail;
15503 }
d55e5bfc
RD
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15506 (arg1)->SetPalette((wxPalette const &)*arg2);
d55e5bfc
RD
15507
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
093d3ff1 15511 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15512 return resultobj;
15513 fail:
15514 return NULL;
15515}
15516
15517
093d3ff1 15518static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15519 PyObject *resultobj;
15520 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 15521 PyObject * obj0 = 0 ;
d55e5bfc 15522 char *kwnames[] = {
093d3ff1 15523 (char *) "self", NULL
d55e5bfc
RD
15524 };
15525
093d3ff1
RD
15526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15528 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15531 (arg1)->DestroyClippingRegion();
d55e5bfc
RD
15532
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
093d3ff1 15536 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
15537 return resultobj;
15538 fail:
15539 return NULL;
15540}
15541
15542
093d3ff1 15543static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15544 PyObject *resultobj;
15545 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15546 int *arg2 = (int *) 0 ;
15547 int *arg3 = (int *) 0 ;
15548 int *arg4 = (int *) 0 ;
15549 int *arg5 = (int *) 0 ;
15550 int temp2 ;
15551 int res2 = 0 ;
15552 int temp3 ;
15553 int res3 = 0 ;
15554 int temp4 ;
15555 int res4 = 0 ;
15556 int temp5 ;
15557 int res5 = 0 ;
d55e5bfc 15558 PyObject * obj0 = 0 ;
d55e5bfc 15559 char *kwnames[] = {
093d3ff1 15560 (char *) "self", NULL
d55e5bfc
RD
15561 };
15562
093d3ff1
RD
15563 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15564 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15565 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15566 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15569 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15570 {
15571 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15572 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
d55e5bfc
RD
15573
15574 wxPyEndAllowThreads(__tstate);
15575 if (PyErr_Occurred()) SWIG_fail;
15576 }
093d3ff1
RD
15577 Py_INCREF(Py_None); resultobj = Py_None;
15578 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15579 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15580 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15581 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15582 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15583 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15584 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15585 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15586 return resultobj;
15587 fail:
15588 return NULL;
15589}
15590
15591
093d3ff1 15592static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15593 PyObject *resultobj;
15594 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15595 wxRect result;
d55e5bfc 15596 PyObject * obj0 = 0 ;
d55e5bfc 15597 char *kwnames[] = {
093d3ff1 15598 (char *) "self", NULL
d55e5bfc
RD
15599 };
15600
093d3ff1
RD
15601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15603 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15606 result = wxDC_GetClippingRect(arg1);
d55e5bfc
RD
15607
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
093d3ff1
RD
15611 {
15612 wxRect * resultptr;
15613 resultptr = new wxRect((wxRect &)(result));
15614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15615 }
d55e5bfc
RD
15616 return resultobj;
15617 fail:
15618 return NULL;
15619}
15620
15621
093d3ff1 15622static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15623 PyObject *resultobj;
15624 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc
RD
15625 int result;
15626 PyObject * obj0 = 0 ;
d55e5bfc 15627 char *kwnames[] = {
093d3ff1 15628 (char *) "self", NULL
d55e5bfc
RD
15629 };
15630
093d3ff1
RD
15631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15633 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15636 result = (int)((wxDC const *)arg1)->GetCharHeight();
d55e5bfc
RD
15637
15638 wxPyEndAllowThreads(__tstate);
15639 if (PyErr_Occurred()) SWIG_fail;
15640 }
093d3ff1
RD
15641 {
15642 resultobj = SWIG_From_int((int)(result));
15643 }
d55e5bfc
RD
15644 return resultobj;
15645 fail:
15646 return NULL;
15647}
15648
15649
093d3ff1 15650static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15651 PyObject *resultobj;
15652 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc
RD
15653 int result;
15654 PyObject * obj0 = 0 ;
d55e5bfc 15655 char *kwnames[] = {
093d3ff1 15656 (char *) "self", NULL
d55e5bfc
RD
15657 };
15658
093d3ff1
RD
15659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15661 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15664 result = (int)((wxDC const *)arg1)->GetCharWidth();
d55e5bfc
RD
15665
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
093d3ff1
RD
15669 {
15670 resultobj = SWIG_From_int((int)(result));
15671 }
d55e5bfc
RD
15672 return resultobj;
15673 fail:
15674 return NULL;
15675}
15676
15677
093d3ff1 15678static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15679 PyObject *resultobj;
15680 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15681 wxString *arg2 = 0 ;
15682 int *arg3 = (int *) 0 ;
15683 int *arg4 = (int *) 0 ;
15684 bool temp2 = false ;
15685 int temp3 ;
15686 int res3 = 0 ;
15687 int temp4 ;
15688 int res4 = 0 ;
d55e5bfc
RD
15689 PyObject * obj0 = 0 ;
15690 PyObject * obj1 = 0 ;
15691 char *kwnames[] = {
093d3ff1 15692 (char *) "self",(char *) "string", NULL
d55e5bfc
RD
15693 };
15694
093d3ff1
RD
15695 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15696 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15698 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15699 if (SWIG_arg_fail(1)) SWIG_fail;
15700 {
15701 arg2 = wxString_in_helper(obj1);
15702 if (arg2 == NULL) SWIG_fail;
15703 temp2 = true;
15704 }
d55e5bfc
RD
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15707 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
d55e5bfc
RD
15708
15709 wxPyEndAllowThreads(__tstate);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 }
093d3ff1
RD
15712 Py_INCREF(Py_None); resultobj = Py_None;
15713 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15714 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15715 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15716 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15717 {
15718 if (temp2)
15719 delete arg2;
15720 }
d55e5bfc
RD
15721 return resultobj;
15722 fail:
093d3ff1
RD
15723 {
15724 if (temp2)
15725 delete arg2;
15726 }
d55e5bfc
RD
15727 return NULL;
15728}
15729
15730
093d3ff1 15731static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15732 PyObject *resultobj;
15733 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15734 wxString *arg2 = 0 ;
15735 int *arg3 = (int *) 0 ;
15736 int *arg4 = (int *) 0 ;
15737 int *arg5 = (int *) 0 ;
15738 int *arg6 = (int *) 0 ;
15739 wxFont *arg7 = (wxFont *) NULL ;
15740 bool temp2 = false ;
15741 int temp3 ;
15742 int res3 = 0 ;
15743 int temp4 ;
15744 int res4 = 0 ;
15745 int temp5 ;
15746 int res5 = 0 ;
15747 int temp6 ;
15748 int res6 = 0 ;
d55e5bfc 15749 PyObject * obj0 = 0 ;
093d3ff1
RD
15750 PyObject * obj1 = 0 ;
15751 PyObject * obj2 = 0 ;
d55e5bfc 15752 char *kwnames[] = {
093d3ff1 15753 (char *) "self",(char *) "string",(char *) "font", NULL
d55e5bfc
RD
15754 };
15755
093d3ff1
RD
15756 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15757 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15758 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15759 arg6 = &temp6; res6 = SWIG_NEWOBJ;
15760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15762 if (SWIG_arg_fail(1)) SWIG_fail;
15763 {
15764 arg2 = wxString_in_helper(obj1);
15765 if (arg2 == NULL) SWIG_fail;
15766 temp2 = true;
15767 }
15768 if (obj2) {
15769 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15770 if (SWIG_arg_fail(7)) SWIG_fail;
15771 }
d55e5bfc
RD
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15774 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
d55e5bfc
RD
15775
15776 wxPyEndAllowThreads(__tstate);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
093d3ff1
RD
15779 Py_INCREF(Py_None); resultobj = Py_None;
15780 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15781 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15782 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15783 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15784 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15785 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15786 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
15787 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d55e5bfc 15788 {
093d3ff1
RD
15789 if (temp2)
15790 delete arg2;
d55e5bfc
RD
15791 }
15792 return resultobj;
15793 fail:
093d3ff1
RD
15794 {
15795 if (temp2)
15796 delete arg2;
15797 }
d55e5bfc
RD
15798 return NULL;
15799}
15800
15801
093d3ff1 15802static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15803 PyObject *resultobj;
15804 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15805 wxString *arg2 = 0 ;
15806 int *arg3 = (int *) 0 ;
15807 int *arg4 = (int *) 0 ;
15808 int *arg5 = (int *) 0 ;
15809 wxFont *arg6 = (wxFont *) NULL ;
15810 bool temp2 = false ;
15811 int temp3 ;
15812 int res3 = 0 ;
15813 int temp4 ;
15814 int res4 = 0 ;
15815 int temp5 ;
15816 int res5 = 0 ;
d55e5bfc 15817 PyObject * obj0 = 0 ;
093d3ff1
RD
15818 PyObject * obj1 = 0 ;
15819 PyObject * obj2 = 0 ;
d55e5bfc 15820 char *kwnames[] = {
093d3ff1 15821 (char *) "self",(char *) "text",(char *) "font", NULL
d55e5bfc
RD
15822 };
15823
093d3ff1
RD
15824 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15825 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15826 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15828 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15829 if (SWIG_arg_fail(1)) SWIG_fail;
15830 {
15831 arg2 = wxString_in_helper(obj1);
15832 if (arg2 == NULL) SWIG_fail;
15833 temp2 = true;
15834 }
15835 if (obj2) {
15836 SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15837 if (SWIG_arg_fail(6)) SWIG_fail;
15838 }
d55e5bfc
RD
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15841 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
15842
15843 wxPyEndAllowThreads(__tstate);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 }
093d3ff1
RD
15846 Py_INCREF(Py_None); resultobj = Py_None;
15847 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15848 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15849 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15850 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15851 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15852 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc 15853 {
093d3ff1
RD
15854 if (temp2)
15855 delete arg2;
d55e5bfc
RD
15856 }
15857 return resultobj;
15858 fail:
093d3ff1
RD
15859 {
15860 if (temp2)
15861 delete arg2;
15862 }
d55e5bfc
RD
15863 return NULL;
15864}
15865
15866
093d3ff1 15867static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15868 PyObject *resultobj;
15869 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15870 wxString *arg2 = 0 ;
15871 wxArrayInt result;
15872 bool temp2 = false ;
d55e5bfc 15873 PyObject * obj0 = 0 ;
093d3ff1 15874 PyObject * obj1 = 0 ;
d55e5bfc 15875 char *kwnames[] = {
093d3ff1 15876 (char *) "self",(char *) "text", NULL
d55e5bfc
RD
15877 };
15878
093d3ff1
RD
15879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15880 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15881 if (SWIG_arg_fail(1)) SWIG_fail;
15882 {
15883 arg2 = wxString_in_helper(obj1);
15884 if (arg2 == NULL) SWIG_fail;
15885 temp2 = true;
15886 }
d55e5bfc
RD
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15889 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
d55e5bfc
RD
15890
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
093d3ff1
RD
15894 {
15895 resultobj = PyList_New(0);
15896 size_t idx;
15897 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
15898 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
15899 PyList_Append(resultobj, val);
15900 Py_DECREF(val);
15901 }
15902 }
15903 {
15904 if (temp2)
15905 delete arg2;
15906 }
d55e5bfc
RD
15907 return resultobj;
15908 fail:
093d3ff1
RD
15909 {
15910 if (temp2)
15911 delete arg2;
15912 }
d55e5bfc
RD
15913 return NULL;
15914}
15915
15916
093d3ff1 15917static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15918 PyObject *resultobj;
15919 wxDC *arg1 = (wxDC *) 0 ;
15920 wxSize result;
15921 PyObject * obj0 = 0 ;
15922 char *kwnames[] = {
15923 (char *) "self", NULL
15924 };
15925
093d3ff1
RD
15926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15928 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15929 {
15930 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15931 result = (arg1)->GetSize();
d55e5bfc
RD
15932
15933 wxPyEndAllowThreads(__tstate);
15934 if (PyErr_Occurred()) SWIG_fail;
15935 }
15936 {
15937 wxSize * resultptr;
093d3ff1 15938 resultptr = new wxSize((wxSize &)(result));
d55e5bfc
RD
15939 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15940 }
15941 return resultobj;
15942 fail:
15943 return NULL;
15944}
15945
15946
093d3ff1 15947static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15948 PyObject *resultobj;
15949 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15950 int *arg2 = (int *) 0 ;
15951 int *arg3 = (int *) 0 ;
15952 int temp2 ;
15953 int res2 = 0 ;
15954 int temp3 ;
15955 int res3 = 0 ;
d55e5bfc
RD
15956 PyObject * obj0 = 0 ;
15957 char *kwnames[] = {
15958 (char *) "self", NULL
15959 };
15960
093d3ff1
RD
15961 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15962 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15965 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15966 {
15967 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15968 (arg1)->GetSize(arg2,arg3);
d55e5bfc
RD
15969
15970 wxPyEndAllowThreads(__tstate);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
093d3ff1
RD
15973 Py_INCREF(Py_None); resultobj = Py_None;
15974 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15975 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15976 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15977 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15978 return resultobj;
15979 fail:
15980 return NULL;
15981}
15982
15983
093d3ff1 15984static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15985 PyObject *resultobj;
15986 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15987 wxSize result;
d55e5bfc
RD
15988 PyObject * obj0 = 0 ;
15989 char *kwnames[] = {
15990 (char *) "self", NULL
15991 };
15992
093d3ff1
RD
15993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
15994 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15995 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15998 result = ((wxDC const *)arg1)->GetSizeMM();
d55e5bfc
RD
15999
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
093d3ff1
RD
16003 {
16004 wxSize * resultptr;
16005 resultptr = new wxSize((wxSize &)(result));
16006 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16007 }
d55e5bfc
RD
16008 return resultobj;
16009 fail:
16010 return NULL;
16011}
16012
16013
093d3ff1 16014static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16015 PyObject *resultobj;
16016 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16017 int *arg2 = (int *) 0 ;
16018 int *arg3 = (int *) 0 ;
16019 int temp2 ;
16020 int res2 = 0 ;
16021 int temp3 ;
16022 int res3 = 0 ;
d55e5bfc
RD
16023 PyObject * obj0 = 0 ;
16024 char *kwnames[] = {
16025 (char *) "self", NULL
16026 };
16027
093d3ff1
RD
16028 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16029 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
16031 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16032 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16033 {
16034 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16035 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
d55e5bfc
RD
16036
16037 wxPyEndAllowThreads(__tstate);
16038 if (PyErr_Occurred()) SWIG_fail;
16039 }
093d3ff1
RD
16040 Py_INCREF(Py_None); resultobj = Py_None;
16041 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16042 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16043 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16044 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
16045 return resultobj;
16046 fail:
16047 return NULL;
16048}
16049
16050
093d3ff1 16051static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16052 PyObject *resultobj;
16053 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16054 int arg2 ;
16055 int result;
d55e5bfc 16056 PyObject * obj0 = 0 ;
093d3ff1 16057 PyObject * obj1 = 0 ;
d55e5bfc 16058 char *kwnames[] = {
093d3ff1 16059 (char *) "self",(char *) "x", NULL
d55e5bfc
RD
16060 };
16061
093d3ff1
RD
16062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
16063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16064 if (SWIG_arg_fail(1)) SWIG_fail;
16065 {
16066 arg2 = (int)(SWIG_As_int(obj1));
16067 if (SWIG_arg_fail(2)) SWIG_fail;
16068 }
d55e5bfc
RD
16069 {
16070 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16071 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d55e5bfc
RD
16072
16073 wxPyEndAllowThreads(__tstate);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 {
093d3ff1 16077 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
16078 }
16079 return resultobj;
16080 fail:
16081 return NULL;
16082}
16083
16084
093d3ff1 16085static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16086 PyObject *resultobj;
16087 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16088 int arg2 ;
16089 int result;
d55e5bfc 16090 PyObject * obj0 = 0 ;
093d3ff1 16091 PyObject * obj1 = 0 ;
d55e5bfc 16092 char *kwnames[] = {
093d3ff1 16093 (char *) "self",(char *) "y", NULL
d55e5bfc
RD
16094 };
16095
093d3ff1
RD
16096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
16097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16098 if (SWIG_arg_fail(1)) SWIG_fail;
16099 {
16100 arg2 = (int)(SWIG_As_int(obj1));
16101 if (SWIG_arg_fail(2)) SWIG_fail;
16102 }
d55e5bfc
RD
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16105 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d55e5bfc
RD
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
093d3ff1 16111 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
16112 }
16113 return resultobj;
16114 fail:
16115 return NULL;
16116}
16117
16118
093d3ff1 16119static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16120 PyObject *resultobj;
16121 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16122 int arg2 ;
16123 int result;
d55e5bfc 16124 PyObject * obj0 = 0 ;
093d3ff1 16125 PyObject * obj1 = 0 ;
d55e5bfc 16126 char *kwnames[] = {
093d3ff1 16127 (char *) "self",(char *) "x", NULL
d55e5bfc
RD
16128 };
16129
093d3ff1
RD
16130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
16131 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16132 if (SWIG_arg_fail(1)) SWIG_fail;
16133 {
16134 arg2 = (int)(SWIG_As_int(obj1));
16135 if (SWIG_arg_fail(2)) SWIG_fail;
16136 }
d55e5bfc
RD
16137 {
16138 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16139 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d55e5bfc
RD
16140
16141 wxPyEndAllowThreads(__tstate);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 {
093d3ff1 16145 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
16146 }
16147 return resultobj;
16148 fail:
16149 return NULL;
16150}
16151
16152
093d3ff1 16153static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16154 PyObject *resultobj;
16155 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16156 int arg2 ;
16157 int result;
d55e5bfc 16158 PyObject * obj0 = 0 ;
093d3ff1 16159 PyObject * obj1 = 0 ;
d55e5bfc 16160 char *kwnames[] = {
093d3ff1 16161 (char *) "self",(char *) "y", NULL
d55e5bfc
RD
16162 };
16163
093d3ff1
RD
16164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
16165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16166 if (SWIG_arg_fail(1)) SWIG_fail;
16167 {
16168 arg2 = (int)(SWIG_As_int(obj1));
16169 if (SWIG_arg_fail(2)) SWIG_fail;
16170 }
d55e5bfc
RD
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16173 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d55e5bfc
RD
16174
16175 wxPyEndAllowThreads(__tstate);
16176 if (PyErr_Occurred()) SWIG_fail;
16177 }
093d3ff1
RD
16178 {
16179 resultobj = SWIG_From_int((int)(result));
16180 }
d55e5bfc
RD
16181 return resultobj;
16182 fail:
16183 return NULL;
16184}
16185
16186
093d3ff1 16187static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16188 PyObject *resultobj;
16189 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16190 int arg2 ;
16191 int result;
d55e5bfc 16192 PyObject * obj0 = 0 ;
093d3ff1 16193 PyObject * obj1 = 0 ;
d55e5bfc 16194 char *kwnames[] = {
093d3ff1 16195 (char *) "self",(char *) "x", NULL
d55e5bfc
RD
16196 };
16197
093d3ff1
RD
16198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
16199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16200 if (SWIG_arg_fail(1)) SWIG_fail;
16201 {
16202 arg2 = (int)(SWIG_As_int(obj1));
16203 if (SWIG_arg_fail(2)) SWIG_fail;
16204 }
d55e5bfc
RD
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16207 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d55e5bfc
RD
16208
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
093d3ff1
RD
16212 {
16213 resultobj = SWIG_From_int((int)(result));
16214 }
d55e5bfc
RD
16215 return resultobj;
16216 fail:
16217 return NULL;
16218}
16219
16220
093d3ff1 16221static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16222 PyObject *resultobj;
16223 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16224 int arg2 ;
16225 int result;
d55e5bfc
RD
16226 PyObject * obj0 = 0 ;
16227 PyObject * obj1 = 0 ;
16228 char *kwnames[] = {
093d3ff1 16229 (char *) "self",(char *) "y", NULL
d55e5bfc
RD
16230 };
16231
093d3ff1
RD
16232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
16233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16234 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 16235 {
093d3ff1
RD
16236 arg2 = (int)(SWIG_As_int(obj1));
16237 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
16238 }
16239 {
16240 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16241 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d55e5bfc
RD
16242
16243 wxPyEndAllowThreads(__tstate);
16244 if (PyErr_Occurred()) SWIG_fail;
16245 }
093d3ff1
RD
16246 {
16247 resultobj = SWIG_From_int((int)(result));
16248 }
d55e5bfc
RD
16249 return resultobj;
16250 fail:
16251 return NULL;
16252}
16253
16254
093d3ff1 16255static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16256 PyObject *resultobj;
16257 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16258 int arg2 ;
16259 int result;
d55e5bfc
RD
16260 PyObject * obj0 = 0 ;
16261 PyObject * obj1 = 0 ;
16262 char *kwnames[] = {
093d3ff1 16263 (char *) "self",(char *) "x", NULL
d55e5bfc
RD
16264 };
16265
093d3ff1
RD
16266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
16267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16268 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 16269 {
093d3ff1
RD
16270 arg2 = (int)(SWIG_As_int(obj1));
16271 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
16272 }
16273 {
16274 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16275 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d55e5bfc
RD
16276
16277 wxPyEndAllowThreads(__tstate);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 }
093d3ff1
RD
16280 {
16281 resultobj = SWIG_From_int((int)(result));
16282 }
d55e5bfc
RD
16283 return resultobj;
16284 fail:
16285 return NULL;
16286}
16287
16288
093d3ff1 16289static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16290 PyObject *resultobj;
16291 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16292 int arg2 ;
d55e5bfc
RD
16293 int result;
16294 PyObject * obj0 = 0 ;
093d3ff1 16295 PyObject * obj1 = 0 ;
d55e5bfc 16296 char *kwnames[] = {
093d3ff1 16297 (char *) "self",(char *) "y", NULL
d55e5bfc
RD
16298 };
16299
093d3ff1
RD
16300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
16301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16302 if (SWIG_arg_fail(1)) SWIG_fail;
16303 {
16304 arg2 = (int)(SWIG_As_int(obj1));
16305 if (SWIG_arg_fail(2)) SWIG_fail;
16306 }
d55e5bfc
RD
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16309 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d55e5bfc
RD
16310
16311 wxPyEndAllowThreads(__tstate);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
093d3ff1
RD
16314 {
16315 resultobj = SWIG_From_int((int)(result));
16316 }
d55e5bfc
RD
16317 return resultobj;
16318 fail:
16319 return NULL;
16320}
16321
16322
093d3ff1 16323static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16324 PyObject *resultobj;
16325 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16326 bool result;
d55e5bfc 16327 PyObject * obj0 = 0 ;
d55e5bfc 16328 char *kwnames[] = {
093d3ff1 16329 (char *) "self", NULL
d55e5bfc
RD
16330 };
16331
093d3ff1
RD
16332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
16333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16334 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16335 {
16336 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16337 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
d55e5bfc
RD
16338
16339 wxPyEndAllowThreads(__tstate);
16340 if (PyErr_Occurred()) SWIG_fail;
16341 }
093d3ff1
RD
16342 {
16343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16344 }
d55e5bfc
RD
16345 return resultobj;
16346 fail:
16347 return NULL;
16348}
16349
16350
093d3ff1 16351static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16352 PyObject *resultobj;
16353 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16354 bool result;
d55e5bfc
RD
16355 PyObject * obj0 = 0 ;
16356 char *kwnames[] = {
16357 (char *) "self", NULL
16358 };
16359
093d3ff1
RD
16360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
16361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16362 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16363 {
16364 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16365 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
d55e5bfc
RD
16366
16367 wxPyEndAllowThreads(__tstate);
16368 if (PyErr_Occurred()) SWIG_fail;
16369 }
093d3ff1
RD
16370 {
16371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16372 }
d55e5bfc
RD
16373 return resultobj;
16374 fail:
16375 return NULL;
16376}
16377
16378
093d3ff1 16379static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16380 PyObject *resultobj;
16381 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16382 int result;
d55e5bfc 16383 PyObject * obj0 = 0 ;
d55e5bfc 16384 char *kwnames[] = {
093d3ff1 16385 (char *) "self", NULL
d55e5bfc
RD
16386 };
16387
093d3ff1
RD
16388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
16389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16390 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16393 result = (int)((wxDC const *)arg1)->GetDepth();
d55e5bfc
RD
16394
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
093d3ff1
RD
16398 {
16399 resultobj = SWIG_From_int((int)(result));
16400 }
d55e5bfc
RD
16401 return resultobj;
16402 fail:
16403 return NULL;
16404}
16405
16406
093d3ff1 16407static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16408 PyObject *resultobj;
16409 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16410 wxSize result;
d55e5bfc
RD
16411 PyObject * obj0 = 0 ;
16412 char *kwnames[] = {
16413 (char *) "self", NULL
16414 };
16415
093d3ff1
RD
16416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
16417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16418 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16421 result = ((wxDC const *)arg1)->GetPPI();
d55e5bfc
RD
16422
16423 wxPyEndAllowThreads(__tstate);
16424 if (PyErr_Occurred()) SWIG_fail;
16425 }
093d3ff1
RD
16426 {
16427 wxSize * resultptr;
16428 resultptr = new wxSize((wxSize &)(result));
16429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16430 }
d55e5bfc
RD
16431 return resultobj;
16432 fail:
16433 return NULL;
16434}
16435
16436
093d3ff1 16437static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16438 PyObject *resultobj;
16439 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16440 bool result;
d55e5bfc 16441 PyObject * obj0 = 0 ;
d55e5bfc 16442 char *kwnames[] = {
093d3ff1 16443 (char *) "self", NULL
d55e5bfc
RD
16444 };
16445
093d3ff1
RD
16446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
16447 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16448 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16449 {
16450 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16451 result = (bool)((wxDC const *)arg1)->Ok();
d55e5bfc
RD
16452
16453 wxPyEndAllowThreads(__tstate);
16454 if (PyErr_Occurred()) SWIG_fail;
16455 }
093d3ff1
RD
16456 {
16457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16458 }
d55e5bfc
RD
16459 return resultobj;
16460 fail:
16461 return NULL;
16462}
16463
16464
093d3ff1 16465static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16466 PyObject *resultobj;
16467 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16468 int result;
d55e5bfc
RD
16469 PyObject * obj0 = 0 ;
16470 char *kwnames[] = {
16471 (char *) "self", NULL
16472 };
16473
093d3ff1
RD
16474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
16475 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16476 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16479 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
d55e5bfc
RD
16480
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 {
093d3ff1 16485 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
16486 }
16487 return resultobj;
16488 fail:
16489 return NULL;
16490}
16491
16492
093d3ff1 16493static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16494 PyObject *resultobj;
16495 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16496 wxBrush *result;
d55e5bfc
RD
16497 PyObject * obj0 = 0 ;
16498 char *kwnames[] = {
16499 (char *) "self", NULL
16500 };
16501
093d3ff1
RD
16502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
16503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16504 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16507 {
16508 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
16509 result = (wxBrush *) &_result_ref;
16510 }
d55e5bfc
RD
16511
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
093d3ff1
RD
16515 {
16516 wxBrush* resultptr = new wxBrush(*result);
16517 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16518 }
d55e5bfc
RD
16519 return resultobj;
16520 fail:
16521 return NULL;
16522}
16523
16524
093d3ff1 16525static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16526 PyObject *resultobj;
16527 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16528 wxBrush *result;
d55e5bfc 16529 PyObject * obj0 = 0 ;
d55e5bfc 16530 char *kwnames[] = {
093d3ff1 16531 (char *) "self", NULL
d55e5bfc
RD
16532 };
16533
093d3ff1
RD
16534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
16535 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16536 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16539 {
16540 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
16541 result = (wxBrush *) &_result_ref;
16542 }
d55e5bfc
RD
16543
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
093d3ff1
RD
16547 {
16548 wxBrush* resultptr = new wxBrush(*result);
16549 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16550 }
d55e5bfc
RD
16551 return resultobj;
16552 fail:
16553 return NULL;
16554}
16555
16556
093d3ff1 16557static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
16558 PyObject *resultobj;
16559 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16560 wxFont *result;
c24da6d6 16561 PyObject * obj0 = 0 ;
c24da6d6 16562 char *kwnames[] = {
093d3ff1 16563 (char *) "self", NULL
c24da6d6
RD
16564 };
16565
093d3ff1
RD
16566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
16567 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16568 if (SWIG_arg_fail(1)) SWIG_fail;
c24da6d6
RD
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16571 {
16572 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
16573 result = (wxFont *) &_result_ref;
16574 }
c24da6d6
RD
16575
16576 wxPyEndAllowThreads(__tstate);
16577 if (PyErr_Occurred()) SWIG_fail;
16578 }
093d3ff1
RD
16579 {
16580 wxFont* resultptr = new wxFont(*result);
16581 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
16582 }
c24da6d6
RD
16583 return resultobj;
16584 fail:
16585 return NULL;
16586}
16587
16588
093d3ff1 16589static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16590 PyObject *resultobj;
16591 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16592 wxPen *result;
d55e5bfc
RD
16593 PyObject * obj0 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "self", NULL
16596 };
16597
093d3ff1
RD
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
16599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16600 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16601 {
16602 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16603 {
16604 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
16605 result = (wxPen *) &_result_ref;
16606 }
d55e5bfc
RD
16607
16608 wxPyEndAllowThreads(__tstate);
16609 if (PyErr_Occurred()) SWIG_fail;
16610 }
16611 {
093d3ff1
RD
16612 wxPen* resultptr = new wxPen(*result);
16613 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
d55e5bfc
RD
16614 }
16615 return resultobj;
16616 fail:
16617 return NULL;
16618}
16619
16620
093d3ff1 16621static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16622 PyObject *resultobj;
16623 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16624 wxColour *result;
d55e5bfc
RD
16625 PyObject * obj0 = 0 ;
16626 char *kwnames[] = {
16627 (char *) "self", NULL
16628 };
16629
093d3ff1
RD
16630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
16631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16632 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16635 {
16636 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
16637 result = (wxColour *) &_result_ref;
16638 }
d55e5bfc
RD
16639
16640 wxPyEndAllowThreads(__tstate);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
093d3ff1 16643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d55e5bfc
RD
16644 return resultobj;
16645 fail:
16646 return NULL;
16647}
16648
16649
093d3ff1 16650static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16651 PyObject *resultobj;
16652 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16653 wxColour *result;
d55e5bfc 16654 PyObject * obj0 = 0 ;
d55e5bfc 16655 char *kwnames[] = {
093d3ff1 16656 (char *) "self", NULL
d55e5bfc
RD
16657 };
16658
093d3ff1
RD
16659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
16660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16661 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16664 {
16665 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
16666 result = (wxColour *) &_result_ref;
16667 }
d55e5bfc
RD
16668
16669 wxPyEndAllowThreads(__tstate);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
093d3ff1 16672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d55e5bfc
RD
16673 return resultobj;
16674 fail:
16675 return NULL;
16676}
16677
16678
093d3ff1 16679static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
16680 PyObject *resultobj;
16681 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16682 wxColour *arg2 = 0 ;
16683 wxColour temp2 ;
c24da6d6
RD
16684 PyObject * obj0 = 0 ;
16685 PyObject * obj1 = 0 ;
16686 char *kwnames[] = {
093d3ff1 16687 (char *) "self",(char *) "colour", NULL
c24da6d6
RD
16688 };
16689
093d3ff1
RD
16690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
16691 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16692 if (SWIG_arg_fail(1)) SWIG_fail;
c24da6d6
RD
16693 {
16694 arg2 = &temp2;
093d3ff1 16695 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
c24da6d6
RD
16696 }
16697 {
16698 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16699 (arg1)->SetTextForeground((wxColour const &)*arg2);
c24da6d6
RD
16700
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 Py_INCREF(Py_None); resultobj = Py_None;
16705 return resultobj;
16706 fail:
16707 return NULL;
16708}
16709
16710
093d3ff1 16711static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16712 PyObject *resultobj;
16713 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16714 wxColour *arg2 = 0 ;
16715 wxColour temp2 ;
d55e5bfc
RD
16716 PyObject * obj0 = 0 ;
16717 PyObject * obj1 = 0 ;
d55e5bfc 16718 char *kwnames[] = {
093d3ff1 16719 (char *) "self",(char *) "colour", NULL
d55e5bfc
RD
16720 };
16721
093d3ff1
RD
16722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
16723 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16724 if (SWIG_arg_fail(1)) SWIG_fail;
16725 {
16726 arg2 = &temp2;
16727 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16728 }
d55e5bfc
RD
16729 {
16730 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16731 (arg1)->SetTextBackground((wxColour const &)*arg2);
d55e5bfc
RD
16732
16733 wxPyEndAllowThreads(__tstate);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
16736 Py_INCREF(Py_None); resultobj = Py_None;
16737 return resultobj;
16738 fail:
16739 return NULL;
16740}
16741
16742
093d3ff1 16743static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16744 PyObject *resultobj;
16745 wxDC *arg1 = (wxDC *) 0 ;
16746 int result;
16747 PyObject * obj0 = 0 ;
16748 char *kwnames[] = {
16749 (char *) "self", NULL
16750 };
16751
093d3ff1
RD
16752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
16753 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16754 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16755 {
16756 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16757 result = (int)((wxDC const *)arg1)->GetMapMode();
d55e5bfc
RD
16758
16759 wxPyEndAllowThreads(__tstate);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 }
093d3ff1
RD
16762 {
16763 resultobj = SWIG_From_int((int)(result));
16764 }
d55e5bfc
RD
16765 return resultobj;
16766 fail:
16767 return NULL;
16768}
16769
16770
093d3ff1 16771static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16772 PyObject *resultobj;
16773 wxDC *arg1 = (wxDC *) 0 ;
16774 int arg2 ;
16775 PyObject * obj0 = 0 ;
16776 PyObject * obj1 = 0 ;
16777 char *kwnames[] = {
093d3ff1 16778 (char *) "self",(char *) "mode", NULL
d55e5bfc
RD
16779 };
16780
093d3ff1
RD
16781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
16782 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16783 if (SWIG_arg_fail(1)) SWIG_fail;
16784 {
16785 arg2 = (int)(SWIG_As_int(obj1));
16786 if (SWIG_arg_fail(2)) SWIG_fail;
16787 }
d55e5bfc
RD
16788 {
16789 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16790 (arg1)->SetMapMode(arg2);
d55e5bfc
RD
16791
16792 wxPyEndAllowThreads(__tstate);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
16795 Py_INCREF(Py_None); resultobj = Py_None;
16796 return resultobj;
16797 fail:
16798 return NULL;
16799}
16800
16801
093d3ff1 16802static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
5cbf236d
RD
16803 PyObject *resultobj;
16804 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16805 double *arg2 = (double *) 0 ;
16806 double *arg3 = (double *) 0 ;
16807 double temp2 ;
16808 int res2 = 0 ;
16809 double temp3 ;
16810 int res3 = 0 ;
5cbf236d
RD
16811 PyObject * obj0 = 0 ;
16812 char *kwnames[] = {
16813 (char *) "self", NULL
16814 };
16815
093d3ff1
RD
16816 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16817 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
16819 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16820 if (SWIG_arg_fail(1)) SWIG_fail;
5cbf236d
RD
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16823 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
5cbf236d
RD
16824
16825 wxPyEndAllowThreads(__tstate);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
16829 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16830 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16831 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16832 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
5cbf236d
RD
16833 return resultobj;
16834 fail:
16835 return NULL;
16836}
16837
16838
093d3ff1 16839static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16840 PyObject *resultobj;
16841 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16842 double arg2 ;
16843 double arg3 ;
d55e5bfc
RD
16844 PyObject * obj0 = 0 ;
16845 PyObject * obj1 = 0 ;
16846 PyObject * obj2 = 0 ;
16847 char *kwnames[] = {
16848 (char *) "self",(char *) "x",(char *) "y", NULL
16849 };
16850
093d3ff1
RD
16851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16853 if (SWIG_arg_fail(1)) SWIG_fail;
16854 {
16855 arg2 = (double)(SWIG_As_double(obj1));
16856 if (SWIG_arg_fail(2)) SWIG_fail;
16857 }
16858 {
16859 arg3 = (double)(SWIG_As_double(obj2));
16860 if (SWIG_arg_fail(3)) SWIG_fail;
16861 }
d55e5bfc
RD
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16864 (arg1)->SetUserScale(arg2,arg3);
d55e5bfc
RD
16865
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 Py_INCREF(Py_None); resultobj = Py_None;
16870 return resultobj;
16871 fail:
16872 return NULL;
16873}
16874
16875
093d3ff1 16876static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
16877 PyObject *resultobj;
16878 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16879 double *arg2 = (double *) 0 ;
16880 double *arg3 = (double *) 0 ;
16881 double temp2 ;
16882 int res2 = 0 ;
16883 double temp3 ;
16884 int res3 = 0 ;
16885 PyObject * obj0 = 0 ;
16886 char *kwnames[] = {
16887 (char *) "self", NULL
16888 };
16889
16890 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16891 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
16893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16894 if (SWIG_arg_fail(1)) SWIG_fail;
16895 {
16896 PyThreadState* __tstate = wxPyBeginAllowThreads();
16897 (arg1)->GetLogicalScale(arg2,arg3);
16898
16899 wxPyEndAllowThreads(__tstate);
16900 if (PyErr_Occurred()) SWIG_fail;
16901 }
16902 Py_INCREF(Py_None); resultobj = Py_None;
16903 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16904 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16905 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16906 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
16907 return resultobj;
16908 fail:
16909 return NULL;
16910}
16911
16912
16913static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj;
16915 wxDC *arg1 = (wxDC *) 0 ;
16916 double arg2 ;
16917 double arg3 ;
c24da6d6
RD
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
093d3ff1 16920 PyObject * obj2 = 0 ;
c24da6d6 16921 char *kwnames[] = {
093d3ff1 16922 (char *) "self",(char *) "x",(char *) "y", NULL
c24da6d6
RD
16923 };
16924
093d3ff1
RD
16925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16927 if (SWIG_arg_fail(1)) SWIG_fail;
c24da6d6 16928 {
093d3ff1
RD
16929 arg2 = (double)(SWIG_As_double(obj1));
16930 if (SWIG_arg_fail(2)) SWIG_fail;
16931 }
16932 {
16933 arg3 = (double)(SWIG_As_double(obj2));
16934 if (SWIG_arg_fail(3)) SWIG_fail;
c24da6d6
RD
16935 }
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16938 (arg1)->SetLogicalScale(arg2,arg3);
c24da6d6
RD
16939
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
16943 Py_INCREF(Py_None); resultobj = Py_None;
16944 return resultobj;
16945 fail:
16946 return NULL;
16947}
16948
16949
093d3ff1 16950static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16951 PyObject *resultobj;
16952 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16953 wxPoint result;
d55e5bfc
RD
16954 PyObject * obj0 = 0 ;
16955 char *kwnames[] = {
16956 (char *) "self", NULL
16957 };
16958
093d3ff1
RD
16959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
16960 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16961 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16964 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d55e5bfc
RD
16965
16966 wxPyEndAllowThreads(__tstate);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
093d3ff1
RD
16969 {
16970 wxPoint * resultptr;
16971 resultptr = new wxPoint((wxPoint &)(result));
16972 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16973 }
d55e5bfc
RD
16974 return resultobj;
16975 fail:
16976 return NULL;
16977}
16978
16979
093d3ff1 16980static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16981 PyObject *resultobj;
16982 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16983 int *arg2 = (int *) 0 ;
16984 int *arg3 = (int *) 0 ;
16985 int temp2 ;
16986 int res2 = 0 ;
16987 int temp3 ;
16988 int res3 = 0 ;
d55e5bfc
RD
16989 PyObject * obj0 = 0 ;
16990 char *kwnames[] = {
16991 (char *) "self", NULL
16992 };
16993
093d3ff1
RD
16994 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16995 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
16997 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16998 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17001 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d55e5bfc
RD
17002
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
093d3ff1
RD
17006 Py_INCREF(Py_None); resultobj = Py_None;
17007 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17008 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17009 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17010 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
17011 return resultobj;
17012 fail:
17013 return NULL;
17014}
17015
17016
093d3ff1 17017static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17018 PyObject *resultobj;
17019 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
17020 int arg2 ;
17021 int arg3 ;
d55e5bfc 17022 PyObject * obj0 = 0 ;
093d3ff1
RD
17023 PyObject * obj1 = 0 ;
17024 PyObject * obj2 = 0 ;
d55e5bfc 17025 char *kwnames[] = {
093d3ff1 17026 (char *) "self",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
17027 };
17028
093d3ff1
RD
17029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
17030 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17031 if (SWIG_arg_fail(1)) SWIG_fail;
17032 {
17033 arg2 = (int)(SWIG_As_int(obj1));
17034 if (SWIG_arg_fail(2)) SWIG_fail;
17035 }
17036 {
17037 arg3 = (int)(SWIG_As_int(obj2));
17038 if (SWIG_arg_fail(3)) SWIG_fail;
17039 }
d55e5bfc
RD
17040 {
17041 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17042 (arg1)->SetLogicalOrigin(arg2,arg3);
d55e5bfc
RD
17043
17044 wxPyEndAllowThreads(__tstate);
17045 if (PyErr_Occurred()) SWIG_fail;
17046 }
093d3ff1 17047 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17048 return resultobj;
17049 fail:
17050 return NULL;
17051}
17052
17053
093d3ff1 17054static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17055 PyObject *resultobj;
17056 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
17057 wxPoint *arg2 = 0 ;
17058 wxPoint temp2 ;
d55e5bfc 17059 PyObject * obj0 = 0 ;
093d3ff1 17060 PyObject * obj1 = 0 ;
d55e5bfc 17061 char *kwnames[] = {
093d3ff1 17062 (char *) "self",(char *) "point", NULL
d55e5bfc
RD
17063 };
17064
093d3ff1
RD
17065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
17066 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17067 if (SWIG_arg_fail(1)) SWIG_fail;
17068 {
17069 arg2 = &temp2;
17070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17071 }
d55e5bfc
RD
17072 {
17073 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17074 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
17075
17076 wxPyEndAllowThreads(__tstate);
17077 if (PyErr_Occurred()) SWIG_fail;
17078 }
093d3ff1 17079 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17080 return resultobj;
17081 fail:
17082 return NULL;
17083}
17084
17085
093d3ff1 17086static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17087 PyObject *resultobj;
17088 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 17089 wxPoint result;
d55e5bfc
RD
17090 PyObject * obj0 = 0 ;
17091 char *kwnames[] = {
17092 (char *) "self", NULL
17093 };
17094
093d3ff1
RD
17095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
17096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17097 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17098 {
17099 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17100 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d55e5bfc
RD
17101
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
093d3ff1
RD
17105 {
17106 wxPoint * resultptr;
17107 resultptr = new wxPoint((wxPoint &)(result));
17108 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17109 }
d55e5bfc
RD
17110 return resultobj;
17111 fail:
17112 return NULL;
17113}
17114
17115
093d3ff1 17116static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17117 PyObject *resultobj;
17118 wxDC *arg1 = (wxDC *) 0 ;
17119 int *arg2 = (int *) 0 ;
17120 int *arg3 = (int *) 0 ;
d55e5bfc 17121 int temp2 ;
c32bde28 17122 int res2 = 0 ;
d55e5bfc 17123 int temp3 ;
c32bde28 17124 int res3 = 0 ;
d55e5bfc
RD
17125 PyObject * obj0 = 0 ;
17126 char *kwnames[] = {
17127 (char *) "self", NULL
17128 };
17129
c32bde28
RD
17130 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17131 arg3 = &temp3; res3 = SWIG_NEWOBJ;
093d3ff1
RD
17132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
17133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17134 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17135 {
17136 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17137 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d55e5bfc
RD
17138
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
17143 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17144 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17145 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17146 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
17147 return resultobj;
17148 fail:
17149 return NULL;
17150}
17151
17152
093d3ff1 17153static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
0439c23b
RD
17154 PyObject *resultobj;
17155 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
17156 int arg2 ;
17157 int arg3 ;
0439c23b 17158 PyObject * obj0 = 0 ;
093d3ff1
RD
17159 PyObject * obj1 = 0 ;
17160 PyObject * obj2 = 0 ;
0439c23b 17161 char *kwnames[] = {
093d3ff1 17162 (char *) "self",(char *) "x",(char *) "y", NULL
0439c23b
RD
17163 };
17164
093d3ff1
RD
17165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
17166 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17167 if (SWIG_arg_fail(1)) SWIG_fail;
17168 {
17169 arg2 = (int)(SWIG_As_int(obj1));
17170 if (SWIG_arg_fail(2)) SWIG_fail;
17171 }
17172 {
17173 arg3 = (int)(SWIG_As_int(obj2));
17174 if (SWIG_arg_fail(3)) SWIG_fail;
17175 }
0439c23b
RD
17176 {
17177 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17178 (arg1)->SetDeviceOrigin(arg2,arg3);
0439c23b
RD
17179
17180 wxPyEndAllowThreads(__tstate);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
093d3ff1 17183 Py_INCREF(Py_None); resultobj = Py_None;
0439c23b
RD
17184 return resultobj;
17185 fail:
17186 return NULL;
17187}
17188
17189
093d3ff1 17190static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17191 PyObject *resultobj;
17192 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
17193 wxPoint *arg2 = 0 ;
17194 wxPoint temp2 ;
d55e5bfc
RD
17195 PyObject * obj0 = 0 ;
17196 PyObject * obj1 = 0 ;
d55e5bfc 17197 char *kwnames[] = {
093d3ff1 17198 (char *) "self",(char *) "point", NULL
d55e5bfc
RD
17199 };
17200
093d3ff1
RD
17201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
17202 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17203 if (SWIG_arg_fail(1)) SWIG_fail;
17204 {
17205 arg2 = &temp2;
17206 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17207 }
d55e5bfc
RD
17208 {
17209 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17210 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
17211
17212 wxPyEndAllowThreads(__tstate);
17213 if (PyErr_Occurred()) SWIG_fail;
17214 }
093d3ff1 17215 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17216 return resultobj;
17217 fail:
17218 return NULL;
17219}
17220
17221
093d3ff1 17222static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17223 PyObject *resultobj;
17224 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
17225 bool arg2 ;
17226 bool arg3 ;
d55e5bfc
RD
17227 PyObject * obj0 = 0 ;
17228 PyObject * obj1 = 0 ;
17229 PyObject * obj2 = 0 ;
d55e5bfc 17230 char *kwnames[] = {
093d3ff1 17231 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
d55e5bfc
RD
17232 };
17233
093d3ff1
RD
17234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
17235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17236 if (SWIG_arg_fail(1)) SWIG_fail;
17237 {
17238 arg2 = (bool)(SWIG_As_bool(obj1));
17239 if (SWIG_arg_fail(2)) SWIG_fail;
17240 }
17241 {
17242 arg3 = (bool)(SWIG_As_bool(obj2));
17243 if (SWIG_arg_fail(3)) SWIG_fail;
17244 }
d55e5bfc
RD
17245 {
17246 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17247 (arg1)->SetAxisOrientation(arg2,arg3);
d55e5bfc
RD
17248
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
093d3ff1 17252 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17253 return resultobj;
17254 fail:
17255 return NULL;
17256}
17257
17258
093d3ff1 17259static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17260 PyObject *resultobj;
17261 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 17262 int result;
d55e5bfc 17263 PyObject * obj0 = 0 ;
d55e5bfc 17264 char *kwnames[] = {
093d3ff1 17265 (char *) "self", NULL
d55e5bfc
RD
17266 };
17267
093d3ff1
RD
17268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
17269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17270 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17271 {
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17273 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
d55e5bfc
RD
17274
17275 wxPyEndAllowThreads(__tstate);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 }
093d3ff1
RD
17278 {
17279 resultobj = SWIG_From_int((int)(result));
17280 }
d55e5bfc
RD
17281 return resultobj;
17282 fail:
17283 return NULL;
17284}
17285
17286
093d3ff1 17287static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17288 PyObject *resultobj;
17289 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 17290 int arg2 ;
d55e5bfc
RD
17291 PyObject * obj0 = 0 ;
17292 PyObject * obj1 = 0 ;
d55e5bfc 17293 char *kwnames[] = {
093d3ff1 17294 (char *) "self",(char *) "function", NULL
d55e5bfc
RD
17295 };
17296
093d3ff1
RD
17297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
17298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17299 if (SWIG_arg_fail(1)) SWIG_fail;
17300 {
17301 arg2 = (int)(SWIG_As_int(obj1));
17302 if (SWIG_arg_fail(2)) SWIG_fail;
17303 }
d55e5bfc
RD
17304 {
17305 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17306 (arg1)->SetLogicalFunction(arg2);
d55e5bfc
RD
17307
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
093d3ff1 17311 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17312 return resultobj;
17313 fail:
17314 return NULL;
17315}
17316
17317
093d3ff1 17318static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17319 PyObject *resultobj;
17320 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc 17321 PyObject * obj0 = 0 ;
d55e5bfc 17322 char *kwnames[] = {
093d3ff1 17323 (char *) "self", NULL
d55e5bfc
RD
17324 };
17325
093d3ff1
RD
17326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail;
17327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17328 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17331 (arg1)->ComputeScaleAndOrigin();
d55e5bfc
RD
17332
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
093d3ff1 17336 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17337 return resultobj;
17338 fail:
17339 return NULL;
17340}
17341
17342
093d3ff1 17343static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17344 PyObject *resultobj;
17345 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
17346 int arg2 ;
17347 int arg3 ;
d55e5bfc
RD
17348 PyObject * obj0 = 0 ;
17349 PyObject * obj1 = 0 ;
17350 PyObject * obj2 = 0 ;
d55e5bfc 17351 char *kwnames[] = {
093d3ff1 17352 (char *) "self",(char *) "x",(char *) "y", NULL
d55e5bfc
RD
17353 };
17354
093d3ff1
RD
17355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
17356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17357 if (SWIG_arg_fail(1)) SWIG_fail;
17358 {
17359 arg2 = (int)(SWIG_As_int(obj1));
17360 if (SWIG_arg_fail(2)) SWIG_fail;
17361 }
17362 {
17363 arg3 = (int)(SWIG_As_int(obj2));
17364 if (SWIG_arg_fail(3)) SWIG_fail;
17365 }
d55e5bfc
RD
17366 {
17367 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17368 (arg1)->CalcBoundingBox(arg2,arg3);
d55e5bfc
RD
17369
17370 wxPyEndAllowThreads(__tstate);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
093d3ff1 17373 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17374 return resultobj;
17375 fail:
17376 return NULL;
17377}
17378
17379
093d3ff1 17380static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17381 PyObject *resultobj;
093d3ff1
RD
17382 wxDC *arg1 = (wxDC *) 0 ;
17383 wxPoint *arg2 = 0 ;
17384 wxPoint temp2 ;
17385 PyObject * obj0 = 0 ;
17386 PyObject * obj1 = 0 ;
d55e5bfc 17387 char *kwnames[] = {
093d3ff1 17388 (char *) "self",(char *) "point", NULL
d55e5bfc
RD
17389 };
17390
093d3ff1
RD
17391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
17392 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17393 if (SWIG_arg_fail(1)) SWIG_fail;
17394 {
17395 arg2 = &temp2;
17396 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17397 }
d55e5bfc
RD
17398 {
17399 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17400 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
17401
17402 wxPyEndAllowThreads(__tstate);
110da5b0 17403 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17404 }
093d3ff1 17405 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17406 return resultobj;
17407 fail:
17408 return NULL;
17409}
17410
17411
093d3ff1 17412static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17413 PyObject *resultobj;
17414 wxDC *arg1 = (wxDC *) 0 ;
d55e5bfc
RD
17415 PyObject * obj0 = 0 ;
17416 char *kwnames[] = {
093d3ff1 17417 (char *) "self", NULL
d55e5bfc
RD
17418 };
17419
093d3ff1
RD
17420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
17421 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17422 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17425 (arg1)->ResetBoundingBox();
d55e5bfc
RD
17426
17427 wxPyEndAllowThreads(__tstate);
110da5b0 17428 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17429 }
093d3ff1 17430 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17431 return resultobj;
17432 fail:
17433 return NULL;
17434}
17435
17436
093d3ff1 17437static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17438 PyObject *resultobj;
093d3ff1
RD
17439 wxDC *arg1 = (wxDC *) 0 ;
17440 int result;
d55e5bfc 17441 PyObject * obj0 = 0 ;
d55e5bfc 17442 char *kwnames[] = {
093d3ff1 17443 (char *) "self", NULL
d55e5bfc
RD
17444 };
17445
093d3ff1
RD
17446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
17447 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17448 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17449 {
17450 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17451 result = (int)((wxDC const *)arg1)->MinX();
d55e5bfc
RD
17452
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
093d3ff1
RD
17456 {
17457 resultobj = SWIG_From_int((int)(result));
17458 }
d55e5bfc
RD
17459 return resultobj;
17460 fail:
17461 return NULL;
17462}
17463
17464
093d3ff1 17465static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17466 PyObject *resultobj;
17467 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 17468 int result;
d55e5bfc 17469 PyObject * obj0 = 0 ;
093d3ff1
RD
17470 char *kwnames[] = {
17471 (char *) "self", NULL
17472 };
d55e5bfc 17473
093d3ff1
RD
17474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
17475 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17476 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17477 {
17478 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17479 result = (int)((wxDC const *)arg1)->MaxX();
d55e5bfc
RD
17480
17481 wxPyEndAllowThreads(__tstate);
110da5b0 17482 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17483 }
093d3ff1
RD
17484 {
17485 resultobj = SWIG_From_int((int)(result));
17486 }
d55e5bfc
RD
17487 return resultobj;
17488 fail:
17489 return NULL;
17490}
17491
17492
093d3ff1 17493static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17494 PyObject *resultobj;
17495 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 17496 int result;
d55e5bfc 17497 PyObject * obj0 = 0 ;
093d3ff1
RD
17498 char *kwnames[] = {
17499 (char *) "self", NULL
17500 };
d55e5bfc 17501
093d3ff1
RD
17502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
17503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17504 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17505 {
17506 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17507 result = (int)((wxDC const *)arg1)->MinY();
d55e5bfc
RD
17508
17509 wxPyEndAllowThreads(__tstate);
110da5b0 17510 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17511 }
093d3ff1
RD
17512 {
17513 resultobj = SWIG_From_int((int)(result));
17514 }
d55e5bfc
RD
17515 return resultobj;
17516 fail:
17517 return NULL;
17518}
17519
17520
093d3ff1 17521static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17522 PyObject *resultobj;
093d3ff1
RD
17523 wxDC *arg1 = (wxDC *) 0 ;
17524 int result;
d55e5bfc
RD
17525 PyObject * obj0 = 0 ;
17526 char *kwnames[] = {
17527 (char *) "self", NULL
17528 };
17529
093d3ff1
RD
17530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
17531 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17532 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17533 {
17534 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17535 result = (int)((wxDC const *)arg1)->MaxY();
d55e5bfc
RD
17536
17537 wxPyEndAllowThreads(__tstate);
17538 if (PyErr_Occurred()) SWIG_fail;
17539 }
093d3ff1
RD
17540 {
17541 resultobj = SWIG_From_int((int)(result));
17542 }
d55e5bfc
RD
17543 return resultobj;
17544 fail:
17545 return NULL;
17546}
17547
17548
093d3ff1 17549static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17550 PyObject *resultobj;
093d3ff1
RD
17551 wxDC *arg1 = (wxDC *) 0 ;
17552 int *arg2 = (int *) 0 ;
17553 int *arg3 = (int *) 0 ;
17554 int *arg4 = (int *) 0 ;
17555 int *arg5 = (int *) 0 ;
17556 int temp2 ;
17557 int res2 = 0 ;
17558 int temp3 ;
17559 int res3 = 0 ;
17560 int temp4 ;
17561 int res4 = 0 ;
17562 int temp5 ;
17563 int res5 = 0 ;
d55e5bfc
RD
17564 PyObject * obj0 = 0 ;
17565 char *kwnames[] = {
17566 (char *) "self", NULL
17567 };
17568
093d3ff1
RD
17569 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17570 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17571 arg4 = &temp4; res4 = SWIG_NEWOBJ;
17572 arg5 = &temp5; res5 = SWIG_NEWOBJ;
17573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
17574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17575 if (SWIG_arg_fail(1)) SWIG_fail;
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
17579
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
17584 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17585 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17586 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17587 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17588 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17589 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17590 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
17591 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
17592 return resultobj;
17593 fail:
17594 return NULL;
17595}
17596
17597
093d3ff1 17598static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17599 PyObject *resultobj;
093d3ff1
RD
17600 wxDC *arg1 = (wxDC *) 0 ;
17601 long result;
d55e5bfc 17602 PyObject * obj0 = 0 ;
d55e5bfc 17603 char *kwnames[] = {
093d3ff1 17604 (char *) "self", NULL
d55e5bfc
RD
17605 };
17606
093d3ff1
RD
17607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
17608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17609 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
17610 {
17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17612 result = (long)(arg1)->GetHDC();
d55e5bfc
RD
17613
17614 wxPyEndAllowThreads(__tstate);
110da5b0 17615 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17616 }
093d3ff1
RD
17617 {
17618 resultobj = SWIG_From_long((long)(result));
17619 }
d55e5bfc
RD
17620 return resultobj;
17621 fail:
17622 return NULL;
17623}
17624
17625
093d3ff1 17626static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17627 PyObject *resultobj;
093d3ff1
RD
17628 wxDC *arg1 = (wxDC *) 0 ;
17629 PyObject *arg2 = (PyObject *) 0 ;
17630 PyObject *arg3 = (PyObject *) 0 ;
17631 PyObject *arg4 = (PyObject *) 0 ;
17632 PyObject *result;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 PyObject * obj3 = 0 ;
d55e5bfc 17637 char *kwnames[] = {
093d3ff1 17638 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d55e5bfc
RD
17639 };
17640
093d3ff1
RD
17641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17643 if (SWIG_arg_fail(1)) SWIG_fail;
17644 arg2 = obj1;
17645 arg3 = obj2;
17646 arg4 = obj3;
d55e5bfc
RD
17647 {
17648 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17649 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
d55e5bfc
RD
17650
17651 wxPyEndAllowThreads(__tstate);
110da5b0 17652 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17653 }
093d3ff1 17654 resultobj = result;
d55e5bfc
RD
17655 return resultobj;
17656 fail:
17657 return NULL;
17658}
17659
17660
093d3ff1 17661static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17662 PyObject *resultobj;
093d3ff1
RD
17663 wxDC *arg1 = (wxDC *) 0 ;
17664 PyObject *arg2 = (PyObject *) 0 ;
17665 PyObject *arg3 = (PyObject *) 0 ;
17666 PyObject *arg4 = (PyObject *) 0 ;
17667 PyObject *result;
d55e5bfc
RD
17668 PyObject * obj0 = 0 ;
17669 PyObject * obj1 = 0 ;
093d3ff1
RD
17670 PyObject * obj2 = 0 ;
17671 PyObject * obj3 = 0 ;
d55e5bfc 17672 char *kwnames[] = {
093d3ff1 17673 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d55e5bfc
RD
17674 };
17675
093d3ff1
RD
17676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17677 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17678 if (SWIG_arg_fail(1)) SWIG_fail;
17679 arg2 = obj1;
17680 arg3 = obj2;
17681 arg4 = obj3;
d55e5bfc
RD
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17684 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
d55e5bfc
RD
17685
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
093d3ff1 17689 resultobj = result;
d55e5bfc
RD
17690 return resultobj;
17691 fail:
17692 return NULL;
17693}
17694
17695
093d3ff1 17696static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17697 PyObject *resultobj;
093d3ff1
RD
17698 wxDC *arg1 = (wxDC *) 0 ;
17699 PyObject *arg2 = (PyObject *) 0 ;
17700 PyObject *arg3 = (PyObject *) 0 ;
17701 PyObject *arg4 = (PyObject *) 0 ;
17702 PyObject *result;
d55e5bfc
RD
17703 PyObject * obj0 = 0 ;
17704 PyObject * obj1 = 0 ;
093d3ff1
RD
17705 PyObject * obj2 = 0 ;
17706 PyObject * obj3 = 0 ;
d55e5bfc 17707 char *kwnames[] = {
093d3ff1 17708 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d55e5bfc
RD
17709 };
17710
093d3ff1
RD
17711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17712 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17713 if (SWIG_arg_fail(1)) SWIG_fail;
17714 arg2 = obj1;
17715 arg3 = obj2;
17716 arg4 = obj3;
d55e5bfc
RD
17717 {
17718 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17719 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
d55e5bfc
RD
17720
17721 wxPyEndAllowThreads(__tstate);
17722 if (PyErr_Occurred()) SWIG_fail;
17723 }
093d3ff1 17724 resultobj = result;
d55e5bfc
RD
17725 return resultobj;
17726 fail:
17727 return NULL;
17728}
17729
17730
093d3ff1 17731static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17732 PyObject *resultobj;
093d3ff1
RD
17733 wxDC *arg1 = (wxDC *) 0 ;
17734 PyObject *arg2 = (PyObject *) 0 ;
17735 PyObject *arg3 = (PyObject *) 0 ;
17736 PyObject *arg4 = (PyObject *) 0 ;
17737 PyObject *result;
d55e5bfc 17738 PyObject * obj0 = 0 ;
093d3ff1
RD
17739 PyObject * obj1 = 0 ;
17740 PyObject * obj2 = 0 ;
17741 PyObject * obj3 = 0 ;
d55e5bfc 17742 char *kwnames[] = {
093d3ff1 17743 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d55e5bfc
RD
17744 };
17745
093d3ff1
RD
17746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17748 if (SWIG_arg_fail(1)) SWIG_fail;
17749 arg2 = obj1;
17750 arg3 = obj2;
17751 arg4 = obj3;
d55e5bfc
RD
17752 {
17753 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17754 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
d55e5bfc
RD
17755
17756 wxPyEndAllowThreads(__tstate);
17757 if (PyErr_Occurred()) SWIG_fail;
17758 }
093d3ff1 17759 resultobj = result;
d55e5bfc
RD
17760 return resultobj;
17761 fail:
17762 return NULL;
17763}
17764
17765
093d3ff1 17766static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17767 PyObject *resultobj;
093d3ff1
RD
17768 wxDC *arg1 = (wxDC *) 0 ;
17769 PyObject *arg2 = (PyObject *) 0 ;
17770 PyObject *arg3 = (PyObject *) 0 ;
17771 PyObject *arg4 = (PyObject *) 0 ;
17772 PyObject *result;
d55e5bfc 17773 PyObject * obj0 = 0 ;
093d3ff1
RD
17774 PyObject * obj1 = 0 ;
17775 PyObject * obj2 = 0 ;
17776 PyObject * obj3 = 0 ;
d55e5bfc 17777 char *kwnames[] = {
093d3ff1 17778 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d55e5bfc
RD
17779 };
17780
093d3ff1
RD
17781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17782 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17783 if (SWIG_arg_fail(1)) SWIG_fail;
17784 arg2 = obj1;
17785 arg3 = obj2;
17786 arg4 = obj3;
d55e5bfc
RD
17787 {
17788 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17789 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
d55e5bfc
RD
17790
17791 wxPyEndAllowThreads(__tstate);
110da5b0 17792 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17793 }
093d3ff1 17794 resultobj = result;
d55e5bfc
RD
17795 return resultobj;
17796 fail:
17797 return NULL;
17798}
17799
17800
093d3ff1 17801static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17802 PyObject *resultobj;
093d3ff1
RD
17803 wxDC *arg1 = (wxDC *) 0 ;
17804 PyObject *arg2 = (PyObject *) 0 ;
17805 PyObject *arg3 = (PyObject *) 0 ;
17806 PyObject *arg4 = (PyObject *) 0 ;
17807 PyObject *arg5 = (PyObject *) 0 ;
17808 PyObject *result;
d55e5bfc 17809 PyObject * obj0 = 0 ;
093d3ff1
RD
17810 PyObject * obj1 = 0 ;
17811 PyObject * obj2 = 0 ;
17812 PyObject * obj3 = 0 ;
17813 PyObject * obj4 = 0 ;
d55e5bfc 17814 char *kwnames[] = {
093d3ff1 17815 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
d55e5bfc
RD
17816 };
17817
093d3ff1
RD
17818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17819 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17820 if (SWIG_arg_fail(1)) SWIG_fail;
17821 arg2 = obj1;
17822 arg3 = obj2;
17823 arg4 = obj3;
17824 arg5 = obj4;
d55e5bfc
RD
17825 {
17826 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17827 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
17828
17829 wxPyEndAllowThreads(__tstate);
110da5b0 17830 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17831 }
093d3ff1 17832 resultobj = result;
d55e5bfc
RD
17833 return resultobj;
17834 fail:
17835 return NULL;
17836}
17837
17838
093d3ff1 17839static PyObject * DC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17840 PyObject *obj;
17841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 17842 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
d55e5bfc
RD
17843 Py_INCREF(obj);
17844 return Py_BuildValue((char *)"");
17845}
093d3ff1 17846static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17847 PyObject *resultobj;
093d3ff1 17848 wxMemoryDC *result;
d55e5bfc 17849 char *kwnames[] = {
093d3ff1 17850 NULL
d55e5bfc
RD
17851 };
17852
093d3ff1 17853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
d55e5bfc 17854 {
0439c23b 17855 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17857 result = (wxMemoryDC *)new wxMemoryDC();
d55e5bfc
RD
17858
17859 wxPyEndAllowThreads(__tstate);
110da5b0 17860 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17861 }
093d3ff1 17862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d55e5bfc
RD
17863 return resultobj;
17864 fail:
17865 return NULL;
17866}
17867
17868
093d3ff1 17869static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17870 PyObject *resultobj;
093d3ff1
RD
17871 wxDC *arg1 = (wxDC *) 0 ;
17872 wxMemoryDC *result;
d55e5bfc 17873 PyObject * obj0 = 0 ;
d55e5bfc 17874 char *kwnames[] = {
093d3ff1 17875 (char *) "oldDC", NULL
d55e5bfc
RD
17876 };
17877
093d3ff1
RD
17878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
17879 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17880 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 17881 {
0439c23b 17882 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17884 result = (wxMemoryDC *)new wxMemoryDC(arg1);
d55e5bfc
RD
17885
17886 wxPyEndAllowThreads(__tstate);
110da5b0 17887 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17888 }
093d3ff1 17889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d55e5bfc
RD
17890 return resultobj;
17891 fail:
17892 return NULL;
17893}
17894
17895
093d3ff1 17896static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 17897 PyObject *resultobj;
093d3ff1
RD
17898 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
17899 wxBitmap *arg2 = 0 ;
d55e5bfc 17900 PyObject * obj0 = 0 ;
093d3ff1 17901 PyObject * obj1 = 0 ;
d55e5bfc 17902 char *kwnames[] = {
093d3ff1 17903 (char *) "self",(char *) "bitmap", NULL
d55e5bfc
RD
17904 };
17905
093d3ff1
RD
17906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
17907 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0);
17908 if (SWIG_arg_fail(1)) SWIG_fail;
17909 {
17910 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17911 if (SWIG_arg_fail(2)) SWIG_fail;
17912 if (arg2 == NULL) {
17913 SWIG_null_ref("wxBitmap");
17914 }
17915 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
17916 }
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17919 (arg1)->SelectObject((wxBitmap const &)*arg2);
d55e5bfc
RD
17920
17921 wxPyEndAllowThreads(__tstate);
110da5b0 17922 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 17923 }
093d3ff1 17924 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
17925 return resultobj;
17926 fail:
17927 return NULL;
17928}
17929
17930
093d3ff1
RD
17931static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
17932 PyObject *obj;
17933 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17934 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
17935 Py_INCREF(obj);
17936 return Py_BuildValue((char *)"");
17937}
17938static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc 17939 PyObject *resultobj;
093d3ff1 17940 wxDC *arg1 = (wxDC *) 0 ;
6932ae68
RD
17941 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17942 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
e2950dbb 17943 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
093d3ff1 17944 wxBufferedDC *result;
d55e5bfc 17945 PyObject * obj0 = 0 ;
093d3ff1 17946 PyObject * obj1 = 0 ;
e2950dbb 17947 PyObject * obj2 = 0 ;
d55e5bfc 17948
6932ae68 17949 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
17950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17951 if (SWIG_arg_fail(1)) SWIG_fail;
6932ae68
RD
17952 if (obj1) {
17953 {
17954 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17955 if (SWIG_arg_fail(2)) SWIG_fail;
17956 if (arg2 == NULL) {
17957 SWIG_null_ref("wxBitmap");
17958 }
17959 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc 17960 }
093d3ff1 17961 }
e2950dbb
RD
17962 if (obj2) {
17963 {
17964 arg3 = (int)(SWIG_As_int(obj2));
17965 if (SWIG_arg_fail(3)) SWIG_fail;
17966 }
17967 }
093d3ff1
RD
17968 {
17969 if (!wxPyCheckForApp()) SWIG_fail;
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 17971 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
d55e5bfc
RD
17972
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
093d3ff1 17976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d55e5bfc
RD
17977 return resultobj;
17978 fail:
17979 return NULL;
17980}
17981
17982
093d3ff1 17983static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc 17984 PyObject *resultobj;
093d3ff1
RD
17985 wxDC *arg1 = (wxDC *) 0 ;
17986 wxSize *arg2 = 0 ;
e2950dbb 17987 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
093d3ff1
RD
17988 wxBufferedDC *result;
17989 wxSize temp2 ;
d55e5bfc
RD
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
e2950dbb 17992 PyObject * obj2 = 0 ;
d55e5bfc 17993
e2950dbb 17994 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
17995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17996 if (SWIG_arg_fail(1)) SWIG_fail;
17997 {
17998 arg2 = &temp2;
17999 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 18000 }
e2950dbb
RD
18001 if (obj2) {
18002 {
18003 arg3 = (int)(SWIG_As_int(obj2));
18004 if (SWIG_arg_fail(3)) SWIG_fail;
18005 }
18006 }
d55e5bfc 18007 {
093d3ff1 18008 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18009 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 18010 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
d55e5bfc
RD
18011
18012 wxPyEndAllowThreads(__tstate);
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
093d3ff1 18015 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d55e5bfc
RD
18016 return resultobj;
18017 fail:
18018 return NULL;
18019}
18020
18021
093d3ff1
RD
18022static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
18023 int argc;
e2950dbb 18024 PyObject *argv[4];
093d3ff1
RD
18025 int ii;
18026
18027 argc = PyObject_Length(args);
e2950dbb 18028 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
093d3ff1
RD
18029 argv[ii] = PyTuple_GetItem(args,ii);
18030 }
6932ae68 18031 if ((argc >= 1) && (argc <= 3)) {
093d3ff1
RD
18032 int _v;
18033 {
18034 void *ptr;
18035 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
18036 _v = 0;
18037 PyErr_Clear();
18038 } else {
18039 _v = 1;
18040 }
18041 }
18042 if (_v) {
6932ae68
RD
18043 if (argc <= 1) {
18044 return _wrap_new_BufferedDC__SWIG_0(self,args);
18045 }
093d3ff1
RD
18046 {
18047 void *ptr = 0;
18048 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
18049 _v = 0;
18050 PyErr_Clear();
18051 } else {
18052 _v = (ptr != 0);
18053 }
18054 }
18055 if (_v) {
e2950dbb
RD
18056 if (argc <= 2) {
18057 return _wrap_new_BufferedDC__SWIG_0(self,args);
18058 }
18059 _v = SWIG_Check_int(argv[2]);
18060 if (_v) {
18061 return _wrap_new_BufferedDC__SWIG_0(self,args);
18062 }
093d3ff1
RD
18063 }
18064 }
18065 }
e2950dbb 18066 if ((argc >= 2) && (argc <= 3)) {
093d3ff1
RD
18067 int _v;
18068 {
18069 void *ptr;
18070 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
18071 _v = 0;
18072 PyErr_Clear();
18073 } else {
18074 _v = 1;
18075 }
18076 }
18077 if (_v) {
18078 {
18079 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
18080 }
18081 if (_v) {
e2950dbb
RD
18082 if (argc <= 2) {
18083 return _wrap_new_BufferedDC__SWIG_1(self,args);
18084 }
18085 _v = SWIG_Check_int(argv[2]);
18086 if (_v) {
18087 return _wrap_new_BufferedDC__SWIG_1(self,args);
18088 }
093d3ff1
RD
18089 }
18090 }
18091 }
18092
18093 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
18094 return NULL;
18095}
18096
18097
18098static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18099 PyObject *resultobj;
093d3ff1 18100 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
d55e5bfc
RD
18101 PyObject * obj0 = 0 ;
18102 char *kwnames[] = {
093d3ff1 18103 (char *) "self", NULL
d55e5bfc
RD
18104 };
18105
093d3ff1
RD
18106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
18107 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
18108 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18111 delete arg1;
d55e5bfc
RD
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 Py_INCREF(Py_None); resultobj = Py_None;
18117 return resultobj;
18118 fail:
18119 return NULL;
18120}
18121
18122
093d3ff1 18123static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18124 PyObject *resultobj;
093d3ff1
RD
18125 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
18126 PyObject * obj0 = 0 ;
d55e5bfc 18127 char *kwnames[] = {
093d3ff1 18128 (char *) "self", NULL
d55e5bfc
RD
18129 };
18130
093d3ff1
RD
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
18132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
18133 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18134 {
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18136 (arg1)->UnMask();
d55e5bfc
RD
18137
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
093d3ff1 18141 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
18142 return resultobj;
18143 fail:
18144 return NULL;
18145}
18146
18147
093d3ff1 18148static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18149 PyObject *obj;
18150 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 18151 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
d55e5bfc
RD
18152 Py_INCREF(obj);
18153 return Py_BuildValue((char *)"");
18154}
093d3ff1 18155static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18156 PyObject *resultobj;
093d3ff1
RD
18157 wxWindow *arg1 = (wxWindow *) 0 ;
18158 wxBitmap const &arg2_defvalue = wxNullBitmap ;
18159 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
e2950dbb 18160 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
093d3ff1 18161 wxBufferedPaintDC *result;
d55e5bfc 18162 PyObject * obj0 = 0 ;
093d3ff1 18163 PyObject * obj1 = 0 ;
e2950dbb 18164 PyObject * obj2 = 0 ;
d55e5bfc 18165 char *kwnames[] = {
e2950dbb 18166 (char *) "window",(char *) "buffer",(char *) "style", NULL
d55e5bfc
RD
18167 };
18168
e2950dbb 18169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
18170 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18171 if (SWIG_arg_fail(1)) SWIG_fail;
18172 if (obj1) {
d55e5bfc 18173 {
093d3ff1
RD
18174 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18175 if (SWIG_arg_fail(2)) SWIG_fail;
18176 if (arg2 == NULL) {
18177 SWIG_null_ref("wxBitmap");
18178 }
18179 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
18180 }
18181 }
e2950dbb
RD
18182 if (obj2) {
18183 {
18184 arg3 = (int)(SWIG_As_int(obj2));
18185 if (SWIG_arg_fail(3)) SWIG_fail;
18186 }
18187 }
d55e5bfc 18188 {
0439c23b 18189 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 18191 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
d55e5bfc
RD
18192
18193 wxPyEndAllowThreads(__tstate);
110da5b0 18194 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 18195 }
093d3ff1 18196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d55e5bfc
RD
18197 return resultobj;
18198 fail:
d55e5bfc
RD
18199 return NULL;
18200}
18201
18202
093d3ff1
RD
18203static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
18204 PyObject *obj;
18205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18206 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
18207 Py_INCREF(obj);
18208 return Py_BuildValue((char *)"");
18209}
18210static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18211 PyObject *resultobj;
093d3ff1 18212 wxScreenDC *result;
d55e5bfc 18213 char *kwnames[] = {
093d3ff1 18214 NULL
d55e5bfc
RD
18215 };
18216
093d3ff1 18217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
d55e5bfc 18218 {
093d3ff1 18219 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18221 result = (wxScreenDC *)new wxScreenDC();
d55e5bfc
RD
18222
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
093d3ff1 18226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d55e5bfc
RD
18227 return resultobj;
18228 fail:
18229 return NULL;
18230}
18231
18232
093d3ff1 18233static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18234 PyObject *resultobj;
093d3ff1
RD
18235 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18236 wxWindow *arg2 = (wxWindow *) 0 ;
d55e5bfc
RD
18237 bool result;
18238 PyObject * obj0 = 0 ;
093d3ff1 18239 PyObject * obj1 = 0 ;
d55e5bfc 18240 char *kwnames[] = {
093d3ff1 18241 (char *) "self",(char *) "window", NULL
d55e5bfc
RD
18242 };
18243
093d3ff1
RD
18244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
18245 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18246 if (SWIG_arg_fail(1)) SWIG_fail;
18247 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18248 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18251 result = (bool)(arg1)->StartDrawingOnTop(arg2);
d55e5bfc
RD
18252
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 {
18257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18258 }
18259 return resultobj;
18260 fail:
18261 return NULL;
18262}
18263
18264
093d3ff1 18265static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18266 PyObject *resultobj;
093d3ff1
RD
18267 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18268 wxRect *arg2 = (wxRect *) NULL ;
d55e5bfc
RD
18269 bool result;
18270 PyObject * obj0 = 0 ;
18271 PyObject * obj1 = 0 ;
d55e5bfc 18272 char *kwnames[] = {
093d3ff1 18273 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
18274 };
18275
093d3ff1
RD
18276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
18277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18278 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 18279 if (obj1) {
093d3ff1
RD
18280 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
18281 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
18282 }
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18285 result = (bool)(arg1)->StartDrawingOnTop(arg2);
d55e5bfc
RD
18286
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 {
18291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18292 }
18293 return resultobj;
18294 fail:
18295 return NULL;
18296}
18297
18298
093d3ff1 18299static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18300 PyObject *resultobj;
093d3ff1
RD
18301 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18302 bool result;
d55e5bfc
RD
18303 PyObject * obj0 = 0 ;
18304 char *kwnames[] = {
18305 (char *) "self", NULL
18306 };
18307
093d3ff1
RD
18308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
18309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18310 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18313 result = (bool)(arg1)->EndDrawingOnTop();
d55e5bfc
RD
18314
18315 wxPyEndAllowThreads(__tstate);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 {
093d3ff1 18319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
18320 }
18321 return resultobj;
18322 fail:
18323 return NULL;
18324}
18325
18326
093d3ff1
RD
18327static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
18328 PyObject *obj;
18329 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18330 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
18331 Py_INCREF(obj);
18332 return Py_BuildValue((char *)"");
18333}
18334static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18335 PyObject *resultobj;
093d3ff1
RD
18336 wxWindow *arg1 = (wxWindow *) 0 ;
18337 wxClientDC *result;
d55e5bfc
RD
18338 PyObject * obj0 = 0 ;
18339 char *kwnames[] = {
093d3ff1 18340 (char *) "win", NULL
d55e5bfc
RD
18341 };
18342
093d3ff1
RD
18343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
18344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18345 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 18346 {
093d3ff1 18347 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18349 result = (wxClientDC *)new wxClientDC(arg1);
d55e5bfc
RD
18350
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
093d3ff1 18354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d55e5bfc
RD
18355 return resultobj;
18356 fail:
18357 return NULL;
18358}
18359
18360
093d3ff1
RD
18361static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
18362 PyObject *obj;
18363 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18364 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
18365 Py_INCREF(obj);
18366 return Py_BuildValue((char *)"");
18367}
18368static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18369 PyObject *resultobj;
093d3ff1
RD
18370 wxWindow *arg1 = (wxWindow *) 0 ;
18371 wxPaintDC *result;
d55e5bfc
RD
18372 PyObject * obj0 = 0 ;
18373 char *kwnames[] = {
093d3ff1 18374 (char *) "win", NULL
d55e5bfc
RD
18375 };
18376
093d3ff1
RD
18377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
18378 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18379 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 18380 {
093d3ff1 18381 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18382 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18383 result = (wxPaintDC *)new wxPaintDC(arg1);
d55e5bfc
RD
18384
18385 wxPyEndAllowThreads(__tstate);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 }
093d3ff1 18388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d55e5bfc
RD
18389 return resultobj;
18390 fail:
18391 return NULL;
18392}
18393
18394
093d3ff1
RD
18395static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
18396 PyObject *obj;
18397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18398 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
18399 Py_INCREF(obj);
18400 return Py_BuildValue((char *)"");
18401}
18402static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18403 PyObject *resultobj;
093d3ff1
RD
18404 wxWindow *arg1 = (wxWindow *) 0 ;
18405 wxWindowDC *result;
d55e5bfc
RD
18406 PyObject * obj0 = 0 ;
18407 char *kwnames[] = {
093d3ff1 18408 (char *) "win", NULL
d55e5bfc
RD
18409 };
18410
093d3ff1
RD
18411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
18412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18413 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 18414 {
093d3ff1 18415 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18416 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18417 result = (wxWindowDC *)new wxWindowDC(arg1);
d55e5bfc
RD
18418
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
093d3ff1 18422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d55e5bfc
RD
18423 return resultobj;
18424 fail:
18425 return NULL;
18426}
18427
18428
093d3ff1 18429static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18430 PyObject *obj;
18431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 18432 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
d55e5bfc
RD
18433 Py_INCREF(obj);
18434 return Py_BuildValue((char *)"");
18435}
093d3ff1 18436static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18437 PyObject *resultobj;
093d3ff1
RD
18438 wxDC *arg1 = 0 ;
18439 bool arg2 ;
18440 wxMirrorDC *result;
d55e5bfc
RD
18441 PyObject * obj0 = 0 ;
18442 PyObject * obj1 = 0 ;
d55e5bfc 18443 char *kwnames[] = {
093d3ff1 18444 (char *) "dc",(char *) "mirror", NULL
d55e5bfc
RD
18445 };
18446
093d3ff1
RD
18447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
18448 {
18449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18450 if (SWIG_arg_fail(1)) SWIG_fail;
18451 if (arg1 == NULL) {
18452 SWIG_null_ref("wxDC");
d55e5bfc 18453 }
093d3ff1 18454 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc 18455 }
093d3ff1
RD
18456 {
18457 arg2 = (bool)(SWIG_As_bool(obj1));
18458 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
18459 }
18460 {
0439c23b 18461 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18463 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
d55e5bfc
RD
18464
18465 wxPyEndAllowThreads(__tstate);
110da5b0 18466 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 18467 }
093d3ff1 18468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
d55e5bfc
RD
18469 return resultobj;
18470 fail:
d55e5bfc
RD
18471 return NULL;
18472}
18473
18474
093d3ff1
RD
18475static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
18476 PyObject *obj;
18477 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18478 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
18479 Py_INCREF(obj);
18480 return Py_BuildValue((char *)"");
18481}
18482static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18483 PyObject *resultobj;
093d3ff1
RD
18484 wxPrintData *arg1 = 0 ;
18485 wxPostScriptDC *result;
d55e5bfc
RD
18486 PyObject * obj0 = 0 ;
18487 char *kwnames[] = {
093d3ff1 18488 (char *) "printData", NULL
d55e5bfc
RD
18489 };
18490
093d3ff1
RD
18491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
18492 {
18493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18494 if (SWIG_arg_fail(1)) SWIG_fail;
18495 if (arg1 == NULL) {
18496 SWIG_null_ref("wxPrintData");
18497 }
18498 if (SWIG_arg_fail(1)) SWIG_fail;
18499 }
d55e5bfc 18500 {
093d3ff1 18501 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18502 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18503 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
d55e5bfc
RD
18504
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
093d3ff1 18508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d55e5bfc
RD
18509 return resultobj;
18510 fail:
18511 return NULL;
18512}
18513
18514
093d3ff1 18515static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18516 PyObject *resultobj;
093d3ff1
RD
18517 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18518 wxPrintData *result;
d55e5bfc
RD
18519 PyObject * obj0 = 0 ;
18520 char *kwnames[] = {
093d3ff1 18521 (char *) "self", NULL
d55e5bfc
RD
18522 };
18523
093d3ff1
RD
18524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
18525 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18526 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
18529 {
18530 wxPrintData &_result_ref = (arg1)->GetPrintData();
18531 result = (wxPrintData *) &_result_ref;
18532 }
d55e5bfc
RD
18533
18534 wxPyEndAllowThreads(__tstate);
110da5b0 18535 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 18536 }
093d3ff1 18537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d55e5bfc
RD
18538 return resultobj;
18539 fail:
18540 return NULL;
18541}
18542
18543
093d3ff1 18544static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18545 PyObject *resultobj;
093d3ff1
RD
18546 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18547 wxPrintData *arg2 = 0 ;
d55e5bfc
RD
18548 PyObject * obj0 = 0 ;
18549 PyObject * obj1 = 0 ;
d55e5bfc 18550 char *kwnames[] = {
093d3ff1 18551 (char *) "self",(char *) "data", NULL
d55e5bfc
RD
18552 };
18553
093d3ff1
RD
18554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
18555 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18556 if (SWIG_arg_fail(1)) SWIG_fail;
18557 {
18558 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18559 if (SWIG_arg_fail(2)) SWIG_fail;
18560 if (arg2 == NULL) {
18561 SWIG_null_ref("wxPrintData");
18562 }
18563 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
18564 }
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18567 (arg1)->SetPrintData((wxPrintData const &)*arg2);
d55e5bfc
RD
18568
18569 wxPyEndAllowThreads(__tstate);
110da5b0 18570 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 18571 }
093d3ff1 18572 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
18573 return resultobj;
18574 fail:
18575 return NULL;
18576}
18577
18578
093d3ff1 18579static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18580 PyObject *resultobj;
093d3ff1 18581 int arg1 ;
d55e5bfc
RD
18582 PyObject * obj0 = 0 ;
18583 char *kwnames[] = {
093d3ff1 18584 (char *) "ppi", NULL
d55e5bfc
RD
18585 };
18586
093d3ff1
RD
18587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
18588 {
18589 arg1 = (int)(SWIG_As_int(obj0));
18590 if (SWIG_arg_fail(1)) SWIG_fail;
18591 }
d55e5bfc
RD
18592 {
18593 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18594 wxPostScriptDC::SetResolution(arg1);
d55e5bfc
RD
18595
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 Py_INCREF(Py_None); resultobj = Py_None;
18600 return resultobj;
18601 fail:
18602 return NULL;
18603}
18604
18605
093d3ff1 18606static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18607 PyObject *resultobj;
d55e5bfc 18608 int result;
d55e5bfc 18609 char *kwnames[] = {
093d3ff1 18610 NULL
d55e5bfc
RD
18611 };
18612
093d3ff1 18613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
d55e5bfc
RD
18614 {
18615 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18616 result = (int)wxPostScriptDC::GetResolution();
d55e5bfc
RD
18617
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
093d3ff1
RD
18621 {
18622 resultobj = SWIG_From_int((int)(result));
18623 }
d55e5bfc
RD
18624 return resultobj;
18625 fail:
18626 return NULL;
18627}
18628
18629
093d3ff1
RD
18630static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
18631 PyObject *obj;
18632 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18633 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
18634 Py_INCREF(obj);
18635 return Py_BuildValue((char *)"");
18636}
18637static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18638 PyObject *resultobj;
093d3ff1
RD
18639 wxString const &arg1_defvalue = wxPyEmptyString ;
18640 wxString *arg1 = (wxString *) &arg1_defvalue ;
18641 wxMetaFile *result;
18642 bool temp1 = false ;
d55e5bfc 18643 PyObject * obj0 = 0 ;
d55e5bfc 18644 char *kwnames[] = {
093d3ff1 18645 (char *) "filename", NULL
d55e5bfc
RD
18646 };
18647
093d3ff1
RD
18648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
18649 if (obj0) {
18650 {
18651 arg1 = wxString_in_helper(obj0);
18652 if (arg1 == NULL) SWIG_fail;
18653 temp1 = true;
18654 }
d55e5bfc
RD
18655 }
18656 {
093d3ff1 18657 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 18658 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18659 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
d55e5bfc
RD
18660
18661 wxPyEndAllowThreads(__tstate);
18662 if (PyErr_Occurred()) SWIG_fail;
18663 }
093d3ff1
RD
18664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
18665 {
18666 if (temp1)
18667 delete arg1;
18668 }
d55e5bfc
RD
18669 return resultobj;
18670 fail:
093d3ff1
RD
18671 {
18672 if (temp1)
18673 delete arg1;
18674 }
d55e5bfc
RD
18675 return NULL;
18676}
18677
18678
093d3ff1 18679static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18680 PyObject *resultobj;
093d3ff1 18681 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
d55e5bfc 18682 PyObject * obj0 = 0 ;
d55e5bfc 18683 char *kwnames[] = {
093d3ff1 18684 (char *) "self", NULL
d55e5bfc
RD
18685 };
18686
093d3ff1
RD
18687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
18688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18689 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18692 delete arg1;
d55e5bfc
RD
18693
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
093d3ff1 18697 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
18698 return resultobj;
18699 fail:
18700 return NULL;
18701}
18702
18703
093d3ff1 18704static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18705 PyObject *resultobj;
093d3ff1 18706 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
d55e5bfc
RD
18707 bool result;
18708 PyObject * obj0 = 0 ;
d55e5bfc 18709 char *kwnames[] = {
093d3ff1 18710 (char *) "self", NULL
d55e5bfc
RD
18711 };
18712
093d3ff1
RD
18713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
18714 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18715 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18716 {
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18718 result = (bool)(arg1)->Ok();
d55e5bfc
RD
18719
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 {
18724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18725 }
18726 return resultobj;
18727 fail:
18728 return NULL;
18729}
18730
18731
093d3ff1 18732static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18733 PyObject *resultobj;
093d3ff1
RD
18734 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18735 int arg2 = (int) 0 ;
18736 int arg3 = (int) 0 ;
d55e5bfc
RD
18737 bool result;
18738 PyObject * obj0 = 0 ;
18739 PyObject * obj1 = 0 ;
18740 PyObject * obj2 = 0 ;
d55e5bfc 18741 char *kwnames[] = {
093d3ff1 18742 (char *) "self",(char *) "width",(char *) "height", NULL
d55e5bfc
RD
18743 };
18744
093d3ff1
RD
18745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
18746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18747 if (SWIG_arg_fail(1)) SWIG_fail;
18748 if (obj1) {
18749 {
18750 arg2 = (int)(SWIG_As_int(obj1));
18751 if (SWIG_arg_fail(2)) SWIG_fail;
18752 }
d55e5bfc 18753 }
093d3ff1
RD
18754 if (obj2) {
18755 {
18756 arg3 = (int)(SWIG_As_int(obj2));
18757 if (SWIG_arg_fail(3)) SWIG_fail;
18758 }
d55e5bfc
RD
18759 }
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18762 result = (bool)(arg1)->SetClipboard(arg2,arg3);
d55e5bfc
RD
18763
18764 wxPyEndAllowThreads(__tstate);
18765 if (PyErr_Occurred()) SWIG_fail;
18766 }
18767 {
18768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18769 }
18770 return resultobj;
18771 fail:
18772 return NULL;
18773}
18774
18775
093d3ff1 18776static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18777 PyObject *resultobj;
093d3ff1
RD
18778 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18779 wxSize result;
d55e5bfc
RD
18780 PyObject * obj0 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self", NULL
18783 };
18784
093d3ff1
RD
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
18786 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18787 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18788 {
18789 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18790 result = (arg1)->GetSize();
d55e5bfc
RD
18791
18792 wxPyEndAllowThreads(__tstate);
18793 if (PyErr_Occurred()) SWIG_fail;
18794 }
093d3ff1
RD
18795 {
18796 wxSize * resultptr;
18797 resultptr = new wxSize((wxSize &)(result));
18798 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18799 }
d55e5bfc
RD
18800 return resultobj;
18801 fail:
18802 return NULL;
18803}
18804
18805
093d3ff1 18806static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18807 PyObject *resultobj;
093d3ff1
RD
18808 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18809 int result;
d55e5bfc 18810 PyObject * obj0 = 0 ;
d55e5bfc 18811 char *kwnames[] = {
093d3ff1 18812 (char *) "self", NULL
d55e5bfc
RD
18813 };
18814
093d3ff1
RD
18815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
18816 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18817 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18820 result = (int)(arg1)->GetWidth();
d55e5bfc
RD
18821
18822 wxPyEndAllowThreads(__tstate);
18823 if (PyErr_Occurred()) SWIG_fail;
18824 }
18825 {
093d3ff1 18826 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
18827 }
18828 return resultobj;
18829 fail:
18830 return NULL;
18831}
18832
18833
093d3ff1 18834static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18835 PyObject *resultobj;
093d3ff1
RD
18836 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18837 int result;
d55e5bfc
RD
18838 PyObject * obj0 = 0 ;
18839 char *kwnames[] = {
18840 (char *) "self", NULL
18841 };
18842
093d3ff1
RD
18843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
18844 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18845 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18846 {
18847 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18848 result = (int)(arg1)->GetHeight();
d55e5bfc
RD
18849
18850 wxPyEndAllowThreads(__tstate);
18851 if (PyErr_Occurred()) SWIG_fail;
18852 }
18853 {
093d3ff1 18854 resultobj = SWIG_From_int((int)(result));
d55e5bfc
RD
18855 }
18856 return resultobj;
18857 fail:
18858 return NULL;
18859}
18860
18861
093d3ff1 18862static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 18863 PyObject *resultobj;
093d3ff1
RD
18864 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18865 wxString *result;
d55e5bfc 18866 PyObject * obj0 = 0 ;
d55e5bfc 18867 char *kwnames[] = {
093d3ff1 18868 (char *) "self", NULL
d55e5bfc
RD
18869 };
18870
093d3ff1
RD
18871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
18872 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18873 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
18874 {
18875 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
18876 {
18877 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
18878 result = (wxString *) &_result_ref;
18879 }
d55e5bfc
RD
18880
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
093d3ff1
RD
18884 {
18885#if wxUSE_UNICODE
18886 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18887#else
18888 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18889#endif
18890 }
d55e5bfc
RD
18891 return resultobj;
18892 fail:
18893 return NULL;
18894}
18895
18896
093d3ff1 18897static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18898 PyObject *obj;
18899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 18900 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
d55e5bfc
RD
18901 Py_INCREF(obj);
18902 return Py_BuildValue((char *)"");
18903}
093d3ff1
RD
18904static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj;
18906 wxString const &arg1_defvalue = wxPyEmptyString ;
18907 wxString *arg1 = (wxString *) &arg1_defvalue ;
18908 int arg2 = (int) 0 ;
18909 int arg3 = (int) 0 ;
18910 wxString const &arg4_defvalue = wxPyEmptyString ;
18911 wxString *arg4 = (wxString *) &arg4_defvalue ;
18912 wxMetaFileDC *result;
18913 bool temp1 = false ;
18914 bool temp4 = false ;
18915 PyObject * obj0 = 0 ;
18916 PyObject * obj1 = 0 ;
18917 PyObject * obj2 = 0 ;
18918 PyObject * obj3 = 0 ;
18919 char *kwnames[] = {
18920 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
18921 };
d55e5bfc 18922
093d3ff1
RD
18923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18924 if (obj0) {
18925 {
18926 arg1 = wxString_in_helper(obj0);
18927 if (arg1 == NULL) SWIG_fail;
18928 temp1 = true;
18929 }
18930 }
18931 if (obj1) {
18932 {
18933 arg2 = (int)(SWIG_As_int(obj1));
18934 if (SWIG_arg_fail(2)) SWIG_fail;
18935 }
18936 }
18937 if (obj2) {
18938 {
18939 arg3 = (int)(SWIG_As_int(obj2));
18940 if (SWIG_arg_fail(3)) SWIG_fail;
18941 }
18942 }
18943 if (obj3) {
18944 {
18945 arg4 = wxString_in_helper(obj3);
18946 if (arg4 == NULL) SWIG_fail;
18947 temp4 = true;
18948 }
18949 }
18950 {
18951 if (!wxPyCheckForApp()) SWIG_fail;
18952 PyThreadState* __tstate = wxPyBeginAllowThreads();
18953 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
18954
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
18959 {
18960 if (temp1)
18961 delete arg1;
18962 }
18963 {
18964 if (temp4)
18965 delete arg4;
18966 }
18967 return resultobj;
18968 fail:
18969 {
18970 if (temp1)
18971 delete arg1;
18972 }
18973 {
18974 if (temp4)
18975 delete arg4;
18976 }
18977 return NULL;
d55e5bfc
RD
18978}
18979
18980
093d3ff1
RD
18981static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj;
18983 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
18984 wxMetaFile *result;
18985 PyObject * obj0 = 0 ;
18986 char *kwnames[] = {
18987 (char *) "self", NULL
18988 };
d55e5bfc 18989
093d3ff1
RD
18990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
18991 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_EXCEPTION | 0);
18992 if (SWIG_arg_fail(1)) SWIG_fail;
18993 {
18994 PyThreadState* __tstate = wxPyBeginAllowThreads();
18995 result = (wxMetaFile *)(arg1)->Close();
18996
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
19001 return resultobj;
19002 fail:
19003 return NULL;
d55e5bfc
RD
19004}
19005
19006
093d3ff1
RD
19007static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
19008 PyObject *obj;
19009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19010 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
19011 Py_INCREF(obj);
19012 return Py_BuildValue((char *)"");
d55e5bfc 19013}
093d3ff1
RD
19014static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj;
19016 wxPrintData *arg1 = 0 ;
19017 wxPrinterDC *result;
19018 PyObject * obj0 = 0 ;
19019 char *kwnames[] = {
19020 (char *) "printData", NULL
19021 };
d55e5bfc 19022
093d3ff1
RD
19023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
19024 {
19025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
19026 if (SWIG_arg_fail(1)) SWIG_fail;
19027 if (arg1 == NULL) {
19028 SWIG_null_ref("wxPrintData");
19029 }
19030 if (SWIG_arg_fail(1)) SWIG_fail;
19031 }
19032 {
19033 if (!wxPyCheckForApp()) SWIG_fail;
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
19036
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
19041 return resultobj;
19042 fail:
19043 return NULL;
d55e5bfc
RD
19044}
19045
19046
093d3ff1
RD
19047static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
19048 PyObject *obj;
19049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19050 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
19051 Py_INCREF(obj);
19052 return Py_BuildValue((char *)"");
d55e5bfc 19053}
093d3ff1
RD
19054static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
19055 PyObject *resultobj;
19056 int arg1 ;
19057 int arg2 ;
19058 int arg3 = (int) true ;
19059 int arg4 = (int) 1 ;
19060 wxImageList *result;
19061 PyObject * obj0 = 0 ;
19062 PyObject * obj1 = 0 ;
19063 PyObject * obj2 = 0 ;
19064 PyObject * obj3 = 0 ;
19065 char *kwnames[] = {
19066 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
19067 };
d55e5bfc 19068
093d3ff1
RD
19069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19070 {
19071 arg1 = (int)(SWIG_As_int(obj0));
19072 if (SWIG_arg_fail(1)) SWIG_fail;
19073 }
19074 {
19075 arg2 = (int)(SWIG_As_int(obj1));
19076 if (SWIG_arg_fail(2)) SWIG_fail;
19077 }
19078 if (obj2) {
19079 {
19080 arg3 = (int)(SWIG_As_int(obj2));
19081 if (SWIG_arg_fail(3)) SWIG_fail;
19082 }
19083 }
19084 if (obj3) {
19085 {
19086 arg4 = (int)(SWIG_As_int(obj3));
19087 if (SWIG_arg_fail(4)) SWIG_fail;
19088 }
19089 }
19090 {
19091 if (!wxPyCheckForApp()) SWIG_fail;
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
19094
19095 wxPyEndAllowThreads(__tstate);
19096 if (PyErr_Occurred()) SWIG_fail;
19097 }
19098 {
19099 resultobj = wxPyMake_wxObject(result, 1);
19100 }
19101 return resultobj;
19102 fail:
19103 return NULL;
d55e5bfc
RD
19104}
19105
19106
093d3ff1
RD
19107static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj;
19109 wxImageList *arg1 = (wxImageList *) 0 ;
19110 PyObject * obj0 = 0 ;
19111 char *kwnames[] = {
19112 (char *) "self", NULL
19113 };
d55e5bfc 19114
093d3ff1
RD
19115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
19116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19117 if (SWIG_arg_fail(1)) SWIG_fail;
19118 {
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 delete arg1;
19121
19122 wxPyEndAllowThreads(__tstate);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 Py_INCREF(Py_None); resultobj = Py_None;
19126 return resultobj;
19127 fail:
19128 return NULL;
d55e5bfc
RD
19129}
19130
19131
093d3ff1
RD
19132static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
19133 PyObject *resultobj;
19134 wxImageList *arg1 = (wxImageList *) 0 ;
19135 wxBitmap *arg2 = 0 ;
19136 wxBitmap const &arg3_defvalue = wxNullBitmap ;
19137 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
19138 int result;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 PyObject * obj2 = 0 ;
19142 char *kwnames[] = {
19143 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
19144 };
d55e5bfc 19145
093d3ff1
RD
19146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
19147 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19148 if (SWIG_arg_fail(1)) SWIG_fail;
19149 {
19150 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19151 if (SWIG_arg_fail(2)) SWIG_fail;
19152 if (arg2 == NULL) {
19153 SWIG_null_ref("wxBitmap");
19154 }
19155 if (SWIG_arg_fail(2)) SWIG_fail;
19156 }
19157 if (obj2) {
19158 {
19159 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19160 if (SWIG_arg_fail(3)) SWIG_fail;
19161 if (arg3 == NULL) {
19162 SWIG_null_ref("wxBitmap");
19163 }
19164 if (SWIG_arg_fail(3)) SWIG_fail;
19165 }
19166 }
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
19170
19171 wxPyEndAllowThreads(__tstate);
19172 if (PyErr_Occurred()) SWIG_fail;
19173 }
19174 {
19175 resultobj = SWIG_From_int((int)(result));
19176 }
19177 return resultobj;
19178 fail:
19179 return NULL;
d55e5bfc
RD
19180}
19181
19182
093d3ff1
RD
19183static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
19184 PyObject *resultobj;
19185 wxImageList *arg1 = (wxImageList *) 0 ;
19186 wxBitmap *arg2 = 0 ;
19187 wxColour *arg3 = 0 ;
19188 int result;
19189 wxColour temp3 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 PyObject * obj2 = 0 ;
19193 char *kwnames[] = {
19194 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
19195 };
d55e5bfc 19196
093d3ff1
RD
19197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
19198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19199 if (SWIG_arg_fail(1)) SWIG_fail;
19200 {
19201 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19202 if (SWIG_arg_fail(2)) SWIG_fail;
19203 if (arg2 == NULL) {
19204 SWIG_null_ref("wxBitmap");
19205 }
19206 if (SWIG_arg_fail(2)) SWIG_fail;
19207 }
19208 {
19209 arg3 = &temp3;
19210 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19211 }
19212 {
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
19215
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 {
19220 resultobj = SWIG_From_int((int)(result));
19221 }
19222 return resultobj;
19223 fail:
19224 return NULL;
d55e5bfc
RD
19225}
19226
19227
093d3ff1
RD
19228static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
19229 PyObject *resultobj;
19230 wxImageList *arg1 = (wxImageList *) 0 ;
19231 wxIcon *arg2 = 0 ;
19232 int result;
19233 PyObject * obj0 = 0 ;
19234 PyObject * obj1 = 0 ;
19235 char *kwnames[] = {
19236 (char *) "self",(char *) "icon", NULL
19237 };
d55e5bfc 19238
093d3ff1
RD
19239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
19240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19241 if (SWIG_arg_fail(1)) SWIG_fail;
19242 {
19243 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
19244 if (SWIG_arg_fail(2)) SWIG_fail;
19245 if (arg2 == NULL) {
19246 SWIG_null_ref("wxIcon");
19247 }
19248 if (SWIG_arg_fail(2)) SWIG_fail;
19249 }
19250 {
19251 PyThreadState* __tstate = wxPyBeginAllowThreads();
19252 result = (int)(arg1)->Add((wxIcon const &)*arg2);
19253
19254 wxPyEndAllowThreads(__tstate);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 {
19258 resultobj = SWIG_From_int((int)(result));
19259 }
19260 return resultobj;
19261 fail:
19262 return NULL;
d55e5bfc
RD
19263}
19264
19265
b9d6a5f3
RD
19266static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
19267 PyObject *resultobj;
19268 wxImageList *arg1 = (wxImageList *) 0 ;
19269 int arg2 ;
19270 SwigValueWrapper<wxBitmap > result;
19271 PyObject * obj0 = 0 ;
19272 PyObject * obj1 = 0 ;
19273 char *kwnames[] = {
19274 (char *) "self",(char *) "index", NULL
19275 };
19276
19277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail;
19278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19279 if (SWIG_arg_fail(1)) SWIG_fail;
19280 {
19281 arg2 = (int)(SWIG_As_int(obj1));
19282 if (SWIG_arg_fail(2)) SWIG_fail;
19283 }
19284 {
19285 PyThreadState* __tstate = wxPyBeginAllowThreads();
19286 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
19287
19288 wxPyEndAllowThreads(__tstate);
19289 if (PyErr_Occurred()) SWIG_fail;
19290 }
19291 {
19292 wxBitmap * resultptr;
19293 resultptr = new wxBitmap((wxBitmap &)(result));
19294 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
19295 }
19296 return resultobj;
19297 fail:
19298 return NULL;
19299}
19300
19301
19302static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
19303 PyObject *resultobj;
19304 wxImageList *arg1 = (wxImageList *) 0 ;
19305 int arg2 ;
19306 wxIcon result;
19307 PyObject * obj0 = 0 ;
19308 PyObject * obj1 = 0 ;
19309 char *kwnames[] = {
19310 (char *) "self",(char *) "index", NULL
19311 };
19312
19313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail;
19314 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19315 if (SWIG_arg_fail(1)) SWIG_fail;
19316 {
19317 arg2 = (int)(SWIG_As_int(obj1));
19318 if (SWIG_arg_fail(2)) SWIG_fail;
19319 }
19320 {
19321 PyThreadState* __tstate = wxPyBeginAllowThreads();
19322 result = ((wxImageList const *)arg1)->GetIcon(arg2);
19323
19324 wxPyEndAllowThreads(__tstate);
19325 if (PyErr_Occurred()) SWIG_fail;
19326 }
19327 {
19328 wxIcon * resultptr;
19329 resultptr = new wxIcon((wxIcon &)(result));
19330 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
19331 }
19332 return resultobj;
19333 fail:
19334 return NULL;
19335}
19336
19337
093d3ff1
RD
19338static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
19339 PyObject *resultobj;
19340 wxImageList *arg1 = (wxImageList *) 0 ;
19341 int arg2 ;
19342 wxBitmap *arg3 = 0 ;
19343 wxBitmap const &arg4_defvalue = wxNullBitmap ;
19344 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
19345 bool result;
19346 PyObject * obj0 = 0 ;
19347 PyObject * obj1 = 0 ;
19348 PyObject * obj2 = 0 ;
19349 PyObject * obj3 = 0 ;
19350 char *kwnames[] = {
19351 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
19352 };
d55e5bfc 19353
093d3ff1
RD
19354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19355 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19356 if (SWIG_arg_fail(1)) SWIG_fail;
19357 {
19358 arg2 = (int)(SWIG_As_int(obj1));
19359 if (SWIG_arg_fail(2)) SWIG_fail;
19360 }
19361 {
19362 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19363 if (SWIG_arg_fail(3)) SWIG_fail;
19364 if (arg3 == NULL) {
19365 SWIG_null_ref("wxBitmap");
19366 }
19367 if (SWIG_arg_fail(3)) SWIG_fail;
19368 }
19369 if (obj3) {
19370 {
19371 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19372 if (SWIG_arg_fail(4)) SWIG_fail;
19373 if (arg4 == NULL) {
19374 SWIG_null_ref("wxBitmap");
19375 }
19376 if (SWIG_arg_fail(4)) SWIG_fail;
19377 }
19378 }
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
19382
19383 wxPyEndAllowThreads(__tstate);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 {
19387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19388 }
19389 return resultobj;
19390 fail:
19391 return NULL;
d55e5bfc
RD
19392}
19393
19394
093d3ff1
RD
19395static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
19396 PyObject *resultobj;
19397 wxImageList *arg1 = (wxImageList *) 0 ;
19398 int arg2 ;
19399 wxDC *arg3 = 0 ;
19400 int arg4 ;
19401 int arg5 ;
19402 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
19403 bool arg7 = (bool) (bool)false ;
19404 bool result;
19405 PyObject * obj0 = 0 ;
19406 PyObject * obj1 = 0 ;
19407 PyObject * obj2 = 0 ;
19408 PyObject * obj3 = 0 ;
19409 PyObject * obj4 = 0 ;
19410 PyObject * obj5 = 0 ;
19411 PyObject * obj6 = 0 ;
19412 char *kwnames[] = {
19413 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
19414 };
19415
19416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19418 if (SWIG_arg_fail(1)) SWIG_fail;
19419 {
19420 arg2 = (int)(SWIG_As_int(obj1));
19421 if (SWIG_arg_fail(2)) SWIG_fail;
19422 }
19423 {
19424 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
19425 if (SWIG_arg_fail(3)) SWIG_fail;
19426 if (arg3 == NULL) {
19427 SWIG_null_ref("wxDC");
19428 }
19429 if (SWIG_arg_fail(3)) SWIG_fail;
19430 }
19431 {
19432 arg4 = (int)(SWIG_As_int(obj3));
19433 if (SWIG_arg_fail(4)) SWIG_fail;
19434 }
19435 {
19436 arg5 = (int)(SWIG_As_int(obj4));
19437 if (SWIG_arg_fail(5)) SWIG_fail;
19438 }
19439 if (obj5) {
19440 {
19441 arg6 = (int)(SWIG_As_int(obj5));
19442 if (SWIG_arg_fail(6)) SWIG_fail;
19443 }
19444 }
19445 if (obj6) {
19446 {
19447 arg7 = (bool const)(SWIG_As_bool(obj6));
19448 if (SWIG_arg_fail(7)) SWIG_fail;
19449 }
19450 }
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
19454
19455 wxPyEndAllowThreads(__tstate);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 }
19458 {
19459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19460 }
19461 return resultobj;
19462 fail:
19463 return NULL;
d55e5bfc
RD
19464}
19465
19466
093d3ff1
RD
19467static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
19468 PyObject *resultobj;
19469 wxImageList *arg1 = (wxImageList *) 0 ;
19470 int result;
19471 PyObject * obj0 = 0 ;
19472 char *kwnames[] = {
19473 (char *) "self", NULL
19474 };
d55e5bfc 19475
093d3ff1
RD
19476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
19477 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19478 if (SWIG_arg_fail(1)) SWIG_fail;
19479 {
19480 PyThreadState* __tstate = wxPyBeginAllowThreads();
19481 result = (int)(arg1)->GetImageCount();
19482
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 {
19487 resultobj = SWIG_From_int((int)(result));
19488 }
19489 return resultobj;
19490 fail:
19491 return NULL;
d55e5bfc
RD
19492}
19493
19494
093d3ff1
RD
19495static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj;
19497 wxImageList *arg1 = (wxImageList *) 0 ;
19498 int arg2 ;
19499 bool result;
19500 PyObject * obj0 = 0 ;
19501 PyObject * obj1 = 0 ;
19502 char *kwnames[] = {
19503 (char *) "self",(char *) "index", NULL
19504 };
19505
19506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
19507 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19508 if (SWIG_arg_fail(1)) SWIG_fail;
19509 {
19510 arg2 = (int)(SWIG_As_int(obj1));
19511 if (SWIG_arg_fail(2)) SWIG_fail;
19512 }
19513 {
19514 PyThreadState* __tstate = wxPyBeginAllowThreads();
19515 result = (bool)(arg1)->Remove(arg2);
19516
19517 wxPyEndAllowThreads(__tstate);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 {
19521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19522 }
19523 return resultobj;
19524 fail:
19525 return NULL;
d55e5bfc
RD
19526}
19527
19528
093d3ff1
RD
19529static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj;
19531 wxImageList *arg1 = (wxImageList *) 0 ;
19532 bool result;
19533 PyObject * obj0 = 0 ;
19534 char *kwnames[] = {
19535 (char *) "self", NULL
19536 };
d55e5bfc 19537
093d3ff1
RD
19538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
19539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19540 if (SWIG_arg_fail(1)) SWIG_fail;
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 result = (bool)(arg1)->RemoveAll();
19544
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 {
19549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19550 }
19551 return resultobj;
19552 fail:
19553 return NULL;
19554}
19555
19556
19557static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19558 PyObject *resultobj;
19559 wxImageList *arg1 = (wxImageList *) 0 ;
19560 int arg2 ;
19561 int *arg3 = 0 ;
19562 int *arg4 = 0 ;
19563 int temp3 ;
19564 int res3 = 0 ;
19565 int temp4 ;
19566 int res4 = 0 ;
19567 PyObject * obj0 = 0 ;
19568 PyObject * obj1 = 0 ;
19569 char *kwnames[] = {
19570 (char *) "self",(char *) "index", NULL
19571 };
19572
19573 arg3 = &temp3; res3 = SWIG_NEWOBJ;
19574 arg4 = &temp4; res4 = SWIG_NEWOBJ;
19575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
19576 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19577 if (SWIG_arg_fail(1)) SWIG_fail;
19578 {
19579 arg2 = (int)(SWIG_As_int(obj1));
19580 if (SWIG_arg_fail(2)) SWIG_fail;
19581 }
19582 {
19583 PyThreadState* __tstate = wxPyBeginAllowThreads();
19584 (arg1)->GetSize(arg2,*arg3,*arg4);
19585
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 Py_INCREF(Py_None); resultobj = Py_None;
19590 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
19591 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
19592 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
19593 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
19594 return resultobj;
19595 fail:
19596 return NULL;
19597}
19598
19599
19600static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
19601 PyObject *obj;
19602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19603 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
19604 Py_INCREF(obj);
19605 return Py_BuildValue((char *)"");
19606}
19607static int _wrap_NORMAL_FONT_set(PyObject *) {
19608 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
19609 return 1;
19610}
19611
19612
19613static PyObject *_wrap_NORMAL_FONT_get(void) {
19614 PyObject *pyobj;
19615
19616 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
19617 return pyobj;
19618}
19619
19620
19621static int _wrap_SMALL_FONT_set(PyObject *) {
19622 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
19623 return 1;
19624}
19625
19626
19627static PyObject *_wrap_SMALL_FONT_get(void) {
19628 PyObject *pyobj;
19629
19630 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
19631 return pyobj;
19632}
19633
19634
19635static int _wrap_ITALIC_FONT_set(PyObject *) {
19636 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
19637 return 1;
19638}
19639
19640
19641static PyObject *_wrap_ITALIC_FONT_get(void) {
19642 PyObject *pyobj;
19643
19644 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
19645 return pyobj;
19646}
19647
19648
19649static int _wrap_SWISS_FONT_set(PyObject *) {
19650 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
19651 return 1;
19652}
19653
19654
19655static PyObject *_wrap_SWISS_FONT_get(void) {
19656 PyObject *pyobj;
19657
19658 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
19659 return pyobj;
19660}
19661
19662
19663static int _wrap_RED_PEN_set(PyObject *) {
19664 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
19665 return 1;
19666}
19667
19668
19669static PyObject *_wrap_RED_PEN_get(void) {
19670 PyObject *pyobj;
19671
19672 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
19673 return pyobj;
19674}
19675
19676
19677static int _wrap_CYAN_PEN_set(PyObject *) {
19678 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
19679 return 1;
19680}
19681
19682
19683static PyObject *_wrap_CYAN_PEN_get(void) {
19684 PyObject *pyobj;
19685
19686 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
19687 return pyobj;
19688}
19689
19690
19691static int _wrap_GREEN_PEN_set(PyObject *) {
19692 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
19693 return 1;
19694}
19695
19696
19697static PyObject *_wrap_GREEN_PEN_get(void) {
19698 PyObject *pyobj;
19699
19700 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
19701 return pyobj;
19702}
19703
19704
19705static int _wrap_BLACK_PEN_set(PyObject *) {
19706 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
19707 return 1;
19708}
19709
19710
19711static PyObject *_wrap_BLACK_PEN_get(void) {
19712 PyObject *pyobj;
19713
19714 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
19715 return pyobj;
19716}
19717
19718
19719static int _wrap_WHITE_PEN_set(PyObject *) {
19720 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
19721 return 1;
19722}
19723
19724
19725static PyObject *_wrap_WHITE_PEN_get(void) {
19726 PyObject *pyobj;
19727
19728 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
19729 return pyobj;
19730}
19731
19732
19733static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
19734 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
19735 return 1;
19736}
19737
19738
19739static PyObject *_wrap_TRANSPARENT_PEN_get(void) {
19740 PyObject *pyobj;
19741
19742 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
19743 return pyobj;
19744}
19745
19746
19747static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
19748 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
19749 return 1;
19750}
19751
19752
19753static PyObject *_wrap_BLACK_DASHED_PEN_get(void) {
19754 PyObject *pyobj;
19755
19756 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
19757 return pyobj;
19758}
19759
19760
19761static int _wrap_GREY_PEN_set(PyObject *) {
19762 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
19763 return 1;
19764}
19765
19766
19767static PyObject *_wrap_GREY_PEN_get(void) {
19768 PyObject *pyobj;
19769
19770 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
19771 return pyobj;
19772}
19773
19774
19775static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
19776 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
19777 return 1;
19778}
19779
19780
19781static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) {
19782 PyObject *pyobj;
19783
19784 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19785 return pyobj;
d55e5bfc
RD
19786}
19787
19788
c32bde28 19789static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
19790 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
19791 return 1;
19792}
19793
19794
093d3ff1 19795static PyObject *_wrap_LIGHT_GREY_PEN_get(void) {
d55e5bfc
RD
19796 PyObject *pyobj;
19797
19798 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19799 return pyobj;
19800}
19801
19802
c32bde28 19803static int _wrap_BLUE_BRUSH_set(PyObject *) {
d55e5bfc
RD
19804 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
19805 return 1;
19806}
19807
19808
093d3ff1 19809static PyObject *_wrap_BLUE_BRUSH_get(void) {
d55e5bfc
RD
19810 PyObject *pyobj;
19811
19812 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19813 return pyobj;
19814}
19815
19816
c32bde28 19817static int _wrap_GREEN_BRUSH_set(PyObject *) {
d55e5bfc
RD
19818 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
19819 return 1;
19820}
19821
19822
093d3ff1 19823static PyObject *_wrap_GREEN_BRUSH_get(void) {
d55e5bfc
RD
19824 PyObject *pyobj;
19825
19826 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19827 return pyobj;
19828}
19829
19830
c32bde28 19831static int _wrap_WHITE_BRUSH_set(PyObject *) {
d55e5bfc
RD
19832 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
19833 return 1;
19834}
19835
19836
093d3ff1 19837static PyObject *_wrap_WHITE_BRUSH_get(void) {
d55e5bfc
RD
19838 PyObject *pyobj;
19839
19840 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19841 return pyobj;
19842}
19843
19844
c32bde28 19845static int _wrap_BLACK_BRUSH_set(PyObject *) {
d55e5bfc
RD
19846 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
19847 return 1;
19848}
19849
19850
093d3ff1 19851static PyObject *_wrap_BLACK_BRUSH_get(void) {
d55e5bfc
RD
19852 PyObject *pyobj;
19853
19854 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
19855 return pyobj;
19856}
19857
19858
c32bde28 19859static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
d55e5bfc
RD
19860 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
19861 return 1;
19862}
19863
19864
093d3ff1 19865static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) {
d55e5bfc
RD
19866 PyObject *pyobj;
19867
19868 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
19869 return pyobj;
19870}
19871
19872
c32bde28 19873static int _wrap_CYAN_BRUSH_set(PyObject *) {
d55e5bfc
RD
19874 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
19875 return 1;
19876}
19877
19878
093d3ff1 19879static PyObject *_wrap_CYAN_BRUSH_get(void) {
d55e5bfc
RD
19880 PyObject *pyobj;
19881
19882 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19883 return pyobj;
19884}
19885
19886
c32bde28 19887static int _wrap_RED_BRUSH_set(PyObject *) {
d55e5bfc
RD
19888 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
19889 return 1;
19890}
19891
19892
093d3ff1 19893static PyObject *_wrap_RED_BRUSH_get(void) {
d55e5bfc
RD
19894 PyObject *pyobj;
19895
19896 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
19897 return pyobj;
19898}
19899
19900
c32bde28 19901static int _wrap_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
19902 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
19903 return 1;
19904}
19905
19906
093d3ff1 19907static PyObject *_wrap_GREY_BRUSH_get(void) {
d55e5bfc
RD
19908 PyObject *pyobj;
19909
19910 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19911 return pyobj;
19912}
19913
19914
c32bde28 19915static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
19916 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
19917 return 1;
19918}
19919
19920
093d3ff1 19921static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) {
d55e5bfc
RD
19922 PyObject *pyobj;
19923
19924 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19925 return pyobj;
19926}
19927
19928
c32bde28 19929static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
19930 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
19931 return 1;
19932}
19933
19934
093d3ff1 19935static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) {
d55e5bfc
RD
19936 PyObject *pyobj;
19937
19938 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19939 return pyobj;
19940}
19941
19942
c32bde28 19943static int _wrap_BLACK_set(PyObject *) {
d55e5bfc
RD
19944 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
19945 return 1;
19946}
19947
19948
093d3ff1 19949static PyObject *_wrap_BLACK_get(void) {
d55e5bfc
RD
19950 PyObject *pyobj;
19951
19952 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
19953 return pyobj;
19954}
19955
19956
c32bde28 19957static int _wrap_WHITE_set(PyObject *) {
d55e5bfc
RD
19958 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
19959 return 1;
19960}
19961
19962
093d3ff1 19963static PyObject *_wrap_WHITE_get(void) {
d55e5bfc
RD
19964 PyObject *pyobj;
19965
19966 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
19967 return pyobj;
19968}
19969
19970
c32bde28 19971static int _wrap_RED_set(PyObject *) {
d55e5bfc
RD
19972 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
19973 return 1;
19974}
19975
19976
093d3ff1 19977static PyObject *_wrap_RED_get(void) {
d55e5bfc
RD
19978 PyObject *pyobj;
19979
19980 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
19981 return pyobj;
19982}
19983
19984
c32bde28 19985static int _wrap_BLUE_set(PyObject *) {
d55e5bfc
RD
19986 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
19987 return 1;
19988}
19989
19990
093d3ff1 19991static PyObject *_wrap_BLUE_get(void) {
d55e5bfc
RD
19992 PyObject *pyobj;
19993
19994 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
19995 return pyobj;
19996}
19997
19998
c32bde28 19999static int _wrap_GREEN_set(PyObject *) {
d55e5bfc
RD
20000 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
20001 return 1;
20002}
20003
20004
093d3ff1 20005static PyObject *_wrap_GREEN_get(void) {
d55e5bfc
RD
20006 PyObject *pyobj;
20007
20008 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
20009 return pyobj;
20010}
20011
20012
c32bde28 20013static int _wrap_CYAN_set(PyObject *) {
d55e5bfc
RD
20014 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
20015 return 1;
20016}
20017
20018
093d3ff1 20019static PyObject *_wrap_CYAN_get(void) {
d55e5bfc
RD
20020 PyObject *pyobj;
20021
20022 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
20023 return pyobj;
20024}
20025
20026
c32bde28 20027static int _wrap_LIGHT_GREY_set(PyObject *) {
d55e5bfc
RD
20028 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
20029 return 1;
20030}
20031
20032
093d3ff1 20033static PyObject *_wrap_LIGHT_GREY_get(void) {
d55e5bfc
RD
20034 PyObject *pyobj;
20035
20036 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
20037 return pyobj;
20038}
20039
20040
c32bde28 20041static int _wrap_STANDARD_CURSOR_set(PyObject *) {
d55e5bfc
RD
20042 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
20043 return 1;
20044}
20045
20046
093d3ff1 20047static PyObject *_wrap_STANDARD_CURSOR_get(void) {
d55e5bfc
RD
20048 PyObject *pyobj;
20049
20050 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
20051 return pyobj;
20052}
20053
20054
c32bde28 20055static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
d55e5bfc
RD
20056 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
20057 return 1;
20058}
20059
20060
093d3ff1 20061static PyObject *_wrap_HOURGLASS_CURSOR_get(void) {
d55e5bfc
RD
20062 PyObject *pyobj;
20063
20064 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
20065 return pyobj;
20066}
20067
20068
c32bde28 20069static int _wrap_CROSS_CURSOR_set(PyObject *) {
d55e5bfc
RD
20070 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
20071 return 1;
20072}
20073
20074
093d3ff1 20075static PyObject *_wrap_CROSS_CURSOR_get(void) {
d55e5bfc
RD
20076 PyObject *pyobj;
20077
20078 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
20079 return pyobj;
20080}
20081
20082
c32bde28 20083static int _wrap_NullBitmap_set(PyObject *) {
d55e5bfc
RD
20084 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
20085 return 1;
20086}
20087
20088
093d3ff1 20089static PyObject *_wrap_NullBitmap_get(void) {
d55e5bfc
RD
20090 PyObject *pyobj;
20091
20092 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
20093 return pyobj;
20094}
20095
20096
c32bde28 20097static int _wrap_NullIcon_set(PyObject *) {
d55e5bfc
RD
20098 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
20099 return 1;
20100}
20101
20102
093d3ff1 20103static PyObject *_wrap_NullIcon_get(void) {
d55e5bfc
RD
20104 PyObject *pyobj;
20105
20106 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
20107 return pyobj;
20108}
20109
20110
c32bde28 20111static int _wrap_NullCursor_set(PyObject *) {
d55e5bfc
RD
20112 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
20113 return 1;
20114}
20115
20116
093d3ff1 20117static PyObject *_wrap_NullCursor_get(void) {
d55e5bfc
RD
20118 PyObject *pyobj;
20119
20120 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
20121 return pyobj;
20122}
20123
20124
c32bde28 20125static int _wrap_NullPen_set(PyObject *) {
d55e5bfc
RD
20126 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
20127 return 1;
20128}
20129
20130
093d3ff1 20131static PyObject *_wrap_NullPen_get(void) {
d55e5bfc
RD
20132 PyObject *pyobj;
20133
20134 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
20135 return pyobj;
20136}
20137
20138
c32bde28 20139static int _wrap_NullBrush_set(PyObject *) {
d55e5bfc
RD
20140 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
20141 return 1;
20142}
20143
20144
093d3ff1 20145static PyObject *_wrap_NullBrush_get(void) {
d55e5bfc
RD
20146 PyObject *pyobj;
20147
20148 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
20149 return pyobj;
20150}
20151
20152
c32bde28 20153static int _wrap_NullPalette_set(PyObject *) {
d55e5bfc
RD
20154 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
20155 return 1;
20156}
20157
20158
093d3ff1 20159static PyObject *_wrap_NullPalette_get(void) {
d55e5bfc
RD
20160 PyObject *pyobj;
20161
20162 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
20163 return pyobj;
20164}
20165
20166
c32bde28 20167static int _wrap_NullFont_set(PyObject *) {
d55e5bfc
RD
20168 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
20169 return 1;
20170}
20171
20172
093d3ff1 20173static PyObject *_wrap_NullFont_get(void) {
d55e5bfc
RD
20174 PyObject *pyobj;
20175
20176 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
20177 return pyobj;
20178}
20179
20180
c32bde28 20181static int _wrap_NullColour_set(PyObject *) {
d55e5bfc
RD
20182 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
20183 return 1;
20184}
20185
20186
093d3ff1 20187static PyObject *_wrap_NullColour_get(void) {
d55e5bfc
RD
20188 PyObject *pyobj;
20189
20190 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
20191 return pyobj;
20192}
20193
20194
c32bde28 20195static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20196 PyObject *resultobj;
20197 wxPenList *arg1 = (wxPenList *) 0 ;
20198 wxPen *arg2 = (wxPen *) 0 ;
20199 PyObject * obj0 = 0 ;
20200 PyObject * obj1 = 0 ;
20201 char *kwnames[] = {
20202 (char *) "self",(char *) "pen", NULL
20203 };
20204
20205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20207 if (SWIG_arg_fail(1)) SWIG_fail;
20208 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
20209 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 (arg1)->AddPen(arg2);
20213
20214 wxPyEndAllowThreads(__tstate);
20215 if (PyErr_Occurred()) SWIG_fail;
20216 }
20217 Py_INCREF(Py_None); resultobj = Py_None;
20218 return resultobj;
20219 fail:
20220 return NULL;
20221}
20222
20223
c32bde28 20224static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20225 PyObject *resultobj;
20226 wxPenList *arg1 = (wxPenList *) 0 ;
20227 wxColour *arg2 = 0 ;
20228 int arg3 ;
20229 int arg4 ;
20230 wxPen *result;
20231 wxColour temp2 ;
20232 PyObject * obj0 = 0 ;
20233 PyObject * obj1 = 0 ;
20234 PyObject * obj2 = 0 ;
20235 PyObject * obj3 = 0 ;
20236 char *kwnames[] = {
20237 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
20238 };
20239
20240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
093d3ff1
RD
20241 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20242 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20243 {
20244 arg2 = &temp2;
20245 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20246 }
093d3ff1
RD
20247 {
20248 arg3 = (int)(SWIG_As_int(obj2));
20249 if (SWIG_arg_fail(3)) SWIG_fail;
20250 }
20251 {
20252 arg4 = (int)(SWIG_As_int(obj3));
20253 if (SWIG_arg_fail(4)) SWIG_fail;
20254 }
d55e5bfc
RD
20255 {
20256 PyThreadState* __tstate = wxPyBeginAllowThreads();
20257 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
20258
20259 wxPyEndAllowThreads(__tstate);
20260 if (PyErr_Occurred()) SWIG_fail;
20261 }
20262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
20263 return resultobj;
20264 fail:
20265 return NULL;
20266}
20267
20268
c32bde28 20269static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20270 PyObject *resultobj;
20271 wxPenList *arg1 = (wxPenList *) 0 ;
20272 wxPen *arg2 = (wxPen *) 0 ;
20273 PyObject * obj0 = 0 ;
20274 PyObject * obj1 = 0 ;
20275 char *kwnames[] = {
20276 (char *) "self",(char *) "pen", NULL
20277 };
20278
20279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20280 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20281 if (SWIG_arg_fail(1)) SWIG_fail;
20282 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
20283 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
20284 {
20285 PyThreadState* __tstate = wxPyBeginAllowThreads();
20286 (arg1)->RemovePen(arg2);
20287
20288 wxPyEndAllowThreads(__tstate);
20289 if (PyErr_Occurred()) SWIG_fail;
20290 }
20291 Py_INCREF(Py_None); resultobj = Py_None;
20292 return resultobj;
20293 fail:
20294 return NULL;
20295}
20296
20297
c32bde28 20298static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20299 PyObject *resultobj;
20300 wxPenList *arg1 = (wxPenList *) 0 ;
20301 int result;
20302 PyObject * obj0 = 0 ;
20303 char *kwnames[] = {
20304 (char *) "self", NULL
20305 };
20306
20307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
093d3ff1
RD
20308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20309 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20310 {
20311 PyThreadState* __tstate = wxPyBeginAllowThreads();
20312 result = (int)(arg1)->GetCount();
20313
20314 wxPyEndAllowThreads(__tstate);
20315 if (PyErr_Occurred()) SWIG_fail;
20316 }
093d3ff1
RD
20317 {
20318 resultobj = SWIG_From_int((int)(result));
20319 }
d55e5bfc
RD
20320 return resultobj;
20321 fail:
20322 return NULL;
20323}
20324
20325
c32bde28 20326static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
20327 PyObject *obj;
20328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20329 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
20330 Py_INCREF(obj);
20331 return Py_BuildValue((char *)"");
20332}
c32bde28 20333static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20334 PyObject *resultobj;
20335 wxBrushList *arg1 = (wxBrushList *) 0 ;
20336 wxBrush *arg2 = (wxBrush *) 0 ;
20337 PyObject * obj0 = 0 ;
20338 PyObject * obj1 = 0 ;
20339 char *kwnames[] = {
20340 (char *) "self",(char *) "brush", NULL
20341 };
20342
20343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20345 if (SWIG_arg_fail(1)) SWIG_fail;
20346 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
20347 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
20348 {
20349 PyThreadState* __tstate = wxPyBeginAllowThreads();
20350 (arg1)->AddBrush(arg2);
20351
20352 wxPyEndAllowThreads(__tstate);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 }
20355 Py_INCREF(Py_None); resultobj = Py_None;
20356 return resultobj;
20357 fail:
20358 return NULL;
20359}
20360
20361
c32bde28 20362static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20363 PyObject *resultobj;
20364 wxBrushList *arg1 = (wxBrushList *) 0 ;
20365 wxColour *arg2 = 0 ;
ea939623 20366 int arg3 = (int) wxSOLID ;
d55e5bfc
RD
20367 wxBrush *result;
20368 wxColour temp2 ;
20369 PyObject * obj0 = 0 ;
20370 PyObject * obj1 = 0 ;
20371 PyObject * obj2 = 0 ;
20372 char *kwnames[] = {
20373 (char *) "self",(char *) "colour",(char *) "style", NULL
20374 };
20375
ea939623 20376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
20377 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20378 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20379 {
20380 arg2 = &temp2;
20381 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20382 }
ea939623
RD
20383 if (obj2) {
20384 {
20385 arg3 = (int)(SWIG_As_int(obj2));
20386 if (SWIG_arg_fail(3)) SWIG_fail;
20387 }
093d3ff1 20388 }
d55e5bfc
RD
20389 {
20390 PyThreadState* __tstate = wxPyBeginAllowThreads();
20391 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
20392
20393 wxPyEndAllowThreads(__tstate);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
20397 return resultobj;
20398 fail:
20399 return NULL;
20400}
20401
20402
c32bde28 20403static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20404 PyObject *resultobj;
20405 wxBrushList *arg1 = (wxBrushList *) 0 ;
20406 wxBrush *arg2 = (wxBrush *) 0 ;
20407 PyObject * obj0 = 0 ;
20408 PyObject * obj1 = 0 ;
20409 char *kwnames[] = {
20410 (char *) "self",(char *) "brush", NULL
20411 };
20412
20413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20415 if (SWIG_arg_fail(1)) SWIG_fail;
20416 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
20417 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
20418 {
20419 PyThreadState* __tstate = wxPyBeginAllowThreads();
20420 (arg1)->RemoveBrush(arg2);
20421
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 Py_INCREF(Py_None); resultobj = Py_None;
20426 return resultobj;
20427 fail:
20428 return NULL;
20429}
20430
20431
c32bde28 20432static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20433 PyObject *resultobj;
20434 wxBrushList *arg1 = (wxBrushList *) 0 ;
20435 int result;
20436 PyObject * obj0 = 0 ;
20437 char *kwnames[] = {
20438 (char *) "self", NULL
20439 };
20440
20441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
093d3ff1
RD
20442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20443 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20444 {
20445 PyThreadState* __tstate = wxPyBeginAllowThreads();
20446 result = (int)(arg1)->GetCount();
20447
20448 wxPyEndAllowThreads(__tstate);
20449 if (PyErr_Occurred()) SWIG_fail;
20450 }
093d3ff1
RD
20451 {
20452 resultobj = SWIG_From_int((int)(result));
20453 }
d55e5bfc
RD
20454 return resultobj;
20455 fail:
20456 return NULL;
20457}
20458
20459
c32bde28 20460static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
20461 PyObject *obj;
20462 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20463 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
20464 Py_INCREF(obj);
20465 return Py_BuildValue((char *)"");
20466}
c32bde28 20467static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20468 PyObject *resultobj;
20469 wxColourDatabase *result;
20470 char *kwnames[] = {
20471 NULL
20472 };
20473
20474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
20475 {
0439c23b 20476 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 result = (wxColourDatabase *)new wxColourDatabase();
20479
20480 wxPyEndAllowThreads(__tstate);
110da5b0 20481 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
20482 }
20483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
20484 return resultobj;
20485 fail:
20486 return NULL;
20487}
20488
20489
c32bde28 20490static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20491 PyObject *resultobj;
20492 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20493 PyObject * obj0 = 0 ;
20494 char *kwnames[] = {
20495 (char *) "self", NULL
20496 };
20497
20498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
093d3ff1
RD
20499 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20500 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20501 {
20502 PyThreadState* __tstate = wxPyBeginAllowThreads();
20503 delete arg1;
20504
20505 wxPyEndAllowThreads(__tstate);
20506 if (PyErr_Occurred()) SWIG_fail;
20507 }
20508 Py_INCREF(Py_None); resultobj = Py_None;
20509 return resultobj;
20510 fail:
20511 return NULL;
20512}
20513
20514
c32bde28 20515static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20516 PyObject *resultobj;
20517 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20518 wxString *arg2 = 0 ;
20519 wxColour result;
ae8162c8 20520 bool temp2 = false ;
d55e5bfc
RD
20521 PyObject * obj0 = 0 ;
20522 PyObject * obj1 = 0 ;
20523 char *kwnames[] = {
20524 (char *) "self",(char *) "name", NULL
20525 };
20526
20527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20528 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20529 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20530 {
20531 arg2 = wxString_in_helper(obj1);
20532 if (arg2 == NULL) SWIG_fail;
ae8162c8 20533 temp2 = true;
d55e5bfc
RD
20534 }
20535 {
20536 PyThreadState* __tstate = wxPyBeginAllowThreads();
20537 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
20538
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 {
20543 wxColour * resultptr;
093d3ff1 20544 resultptr = new wxColour((wxColour &)(result));
d55e5bfc
RD
20545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20546 }
20547 {
20548 if (temp2)
20549 delete arg2;
20550 }
20551 return resultobj;
20552 fail:
20553 {
20554 if (temp2)
20555 delete arg2;
20556 }
20557 return NULL;
20558}
20559
20560
c32bde28 20561static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20562 PyObject *resultobj;
20563 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20564 wxColour *arg2 = 0 ;
20565 wxString result;
20566 wxColour temp2 ;
20567 PyObject * obj0 = 0 ;
20568 PyObject * obj1 = 0 ;
20569 char *kwnames[] = {
20570 (char *) "self",(char *) "colour", NULL
20571 };
20572
20573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20575 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20576 {
20577 arg2 = &temp2;
20578 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20579 }
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
20583
20584 wxPyEndAllowThreads(__tstate);
20585 if (PyErr_Occurred()) SWIG_fail;
20586 }
20587 {
20588#if wxUSE_UNICODE
20589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20590#else
20591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20592#endif
20593 }
20594 return resultobj;
20595 fail:
20596 return NULL;
20597}
20598
20599
c32bde28 20600static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20601 PyObject *resultobj;
20602 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20603 wxString *arg2 = 0 ;
20604 wxColour *arg3 = 0 ;
ae8162c8 20605 bool temp2 = false ;
d55e5bfc
RD
20606 wxColour temp3 ;
20607 PyObject * obj0 = 0 ;
20608 PyObject * obj1 = 0 ;
20609 PyObject * obj2 = 0 ;
20610 char *kwnames[] = {
20611 (char *) "self",(char *) "name",(char *) "colour", NULL
20612 };
20613
20614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
20615 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20616 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20617 {
20618 arg2 = wxString_in_helper(obj1);
20619 if (arg2 == NULL) SWIG_fail;
ae8162c8 20620 temp2 = true;
d55e5bfc
RD
20621 }
20622 {
20623 arg3 = &temp3;
20624 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20625 }
20626 {
20627 PyThreadState* __tstate = wxPyBeginAllowThreads();
20628 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
20629
20630 wxPyEndAllowThreads(__tstate);
20631 if (PyErr_Occurred()) SWIG_fail;
20632 }
20633 Py_INCREF(Py_None); resultobj = Py_None;
20634 {
20635 if (temp2)
20636 delete arg2;
20637 }
20638 return resultobj;
20639 fail:
20640 {
20641 if (temp2)
20642 delete arg2;
20643 }
20644 return NULL;
20645}
20646
20647
c32bde28 20648static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20649 PyObject *resultobj;
20650 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20651 wxString *arg2 = 0 ;
20652 int arg3 ;
20653 int arg4 ;
20654 int arg5 ;
ae8162c8 20655 bool temp2 = false ;
d55e5bfc
RD
20656 PyObject * obj0 = 0 ;
20657 PyObject * obj1 = 0 ;
20658 PyObject * obj2 = 0 ;
20659 PyObject * obj3 = 0 ;
20660 PyObject * obj4 = 0 ;
20661 char *kwnames[] = {
20662 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
20663 };
20664
20665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
093d3ff1
RD
20666 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20667 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20668 {
20669 arg2 = wxString_in_helper(obj1);
20670 if (arg2 == NULL) SWIG_fail;
ae8162c8 20671 temp2 = true;
d55e5bfc 20672 }
093d3ff1
RD
20673 {
20674 arg3 = (int)(SWIG_As_int(obj2));
20675 if (SWIG_arg_fail(3)) SWIG_fail;
20676 }
20677 {
20678 arg4 = (int)(SWIG_As_int(obj3));
20679 if (SWIG_arg_fail(4)) SWIG_fail;
20680 }
20681 {
20682 arg5 = (int)(SWIG_As_int(obj4));
20683 if (SWIG_arg_fail(5)) SWIG_fail;
20684 }
d55e5bfc
RD
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
20688
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 Py_INCREF(Py_None); resultobj = Py_None;
20693 {
20694 if (temp2)
20695 delete arg2;
20696 }
20697 return resultobj;
20698 fail:
20699 {
20700 if (temp2)
20701 delete arg2;
20702 }
20703 return NULL;
20704}
20705
20706
c32bde28 20707static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
20708 PyObject *obj;
20709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20710 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
20711 Py_INCREF(obj);
20712 return Py_BuildValue((char *)"");
20713}
c32bde28 20714static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20715 PyObject *resultobj;
20716 wxFontList *arg1 = (wxFontList *) 0 ;
20717 wxFont *arg2 = (wxFont *) 0 ;
20718 PyObject * obj0 = 0 ;
20719 PyObject * obj1 = 0 ;
20720 char *kwnames[] = {
20721 (char *) "self",(char *) "font", NULL
20722 };
20723
20724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20725 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20726 if (SWIG_arg_fail(1)) SWIG_fail;
20727 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20728 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
20729 {
20730 PyThreadState* __tstate = wxPyBeginAllowThreads();
20731 (arg1)->AddFont(arg2);
20732
20733 wxPyEndAllowThreads(__tstate);
20734 if (PyErr_Occurred()) SWIG_fail;
20735 }
20736 Py_INCREF(Py_None); resultobj = Py_None;
20737 return resultobj;
20738 fail:
20739 return NULL;
20740}
20741
20742
c32bde28 20743static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20744 PyObject *resultobj;
20745 wxFontList *arg1 = (wxFontList *) 0 ;
20746 int arg2 ;
20747 int arg3 ;
20748 int arg4 ;
20749 int arg5 ;
ae8162c8 20750 bool arg6 = (bool) false ;
d55e5bfc
RD
20751 wxString const &arg7_defvalue = wxPyEmptyString ;
20752 wxString *arg7 = (wxString *) &arg7_defvalue ;
093d3ff1 20753 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
d55e5bfc 20754 wxFont *result;
ae8162c8 20755 bool temp7 = false ;
d55e5bfc
RD
20756 PyObject * obj0 = 0 ;
20757 PyObject * obj1 = 0 ;
20758 PyObject * obj2 = 0 ;
20759 PyObject * obj3 = 0 ;
20760 PyObject * obj4 = 0 ;
20761 PyObject * obj5 = 0 ;
20762 PyObject * obj6 = 0 ;
20763 PyObject * obj7 = 0 ;
20764 char *kwnames[] = {
20765 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
20766 };
20767
20768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
093d3ff1
RD
20769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20770 if (SWIG_arg_fail(1)) SWIG_fail;
20771 {
20772 arg2 = (int)(SWIG_As_int(obj1));
20773 if (SWIG_arg_fail(2)) SWIG_fail;
20774 }
20775 {
20776 arg3 = (int)(SWIG_As_int(obj2));
20777 if (SWIG_arg_fail(3)) SWIG_fail;
20778 }
20779 {
20780 arg4 = (int)(SWIG_As_int(obj3));
20781 if (SWIG_arg_fail(4)) SWIG_fail;
20782 }
20783 {
20784 arg5 = (int)(SWIG_As_int(obj4));
20785 if (SWIG_arg_fail(5)) SWIG_fail;
20786 }
d55e5bfc 20787 if (obj5) {
093d3ff1
RD
20788 {
20789 arg6 = (bool)(SWIG_As_bool(obj5));
20790 if (SWIG_arg_fail(6)) SWIG_fail;
20791 }
d55e5bfc
RD
20792 }
20793 if (obj6) {
20794 {
20795 arg7 = wxString_in_helper(obj6);
20796 if (arg7 == NULL) SWIG_fail;
ae8162c8 20797 temp7 = true;
d55e5bfc
RD
20798 }
20799 }
20800 if (obj7) {
093d3ff1
RD
20801 {
20802 arg8 = (wxFontEncoding)(SWIG_As_int(obj7));
20803 if (SWIG_arg_fail(8)) SWIG_fail;
20804 }
d55e5bfc
RD
20805 }
20806 {
20807 PyThreadState* __tstate = wxPyBeginAllowThreads();
20808 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
20809
20810 wxPyEndAllowThreads(__tstate);
20811 if (PyErr_Occurred()) SWIG_fail;
20812 }
20813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
20814 {
20815 if (temp7)
20816 delete arg7;
20817 }
20818 return resultobj;
20819 fail:
20820 {
20821 if (temp7)
20822 delete arg7;
20823 }
20824 return NULL;
20825}
20826
20827
c32bde28 20828static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20829 PyObject *resultobj;
20830 wxFontList *arg1 = (wxFontList *) 0 ;
20831 wxFont *arg2 = (wxFont *) 0 ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 char *kwnames[] = {
20835 (char *) "self",(char *) "font", NULL
20836 };
20837
20838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20839 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20840 if (SWIG_arg_fail(1)) SWIG_fail;
20841 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20842 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
20843 {
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 (arg1)->RemoveFont(arg2);
20846
20847 wxPyEndAllowThreads(__tstate);
20848 if (PyErr_Occurred()) SWIG_fail;
20849 }
20850 Py_INCREF(Py_None); resultobj = Py_None;
20851 return resultobj;
20852 fail:
20853 return NULL;
20854}
20855
20856
c32bde28 20857static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20858 PyObject *resultobj;
20859 wxFontList *arg1 = (wxFontList *) 0 ;
20860 int result;
20861 PyObject * obj0 = 0 ;
20862 char *kwnames[] = {
20863 (char *) "self", NULL
20864 };
20865
20866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
093d3ff1
RD
20867 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20868 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20869 {
20870 PyThreadState* __tstate = wxPyBeginAllowThreads();
20871 result = (int)(arg1)->GetCount();
20872
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
093d3ff1
RD
20876 {
20877 resultobj = SWIG_From_int((int)(result));
20878 }
d55e5bfc
RD
20879 return resultobj;
20880 fail:
20881 return NULL;
20882}
20883
20884
c32bde28 20885static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
20886 PyObject *obj;
20887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20888 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
20889 Py_INCREF(obj);
20890 return Py_BuildValue((char *)"");
20891}
c32bde28 20892static int _wrap_TheFontList_set(PyObject *) {
d55e5bfc
RD
20893 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
20894 return 1;
20895}
20896
20897
093d3ff1 20898static PyObject *_wrap_TheFontList_get(void) {
d55e5bfc
RD
20899 PyObject *pyobj;
20900
20901 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
20902 return pyobj;
20903}
20904
20905
c32bde28 20906static int _wrap_ThePenList_set(PyObject *) {
d55e5bfc
RD
20907 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
20908 return 1;
20909}
20910
20911
093d3ff1 20912static PyObject *_wrap_ThePenList_get(void) {
d55e5bfc
RD
20913 PyObject *pyobj;
20914
20915 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
20916 return pyobj;
20917}
20918
20919
c32bde28 20920static int _wrap_TheBrushList_set(PyObject *) {
d55e5bfc
RD
20921 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
20922 return 1;
20923}
20924
20925
093d3ff1 20926static PyObject *_wrap_TheBrushList_get(void) {
d55e5bfc
RD
20927 PyObject *pyobj;
20928
20929 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
20930 return pyobj;
20931}
20932
20933
c32bde28 20934static int _wrap_TheColourDatabase_set(PyObject *) {
d55e5bfc
RD
20935 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
20936 return 1;
20937}
20938
20939
093d3ff1 20940static PyObject *_wrap_TheColourDatabase_get(void) {
d55e5bfc
RD
20941 PyObject *pyobj;
20942
20943 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
20944 return pyobj;
20945}
20946
20947
c32bde28 20948static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20949 PyObject *resultobj;
20950 wxEffects *result;
20951 char *kwnames[] = {
20952 NULL
20953 };
20954
20955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
20956 {
20957 PyThreadState* __tstate = wxPyBeginAllowThreads();
20958 result = (wxEffects *)new wxEffects();
20959
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
20964 return resultobj;
20965 fail:
20966 return NULL;
20967}
20968
20969
c32bde28 20970static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20971 PyObject *resultobj;
20972 wxEffects *arg1 = (wxEffects *) 0 ;
20973 wxColour result;
20974 PyObject * obj0 = 0 ;
20975 char *kwnames[] = {
20976 (char *) "self", NULL
20977 };
20978
20979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
093d3ff1
RD
20980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20981 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 result = ((wxEffects const *)arg1)->GetHighlightColour();
20985
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 {
20990 wxColour * resultptr;
093d3ff1 20991 resultptr = new wxColour((wxColour &)(result));
d55e5bfc
RD
20992 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20993 }
20994 return resultobj;
20995 fail:
20996 return NULL;
20997}
20998
20999
c32bde28 21000static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21001 PyObject *resultobj;
21002 wxEffects *arg1 = (wxEffects *) 0 ;
21003 wxColour result;
21004 PyObject * obj0 = 0 ;
21005 char *kwnames[] = {
21006 (char *) "self", NULL
21007 };
21008
21009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
093d3ff1
RD
21010 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21011 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 result = ((wxEffects const *)arg1)->GetLightShadow();
21015
21016 wxPyEndAllowThreads(__tstate);
21017 if (PyErr_Occurred()) SWIG_fail;
21018 }
21019 {
21020 wxColour * resultptr;
093d3ff1 21021 resultptr = new wxColour((wxColour &)(result));
d55e5bfc
RD
21022 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21023 }
21024 return resultobj;
21025 fail:
21026 return NULL;
21027}
21028
21029
c32bde28 21030static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21031 PyObject *resultobj;
21032 wxEffects *arg1 = (wxEffects *) 0 ;
21033 wxColour result;
21034 PyObject * obj0 = 0 ;
21035 char *kwnames[] = {
21036 (char *) "self", NULL
21037 };
21038
21039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
093d3ff1
RD
21040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21041 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21042 {
21043 PyThreadState* __tstate = wxPyBeginAllowThreads();
21044 result = ((wxEffects const *)arg1)->GetFaceColour();
21045
21046 wxPyEndAllowThreads(__tstate);
21047 if (PyErr_Occurred()) SWIG_fail;
21048 }
21049 {
21050 wxColour * resultptr;
093d3ff1 21051 resultptr = new wxColour((wxColour &)(result));
d55e5bfc
RD
21052 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21053 }
21054 return resultobj;
21055 fail:
21056 return NULL;
21057}
21058
21059
c32bde28 21060static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21061 PyObject *resultobj;
21062 wxEffects *arg1 = (wxEffects *) 0 ;
21063 wxColour result;
21064 PyObject * obj0 = 0 ;
21065 char *kwnames[] = {
21066 (char *) "self", NULL
21067 };
21068
21069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
093d3ff1
RD
21070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21071 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21072 {
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 result = ((wxEffects const *)arg1)->GetMediumShadow();
21075
21076 wxPyEndAllowThreads(__tstate);
21077 if (PyErr_Occurred()) SWIG_fail;
21078 }
21079 {
21080 wxColour * resultptr;
093d3ff1 21081 resultptr = new wxColour((wxColour &)(result));
d55e5bfc
RD
21082 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21083 }
21084 return resultobj;
21085 fail:
21086 return NULL;
21087}
21088
21089
c32bde28 21090static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21091 PyObject *resultobj;
21092 wxEffects *arg1 = (wxEffects *) 0 ;
21093 wxColour result;
21094 PyObject * obj0 = 0 ;
21095 char *kwnames[] = {
21096 (char *) "self", NULL
21097 };
21098
21099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
093d3ff1
RD
21100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21101 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21102 {
21103 PyThreadState* __tstate = wxPyBeginAllowThreads();
21104 result = ((wxEffects const *)arg1)->GetDarkShadow();
21105
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 {
21110 wxColour * resultptr;
093d3ff1 21111 resultptr = new wxColour((wxColour &)(result));
d55e5bfc
RD
21112 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21113 }
21114 return resultobj;
21115 fail:
21116 return NULL;
21117}
21118
21119
c32bde28 21120static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21121 PyObject *resultobj;
21122 wxEffects *arg1 = (wxEffects *) 0 ;
21123 wxColour *arg2 = 0 ;
21124 wxColour temp2 ;
21125 PyObject * obj0 = 0 ;
21126 PyObject * obj1 = 0 ;
21127 char *kwnames[] = {
21128 (char *) "self",(char *) "c", NULL
21129 };
21130
21131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
21132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21133 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21134 {
21135 arg2 = &temp2;
21136 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21137 }
21138 {
21139 PyThreadState* __tstate = wxPyBeginAllowThreads();
21140 (arg1)->SetHighlightColour((wxColour const &)*arg2);
21141
21142 wxPyEndAllowThreads(__tstate);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 }
21145 Py_INCREF(Py_None); resultobj = Py_None;
21146 return resultobj;
21147 fail:
21148 return NULL;
21149}
21150
21151
c32bde28 21152static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21153 PyObject *resultobj;
21154 wxEffects *arg1 = (wxEffects *) 0 ;
21155 wxColour *arg2 = 0 ;
21156 wxColour temp2 ;
21157 PyObject * obj0 = 0 ;
21158 PyObject * obj1 = 0 ;
21159 char *kwnames[] = {
21160 (char *) "self",(char *) "c", NULL
21161 };
21162
21163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
21164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21165 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21166 {
21167 arg2 = &temp2;
21168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21169 }
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 (arg1)->SetLightShadow((wxColour const &)*arg2);
21173
21174 wxPyEndAllowThreads(__tstate);
21175 if (PyErr_Occurred()) SWIG_fail;
21176 }
21177 Py_INCREF(Py_None); resultobj = Py_None;
21178 return resultobj;
21179 fail:
21180 return NULL;
21181}
21182
21183
c32bde28 21184static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21185 PyObject *resultobj;
21186 wxEffects *arg1 = (wxEffects *) 0 ;
21187 wxColour *arg2 = 0 ;
21188 wxColour temp2 ;
21189 PyObject * obj0 = 0 ;
21190 PyObject * obj1 = 0 ;
21191 char *kwnames[] = {
21192 (char *) "self",(char *) "c", NULL
21193 };
21194
21195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
21196 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21197 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21198 {
21199 arg2 = &temp2;
21200 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21201 }
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 (arg1)->SetFaceColour((wxColour const &)*arg2);
21205
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 Py_INCREF(Py_None); resultobj = Py_None;
21210 return resultobj;
21211 fail:
21212 return NULL;
21213}
21214
21215
c32bde28 21216static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21217 PyObject *resultobj;
21218 wxEffects *arg1 = (wxEffects *) 0 ;
21219 wxColour *arg2 = 0 ;
21220 wxColour temp2 ;
21221 PyObject * obj0 = 0 ;
21222 PyObject * obj1 = 0 ;
21223 char *kwnames[] = {
21224 (char *) "self",(char *) "c", NULL
21225 };
21226
21227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
21228 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21229 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21230 {
21231 arg2 = &temp2;
21232 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21233 }
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 (arg1)->SetMediumShadow((wxColour const &)*arg2);
21237
21238 wxPyEndAllowThreads(__tstate);
21239 if (PyErr_Occurred()) SWIG_fail;
21240 }
21241 Py_INCREF(Py_None); resultobj = Py_None;
21242 return resultobj;
21243 fail:
21244 return NULL;
21245}
21246
21247
c32bde28 21248static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21249 PyObject *resultobj;
21250 wxEffects *arg1 = (wxEffects *) 0 ;
21251 wxColour *arg2 = 0 ;
21252 wxColour temp2 ;
21253 PyObject * obj0 = 0 ;
21254 PyObject * obj1 = 0 ;
21255 char *kwnames[] = {
21256 (char *) "self",(char *) "c", NULL
21257 };
21258
21259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
21260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21261 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21262 {
21263 arg2 = &temp2;
21264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21265 }
21266 {
21267 PyThreadState* __tstate = wxPyBeginAllowThreads();
21268 (arg1)->SetDarkShadow((wxColour const &)*arg2);
21269
21270 wxPyEndAllowThreads(__tstate);
21271 if (PyErr_Occurred()) SWIG_fail;
21272 }
21273 Py_INCREF(Py_None); resultobj = Py_None;
21274 return resultobj;
21275 fail:
21276 return NULL;
21277}
21278
21279
c32bde28 21280static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21281 PyObject *resultobj;
21282 wxEffects *arg1 = (wxEffects *) 0 ;
21283 wxColour *arg2 = 0 ;
21284 wxColour *arg3 = 0 ;
21285 wxColour *arg4 = 0 ;
21286 wxColour *arg5 = 0 ;
21287 wxColour *arg6 = 0 ;
21288 wxColour temp2 ;
21289 wxColour temp3 ;
21290 wxColour temp4 ;
21291 wxColour temp5 ;
21292 wxColour temp6 ;
21293 PyObject * obj0 = 0 ;
21294 PyObject * obj1 = 0 ;
21295 PyObject * obj2 = 0 ;
21296 PyObject * obj3 = 0 ;
21297 PyObject * obj4 = 0 ;
21298 PyObject * obj5 = 0 ;
21299 char *kwnames[] = {
21300 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
21301 };
21302
21303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
093d3ff1
RD
21304 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21305 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21306 {
21307 arg2 = &temp2;
21308 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21309 }
21310 {
21311 arg3 = &temp3;
21312 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21313 }
21314 {
21315 arg4 = &temp4;
21316 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
21317 }
21318 {
21319 arg5 = &temp5;
21320 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
21321 }
21322 {
21323 arg6 = &temp6;
21324 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
21325 }
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
21329
21330 wxPyEndAllowThreads(__tstate);
21331 if (PyErr_Occurred()) SWIG_fail;
21332 }
21333 Py_INCREF(Py_None); resultobj = Py_None;
21334 return resultobj;
21335 fail:
21336 return NULL;
21337}
21338
21339
c32bde28 21340static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21341 PyObject *resultobj;
21342 wxEffects *arg1 = (wxEffects *) 0 ;
21343 wxDC *arg2 = 0 ;
21344 wxRect *arg3 = 0 ;
21345 int arg4 = (int) 1 ;
21346 wxRect temp3 ;
21347 PyObject * obj0 = 0 ;
21348 PyObject * obj1 = 0 ;
21349 PyObject * obj2 = 0 ;
21350 PyObject * obj3 = 0 ;
21351 char *kwnames[] = {
21352 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
21353 };
21354
21355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
093d3ff1
RD
21356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21357 if (SWIG_arg_fail(1)) SWIG_fail;
21358 {
21359 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21360 if (SWIG_arg_fail(2)) SWIG_fail;
21361 if (arg2 == NULL) {
21362 SWIG_null_ref("wxDC");
21363 }
21364 if (SWIG_arg_fail(2)) SWIG_fail;
d55e5bfc
RD
21365 }
21366 {
21367 arg3 = &temp3;
21368 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
21369 }
21370 if (obj3) {
093d3ff1
RD
21371 {
21372 arg4 = (int)(SWIG_As_int(obj3));
21373 if (SWIG_arg_fail(4)) SWIG_fail;
21374 }
d55e5bfc
RD
21375 }
21376 {
21377 PyThreadState* __tstate = wxPyBeginAllowThreads();
21378 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
21379
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 Py_INCREF(Py_None); resultobj = Py_None;
21384 return resultobj;
21385 fail:
21386 return NULL;
21387}
21388
21389
c32bde28 21390static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21391 PyObject *resultobj;
21392 wxEffects *arg1 = (wxEffects *) 0 ;
21393 wxRect *arg2 = 0 ;
21394 wxDC *arg3 = 0 ;
21395 wxBitmap *arg4 = 0 ;
21396 bool result;
21397 wxRect temp2 ;
21398 PyObject * obj0 = 0 ;
21399 PyObject * obj1 = 0 ;
21400 PyObject * obj2 = 0 ;
21401 PyObject * obj3 = 0 ;
21402 char *kwnames[] = {
21403 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
21404 };
21405
21406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
093d3ff1
RD
21407 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21408 if (SWIG_arg_fail(1)) SWIG_fail;
d55e5bfc
RD
21409 {
21410 arg2 = &temp2;
21411 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21412 }
d55e5bfc 21413 {
093d3ff1
RD
21414 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21415 if (SWIG_arg_fail(3)) SWIG_fail;
21416 if (arg3 == NULL) {
21417 SWIG_null_ref("wxDC");
21418 }
21419 if (SWIG_arg_fail(3)) SWIG_fail;
21420 }
21421 {
21422 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
21423 if (SWIG_arg_fail(4)) SWIG_fail;
21424 if (arg4 == NULL) {
21425 SWIG_null_ref("wxBitmap");
21426 }
21427 if (SWIG_arg_fail(4)) SWIG_fail;
21428 }
21429 {
21430 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc
RD
21431 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
21432
21433 wxPyEndAllowThreads(__tstate);
21434 if (PyErr_Occurred()) SWIG_fail;
21435 }
21436 {
21437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21438 }
21439 return resultobj;
21440 fail:
21441 return NULL;
21442}
21443
21444
c32bde28 21445static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
21446 PyObject *obj;
21447 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21448 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
21449 Py_INCREF(obj);
21450 return Py_BuildValue((char *)"");
21451}
be9b1dca
RD
21452static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
21453 PyObject *resultobj;
21454 int arg1 ;
21455 int arg2 ;
21456 bool arg3 ;
21457 wxSplitterRenderParams *result;
21458 PyObject * obj0 = 0 ;
21459 PyObject * obj1 = 0 ;
21460 PyObject * obj2 = 0 ;
21461 char *kwnames[] = {
21462 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
21463 };
21464
21465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail;
21466 {
21467 arg1 = (int)(SWIG_As_int(obj0));
21468 if (SWIG_arg_fail(1)) SWIG_fail;
21469 }
21470 {
21471 arg2 = (int)(SWIG_As_int(obj1));
21472 if (SWIG_arg_fail(2)) SWIG_fail;
21473 }
21474 {
21475 arg3 = (bool)(SWIG_As_bool(obj2));
21476 if (SWIG_arg_fail(3)) SWIG_fail;
21477 }
21478 {
21479 PyThreadState* __tstate = wxPyBeginAllowThreads();
21480 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
21481
21482 wxPyEndAllowThreads(__tstate);
21483 if (PyErr_Occurred()) SWIG_fail;
21484 }
21485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1);
21486 return resultobj;
21487 fail:
21488 return NULL;
21489}
21490
21491
21492static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
21493 PyObject *resultobj;
21494 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21495 PyObject * obj0 = 0 ;
21496 char *kwnames[] = {
21497 (char *) "self", NULL
21498 };
21499
21500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail;
21501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21502 if (SWIG_arg_fail(1)) SWIG_fail;
21503 {
21504 PyThreadState* __tstate = wxPyBeginAllowThreads();
21505 delete arg1;
21506
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 Py_INCREF(Py_None); resultobj = Py_None;
21511 return resultobj;
21512 fail:
21513 return NULL;
21514}
21515
21516
21517static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj;
21519 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21520 int result;
21521 PyObject * obj0 = 0 ;
21522 char *kwnames[] = {
21523 (char *) "self", NULL
21524 };
21525
21526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail;
21527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21528 if (SWIG_arg_fail(1)) SWIG_fail;
21529 result = (int)(int) ((arg1)->widthSash);
21530
21531 {
21532 resultobj = SWIG_From_int((int)(result));
21533 }
21534 return resultobj;
21535 fail:
21536 return NULL;
21537}
21538
21539
21540static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) {
21541 PyObject *resultobj;
21542 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21543 int result;
21544 PyObject * obj0 = 0 ;
21545 char *kwnames[] = {
21546 (char *) "self", NULL
21547 };
21548
21549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail;
21550 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21551 if (SWIG_arg_fail(1)) SWIG_fail;
21552 result = (int)(int) ((arg1)->border);
21553
21554 {
21555 resultobj = SWIG_From_int((int)(result));
21556 }
21557 return resultobj;
21558 fail:
21559 return NULL;
21560}
21561
21562
21563static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) {
21564 PyObject *resultobj;
21565 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21566 bool result;
21567 PyObject * obj0 = 0 ;
21568 char *kwnames[] = {
21569 (char *) "self", NULL
21570 };
21571
21572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail;
21573 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21574 if (SWIG_arg_fail(1)) SWIG_fail;
21575 result = (bool)(bool) ((arg1)->isHotSensitive);
21576
21577 {
21578 resultobj = SWIG_From_bool((bool)(result));
21579 }
21580 return resultobj;
21581 fail:
21582 return NULL;
21583}
21584
21585
21586static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) {
21587 PyObject *obj;
21588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21589 SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj);
21590 Py_INCREF(obj);
21591 return Py_BuildValue((char *)"");
21592}
21593static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21594 PyObject *resultobj;
21595 int arg1 ;
21596 int arg2 ;
21597 wxRendererVersion *result;
21598 PyObject * obj0 = 0 ;
21599 PyObject * obj1 = 0 ;
21600 char *kwnames[] = {
21601 (char *) "version_",(char *) "age_", NULL
21602 };
21603
21604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail;
21605 {
21606 arg1 = (int)(SWIG_As_int(obj0));
21607 if (SWIG_arg_fail(1)) SWIG_fail;
21608 }
21609 {
21610 arg2 = (int)(SWIG_As_int(obj1));
21611 if (SWIG_arg_fail(2)) SWIG_fail;
21612 }
21613 {
21614 PyThreadState* __tstate = wxPyBeginAllowThreads();
21615 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
21616
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1);
21621 return resultobj;
21622 fail:
21623 return NULL;
21624}
21625
21626
21627static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21628 PyObject *resultobj;
21629 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21630 PyObject * obj0 = 0 ;
21631 char *kwnames[] = {
21632 (char *) "self", NULL
21633 };
21634
21635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail;
21636 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21637 if (SWIG_arg_fail(1)) SWIG_fail;
21638 {
21639 PyThreadState* __tstate = wxPyBeginAllowThreads();
21640 delete arg1;
21641
21642 wxPyEndAllowThreads(__tstate);
21643 if (PyErr_Occurred()) SWIG_fail;
21644 }
21645 Py_INCREF(Py_None); resultobj = Py_None;
21646 return resultobj;
21647 fail:
21648 return NULL;
21649}
21650
21651
21652static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) {
21653 PyObject *resultobj;
21654 wxRendererVersion *arg1 = 0 ;
21655 bool result;
21656 PyObject * obj0 = 0 ;
21657 char *kwnames[] = {
21658 (char *) "ver", NULL
21659 };
21660
21661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail;
21662 {
21663 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21664 if (SWIG_arg_fail(1)) SWIG_fail;
21665 if (arg1 == NULL) {
21666 SWIG_null_ref("wxRendererVersion");
21667 }
21668 if (SWIG_arg_fail(1)) SWIG_fail;
21669 }
21670 {
21671 PyThreadState* __tstate = wxPyBeginAllowThreads();
21672 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
21673
21674 wxPyEndAllowThreads(__tstate);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 {
21678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21679 }
21680 return resultobj;
21681 fail:
21682 return NULL;
21683}
21684
21685
21686static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj;
21688 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21689 int result;
21690 PyObject * obj0 = 0 ;
21691 char *kwnames[] = {
21692 (char *) "self", NULL
21693 };
21694
21695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail;
21696 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21697 if (SWIG_arg_fail(1)) SWIG_fail;
21698 result = (int)(int) ((arg1)->version);
21699
21700 {
21701 resultobj = SWIG_From_int((int)(result));
21702 }
21703 return resultobj;
21704 fail:
21705 return NULL;
21706}
21707
21708
21709static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) {
21710 PyObject *resultobj;
21711 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21712 int result;
21713 PyObject * obj0 = 0 ;
21714 char *kwnames[] = {
21715 (char *) "self", NULL
21716 };
21717
21718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail;
21719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21720 if (SWIG_arg_fail(1)) SWIG_fail;
21721 result = (int)(int) ((arg1)->age);
21722
21723 {
21724 resultobj = SWIG_From_int((int)(result));
21725 }
21726 return resultobj;
21727 fail:
21728 return NULL;
21729}
21730
21731
21732static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) {
21733 PyObject *obj;
21734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21735 SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj);
21736 Py_INCREF(obj);
21737 return Py_BuildValue((char *)"");
21738}
21739static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) {
21740 PyObject *resultobj;
21741 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21742 wxWindow *arg2 = (wxWindow *) 0 ;
21743 wxDC *arg3 = 0 ;
21744 wxRect *arg4 = 0 ;
21745 int arg5 = (int) 0 ;
21746 wxRect temp4 ;
21747 PyObject * obj0 = 0 ;
21748 PyObject * obj1 = 0 ;
21749 PyObject * obj2 = 0 ;
21750 PyObject * obj3 = 0 ;
21751 PyObject * obj4 = 0 ;
21752 char *kwnames[] = {
21753 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21754 };
21755
21756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21758 if (SWIG_arg_fail(1)) SWIG_fail;
21759 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21760 if (SWIG_arg_fail(2)) SWIG_fail;
21761 {
21762 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21763 if (SWIG_arg_fail(3)) SWIG_fail;
21764 if (arg3 == NULL) {
21765 SWIG_null_ref("wxDC");
21766 }
21767 if (SWIG_arg_fail(3)) SWIG_fail;
21768 }
21769 {
21770 arg4 = &temp4;
21771 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21772 }
21773 if (obj4) {
21774 {
21775 arg5 = (int)(SWIG_As_int(obj4));
21776 if (SWIG_arg_fail(5)) SWIG_fail;
21777 }
21778 }
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21782
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 Py_INCREF(Py_None); resultobj = Py_None;
21787 return resultobj;
21788 fail:
21789 return NULL;
21790}
21791
21792
21793static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) {
21794 PyObject *resultobj;
21795 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21796 wxWindow *arg2 = (wxWindow *) 0 ;
21797 wxDC *arg3 = 0 ;
21798 wxRect *arg4 = 0 ;
21799 int arg5 = (int) 0 ;
21800 wxRect temp4 ;
21801 PyObject * obj0 = 0 ;
21802 PyObject * obj1 = 0 ;
21803 PyObject * obj2 = 0 ;
21804 PyObject * obj3 = 0 ;
21805 PyObject * obj4 = 0 ;
21806 char *kwnames[] = {
21807 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21808 };
21809
21810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21812 if (SWIG_arg_fail(1)) SWIG_fail;
21813 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21814 if (SWIG_arg_fail(2)) SWIG_fail;
21815 {
21816 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21817 if (SWIG_arg_fail(3)) SWIG_fail;
21818 if (arg3 == NULL) {
21819 SWIG_null_ref("wxDC");
21820 }
21821 if (SWIG_arg_fail(3)) SWIG_fail;
21822 }
21823 {
21824 arg4 = &temp4;
21825 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21826 }
21827 if (obj4) {
21828 {
21829 arg5 = (int)(SWIG_As_int(obj4));
21830 if (SWIG_arg_fail(5)) SWIG_fail;
21831 }
21832 }
21833 {
21834 PyThreadState* __tstate = wxPyBeginAllowThreads();
21835 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21836
21837 wxPyEndAllowThreads(__tstate);
21838 if (PyErr_Occurred()) SWIG_fail;
21839 }
21840 Py_INCREF(Py_None); resultobj = Py_None;
21841 return resultobj;
21842 fail:
21843 return NULL;
21844}
21845
21846
21847static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) {
21848 PyObject *resultobj;
21849 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21850 wxWindow *arg2 = (wxWindow *) 0 ;
21851 wxDC *arg3 = 0 ;
21852 wxRect *arg4 = 0 ;
21853 int arg5 = (int) 0 ;
21854 wxRect temp4 ;
21855 PyObject * obj0 = 0 ;
21856 PyObject * obj1 = 0 ;
21857 PyObject * obj2 = 0 ;
21858 PyObject * obj3 = 0 ;
21859 PyObject * obj4 = 0 ;
21860 char *kwnames[] = {
21861 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21862 };
21863
21864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21866 if (SWIG_arg_fail(1)) SWIG_fail;
21867 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21868 if (SWIG_arg_fail(2)) SWIG_fail;
21869 {
21870 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21871 if (SWIG_arg_fail(3)) SWIG_fail;
21872 if (arg3 == NULL) {
21873 SWIG_null_ref("wxDC");
21874 }
21875 if (SWIG_arg_fail(3)) SWIG_fail;
21876 }
21877 {
21878 arg4 = &temp4;
21879 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21880 }
21881 if (obj4) {
21882 {
21883 arg5 = (int)(SWIG_As_int(obj4));
21884 if (SWIG_arg_fail(5)) SWIG_fail;
21885 }
21886 }
21887 {
21888 PyThreadState* __tstate = wxPyBeginAllowThreads();
21889 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
21890
21891 wxPyEndAllowThreads(__tstate);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 }
21894 Py_INCREF(Py_None); resultobj = Py_None;
21895 return resultobj;
21896 fail:
21897 return NULL;
21898}
21899
21900
21901static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) {
21902 PyObject *resultobj;
21903 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21904 wxWindow *arg2 = (wxWindow *) 0 ;
21905 wxDC *arg3 = 0 ;
21906 wxSize *arg4 = 0 ;
21907 int arg5 ;
21908 wxOrientation arg6 ;
21909 int arg7 = (int) 0 ;
21910 wxSize temp4 ;
21911 PyObject * obj0 = 0 ;
21912 PyObject * obj1 = 0 ;
21913 PyObject * obj2 = 0 ;
21914 PyObject * obj3 = 0 ;
21915 PyObject * obj4 = 0 ;
21916 PyObject * obj5 = 0 ;
21917 PyObject * obj6 = 0 ;
21918 char *kwnames[] = {
21919 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
21920 };
21921
21922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21924 if (SWIG_arg_fail(1)) SWIG_fail;
21925 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21926 if (SWIG_arg_fail(2)) SWIG_fail;
21927 {
21928 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21929 if (SWIG_arg_fail(3)) SWIG_fail;
21930 if (arg3 == NULL) {
21931 SWIG_null_ref("wxDC");
21932 }
21933 if (SWIG_arg_fail(3)) SWIG_fail;
21934 }
21935 {
21936 arg4 = &temp4;
21937 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21938 }
21939 {
21940 arg5 = (int)(SWIG_As_int(obj4));
21941 if (SWIG_arg_fail(5)) SWIG_fail;
21942 }
21943 {
21944 arg6 = (wxOrientation)(SWIG_As_int(obj5));
21945 if (SWIG_arg_fail(6)) SWIG_fail;
21946 }
21947 if (obj6) {
21948 {
21949 arg7 = (int)(SWIG_As_int(obj6));
21950 if (SWIG_arg_fail(7)) SWIG_fail;
21951 }
21952 }
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,(wxOrientation )arg6,arg7);
21956
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 Py_INCREF(Py_None); resultobj = Py_None;
21961 return resultobj;
21962 fail:
21963 return NULL;
21964}
21965
21966
21967static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) {
21968 PyObject *resultobj;
21969 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21970 wxWindow *arg2 = (wxWindow *) 0 ;
21971 wxDC *arg3 = 0 ;
21972 wxRect *arg4 = 0 ;
21973 int arg5 = (int) 0 ;
21974 wxRect temp4 ;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 PyObject * obj2 = 0 ;
21978 PyObject * obj3 = 0 ;
21979 PyObject * obj4 = 0 ;
21980 char *kwnames[] = {
21981 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21982 };
21983
21984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21986 if (SWIG_arg_fail(1)) SWIG_fail;
21987 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21988 if (SWIG_arg_fail(2)) SWIG_fail;
21989 {
21990 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21991 if (SWIG_arg_fail(3)) SWIG_fail;
21992 if (arg3 == NULL) {
21993 SWIG_null_ref("wxDC");
21994 }
21995 if (SWIG_arg_fail(3)) SWIG_fail;
21996 }
21997 {
21998 arg4 = &temp4;
21999 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22000 }
22001 if (obj4) {
22002 {
22003 arg5 = (int)(SWIG_As_int(obj4));
22004 if (SWIG_arg_fail(5)) SWIG_fail;
22005 }
22006 }
22007 {
22008 PyThreadState* __tstate = wxPyBeginAllowThreads();
22009 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
22010
22011 wxPyEndAllowThreads(__tstate);
22012 if (PyErr_Occurred()) SWIG_fail;
22013 }
22014 Py_INCREF(Py_None); resultobj = Py_None;
22015 return resultobj;
22016 fail:
22017 return NULL;
22018}
22019
22020
22021static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) {
22022 PyObject *resultobj;
22023 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22024 wxWindow *arg2 = (wxWindow *) 0 ;
22025 wxDC *arg3 = 0 ;
22026 wxRect *arg4 = 0 ;
22027 int arg5 = (int) 0 ;
22028 wxRect temp4 ;
22029 PyObject * obj0 = 0 ;
22030 PyObject * obj1 = 0 ;
22031 PyObject * obj2 = 0 ;
22032 PyObject * obj3 = 0 ;
22033 PyObject * obj4 = 0 ;
22034 char *kwnames[] = {
22035 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22036 };
22037
22038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22039 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22040 if (SWIG_arg_fail(1)) SWIG_fail;
22041 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22042 if (SWIG_arg_fail(2)) SWIG_fail;
22043 {
22044 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22045 if (SWIG_arg_fail(3)) SWIG_fail;
22046 if (arg3 == NULL) {
22047 SWIG_null_ref("wxDC");
22048 }
22049 if (SWIG_arg_fail(3)) SWIG_fail;
22050 }
22051 {
22052 arg4 = &temp4;
22053 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22054 }
22055 if (obj4) {
22056 {
22057 arg5 = (int)(SWIG_As_int(obj4));
22058 if (SWIG_arg_fail(5)) SWIG_fail;
22059 }
22060 }
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
22063 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
22064
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 Py_INCREF(Py_None); resultobj = Py_None;
22069 return resultobj;
22070 fail:
22071 return NULL;
22072}
22073
22074
22075static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) {
22076 PyObject *resultobj;
22077 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22078 wxWindow *arg2 = (wxWindow *) 0 ;
22079 SwigValueWrapper<wxSplitterRenderParams > result;
22080 PyObject * obj0 = 0 ;
22081 PyObject * obj1 = 0 ;
22082 char *kwnames[] = {
22083 (char *) "self",(char *) "win", NULL
22084 };
22085
22086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail;
22087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22088 if (SWIG_arg_fail(1)) SWIG_fail;
22089 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22090 if (SWIG_arg_fail(2)) SWIG_fail;
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
22094
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 {
22099 wxSplitterRenderParams * resultptr;
22100 resultptr = new wxSplitterRenderParams((wxSplitterRenderParams &)(result));
22101 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1);
22102 }
22103 return resultobj;
22104 fail:
22105 return NULL;
22106}
22107
22108
22109static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj;
22111 wxRendererNative *result;
22112 char *kwnames[] = {
22113 NULL
22114 };
22115
22116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 {
22120 wxRendererNative &_result_ref = wxRendererNative::Get();
22121 result = (wxRendererNative *) &_result_ref;
22122 }
22123
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22128 return resultobj;
22129 fail:
22130 return NULL;
22131}
22132
22133
22134static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
22135 PyObject *resultobj;
22136 wxRendererNative *result;
22137 char *kwnames[] = {
22138 NULL
22139 };
22140
22141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail;
22142 {
22143 PyThreadState* __tstate = wxPyBeginAllowThreads();
22144 {
22145 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
22146 result = (wxRendererNative *) &_result_ref;
22147 }
22148
22149 wxPyEndAllowThreads(__tstate);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22153 return resultobj;
22154 fail:
22155 return NULL;
22156}
22157
22158
22159static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
22160 PyObject *resultobj;
22161 wxRendererNative *result;
22162 char *kwnames[] = {
22163 NULL
22164 };
22165
22166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail;
22167 {
22168 PyThreadState* __tstate = wxPyBeginAllowThreads();
22169 {
22170 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
22171 result = (wxRendererNative *) &_result_ref;
22172 }
22173
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22178 return resultobj;
22179 fail:
22180 return NULL;
22181}
22182
22183
22184static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) {
22185 PyObject *resultobj;
22186 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22187 wxRendererNative *result;
22188 PyObject * obj0 = 0 ;
22189 char *kwnames[] = {
22190 (char *) "renderer", NULL
22191 };
22192
22193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail;
22194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22195 if (SWIG_arg_fail(1)) SWIG_fail;
22196 {
22197 PyThreadState* __tstate = wxPyBeginAllowThreads();
22198 result = (wxRendererNative *)wxRendererNative::Set(arg1);
22199
22200 wxPyEndAllowThreads(__tstate);
22201 if (PyErr_Occurred()) SWIG_fail;
22202 }
22203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22204 return resultobj;
22205 fail:
22206 return NULL;
22207}
22208
22209
22210static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
22211 PyObject *resultobj;
22212 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22213 SwigValueWrapper<wxRendererVersion > result;
22214 PyObject * obj0 = 0 ;
22215 char *kwnames[] = {
22216 (char *) "self", NULL
22217 };
22218
22219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail;
22220 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22221 if (SWIG_arg_fail(1)) SWIG_fail;
22222 {
22223 PyThreadState* __tstate = wxPyBeginAllowThreads();
22224 result = ((wxRendererNative const *)arg1)->GetVersion();
22225
22226 wxPyEndAllowThreads(__tstate);
22227 if (PyErr_Occurred()) SWIG_fail;
22228 }
22229 {
22230 wxRendererVersion * resultptr;
22231 resultptr = new wxRendererVersion((wxRendererVersion &)(result));
22232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1);
22233 }
22234 return resultobj;
22235 fail:
22236 return NULL;
22237}
22238
22239
22240static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) {
22241 PyObject *obj;
22242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22243 SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj);
22244 Py_INCREF(obj);
22245 return Py_BuildValue((char *)"");
22246}
22247static PyMethodDef SwigMethods[] = {
22248 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
22249 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
22250 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
22251 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
22252 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
22253 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
22254 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
22255 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
22256 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22257 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
22258 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL},
22259 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL},
22260 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL},
22261 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22262 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22263 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22264 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
22265 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22266 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22267 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22268 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22269 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22270 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
22271 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
22272 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
22273 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22274 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22275 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL},
22276 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22277 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
22278 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
22279 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
22280 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL},
22281 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22282 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
22283 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22284 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22285 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22286 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
22287 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22288 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
22289 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22290 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22291 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22292 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22293 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22294 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL},
22295 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22296 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22297 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22298 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22299 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
22300 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
22301 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22302 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
22303 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22304 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22305 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22306 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22307 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22308 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22309 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL},
22310 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22311 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
22312 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22313 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22314 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22315 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22316 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
22317 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
22318 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
22319 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22320 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22321 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22322 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22323 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22324 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22325 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22326 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL},
22327 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL},
22328 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
22329 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
22330 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22331 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
22332 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
22333 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22334 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22335 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22336 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22337 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22338 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22339 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22340 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
be9b1dca
RD
22341 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22342 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22343 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
22344 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
22345 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
22346 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
22347 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
22348 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22349 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22350 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22351 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
22352 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
22353 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22354 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22355 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22356 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22357 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22358 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22359 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22360 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22361 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22362 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22363 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22364 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
22365 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22366 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22367 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
22368 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22369 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22370 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
22371 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
22372 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
22373 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
22374 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
22375 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22376 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
22377 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22378 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
22379 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22380 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
22381 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
22382 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
22383 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
22384 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
22385 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22386 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22387 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22388 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22389 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22390 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22391 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22392 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22393 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22394 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22395 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
22396 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
22397 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22398 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
22399 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
22400 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL},
22401 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22402 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
22403 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
22404 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22405 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
22406 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
22407 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL},
22408 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
22409 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
22410 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22411 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
22412 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
22413 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
22414 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22415 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
22416 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
22417 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22418 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
22419 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
22420 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22421 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22422 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22423 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
22424 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
22425 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
22426 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
22427 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
22428 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
22429 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL},
22430 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22431 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL},
22432 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22433 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
22434 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL},
22435 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
22436 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL},
22437 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
22438 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
22439 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22440 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22441 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22442 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
22443 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22444 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction) _wrap_NativeFontInfo_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22445 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22446 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22447 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22448 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22449 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22450 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22451 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22452 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22453 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22454 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22455 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22456 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22457 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22458 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22459 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
22460 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
22461 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL},
22462 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
22463 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL},
22464 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
22465 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL},
22466 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL},
22467 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL},
22468 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL},
22469 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22470 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22471 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
22472 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
22473 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
22474 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22475 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22476 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
22477 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
22478 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22479 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22480 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22481 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL},
22482 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22483 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
22484 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
22485 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
be9b1dca
RD
22486 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
22487 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
22488 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22489 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
22490 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
22491 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
22492 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
22493 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
22494 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL},
22495 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22496 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
a97cefba 22497 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1 22498 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
a97cefba 22499 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
22500 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22501 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22502 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22503 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22504 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22505 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL},
22506 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22507 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22508 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22509 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22510 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22511 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22512 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22513 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22514 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22515 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22516 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22517 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22518 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22519 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22520 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22521 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22522 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22523 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22524 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22525 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
22526 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22527 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL},
22528 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL},
22529 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL},
22530 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
22531 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
22532 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22533 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22534 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
22535 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
22536 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
22537 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22538 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
22539 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
22540 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
22541 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
22542 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
22543 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL},
22544 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL},
22545 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL},
22546 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL},
22547 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL},
22548 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL},
22549 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
22550 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
22551 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
22552 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
22553 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
22554 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22555 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22556 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
22557 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
22558 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22559 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22560 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL},
22561 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL},
22562 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
22563 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
22564 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
22565 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22566 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
22567 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22568 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22569 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
22570 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
22571 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
22572 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22573 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
22574 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22575 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22576 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22577 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
22578 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22579 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22580 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
22581 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
22582 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL},
22583 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL},
22584 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL},
22585 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
22586 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22587 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22588 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22589 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
22590 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22591 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
22592 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22593 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
22594 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22595 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
22596 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
22597 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
22598 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22599 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22600 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22601 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22602 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22603 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22604 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22605 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22606 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22607 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
22608 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22609 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
22610 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
22611 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22612 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22613 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22614 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22615 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22616 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
22617 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22618 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
22619 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22620 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
22621 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22622 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22623 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22624 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22625 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22626 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
22627 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
22628 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22629 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22630 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
22631 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22632 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22633 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22634 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL},
22635 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL},
22636 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22637 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22638 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22639 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22640 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22641 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22642 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22643 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22644 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22645 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22646 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22647 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22648 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22649 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22650 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
22651 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22652 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22653 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
22654 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22655 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
22656 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
22657 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22658 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22659 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
22660 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
22661 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22662 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22663 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22664 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22665 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22666 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL},
22667 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22668 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22669 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22670 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22671 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22672 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22673 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22674 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22675 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22676 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22677 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22678 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22679 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22680 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22681 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22682 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22683 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22684 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22685 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22686 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22687 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22688 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22689 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22690 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22691 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
22692 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22693 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22694 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22695 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22696 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22697 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22698 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL},
22699 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL},
22700 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL},
22701 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL},
22702 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22703 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL},
22704 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
22705 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
22706 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
22707 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
22708 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
22709 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
22710 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
22711 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
22712 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
22713 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
22714 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
22715 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
22716 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL},
22717 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL},
22718 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
22719 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22720 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
22721 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL},
22722 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
22723 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22724 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22725 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
22726 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
22727 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
22728 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22729 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
22730 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
22731 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
22732 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
22733 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
22734 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
22735 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22736 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22737 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22738 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22739 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
22740 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22741 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22742 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22743 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
22744 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22745 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22746 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22747 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22748 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
22749 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
22750 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL},
22751 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
22752 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
22753 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
22754 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22755 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22756 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
22757 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
22758 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
b9d6a5f3
RD
22759 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22760 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
22761 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
22762 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
22763 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
22764 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
22765 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL},
22766 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22767 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
22768 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
22769 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
22770 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
22771 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22772 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
22773 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22774 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22775 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22776 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22777 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
22778 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
22779 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
22780 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
22781 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
22782 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
22783 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
22784 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
22785 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
22786 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
22787 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
22788 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22789 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
22790 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL},
22791 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22792 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22793 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22794 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22795 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22796 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22797 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22798 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22799 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22800 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22801 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22802 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
22803 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22804 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
be9b1dca
RD
22805 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22806 { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22807 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL},
22808 { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL},
22809 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL},
22810 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
22811 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22812 { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22813 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
22814 { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL},
22815 { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL},
22816 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
22817 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
22818 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
22819 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
22820 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
22821 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
22822 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
22823 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
22824 { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22825 { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
22826 { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL},
22827 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22828 { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22829 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
c32bde28 22830 { NULL, NULL, 0, NULL }
d55e5bfc
RD
22831};
22832
22833
22834/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
22835
d55e5bfc
RD
22836static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
22837 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
22838}
22839static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
22840 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
22841}
093d3ff1
RD
22842static void *_p_wxIconTo_p_wxGDIObject(void *x) {
22843 return (void *)((wxGDIObject *) ((wxIcon *) x));
22844}
22845static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
22846 return (void *)((wxGDIObject *) ((wxPalette *) x));
22847}
22848static void *_p_wxPenTo_p_wxGDIObject(void *x) {
22849 return (void *)((wxGDIObject *) ((wxPen *) x));
22850}
22851static void *_p_wxFontTo_p_wxGDIObject(void *x) {
22852 return (void *)((wxGDIObject *) ((wxFont *) x));
22853}
22854static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
22855 return (void *)((wxGDIObject *) ((wxCursor *) x));
22856}
22857static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
22858 return (void *)((wxGDIObject *) ((wxBitmap *) x));
22859}
22860static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
22861 return (void *)((wxGDIObject *) ((wxRegion *) x));
22862}
22863static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
22864 return (void *)((wxGDIObject *) ((wxBrush *) x));
22865}
22866static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
22867 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
22868}
22869static void *_p_wxScreenDCTo_p_wxDC(void *x) {
22870 return (void *)((wxDC *) ((wxScreenDC *) x));
22871}
22872static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
22873 return (void *)((wxDC *) ((wxMirrorDC *) x));
22874}
22875static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
22876 return (void *)((wxDC *) ((wxMemoryDC *) x));
22877}
22878static void *_p_wxWindowDCTo_p_wxDC(void *x) {
22879 return (void *)((wxDC *) ((wxWindowDC *) x));
22880}
22881static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
22882 return (void *)((wxDC *) ((wxMetaFileDC *) x));
22883}
22884static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
22885 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
22886}
22887static void *_p_wxClientDCTo_p_wxDC(void *x) {
22888 return (void *)((wxDC *) ((wxClientDC *) x));
22889}
22890static void *_p_wxPaintDCTo_p_wxDC(void *x) {
22891 return (void *)((wxDC *) ((wxPaintDC *) x));
22892}
22893static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
22894 return (void *)((wxDC *) ((wxPostScriptDC *) x));
22895}
22896static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
22897 return (void *)((wxDC *) ((wxPrinterDC *) x));
22898}
22899static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
22900 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
22901}
d55e5bfc
RD
22902static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
22903 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
22904}
22905static void *_p_wxPenTo_p_wxObject(void *x) {
22906 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
22907}
22908static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
22909 return (void *)((wxObject *) ((wxRegionIterator *) x));
22910}
22911static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
22912 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
22913}
22914static void *_p_wxSizerItemTo_p_wxObject(void *x) {
22915 return (void *)((wxObject *) ((wxSizerItem *) x));
22916}
22917static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
22918 return (void *)((wxObject *) ((wxColourDatabase *) x));
22919}
22920static void *_p_wxScrollEventTo_p_wxObject(void *x) {
22921 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
22922}
22923static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
22924 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
22925}
22926static void *_p_wxIconTo_p_wxObject(void *x) {
22927 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
22928}
22929static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
22930 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
22931}
22932static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
22933 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
22934}
22935static void *_p_wxSizerTo_p_wxObject(void *x) {
22936 return (void *)((wxObject *) ((wxSizer *) x));
22937}
22938static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
22939 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
22940}
22941static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
22942 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
22943}
22944static void *_p_wxPenListTo_p_wxObject(void *x) {
22945 return (void *)((wxObject *) ((wxPenList *) x));
22946}
22947static void *_p_wxEventTo_p_wxObject(void *x) {
22948 return (void *)((wxObject *) ((wxEvent *) x));
22949}
22950static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
22951 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
22952}
22953static void *_p_wxGridSizerTo_p_wxObject(void *x) {
22954 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
22955}
22956static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
22957 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
22958}
22959static void *_p_wxPaintEventTo_p_wxObject(void *x) {
22960 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
22961}
22962static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
22963 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
22964}
22965static void *_p_wxDCTo_p_wxObject(void *x) {
22966 return (void *)((wxObject *) ((wxDC *) x));
22967}
22968static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
22969 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
22970}
22971static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
22972 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
22973}
22974static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
22975 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
22976}
22977static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
22978 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
22979}
22980static void *_p_wxControlTo_p_wxObject(void *x) {
22981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
22982}
22983static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
22984 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
22985}
22986static void *_p_wxClientDCTo_p_wxObject(void *x) {
22987 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
22988}
22989static void *_p_wxFSFileTo_p_wxObject(void *x) {
22990 return (void *)((wxObject *) ((wxFSFile *) x));
22991}
22992static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
22993 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
22994}
22995static void *_p_wxRegionTo_p_wxObject(void *x) {
22996 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
22997}
22998static void *_p_wxPySizerTo_p_wxObject(void *x) {
22999 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
23000}
23001static void *_p_wxWindowDCTo_p_wxObject(void *x) {
23002 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
23003}
23004static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
23005 return (void *)((wxObject *) ((wxGDIObject *) x));
23006}
23007static void *_p_wxEffectsTo_p_wxObject(void *x) {
23008 return (void *)((wxObject *) ((wxEffects *) x));
23009}
23010static void *_p_wxPyEventTo_p_wxObject(void *x) {
23011 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
23012}
23013static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
23014 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
23015}
23016static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
23017 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
23018}
23019static void *_p_wxShowEventTo_p_wxObject(void *x) {
23020 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
23021}
23022static void *_p_wxMenuItemTo_p_wxObject(void *x) {
23023 return (void *)((wxObject *) ((wxMenuItem *) x));
23024}
53aa7709
RD
23025static void *_p_wxDateEventTo_p_wxObject(void *x) {
23026 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
23027}
d55e5bfc
RD
23028static void *_p_wxIdleEventTo_p_wxObject(void *x) {
23029 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
23030}
23031static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
23032 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
23033}
23034static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
23035 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
23036}
23037static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
23038 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
23039}
23040static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
23041 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
23042}
23043static void *_p_wxSizeEventTo_p_wxObject(void *x) {
23044 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
23045}
23046static void *_p_wxMoveEventTo_p_wxObject(void *x) {
23047 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
23048}
23049static void *_p_wxActivateEventTo_p_wxObject(void *x) {
23050 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
23051}
d55e5bfc
RD
23052static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
23053 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
23054}
23055static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
23056 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
23057}
23058static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
23059 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
23060}
23061static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
23062 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
23063}
23064static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
23065 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
23066}
23067static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
23068 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
23069}
23070static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
23071 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
23072}
23073static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
23074 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
23075}
23076static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
23077 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
23078}
9d7dfdff
RD
23079static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
23080 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
23081}
d55e5bfc
RD
23082static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
23083 return (void *)((wxObject *) ((wxImageHandler *) x));
23084}
9d7dfdff
RD
23085static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
23086 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
23087}
d55e5bfc
RD
23088static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
23089 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
23090}
23091static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
23092 return (void *)((wxObject *) ((wxEvtHandler *) x));
23093}
23094static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
23095 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
23096}
23097static void *_p_wxPaintDCTo_p_wxObject(void *x) {
23098 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
23099}
23100static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
23101 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
23102}
23103static void *_p_wxScreenDCTo_p_wxObject(void *x) {
23104 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
23105}
51b83b37
RD
23106static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
23107 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
23108}
d55e5bfc
RD
23109static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
23110 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
23111}
23112static void *_p_wxImageTo_p_wxObject(void *x) {
23113 return (void *)((wxObject *) ((wxImage *) x));
23114}
23115static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
23116 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
23117}
23118static void *_p_wxPaletteTo_p_wxObject(void *x) {
23119 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
23120}
23121static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
23122 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
23123}
23124static void *_p_wxImageListTo_p_wxObject(void *x) {
23125 return (void *)((wxObject *) ((wxImageList *) x));
23126}
23127static void *_p_wxCursorTo_p_wxObject(void *x) {
23128 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
23129}
23130static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
23131 return (void *)((wxObject *) ((wxEncodingConverter *) x));
23132}
23133static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
23134 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
23135}
23136static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
23137 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
23138}
23139static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
23140 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
23141}
23142static void *_p_wxKeyEventTo_p_wxObject(void *x) {
23143 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
23144}
23145static void *_p_wxWindowTo_p_wxObject(void *x) {
23146 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
23147}
23148static void *_p_wxMenuTo_p_wxObject(void *x) {
23149 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
23150}
23151static void *_p_wxMenuBarTo_p_wxObject(void *x) {
23152 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
23153}
23154static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
23155 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
23156}
23157static void *_p_wxBrushListTo_p_wxObject(void *x) {
23158 return (void *)((wxObject *) ((wxBrushList *) x));
23159}
d55e5bfc
RD
23160static void *_p_wxFileSystemTo_p_wxObject(void *x) {
23161 return (void *)((wxObject *) ((wxFileSystem *) x));
23162}
23163static void *_p_wxBitmapTo_p_wxObject(void *x) {
23164 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
23165}
23166static void *_p_wxMaskTo_p_wxObject(void *x) {
23167 return (void *)((wxObject *) ((wxMask *) x));
23168}
23169static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
23170 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
23171}
23172static void *_p_wxMenuEventTo_p_wxObject(void *x) {
23173 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
23174}
23175static void *_p_wxPyAppTo_p_wxObject(void *x) {
23176 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
23177}
23178static void *_p_wxCloseEventTo_p_wxObject(void *x) {
23179 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
23180}
23181static void *_p_wxMouseEventTo_p_wxObject(void *x) {
23182 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
23183}
23184static void *_p_wxEraseEventTo_p_wxObject(void *x) {
23185 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
23186}
23187static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
23188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
23189}
23190static void *_p_wxCommandEventTo_p_wxObject(void *x) {
23191 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
23192}
23193static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
23194 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
23195}
23196static void *_p_wxFocusEventTo_p_wxObject(void *x) {
23197 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
23198}
23199static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
23200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
23201}
23202static void *_p_wxFontTo_p_wxObject(void *x) {
23203 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
23204}
23205static void *_p_wxBrushTo_p_wxObject(void *x) {
23206 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
23207}
23208static void *_p_wxMetaFileTo_p_wxObject(void *x) {
23209 return (void *)((wxObject *) ((wxMetaFile *) x));
23210}
23211static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
23212 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
23213}
23214static void *_p_wxColourTo_p_wxObject(void *x) {
23215 return (void *)((wxObject *) ((wxColour *) x));
23216}
23217static void *_p_wxFontListTo_p_wxObject(void *x) {
23218 return (void *)((wxObject *) ((wxFontList *) x));
23219}
23220static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
23221 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
23222}
23223static void *_p_wxValidatorTo_p_wxObject(void *x) {
23224 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
23225}
093d3ff1
RD
23226static void *_p_wxControlTo_p_wxWindow(void *x) {
23227 return (void *)((wxWindow *) ((wxControl *) x));
d55e5bfc 23228}
093d3ff1
RD
23229static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
23230 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
d55e5bfc 23231}
093d3ff1
RD
23232static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
23233 return (void *)((wxWindow *) ((wxMenuBar *) x));
d55e5bfc 23234}
d55e5bfc
RD
23235static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23236static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23237static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23238static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23239static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 23240static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
be9b1dca 23241static swig_type_info _swigt__p_wxRendererVersion[] = {{"_p_wxRendererVersion", 0, "wxRendererVersion *", 0, 0, 0, 0},{"_p_wxRendererVersion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 23242static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23243static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23244static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23245static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23246static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23247static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23248static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23249static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23250static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23251static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23252static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23253static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23254static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23255static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23256static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23257static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23258static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
9d7dfdff 23259static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyImageHandler", _p_wxPyImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23260static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23261static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 23262static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc 23263static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1
RD
23264static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23265static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23266static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23267static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23268static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23269static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23270static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23271static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23272static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23273static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23274static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 23275static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
c24da6d6 23276static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23277static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23278static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1
RD
23279static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23280static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc 23281static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 23282static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23283static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23284static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23285static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23286static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
c24da6d6 23287static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23288static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23289static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23290static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23291static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23292static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
be9b1dca 23293static swig_type_info _swigt__p_wxRendererNative[] = {{"_p_wxRendererNative", 0, "wxRendererNative *", 0, 0, 0, 0},{"_p_wxRendererNative", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 23294static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23295static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23296static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
be9b1dca 23297static swig_type_info _swigt__p_wxSplitterRenderParams[] = {{"_p_wxSplitterRenderParams", 0, "wxSplitterRenderParams *", 0, 0, 0, 0},{"_p_wxSplitterRenderParams", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
23298static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
23299
23300static swig_type_info *swig_types_initial[] = {
23301_swigt__p_wxPostScriptDC,
23302_swigt__p_wxBrush,
23303_swigt__p_wxColour,
23304_swigt__p_wxDC,
23305_swigt__p_wxMirrorDC,
093d3ff1 23306_swigt__p_form_ops_t,
be9b1dca 23307_swigt__p_wxRendererVersion,
093d3ff1 23308_swigt__p_wxDuplexMode,
d55e5bfc
RD
23309_swigt__p_wxPyFontEnumerator,
23310_swigt__p_char,
23311_swigt__p_wxIconLocation,
23312_swigt__p_wxImage,
23313_swigt__p_wxMetaFileDC,
23314_swigt__p_wxMask,
23315_swigt__p_wxSize,
23316_swigt__p_wxFont,
23317_swigt__p_wxWindow,
23318_swigt__p_double,
23319_swigt__p_wxMemoryDC,
23320_swigt__p_wxFontMapper,
23321_swigt__p_wxEffects,
23322_swigt__p_wxNativeEncodingInfo,
23323_swigt__p_wxPalette,
23324_swigt__p_wxBitmap,
23325_swigt__p_wxObject,
23326_swigt__p_wxRegionIterator,
23327_swigt__p_wxRect,
093d3ff1 23328_swigt__p_wxPaperSize,
d55e5bfc 23329_swigt__p_wxString,
093d3ff1
RD
23330_swigt__unsigned_int,
23331_swigt__p_unsigned_int,
d55e5bfc
RD
23332_swigt__p_wxPrinterDC,
23333_swigt__p_wxIconBundle,
23334_swigt__p_wxPoint,
23335_swigt__p_wxDash,
23336_swigt__p_wxScreenDC,
23337_swigt__p_wxCursor,
23338_swigt__p_wxClientDC,
23339_swigt__p_wxBufferedDC,
23340_swigt__p_wxImageList,
23341_swigt__p_unsigned_char,
23342_swigt__p_wxGDIObject,
23343_swigt__p_wxIcon,
23344_swigt__p_wxLocale,
093d3ff1
RD
23345_swigt__ptrdiff_t,
23346_swigt__std__ptrdiff_t,
d55e5bfc 23347_swigt__p_wxRegion,
093d3ff1 23348_swigt__p_wxLanguageInfo,
d55e5bfc
RD
23349_swigt__p_wxWindowDC,
23350_swigt__p_wxPrintData,
23351_swigt__p_wxBrushList,
23352_swigt__p_wxFontList,
23353_swigt__p_wxPen,
23354_swigt__p_wxBufferedPaintDC,
23355_swigt__p_wxPaintDC,
23356_swigt__p_wxPenList,
d55e5bfc
RD
23357_swigt__p_int,
23358_swigt__p_wxMetaFile,
be9b1dca 23359_swigt__p_wxRendererNative,
093d3ff1 23360_swigt__p_unsigned_long,
d55e5bfc
RD
23361_swigt__p_wxNativeFontInfo,
23362_swigt__p_wxEncodingConverter,
be9b1dca 23363_swigt__p_wxSplitterRenderParams,
d55e5bfc
RD
23364_swigt__p_wxColourDatabase,
233650
23366};
23367
23368
23369/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
23370
23371static swig_const_info swig_const_table[] = {
c32bde28 23372{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
23373
23374#ifdef __cplusplus
23375}
23376#endif
23377
093d3ff1
RD
23378
23379#ifdef __cplusplus
23380extern "C" {
23381#endif
23382
23383 /* Python-specific SWIG API */
23384#define SWIG_newvarlink() SWIG_Python_newvarlink()
23385#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
23386#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
23387
23388 /* -----------------------------------------------------------------------------
23389 * global variable support code.
23390 * ----------------------------------------------------------------------------- */
23391
23392 typedef struct swig_globalvar {
23393 char *name; /* Name of global variable */
23394 PyObject *(*get_attr)(); /* Return the current value */
23395 int (*set_attr)(PyObject *); /* Set the value */
23396 struct swig_globalvar *next;
23397 } swig_globalvar;
23398
23399 typedef struct swig_varlinkobject {
23400 PyObject_HEAD
23401 swig_globalvar *vars;
23402 } swig_varlinkobject;
23403
23404 static PyObject *
23405 swig_varlink_repr(swig_varlinkobject *v) {
23406 v = v;
23407 return PyString_FromString("<Swig global variables>");
23408 }
23409
23410 static int
23411 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
23412 swig_globalvar *var;
23413 flags = flags;
23414 fprintf(fp,"Swig global variables { ");
23415 for (var = v->vars; var; var=var->next) {
23416 fprintf(fp,"%s", var->name);
23417 if (var->next) fprintf(fp,", ");
23418 }
23419 fprintf(fp," }\n");
23420 return 0;
23421 }
23422
23423 static PyObject *
23424 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
23425 swig_globalvar *var = v->vars;
23426 while (var) {
23427 if (strcmp(var->name,n) == 0) {
23428 return (*var->get_attr)();
23429 }
23430 var = var->next;
23431 }
23432 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
23433 return NULL;
23434 }
23435
23436 static int
23437 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
23438 swig_globalvar *var = v->vars;
23439 while (var) {
23440 if (strcmp(var->name,n) == 0) {
23441 return (*var->set_attr)(p);
23442 }
23443 var = var->next;
23444 }
23445 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
23446 return 1;
23447 }
23448
23449 static PyTypeObject varlinktype = {
23450 PyObject_HEAD_INIT(0)
23451 0, /* Number of items in variable part (ob_size) */
23452 (char *)"swigvarlink", /* Type name (tp_name) */
23453 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
23454 0, /* Itemsize (tp_itemsize) */
23455 0, /* Deallocator (tp_dealloc) */
23456 (printfunc) swig_varlink_print, /* Print (tp_print) */
23457 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
23458 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
23459 0, /* tp_compare */
23460 (reprfunc) swig_varlink_repr, /* tp_repr */
23461 0, /* tp_as_number */
23462 0, /* tp_as_sequence */
23463 0, /* tp_as_mapping */
23464 0, /* tp_hash */
23465 0, /* tp_call */
23466 0, /* tp_str */
23467 0, /* tp_getattro */
23468 0, /* tp_setattro */
23469 0, /* tp_as_buffer */
23470 0, /* tp_flags */
23471 0, /* tp_doc */
23472#if PY_VERSION_HEX >= 0x02000000
23473 0, /* tp_traverse */
23474 0, /* tp_clear */
23475#endif
23476#if PY_VERSION_HEX >= 0x02010000
23477 0, /* tp_richcompare */
23478 0, /* tp_weaklistoffset */
23479#endif
23480#if PY_VERSION_HEX >= 0x02020000
23481 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
23482#endif
23483#if PY_VERSION_HEX >= 0x02030000
23484 0, /* tp_del */
23485#endif
23486#ifdef COUNT_ALLOCS
23487 0,0,0,0 /* tp_alloc -> tp_next */
23488#endif
23489 };
23490
23491 /* Create a variable linking object for use later */
23492 static PyObject *
23493 SWIG_Python_newvarlink(void) {
23494 swig_varlinkobject *result = 0;
23495 result = PyMem_NEW(swig_varlinkobject,1);
23496 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
23497 result->ob_type = &varlinktype;
23498 result->vars = 0;
23499 result->ob_refcnt = 0;
23500 Py_XINCREF((PyObject *) result);
23501 return ((PyObject*) result);
23502 }
23503
23504 static void
23505 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
23506 swig_varlinkobject *v;
23507 swig_globalvar *gv;
23508 v= (swig_varlinkobject *) p;
23509 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
23510 gv->name = (char *) malloc(strlen(name)+1);
23511 strcpy(gv->name,name);
23512 gv->get_attr = get_attr;
23513 gv->set_attr = set_attr;
23514 gv->next = v->vars;
23515 v->vars = gv;
23516 }
23517
23518 /* -----------------------------------------------------------------------------
23519 * constants/methods manipulation
23520 * ----------------------------------------------------------------------------- */
23521
23522 /* Install Constants */
23523 static void
23524 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
23525 PyObject *obj = 0;
23526 size_t i;
23527 for (i = 0; constants[i].type; i++) {
23528 switch(constants[i].type) {
23529 case SWIG_PY_INT:
23530 obj = PyInt_FromLong(constants[i].lvalue);
23531 break;
23532 case SWIG_PY_FLOAT:
23533 obj = PyFloat_FromDouble(constants[i].dvalue);
23534 break;
23535 case SWIG_PY_STRING:
23536 if (constants[i].pvalue) {
23537 obj = PyString_FromString((char *) constants[i].pvalue);
23538 } else {
23539 Py_INCREF(Py_None);
23540 obj = Py_None;
23541 }
23542 break;
23543 case SWIG_PY_POINTER:
23544 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
23545 break;
23546 case SWIG_PY_BINARY:
23547 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
23548 break;
23549 default:
23550 obj = 0;
23551 break;
23552 }
23553 if (obj) {
23554 PyDict_SetItemString(d,constants[i].name,obj);
23555 Py_DECREF(obj);
23556 }
23557 }
23558 }
23559
23560 /* -----------------------------------------------------------------------------*/
23561 /* Fix SwigMethods to carry the callback ptrs when needed */
23562 /* -----------------------------------------------------------------------------*/
23563
23564 static void
23565 SWIG_Python_FixMethods(PyMethodDef *methods,
23566 swig_const_info *const_table,
23567 swig_type_info **types,
23568 swig_type_info **types_initial) {
23569 size_t i;
23570 for (i = 0; methods[i].ml_name; ++i) {
23571 char *c = methods[i].ml_doc;
23572 if (c && (c = strstr(c, "swig_ptr: "))) {
23573 int j;
23574 swig_const_info *ci = 0;
23575 char *name = c + 10;
23576 for (j = 0; const_table[j].type; j++) {
23577 if (strncmp(const_table[j].name, name,
23578 strlen(const_table[j].name)) == 0) {
23579 ci = &(const_table[j]);
23580 break;
23581 }
23582 }
23583 if (ci) {
23584 size_t shift = (ci->ptype) - types;
23585 swig_type_info *ty = types_initial[shift];
23586 size_t ldoc = (c - methods[i].ml_doc);
23587 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
23588 char *ndoc = (char*)malloc(ldoc + lptr + 10);
23589 char *buff = ndoc;
23590 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
23591 strncpy(buff, methods[i].ml_doc, ldoc);
23592 buff += ldoc;
23593 strncpy(buff, "swig_ptr: ", 10);
23594 buff += 10;
23595 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
23596 methods[i].ml_doc = ndoc;
23597 }
23598 }
23599 }
23600 }
23601
23602 /* -----------------------------------------------------------------------------*
23603 * Initialize type list
23604 * -----------------------------------------------------------------------------*/
23605
23606#if PY_MAJOR_VERSION < 2
23607 /* PyModule_AddObject function was introduced in Python 2.0. The following function
23608 is copied out of Python/modsupport.c in python version 2.3.4 */
23609 static int
23610 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
23611 {
23612 PyObject *dict;
23613 if (!PyModule_Check(m)) {
23614 PyErr_SetString(PyExc_TypeError,
23615 "PyModule_AddObject() needs module as first arg");
23616 return -1;
23617 }
23618 if (!o) {
23619 PyErr_SetString(PyExc_TypeError,
23620 "PyModule_AddObject() needs non-NULL value");
23621 return -1;
23622 }
23623
23624 dict = PyModule_GetDict(m);
23625 if (dict == NULL) {
23626 /* Internal error -- modules must have a dict! */
23627 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
23628 PyModule_GetName(m));
23629 return -1;
23630 }
23631 if (PyDict_SetItemString(dict, name, o))
23632 return -1;
23633 Py_DECREF(o);
23634 return 0;
23635 }
23636#endif
23637
23638 static swig_type_info **
23639 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
23640 static PyMethodDef swig_empty_runtime_method_table[] = {
23641 {
23642 NULL, NULL, 0, NULL
23643 }
23644 };/* Sentinel */
23645
23646 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
23647 swig_empty_runtime_method_table);
23648 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
23649 if (pointer && module) {
23650 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
23651 }
23652 return type_list_handle;
23653 }
23654
23655 static swig_type_info **
23656 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
23657 swig_type_info **type_pointer;
23658
23659 /* first check if module already created */
23660 type_pointer = SWIG_Python_GetTypeListHandle();
23661 if (type_pointer) {
23662 return type_pointer;
23663 } else {
23664 /* create a new module and variable */
23665 return SWIG_Python_SetTypeListHandle(type_list_handle);
23666 }
23667 }
23668
23669#ifdef __cplusplus
23670}
23671#endif
23672
23673/* -----------------------------------------------------------------------------*
23674 * Partial Init method
23675 * -----------------------------------------------------------------------------*/
23676
23677#ifdef SWIG_LINK_RUNTIME
23678#ifdef __cplusplus
23679extern "C"
23680#endif
23681SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
23682#endif
23683
d55e5bfc
RD
23684#ifdef __cplusplus
23685extern "C"
23686#endif
23687SWIGEXPORT(void) SWIG_init(void) {
23688 static PyObject *SWIG_globals = 0;
23689 static int typeinit = 0;
23690 PyObject *m, *d;
23691 int i;
23692 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
093d3ff1
RD
23693
23694 /* Fix SwigMethods to carry the callback ptrs when needed */
23695 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
23696
d55e5bfc
RD
23697 m = Py_InitModule((char *) SWIG_name, SwigMethods);
23698 d = PyModule_GetDict(m);
23699
23700 if (!typeinit) {
093d3ff1
RD
23701#ifdef SWIG_LINK_RUNTIME
23702 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
23703#else
23704# ifndef SWIG_STATIC_RUNTIME
23705 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
23706# endif
23707#endif
d55e5bfc
RD
23708 for (i = 0; swig_types_initial[i]; i++) {
23709 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
23710 }
23711 typeinit = 1;
23712 }
23713 SWIG_InstallConstants(d,swig_const_table);
23714
093d3ff1
RD
23715 {
23716 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)(wxOutRegion)));
23717 }
23718 {
23719 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)(wxPartRegion)));
23720 }
23721 {
23722 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)(wxInRegion)));
23723 }
23724 {
23725 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)(wxFONTFAMILY_DEFAULT)));
23726 }
23727 {
23728 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)(wxFONTFAMILY_DECORATIVE)));
23729 }
23730 {
23731 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)(wxFONTFAMILY_ROMAN)));
23732 }
23733 {
23734 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)(wxFONTFAMILY_SCRIPT)));
23735 }
23736 {
23737 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)(wxFONTFAMILY_SWISS)));
23738 }
23739 {
23740 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)(wxFONTFAMILY_MODERN)));
23741 }
23742 {
23743 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)(wxFONTFAMILY_TELETYPE)));
23744 }
23745 {
23746 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)(wxFONTFAMILY_MAX)));
23747 }
23748 {
23749 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)(wxFONTFAMILY_UNKNOWN)));
23750 }
23751 {
23752 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)(wxFONTSTYLE_NORMAL)));
23753 }
23754 {
23755 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)(wxFONTSTYLE_ITALIC)));
23756 }
23757 {
23758 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)(wxFONTSTYLE_SLANT)));
23759 }
23760 {
23761 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)(wxFONTSTYLE_MAX)));
23762 }
23763 {
23764 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)(wxFONTWEIGHT_NORMAL)));
23765 }
23766 {
23767 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)(wxFONTWEIGHT_LIGHT)));
23768 }
23769 {
23770 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)(wxFONTWEIGHT_BOLD)));
23771 }
23772 {
23773 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)(wxFONTWEIGHT_MAX)));
23774 }
23775 {
23776 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)(wxFONTFLAG_DEFAULT)));
23777 }
23778 {
23779 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)(wxFONTFLAG_ITALIC)));
23780 }
23781 {
23782 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)(wxFONTFLAG_SLANT)));
23783 }
23784 {
23785 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)(wxFONTFLAG_LIGHT)));
23786 }
23787 {
23788 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)(wxFONTFLAG_BOLD)));
23789 }
23790 {
23791 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)(wxFONTFLAG_ANTIALIASED)));
23792 }
23793 {
23794 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)(wxFONTFLAG_NOT_ANTIALIASED)));
23795 }
23796 {
23797 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)(wxFONTFLAG_UNDERLINED)));
23798 }
23799 {
23800 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)(wxFONTFLAG_STRIKETHROUGH)));
23801 }
23802 {
23803 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)(wxFONTFLAG_MASK)));
23804 }
23805 {
23806 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)(wxFONTENCODING_SYSTEM)));
23807 }
23808 {
23809 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)(wxFONTENCODING_DEFAULT)));
23810 }
23811 {
23812 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)(wxFONTENCODING_ISO8859_1)));
23813 }
23814 {
23815 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)(wxFONTENCODING_ISO8859_2)));
23816 }
23817 {
23818 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)(wxFONTENCODING_ISO8859_3)));
23819 }
23820 {
23821 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)(wxFONTENCODING_ISO8859_4)));
23822 }
23823 {
23824 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)(wxFONTENCODING_ISO8859_5)));
23825 }
23826 {
23827 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)(wxFONTENCODING_ISO8859_6)));
23828 }
23829 {
23830 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)(wxFONTENCODING_ISO8859_7)));
23831 }
23832 {
23833 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)(wxFONTENCODING_ISO8859_8)));
23834 }
23835 {
23836 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)(wxFONTENCODING_ISO8859_9)));
23837 }
23838 {
23839 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)(wxFONTENCODING_ISO8859_10)));
23840 }
23841 {
23842 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)(wxFONTENCODING_ISO8859_11)));
23843 }
23844 {
23845 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)(wxFONTENCODING_ISO8859_12)));
23846 }
23847 {
23848 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)(wxFONTENCODING_ISO8859_13)));
23849 }
23850 {
23851 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)(wxFONTENCODING_ISO8859_14)));
23852 }
23853 {
23854 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)(wxFONTENCODING_ISO8859_15)));
23855 }
23856 {
23857 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)(wxFONTENCODING_ISO8859_MAX)));
23858 }
23859 {
23860 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)(wxFONTENCODING_KOI8)));
23861 }
23862 {
23863 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)(wxFONTENCODING_KOI8_U)));
23864 }
23865 {
23866 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)(wxFONTENCODING_ALTERNATIVE)));
23867 }
23868 {
23869 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)(wxFONTENCODING_BULGARIAN)));
23870 }
23871 {
23872 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)(wxFONTENCODING_CP437)));
23873 }
23874 {
23875 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)(wxFONTENCODING_CP850)));
23876 }
23877 {
23878 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)(wxFONTENCODING_CP852)));
23879 }
23880 {
23881 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)(wxFONTENCODING_CP855)));
23882 }
23883 {
23884 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)(wxFONTENCODING_CP866)));
23885 }
23886 {
23887 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)(wxFONTENCODING_CP874)));
23888 }
23889 {
23890 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)(wxFONTENCODING_CP932)));
23891 }
23892 {
23893 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)(wxFONTENCODING_CP936)));
23894 }
23895 {
23896 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)(wxFONTENCODING_CP949)));
23897 }
23898 {
23899 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)(wxFONTENCODING_CP950)));
23900 }
23901 {
23902 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)(wxFONTENCODING_CP1250)));
23903 }
23904 {
23905 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)(wxFONTENCODING_CP1251)));
23906 }
23907 {
23908 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)(wxFONTENCODING_CP1252)));
23909 }
23910 {
23911 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)(wxFONTENCODING_CP1253)));
23912 }
23913 {
23914 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)(wxFONTENCODING_CP1254)));
23915 }
23916 {
23917 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)(wxFONTENCODING_CP1255)));
23918 }
23919 {
23920 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)(wxFONTENCODING_CP1256)));
23921 }
23922 {
23923 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)(wxFONTENCODING_CP1257)));
23924 }
23925 {
23926 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)(wxFONTENCODING_CP12_MAX)));
23927 }
23928 {
23929 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)(wxFONTENCODING_UTF7)));
23930 }
23931 {
23932 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)(wxFONTENCODING_UTF8)));
23933 }
23934 {
23935 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)(wxFONTENCODING_EUC_JP)));
23936 }
23937 {
23938 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)(wxFONTENCODING_UTF16BE)));
23939 }
23940 {
23941 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)(wxFONTENCODING_UTF16LE)));
23942 }
23943 {
23944 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)(wxFONTENCODING_UTF32BE)));
23945 }
23946 {
23947 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)(wxFONTENCODING_UTF32LE)));
23948 }
23949 {
23950 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)(wxFONTENCODING_MACROMAN)));
23951 }
23952 {
23953 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)(wxFONTENCODING_MACJAPANESE)));
23954 }
23955 {
23956 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)(wxFONTENCODING_MACCHINESETRAD)));
23957 }
23958 {
23959 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)(wxFONTENCODING_MACKOREAN)));
23960 }
23961 {
23962 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)(wxFONTENCODING_MACARABIC)));
23963 }
23964 {
23965 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)(wxFONTENCODING_MACHEBREW)));
23966 }
23967 {
23968 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)(wxFONTENCODING_MACGREEK)));
23969 }
23970 {
23971 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)(wxFONTENCODING_MACCYRILLIC)));
23972 }
23973 {
23974 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)(wxFONTENCODING_MACDEVANAGARI)));
23975 }
23976 {
23977 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)(wxFONTENCODING_MACGURMUKHI)));
23978 }
23979 {
23980 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)(wxFONTENCODING_MACGUJARATI)));
23981 }
23982 {
23983 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)(wxFONTENCODING_MACORIYA)));
23984 }
23985 {
23986 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)(wxFONTENCODING_MACBENGALI)));
23987 }
23988 {
23989 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)(wxFONTENCODING_MACTAMIL)));
23990 }
23991 {
23992 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)(wxFONTENCODING_MACTELUGU)));
23993 }
23994 {
23995 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)(wxFONTENCODING_MACKANNADA)));
23996 }
23997 {
23998 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)(wxFONTENCODING_MACMALAJALAM)));
23999 }
24000 {
24001 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)(wxFONTENCODING_MACSINHALESE)));
24002 }
24003 {
24004 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)(wxFONTENCODING_MACBURMESE)));
24005 }
24006 {
24007 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)(wxFONTENCODING_MACKHMER)));
24008 }
24009 {
24010 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)(wxFONTENCODING_MACTHAI)));
24011 }
24012 {
24013 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)(wxFONTENCODING_MACLAOTIAN)));
24014 }
24015 {
24016 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)(wxFONTENCODING_MACGEORGIAN)));
24017 }
24018 {
24019 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)(wxFONTENCODING_MACARMENIAN)));
24020 }
24021 {
24022 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)(wxFONTENCODING_MACCHINESESIMP)));
24023 }
24024 {
24025 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)(wxFONTENCODING_MACTIBETAN)));
24026 }
24027 {
24028 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)(wxFONTENCODING_MACMONGOLIAN)));
24029 }
24030 {
24031 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)(wxFONTENCODING_MACETHIOPIC)));
24032 }
24033 {
24034 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)(wxFONTENCODING_MACCENTRALEUR)));
24035 }
24036 {
24037 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)(wxFONTENCODING_MACVIATNAMESE)));
24038 }
24039 {
24040 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)(wxFONTENCODING_MACARABICEXT)));
24041 }
24042 {
24043 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)(wxFONTENCODING_MACSYMBOL)));
24044 }
24045 {
24046 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)(wxFONTENCODING_MACDINGBATS)));
24047 }
24048 {
24049 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)(wxFONTENCODING_MACTURKISH)));
24050 }
24051 {
24052 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)(wxFONTENCODING_MACCROATIAN)));
24053 }
24054 {
24055 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)(wxFONTENCODING_MACICELANDIC)));
24056 }
24057 {
24058 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)(wxFONTENCODING_MACROMANIAN)));
24059 }
24060 {
24061 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)(wxFONTENCODING_MACCELTIC)));
24062 }
24063 {
24064 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)(wxFONTENCODING_MACGAELIC)));
24065 }
24066 {
24067 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)(wxFONTENCODING_MACKEYBOARD)));
24068 }
24069 {
24070 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)(wxFONTENCODING_MACMIN)));
24071 }
24072 {
24073 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)(wxFONTENCODING_MACMAX)));
24074 }
24075 {
24076 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)(wxFONTENCODING_MAX)));
24077 }
24078 {
24079 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)(wxFONTENCODING_UTF16)));
24080 }
24081 {
24082 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)(wxFONTENCODING_UTF32)));
24083 }
24084 {
24085 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)(wxFONTENCODING_UNICODE)));
24086 }
24087 {
24088 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)(wxFONTENCODING_GB2312)));
24089 }
24090 {
24091 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)(wxFONTENCODING_BIG5)));
24092 }
24093 {
24094 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)(wxFONTENCODING_SHIFT_JIS)));
24095 }
24096
24097 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
24098
24099 {
24100 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)(wxLANGUAGE_DEFAULT)));
24101 }
24102 {
24103 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)(wxLANGUAGE_UNKNOWN)));
24104 }
24105 {
24106 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)(wxLANGUAGE_ABKHAZIAN)));
24107 }
24108 {
24109 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)(wxLANGUAGE_AFAR)));
24110 }
24111 {
24112 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)(wxLANGUAGE_AFRIKAANS)));
24113 }
24114 {
24115 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)(wxLANGUAGE_ALBANIAN)));
24116 }
24117 {
24118 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)(wxLANGUAGE_AMHARIC)));
24119 }
24120 {
24121 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)(wxLANGUAGE_ARABIC)));
24122 }
24123 {
24124 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_ALGERIA)));
24125 }
24126 {
24127 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_BAHRAIN)));
24128 }
24129 {
24130 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)(wxLANGUAGE_ARABIC_EGYPT)));
24131 }
24132 {
24133 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)(wxLANGUAGE_ARABIC_IRAQ)));
24134 }
24135 {
24136 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_JORDAN)));
24137 }
24138 {
24139 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)(wxLANGUAGE_ARABIC_KUWAIT)));
24140 }
24141 {
24142 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)(wxLANGUAGE_ARABIC_LEBANON)));
24143 }
24144 {
24145 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_LIBYA)));
24146 }
24147 {
24148 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)(wxLANGUAGE_ARABIC_MOROCCO)));
24149 }
24150 {
24151 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_OMAN)));
24152 }
24153 {
24154 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)(wxLANGUAGE_ARABIC_QATAR)));
24155 }
24156 {
24157 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
24158 }
24159 {
24160 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SUDAN)));
24161 }
24162 {
24163 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SYRIA)));
24164 }
24165 {
24166 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_TUNISIA)));
24167 }
24168 {
24169 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)(wxLANGUAGE_ARABIC_UAE)));
24170 }
24171 {
24172 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_YEMEN)));
24173 }
24174 {
24175 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)(wxLANGUAGE_ARMENIAN)));
24176 }
24177 {
24178 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)(wxLANGUAGE_ASSAMESE)));
24179 }
24180 {
24181 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)(wxLANGUAGE_AYMARA)));
24182 }
24183 {
24184 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)(wxLANGUAGE_AZERI)));
24185 }
24186 {
24187 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_AZERI_CYRILLIC)));
24188 }
24189 {
24190 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)(wxLANGUAGE_AZERI_LATIN)));
24191 }
24192 {
24193 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)(wxLANGUAGE_BASHKIR)));
24194 }
24195 {
24196 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)(wxLANGUAGE_BASQUE)));
24197 }
24198 {
24199 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)(wxLANGUAGE_BELARUSIAN)));
24200 }
24201 {
24202 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)(wxLANGUAGE_BENGALI)));
24203 }
24204 {
24205 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)(wxLANGUAGE_BHUTANI)));
24206 }
24207 {
24208 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)(wxLANGUAGE_BIHARI)));
24209 }
24210 {
24211 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)(wxLANGUAGE_BISLAMA)));
24212 }
24213 {
24214 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)(wxLANGUAGE_BRETON)));
24215 }
24216 {
24217 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)(wxLANGUAGE_BULGARIAN)));
24218 }
24219 {
24220 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)(wxLANGUAGE_BURMESE)));
24221 }
24222 {
24223 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)(wxLANGUAGE_CAMBODIAN)));
24224 }
24225 {
24226 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)(wxLANGUAGE_CATALAN)));
24227 }
24228 {
24229 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)(wxLANGUAGE_CHINESE)));
24230 }
24231 {
24232 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)(wxLANGUAGE_CHINESE_SIMPLIFIED)));
24233 }
24234 {
24235 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)(wxLANGUAGE_CHINESE_TRADITIONAL)));
24236 }
24237 {
24238 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)(wxLANGUAGE_CHINESE_HONGKONG)));
24239 }
24240 {
24241 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)(wxLANGUAGE_CHINESE_MACAU)));
24242 }
24243 {
24244 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)(wxLANGUAGE_CHINESE_SINGAPORE)));
24245 }
24246 {
24247 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)(wxLANGUAGE_CHINESE_TAIWAN)));
24248 }
24249 {
24250 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)(wxLANGUAGE_CORSICAN)));
24251 }
24252 {
24253 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)(wxLANGUAGE_CROATIAN)));
24254 }
24255 {
24256 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)(wxLANGUAGE_CZECH)));
24257 }
24258 {
24259 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)(wxLANGUAGE_DANISH)));
24260 }
24261 {
24262 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)(wxLANGUAGE_DUTCH)));
24263 }
24264 {
24265 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)(wxLANGUAGE_DUTCH_BELGIAN)));
24266 }
24267 {
24268 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)(wxLANGUAGE_ENGLISH)));
24269 }
24270 {
24271 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_UK)));
24272 }
24273 {
24274 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_US)));
24275 }
24276 {
24277 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_AUSTRALIA)));
24278 }
24279 {
24280 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_BELIZE)));
24281 }
24282 {
24283 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_BOTSWANA)));
24284 }
24285 {
24286 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_CANADA)));
24287 }
24288 {
24289 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_CARIBBEAN)));
24290 }
24291 {
24292 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_DENMARK)));
24293 }
24294 {
24295 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_EIRE)));
24296 }
24297 {
24298 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_JAMAICA)));
24299 }
24300 {
24301 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
24302 }
24303 {
24304 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_PHILIPPINES)));
24305 }
24306 {
24307 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
24308 }
24309 {
24310 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_TRINIDAD)));
24311 }
24312 {
24313 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_ZIMBABWE)));
24314 }
24315 {
24316 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)(wxLANGUAGE_ESPERANTO)));
24317 }
24318 {
24319 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)(wxLANGUAGE_ESTONIAN)));
24320 }
24321 {
24322 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)(wxLANGUAGE_FAEROESE)));
24323 }
24324 {
24325 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)(wxLANGUAGE_FARSI)));
24326 }
24327 {
24328 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)(wxLANGUAGE_FIJI)));
24329 }
24330 {
24331 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)(wxLANGUAGE_FINNISH)));
24332 }
24333 {
24334 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)(wxLANGUAGE_FRENCH)));
24335 }
24336 {
24337 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)(wxLANGUAGE_FRENCH_BELGIAN)));
24338 }
24339 {
24340 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)(wxLANGUAGE_FRENCH_CANADIAN)));
24341 }
24342 {
24343 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)(wxLANGUAGE_FRENCH_LUXEMBOURG)));
24344 }
24345 {
24346 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)(wxLANGUAGE_FRENCH_MONACO)));
24347 }
24348 {
24349 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)(wxLANGUAGE_FRENCH_SWISS)));
24350 }
24351 {
24352 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)(wxLANGUAGE_FRISIAN)));
24353 }
24354 {
24355 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)(wxLANGUAGE_GALICIAN)));
24356 }
24357 {
24358 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)(wxLANGUAGE_GEORGIAN)));
24359 }
24360 {
24361 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)(wxLANGUAGE_GERMAN)));
24362 }
24363 {
24364 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)(wxLANGUAGE_GERMAN_AUSTRIAN)));
24365 }
24366 {
24367 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)(wxLANGUAGE_GERMAN_BELGIUM)));
24368 }
24369 {
24370 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
24371 }
24372 {
24373 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)(wxLANGUAGE_GERMAN_LUXEMBOURG)));
24374 }
24375 {
24376 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)(wxLANGUAGE_GERMAN_SWISS)));
24377 }
24378 {
24379 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)(wxLANGUAGE_GREEK)));
24380 }
24381 {
24382 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)(wxLANGUAGE_GREENLANDIC)));
24383 }
24384 {
24385 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)(wxLANGUAGE_GUARANI)));
24386 }
24387 {
24388 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)(wxLANGUAGE_GUJARATI)));
24389 }
24390 {
24391 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)(wxLANGUAGE_HAUSA)));
24392 }
24393 {
24394 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)(wxLANGUAGE_HEBREW)));
24395 }
24396 {
24397 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)(wxLANGUAGE_HINDI)));
24398 }
24399 {
24400 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)(wxLANGUAGE_HUNGARIAN)));
24401 }
24402 {
24403 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)(wxLANGUAGE_ICELANDIC)));
24404 }
24405 {
24406 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)(wxLANGUAGE_INDONESIAN)));
24407 }
24408 {
24409 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)(wxLANGUAGE_INTERLINGUA)));
24410 }
24411 {
24412 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)(wxLANGUAGE_INTERLINGUE)));
24413 }
24414 {
24415 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)(wxLANGUAGE_INUKTITUT)));
24416 }
24417 {
24418 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)(wxLANGUAGE_INUPIAK)));
24419 }
24420 {
24421 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)(wxLANGUAGE_IRISH)));
24422 }
24423 {
24424 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)(wxLANGUAGE_ITALIAN)));
24425 }
24426 {
24427 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)(wxLANGUAGE_ITALIAN_SWISS)));
24428 }
24429 {
24430 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)(wxLANGUAGE_JAPANESE)));
24431 }
24432 {
24433 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)(wxLANGUAGE_JAVANESE)));
24434 }
24435 {
24436 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)(wxLANGUAGE_KANNADA)));
24437 }
24438 {
24439 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)(wxLANGUAGE_KASHMIRI)));
24440 }
24441 {
24442 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)(wxLANGUAGE_KASHMIRI_INDIA)));
24443 }
24444 {
24445 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)(wxLANGUAGE_KAZAKH)));
24446 }
24447 {
24448 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)(wxLANGUAGE_KERNEWEK)));
24449 }
24450 {
24451 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)(wxLANGUAGE_KINYARWANDA)));
24452 }
24453 {
24454 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)(wxLANGUAGE_KIRGHIZ)));
24455 }
24456 {
24457 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)(wxLANGUAGE_KIRUNDI)));
24458 }
24459 {
24460 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)(wxLANGUAGE_KONKANI)));
24461 }
24462 {
24463 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)(wxLANGUAGE_KOREAN)));
24464 }
24465 {
24466 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)(wxLANGUAGE_KURDISH)));
24467 }
24468 {
24469 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)(wxLANGUAGE_LAOTHIAN)));
24470 }
24471 {
24472 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)(wxLANGUAGE_LATIN)));
24473 }
24474 {
24475 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)(wxLANGUAGE_LATVIAN)));
24476 }
24477 {
24478 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)(wxLANGUAGE_LINGALA)));
24479 }
24480 {
24481 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)(wxLANGUAGE_LITHUANIAN)));
24482 }
24483 {
24484 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)(wxLANGUAGE_MACEDONIAN)));
24485 }
24486 {
24487 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)(wxLANGUAGE_MALAGASY)));
24488 }
24489 {
24490 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)(wxLANGUAGE_MALAY)));
24491 }
24492 {
24493 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)(wxLANGUAGE_MALAYALAM)));
24494 }
24495 {
24496 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
24497 }
24498 {
24499 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)(wxLANGUAGE_MALAY_MALAYSIA)));
24500 }
24501 {
24502 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)(wxLANGUAGE_MALTESE)));
24503 }
24504 {
24505 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)(wxLANGUAGE_MANIPURI)));
24506 }
24507 {
24508 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)(wxLANGUAGE_MAORI)));
24509 }
24510 {
24511 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)(wxLANGUAGE_MARATHI)));
24512 }
24513 {
24514 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)(wxLANGUAGE_MOLDAVIAN)));
24515 }
24516 {
24517 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)(wxLANGUAGE_MONGOLIAN)));
24518 }
24519 {
24520 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)(wxLANGUAGE_NAURU)));
24521 }
24522 {
24523 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)(wxLANGUAGE_NEPALI)));
24524 }
24525 {
24526 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)(wxLANGUAGE_NEPALI_INDIA)));
24527 }
24528 {
24529 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)(wxLANGUAGE_NORWEGIAN_BOKMAL)));
24530 }
24531 {
24532 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)(wxLANGUAGE_NORWEGIAN_NYNORSK)));
24533 }
24534 {
24535 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)(wxLANGUAGE_OCCITAN)));
24536 }
24537 {
24538 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)(wxLANGUAGE_ORIYA)));
24539 }
24540 {
24541 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)(wxLANGUAGE_OROMO)));
24542 }
24543 {
24544 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)(wxLANGUAGE_PASHTO)));
24545 }
24546 {
24547 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)(wxLANGUAGE_POLISH)));
24548 }
24549 {
24550 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)(wxLANGUAGE_PORTUGUESE)));
24551 }
24552 {
24553 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
24554 }
24555 {
24556 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)(wxLANGUAGE_PUNJABI)));
24557 }
24558 {
24559 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)(wxLANGUAGE_QUECHUA)));
24560 }
24561 {
24562 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)(wxLANGUAGE_RHAETO_ROMANCE)));
24563 }
24564 {
24565 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)(wxLANGUAGE_ROMANIAN)));
24566 }
24567 {
24568 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)(wxLANGUAGE_RUSSIAN)));
24569 }
24570 {
24571 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)(wxLANGUAGE_RUSSIAN_UKRAINE)));
24572 }
24573 {
24574 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)(wxLANGUAGE_SAMOAN)));
24575 }
24576 {
24577 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)(wxLANGUAGE_SANGHO)));
24578 }
24579 {
24580 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)(wxLANGUAGE_SANSKRIT)));
24581 }
24582 {
24583 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)(wxLANGUAGE_SCOTS_GAELIC)));
24584 }
24585 {
24586 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)(wxLANGUAGE_SERBIAN)));
24587 }
24588 {
24589 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_SERBIAN_CYRILLIC)));
24590 }
24591 {
24592 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)(wxLANGUAGE_SERBIAN_LATIN)));
24593 }
24594 {
24595 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)(wxLANGUAGE_SERBO_CROATIAN)));
24596 }
24597 {
24598 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)(wxLANGUAGE_SESOTHO)));
24599 }
24600 {
24601 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)(wxLANGUAGE_SETSWANA)));
24602 }
24603 {
24604 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)(wxLANGUAGE_SHONA)));
24605 }
24606 {
24607 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)(wxLANGUAGE_SINDHI)));
24608 }
24609 {
24610 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)(wxLANGUAGE_SINHALESE)));
24611 }
24612 {
24613 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)(wxLANGUAGE_SISWATI)));
24614 }
24615 {
24616 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)(wxLANGUAGE_SLOVAK)));
24617 }
24618 {
24619 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)(wxLANGUAGE_SLOVENIAN)));
24620 }
24621 {
24622 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)(wxLANGUAGE_SOMALI)));
24623 }
24624 {
24625 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)(wxLANGUAGE_SPANISH)));
24626 }
24627 {
24628 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_ARGENTINA)));
24629 }
24630 {
24631 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_BOLIVIA)));
24632 }
24633 {
24634 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)(wxLANGUAGE_SPANISH_CHILE)));
24635 }
24636 {
24637 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_COLOMBIA)));
24638 }
24639 {
24640 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_COSTA_RICA)));
24641 }
24642 {
24643 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
24644 }
24645 {
24646 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)(wxLANGUAGE_SPANISH_ECUADOR)));
24647 }
24648 {
24649 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)(wxLANGUAGE_SPANISH_EL_SALVADOR)));
24650 }
24651 {
24652 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_GUATEMALA)));
24653 }
24654 {
24655 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)(wxLANGUAGE_SPANISH_HONDURAS)));
24656 }
24657 {
24658 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)(wxLANGUAGE_SPANISH_MEXICAN)));
24659 }
24660 {
24661 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)(wxLANGUAGE_SPANISH_MODERN)));
24662 }
24663 {
24664 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_NICARAGUA)));
24665 }
24666 {
24667 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PANAMA)));
24668 }
24669 {
24670 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PARAGUAY)));
24671 }
24672 {
24673 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PERU)));
24674 }
24675 {
24676 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PUERTO_RICO)));
24677 }
24678 {
24679 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)(wxLANGUAGE_SPANISH_URUGUAY)));
24680 }
24681 {
24682 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)(wxLANGUAGE_SPANISH_US)));
24683 }
24684 {
24685 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_VENEZUELA)));
24686 }
24687 {
24688 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)(wxLANGUAGE_SUNDANESE)));
24689 }
24690 {
24691 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)(wxLANGUAGE_SWAHILI)));
24692 }
24693 {
24694 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)(wxLANGUAGE_SWEDISH)));
24695 }
24696 {
24697 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)(wxLANGUAGE_SWEDISH_FINLAND)));
24698 }
24699 {
24700 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)(wxLANGUAGE_TAGALOG)));
24701 }
24702 {
24703 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)(wxLANGUAGE_TAJIK)));
24704 }
24705 {
24706 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)(wxLANGUAGE_TAMIL)));
24707 }
24708 {
24709 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)(wxLANGUAGE_TATAR)));
24710 }
24711 {
24712 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)(wxLANGUAGE_TELUGU)));
24713 }
24714 {
24715 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)(wxLANGUAGE_THAI)));
24716 }
24717 {
24718 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)(wxLANGUAGE_TIBETAN)));
24719 }
24720 {
24721 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)(wxLANGUAGE_TIGRINYA)));
24722 }
24723 {
24724 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)(wxLANGUAGE_TONGA)));
24725 }
24726 {
24727 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)(wxLANGUAGE_TSONGA)));
24728 }
24729 {
24730 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)(wxLANGUAGE_TURKISH)));
24731 }
24732 {
24733 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)(wxLANGUAGE_TURKMEN)));
24734 }
24735 {
24736 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)(wxLANGUAGE_TWI)));
24737 }
24738 {
24739 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)(wxLANGUAGE_UIGHUR)));
24740 }
24741 {
24742 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)(wxLANGUAGE_UKRAINIAN)));
24743 }
24744 {
24745 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)(wxLANGUAGE_URDU)));
24746 }
24747 {
24748 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)(wxLANGUAGE_URDU_INDIA)));
24749 }
24750 {
24751 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)(wxLANGUAGE_URDU_PAKISTAN)));
24752 }
24753 {
24754 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)(wxLANGUAGE_UZBEK)));
24755 }
24756 {
24757 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_UZBEK_CYRILLIC)));
24758 }
24759 {
24760 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)(wxLANGUAGE_UZBEK_LATIN)));
24761 }
24762 {
24763 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)(wxLANGUAGE_VIETNAMESE)));
24764 }
24765 {
24766 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)(wxLANGUAGE_VOLAPUK)));
24767 }
24768 {
24769 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)(wxLANGUAGE_WELSH)));
24770 }
24771 {
24772 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)(wxLANGUAGE_WOLOF)));
24773 }
24774 {
24775 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)(wxLANGUAGE_XHOSA)));
24776 }
24777 {
24778 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)(wxLANGUAGE_YIDDISH)));
24779 }
24780 {
24781 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)(wxLANGUAGE_YORUBA)));
24782 }
24783 {
24784 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)(wxLANGUAGE_ZHUANG)));
24785 }
24786 {
24787 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)(wxLANGUAGE_ZULU)));
24788 }
24789 {
24790 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)(wxLANGUAGE_USER_DEFINED)));
24791 }
24792 {
24793 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)(wxLOCALE_CAT_NUMBER)));
24794 }
24795 {
24796 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)(wxLOCALE_CAT_DATE)));
24797 }
24798 {
24799 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)(wxLOCALE_CAT_MONEY)));
24800 }
24801 {
24802 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)(wxLOCALE_CAT_MAX)));
24803 }
24804 {
24805 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)(wxLOCALE_THOUSANDS_SEP)));
24806 }
24807 {
24808 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)(wxLOCALE_DECIMAL_POINT)));
24809 }
24810 {
24811 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)(wxLOCALE_LOAD_DEFAULT)));
24812 }
24813 {
24814 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)(wxLOCALE_CONV_ENCODING)));
24815 }
24816 {
24817 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)(wxCONVERT_STRICT)));
24818 }
24819 {
24820 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)(wxCONVERT_SUBSTITUTE)));
24821 }
24822 {
24823 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)(wxPLATFORM_CURRENT)));
24824 }
24825 {
24826 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)(wxPLATFORM_UNIX)));
24827 }
24828 {
24829 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)(wxPLATFORM_WINDOWS)));
24830 }
24831 {
24832 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)(wxPLATFORM_OS2)));
24833 }
24834 {
24835 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)(wxPLATFORM_MAC)));
24836 }
e2950dbb
RD
24837 {
24838 PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int((int)(wxBUFFER_VIRTUAL_AREA)));
24839 }
24840 {
24841 PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int((int)(wxBUFFER_CLIENT_AREA)));
24842 }
093d3ff1
RD
24843 {
24844 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)(wxIMAGELIST_DRAW_NORMAL)));
24845 }
24846 {
24847 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)(wxIMAGELIST_DRAW_TRANSPARENT)));
24848 }
24849 {
24850 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)(wxIMAGELIST_DRAW_SELECTED)));
24851 }
24852 {
24853 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)(wxIMAGELIST_DRAW_FOCUSED)));
24854 }
24855 {
24856 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)(wxIMAGE_LIST_NORMAL)));
24857 }
24858 {
24859 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)(wxIMAGE_LIST_SMALL)));
24860 }
24861 {
24862 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)(wxIMAGE_LIST_STATE)));
24863 }
d55e5bfc
RD
24864 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
24865 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
24866 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
24867 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
24868 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
24869 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
24870 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
24871 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
24872 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
24873 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
24874 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
24875 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
24876 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
24877 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
24878 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
24879 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
24880 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
24881 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
24882 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
24883 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
24884 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
24885 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
24886 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
24887 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
24888 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
24889 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
24890 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
24891 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
24892 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
24893 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
24894 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
24895 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
24896 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
24897 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
24898 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
24899 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
24900 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
24901 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
24902 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
24903 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
24904 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
24905 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
24906 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
24907 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
24908 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
24909 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
24910 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
be9b1dca
RD
24911 {
24912 PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int((int)(wxCONTROL_DISABLED)));
24913 }
24914 {
24915 PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int((int)(wxCONTROL_FOCUSED)));
24916 }
24917 {
24918 PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int((int)(wxCONTROL_PRESSED)));
24919 }
24920 {
24921 PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int((int)(wxCONTROL_ISDEFAULT)));
24922 }
24923 {
24924 PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int((int)(wxCONTROL_ISSUBMENU)));
24925 }
24926 {
24927 PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int((int)(wxCONTROL_EXPANDED)));
24928 }
24929 {
24930 PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int((int)(wxCONTROL_CURRENT)));
24931 }
24932 {
24933 PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int((int)(wxCONTROL_SELECTED)));
24934 }
24935 {
24936 PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int((int)(wxCONTROL_CHECKED)));
24937 }
24938 {
24939 PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int((int)(wxCONTROL_CHECKABLE)));
24940 }
24941 {
24942 PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int((int)(wxCONTROL_UNDETERMINED)));
24943 }
24944 {
24945 PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int((int)(wxCONTROL_FLAGS_MASK)));
24946 }
24947 {
24948 PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int((int)(wxCONTROL_DIRTY)));
24949 }
24950 {
24951 PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int((int)(wxRendererVersion::Current_Version)));
24952 }
24953 {
24954 PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int((int)(wxRendererVersion::Current_Age)));
24955 }
d55e5bfc
RD
24956
24957 // Work around a chicken/egg problem in drawlist.cpp
24958 wxPyDrawList_SetAPIPtr();
24959
24960}
24961