]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
reSWIGed
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
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
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
c32bde28 46#define SWIG_TypePrettyName SWIG_Python_TypePrettyName
d55e5bfc
RD
47#define SWIG_TypeQuery SWIG_Python_TypeQuery
48#define SWIG_TypeClientData SWIG_Python_TypeClientData
49#define SWIG_PackData SWIG_Python_PackData
50#define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53/***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63#include <string.h>
64
65#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66# if defined(_MSC_VER) || defined(__GNUC__)
67# if defined(STATIC_LINKED)
68# define SWIGEXPORT(a) a
69# define SWIGIMPORT(a) extern a
70# else
71# define SWIGEXPORT(a) __declspec(dllexport) a
72# define SWIGIMPORT(a) extern a
73# endif
74# else
75# if defined(__BORLANDC__)
76# define SWIGEXPORT(a) a _export
77# define SWIGIMPORT(a) a _export
78# else
79# define SWIGEXPORT(a) a
80# define SWIGIMPORT(a) a
81# endif
82# endif
83#else
84# define SWIGEXPORT(a) a
85# define SWIGIMPORT(a) a
86#endif
87
88#ifdef SWIG_GLOBAL
89# define SWIGRUNTIME(a) SWIGEXPORT(a)
90#else
91# define SWIGRUNTIME(a) static a
92#endif
93
94#ifdef __cplusplus
95extern "C" {
96#endif
97
98typedef void *(*swig_converter_func)(void *);
99typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109} swig_type_info;
110
111
112SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
c32bde28 117SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
d55e5bfc
RD
118SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124#ifdef __cplusplus
125}
126#endif
127
c32bde28 128
d55e5bfc
RD
129/***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
d55e5bfc
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199/* Contract support */
200
201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203#ifdef __cplusplus
204}
205#endif
206
207
c32bde28 208
d55e5bfc
RD
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
212#define SWIGTYPE_p_wxBrush swig_types[1]
213#define SWIGTYPE_p_wxColour swig_types[2]
214#define SWIGTYPE_p_wxDC swig_types[3]
215#define SWIGTYPE_p_wxMirrorDC swig_types[4]
216#define SWIGTYPE_p_byte swig_types[5]
217#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
218#define SWIGTYPE_p_char swig_types[7]
219#define SWIGTYPE_p_wxIconLocation swig_types[8]
220#define SWIGTYPE_p_wxImage swig_types[9]
221#define SWIGTYPE_p_wxMetaFileDC swig_types[10]
222#define SWIGTYPE_p_wxMask swig_types[11]
223#define SWIGTYPE_p_wxSize swig_types[12]
224#define SWIGTYPE_p_wxFont swig_types[13]
225#define SWIGTYPE_p_wxWindow swig_types[14]
226#define SWIGTYPE_p_double swig_types[15]
227#define SWIGTYPE_p_wxMemoryDC swig_types[16]
228#define SWIGTYPE_p_wxFontMapper swig_types[17]
229#define SWIGTYPE_p_wxEffects swig_types[18]
230#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
231#define SWIGTYPE_p_wxPalette swig_types[20]
232#define SWIGTYPE_p_wxBitmap swig_types[21]
233#define SWIGTYPE_p_wxObject swig_types[22]
234#define SWIGTYPE_p_wxRegionIterator swig_types[23]
235#define SWIGTYPE_p_wxRect swig_types[24]
236#define SWIGTYPE_p_wxString swig_types[25]
237#define SWIGTYPE_p_wxPrinterDC swig_types[26]
238#define SWIGTYPE_p_wxIconBundle swig_types[27]
239#define SWIGTYPE_p_wxPoint swig_types[28]
240#define SWIGTYPE_p_wxDash swig_types[29]
241#define SWIGTYPE_p_wxScreenDC swig_types[30]
242#define SWIGTYPE_p_wxCursor swig_types[31]
243#define SWIGTYPE_p_wxClientDC swig_types[32]
244#define SWIGTYPE_p_wxBufferedDC swig_types[33]
245#define SWIGTYPE_p_wxImageList swig_types[34]
246#define SWIGTYPE_p_unsigned_char swig_types[35]
247#define SWIGTYPE_p_wxGDIObject swig_types[36]
248#define SWIGTYPE_p_wxIcon swig_types[37]
249#define SWIGTYPE_p_wxLocale swig_types[38]
250#define SWIGTYPE_p_wxRegion swig_types[39]
c24da6d6
RD
251#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
252#define SWIGTYPE_p_wxConfigBase swig_types[41]
d55e5bfc
RD
253#define SWIGTYPE_p_wxWindowDC swig_types[42]
254#define SWIGTYPE_p_wxPrintData swig_types[43]
255#define SWIGTYPE_p_wxBrushList swig_types[44]
256#define SWIGTYPE_p_wxFontList swig_types[45]
257#define SWIGTYPE_p_wxPen swig_types[46]
258#define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
259#define SWIGTYPE_p_wxPaintDC swig_types[48]
260#define SWIGTYPE_p_wxPenList swig_types[49]
c24da6d6
RD
261#define SWIGTYPE_p_int swig_types[50]
262#define SWIGTYPE_p_wxMetaFile swig_types[51]
263#define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
264#define SWIGTYPE_p_wxEncodingConverter swig_types[53]
265#define SWIGTYPE_p_wxColourDatabase swig_types[54]
266static swig_type_info *swig_types[56];
d55e5bfc
RD
267
268/* -------- TYPES TABLE (END) -------- */
269
270
271/*-----------------------------------------------
272 @(target):= _gdi_.so
273 ------------------------------------------------*/
274#define SWIG_init init_gdi_
275
276#define SWIG_name "_gdi_"
277
c32bde28
RD
278/* Auxiliar swig macros that appear in the header */
279
280#define SWIG_OLDOBJ 1
281#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
282#define SWIG_PYSTR SWIG_NEWOBJ + 1
d55e5bfc
RD
283
284#ifdef __cplusplus
285#define SWIGSTATICINLINE(a) static inline a
286#define SWIGSTATIC(a) static a
c32bde28
RD
287#define swig_new_array(size,Type) (new Type[(size)])
288#define swig_delete(cptr) delete cptr
d55e5bfc 289#define swig_delete_array(cptr) delete[] cptr
c32bde28
RD
290#define swig_const_cast(a,Type) const_cast<Type >(a)
291#define swig_static_cast(a,Type) static_cast<Type >(a)
292#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
293#define swig_new_copy(ptr,Type) (new Type(*ptr))
294#define swig_numeric_cast(a,Type) static_cast<Type >(a)
d55e5bfc
RD
295
296#else /* C case */
297
298#define SWIGSTATICINLINE(a) static a
299#define SWIGSTATIC(a) static a
c32bde28
RD
300#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
301#define swig_delete(cptr) free((char*)cptr)
d55e5bfc 302#define swig_delete_array(cptr) free((char*)cptr)
c32bde28
RD
303#define swig_const_cast(a,Type) (Type)(a)
304#define swig_static_cast(a,Type) (Type)(a)
305#define swig_reinterpret_cast(a,Type) (Type)(a)
306#define swig_numeric_cast(a,Type) (Type)(a)
307#define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
d55e5bfc
RD
308
309#endif /* __cplusplus */
310
311
c32bde28
RD
312/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
313#define SWIG_From_signed_SS_char PyInt_FromLong
314/*@@*/
315/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
316#define SWIG_From_unsigned_SS_char PyInt_FromLong
317/*@@*/
318/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
319#define SWIG_From_short PyInt_FromLong
320/*@@*/
321/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
322#define SWIG_From_unsigned_SS_short PyInt_FromLong
323/*@@*/
324/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
325#define SWIG_From_int PyInt_FromLong
326/*@@*/
327/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
328#define SWIG_From_long PyInt_FromLong
329/*@@*/
330/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
331#define SWIG_From_float PyFloat_FromDouble
332/*@@*/
333/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
334#define SWIG_From_double PyFloat_FromDouble
335/*@@*/
d55e5bfc
RD
336
337
338#include "wx/wxPython/wxPython.h"
339#include "wx/wxPython/pyclasses.h"
340
341
342 static const wxString wxPyEmptyString(wxEmptyString);
343
c32bde28
RD
344#include <limits.h>
345
346
347SWIGSTATICINLINE(int)
348 SWIG_CheckLongInRange(long value, long min_value, long max_value,
349 const char *errmsg)
d55e5bfc 350{
c32bde28
RD
351 if (value < min_value) {
352 if (errmsg) {
353 PyErr_Format(PyExc_OverflowError,
354 "value %ld is less than '%s' minimum %ld",
355 value, errmsg, min_value);
356 }
357 return 0;
358 } else if (value > max_value) {
359 if (errmsg) {
360 PyErr_Format(PyExc_OverflowError,
361 "value %ld is greater than '%s' maximum %ld",
362 value, errmsg, max_value);
363 }
364 return 0;
365 }
366 return 1;
d55e5bfc
RD
367}
368
369
c32bde28 370// See my_fragments.i
d55e5bfc 371SWIGSTATICINLINE(int)
c32bde28 372SWIG_AsVal_long(PyObject* obj, long* val)
d55e5bfc 373{
c32bde28
RD
374 if (PyNumber_Check(obj)) {
375 if (val) *val = PyInt_AsLong(obj);
376 return 1;
377 }
378 else {
379 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
380 obj->ob_type->tp_name);
381 PyErr_SetObject(PyExc_TypeError, errmsg);
382 Py_DECREF(errmsg);
383 }
d55e5bfc 384 return 0;
c32bde28
RD
385}
386
387
388#if INT_MAX != LONG_MAX
389SWIGSTATICINLINE(int)
390 SWIG_AsVal_int(PyObject *obj, int *val)
391{
392 const char* errmsg = val ? "int" : 0;
393 long v;
394 if (SWIG_AsVal_long(obj, &v)) {
395 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
396 if (val) *val = swig_numeric_cast(v, int);
397 return 1;
398 } else {
399 return 0;
400 }
d55e5bfc 401 } else {
c32bde28
RD
402 PyErr_Clear();
403 }
404 if (val) {
405 PyErr_SetString(PyExc_TypeError, "an int is expected");
d55e5bfc 406 }
c32bde28 407 return 0;
d55e5bfc 408}
c32bde28
RD
409#else
410SWIGSTATICINLINE(int)
411 SWIG_AsVal_int(PyObject *obj, int *val)
412{
413 return SWIG_AsVal_long(obj,(long*)val);
414}
415#endif
d55e5bfc
RD
416
417
c32bde28
RD
418SWIGSTATICINLINE(int)
419 SWIG_AsVal_bool(PyObject *obj, bool *val)
420{
421 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
422 if (obj == Py_True) {
423 if (val) *val = true;
424 return 1;
425 }
426 if (obj == Py_False) {
427 if (val) *val = false;
428 return 1;
429 }
430 int res = 0;
431 if (SWIG_AsVal_int(obj, &res)) {
432 if (val) *val = (bool)res;
433 return 1;
434 }
435 if (val) {
436 PyErr_SetString(PyExc_TypeError, "a bool is expected");
437 }
438 return 0;
439}
d55e5bfc
RD
440
441
c32bde28
RD
442SWIGSTATICINLINE(bool)
443SWIG_As_bool(PyObject* obj)
d55e5bfc 444{
c32bde28
RD
445 bool v;
446 if (!SWIG_AsVal_bool(obj, &v)) {
447 /*
448 this is needed to make valgrind/purify happier. the other
449 solution is throw an exception, but since this code should work
450 with plain C ....
451 */
452 memset((void*)&v, 0, sizeof(bool));
d55e5bfc 453 }
c32bde28
RD
454 return v;
455}
456
457
458SWIGSTATICINLINE(int)
459SWIG_Check_bool(PyObject* obj)
460{
461 return SWIG_AsVal_bool(obj, (bool*)0);
d55e5bfc
RD
462}
463
464
c32bde28
RD
465// See my_fragments.i
466SWIGSTATICINLINE(int)
467SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
d55e5bfc 468{
c32bde28
RD
469 long v = 0;
470 if (SWIG_AsVal_long(obj, &v) && v < 0) {
471 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
d55e5bfc
RD
472 return 0;
473 }
c32bde28
RD
474 else if (val)
475 *val = (unsigned long)v;
476 return 1;
d55e5bfc
RD
477}
478
479
c32bde28
RD
480SWIGSTATICINLINE(int)
481 SWIG_CheckUnsignedLongInRange(unsigned long value,
482 unsigned long max_value,
483 const char *errmsg)
d55e5bfc 484{
c32bde28
RD
485 if (value > max_value) {
486 if (errmsg) {
487 PyErr_Format(PyExc_OverflowError,
488 "value %ld is greater than '%s' minimum %ld",
489 value, errmsg, max_value);
d55e5bfc 490 }
c32bde28 491 return 0;
d55e5bfc 492 }
c32bde28
RD
493 return 1;
494 }
d55e5bfc
RD
495
496
c32bde28
RD
497SWIGSTATICINLINE(int)
498 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
d55e5bfc 499{
c32bde28
RD
500 const char* errmsg = val ? "unsigned char" : 0;
501 unsigned long v;
502 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
503 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
504 if (val) *val = swig_numeric_cast(v, unsigned char);
505 return 1;
506 } else {
507 return 0;
508 }
509 } else {
510 PyErr_Clear();
511 }
512 if (val) {
513 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
514 }
515 return 0;
d55e5bfc
RD
516}
517
518
c32bde28
RD
519SWIGSTATICINLINE(unsigned char)
520SWIG_As_unsigned_SS_char(PyObject* obj)
d55e5bfc 521{
c32bde28
RD
522 unsigned char v;
523 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
524 /*
525 this is needed to make valgrind/purify happier. the other
526 solution is throw an exception, but since this code should work
527 with plain C ....
528 */
529 memset((void*)&v, 0, sizeof(unsigned char));
d55e5bfc 530 }
c32bde28 531 return v;
d55e5bfc
RD
532}
533
c32bde28 534
d55e5bfc 535SWIGSTATICINLINE(int)
c32bde28 536SWIG_Check_unsigned_SS_char(PyObject* obj)
d55e5bfc 537{
c32bde28
RD
538 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
539}
540
541
542SWIGSTATICINLINE(unsigned long)
543SWIG_As_unsigned_SS_long(PyObject* obj)
544{
545 unsigned long v;
546 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
547 /*
548 this is needed to make valgrind/purify happier. the other
549 solution is throw an exception, but since this code should work
550 with plain C ....
551 */
552 memset((void*)&v, 0, sizeof(unsigned long));
d55e5bfc 553 }
c32bde28
RD
554 return v;
555}
556
557
558SWIGSTATICINLINE(int)
559SWIG_Check_unsigned_SS_long(PyObject* obj)
560{
561 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
d55e5bfc
RD
562}
563
564PyObject *wxColour_Get(wxColour *self){
565 PyObject* rv = PyTuple_New(3);
566 int red = -1;
567 int green = -1;
568 int blue = -1;
569 if (self->Ok()) {
570 red = self->Red();
571 green = self->Green();
572 blue = self->Blue();
573 }
574 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
575 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
576 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
577 return rv;
578 }
579unsigned long wxColour_GetRGB(wxColour *self){
580 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
581 }
582
583SWIGSTATICINLINE(PyObject* )
c32bde28 584 SWIG_From_unsigned_SS_long(unsigned long value)
d55e5bfc
RD
585{
586 return (value > LONG_MAX) ?
587 PyLong_FromUnsignedLong(value)
c32bde28 588 : PyInt_FromLong(swig_numeric_cast(value,long));
d55e5bfc
RD
589}
590
591
c32bde28
RD
592SWIGSTATICINLINE(int)
593SWIG_As_int(PyObject* obj)
d55e5bfc 594{
c32bde28
RD
595 int v;
596 if (!SWIG_AsVal_int(obj, &v)) {
597 /*
598 this is needed to make valgrind/purify happier. the other
599 solution is throw an exception, but since this code should work
600 with plain C ....
601 */
602 memset((void*)&v, 0, sizeof(int));
d55e5bfc 603 }
c32bde28 604 return v;
d55e5bfc
RD
605}
606
c32bde28 607
d55e5bfc 608SWIGSTATICINLINE(int)
c32bde28 609SWIG_Check_int(PyObject* obj)
d55e5bfc 610{
c32bde28 611 return SWIG_AsVal_int(obj, (int*)0);
d55e5bfc
RD
612}
613
614
c32bde28 615 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
d55e5bfc
RD
616 PyObject* o2;
617 PyObject* o3;
c32bde28 618
d55e5bfc
RD
619 if (!target) {
620 target = o;
621 } else if (target == Py_None) {
622 Py_DECREF(Py_None);
623 target = o;
624 } else {
c32bde28
RD
625 o2 = target;
626 target = PyTuple_New(1);
627 PyTuple_SetItem(target, 0, o2);
628
d55e5bfc
RD
629 o3 = PyTuple_New(1);
630 PyTuple_SetItem(o3, 0, o);
631
632 o2 = target;
633 target = PySequence_Concat(o2, o3);
634 Py_DECREF(o2);
635 Py_DECREF(o3);
636 }
637 return target;
638}
639
c32bde28 640
d55e5bfc
RD
641PyObject *wxPen_GetDashes(wxPen *self){
642 wxDash* dashes;
643 int count = self->GetDashes(&dashes);
644 bool blocked = wxPyBeginBlockThreads();
645 PyObject* retval = PyList_New(0);
a07a67e6
RD
646 for (int x=0; x<count; x++) {
647 PyObject* pyint = PyInt_FromLong(dashes[x]);
648 PyList_Append(retval, pyint);
649 Py_DECREF(pyint);
650 }
d55e5bfc
RD
651 wxPyEndBlockThreads(blocked);
652 return retval;
653 }
c24da6d6
RD
654void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
655 bool blocked = wxPyBeginBlockThreads();
656 int size = PyList_Size(pyDashes);
657 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
658
659 // black magic warning! The array of wxDashes needs to exist as
660 // long as the pen does because wxPen does not copy the array. So
661 // stick a copy in a Python string object and attach it to _self,
662 // and then call SetDashes with a pointer to that array. Then
663 // when the Python pen object is destroyed the array will be
664 // cleaned up too.
665 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
666 PyObject_SetAttrString(_self, "_dashes", strDashes);
667
668 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
669 delete [] dashes;
670 Py_DECREF(strDashes);
671 wxPyEndBlockThreads(blocked);
672 }
d55e5bfc
RD
673bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
674bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
675
d55e5bfc
RD
676#include <wx/image.h>
677
678 static char** ConvertListOfStrings(PyObject* listOfStrings) {
679 char** cArray = NULL;
680 int count;
681
682 if (!PyList_Check(listOfStrings)) {
683 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
684 return NULL;
685 }
686 count = PyList_Size(listOfStrings);
687 cArray = new char*[count];
688
689 for(int x=0; x<count; x++) {
690 // TODO: Need some validation and error checking here
691 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
692 }
693 return cArray;
694 }
695
696
697wxBitmap *new_wxBitmap(PyObject *listOfStrings){
698 char** cArray = NULL;
699 wxBitmap* bmp;
700
701 cArray = ConvertListOfStrings(listOfStrings);
702 if (! cArray)
703 return NULL;
704 bmp = new wxBitmap(cArray);
705 delete [] cArray;
706 return bmp;
707 }
708wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
709 char* buf;
710 int length;
711 PyString_AsStringAndSize(bits, &buf, &length);
712 return new wxBitmap(buf, width, height, depth);
713 }
d55e5bfc 714
c32bde28
RD
715SWIGSTATICINLINE(long)
716SWIG_As_long(PyObject* obj)
d55e5bfc 717{
c32bde28
RD
718 long v;
719 if (!SWIG_AsVal_long(obj, &v)) {
720 /*
721 this is needed to make valgrind/purify happier. the other
722 solution is throw an exception, but since this code should work
723 with plain C ....
724 */
725 memset((void*)&v, 0, sizeof(long));
d55e5bfc 726 }
c32bde28
RD
727 return v;
728}
729
730
731SWIGSTATICINLINE(int)
732SWIG_Check_long(PyObject* obj)
733{
734 return SWIG_AsVal_long(obj, (long*)0);
d55e5bfc
RD
735}
736
737void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
738wxSize wxBitmap_GetSize(wxBitmap *self){
739 wxSize size(self->GetWidth(), self->GetHeight());
740 return size;
741 }
742void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
743 wxMask *mask = new wxMask(*self, colour);
744 self->SetMask(mask);
745 }
746void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
747 self->SetWidth(size.x);
748 self->SetHeight(size.y);
749 }
750bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
751bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
752wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
753 if ( !colour.Ok() )
754 return new wxMask(bitmap, *wxBLACK);
755 else
756 return new wxMask(bitmap, colour);
757 }
758
759#include <wx/iconbndl.h>
760
761wxIcon *new_wxIcon(wxBitmap const &bmp){
762 wxIcon* icon = new wxIcon();
763 icon->CopyFromBitmap(bmp);
764 return icon;
765 }
766wxIcon *new_wxIcon(PyObject *listOfStrings){
767 char** cArray = NULL;
768 wxIcon* icon;
769
770 cArray = ConvertListOfStrings(listOfStrings);
771 if (! cArray)
772 return NULL;
773 icon = new wxIcon(cArray);
774 delete [] cArray;
775 return icon;
776 }
777void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
778wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
779
780 return new wxIconLocation(*filename, num);
781
782
783
784 }
785void wxIconLocation_SetIndex(wxIconLocation *self,int num){
786
787 self->SetIndex(num);
788
789
790
791 }
792int wxIconLocation_GetIndex(wxIconLocation *self){
793
794 return self->GetIndex();
795
796
797
798 }
799wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
800#ifdef __WXGTK__
801 wxCHECK_MSG(False, NULL,
802 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
803#else
804 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
805#endif
806 }
807void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
808
809
810void wxRegionIterator_Next(wxRegionIterator *self){
811 (*self) ++;
812 }
813bool wxRegionIterator___nonzero__(wxRegionIterator *self){
814 return self->operator bool();
815 }
816
817#include <wx/fontutil.h>
818#include <wx/fontmap.h>
819#include <wx/fontenum.h>
820
821wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
822 return self->ToString();
823 }
824
825 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
826 { wxPyRaiseNotImplemented(); return NULL; }
827
828 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
829 { wxPyRaiseNotImplemented(); return False; }
830
831PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
832 wxFontEncoding alt_enc;
833 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
834 return PyInt_FromLong(alt_enc);
835 else {
836 Py_INCREF(Py_None);
837 return Py_None;
838 }
839 }
840wxFont *new_wxFont(wxString const &info){
841 wxNativeFontInfo nfi;
842 nfi.FromString(info);
843 return new wxFont(nfi);
844 }
845wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
846 return wxFont::New(pointSize, family, flags, face, encoding);
847 }
848bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
849bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
850
851class wxPyFontEnumerator : public wxFontEnumerator {
852public:
853 wxPyFontEnumerator() {}
854 ~wxPyFontEnumerator() {}
855
856 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
857 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
858
859 PYPRIVATE;
860};
861
862IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
863IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
864
865
866PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
867 wxArrayString* arr = self->GetEncodings();
b0f7404b
RD
868 if (arr)
869 return wxArrayString2PyList_helper(*arr);
870 else
871 return PyList_New(0);
d55e5bfc
RD
872 }
873PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
874 wxArrayString* arr = self->GetFacenames();
b0f7404b
RD
875 if (arr)
876 return wxArrayString2PyList_helper(*arr);
877 else
878 return PyList_New(0);
d55e5bfc
RD
879 }
880
881
79fccf9d
RD
882wxLocale *new_wxLocale(int language,int flags){
883 if (language == -1)
884 return new wxLocale();
885 else
886 return new wxLocale(language, flags);
887 }
d55e5bfc
RD
888
889#include "wx/wxPython/pydrawxxx.h"
890
c24da6d6 891wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d55e5bfc
RD
892 wxColour col;
893 self->GetPixel(x, y, &col);
894 return col;
895 }
c24da6d6 896wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d55e5bfc
RD
897 wxColour col;
898 self->GetPixel(pt, &col);
899 return col;
900 }
901
c32bde28
RD
902// See my_fragments.i
903SWIGSTATICINLINE(int)
904SWIG_AsVal_double(PyObject *obj, double* val)
d55e5bfc 905{
c32bde28
RD
906 if (PyNumber_Check(obj)) {
907 if (val) *val = PyFloat_AsDouble(obj);
908 return 1;
909 }
d55e5bfc
RD
910 else {
911 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
912 obj->ob_type->tp_name);
913 PyErr_SetObject(PyExc_TypeError, errmsg);
914 Py_DECREF(errmsg);
d55e5bfc 915 }
c32bde28 916 return 0;
d55e5bfc
RD
917}
918
919
c32bde28
RD
920SWIGSTATICINLINE(double)
921SWIG_As_double(PyObject* obj)
d55e5bfc 922{
c32bde28
RD
923 double v;
924 if (!SWIG_AsVal_double(obj, &v)) {
925 /*
926 this is needed to make valgrind/purify happier. the other
927 solution is throw an exception, but since this code should work
928 with plain C ....
929 */
930 memset((void*)&v, 0, sizeof(double));
d55e5bfc 931 }
c32bde28
RD
932 return v;
933}
934
935
936SWIGSTATICINLINE(int)
937SWIG_Check_double(PyObject* obj)
938{
939 return SWIG_AsVal_double(obj, (double*)0);
d55e5bfc
RD
940}
941
942wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
943 wxRect rv;
944 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
945 return rv;
946 }
c32bde28 947
d55e5bfc
RD
948wxRect wxDC_GetClippingRect(wxDC *self){
949 wxRect rect;
950 self->GetClippingBox(rect);
951 return rect;
952 }
953wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
954 wxArrayInt widths;
955 self->GetPartialTextExtents(text, widths);
956 return widths;
957 }
c32bde28 958
c24da6d6
RD
959void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
960 self->SetLogicalOrigin(point.x, point.y);
961 }
962void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
963 self->SetDeviceOrigin(point.x, point.y);
964 }
965void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
966 self->CalcBoundingBox(point.x, point.y);
967 }
d55e5bfc
RD
968PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
969 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
970 }
971PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
972 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
973 }
974PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
975 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
976 }
977PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
978 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
979 }
980PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
981 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
982 }
983PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
984 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
985 }
986
987static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
988 *x1 = dc->MinX();
989 *y1 = dc->MinY();
990 *x2 = dc->MaxX();
991 *y2 = dc->MaxY();
992}
993
994
995#include <wx/dcbuffer.h>
996
997
998#include <wx/dcps.h>
999
1000
1001#include <wx/metafile.h>
1002
1003
1004
1005void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1006 self->AddColour(name, wxColour(red, green, blue));
1007 }
1008
1009#include <wx/effects.h>
1010
1011#ifdef __cplusplus
1012extern "C" {
1013#endif
c32bde28 1014static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1015 PyObject *resultobj;
1016 wxGDIObject *result;
1017 char *kwnames[] = {
1018 NULL
1019 };
1020
1021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1022 {
0439c23b 1023 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1024 PyThreadState* __tstate = wxPyBeginAllowThreads();
1025 result = (wxGDIObject *)new wxGDIObject();
1026
1027 wxPyEndAllowThreads(__tstate);
110da5b0 1028 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1029 }
1030 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1031 return resultobj;
1032 fail:
1033 return NULL;
1034}
1035
1036
c32bde28 1037static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1038 PyObject *resultobj;
1039 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1040 PyObject * obj0 = 0 ;
1041 char *kwnames[] = {
1042 (char *) "self", NULL
1043 };
1044
1045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1048 {
1049 PyThreadState* __tstate = wxPyBeginAllowThreads();
1050 delete arg1;
1051
1052 wxPyEndAllowThreads(__tstate);
1053 if (PyErr_Occurred()) SWIG_fail;
1054 }
1055 Py_INCREF(Py_None); resultobj = Py_None;
1056 return resultobj;
1057 fail:
1058 return NULL;
1059}
1060
1061
c32bde28 1062static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1063 PyObject *resultobj;
1064 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1065 bool result;
1066 PyObject * obj0 = 0 ;
1067 char *kwnames[] = {
1068 (char *) "self", NULL
1069 };
1070
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1074 {
1075 PyThreadState* __tstate = wxPyBeginAllowThreads();
1076 result = (bool)(arg1)->GetVisible();
1077
1078 wxPyEndAllowThreads(__tstate);
1079 if (PyErr_Occurred()) SWIG_fail;
1080 }
1081 {
1082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1083 }
1084 return resultobj;
1085 fail:
1086 return NULL;
1087}
1088
1089
c32bde28 1090static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1091 PyObject *resultobj;
1092 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1093 bool arg2 ;
1094 PyObject * obj0 = 0 ;
1095 PyObject * obj1 = 0 ;
1096 char *kwnames[] = {
1097 (char *) "self",(char *) "visible", NULL
1098 };
1099
1100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1103 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
1104 if (PyErr_Occurred()) SWIG_fail;
1105 {
1106 PyThreadState* __tstate = wxPyBeginAllowThreads();
1107 (arg1)->SetVisible(arg2);
1108
1109 wxPyEndAllowThreads(__tstate);
1110 if (PyErr_Occurred()) SWIG_fail;
1111 }
1112 Py_INCREF(Py_None); resultobj = Py_None;
1113 return resultobj;
1114 fail:
1115 return NULL;
1116}
1117
1118
c32bde28 1119static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1120 PyObject *resultobj;
1121 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1122 bool result;
1123 PyObject * obj0 = 0 ;
1124 char *kwnames[] = {
1125 (char *) "self", NULL
1126 };
1127
1128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 result = (bool)(arg1)->IsNull();
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 {
1139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1140 }
1141 return resultobj;
1142 fail:
1143 return NULL;
1144}
1145
1146
c32bde28 1147static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1148 PyObject *obj;
1149 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1150 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1151 Py_INCREF(obj);
1152 return Py_BuildValue((char *)"");
1153}
c32bde28 1154static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 1155 PyObject *resultobj;
79fccf9d
RD
1156 byte arg1 = (byte) 0 ;
1157 byte arg2 = (byte) 0 ;
1158 byte arg3 = (byte) 0 ;
d55e5bfc
RD
1159 wxColour *result;
1160 PyObject * obj0 = 0 ;
1161 PyObject * obj1 = 0 ;
1162 PyObject * obj2 = 0 ;
1163 char *kwnames[] = {
1164 (char *) "red",(char *) "green",(char *) "blue", NULL
1165 };
1166
1167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1168 if (obj0) {
c32bde28 1169 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
d55e5bfc
RD
1170 if (PyErr_Occurred()) SWIG_fail;
1171 }
1172 if (obj1) {
c32bde28 1173 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc
RD
1174 if (PyErr_Occurred()) SWIG_fail;
1175 }
1176 if (obj2) {
c32bde28 1177 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc
RD
1178 if (PyErr_Occurred()) SWIG_fail;
1179 }
1180 {
1181 PyThreadState* __tstate = wxPyBeginAllowThreads();
1182 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1183
1184 wxPyEndAllowThreads(__tstate);
1185 if (PyErr_Occurred()) SWIG_fail;
1186 }
1187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1188 return resultobj;
1189 fail:
1190 return NULL;
1191}
1192
1193
c32bde28 1194static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1195 PyObject *resultobj;
1196 wxString *arg1 = 0 ;
1197 wxColour *result;
1198 bool temp1 = False ;
1199 PyObject * obj0 = 0 ;
1200 char *kwnames[] = {
1201 (char *) "colorName", NULL
1202 };
1203
1204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1205 {
1206 arg1 = wxString_in_helper(obj0);
1207 if (arg1 == NULL) SWIG_fail;
1208 temp1 = True;
1209 }
1210 {
bf26d883 1211 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1212 PyThreadState* __tstate = wxPyBeginAllowThreads();
1213 result = (wxColour *)new wxColour((wxString const &)*arg1);
1214
1215 wxPyEndAllowThreads(__tstate);
1216 if (PyErr_Occurred()) SWIG_fail;
1217 }
1218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1219 {
1220 if (temp1)
1221 delete arg1;
1222 }
1223 return resultobj;
1224 fail:
1225 {
1226 if (temp1)
1227 delete arg1;
1228 }
1229 return NULL;
1230}
1231
1232
c32bde28 1233static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1234 PyObject *resultobj;
1235 unsigned long arg1 ;
1236 wxColour *result;
1237 PyObject * obj0 = 0 ;
1238 char *kwnames[] = {
1239 (char *) "colRGB", NULL
1240 };
1241
1242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
c32bde28 1243 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
1244 if (PyErr_Occurred()) SWIG_fail;
1245 {
1246 PyThreadState* __tstate = wxPyBeginAllowThreads();
1247 result = (wxColour *)new wxColour(arg1);
1248
1249 wxPyEndAllowThreads(__tstate);
1250 if (PyErr_Occurred()) SWIG_fail;
1251 }
1252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1253 return resultobj;
1254 fail:
1255 return NULL;
1256}
1257
1258
c32bde28 1259static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1260 PyObject *resultobj;
1261 wxColour *arg1 = (wxColour *) 0 ;
1262 PyObject * obj0 = 0 ;
1263 char *kwnames[] = {
1264 (char *) "self", NULL
1265 };
1266
1267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1270 {
1271 PyThreadState* __tstate = wxPyBeginAllowThreads();
1272 delete arg1;
1273
1274 wxPyEndAllowThreads(__tstate);
1275 if (PyErr_Occurred()) SWIG_fail;
1276 }
1277 Py_INCREF(Py_None); resultobj = Py_None;
1278 return resultobj;
1279 fail:
1280 return NULL;
1281}
1282
1283
c32bde28 1284static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1285 PyObject *resultobj;
1286 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d 1287 byte result;
d55e5bfc
RD
1288 PyObject * obj0 = 0 ;
1289 char *kwnames[] = {
1290 (char *) "self", NULL
1291 };
1292
1293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1296 {
1297 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 1298 result = (byte)(arg1)->Red();
d55e5bfc
RD
1299
1300 wxPyEndAllowThreads(__tstate);
1301 if (PyErr_Occurred()) SWIG_fail;
1302 }
c32bde28 1303 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1304 return resultobj;
1305 fail:
1306 return NULL;
1307}
1308
1309
c32bde28 1310static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1311 PyObject *resultobj;
1312 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d 1313 byte result;
d55e5bfc
RD
1314 PyObject * obj0 = 0 ;
1315 char *kwnames[] = {
1316 (char *) "self", NULL
1317 };
1318
1319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1322 {
1323 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 1324 result = (byte)(arg1)->Green();
d55e5bfc
RD
1325
1326 wxPyEndAllowThreads(__tstate);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 }
c32bde28 1329 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1330 return resultobj;
1331 fail:
1332 return NULL;
1333}
1334
1335
c32bde28 1336static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1337 PyObject *resultobj;
1338 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d 1339 byte result;
d55e5bfc
RD
1340 PyObject * obj0 = 0 ;
1341 char *kwnames[] = {
1342 (char *) "self", NULL
1343 };
1344
1345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1348 {
1349 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 1350 result = (byte)(arg1)->Blue();
d55e5bfc
RD
1351
1352 wxPyEndAllowThreads(__tstate);
1353 if (PyErr_Occurred()) SWIG_fail;
1354 }
c32bde28 1355 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1356 return resultobj;
1357 fail:
1358 return NULL;
1359}
1360
1361
c32bde28 1362static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1363 PyObject *resultobj;
1364 wxColour *arg1 = (wxColour *) 0 ;
1365 bool result;
1366 PyObject * obj0 = 0 ;
1367 char *kwnames[] = {
1368 (char *) "self", NULL
1369 };
1370
1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1374 {
1375 PyThreadState* __tstate = wxPyBeginAllowThreads();
1376 result = (bool)(arg1)->Ok();
1377
1378 wxPyEndAllowThreads(__tstate);
1379 if (PyErr_Occurred()) SWIG_fail;
1380 }
1381 {
1382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1383 }
1384 return resultobj;
1385 fail:
1386 return NULL;
1387}
1388
1389
c32bde28 1390static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1391 PyObject *resultobj;
1392 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d
RD
1393 byte arg2 ;
1394 byte arg3 ;
1395 byte arg4 ;
d55e5bfc
RD
1396 PyObject * obj0 = 0 ;
1397 PyObject * obj1 = 0 ;
1398 PyObject * obj2 = 0 ;
1399 PyObject * obj3 = 0 ;
1400 char *kwnames[] = {
1401 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1402 };
1403
1404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1407 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 1408 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1409 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 1410 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1411 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
1412 if (PyErr_Occurred()) SWIG_fail;
1413 {
1414 PyThreadState* __tstate = wxPyBeginAllowThreads();
1415 (arg1)->Set(arg2,arg3,arg4);
1416
1417 wxPyEndAllowThreads(__tstate);
1418 if (PyErr_Occurred()) SWIG_fail;
1419 }
1420 Py_INCREF(Py_None); resultobj = Py_None;
1421 return resultobj;
1422 fail:
1423 return NULL;
1424}
1425
1426
c32bde28 1427static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1428 PyObject *resultobj;
1429 wxColour *arg1 = (wxColour *) 0 ;
1430 unsigned long arg2 ;
1431 PyObject * obj0 = 0 ;
1432 PyObject * obj1 = 0 ;
1433 char *kwnames[] = {
1434 (char *) "self",(char *) "colRGB", NULL
1435 };
1436
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1440 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
1441 if (PyErr_Occurred()) SWIG_fail;
1442 {
1443 PyThreadState* __tstate = wxPyBeginAllowThreads();
1444 (arg1)->Set(arg2);
1445
1446 wxPyEndAllowThreads(__tstate);
1447 if (PyErr_Occurred()) SWIG_fail;
1448 }
1449 Py_INCREF(Py_None); resultobj = Py_None;
1450 return resultobj;
1451 fail:
1452 return NULL;
1453}
1454
1455
c32bde28 1456static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1457 PyObject *resultobj;
1458 wxColour *arg1 = (wxColour *) 0 ;
1459 wxString *arg2 = 0 ;
1460 bool temp2 = False ;
1461 PyObject * obj0 = 0 ;
1462 PyObject * obj1 = 0 ;
1463 char *kwnames[] = {
1464 (char *) "self",(char *) "colourName", NULL
1465 };
1466
1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1470 {
1471 arg2 = wxString_in_helper(obj1);
1472 if (arg2 == NULL) SWIG_fail;
1473 temp2 = True;
1474 }
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 (arg1)->InitFromName((wxString const &)*arg2);
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 Py_INCREF(Py_None); resultobj = Py_None;
1483 {
1484 if (temp2)
1485 delete arg2;
1486 }
1487 return resultobj;
1488 fail:
1489 {
1490 if (temp2)
1491 delete arg2;
1492 }
1493 return NULL;
1494}
1495
1496
c32bde28 1497static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1498 PyObject *resultobj;
1499 wxColour *arg1 = (wxColour *) 0 ;
1500 long result;
1501 PyObject * obj0 = 0 ;
1502 char *kwnames[] = {
1503 (char *) "self", NULL
1504 };
1505
1506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1509 {
1510 PyThreadState* __tstate = wxPyBeginAllowThreads();
1511 result = (long)((wxColour const *)arg1)->GetPixel();
1512
1513 wxPyEndAllowThreads(__tstate);
1514 if (PyErr_Occurred()) SWIG_fail;
1515 }
c32bde28 1516 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
1517 return resultobj;
1518 fail:
1519 return NULL;
1520}
1521
1522
c32bde28 1523static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1524 PyObject *resultobj;
1525 wxColour *arg1 = (wxColour *) 0 ;
1526 wxColour *arg2 = 0 ;
1527 bool result;
1528 wxColour temp2 ;
1529 PyObject * obj0 = 0 ;
1530 PyObject * obj1 = 0 ;
1531 char *kwnames[] = {
1532 (char *) "self",(char *) "colour", NULL
1533 };
1534
1535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1538 {
1539 arg2 = &temp2;
1540 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1541 }
1542 {
1543 PyThreadState* __tstate = wxPyBeginAllowThreads();
1544 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1545
1546 wxPyEndAllowThreads(__tstate);
1547 if (PyErr_Occurred()) SWIG_fail;
1548 }
1549 {
1550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1551 }
1552 return resultobj;
1553 fail:
1554 return NULL;
1555}
1556
1557
c32bde28 1558static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1559 PyObject *resultobj;
1560 wxColour *arg1 = (wxColour *) 0 ;
1561 wxColour *arg2 = 0 ;
1562 bool result;
1563 wxColour temp2 ;
1564 PyObject * obj0 = 0 ;
1565 PyObject * obj1 = 0 ;
1566 char *kwnames[] = {
1567 (char *) "self",(char *) "colour", NULL
1568 };
1569
1570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1573 {
1574 arg2 = &temp2;
1575 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1576 }
1577 {
1578 PyThreadState* __tstate = wxPyBeginAllowThreads();
1579 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1580
1581 wxPyEndAllowThreads(__tstate);
1582 if (PyErr_Occurred()) SWIG_fail;
1583 }
1584 {
1585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1586 }
1587 return resultobj;
1588 fail:
1589 return NULL;
1590}
1591
1592
c32bde28 1593static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1594 PyObject *resultobj;
1595 wxColour *arg1 = (wxColour *) 0 ;
1596 PyObject *result;
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 {
1606 PyThreadState* __tstate = wxPyBeginAllowThreads();
1607 result = (PyObject *)wxColour_Get(arg1);
1608
1609 wxPyEndAllowThreads(__tstate);
1610 if (PyErr_Occurred()) SWIG_fail;
1611 }
1612 resultobj = result;
1613 return resultobj;
1614 fail:
1615 return NULL;
1616}
1617
1618
c32bde28 1619static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1620 PyObject *resultobj;
1621 wxColour *arg1 = (wxColour *) 0 ;
1622 unsigned long result;
1623 PyObject * obj0 = 0 ;
1624 char *kwnames[] = {
1625 (char *) "self", NULL
1626 };
1627
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1631 {
1632 PyThreadState* __tstate = wxPyBeginAllowThreads();
1633 result = (unsigned long)wxColour_GetRGB(arg1);
1634
1635 wxPyEndAllowThreads(__tstate);
1636 if (PyErr_Occurred()) SWIG_fail;
1637 }
c32bde28 1638 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
1639 return resultobj;
1640 fail:
1641 return NULL;
1642}
1643
1644
c32bde28 1645static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1646 PyObject *obj;
1647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1648 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1649 Py_INCREF(obj);
1650 return Py_BuildValue((char *)"");
1651}
c32bde28 1652static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1653 PyObject *resultobj;
1654 int arg1 ;
1655 unsigned char *arg2 = (unsigned char *) 0 ;
1656 unsigned char *arg3 = (unsigned char *) 0 ;
1657 unsigned char *arg4 = (unsigned char *) 0 ;
1658 wxPalette *result;
1659 PyObject * obj0 = 0 ;
1660 PyObject * obj1 = 0 ;
1661 PyObject * obj2 = 0 ;
1662 PyObject * obj3 = 0 ;
1663 char *kwnames[] = {
1664 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1665 };
1666
1667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c32bde28 1668 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1669 if (PyErr_Occurred()) SWIG_fail;
1670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1672 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1674 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1676 {
0439c23b 1677 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1678 PyThreadState* __tstate = wxPyBeginAllowThreads();
1679 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1680
1681 wxPyEndAllowThreads(__tstate);
110da5b0 1682 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1683 }
1684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1685 return resultobj;
1686 fail:
1687 return NULL;
1688}
1689
1690
c32bde28 1691static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1692 PyObject *resultobj;
1693 wxPalette *arg1 = (wxPalette *) 0 ;
1694 PyObject * obj0 = 0 ;
1695 char *kwnames[] = {
1696 (char *) "self", NULL
1697 };
1698
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1702 {
1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
1704 delete arg1;
1705
1706 wxPyEndAllowThreads(__tstate);
1707 if (PyErr_Occurred()) SWIG_fail;
1708 }
1709 Py_INCREF(Py_None); resultobj = Py_None;
1710 return resultobj;
1711 fail:
1712 return NULL;
1713}
1714
1715
c32bde28 1716static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1717 PyObject *resultobj;
1718 wxPalette *arg1 = (wxPalette *) 0 ;
1719 byte arg2 ;
1720 byte arg3 ;
1721 byte arg4 ;
1722 int result;
1723 PyObject * obj0 = 0 ;
1724 PyObject * obj1 = 0 ;
1725 PyObject * obj2 = 0 ;
1726 PyObject * obj3 = 0 ;
1727 char *kwnames[] = {
1728 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1729 };
1730
1731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1734 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 1735 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1736 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 1737 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1738 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
1739 if (PyErr_Occurred()) SWIG_fail;
1740 {
1741 PyThreadState* __tstate = wxPyBeginAllowThreads();
1742 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1743
1744 wxPyEndAllowThreads(__tstate);
1745 if (PyErr_Occurred()) SWIG_fail;
1746 }
c32bde28 1747 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1748 return resultobj;
1749 fail:
1750 return NULL;
1751}
1752
1753
c32bde28 1754static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1755 PyObject *resultobj;
1756 wxPalette *arg1 = (wxPalette *) 0 ;
1757 int arg2 ;
1758 byte *arg3 = (byte *) 0 ;
1759 byte *arg4 = (byte *) 0 ;
1760 byte *arg5 = (byte *) 0 ;
1761 bool result;
1762 byte temp3 ;
c32bde28 1763 int res3 = 0 ;
d55e5bfc 1764 byte temp4 ;
c32bde28 1765 int res4 = 0 ;
d55e5bfc 1766 byte temp5 ;
c32bde28 1767 int res5 = 0 ;
d55e5bfc
RD
1768 PyObject * obj0 = 0 ;
1769 PyObject * obj1 = 0 ;
1770 char *kwnames[] = {
1771 (char *) "self",(char *) "pixel", NULL
1772 };
1773
c32bde28
RD
1774 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1775 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1776 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1780 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
1781 if (PyErr_Occurred()) SWIG_fail;
1782 {
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1785
1786 wxPyEndAllowThreads(__tstate);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 }
1789 {
1790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1791 }
c32bde28
RD
1792 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1793 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1794 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1795 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1796 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1797 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
d55e5bfc
RD
1798 return resultobj;
1799 fail:
1800 return NULL;
1801}
1802
1803
c32bde28 1804static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1805 PyObject *resultobj;
1806 wxPalette *arg1 = (wxPalette *) 0 ;
1807 bool result;
1808 PyObject * obj0 = 0 ;
1809 char *kwnames[] = {
1810 (char *) "self", NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (bool)(arg1)->Ok();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 {
1824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1825 }
1826 return resultobj;
1827 fail:
1828 return NULL;
1829}
1830
1831
c32bde28 1832static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1833 PyObject *obj;
1834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1835 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1836 Py_INCREF(obj);
1837 return Py_BuildValue((char *)"");
1838}
c32bde28 1839static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1840 PyObject *resultobj;
1841 wxColour *arg1 = 0 ;
1842 int arg2 = (int) 1 ;
1843 int arg3 = (int) wxSOLID ;
1844 wxPen *result;
1845 wxColour temp1 ;
1846 PyObject * obj0 = 0 ;
1847 PyObject * obj1 = 0 ;
1848 PyObject * obj2 = 0 ;
1849 char *kwnames[] = {
1850 (char *) "colour",(char *) "width",(char *) "style", NULL
1851 };
1852
1853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1854 {
1855 arg1 = &temp1;
1856 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1857 }
1858 if (obj1) {
c32bde28 1859 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
1860 if (PyErr_Occurred()) SWIG_fail;
1861 }
1862 if (obj2) {
c32bde28 1863 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
1864 if (PyErr_Occurred()) SWIG_fail;
1865 }
1866 {
0439c23b 1867 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1870
1871 wxPyEndAllowThreads(__tstate);
110da5b0 1872 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1873 }
1874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1875 return resultobj;
1876 fail:
1877 return NULL;
1878}
1879
1880
c32bde28 1881static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1882 PyObject *resultobj;
1883 wxPen *arg1 = (wxPen *) 0 ;
1884 PyObject * obj0 = 0 ;
1885 char *kwnames[] = {
1886 (char *) "self", NULL
1887 };
1888
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1892 {
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 delete arg1;
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) SWIG_fail;
1898 }
1899 Py_INCREF(Py_None); resultobj = Py_None;
1900 return resultobj;
1901 fail:
1902 return NULL;
1903}
1904
1905
c32bde28 1906static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1907 PyObject *resultobj;
1908 wxPen *arg1 = (wxPen *) 0 ;
1909 int result;
1910 PyObject * obj0 = 0 ;
1911 char *kwnames[] = {
1912 (char *) "self", NULL
1913 };
1914
1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 result = (int)(arg1)->GetCap();
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
c32bde28 1925 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1926 return resultobj;
1927 fail:
1928 return NULL;
1929}
1930
1931
c32bde28 1932static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1933 PyObject *resultobj;
1934 wxPen *arg1 = (wxPen *) 0 ;
1935 wxColour result;
1936 PyObject * obj0 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 result = (arg1)->GetColour();
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 }
1951 {
1952 wxColour * resultptr;
1953 resultptr = new wxColour((wxColour &) result);
1954 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1955 }
1956 return resultobj;
1957 fail:
1958 return NULL;
1959}
1960
1961
c32bde28 1962static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1963 PyObject *resultobj;
1964 wxPen *arg1 = (wxPen *) 0 ;
1965 int result;
1966 PyObject * obj0 = 0 ;
1967 char *kwnames[] = {
1968 (char *) "self", NULL
1969 };
1970
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 result = (int)(arg1)->GetJoin();
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
c32bde28 1981 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1982 return resultobj;
1983 fail:
1984 return NULL;
1985}
1986
1987
c32bde28 1988static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1989 PyObject *resultobj;
1990 wxPen *arg1 = (wxPen *) 0 ;
1991 int result;
1992 PyObject * obj0 = 0 ;
1993 char *kwnames[] = {
1994 (char *) "self", NULL
1995 };
1996
1997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2000 {
2001 PyThreadState* __tstate = wxPyBeginAllowThreads();
2002 result = (int)(arg1)->GetStyle();
2003
2004 wxPyEndAllowThreads(__tstate);
2005 if (PyErr_Occurred()) SWIG_fail;
2006 }
c32bde28 2007 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2008 return resultobj;
2009 fail:
2010 return NULL;
2011}
2012
2013
c32bde28 2014static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2015 PyObject *resultobj;
2016 wxPen *arg1 = (wxPen *) 0 ;
2017 int result;
2018 PyObject * obj0 = 0 ;
2019 char *kwnames[] = {
2020 (char *) "self", NULL
2021 };
2022
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2026 {
2027 PyThreadState* __tstate = wxPyBeginAllowThreads();
2028 result = (int)(arg1)->GetWidth();
2029
2030 wxPyEndAllowThreads(__tstate);
2031 if (PyErr_Occurred()) SWIG_fail;
2032 }
c32bde28 2033 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2034 return resultobj;
2035 fail:
2036 return NULL;
2037}
2038
2039
c32bde28 2040static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2041 PyObject *resultobj;
2042 wxPen *arg1 = (wxPen *) 0 ;
2043 bool result;
2044 PyObject * obj0 = 0 ;
2045 char *kwnames[] = {
2046 (char *) "self", NULL
2047 };
2048
2049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2052 {
2053 PyThreadState* __tstate = wxPyBeginAllowThreads();
2054 result = (bool)(arg1)->Ok();
2055
2056 wxPyEndAllowThreads(__tstate);
2057 if (PyErr_Occurred()) SWIG_fail;
2058 }
2059 {
2060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2061 }
2062 return resultobj;
2063 fail:
2064 return NULL;
2065}
2066
2067
c32bde28 2068static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2069 PyObject *resultobj;
2070 wxPen *arg1 = (wxPen *) 0 ;
2071 int arg2 ;
2072 PyObject * obj0 = 0 ;
2073 PyObject * obj1 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self",(char *) "cap_style", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2081 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2082 if (PyErr_Occurred()) SWIG_fail;
2083 {
2084 PyThreadState* __tstate = wxPyBeginAllowThreads();
2085 (arg1)->SetCap(arg2);
2086
2087 wxPyEndAllowThreads(__tstate);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 }
2090 Py_INCREF(Py_None); resultobj = Py_None;
2091 return resultobj;
2092 fail:
2093 return NULL;
2094}
2095
2096
c32bde28 2097static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2098 PyObject *resultobj;
2099 wxPen *arg1 = (wxPen *) 0 ;
2100 wxColour *arg2 = 0 ;
2101 wxColour temp2 ;
2102 PyObject * obj0 = 0 ;
2103 PyObject * obj1 = 0 ;
2104 char *kwnames[] = {
2105 (char *) "self",(char *) "colour", NULL
2106 };
2107
2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2111 {
2112 arg2 = &temp2;
2113 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2114 }
2115 {
2116 PyThreadState* __tstate = wxPyBeginAllowThreads();
2117 (arg1)->SetColour(*arg2);
2118
2119 wxPyEndAllowThreads(__tstate);
2120 if (PyErr_Occurred()) SWIG_fail;
2121 }
2122 Py_INCREF(Py_None); resultobj = Py_None;
2123 return resultobj;
2124 fail:
2125 return NULL;
2126}
2127
2128
c32bde28 2129static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2130 PyObject *resultobj;
2131 wxPen *arg1 = (wxPen *) 0 ;
2132 int arg2 ;
2133 PyObject * obj0 = 0 ;
2134 PyObject * obj1 = 0 ;
2135 char *kwnames[] = {
2136 (char *) "self",(char *) "join_style", NULL
2137 };
2138
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2142 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2143 if (PyErr_Occurred()) SWIG_fail;
2144 {
2145 PyThreadState* __tstate = wxPyBeginAllowThreads();
2146 (arg1)->SetJoin(arg2);
2147
2148 wxPyEndAllowThreads(__tstate);
2149 if (PyErr_Occurred()) SWIG_fail;
2150 }
2151 Py_INCREF(Py_None); resultobj = Py_None;
2152 return resultobj;
2153 fail:
2154 return NULL;
2155}
2156
2157
c32bde28 2158static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2159 PyObject *resultobj;
2160 wxPen *arg1 = (wxPen *) 0 ;
2161 int arg2 ;
2162 PyObject * obj0 = 0 ;
2163 PyObject * obj1 = 0 ;
2164 char *kwnames[] = {
2165 (char *) "self",(char *) "style", NULL
2166 };
2167
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2171 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2172 if (PyErr_Occurred()) SWIG_fail;
2173 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 (arg1)->SetStyle(arg2);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) SWIG_fail;
2179 }
2180 Py_INCREF(Py_None); resultobj = Py_None;
2181 return resultobj;
2182 fail:
2183 return NULL;
2184}
2185
2186
c32bde28 2187static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2188 PyObject *resultobj;
2189 wxPen *arg1 = (wxPen *) 0 ;
2190 int arg2 ;
2191 PyObject * obj0 = 0 ;
2192 PyObject * obj1 = 0 ;
2193 char *kwnames[] = {
2194 (char *) "self",(char *) "width", NULL
2195 };
2196
2197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2200 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2201 if (PyErr_Occurred()) SWIG_fail;
2202 {
2203 PyThreadState* __tstate = wxPyBeginAllowThreads();
2204 (arg1)->SetWidth(arg2);
2205
2206 wxPyEndAllowThreads(__tstate);
2207 if (PyErr_Occurred()) SWIG_fail;
2208 }
2209 Py_INCREF(Py_None); resultobj = Py_None;
2210 return resultobj;
2211 fail:
2212 return NULL;
2213}
2214
2215
c32bde28 2216static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2217 PyObject *resultobj;
2218 wxPen *arg1 = (wxPen *) 0 ;
2219 int arg2 ;
2220 wxDash *arg3 = (wxDash *) 0 ;
2221 PyObject * obj0 = 0 ;
2222 PyObject * obj1 = 0 ;
2223 char *kwnames[] = {
2224 (char *) "self",(char *) "dashes", NULL
2225 };
2226
2227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2230 {
2231 arg2 = PyList_Size(obj1);
2232 arg3 = (wxDash*)byte_LIST_helper(obj1);
2233 if (arg3 == NULL) SWIG_fail;
2234 }
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
2237 (arg1)->SetDashes(arg2,arg3);
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 Py_INCREF(Py_None); resultobj = Py_None;
2243 {
2244 if (arg3) delete [] arg3;
2245 }
2246 return resultobj;
2247 fail:
2248 {
2249 if (arg3) delete [] arg3;
2250 }
2251 return NULL;
2252}
2253
2254
c32bde28 2255static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2256 PyObject *resultobj;
2257 wxPen *arg1 = (wxPen *) 0 ;
2258 PyObject *result;
2259 PyObject * obj0 = 0 ;
2260 char *kwnames[] = {
2261 (char *) "self", NULL
2262 };
2263
2264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2267 {
2268 PyThreadState* __tstate = wxPyBeginAllowThreads();
2269 result = (PyObject *)wxPen_GetDashes(arg1);
2270
2271 wxPyEndAllowThreads(__tstate);
2272 if (PyErr_Occurred()) SWIG_fail;
2273 }
2274 resultobj = result;
2275 return resultobj;
2276 fail:
2277 return NULL;
2278}
2279
2280
c32bde28 2281static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2282 PyObject *resultobj;
2283 wxPen *arg1 = (wxPen *) 0 ;
c24da6d6
RD
2284 PyObject *arg2 = (PyObject *) 0 ;
2285 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
2286 PyObject * obj0 = 0 ;
2287 PyObject * obj1 = 0 ;
c24da6d6 2288 PyObject * obj2 = 0 ;
d55e5bfc 2289 char *kwnames[] = {
c24da6d6 2290 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d55e5bfc
RD
2291 };
2292
c24da6d6 2293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
2294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c24da6d6
RD
2296 arg2 = obj1;
2297 arg3 = obj2;
d55e5bfc
RD
2298 {
2299 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 2300 wxPen__SetDashes(arg1,arg2,arg3);
d55e5bfc
RD
2301
2302 wxPyEndAllowThreads(__tstate);
2303 if (PyErr_Occurred()) SWIG_fail;
2304 }
c24da6d6 2305 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2306 return resultobj;
2307 fail:
2308 return NULL;
2309}
2310
2311
c32bde28 2312static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2313 PyObject *resultobj;
2314 wxPen *arg1 = (wxPen *) 0 ;
2315 int result;
2316 PyObject * obj0 = 0 ;
2317 char *kwnames[] = {
2318 (char *) "self", NULL
2319 };
2320
2321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 result = (int)((wxPen const *)arg1)->GetDashCount();
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
c32bde28 2331 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2332 return resultobj;
2333 fail:
2334 return NULL;
2335}
2336
2337
c32bde28 2338static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2339 PyObject *resultobj;
2340 wxPen *arg1 = (wxPen *) 0 ;
2341 wxBitmap *result;
2342 PyObject * obj0 = 0 ;
2343 char *kwnames[] = {
2344 (char *) "self", NULL
2345 };
2346
2347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 result = (wxBitmap *)(arg1)->GetStipple();
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2358 return resultobj;
2359 fail:
2360 return NULL;
2361}
2362
2363
c32bde28 2364static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2365 PyObject *resultobj;
2366 wxPen *arg1 = (wxPen *) 0 ;
2367 wxBitmap *arg2 = 0 ;
2368 PyObject * obj0 = 0 ;
2369 PyObject * obj1 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "self",(char *) "stipple", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2378 SWIG_POINTER_EXCEPTION | 0)) == -1)
2379 SWIG_fail;
2380 if (arg2 == NULL) {
2381 PyErr_SetString(PyExc_TypeError,"null reference");
2382 SWIG_fail;
2383 }
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 (arg1)->SetStipple(*arg2);
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) SWIG_fail;
2390 }
2391 Py_INCREF(Py_None); resultobj = Py_None;
2392 return resultobj;
2393 fail:
2394 return NULL;
2395}
2396
2397
c32bde28 2398static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2399 PyObject *resultobj;
c24da6d6
RD
2400 wxPen *arg1 = (wxPen *) 0 ;
2401 wxPen *arg2 = (wxPen *) 0 ;
2402 bool result;
d55e5bfc
RD
2403 PyObject * obj0 = 0 ;
2404 PyObject * obj1 = 0 ;
d55e5bfc 2405 char *kwnames[] = {
c24da6d6 2406 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2407 };
2408
c24da6d6
RD
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2414 {
2415 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 2416 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2417
2418 wxPyEndAllowThreads(__tstate);
2419 if (PyErr_Occurred()) SWIG_fail;
2420 }
d55e5bfc 2421 {
c24da6d6 2422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc 2423 }
d55e5bfc
RD
2424 return resultobj;
2425 fail:
2426 return NULL;
2427}
2428
2429
c32bde28 2430static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2431 PyObject *resultobj;
c24da6d6
RD
2432 wxPen *arg1 = (wxPen *) 0 ;
2433 wxPen *arg2 = (wxPen *) 0 ;
2434 bool result;
d55e5bfc
RD
2435 PyObject * obj0 = 0 ;
2436 PyObject * obj1 = 0 ;
2437 char *kwnames[] = {
c24da6d6 2438 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2439 };
2440
c24da6d6
RD
2441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
d55e5bfc 2445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2446 {
2447 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 2448 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2449
2450 wxPyEndAllowThreads(__tstate);
2451 if (PyErr_Occurred()) SWIG_fail;
2452 }
d55e5bfc 2453 {
c24da6d6 2454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
2455 }
2456 return resultobj;
2457 fail:
d55e5bfc
RD
2458 return NULL;
2459}
2460
2461
c32bde28 2462static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2463 PyObject *obj;
2464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
c24da6d6 2465 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d55e5bfc
RD
2466 Py_INCREF(obj);
2467 return Py_BuildValue((char *)"");
2468}
c32bde28 2469static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2470 PyObject *resultobj;
2471 wxColour *arg1 = 0 ;
2472 int arg2 = (int) wxSOLID ;
2473 wxBrush *result;
2474 wxColour temp1 ;
2475 PyObject * obj0 = 0 ;
2476 PyObject * obj1 = 0 ;
2477 char *kwnames[] = {
2478 (char *) "colour",(char *) "style", NULL
2479 };
2480
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2482 {
2483 arg1 = &temp1;
2484 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2485 }
2486 if (obj1) {
c32bde28 2487 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 {
0439c23b 2491 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2494
2495 wxPyEndAllowThreads(__tstate);
110da5b0 2496 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2497 }
2498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2499 return resultobj;
2500 fail:
2501 return NULL;
2502}
2503
2504
c32bde28 2505static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2506 PyObject *resultobj;
2507 wxBrush *arg1 = (wxBrush *) 0 ;
2508 PyObject * obj0 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 delete arg1;
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 Py_INCREF(Py_None); resultobj = Py_None;
2524 return resultobj;
2525 fail:
2526 return NULL;
2527}
2528
2529
c32bde28 2530static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2531 PyObject *resultobj;
2532 wxBrush *arg1 = (wxBrush *) 0 ;
2533 wxColour *arg2 = 0 ;
2534 wxColour temp2 ;
2535 PyObject * obj0 = 0 ;
2536 PyObject * obj1 = 0 ;
2537 char *kwnames[] = {
2538 (char *) "self",(char *) "col", NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2544 {
2545 arg2 = &temp2;
2546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2547 }
2548 {
2549 PyThreadState* __tstate = wxPyBeginAllowThreads();
2550 (arg1)->SetColour((wxColour const &)*arg2);
2551
2552 wxPyEndAllowThreads(__tstate);
2553 if (PyErr_Occurred()) SWIG_fail;
2554 }
2555 Py_INCREF(Py_None); resultobj = Py_None;
2556 return resultobj;
2557 fail:
2558 return NULL;
2559}
2560
2561
c32bde28 2562static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2563 PyObject *resultobj;
2564 wxBrush *arg1 = (wxBrush *) 0 ;
2565 int arg2 ;
2566 PyObject * obj0 = 0 ;
2567 PyObject * obj1 = 0 ;
2568 char *kwnames[] = {
2569 (char *) "self",(char *) "style", NULL
2570 };
2571
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2575 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2576 if (PyErr_Occurred()) SWIG_fail;
2577 {
2578 PyThreadState* __tstate = wxPyBeginAllowThreads();
2579 (arg1)->SetStyle(arg2);
2580
2581 wxPyEndAllowThreads(__tstate);
2582 if (PyErr_Occurred()) SWIG_fail;
2583 }
2584 Py_INCREF(Py_None); resultobj = Py_None;
2585 return resultobj;
2586 fail:
2587 return NULL;
2588}
2589
2590
c32bde28 2591static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2592 PyObject *resultobj;
2593 wxBrush *arg1 = (wxBrush *) 0 ;
2594 wxBitmap *arg2 = 0 ;
2595 PyObject * obj0 = 0 ;
2596 PyObject * obj1 = 0 ;
2597 char *kwnames[] = {
2598 (char *) "self",(char *) "stipple", NULL
2599 };
2600
2601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2605 SWIG_POINTER_EXCEPTION | 0)) == -1)
2606 SWIG_fail;
2607 if (arg2 == NULL) {
2608 PyErr_SetString(PyExc_TypeError,"null reference");
2609 SWIG_fail;
2610 }
2611 {
2612 PyThreadState* __tstate = wxPyBeginAllowThreads();
2613 (arg1)->SetStipple((wxBitmap const &)*arg2);
2614
2615 wxPyEndAllowThreads(__tstate);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 Py_INCREF(Py_None); resultobj = Py_None;
2619 return resultobj;
2620 fail:
2621 return NULL;
2622}
2623
2624
c32bde28 2625static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2626 PyObject *resultobj;
2627 wxBrush *arg1 = (wxBrush *) 0 ;
2628 wxColour result;
2629 PyObject * obj0 = 0 ;
2630 char *kwnames[] = {
2631 (char *) "self", NULL
2632 };
2633
2634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 result = ((wxBrush const *)arg1)->GetColour();
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 {
2645 wxColour * resultptr;
2646 resultptr = new wxColour((wxColour &) result);
2647 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2648 }
2649 return resultobj;
2650 fail:
2651 return NULL;
2652}
2653
2654
c32bde28 2655static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2656 PyObject *resultobj;
2657 wxBrush *arg1 = (wxBrush *) 0 ;
2658 int result;
2659 PyObject * obj0 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (int)((wxBrush const *)arg1)->GetStyle();
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
c32bde28 2674 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2675 return resultobj;
2676 fail:
2677 return NULL;
2678}
2679
2680
c32bde28 2681static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2682 PyObject *resultobj;
2683 wxBrush *arg1 = (wxBrush *) 0 ;
2684 wxBitmap *result;
2685 PyObject * obj0 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "self", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2701 return resultobj;
2702 fail:
2703 return NULL;
2704}
2705
2706
c32bde28 2707static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2708 PyObject *resultobj;
2709 wxBrush *arg1 = (wxBrush *) 0 ;
2710 bool result;
2711 PyObject * obj0 = 0 ;
2712 char *kwnames[] = {
2713 (char *) "self", NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 result = (bool)(arg1)->Ok();
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 {
2727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2728 }
2729 return resultobj;
2730 fail:
2731 return NULL;
2732}
2733
2734
c32bde28 2735static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2736 PyObject *obj;
2737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2738 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2739 Py_INCREF(obj);
2740 return Py_BuildValue((char *)"");
2741}
c32bde28 2742static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2743 PyObject *resultobj;
2744 wxString *arg1 = 0 ;
2745 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2746 wxBitmap *result;
2747 bool temp1 = False ;
2748 PyObject * obj0 = 0 ;
2749 PyObject * obj1 = 0 ;
2750 char *kwnames[] = {
2751 (char *) "name",(char *) "type", NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2755 {
2756 arg1 = wxString_in_helper(obj0);
2757 if (arg1 == NULL) SWIG_fail;
2758 temp1 = True;
2759 }
2760 if (obj1) {
c32bde28 2761 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 {
0439c23b 2765 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2766 PyThreadState* __tstate = wxPyBeginAllowThreads();
2767 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2768
2769 wxPyEndAllowThreads(__tstate);
110da5b0 2770 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2771 }
2772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2773 {
2774 if (temp1)
2775 delete arg1;
2776 }
2777 return resultobj;
2778 fail:
2779 {
2780 if (temp1)
2781 delete arg1;
2782 }
2783 return NULL;
2784}
2785
2786
c32bde28 2787static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2788 PyObject *resultobj;
2789 wxBitmap *arg1 = (wxBitmap *) 0 ;
2790 PyObject * obj0 = 0 ;
2791 char *kwnames[] = {
2792 (char *) "self", NULL
2793 };
2794
2795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2798 {
2799 PyThreadState* __tstate = wxPyBeginAllowThreads();
2800 delete arg1;
2801
2802 wxPyEndAllowThreads(__tstate);
2803 if (PyErr_Occurred()) SWIG_fail;
2804 }
2805 Py_INCREF(Py_None); resultobj = Py_None;
2806 return resultobj;
2807 fail:
2808 return NULL;
2809}
2810
2811
c32bde28 2812static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
2813 PyObject *resultobj;
2814 int arg1 ;
2815 int arg2 ;
2816 int arg3 = (int) -1 ;
2817 wxBitmap *result;
2818 PyObject * obj0 = 0 ;
2819 PyObject * obj1 = 0 ;
2820 PyObject * obj2 = 0 ;
2821 char *kwnames[] = {
2822 (char *) "width",(char *) "height",(char *) "depth", NULL
2823 };
2824
2825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
c32bde28 2826 arg1 = (int)SWIG_As_int(obj0);
c24da6d6 2827 if (PyErr_Occurred()) SWIG_fail;
c32bde28 2828 arg2 = (int)SWIG_As_int(obj1);
c24da6d6
RD
2829 if (PyErr_Occurred()) SWIG_fail;
2830 if (obj2) {
c32bde28 2831 arg3 = (int)SWIG_As_int(obj2);
c24da6d6
RD
2832 if (PyErr_Occurred()) SWIG_fail;
2833 }
2834 {
0439c23b 2835 if (!wxPyCheckForApp()) SWIG_fail;
c24da6d6
RD
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2838
2839 wxPyEndAllowThreads(__tstate);
110da5b0 2840 if (PyErr_Occurred()) SWIG_fail;
c24da6d6
RD
2841 }
2842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2843 return resultobj;
2844 fail:
2845 return NULL;
2846}
2847
2848
c32bde28 2849static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2850 PyObject *resultobj;
2851 wxIcon *arg1 = 0 ;
2852 wxBitmap *result;
2853 PyObject * obj0 = 0 ;
2854 char *kwnames[] = {
2855 (char *) "icon", NULL
2856 };
2857
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2860 SWIG_POINTER_EXCEPTION | 0)) == -1)
2861 SWIG_fail;
2862 if (arg1 == NULL) {
2863 PyErr_SetString(PyExc_TypeError,"null reference");
2864 SWIG_fail;
2865 }
2866 {
0439c23b 2867 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2868 PyThreadState* __tstate = wxPyBeginAllowThreads();
2869 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2870
2871 wxPyEndAllowThreads(__tstate);
110da5b0 2872 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2873 }
2874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2875 return resultobj;
2876 fail:
2877 return NULL;
2878}
2879
2880
c32bde28 2881static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2882 PyObject *resultobj;
2883 wxImage *arg1 = 0 ;
2884 int arg2 = (int) -1 ;
2885 wxBitmap *result;
2886 PyObject * obj0 = 0 ;
2887 PyObject * obj1 = 0 ;
2888 char *kwnames[] = {
2889 (char *) "image",(char *) "depth", NULL
2890 };
2891
2892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2894 SWIG_POINTER_EXCEPTION | 0)) == -1)
2895 SWIG_fail;
2896 if (arg1 == NULL) {
2897 PyErr_SetString(PyExc_TypeError,"null reference");
2898 SWIG_fail;
2899 }
2900 if (obj1) {
c32bde28 2901 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2902 if (PyErr_Occurred()) SWIG_fail;
2903 }
2904 {
0439c23b 2905 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2906 PyThreadState* __tstate = wxPyBeginAllowThreads();
2907 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2908
2909 wxPyEndAllowThreads(__tstate);
110da5b0 2910 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2911 }
2912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2913 return resultobj;
2914 fail:
2915 return NULL;
2916}
2917
2918
c32bde28 2919static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2920 PyObject *resultobj;
2921 PyObject *arg1 = (PyObject *) 0 ;
2922 wxBitmap *result;
2923 PyObject * obj0 = 0 ;
2924 char *kwnames[] = {
2925 (char *) "listOfStrings", NULL
2926 };
2927
2928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2929 arg1 = obj0;
2930 {
0439c23b 2931 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2932 PyThreadState* __tstate = wxPyBeginAllowThreads();
2933 result = (wxBitmap *)new_wxBitmap(arg1);
2934
2935 wxPyEndAllowThreads(__tstate);
110da5b0 2936 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2937 }
2938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2939 return resultobj;
2940 fail:
2941 return NULL;
2942}
2943
2944
c32bde28 2945static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2946 PyObject *resultobj;
2947 PyObject *arg1 = (PyObject *) 0 ;
2948 int arg2 ;
2949 int arg3 ;
2950 int arg4 = (int) 1 ;
2951 wxBitmap *result;
2952 PyObject * obj0 = 0 ;
2953 PyObject * obj1 = 0 ;
2954 PyObject * obj2 = 0 ;
2955 PyObject * obj3 = 0 ;
2956 char *kwnames[] = {
2957 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2958 };
2959
2960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2961 arg1 = obj0;
c32bde28 2962 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 2963 if (PyErr_Occurred()) SWIG_fail;
c32bde28 2964 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
2965 if (PyErr_Occurred()) SWIG_fail;
2966 if (obj3) {
c32bde28 2967 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 {
0439c23b 2971 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2972 PyThreadState* __tstate = wxPyBeginAllowThreads();
2973 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2974
2975 wxPyEndAllowThreads(__tstate);
110da5b0 2976 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2977 }
2978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2979 return resultobj;
2980 fail:
2981 return NULL;
2982}
2983
2984
c32bde28 2985static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2986 PyObject *resultobj;
c24da6d6
RD
2987 wxBitmap *arg1 = (wxBitmap *) 0 ;
2988 wxPalette *arg2 = 0 ;
d55e5bfc
RD
2989 PyObject * obj0 = 0 ;
2990 PyObject * obj1 = 0 ;
c24da6d6
RD
2991 char *kwnames[] = {
2992 (char *) "self",(char *) "palette", NULL
2993 };
d55e5bfc 2994
c24da6d6
RD
2995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2999 SWIG_POINTER_EXCEPTION | 0)) == -1)
3000 SWIG_fail;
3001 if (arg2 == NULL) {
3002 PyErr_SetString(PyExc_TypeError,"null reference");
3003 SWIG_fail;
d55e5bfc
RD
3004 }
3005 {
3006 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 3007 (arg1)->SetPalette(*arg2);
d55e5bfc
RD
3008
3009 wxPyEndAllowThreads(__tstate);
3010 if (PyErr_Occurred()) SWIG_fail;
3011 }
c24da6d6 3012 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3013 return resultobj;
3014 fail:
3015 return NULL;
3016}
3017
3018
c32bde28 3019static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3020 PyObject *resultobj;
c24da6d6
RD
3021 wxBitmap *arg1 = (wxBitmap *) 0 ;
3022 long result;
d55e5bfc 3023 PyObject * obj0 = 0 ;
c24da6d6
RD
3024 char *kwnames[] = {
3025 (char *) "self", NULL
3026 };
d55e5bfc 3027
c24da6d6
RD
3028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
3029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc 3031 {
c24da6d6
RD
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 result = (long)(arg1)->GetHandle();
3034
3035 wxPyEndAllowThreads(__tstate);
d55e5bfc
RD
3036 if (PyErr_Occurred()) SWIG_fail;
3037 }
c32bde28 3038 resultobj = SWIG_From_long((long)result);
c24da6d6
RD
3039 return resultobj;
3040 fail:
3041 return NULL;
3042}
3043
3044
c32bde28 3045static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
3046 PyObject *resultobj;
3047 wxBitmap *arg1 = (wxBitmap *) 0 ;
3048 long arg2 ;
3049 PyObject * obj0 = 0 ;
3050 PyObject * obj1 = 0 ;
3051 char *kwnames[] = {
3052 (char *) "self",(char *) "handle", NULL
3053 };
3054
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3058 arg2 = (long)SWIG_As_long(obj1);
c24da6d6 3059 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3060 {
3061 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 3062 wxBitmap_SetHandle(arg1,arg2);
d55e5bfc
RD
3063
3064 wxPyEndAllowThreads(__tstate);
3065 if (PyErr_Occurred()) SWIG_fail;
3066 }
c24da6d6 3067 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3068 return resultobj;
3069 fail:
3070 return NULL;
3071}
3072
3073
c32bde28 3074static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3075 PyObject *resultobj;
3076 wxBitmap *arg1 = (wxBitmap *) 0 ;
3077 bool result;
3078 PyObject * obj0 = 0 ;
3079 char *kwnames[] = {
3080 (char *) "self", NULL
3081 };
3082
3083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3086 {
3087 PyThreadState* __tstate = wxPyBeginAllowThreads();
3088 result = (bool)(arg1)->Ok();
3089
3090 wxPyEndAllowThreads(__tstate);
3091 if (PyErr_Occurred()) SWIG_fail;
3092 }
3093 {
3094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3095 }
3096 return resultobj;
3097 fail:
3098 return NULL;
3099}
3100
3101
c32bde28 3102static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3103 PyObject *resultobj;
3104 wxBitmap *arg1 = (wxBitmap *) 0 ;
3105 int result;
3106 PyObject * obj0 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "self", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = (int)(arg1)->GetWidth();
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
c32bde28 3121 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3122 return resultobj;
3123 fail:
3124 return NULL;
3125}
3126
3127
c32bde28 3128static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3129 PyObject *resultobj;
3130 wxBitmap *arg1 = (wxBitmap *) 0 ;
3131 int result;
3132 PyObject * obj0 = 0 ;
3133 char *kwnames[] = {
3134 (char *) "self", NULL
3135 };
3136
3137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3140 {
3141 PyThreadState* __tstate = wxPyBeginAllowThreads();
3142 result = (int)(arg1)->GetHeight();
3143
3144 wxPyEndAllowThreads(__tstate);
3145 if (PyErr_Occurred()) SWIG_fail;
3146 }
c32bde28 3147 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3148 return resultobj;
3149 fail:
3150 return NULL;
3151}
3152
3153
c32bde28 3154static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3155 PyObject *resultobj;
3156 wxBitmap *arg1 = (wxBitmap *) 0 ;
3157 int result;
3158 PyObject * obj0 = 0 ;
3159 char *kwnames[] = {
3160 (char *) "self", NULL
3161 };
3162
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 result = (int)(arg1)->GetDepth();
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
c32bde28 3173 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3174 return resultobj;
3175 fail:
3176 return NULL;
3177}
3178
3179
c32bde28 3180static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3181 PyObject *resultobj;
3182 wxBitmap *arg1 = (wxBitmap *) 0 ;
3183 wxSize result;
3184 PyObject * obj0 = 0 ;
3185 char *kwnames[] = {
3186 (char *) "self", NULL
3187 };
3188
3189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3192 {
3193 PyThreadState* __tstate = wxPyBeginAllowThreads();
3194 result = wxBitmap_GetSize(arg1);
3195
3196 wxPyEndAllowThreads(__tstate);
3197 if (PyErr_Occurred()) SWIG_fail;
3198 }
3199 {
3200 wxSize * resultptr;
3201 resultptr = new wxSize((wxSize &) result);
3202 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3203 }
3204 return resultobj;
3205 fail:
3206 return NULL;
3207}
3208
3209
c32bde28 3210static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3211 PyObject *resultobj;
3212 wxBitmap *arg1 = (wxBitmap *) 0 ;
3213 SwigValueWrapper< wxImage > result;
3214 PyObject * obj0 = 0 ;
3215 char *kwnames[] = {
3216 (char *) "self", NULL
3217 };
3218
3219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3222 {
3223 PyThreadState* __tstate = wxPyBeginAllowThreads();
3224 result = ((wxBitmap const *)arg1)->ConvertToImage();
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
3229 {
3230 wxImage * resultptr;
3231 resultptr = new wxImage((wxImage &) result);
3232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3233 }
3234 return resultobj;
3235 fail:
3236 return NULL;
3237}
3238
3239
c32bde28 3240static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3241 PyObject *resultobj;
3242 wxBitmap *arg1 = (wxBitmap *) 0 ;
3243 wxMask *result;
3244 PyObject * obj0 = 0 ;
3245 char *kwnames[] = {
3246 (char *) "self", NULL
3247 };
3248
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3252 {
3253 PyThreadState* __tstate = wxPyBeginAllowThreads();
3254 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3255
3256 wxPyEndAllowThreads(__tstate);
3257 if (PyErr_Occurred()) SWIG_fail;
3258 }
3259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3260 return resultobj;
3261 fail:
3262 return NULL;
3263}
3264
3265
c32bde28 3266static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3267 PyObject *resultobj;
3268 wxBitmap *arg1 = (wxBitmap *) 0 ;
3269 wxMask *arg2 = (wxMask *) 0 ;
3270 PyObject * obj0 = 0 ;
3271 PyObject * obj1 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "self",(char *) "mask", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3279 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 (arg1)->SetMask(arg2);
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 Py_INCREF(Py_None); resultobj = Py_None;
3289 return resultobj;
3290 fail:
3291 return NULL;
3292}
3293
3294
c32bde28 3295static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3296 PyObject *resultobj;
3297 wxBitmap *arg1 = (wxBitmap *) 0 ;
3298 wxColour *arg2 = 0 ;
3299 wxColour temp2 ;
3300 PyObject * obj0 = 0 ;
3301 PyObject * obj1 = 0 ;
3302 char *kwnames[] = {
3303 (char *) "self",(char *) "colour", NULL
3304 };
3305
3306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3309 {
3310 arg2 = &temp2;
3311 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3312 }
3313 {
3314 PyThreadState* __tstate = wxPyBeginAllowThreads();
3315 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3316
3317 wxPyEndAllowThreads(__tstate);
3318 if (PyErr_Occurred()) SWIG_fail;
3319 }
3320 Py_INCREF(Py_None); resultobj = Py_None;
3321 return resultobj;
3322 fail:
3323 return NULL;
3324}
3325
3326
c32bde28 3327static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3328 PyObject *resultobj;
3329 wxBitmap *arg1 = (wxBitmap *) 0 ;
3330 wxRect *arg2 = 0 ;
3331 SwigValueWrapper< wxBitmap > result;
3332 wxRect temp2 ;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self",(char *) "rect", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 {
3343 arg2 = &temp2;
3344 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3345 }
3346 {
3347 PyThreadState* __tstate = wxPyBeginAllowThreads();
3348 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3349
3350 wxPyEndAllowThreads(__tstate);
3351 if (PyErr_Occurred()) SWIG_fail;
3352 }
3353 {
3354 wxBitmap * resultptr;
3355 resultptr = new wxBitmap((wxBitmap &) result);
3356 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3357 }
3358 return resultobj;
3359 fail:
3360 return NULL;
3361}
3362
3363
c32bde28 3364static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3365 PyObject *resultobj;
3366 wxBitmap *arg1 = (wxBitmap *) 0 ;
3367 wxString *arg2 = 0 ;
3368 int arg3 ;
c24da6d6 3369 wxPalette *arg4 = (wxPalette *) NULL ;
d55e5bfc
RD
3370 bool result;
3371 bool temp2 = False ;
3372 PyObject * obj0 = 0 ;
3373 PyObject * obj1 = 0 ;
3374 PyObject * obj2 = 0 ;
3375 PyObject * obj3 = 0 ;
3376 char *kwnames[] = {
3377 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3378 };
3379
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3383 {
3384 arg2 = wxString_in_helper(obj1);
3385 if (arg2 == NULL) SWIG_fail;
3386 temp2 = True;
3387 }
c32bde28 3388 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3389 if (PyErr_Occurred()) SWIG_fail;
3390 if (obj3) {
3391 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3393 }
3394 {
3395 PyThreadState* __tstate = wxPyBeginAllowThreads();
3396 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3397
3398 wxPyEndAllowThreads(__tstate);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 }
3401 {
3402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3403 }
3404 {
3405 if (temp2)
3406 delete arg2;
3407 }
3408 return resultobj;
3409 fail:
3410 {
3411 if (temp2)
3412 delete arg2;
3413 }
3414 return NULL;
3415}
3416
3417
c32bde28 3418static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3419 PyObject *resultobj;
3420 wxBitmap *arg1 = (wxBitmap *) 0 ;
3421 wxString *arg2 = 0 ;
3422 int arg3 ;
3423 bool result;
3424 bool temp2 = False ;
3425 PyObject * obj0 = 0 ;
3426 PyObject * obj1 = 0 ;
3427 PyObject * obj2 = 0 ;
3428 char *kwnames[] = {
3429 (char *) "self",(char *) "name",(char *) "type", NULL
3430 };
3431
3432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3435 {
3436 arg2 = wxString_in_helper(obj1);
3437 if (arg2 == NULL) SWIG_fail;
3438 temp2 = True;
3439 }
c32bde28 3440 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3441 if (PyErr_Occurred()) SWIG_fail;
3442 {
3443 PyThreadState* __tstate = wxPyBeginAllowThreads();
3444 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3445
3446 wxPyEndAllowThreads(__tstate);
3447 if (PyErr_Occurred()) SWIG_fail;
3448 }
3449 {
3450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3451 }
3452 {
3453 if (temp2)
3454 delete arg2;
3455 }
3456 return resultobj;
3457 fail:
3458 {
3459 if (temp2)
3460 delete arg2;
3461 }
3462 return NULL;
3463}
3464
3465
c32bde28 3466static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3467 PyObject *resultobj;
3468 wxBitmap *arg1 = (wxBitmap *) 0 ;
3469 wxIcon *arg2 = 0 ;
3470 bool result;
3471 PyObject * obj0 = 0 ;
3472 PyObject * obj1 = 0 ;
3473 char *kwnames[] = {
3474 (char *) "self",(char *) "icon", NULL
3475 };
3476
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3481 SWIG_POINTER_EXCEPTION | 0)) == -1)
3482 SWIG_fail;
3483 if (arg2 == NULL) {
3484 PyErr_SetString(PyExc_TypeError,"null reference");
3485 SWIG_fail;
3486 }
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 {
3495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3496 }
3497 return resultobj;
3498 fail:
3499 return NULL;
3500}
3501
3502
c32bde28 3503static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3504 PyObject *resultobj;
3505 wxBitmap *arg1 = (wxBitmap *) 0 ;
3506 int arg2 ;
3507 PyObject * obj0 = 0 ;
3508 PyObject * obj1 = 0 ;
3509 char *kwnames[] = {
3510 (char *) "self",(char *) "height", NULL
3511 };
3512
3513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3516 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3517 if (PyErr_Occurred()) SWIG_fail;
3518 {
3519 PyThreadState* __tstate = wxPyBeginAllowThreads();
3520 (arg1)->SetHeight(arg2);
3521
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
3525 Py_INCREF(Py_None); resultobj = Py_None;
3526 return resultobj;
3527 fail:
3528 return NULL;
3529}
3530
3531
c32bde28 3532static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3533 PyObject *resultobj;
3534 wxBitmap *arg1 = (wxBitmap *) 0 ;
3535 int arg2 ;
3536 PyObject * obj0 = 0 ;
3537 PyObject * obj1 = 0 ;
3538 char *kwnames[] = {
3539 (char *) "self",(char *) "width", NULL
3540 };
3541
3542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3545 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3546 if (PyErr_Occurred()) SWIG_fail;
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 (arg1)->SetWidth(arg2);
3550
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 Py_INCREF(Py_None); resultobj = Py_None;
3555 return resultobj;
3556 fail:
3557 return NULL;
3558}
3559
3560
c32bde28 3561static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3562 PyObject *resultobj;
3563 wxBitmap *arg1 = (wxBitmap *) 0 ;
3564 int arg2 ;
3565 PyObject * obj0 = 0 ;
3566 PyObject * obj1 = 0 ;
3567 char *kwnames[] = {
3568 (char *) "self",(char *) "depth", NULL
3569 };
3570
3571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3574 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3575 if (PyErr_Occurred()) SWIG_fail;
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 (arg1)->SetDepth(arg2);
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 Py_INCREF(Py_None); resultobj = Py_None;
3584 return resultobj;
3585 fail:
3586 return NULL;
3587}
3588
3589
c32bde28 3590static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3591 PyObject *resultobj;
3592 wxBitmap *arg1 = (wxBitmap *) 0 ;
3593 wxSize *arg2 = 0 ;
3594 wxSize temp2 ;
3595 PyObject * obj0 = 0 ;
3596 PyObject * obj1 = 0 ;
3597 char *kwnames[] = {
3598 (char *) "self",(char *) "size", NULL
3599 };
3600
3601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3604 {
3605 arg2 = &temp2;
3606 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3607 }
3608 {
3609 PyThreadState* __tstate = wxPyBeginAllowThreads();
3610 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3611
3612 wxPyEndAllowThreads(__tstate);
3613 if (PyErr_Occurred()) SWIG_fail;
3614 }
3615 Py_INCREF(Py_None); resultobj = Py_None;
3616 return resultobj;
3617 fail:
3618 return NULL;
3619}
3620
3621
c32bde28 3622static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3623 PyObject *resultobj;
3624 wxBitmap *arg1 = (wxBitmap *) 0 ;
3625 wxCursor *arg2 = 0 ;
3626 bool result;
3627 PyObject * obj0 = 0 ;
3628 PyObject * obj1 = 0 ;
3629 char *kwnames[] = {
3630 (char *) "self",(char *) "cursor", NULL
3631 };
3632
3633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3636 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3637 SWIG_POINTER_EXCEPTION | 0)) == -1)
3638 SWIG_fail;
3639 if (arg2 == NULL) {
3640 PyErr_SetString(PyExc_TypeError,"null reference");
3641 SWIG_fail;
3642 }
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3646
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 return resultobj;
3654 fail:
3655 return NULL;
3656}
3657
3658
c32bde28 3659static PyObject *_wrap_Bitmap_GetQuality(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3660 PyObject *resultobj;
3661 wxBitmap *arg1 = (wxBitmap *) 0 ;
3662 int result;
3663 PyObject * obj0 = 0 ;
3664 char *kwnames[] = {
3665 (char *) "self", NULL
3666 };
3667
3668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 result = (int)(arg1)->GetQuality();
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
c32bde28 3678 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3679 return resultobj;
3680 fail:
3681 return NULL;
3682}
3683
3684
c32bde28 3685static PyObject *_wrap_Bitmap_SetQuality(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3686 PyObject *resultobj;
3687 wxBitmap *arg1 = (wxBitmap *) 0 ;
3688 int arg2 ;
3689 PyObject * obj0 = 0 ;
3690 PyObject * obj1 = 0 ;
3691 char *kwnames[] = {
3692 (char *) "self",(char *) "q", NULL
3693 };
3694
3695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3698 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3699 if (PyErr_Occurred()) SWIG_fail;
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 (arg1)->SetQuality(arg2);
3703
3704 wxPyEndAllowThreads(__tstate);
3705 if (PyErr_Occurred()) SWIG_fail;
3706 }
3707 Py_INCREF(Py_None); resultobj = Py_None;
3708 return resultobj;
3709 fail:
3710 return NULL;
3711}
3712
3713
c32bde28 3714static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3715 PyObject *resultobj;
3716 wxBitmap *arg1 = (wxBitmap *) 0 ;
3717 wxBitmap *arg2 = (wxBitmap *) 0 ;
3718 bool result;
3719 PyObject * obj0 = 0 ;
3720 PyObject * obj1 = 0 ;
3721 char *kwnames[] = {
3722 (char *) "self",(char *) "other", NULL
3723 };
3724
3725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3730 {
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 {
3738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3739 }
3740 return resultobj;
3741 fail:
3742 return NULL;
3743}
3744
3745
c32bde28 3746static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3747 PyObject *resultobj;
3748 wxBitmap *arg1 = (wxBitmap *) 0 ;
3749 wxBitmap *arg2 = (wxBitmap *) 0 ;
3750 bool result;
3751 PyObject * obj0 = 0 ;
3752 PyObject * obj1 = 0 ;
3753 char *kwnames[] = {
3754 (char *) "self",(char *) "other", NULL
3755 };
3756
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3762 {
3763 PyThreadState* __tstate = wxPyBeginAllowThreads();
3764 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3765
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 {
3770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3771 }
3772 return resultobj;
3773 fail:
3774 return NULL;
3775}
3776
3777
c32bde28 3778static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3779 PyObject *obj;
3780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3781 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3782 Py_INCREF(obj);
3783 return Py_BuildValue((char *)"");
3784}
c32bde28 3785static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3786 PyObject *resultobj;
3787 wxBitmap *arg1 = 0 ;
3788 wxColour const &arg2_defvalue = wxNullColour ;
3789 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3790 wxMask *result;
3791 wxColour temp2 ;
3792 PyObject * obj0 = 0 ;
3793 PyObject * obj1 = 0 ;
3794 char *kwnames[] = {
3795 (char *) "bitmap",(char *) "colour", NULL
3796 };
3797
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3800 SWIG_POINTER_EXCEPTION | 0)) == -1)
3801 SWIG_fail;
3802 if (arg1 == NULL) {
3803 PyErr_SetString(PyExc_TypeError,"null reference");
3804 SWIG_fail;
3805 }
3806 if (obj1) {
3807 {
3808 arg2 = &temp2;
3809 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3810 }
3811 }
3812 {
0439c23b 3813 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3814 PyThreadState* __tstate = wxPyBeginAllowThreads();
3815 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3816
3817 wxPyEndAllowThreads(__tstate);
110da5b0 3818 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3819 }
3820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3821 return resultobj;
3822 fail:
3823 return NULL;
3824}
3825
3826
c32bde28 3827static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3828 PyObject *obj;
3829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3830 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3831 Py_INCREF(obj);
3832 return Py_BuildValue((char *)"");
3833}
c32bde28 3834static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3835 PyObject *resultobj;
3836 wxString *arg1 = 0 ;
3837 int arg2 ;
3838 int arg3 = (int) -1 ;
3839 int arg4 = (int) -1 ;
3840 wxIcon *result;
3841 bool temp1 = False ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 PyObject * obj2 = 0 ;
3845 PyObject * obj3 = 0 ;
3846 char *kwnames[] = {
3847 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3848 };
3849
3850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3851 {
3852 arg1 = wxString_in_helper(obj0);
3853 if (arg1 == NULL) SWIG_fail;
3854 temp1 = True;
3855 }
c32bde28 3856 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3857 if (PyErr_Occurred()) SWIG_fail;
3858 if (obj2) {
c32bde28 3859 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3860 if (PyErr_Occurred()) SWIG_fail;
3861 }
3862 if (obj3) {
c32bde28 3863 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3864 if (PyErr_Occurred()) SWIG_fail;
3865 }
3866 {
0439c23b 3867 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3868 PyThreadState* __tstate = wxPyBeginAllowThreads();
3869 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3870
3871 wxPyEndAllowThreads(__tstate);
110da5b0 3872 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3873 }
3874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3875 {
3876 if (temp1)
3877 delete arg1;
3878 }
3879 return resultobj;
3880 fail:
3881 {
3882 if (temp1)
3883 delete arg1;
3884 }
3885 return NULL;
3886}
3887
3888
c32bde28 3889static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3890 PyObject *resultobj;
3891 wxIcon *arg1 = (wxIcon *) 0 ;
3892 PyObject * obj0 = 0 ;
3893 char *kwnames[] = {
3894 (char *) "self", NULL
3895 };
3896
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3900 {
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 delete arg1;
3903
3904 wxPyEndAllowThreads(__tstate);
3905 if (PyErr_Occurred()) SWIG_fail;
3906 }
3907 Py_INCREF(Py_None); resultobj = Py_None;
3908 return resultobj;
3909 fail:
3910 return NULL;
3911}
3912
3913
c32bde28 3914static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3915 PyObject *resultobj;
3916 wxIcon *result;
3917 char *kwnames[] = {
3918 NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3922 {
0439c23b 3923 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (wxIcon *)new wxIcon();
3926
3927 wxPyEndAllowThreads(__tstate);
110da5b0 3928 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3929 }
3930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3931 return resultobj;
3932 fail:
3933 return NULL;
3934}
3935
3936
c32bde28 3937static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3938 PyObject *resultobj;
3939 wxIconLocation *arg1 = 0 ;
3940 wxIcon *result;
3941 PyObject * obj0 = 0 ;
3942 char *kwnames[] = {
3943 (char *) "loc", NULL
3944 };
3945
3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3948 SWIG_POINTER_EXCEPTION | 0)) == -1)
3949 SWIG_fail;
3950 if (arg1 == NULL) {
3951 PyErr_SetString(PyExc_TypeError,"null reference");
3952 SWIG_fail;
3953 }
3954 {
0439c23b 3955 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3956 PyThreadState* __tstate = wxPyBeginAllowThreads();
3957 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3958
3959 wxPyEndAllowThreads(__tstate);
110da5b0 3960 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3961 }
3962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3963 return resultobj;
3964 fail:
3965 return NULL;
3966}
3967
3968
c32bde28 3969static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3970 PyObject *resultobj;
3971 wxBitmap *arg1 = 0 ;
3972 wxIcon *result;
3973 PyObject * obj0 = 0 ;
3974 char *kwnames[] = {
3975 (char *) "bmp", NULL
3976 };
3977
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3980 SWIG_POINTER_EXCEPTION | 0)) == -1)
3981 SWIG_fail;
3982 if (arg1 == NULL) {
3983 PyErr_SetString(PyExc_TypeError,"null reference");
3984 SWIG_fail;
3985 }
3986 {
0439c23b 3987 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3990
3991 wxPyEndAllowThreads(__tstate);
110da5b0 3992 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3993 }
3994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3995 return resultobj;
3996 fail:
3997 return NULL;
3998}
3999
4000
c32bde28 4001static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4002 PyObject *resultobj;
4003 PyObject *arg1 = (PyObject *) 0 ;
4004 wxIcon *result;
4005 PyObject * obj0 = 0 ;
4006 char *kwnames[] = {
4007 (char *) "listOfStrings", NULL
4008 };
4009
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
4011 arg1 = obj0;
4012 {
0439c23b 4013 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4014 PyThreadState* __tstate = wxPyBeginAllowThreads();
4015 result = (wxIcon *)new_wxIcon(arg1);
4016
4017 wxPyEndAllowThreads(__tstate);
110da5b0 4018 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4019 }
4020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4021 return resultobj;
4022 fail:
4023 return NULL;
4024}
4025
4026
c32bde28 4027static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4028 PyObject *resultobj;
4029 wxIcon *arg1 = (wxIcon *) 0 ;
4030 wxString *arg2 = 0 ;
4031 int arg3 ;
4032 bool result;
4033 bool temp2 = False ;
4034 PyObject * obj0 = 0 ;
4035 PyObject * obj1 = 0 ;
4036 PyObject * obj2 = 0 ;
4037 char *kwnames[] = {
4038 (char *) "self",(char *) "name",(char *) "type", NULL
4039 };
4040
4041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4044 {
4045 arg2 = wxString_in_helper(obj1);
4046 if (arg2 == NULL) SWIG_fail;
4047 temp2 = True;
4048 }
c32bde28 4049 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4050 if (PyErr_Occurred()) SWIG_fail;
4051 {
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
4054
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 {
4059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4060 }
4061 {
4062 if (temp2)
4063 delete arg2;
4064 }
4065 return resultobj;
4066 fail:
4067 {
4068 if (temp2)
4069 delete arg2;
4070 }
4071 return NULL;
4072}
4073
4074
c32bde28 4075static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4076 PyObject *resultobj;
4077 wxIcon *arg1 = (wxIcon *) 0 ;
4078 long result;
4079 PyObject * obj0 = 0 ;
4080 char *kwnames[] = {
4081 (char *) "self", NULL
4082 };
4083
4084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
4085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (long)(arg1)->GetHandle();
4090
4091 wxPyEndAllowThreads(__tstate);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
c32bde28 4094 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
4095 return resultobj;
4096 fail:
4097 return NULL;
4098}
4099
4100
c32bde28 4101static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4102 PyObject *resultobj;
4103 wxIcon *arg1 = (wxIcon *) 0 ;
4104 long arg2 ;
4105 PyObject * obj0 = 0 ;
4106 PyObject * obj1 = 0 ;
4107 char *kwnames[] = {
4108 (char *) "self",(char *) "handle", NULL
4109 };
4110
4111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4114 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4115 if (PyErr_Occurred()) SWIG_fail;
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
4118 wxIcon_SetHandle(arg1,arg2);
4119
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 Py_INCREF(Py_None); resultobj = Py_None;
4124 return resultobj;
4125 fail:
4126 return NULL;
4127}
4128
4129
c32bde28 4130static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4131 PyObject *resultobj;
4132 wxIcon *arg1 = (wxIcon *) 0 ;
4133 bool result;
4134 PyObject * obj0 = 0 ;
4135 char *kwnames[] = {
4136 (char *) "self", NULL
4137 };
4138
4139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = (bool)(arg1)->Ok();
4145
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 {
4150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4151 }
4152 return resultobj;
4153 fail:
4154 return NULL;
4155}
4156
4157
c32bde28 4158static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4159 PyObject *resultobj;
4160 wxIcon *arg1 = (wxIcon *) 0 ;
4161 int result;
4162 PyObject * obj0 = 0 ;
4163 char *kwnames[] = {
4164 (char *) "self", NULL
4165 };
4166
4167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4170 {
4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
4172 result = (int)(arg1)->GetWidth();
4173
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
c32bde28 4177 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4178 return resultobj;
4179 fail:
4180 return NULL;
4181}
4182
4183
c32bde28 4184static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4185 PyObject *resultobj;
4186 wxIcon *arg1 = (wxIcon *) 0 ;
4187 int result;
4188 PyObject * obj0 = 0 ;
4189 char *kwnames[] = {
4190 (char *) "self", NULL
4191 };
4192
4193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4196 {
4197 PyThreadState* __tstate = wxPyBeginAllowThreads();
4198 result = (int)(arg1)->GetHeight();
4199
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
c32bde28 4203 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4204 return resultobj;
4205 fail:
4206 return NULL;
4207}
4208
4209
c32bde28 4210static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4211 PyObject *resultobj;
4212 wxIcon *arg1 = (wxIcon *) 0 ;
4213 int result;
4214 PyObject * obj0 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (int)(arg1)->GetDepth();
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
c32bde28 4229 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4230 return resultobj;
4231 fail:
4232 return NULL;
4233}
4234
4235
c32bde28 4236static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4237 PyObject *resultobj;
4238 wxIcon *arg1 = (wxIcon *) 0 ;
4239 int arg2 ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "self",(char *) "w", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4249 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4250 if (PyErr_Occurred()) SWIG_fail;
4251 {
4252 PyThreadState* __tstate = wxPyBeginAllowThreads();
4253 (arg1)->SetWidth(arg2);
4254
4255 wxPyEndAllowThreads(__tstate);
4256 if (PyErr_Occurred()) SWIG_fail;
4257 }
4258 Py_INCREF(Py_None); resultobj = Py_None;
4259 return resultobj;
4260 fail:
4261 return NULL;
4262}
4263
4264
c32bde28 4265static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4266 PyObject *resultobj;
4267 wxIcon *arg1 = (wxIcon *) 0 ;
4268 int arg2 ;
4269 PyObject * obj0 = 0 ;
4270 PyObject * obj1 = 0 ;
4271 char *kwnames[] = {
4272 (char *) "self",(char *) "h", NULL
4273 };
4274
4275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4278 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4279 if (PyErr_Occurred()) SWIG_fail;
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 (arg1)->SetHeight(arg2);
4283
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 Py_INCREF(Py_None); resultobj = Py_None;
4288 return resultobj;
4289 fail:
4290 return NULL;
4291}
4292
4293
c32bde28 4294static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4295 PyObject *resultobj;
4296 wxIcon *arg1 = (wxIcon *) 0 ;
4297 int arg2 ;
4298 PyObject * obj0 = 0 ;
4299 PyObject * obj1 = 0 ;
4300 char *kwnames[] = {
4301 (char *) "self",(char *) "d", NULL
4302 };
4303
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4307 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4308 if (PyErr_Occurred()) SWIG_fail;
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 (arg1)->SetDepth(arg2);
4312
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 Py_INCREF(Py_None); resultobj = Py_None;
4317 return resultobj;
4318 fail:
4319 return NULL;
4320}
4321
4322
c32bde28 4323static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4324 PyObject *resultobj;
4325 wxIcon *arg1 = (wxIcon *) 0 ;
4326 wxSize *arg2 = 0 ;
4327 wxSize temp2 ;
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 char *kwnames[] = {
4331 (char *) "self",(char *) "size", NULL
4332 };
4333
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4337 {
4338 arg2 = &temp2;
4339 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4340 }
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 (arg1)->SetSize((wxSize const &)*arg2);
4344
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 Py_INCREF(Py_None); resultobj = Py_None;
4349 return resultobj;
4350 fail:
4351 return NULL;
4352}
4353
4354
c32bde28 4355static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4356 PyObject *resultobj;
4357 wxIcon *arg1 = (wxIcon *) 0 ;
4358 wxBitmap *arg2 = 0 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "self",(char *) "bmp", NULL
4363 };
4364
4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4369 SWIG_POINTER_EXCEPTION | 0)) == -1)
4370 SWIG_fail;
4371 if (arg2 == NULL) {
4372 PyErr_SetString(PyExc_TypeError,"null reference");
4373 SWIG_fail;
4374 }
4375 {
4376 PyThreadState* __tstate = wxPyBeginAllowThreads();
4377 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4378
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 Py_INCREF(Py_None); resultobj = Py_None;
4383 return resultobj;
4384 fail:
4385 return NULL;
4386}
4387
4388
c32bde28 4389static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4390 PyObject *obj;
4391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4392 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4393 Py_INCREF(obj);
4394 return Py_BuildValue((char *)"");
4395}
c32bde28 4396static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4397 PyObject *resultobj;
4398 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4399 int arg2 = (int) 0 ;
4400 wxIconLocation *result;
4401 bool temp1 = False ;
4402 PyObject * obj0 = 0 ;
4403 PyObject * obj1 = 0 ;
4404 char *kwnames[] = {
4405 (char *) "filename",(char *) "num", NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4409 if (obj0) {
4410 {
4411 arg1 = wxString_in_helper(obj0);
4412 if (arg1 == NULL) SWIG_fail;
4413 temp1 = True;
4414 }
4415 }
4416 if (obj1) {
c32bde28 4417 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4423
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4428 {
4429 if (temp1)
4430 delete arg1;
4431 }
4432 return resultobj;
4433 fail:
4434 {
4435 if (temp1)
4436 delete arg1;
4437 }
4438 return NULL;
4439}
4440
4441
c32bde28 4442static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4443 PyObject *resultobj;
4444 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4445 PyObject * obj0 = 0 ;
4446 char *kwnames[] = {
4447 (char *) "self", NULL
4448 };
4449
4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 delete arg1;
4456
4457 wxPyEndAllowThreads(__tstate);
4458 if (PyErr_Occurred()) SWIG_fail;
4459 }
4460 Py_INCREF(Py_None); resultobj = Py_None;
4461 return resultobj;
4462 fail:
4463 return NULL;
4464}
4465
4466
c32bde28 4467static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4468 PyObject *resultobj;
4469 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4470 bool result;
4471 PyObject * obj0 = 0 ;
4472 char *kwnames[] = {
4473 (char *) "self", NULL
4474 };
4475
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 {
4487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4488 }
4489 return resultobj;
4490 fail:
4491 return NULL;
4492}
4493
4494
c32bde28 4495static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4496 PyObject *resultobj;
4497 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4498 wxString *arg2 = 0 ;
4499 bool temp2 = False ;
4500 PyObject * obj0 = 0 ;
4501 PyObject * obj1 = 0 ;
4502 char *kwnames[] = {
4503 (char *) "self",(char *) "filename", NULL
4504 };
4505
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4509 {
4510 arg2 = wxString_in_helper(obj1);
4511 if (arg2 == NULL) SWIG_fail;
4512 temp2 = True;
4513 }
4514 {
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 (arg1)->SetFileName((wxString const &)*arg2);
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 Py_INCREF(Py_None); resultobj = Py_None;
4522 {
4523 if (temp2)
4524 delete arg2;
4525 }
4526 return resultobj;
4527 fail:
4528 {
4529 if (temp2)
4530 delete arg2;
4531 }
4532 return NULL;
4533}
4534
4535
c32bde28 4536static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4537 PyObject *resultobj;
4538 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4539 wxString *result;
4540 PyObject * obj0 = 0 ;
4541 char *kwnames[] = {
4542 (char *) "self", NULL
4543 };
4544
4545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 {
4551 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4552 result = (wxString *) &_result_ref;
4553 }
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 {
4559#if wxUSE_UNICODE
4560 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4561#else
4562 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4563#endif
4564 }
4565 return resultobj;
4566 fail:
4567 return NULL;
4568}
4569
4570
c32bde28 4571static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4572 PyObject *resultobj;
4573 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4574 int arg2 ;
4575 PyObject * obj0 = 0 ;
4576 PyObject * obj1 = 0 ;
4577 char *kwnames[] = {
4578 (char *) "self",(char *) "num", NULL
4579 };
4580
4581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4584 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4585 if (PyErr_Occurred()) SWIG_fail;
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 wxIconLocation_SetIndex(arg1,arg2);
4589
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 Py_INCREF(Py_None); resultobj = Py_None;
4594 return resultobj;
4595 fail:
4596 return NULL;
4597}
4598
4599
c32bde28 4600static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4601 PyObject *resultobj;
4602 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4603 int result;
4604 PyObject * obj0 = 0 ;
4605 char *kwnames[] = {
4606 (char *) "self", NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (int)wxIconLocation_GetIndex(arg1);
4615
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
c32bde28 4619 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4620 return resultobj;
4621 fail:
4622 return NULL;
4623}
4624
4625
c32bde28 4626static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4627 PyObject *obj;
4628 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4629 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4630 Py_INCREF(obj);
4631 return Py_BuildValue((char *)"");
4632}
c32bde28 4633static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4634 PyObject *resultobj;
4635 wxIconBundle *result;
4636 char *kwnames[] = {
4637 NULL
4638 };
4639
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4641 {
4642 PyThreadState* __tstate = wxPyBeginAllowThreads();
4643 result = (wxIconBundle *)new wxIconBundle();
4644
4645 wxPyEndAllowThreads(__tstate);
4646 if (PyErr_Occurred()) SWIG_fail;
4647 }
4648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4649 return resultobj;
4650 fail:
4651 return NULL;
4652}
4653
4654
c32bde28 4655static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4656 PyObject *resultobj;
4657 wxString *arg1 = 0 ;
4658 long arg2 ;
4659 wxIconBundle *result;
4660 bool temp1 = False ;
4661 PyObject * obj0 = 0 ;
4662 PyObject * obj1 = 0 ;
4663 char *kwnames[] = {
4664 (char *) "file",(char *) "type", NULL
4665 };
4666
4667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4668 {
4669 arg1 = wxString_in_helper(obj0);
4670 if (arg1 == NULL) SWIG_fail;
4671 temp1 = True;
4672 }
c32bde28 4673 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4674 if (PyErr_Occurred()) SWIG_fail;
4675 {
4676 PyThreadState* __tstate = wxPyBeginAllowThreads();
4677 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4678
4679 wxPyEndAllowThreads(__tstate);
4680 if (PyErr_Occurred()) SWIG_fail;
4681 }
4682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4683 {
4684 if (temp1)
4685 delete arg1;
4686 }
4687 return resultobj;
4688 fail:
4689 {
4690 if (temp1)
4691 delete arg1;
4692 }
4693 return NULL;
4694}
4695
4696
c32bde28 4697static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4698 PyObject *resultobj;
4699 wxIcon *arg1 = 0 ;
4700 wxIconBundle *result;
4701 PyObject * obj0 = 0 ;
4702 char *kwnames[] = {
4703 (char *) "icon", NULL
4704 };
4705
4706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4708 SWIG_POINTER_EXCEPTION | 0)) == -1)
4709 SWIG_fail;
4710 if (arg1 == NULL) {
4711 PyErr_SetString(PyExc_TypeError,"null reference");
4712 SWIG_fail;
4713 }
4714 {
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4717
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4722 return resultobj;
4723 fail:
4724 return NULL;
4725}
4726
4727
c32bde28 4728static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4729 PyObject *resultobj;
4730 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4731 PyObject * obj0 = 0 ;
4732 char *kwnames[] = {
4733 (char *) "self", NULL
4734 };
4735
4736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 delete arg1;
4742
4743 wxPyEndAllowThreads(__tstate);
4744 if (PyErr_Occurred()) SWIG_fail;
4745 }
4746 Py_INCREF(Py_None); resultobj = Py_None;
4747 return resultobj;
4748 fail:
4749 return NULL;
4750}
4751
4752
c32bde28 4753static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4754 PyObject *resultobj;
4755 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4756 wxIcon *arg2 = 0 ;
4757 PyObject * obj0 = 0 ;
4758 PyObject * obj1 = 0 ;
4759 char *kwnames[] = {
4760 (char *) "self",(char *) "icon", NULL
4761 };
4762
4763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4767 SWIG_POINTER_EXCEPTION | 0)) == -1)
4768 SWIG_fail;
4769 if (arg2 == NULL) {
4770 PyErr_SetString(PyExc_TypeError,"null reference");
4771 SWIG_fail;
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 (arg1)->AddIcon((wxIcon const &)*arg2);
4776
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 Py_INCREF(Py_None); resultobj = Py_None;
4781 return resultobj;
4782 fail:
4783 return NULL;
4784}
4785
4786
c32bde28 4787static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4788 PyObject *resultobj;
4789 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4790 wxString *arg2 = 0 ;
4791 long arg3 ;
4792 bool temp2 = False ;
4793 PyObject * obj0 = 0 ;
4794 PyObject * obj1 = 0 ;
4795 PyObject * obj2 = 0 ;
4796 char *kwnames[] = {
4797 (char *) "self",(char *) "file",(char *) "type", NULL
4798 };
4799
4800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4803 {
4804 arg2 = wxString_in_helper(obj1);
4805 if (arg2 == NULL) SWIG_fail;
4806 temp2 = True;
4807 }
c32bde28 4808 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
4809 if (PyErr_Occurred()) SWIG_fail;
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 Py_INCREF(Py_None); resultobj = Py_None;
4818 {
4819 if (temp2)
4820 delete arg2;
4821 }
4822 return resultobj;
4823 fail:
4824 {
4825 if (temp2)
4826 delete arg2;
4827 }
4828 return NULL;
4829}
4830
4831
c32bde28 4832static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4833 PyObject *resultobj;
4834 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4835 wxSize *arg2 = 0 ;
4836 wxIcon *result;
4837 wxSize temp2 ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char *kwnames[] = {
4841 (char *) "self",(char *) "size", NULL
4842 };
4843
4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4847 {
4848 arg2 = &temp2;
4849 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4850 }
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 {
4854 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4855 result = (wxIcon *) &_result_ref;
4856 }
4857
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 {
4862 wxIcon* resultptr = new wxIcon(*result);
4863 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4864 }
4865 return resultobj;
4866 fail:
4867 return NULL;
4868}
4869
4870
c32bde28 4871static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4872 PyObject *obj;
4873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4874 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4875 Py_INCREF(obj);
4876 return Py_BuildValue((char *)"");
4877}
c32bde28 4878static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4879 PyObject *resultobj;
4880 wxString *arg1 = (wxString *) 0 ;
4881 long arg2 ;
4882 int arg3 = (int) 0 ;
4883 int arg4 = (int) 0 ;
4884 wxCursor *result;
4885 bool temp1 = False ;
4886 PyObject * obj0 = 0 ;
4887 PyObject * obj1 = 0 ;
4888 PyObject * obj2 = 0 ;
4889 PyObject * obj3 = 0 ;
4890 char *kwnames[] = {
4891 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4892 };
4893
4894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4895 {
4896 arg1 = wxString_in_helper(obj0);
4897 if (arg1 == NULL) SWIG_fail;
4898 temp1 = True;
4899 }
c32bde28 4900 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4901 if (PyErr_Occurred()) SWIG_fail;
4902 if (obj2) {
c32bde28 4903 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 if (obj3) {
c32bde28 4907 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 {
0439c23b 4911 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4912 PyThreadState* __tstate = wxPyBeginAllowThreads();
4913 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4914
4915 wxPyEndAllowThreads(__tstate);
110da5b0 4916 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4917 }
4918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4919 {
4920 if (temp1)
4921 delete arg1;
4922 }
4923 return resultobj;
4924 fail:
4925 {
4926 if (temp1)
4927 delete arg1;
4928 }
4929 return NULL;
4930}
4931
4932
c32bde28 4933static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4934 PyObject *resultobj;
4935 wxCursor *arg1 = (wxCursor *) 0 ;
4936 PyObject * obj0 = 0 ;
4937 char *kwnames[] = {
4938 (char *) "self", NULL
4939 };
4940
4941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 delete arg1;
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 Py_INCREF(Py_None); resultobj = Py_None;
4952 return resultobj;
4953 fail:
4954 return NULL;
4955}
4956
4957
c32bde28 4958static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4959 PyObject *resultobj;
4960 int arg1 ;
4961 wxCursor *result;
4962 PyObject * obj0 = 0 ;
4963 char *kwnames[] = {
4964 (char *) "id", NULL
4965 };
4966
4967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
c32bde28 4968 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4969 if (PyErr_Occurred()) SWIG_fail;
4970 {
0439c23b 4971 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 result = (wxCursor *)new wxCursor(arg1);
4974
4975 wxPyEndAllowThreads(__tstate);
110da5b0 4976 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4977 }
4978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4979 return resultobj;
4980 fail:
4981 return NULL;
4982}
4983
4984
c32bde28 4985static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4986 PyObject *resultobj;
4987 wxImage *arg1 = 0 ;
4988 wxCursor *result;
4989 PyObject * obj0 = 0 ;
4990 char *kwnames[] = {
4991 (char *) "image", NULL
4992 };
4993
4994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4996 SWIG_POINTER_EXCEPTION | 0)) == -1)
4997 SWIG_fail;
4998 if (arg1 == NULL) {
4999 PyErr_SetString(PyExc_TypeError,"null reference");
5000 SWIG_fail;
5001 }
5002 {
0439c23b 5003 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
5005 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
5006
5007 wxPyEndAllowThreads(__tstate);
110da5b0 5008 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5009 }
5010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5011 return resultobj;
5012 fail:
5013 return NULL;
5014}
5015
5016
c32bde28 5017static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5018 PyObject *resultobj;
5019 wxCursor *arg1 = (wxCursor *) 0 ;
5020 long result;
5021 PyObject * obj0 = 0 ;
5022 char *kwnames[] = {
5023 (char *) "self", NULL
5024 };
5025
5026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
5027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5029 {
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
5031 result = (long)(arg1)->GetHandle();
5032
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
c32bde28 5036 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
5037 return resultobj;
5038 fail:
5039 return NULL;
5040}
5041
5042
c32bde28 5043static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5044 PyObject *resultobj;
5045 wxCursor *arg1 = (wxCursor *) 0 ;
5046 long arg2 ;
5047 PyObject * obj0 = 0 ;
5048 PyObject * obj1 = 0 ;
5049 char *kwnames[] = {
5050 (char *) "self",(char *) "handle", NULL
5051 };
5052
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5056 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
5057 if (PyErr_Occurred()) SWIG_fail;
5058 {
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 wxCursor_SetHandle(arg1,arg2);
5061
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 Py_INCREF(Py_None); resultobj = Py_None;
5066 return resultobj;
5067 fail:
5068 return NULL;
5069}
5070
5071
c32bde28 5072static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5073 PyObject *resultobj;
5074 wxCursor *arg1 = (wxCursor *) 0 ;
5075 bool result;
5076 PyObject * obj0 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 result = (bool)(arg1)->Ok();
5087
5088 wxPyEndAllowThreads(__tstate);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 }
5091 {
5092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5093 }
5094 return resultobj;
5095 fail:
5096 return NULL;
5097}
5098
5099
c32bde28 5100static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5101 PyObject *resultobj;
5102 wxCursor *arg1 = (wxCursor *) 0 ;
5103 int result;
5104 PyObject * obj0 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (int)(arg1)->GetWidth();
5115
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
c32bde28 5119 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5120 return resultobj;
5121 fail:
5122 return NULL;
5123}
5124
5125
c32bde28 5126static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5127 PyObject *resultobj;
5128 wxCursor *arg1 = (wxCursor *) 0 ;
5129 int result;
5130 PyObject * obj0 = 0 ;
5131 char *kwnames[] = {
5132 (char *) "self", NULL
5133 };
5134
5135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (int)(arg1)->GetHeight();
5141
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
c32bde28 5145 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5146 return resultobj;
5147 fail:
5148 return NULL;
5149}
5150
5151
c32bde28 5152static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5153 PyObject *resultobj;
5154 wxCursor *arg1 = (wxCursor *) 0 ;
5155 int result;
5156 PyObject * obj0 = 0 ;
5157 char *kwnames[] = {
5158 (char *) "self", NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (int)(arg1)->GetDepth();
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
c32bde28 5171 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5172 return resultobj;
5173 fail:
5174 return NULL;
5175}
5176
5177
c32bde28 5178static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5179 PyObject *resultobj;
5180 wxCursor *arg1 = (wxCursor *) 0 ;
5181 int arg2 ;
5182 PyObject * obj0 = 0 ;
5183 PyObject * obj1 = 0 ;
5184 char *kwnames[] = {
5185 (char *) "self",(char *) "w", NULL
5186 };
5187
5188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5191 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5192 if (PyErr_Occurred()) SWIG_fail;
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 (arg1)->SetWidth(arg2);
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 Py_INCREF(Py_None); resultobj = Py_None;
5201 return resultobj;
5202 fail:
5203 return NULL;
5204}
5205
5206
c32bde28 5207static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5208 PyObject *resultobj;
5209 wxCursor *arg1 = (wxCursor *) 0 ;
5210 int arg2 ;
5211 PyObject * obj0 = 0 ;
5212 PyObject * obj1 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "self",(char *) "h", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5220 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5221 if (PyErr_Occurred()) SWIG_fail;
5222 {
5223 PyThreadState* __tstate = wxPyBeginAllowThreads();
5224 (arg1)->SetHeight(arg2);
5225
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 Py_INCREF(Py_None); resultobj = Py_None;
5230 return resultobj;
5231 fail:
5232 return NULL;
5233}
5234
5235
c32bde28 5236static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5237 PyObject *resultobj;
5238 wxCursor *arg1 = (wxCursor *) 0 ;
5239 int arg2 ;
5240 PyObject * obj0 = 0 ;
5241 PyObject * obj1 = 0 ;
5242 char *kwnames[] = {
5243 (char *) "self",(char *) "d", NULL
5244 };
5245
5246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5249 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5250 if (PyErr_Occurred()) SWIG_fail;
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 (arg1)->SetDepth(arg2);
5254
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 Py_INCREF(Py_None); resultobj = Py_None;
5259 return resultobj;
5260 fail:
5261 return NULL;
5262}
5263
5264
c32bde28 5265static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5266 PyObject *resultobj;
5267 wxCursor *arg1 = (wxCursor *) 0 ;
5268 wxSize *arg2 = 0 ;
5269 wxSize temp2 ;
5270 PyObject * obj0 = 0 ;
5271 PyObject * obj1 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "self",(char *) "size", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5279 {
5280 arg2 = &temp2;
5281 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5282 }
5283 {
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 (arg1)->SetSize((wxSize const &)*arg2);
5286
5287 wxPyEndAllowThreads(__tstate);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 }
5290 Py_INCREF(Py_None); resultobj = Py_None;
5291 return resultobj;
5292 fail:
5293 return NULL;
5294}
5295
5296
c32bde28 5297static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5298 PyObject *obj;
5299 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5300 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5301 Py_INCREF(obj);
5302 return Py_BuildValue((char *)"");
5303}
c32bde28 5304static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5305 PyObject *resultobj;
5306 int arg1 = (int) 0 ;
5307 int arg2 = (int) 0 ;
5308 int arg3 = (int) 0 ;
5309 int arg4 = (int) 0 ;
5310 wxRegion *result;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 PyObject * obj2 = 0 ;
5314 PyObject * obj3 = 0 ;
5315 char *kwnames[] = {
5316 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5317 };
5318
5319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5320 if (obj0) {
c32bde28 5321 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 if (obj1) {
c32bde28 5325 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5326 if (PyErr_Occurred()) SWIG_fail;
5327 }
5328 if (obj2) {
c32bde28 5329 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5330 if (PyErr_Occurred()) SWIG_fail;
5331 }
5332 if (obj3) {
c32bde28 5333 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
5334 if (PyErr_Occurred()) SWIG_fail;
5335 }
5336 {
0439c23b 5337 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5338 PyThreadState* __tstate = wxPyBeginAllowThreads();
5339 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5340
5341 wxPyEndAllowThreads(__tstate);
110da5b0 5342 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5343 }
5344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5345 return resultobj;
5346 fail:
5347 return NULL;
5348}
5349
5350
c32bde28 5351static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5352 PyObject *resultobj;
5353 wxBitmap *arg1 = 0 ;
a2569024
RD
5354 wxRegion *result;
5355 PyObject * obj0 = 0 ;
5356 char *kwnames[] = {
5357 (char *) "bmp", NULL
5358 };
5359
5360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
5361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5362 SWIG_POINTER_EXCEPTION | 0)) == -1)
5363 SWIG_fail;
5364 if (arg1 == NULL) {
5365 PyErr_SetString(PyExc_TypeError,"null reference");
5366 SWIG_fail;
5367 }
5368 {
5369 if (!wxPyCheckForApp()) SWIG_fail;
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
5372
5373 wxPyEndAllowThreads(__tstate);
110da5b0 5374 if (PyErr_Occurred()) SWIG_fail;
a2569024
RD
5375 }
5376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5377 return resultobj;
5378 fail:
5379 return NULL;
5380}
5381
5382
c32bde28 5383static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
a2569024
RD
5384 PyObject *resultobj;
5385 wxBitmap *arg1 = 0 ;
5386 wxColour *arg2 = 0 ;
d55e5bfc
RD
5387 int arg3 = (int) 0 ;
5388 wxRegion *result;
5389 wxColour temp2 ;
5390 PyObject * obj0 = 0 ;
5391 PyObject * obj1 = 0 ;
5392 PyObject * obj2 = 0 ;
5393 char *kwnames[] = {
5394 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5395 };
5396
a2569024 5397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
5398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5399 SWIG_POINTER_EXCEPTION | 0)) == -1)
5400 SWIG_fail;
5401 if (arg1 == NULL) {
5402 PyErr_SetString(PyExc_TypeError,"null reference");
5403 SWIG_fail;
5404 }
a2569024
RD
5405 {
5406 arg2 = &temp2;
5407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
5408 }
5409 if (obj2) {
c32bde28 5410 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 {
0439c23b 5414 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5417
5418 wxPyEndAllowThreads(__tstate);
110da5b0 5419 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5420 }
5421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5422 return resultobj;
5423 fail:
5424 return NULL;
5425}
5426
5427
c32bde28 5428static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5429 PyObject *resultobj;
5430 int arg1 ;
5431 wxPoint *arg2 = (wxPoint *) 0 ;
5432 int arg3 = (int) wxWINDING_RULE ;
5433 wxRegion *result;
5434 PyObject * obj0 = 0 ;
5435 PyObject * obj1 = 0 ;
5436 char *kwnames[] = {
5437 (char *) "points",(char *) "fillStyle", NULL
5438 };
5439
5440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5441 {
5442 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5443 if (arg2 == NULL) SWIG_fail;
5444 }
5445 if (obj1) {
c32bde28 5446 arg3 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5447 if (PyErr_Occurred()) SWIG_fail;
5448 }
5449 {
0439c23b 5450 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5453
5454 wxPyEndAllowThreads(__tstate);
110da5b0 5455 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5456 }
5457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5458 {
5459 if (arg2) delete [] arg2;
5460 }
5461 return resultobj;
5462 fail:
5463 {
5464 if (arg2) delete [] arg2;
5465 }
5466 return NULL;
5467}
5468
5469
c32bde28 5470static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5471 PyObject *resultobj;
5472 wxRegion *arg1 = (wxRegion *) 0 ;
5473 PyObject * obj0 = 0 ;
5474 char *kwnames[] = {
5475 (char *) "self", NULL
5476 };
5477
5478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5481 {
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 delete arg1;
5484
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 Py_INCREF(Py_None); resultobj = Py_None;
5489 return resultobj;
5490 fail:
5491 return NULL;
5492}
5493
5494
c32bde28 5495static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5496 PyObject *resultobj;
5497 wxRegion *arg1 = (wxRegion *) 0 ;
5498 PyObject * obj0 = 0 ;
5499 char *kwnames[] = {
5500 (char *) "self", NULL
5501 };
5502
5503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5506 {
5507 PyThreadState* __tstate = wxPyBeginAllowThreads();
5508 (arg1)->Clear();
5509
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 Py_INCREF(Py_None); resultobj = Py_None;
5514 return resultobj;
5515 fail:
5516 return NULL;
5517}
5518
5519
c32bde28 5520static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5521 PyObject *resultobj;
5522 wxRegion *arg1 = (wxRegion *) 0 ;
5523 int arg2 ;
5524 int arg3 ;
5525 bool result;
5526 PyObject * obj0 = 0 ;
5527 PyObject * obj1 = 0 ;
5528 PyObject * obj2 = 0 ;
5529 char *kwnames[] = {
5530 (char *) "self",(char *) "x",(char *) "y", NULL
5531 };
5532
5533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5536 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5537 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5538 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5539 if (PyErr_Occurred()) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 result = (bool)(arg1)->Offset(arg2,arg3);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 {
5548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5549 }
5550 return resultobj;
5551 fail:
5552 return NULL;
5553}
5554
5555
c32bde28 5556static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5557 PyObject *resultobj;
5558 wxRegion *arg1 = (wxRegion *) 0 ;
5559 int arg2 ;
5560 int arg3 ;
5561 int result;
5562 PyObject * obj0 = 0 ;
5563 PyObject * obj1 = 0 ;
5564 PyObject * obj2 = 0 ;
5565 char *kwnames[] = {
5566 (char *) "self",(char *) "x",(char *) "y", NULL
5567 };
5568
5569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5572 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5573 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5574 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5575 if (PyErr_Occurred()) SWIG_fail;
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = (int)(arg1)->Contains(arg2,arg3);
5579
5580 wxPyEndAllowThreads(__tstate);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 }
c32bde28 5583 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5584 return resultobj;
5585 fail:
5586 return NULL;
5587}
5588
5589
c32bde28 5590static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5591 PyObject *resultobj;
5592 wxRegion *arg1 = (wxRegion *) 0 ;
5593 wxPoint *arg2 = 0 ;
5594 int result;
5595 wxPoint temp2 ;
5596 PyObject * obj0 = 0 ;
5597 PyObject * obj1 = 0 ;
5598 char *kwnames[] = {
5599 (char *) "self",(char *) "pt", NULL
5600 };
5601
5602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5605 {
5606 arg2 = &temp2;
5607 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5608 }
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5612
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
c32bde28 5616 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5617 return resultobj;
5618 fail:
5619 return NULL;
5620}
5621
5622
c32bde28 5623static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5624 PyObject *resultobj;
5625 wxRegion *arg1 = (wxRegion *) 0 ;
5626 wxRect *arg2 = 0 ;
5627 int result;
5628 wxRect temp2 ;
5629 PyObject * obj0 = 0 ;
5630 PyObject * obj1 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self",(char *) "rect", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 {
5639 arg2 = &temp2;
5640 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5641 }
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
c32bde28 5649 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5650 return resultobj;
5651 fail:
5652 return NULL;
5653}
5654
5655
c32bde28 5656static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5657 PyObject *resultobj;
5658 wxRegion *arg1 = (wxRegion *) 0 ;
5659 int arg2 ;
5660 int arg3 ;
5661 int arg4 ;
5662 int arg5 ;
5663 int result;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 PyObject * obj2 = 0 ;
5667 PyObject * obj3 = 0 ;
5668 PyObject * obj4 = 0 ;
5669 char *kwnames[] = {
5670 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5671 };
5672
5673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5676 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5677 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5678 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5679 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5680 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5681 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5682 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5683 if (PyErr_Occurred()) SWIG_fail;
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
c32bde28 5691 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5692 return resultobj;
5693 fail:
5694 return NULL;
5695}
5696
5697
c32bde28 5698static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5699 PyObject *resultobj;
5700 wxRegion *arg1 = (wxRegion *) 0 ;
5701 wxRect result;
5702 PyObject * obj0 = 0 ;
5703 char *kwnames[] = {
5704 (char *) "self", NULL
5705 };
5706
5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (arg1)->GetBox();
5713
5714 wxPyEndAllowThreads(__tstate);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 }
5717 {
5718 wxRect * resultptr;
5719 resultptr = new wxRect((wxRect &) result);
5720 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5721 }
5722 return resultobj;
5723 fail:
5724 return NULL;
5725}
5726
5727
c32bde28 5728static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5729 PyObject *resultobj;
5730 wxRegion *arg1 = (wxRegion *) 0 ;
5731 int arg2 ;
5732 int arg3 ;
5733 int arg4 ;
5734 int arg5 ;
5735 bool result;
5736 PyObject * obj0 = 0 ;
5737 PyObject * obj1 = 0 ;
5738 PyObject * obj2 = 0 ;
5739 PyObject * obj3 = 0 ;
5740 PyObject * obj4 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5748 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5749 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5750 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5751 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5752 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5753 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5754 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5755 if (PyErr_Occurred()) SWIG_fail;
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5765 }
5766 return resultobj;
5767 fail:
5768 return NULL;
5769}
5770
5771
c32bde28 5772static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5773 PyObject *resultobj;
5774 wxRegion *arg1 = (wxRegion *) 0 ;
5775 wxRect *arg2 = 0 ;
5776 bool result;
5777 wxRect temp2 ;
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 char *kwnames[] = {
5781 (char *) "self",(char *) "rect", NULL
5782 };
5783
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5787 {
5788 arg2 = &temp2;
5789 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5790 }
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 {
5799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5800 }
5801 return resultobj;
5802 fail:
5803 return NULL;
5804}
5805
5806
c32bde28 5807static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5808 PyObject *resultobj;
5809 wxRegion *arg1 = (wxRegion *) 0 ;
5810 wxRegion *arg2 = 0 ;
5811 bool result;
5812 PyObject * obj0 = 0 ;
5813 PyObject * obj1 = 0 ;
5814 char *kwnames[] = {
5815 (char *) "self",(char *) "region", NULL
5816 };
5817
5818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5822 SWIG_POINTER_EXCEPTION | 0)) == -1)
5823 SWIG_fail;
5824 if (arg2 == NULL) {
5825 PyErr_SetString(PyExc_TypeError,"null reference");
5826 SWIG_fail;
5827 }
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 {
5836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5837 }
5838 return resultobj;
5839 fail:
5840 return NULL;
5841}
5842
5843
c32bde28 5844static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5845 PyObject *resultobj;
5846 wxRegion *arg1 = (wxRegion *) 0 ;
5847 bool result;
5848 PyObject * obj0 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "self", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 result = (bool)(arg1)->IsEmpty();
5859
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 {
5864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5865 }
5866 return resultobj;
5867 fail:
5868 return NULL;
5869}
5870
5871
c32bde28 5872static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5873 PyObject *resultobj;
5874 wxRegion *arg1 = (wxRegion *) 0 ;
5875 int arg2 ;
5876 int arg3 ;
5877 int arg4 ;
5878 int arg5 ;
5879 bool result;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 PyObject * obj2 = 0 ;
5883 PyObject * obj3 = 0 ;
5884 PyObject * obj4 = 0 ;
5885 char *kwnames[] = {
5886 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5887 };
5888
5889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5892 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5893 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5894 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5895 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5896 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5897 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5898 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5899 if (PyErr_Occurred()) SWIG_fail;
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 {
5908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5909 }
5910 return resultobj;
5911 fail:
5912 return NULL;
5913}
5914
5915
c32bde28 5916static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5917 PyObject *resultobj;
5918 wxRegion *arg1 = (wxRegion *) 0 ;
5919 wxRect *arg2 = 0 ;
5920 bool result;
5921 wxRect temp2 ;
5922 PyObject * obj0 = 0 ;
5923 PyObject * obj1 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self",(char *) "rect", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5931 {
5932 arg2 = &temp2;
5933 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5934 }
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5938
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 {
5943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5944 }
5945 return resultobj;
5946 fail:
5947 return NULL;
5948}
5949
5950
c32bde28 5951static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5952 PyObject *resultobj;
5953 wxRegion *arg1 = (wxRegion *) 0 ;
5954 wxRegion *arg2 = 0 ;
5955 bool result;
5956 PyObject * obj0 = 0 ;
5957 PyObject * obj1 = 0 ;
5958 char *kwnames[] = {
5959 (char *) "self",(char *) "region", NULL
5960 };
5961
5962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5966 SWIG_POINTER_EXCEPTION | 0)) == -1)
5967 SWIG_fail;
5968 if (arg2 == NULL) {
5969 PyErr_SetString(PyExc_TypeError,"null reference");
5970 SWIG_fail;
5971 }
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5975
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 {
5980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5981 }
5982 return resultobj;
5983 fail:
5984 return NULL;
5985}
5986
5987
c32bde28 5988static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5989 PyObject *resultobj;
5990 wxRegion *arg1 = (wxRegion *) 0 ;
5991 int arg2 ;
5992 int arg3 ;
5993 int arg4 ;
5994 int arg5 ;
5995 bool result;
5996 PyObject * obj0 = 0 ;
5997 PyObject * obj1 = 0 ;
5998 PyObject * obj2 = 0 ;
5999 PyObject * obj3 = 0 ;
6000 PyObject * obj4 = 0 ;
6001 char *kwnames[] = {
6002 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6003 };
6004
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6008 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 6009 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6010 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 6011 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6012 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 6013 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6014 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
6015 if (PyErr_Occurred()) SWIG_fail;
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
6019
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 {
6024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6025 }
6026 return resultobj;
6027 fail:
6028 return NULL;
6029}
6030
6031
c32bde28 6032static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6033 PyObject *resultobj;
6034 wxRegion *arg1 = (wxRegion *) 0 ;
6035 wxRect *arg2 = 0 ;
6036 bool result;
6037 wxRect temp2 ;
6038 PyObject * obj0 = 0 ;
6039 PyObject * obj1 = 0 ;
6040 char *kwnames[] = {
6041 (char *) "self",(char *) "rect", NULL
6042 };
6043
6044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
6045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6047 {
6048 arg2 = &temp2;
6049 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6050 }
6051 {
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 {
6059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6060 }
6061 return resultobj;
6062 fail:
6063 return NULL;
6064}
6065
6066
c32bde28 6067static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6068 PyObject *resultobj;
6069 wxRegion *arg1 = (wxRegion *) 0 ;
6070 wxRegion *arg2 = 0 ;
6071 bool result;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 char *kwnames[] = {
6075 (char *) "self",(char *) "region", NULL
6076 };
6077
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
6079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1)
6083 SWIG_fail;
6084 if (arg2 == NULL) {
6085 PyErr_SetString(PyExc_TypeError,"null reference");
6086 SWIG_fail;
6087 }
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 {
6096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6097 }
6098 return resultobj;
6099 fail:
6100 return NULL;
6101}
6102
6103
c32bde28 6104static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6105 PyObject *resultobj;
6106 wxRegion *arg1 = (wxRegion *) 0 ;
6107 int arg2 ;
6108 int arg3 ;
6109 int arg4 ;
6110 int arg5 ;
6111 bool result;
6112 PyObject * obj0 = 0 ;
6113 PyObject * obj1 = 0 ;
6114 PyObject * obj2 = 0 ;
6115 PyObject * obj3 = 0 ;
6116 PyObject * obj4 = 0 ;
6117 char *kwnames[] = {
6118 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6119 };
6120
6121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6124 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 6125 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6126 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 6127 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6128 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 6129 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6130 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
6131 if (PyErr_Occurred()) SWIG_fail;
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6135
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 {
6140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6141 }
6142 return resultobj;
6143 fail:
6144 return NULL;
6145}
6146
6147
c32bde28 6148static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6149 PyObject *resultobj;
6150 wxRegion *arg1 = (wxRegion *) 0 ;
6151 wxRect *arg2 = 0 ;
6152 bool result;
6153 wxRect temp2 ;
6154 PyObject * obj0 = 0 ;
6155 PyObject * obj1 = 0 ;
6156 char *kwnames[] = {
6157 (char *) "self",(char *) "rect", NULL
6158 };
6159
6160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6163 {
6164 arg2 = &temp2;
6165 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6166 }
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6170
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 {
6175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6176 }
6177 return resultobj;
6178 fail:
6179 return NULL;
6180}
6181
6182
c32bde28 6183static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6184 PyObject *resultobj;
6185 wxRegion *arg1 = (wxRegion *) 0 ;
6186 wxRegion *arg2 = 0 ;
6187 bool result;
6188 PyObject * obj0 = 0 ;
6189 PyObject * obj1 = 0 ;
6190 char *kwnames[] = {
6191 (char *) "self",(char *) "region", NULL
6192 };
6193
6194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6197 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6198 SWIG_POINTER_EXCEPTION | 0)) == -1)
6199 SWIG_fail;
6200 if (arg2 == NULL) {
6201 PyErr_SetString(PyExc_TypeError,"null reference");
6202 SWIG_fail;
6203 }
6204 {
6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
6206 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6207
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 {
6212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6213 }
6214 return resultobj;
6215 fail:
6216 return NULL;
6217}
6218
6219
c32bde28 6220static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6221 PyObject *resultobj;
6222 wxRegion *arg1 = (wxRegion *) 0 ;
6223 SwigValueWrapper< wxBitmap > result;
6224 PyObject * obj0 = 0 ;
6225 char *kwnames[] = {
6226 (char *) "self", NULL
6227 };
6228
6229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6232 {
6233 PyThreadState* __tstate = wxPyBeginAllowThreads();
6234 result = (arg1)->ConvertToBitmap();
6235
6236 wxPyEndAllowThreads(__tstate);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 }
6239 {
6240 wxBitmap * resultptr;
6241 resultptr = new wxBitmap((wxBitmap &) result);
6242 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6243 }
6244 return resultobj;
6245 fail:
6246 return NULL;
6247}
6248
6249
c32bde28 6250static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6251 PyObject *resultobj;
6252 wxRegion *arg1 = (wxRegion *) 0 ;
6253 wxBitmap *arg2 = 0 ;
a2569024
RD
6254 bool result;
6255 PyObject * obj0 = 0 ;
6256 PyObject * obj1 = 0 ;
6257 char *kwnames[] = {
6258 (char *) "self",(char *) "bmp", NULL
6259 };
6260
6261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
6262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6264 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6265 SWIG_POINTER_EXCEPTION | 0)) == -1)
6266 SWIG_fail;
6267 if (arg2 == NULL) {
6268 PyErr_SetString(PyExc_TypeError,"null reference");
6269 SWIG_fail;
6270 }
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
6274
6275 wxPyEndAllowThreads(__tstate);
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 {
6279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6280 }
6281 return resultobj;
6282 fail:
6283 return NULL;
6284}
6285
6286
c32bde28 6287static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
a2569024
RD
6288 PyObject *resultobj;
6289 wxRegion *arg1 = (wxRegion *) 0 ;
6290 wxBitmap *arg2 = 0 ;
6291 wxColour *arg3 = 0 ;
d55e5bfc
RD
6292 int arg4 = (int) 0 ;
6293 bool result;
6294 wxColour temp3 ;
6295 PyObject * obj0 = 0 ;
6296 PyObject * obj1 = 0 ;
6297 PyObject * obj2 = 0 ;
6298 PyObject * obj3 = 0 ;
6299 char *kwnames[] = {
6300 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6301 };
6302
a2569024 6303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
6304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6307 SWIG_POINTER_EXCEPTION | 0)) == -1)
6308 SWIG_fail;
6309 if (arg2 == NULL) {
6310 PyErr_SetString(PyExc_TypeError,"null reference");
6311 SWIG_fail;
6312 }
a2569024
RD
6313 {
6314 arg3 = &temp3;
6315 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
6316 }
6317 if (obj3) {
c32bde28 6318 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 {
6329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6330 }
6331 return resultobj;
6332 fail:
6333 return NULL;
6334}
6335
6336
c32bde28 6337static PyObject * Region_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6338 PyObject *obj;
6339 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6340 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6341 Py_INCREF(obj);
6342 return Py_BuildValue((char *)"");
6343}
c32bde28 6344static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6345 PyObject *resultobj;
6346 wxRegion *arg1 = 0 ;
6347 wxRegionIterator *result;
6348 PyObject * obj0 = 0 ;
6349 char *kwnames[] = {
6350 (char *) "region", NULL
6351 };
6352
6353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6355 SWIG_POINTER_EXCEPTION | 0)) == -1)
6356 SWIG_fail;
6357 if (arg1 == NULL) {
6358 PyErr_SetString(PyExc_TypeError,"null reference");
6359 SWIG_fail;
6360 }
6361 {
0439c23b 6362 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6363 PyThreadState* __tstate = wxPyBeginAllowThreads();
6364 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6365
6366 wxPyEndAllowThreads(__tstate);
110da5b0 6367 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6368 }
6369 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6370 return resultobj;
6371 fail:
6372 return NULL;
6373}
6374
6375
c32bde28 6376static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6377 PyObject *resultobj;
6378 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6379 PyObject * obj0 = 0 ;
6380 char *kwnames[] = {
6381 (char *) "self", NULL
6382 };
6383
6384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 delete arg1;
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 Py_INCREF(Py_None); resultobj = Py_None;
6395 return resultobj;
6396 fail:
6397 return NULL;
6398}
6399
6400
c32bde28 6401static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6402 PyObject *resultobj;
6403 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6404 int result;
6405 PyObject * obj0 = 0 ;
6406 char *kwnames[] = {
6407 (char *) "self", NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 result = (int)(arg1)->GetX();
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
c32bde28 6420 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6421 return resultobj;
6422 fail:
6423 return NULL;
6424}
6425
6426
c32bde28 6427static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6428 PyObject *resultobj;
6429 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6430 int result;
6431 PyObject * obj0 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "self", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6439 {
6440 PyThreadState* __tstate = wxPyBeginAllowThreads();
6441 result = (int)(arg1)->GetY();
6442
6443 wxPyEndAllowThreads(__tstate);
6444 if (PyErr_Occurred()) SWIG_fail;
6445 }
c32bde28 6446 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6447 return resultobj;
6448 fail:
6449 return NULL;
6450}
6451
6452
c32bde28 6453static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6454 PyObject *resultobj;
6455 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6456 int result;
6457 PyObject * obj0 = 0 ;
6458 char *kwnames[] = {
6459 (char *) "self", NULL
6460 };
6461
6462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6465 {
6466 PyThreadState* __tstate = wxPyBeginAllowThreads();
6467 result = (int)(arg1)->GetW();
6468
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
c32bde28 6472 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6473 return resultobj;
6474 fail:
6475 return NULL;
6476}
6477
6478
c32bde28 6479static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6480 PyObject *resultobj;
6481 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6482 int result;
6483 PyObject * obj0 = 0 ;
6484 char *kwnames[] = {
6485 (char *) "self", NULL
6486 };
6487
6488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 result = (int)(arg1)->GetWidth();
6494
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
c32bde28 6498 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6499 return resultobj;
6500 fail:
6501 return NULL;
6502}
6503
6504
c32bde28 6505static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6506 PyObject *resultobj;
6507 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6508 int result;
6509 PyObject * obj0 = 0 ;
6510 char *kwnames[] = {
6511 (char *) "self", NULL
6512 };
6513
6514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 result = (int)(arg1)->GetH();
6520
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
c32bde28 6524 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6525 return resultobj;
6526 fail:
6527 return NULL;
6528}
6529
6530
c32bde28 6531static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6532 PyObject *resultobj;
6533 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6534 int result;
6535 PyObject * obj0 = 0 ;
6536 char *kwnames[] = {
6537 (char *) "self", NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6543 {
6544 PyThreadState* __tstate = wxPyBeginAllowThreads();
6545 result = (int)(arg1)->GetHeight();
6546
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) SWIG_fail;
6549 }
c32bde28 6550 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6551 return resultobj;
6552 fail:
6553 return NULL;
6554}
6555
6556
c32bde28 6557static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6558 PyObject *resultobj;
6559 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6560 wxRect result;
6561 PyObject * obj0 = 0 ;
6562 char *kwnames[] = {
6563 (char *) "self", NULL
6564 };
6565
6566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 result = (arg1)->GetRect();
6572
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 {
6577 wxRect * resultptr;
6578 resultptr = new wxRect((wxRect &) result);
6579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6580 }
6581 return resultobj;
6582 fail:
6583 return NULL;
6584}
6585
6586
c32bde28 6587static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6588 PyObject *resultobj;
6589 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6590 bool result;
6591 PyObject * obj0 = 0 ;
6592 char *kwnames[] = {
6593 (char *) "self", NULL
6594 };
6595
6596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 result = (bool)(arg1)->HaveRects();
6602
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612}
6613
6614
c32bde28 6615static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6616 PyObject *resultobj;
6617 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6618 PyObject * obj0 = 0 ;
6619 char *kwnames[] = {
6620 (char *) "self", NULL
6621 };
6622
6623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 (arg1)->Reset();
6629
6630 wxPyEndAllowThreads(__tstate);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 Py_INCREF(Py_None); resultobj = Py_None;
6634 return resultobj;
6635 fail:
6636 return NULL;
6637}
6638
6639
c32bde28 6640static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6641 PyObject *resultobj;
6642 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6643 PyObject * obj0 = 0 ;
6644 char *kwnames[] = {
6645 (char *) "self", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6651 {
6652 PyThreadState* __tstate = wxPyBeginAllowThreads();
6653 wxRegionIterator_Next(arg1);
6654
6655 wxPyEndAllowThreads(__tstate);
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 Py_INCREF(Py_None); resultobj = Py_None;
6659 return resultobj;
6660 fail:
6661 return NULL;
6662}
6663
6664
c32bde28 6665static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6666 PyObject *resultobj;
6667 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6668 bool result;
6669 PyObject * obj0 = 0 ;
6670 char *kwnames[] = {
6671 (char *) "self", NULL
6672 };
6673
6674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6677 {
6678 PyThreadState* __tstate = wxPyBeginAllowThreads();
6679 result = (bool)wxRegionIterator___nonzero__(arg1);
6680
6681 wxPyEndAllowThreads(__tstate);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 {
6685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6686 }
6687 return resultobj;
6688 fail:
6689 return NULL;
6690}
6691
6692
c32bde28 6693static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6694 PyObject *obj;
6695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6696 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6697 Py_INCREF(obj);
6698 return Py_BuildValue((char *)"");
6699}
c32bde28 6700static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6701 PyObject *resultobj;
6702 wxNativeFontInfo *result;
6703 char *kwnames[] = {
6704 NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6708 {
6709 PyThreadState* __tstate = wxPyBeginAllowThreads();
6710 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6711
6712 wxPyEndAllowThreads(__tstate);
6713 if (PyErr_Occurred()) SWIG_fail;
6714 }
6715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6716 return resultobj;
6717 fail:
6718 return NULL;
6719}
6720
6721
c32bde28 6722static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6723 PyObject *resultobj;
6724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6725 PyObject * obj0 = 0 ;
6726 char *kwnames[] = {
6727 (char *) "self", NULL
6728 };
6729
6730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6733 {
6734 PyThreadState* __tstate = wxPyBeginAllowThreads();
6735 delete arg1;
6736
6737 wxPyEndAllowThreads(__tstate);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 Py_INCREF(Py_None); resultobj = Py_None;
6741 return resultobj;
6742 fail:
6743 return NULL;
6744}
6745
6746
c32bde28 6747static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6748 PyObject *resultobj;
6749 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6750 PyObject * obj0 = 0 ;
6751 char *kwnames[] = {
6752 (char *) "self", NULL
6753 };
6754
6755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6758 {
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 (arg1)->Init();
6761
6762 wxPyEndAllowThreads(__tstate);
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 Py_INCREF(Py_None); resultobj = Py_None;
6766 return resultobj;
6767 fail:
6768 return NULL;
6769}
6770
6771
c32bde28 6772static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6773 PyObject *resultobj;
6774 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6775 wxFont *arg2 = 0 ;
6776 PyObject * obj0 = 0 ;
6777 PyObject * obj1 = 0 ;
6778 char *kwnames[] = {
6779 (char *) "self",(char *) "font", NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6786 SWIG_POINTER_EXCEPTION | 0)) == -1)
6787 SWIG_fail;
6788 if (arg2 == NULL) {
6789 PyErr_SetString(PyExc_TypeError,"null reference");
6790 SWIG_fail;
6791 }
6792 {
6793 PyThreadState* __tstate = wxPyBeginAllowThreads();
6794 (arg1)->InitFromFont((wxFont const &)*arg2);
6795
6796 wxPyEndAllowThreads(__tstate);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 }
6799 Py_INCREF(Py_None); resultobj = Py_None;
6800 return resultobj;
6801 fail:
6802 return NULL;
6803}
6804
6805
c32bde28 6806static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6807 PyObject *resultobj;
6808 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6809 int result;
6810 PyObject * obj0 = 0 ;
6811 char *kwnames[] = {
6812 (char *) "self", NULL
6813 };
6814
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6818 {
6819 PyThreadState* __tstate = wxPyBeginAllowThreads();
6820 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6821
6822 wxPyEndAllowThreads(__tstate);
6823 if (PyErr_Occurred()) SWIG_fail;
6824 }
c32bde28 6825 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6826 return resultobj;
6827 fail:
6828 return NULL;
6829}
6830
6831
c32bde28 6832static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6833 PyObject *resultobj;
6834 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6835 int result;
6836 PyObject * obj0 = 0 ;
6837 char *kwnames[] = {
6838 (char *) "self", NULL
6839 };
6840
6841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6847
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
c32bde28 6851 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6852 return resultobj;
6853 fail:
6854 return NULL;
6855}
6856
6857
c32bde28 6858static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6859 PyObject *resultobj;
6860 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6861 int result;
6862 PyObject * obj0 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
c32bde28 6877 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6878 return resultobj;
6879 fail:
6880 return NULL;
6881}
6882
6883
c32bde28 6884static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6885 PyObject *resultobj;
6886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6887 bool result;
6888 PyObject * obj0 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 {
6904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6905 }
6906 return resultobj;
6907 fail:
6908 return NULL;
6909}
6910
6911
c32bde28 6912static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6913 PyObject *resultobj;
6914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6915 wxString result;
6916 PyObject * obj0 = 0 ;
6917 char *kwnames[] = {
6918 (char *) "self", NULL
6919 };
6920
6921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6924 {
6925 PyThreadState* __tstate = wxPyBeginAllowThreads();
6926 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6927
6928 wxPyEndAllowThreads(__tstate);
6929 if (PyErr_Occurred()) SWIG_fail;
6930 }
6931 {
6932#if wxUSE_UNICODE
6933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6934#else
6935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6936#endif
6937 }
6938 return resultobj;
6939 fail:
6940 return NULL;
6941}
6942
6943
c32bde28 6944static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6945 PyObject *resultobj;
6946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6947 int result;
6948 PyObject * obj0 = 0 ;
6949 char *kwnames[] = {
6950 (char *) "self", NULL
6951 };
6952
6953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6959
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
c32bde28 6963 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6964 return resultobj;
6965 fail:
6966 return NULL;
6967}
6968
6969
c32bde28 6970static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6971 PyObject *resultobj;
6972 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6973 int result;
6974 PyObject * obj0 = 0 ;
6975 char *kwnames[] = {
6976 (char *) "self", NULL
6977 };
6978
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6982 {
6983 PyThreadState* __tstate = wxPyBeginAllowThreads();
6984 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6985
6986 wxPyEndAllowThreads(__tstate);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
c32bde28 6989 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6990 return resultobj;
6991 fail:
6992 return NULL;
6993}
6994
6995
c32bde28 6996static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6997 PyObject *resultobj;
6998 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6999 int arg2 ;
7000 PyObject * obj0 = 0 ;
7001 PyObject * obj1 = 0 ;
7002 char *kwnames[] = {
7003 (char *) "self",(char *) "pointsize", NULL
7004 };
7005
7006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7009 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7010 if (PyErr_Occurred()) SWIG_fail;
7011 {
7012 PyThreadState* __tstate = wxPyBeginAllowThreads();
7013 (arg1)->SetPointSize(arg2);
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 Py_INCREF(Py_None); resultobj = Py_None;
7019 return resultobj;
7020 fail:
7021 return NULL;
7022}
7023
7024
c32bde28 7025static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7026 PyObject *resultobj;
7027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7028 int arg2 ;
7029 PyObject * obj0 = 0 ;
7030 PyObject * obj1 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self",(char *) "style", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7038 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7039 if (PyErr_Occurred()) SWIG_fail;
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 (arg1)->SetStyle((wxFontStyle )arg2);
7043
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 Py_INCREF(Py_None); resultobj = Py_None;
7048 return resultobj;
7049 fail:
7050 return NULL;
7051}
7052
7053
c32bde28 7054static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7055 PyObject *resultobj;
7056 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7057 int arg2 ;
7058 PyObject * obj0 = 0 ;
7059 PyObject * obj1 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self",(char *) "weight", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7067 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7068 if (PyErr_Occurred()) SWIG_fail;
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 (arg1)->SetWeight((wxFontWeight )arg2);
7072
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 Py_INCREF(Py_None); resultobj = Py_None;
7077 return resultobj;
7078 fail:
7079 return NULL;
7080}
7081
7082
c32bde28 7083static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7084 PyObject *resultobj;
7085 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7086 bool arg2 ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char *kwnames[] = {
7090 (char *) "self",(char *) "underlined", NULL
7091 };
7092
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7096 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
7097 if (PyErr_Occurred()) SWIG_fail;
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 (arg1)->SetUnderlined(arg2);
7101
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 Py_INCREF(Py_None); resultobj = Py_None;
7106 return resultobj;
7107 fail:
7108 return NULL;
7109}
7110
7111
c32bde28 7112static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7113 PyObject *resultobj;
7114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7115 wxString arg2 ;
7116 PyObject * obj0 = 0 ;
7117 PyObject * obj1 = 0 ;
7118 char *kwnames[] = {
7119 (char *) "self",(char *) "facename", NULL
7120 };
7121
7122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7125 {
7126 wxString* sptr = wxString_in_helper(obj1);
7127 if (sptr == NULL) SWIG_fail;
7128 arg2 = *sptr;
7129 delete sptr;
7130 }
7131 {
7132 PyThreadState* __tstate = wxPyBeginAllowThreads();
7133 (arg1)->SetFaceName(arg2);
7134
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 Py_INCREF(Py_None); resultobj = Py_None;
7139 return resultobj;
7140 fail:
7141 return NULL;
7142}
7143
7144
c32bde28 7145static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7146 PyObject *resultobj;
7147 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7148 int arg2 ;
7149 PyObject * obj0 = 0 ;
7150 PyObject * obj1 = 0 ;
7151 char *kwnames[] = {
7152 (char *) "self",(char *) "family", NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7158 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7159 if (PyErr_Occurred()) SWIG_fail;
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 (arg1)->SetFamily((wxFontFamily )arg2);
7163
7164 wxPyEndAllowThreads(__tstate);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 Py_INCREF(Py_None); resultobj = Py_None;
7168 return resultobj;
7169 fail:
7170 return NULL;
7171}
7172
7173
c32bde28 7174static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7175 PyObject *resultobj;
7176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7177 int arg2 ;
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
7180 char *kwnames[] = {
7181 (char *) "self",(char *) "encoding", NULL
7182 };
7183
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7187 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7188 if (PyErr_Occurred()) SWIG_fail;
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 (arg1)->SetEncoding((wxFontEncoding )arg2);
7192
7193 wxPyEndAllowThreads(__tstate);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 }
7196 Py_INCREF(Py_None); resultobj = Py_None;
7197 return resultobj;
7198 fail:
7199 return NULL;
7200}
7201
7202
c32bde28 7203static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7204 PyObject *resultobj;
7205 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7206 wxString *arg2 = 0 ;
7207 bool result;
7208 bool temp2 = False ;
7209 PyObject * obj0 = 0 ;
7210 PyObject * obj1 = 0 ;
7211 char *kwnames[] = {
7212 (char *) "self",(char *) "s", NULL
7213 };
7214
7215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7218 {
7219 arg2 = wxString_in_helper(obj1);
7220 if (arg2 == NULL) SWIG_fail;
7221 temp2 = True;
7222 }
7223 {
7224 PyThreadState* __tstate = wxPyBeginAllowThreads();
7225 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7226
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 {
7231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7232 }
7233 {
7234 if (temp2)
7235 delete arg2;
7236 }
7237 return resultobj;
7238 fail:
7239 {
7240 if (temp2)
7241 delete arg2;
7242 }
7243 return NULL;
7244}
7245
7246
c32bde28 7247static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7248 PyObject *resultobj;
7249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7250 wxString result;
7251 PyObject * obj0 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = ((wxNativeFontInfo const *)arg1)->ToString();
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 {
7267#if wxUSE_UNICODE
7268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7269#else
7270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7271#endif
7272 }
7273 return resultobj;
7274 fail:
7275 return NULL;
7276}
7277
7278
c32bde28 7279static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7280 PyObject *resultobj;
7281 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7282 wxString result;
7283 PyObject * obj0 = 0 ;
7284 char *kwnames[] = {
7285 (char *) "self", NULL
7286 };
7287
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 result = wxNativeFontInfo___str__(arg1);
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 {
7299#if wxUSE_UNICODE
7300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7301#else
7302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7303#endif
7304 }
7305 return resultobj;
7306 fail:
7307 return NULL;
7308}
7309
7310
c32bde28 7311static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7312 PyObject *resultobj;
7313 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7314 wxString *arg2 = 0 ;
7315 bool result;
7316 bool temp2 = False ;
7317 PyObject * obj0 = 0 ;
7318 PyObject * obj1 = 0 ;
7319 char *kwnames[] = {
7320 (char *) "self",(char *) "s", NULL
7321 };
7322
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7326 {
7327 arg2 = wxString_in_helper(obj1);
7328 if (arg2 == NULL) SWIG_fail;
7329 temp2 = True;
7330 }
7331 {
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7334
7335 wxPyEndAllowThreads(__tstate);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 {
7339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7340 }
7341 {
7342 if (temp2)
7343 delete arg2;
7344 }
7345 return resultobj;
7346 fail:
7347 {
7348 if (temp2)
7349 delete arg2;
7350 }
7351 return NULL;
7352}
7353
7354
c32bde28 7355static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7356 PyObject *resultobj;
7357 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7358 wxString result;
7359 PyObject * obj0 = 0 ;
7360 char *kwnames[] = {
7361 (char *) "self", NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375#if wxUSE_UNICODE
7376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7377#else
7378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7379#endif
7380 }
7381 return resultobj;
7382 fail:
7383 return NULL;
7384}
7385
7386
c32bde28 7387static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7388 PyObject *obj;
7389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7390 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7391 Py_INCREF(obj);
7392 return Py_BuildValue((char *)"");
7393}
c32bde28 7394static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7395 PyObject *resultobj;
7396 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7397 wxString *arg2 = (wxString *) 0 ;
7398 bool temp2 = False ;
7399 PyObject * obj0 = 0 ;
7400 PyObject * obj1 = 0 ;
7401 char *kwnames[] = {
7402 (char *) "self",(char *) "facename", NULL
7403 };
7404
7405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7408 {
7409 arg2 = wxString_in_helper(obj1);
7410 if (arg2 == NULL) SWIG_fail;
7411 temp2 = True;
7412 }
7413 if (arg1) (arg1)->facename = *arg2;
7414
7415 Py_INCREF(Py_None); resultobj = Py_None;
7416 {
7417 if (temp2)
7418 delete arg2;
7419 }
7420 return resultobj;
7421 fail:
7422 {
7423 if (temp2)
7424 delete arg2;
7425 }
7426 return NULL;
7427}
7428
7429
c32bde28 7430static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7431 PyObject *resultobj;
7432 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7433 wxString *result;
7434 PyObject * obj0 = 0 ;
7435 char *kwnames[] = {
7436 (char *) "self", NULL
7437 };
7438
7439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7442 result = (wxString *)& ((arg1)->facename);
7443
7444 {
7445#if wxUSE_UNICODE
7446 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7447#else
7448 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7449#endif
7450 }
7451 return resultobj;
7452 fail:
7453 return NULL;
7454}
7455
7456
c32bde28 7457static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7458 PyObject *resultobj;
7459 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7460 int arg2 ;
7461 PyObject * obj0 = 0 ;
7462 PyObject * obj1 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "self",(char *) "encoding", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7470 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7471 if (PyErr_Occurred()) SWIG_fail;
7472 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7473
7474 Py_INCREF(Py_None); resultobj = Py_None;
7475 return resultobj;
7476 fail:
7477 return NULL;
7478}
7479
7480
c32bde28 7481static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7482 PyObject *resultobj;
7483 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7484 int result;
7485 PyObject * obj0 = 0 ;
7486 char *kwnames[] = {
7487 (char *) "self", NULL
7488 };
7489
7490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7493 result = (int) ((arg1)->encoding);
7494
c32bde28 7495 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7496 return resultobj;
7497 fail:
7498 return NULL;
7499}
7500
7501
c32bde28 7502static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7503 PyObject *resultobj;
7504 wxNativeEncodingInfo *result;
7505 char *kwnames[] = {
7506 NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7510 {
7511 PyThreadState* __tstate = wxPyBeginAllowThreads();
7512 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7513
7514 wxPyEndAllowThreads(__tstate);
7515 if (PyErr_Occurred()) SWIG_fail;
7516 }
7517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7518 return resultobj;
7519 fail:
7520 return NULL;
7521}
7522
7523
c32bde28 7524static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7525 PyObject *resultobj;
7526 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7527 PyObject * obj0 = 0 ;
7528 char *kwnames[] = {
7529 (char *) "self", NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7535 {
7536 PyThreadState* __tstate = wxPyBeginAllowThreads();
7537 delete arg1;
7538
7539 wxPyEndAllowThreads(__tstate);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 Py_INCREF(Py_None); resultobj = Py_None;
7543 return resultobj;
7544 fail:
7545 return NULL;
7546}
7547
7548
c32bde28 7549static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7550 PyObject *resultobj;
7551 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7552 wxString *arg2 = 0 ;
7553 bool result;
7554 bool temp2 = False ;
7555 PyObject * obj0 = 0 ;
7556 PyObject * obj1 = 0 ;
7557 char *kwnames[] = {
7558 (char *) "self",(char *) "s", NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7564 {
7565 arg2 = wxString_in_helper(obj1);
7566 if (arg2 == NULL) SWIG_fail;
7567 temp2 = True;
7568 }
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 {
7577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7578 }
7579 {
7580 if (temp2)
7581 delete arg2;
7582 }
7583 return resultobj;
7584 fail:
7585 {
7586 if (temp2)
7587 delete arg2;
7588 }
7589 return NULL;
7590}
7591
7592
c32bde28 7593static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7594 PyObject *resultobj;
7595 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7596 wxString result;
7597 PyObject * obj0 = 0 ;
7598 char *kwnames[] = {
7599 (char *) "self", NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 {
7613#if wxUSE_UNICODE
7614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7615#else
7616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7617#endif
7618 }
7619 return resultobj;
7620 fail:
7621 return NULL;
7622}
7623
7624
c32bde28 7625static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7626 PyObject *obj;
7627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7628 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7629 Py_INCREF(obj);
7630 return Py_BuildValue((char *)"");
7631}
c32bde28 7632static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7633 PyObject *resultobj;
7634 int arg1 ;
7635 wxNativeEncodingInfo *result;
7636 PyObject * obj0 = 0 ;
7637 char *kwnames[] = {
7638 (char *) "encoding", NULL
7639 };
7640
7641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
c32bde28 7642 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7643 if (PyErr_Occurred()) SWIG_fail;
7644 {
7645 PyThreadState* __tstate = wxPyBeginAllowThreads();
7646 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7647
7648 wxPyEndAllowThreads(__tstate);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7652 return resultobj;
7653 fail:
7654 return NULL;
7655}
7656
7657
c32bde28 7658static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7659 PyObject *resultobj;
7660 wxNativeEncodingInfo *arg1 = 0 ;
7661 bool result;
7662 PyObject * obj0 = 0 ;
7663 char *kwnames[] = {
7664 (char *) "info", NULL
7665 };
7666
7667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7669 SWIG_POINTER_EXCEPTION | 0)) == -1)
7670 SWIG_fail;
7671 if (arg1 == NULL) {
7672 PyErr_SetString(PyExc_TypeError,"null reference");
7673 SWIG_fail;
7674 }
7675 {
7676 PyThreadState* __tstate = wxPyBeginAllowThreads();
7677 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7678
7679 wxPyEndAllowThreads(__tstate);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 {
7683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7684 }
7685 return resultobj;
7686 fail:
7687 return NULL;
7688}
7689
7690
c32bde28 7691static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7692 PyObject *resultobj;
7693 wxFontMapper *result;
7694 char *kwnames[] = {
7695 NULL
7696 };
7697
7698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 result = (wxFontMapper *)new wxFontMapper();
7702
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7707 return resultobj;
7708 fail:
7709 return NULL;
7710}
7711
7712
c32bde28 7713static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7714 PyObject *resultobj;
7715 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7716 PyObject * obj0 = 0 ;
7717 char *kwnames[] = {
7718 (char *) "self", NULL
7719 };
7720
7721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 delete arg1;
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 Py_INCREF(Py_None); resultobj = Py_None;
7732 return resultobj;
7733 fail:
7734 return NULL;
7735}
7736
7737
c32bde28 7738static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7739 PyObject *resultobj;
7740 wxFontMapper *result;
7741 char *kwnames[] = {
7742 NULL
7743 };
7744
7745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7746 {
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
7748 result = (wxFontMapper *)wxFontMapper::Get();
7749
7750 wxPyEndAllowThreads(__tstate);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7754 return resultobj;
7755 fail:
7756 return NULL;
7757}
7758
7759
c32bde28 7760static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7761 PyObject *resultobj;
7762 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7763 wxFontMapper *result;
7764 PyObject * obj0 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "mapper", NULL
7767 };
7768
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7772 {
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
7774 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7775
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7780 return resultobj;
7781 fail:
7782 return NULL;
7783}
7784
7785
c32bde28 7786static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7787 PyObject *resultobj;
7788 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7789 wxString *arg2 = 0 ;
7790 bool arg3 = (bool) True ;
7791 int result;
7792 bool temp2 = False ;
7793 PyObject * obj0 = 0 ;
7794 PyObject * obj1 = 0 ;
7795 PyObject * obj2 = 0 ;
7796 char *kwnames[] = {
7797 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7798 };
7799
7800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7803 {
7804 arg2 = wxString_in_helper(obj1);
7805 if (arg2 == NULL) SWIG_fail;
7806 temp2 = True;
7807 }
7808 if (obj2) {
c32bde28 7809 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7810 if (PyErr_Occurred()) SWIG_fail;
7811 }
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
c32bde28 7819 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7820 {
7821 if (temp2)
7822 delete arg2;
7823 }
7824 return resultobj;
7825 fail:
7826 {
7827 if (temp2)
7828 delete arg2;
7829 }
7830 return NULL;
7831}
7832
7833
c32bde28 7834static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7835 PyObject *resultobj;
7836 size_t result;
7837 char *kwnames[] = {
7838 NULL
7839 };
7840
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7842 {
7843 PyThreadState* __tstate = wxPyBeginAllowThreads();
7844 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7845
7846 wxPyEndAllowThreads(__tstate);
7847 if (PyErr_Occurred()) SWIG_fail;
7848 }
c32bde28 7849 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
7850 return resultobj;
7851 fail:
7852 return NULL;
7853}
7854
7855
c32bde28 7856static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7857 PyObject *resultobj;
7858 size_t arg1 ;
7859 int result;
7860 PyObject * obj0 = 0 ;
7861 char *kwnames[] = {
7862 (char *) "n", NULL
7863 };
7864
7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
c32bde28 7866 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7867 if (PyErr_Occurred()) SWIG_fail;
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 result = (int)wxFontMapper::GetEncoding(arg1);
7871
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
c32bde28 7875 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7876 return resultobj;
7877 fail:
7878 return NULL;
7879}
7880
7881
c32bde28 7882static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7883 PyObject *resultobj;
7884 int arg1 ;
7885 wxString result;
7886 PyObject * obj0 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "encoding", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
c32bde28 7892 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7893 if (PyErr_Occurred()) SWIG_fail;
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7897
7898 wxPyEndAllowThreads(__tstate);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 {
7902#if wxUSE_UNICODE
7903 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7904#else
7905 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7906#endif
7907 }
7908 return resultobj;
7909 fail:
7910 return NULL;
7911}
7912
7913
c32bde28 7914static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7915 PyObject *resultobj;
7916 int arg1 ;
7917 wxString result;
7918 PyObject * obj0 = 0 ;
7919 char *kwnames[] = {
7920 (char *) "encoding", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
c32bde28 7924 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7925 if (PyErr_Occurred()) SWIG_fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7929
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934#if wxUSE_UNICODE
7935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7936#else
7937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7938#endif
7939 }
7940 return resultobj;
7941 fail:
7942 return NULL;
7943}
7944
7945
c32bde28 7946static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7947 PyObject *resultobj;
7948 wxString *arg1 = 0 ;
7949 int result;
7950 bool temp1 = False ;
7951 PyObject * obj0 = 0 ;
7952 char *kwnames[] = {
7953 (char *) "name", NULL
7954 };
7955
7956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7957 {
7958 arg1 = wxString_in_helper(obj0);
7959 if (arg1 == NULL) SWIG_fail;
7960 temp1 = True;
7961 }
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7965
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
c32bde28 7969 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7970 {
7971 if (temp1)
7972 delete arg1;
7973 }
7974 return resultobj;
7975 fail:
7976 {
7977 if (temp1)
7978 delete arg1;
7979 }
7980 return NULL;
7981}
7982
7983
c32bde28 7984static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7985 PyObject *resultobj;
7986 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7987 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7988 PyObject * obj0 = 0 ;
7989 PyObject * obj1 = 0 ;
7990 char *kwnames[] = {
7991 (char *) "self",(char *) "config", NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7999 {
8000 PyThreadState* __tstate = wxPyBeginAllowThreads();
8001 (arg1)->SetConfig(arg2);
8002
8003 wxPyEndAllowThreads(__tstate);
8004 if (PyErr_Occurred()) SWIG_fail;
8005 }
8006 Py_INCREF(Py_None); resultobj = Py_None;
8007 return resultobj;
8008 fail:
8009 return NULL;
8010}
8011
8012
c32bde28 8013static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8014 PyObject *resultobj;
8015 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8016 wxString *arg2 = 0 ;
8017 bool temp2 = False ;
8018 PyObject * obj0 = 0 ;
8019 PyObject * obj1 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "self",(char *) "prefix", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
8025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8027 {
8028 arg2 = wxString_in_helper(obj1);
8029 if (arg2 == NULL) SWIG_fail;
8030 temp2 = True;
8031 }
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 (arg1)->SetConfigPath((wxString const &)*arg2);
8035
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 Py_INCREF(Py_None); resultobj = Py_None;
8040 {
8041 if (temp2)
8042 delete arg2;
8043 }
8044 return resultobj;
8045 fail:
8046 {
8047 if (temp2)
8048 delete arg2;
8049 }
8050 return NULL;
8051}
8052
8053
c32bde28 8054static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8055 PyObject *resultobj;
8056 wxString result;
8057 char *kwnames[] = {
8058 NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
8062 {
8063 PyThreadState* __tstate = wxPyBeginAllowThreads();
8064 result = wxFontMapper::GetDefaultConfigPath();
8065
8066 wxPyEndAllowThreads(__tstate);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 {
8070#if wxUSE_UNICODE
8071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8072#else
8073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8074#endif
8075 }
8076 return resultobj;
8077 fail:
8078 return NULL;
8079}
8080
8081
c32bde28 8082static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8083 PyObject *resultobj;
8084 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8085 int arg2 ;
8086 wxString const &arg3_defvalue = wxPyEmptyString ;
8087 wxString *arg3 = (wxString *) &arg3_defvalue ;
8088 bool arg4 = (bool) True ;
8089 PyObject *result;
8090 bool temp3 = False ;
8091 PyObject * obj0 = 0 ;
8092 PyObject * obj1 = 0 ;
8093 PyObject * obj2 = 0 ;
8094 PyObject * obj3 = 0 ;
8095 char *kwnames[] = {
8096 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
8097 };
8098
8099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8102 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8103 if (PyErr_Occurred()) SWIG_fail;
8104 if (obj2) {
8105 {
8106 arg3 = wxString_in_helper(obj2);
8107 if (arg3 == NULL) SWIG_fail;
8108 temp3 = True;
8109 }
8110 }
8111 if (obj3) {
c32bde28 8112 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 {
8116 PyThreadState* __tstate = wxPyBeginAllowThreads();
8117 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
8118
8119 wxPyEndAllowThreads(__tstate);
8120 if (PyErr_Occurred()) SWIG_fail;
8121 }
8122 resultobj = result;
8123 {
8124 if (temp3)
8125 delete arg3;
8126 }
8127 return resultobj;
8128 fail:
8129 {
8130 if (temp3)
8131 delete arg3;
8132 }
8133 return NULL;
8134}
8135
8136
c32bde28 8137static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8138 PyObject *resultobj;
8139 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8140 int arg2 ;
8141 wxString const &arg3_defvalue = wxPyEmptyString ;
8142 wxString *arg3 = (wxString *) &arg3_defvalue ;
8143 bool result;
8144 bool temp3 = False ;
8145 PyObject * obj0 = 0 ;
8146 PyObject * obj1 = 0 ;
8147 PyObject * obj2 = 0 ;
8148 char *kwnames[] = {
8149 (char *) "self",(char *) "encoding",(char *) "facename", NULL
8150 };
8151
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
8153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8155 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8156 if (PyErr_Occurred()) SWIG_fail;
8157 if (obj2) {
8158 {
8159 arg3 = wxString_in_helper(obj2);
8160 if (arg3 == NULL) SWIG_fail;
8161 temp3 = True;
8162 }
8163 }
8164 {
8165 PyThreadState* __tstate = wxPyBeginAllowThreads();
8166 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
8167
8168 wxPyEndAllowThreads(__tstate);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 }
8171 {
8172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8173 }
8174 {
8175 if (temp3)
8176 delete arg3;
8177 }
8178 return resultobj;
8179 fail:
8180 {
8181 if (temp3)
8182 delete arg3;
8183 }
8184 return NULL;
8185}
8186
8187
c32bde28 8188static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8189 PyObject *resultobj;
8190 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8191 wxWindow *arg2 = (wxWindow *) 0 ;
8192 PyObject * obj0 = 0 ;
8193 PyObject * obj1 = 0 ;
8194 char *kwnames[] = {
8195 (char *) "self",(char *) "parent", NULL
8196 };
8197
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8203 {
8204 PyThreadState* __tstate = wxPyBeginAllowThreads();
8205 (arg1)->SetDialogParent(arg2);
8206
8207 wxPyEndAllowThreads(__tstate);
8208 if (PyErr_Occurred()) SWIG_fail;
8209 }
8210 Py_INCREF(Py_None); resultobj = Py_None;
8211 return resultobj;
8212 fail:
8213 return NULL;
8214}
8215
8216
c32bde28 8217static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8218 PyObject *resultobj;
8219 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8220 wxString *arg2 = 0 ;
8221 bool temp2 = False ;
8222 PyObject * obj0 = 0 ;
8223 PyObject * obj1 = 0 ;
8224 char *kwnames[] = {
8225 (char *) "self",(char *) "title", NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8231 {
8232 arg2 = wxString_in_helper(obj1);
8233 if (arg2 == NULL) SWIG_fail;
8234 temp2 = True;
8235 }
8236 {
8237 PyThreadState* __tstate = wxPyBeginAllowThreads();
8238 (arg1)->SetDialogTitle((wxString const &)*arg2);
8239
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) SWIG_fail;
8242 }
8243 Py_INCREF(Py_None); resultobj = Py_None;
8244 {
8245 if (temp2)
8246 delete arg2;
8247 }
8248 return resultobj;
8249 fail:
8250 {
8251 if (temp2)
8252 delete arg2;
8253 }
8254 return NULL;
8255}
8256
8257
c32bde28 8258static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8259 PyObject *obj;
8260 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8261 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8262 Py_INCREF(obj);
8263 return Py_BuildValue((char *)"");
8264}
c32bde28 8265static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8266 PyObject *resultobj;
8267 int arg1 ;
8268 int arg2 ;
8269 int arg3 ;
8270 int arg4 ;
8271 bool arg5 = (bool) False ;
8272 wxString const &arg6_defvalue = wxPyEmptyString ;
8273 wxString *arg6 = (wxString *) &arg6_defvalue ;
8274 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8275 wxFont *result;
8276 bool temp6 = False ;
8277 PyObject * obj0 = 0 ;
8278 PyObject * obj1 = 0 ;
8279 PyObject * obj2 = 0 ;
8280 PyObject * obj3 = 0 ;
8281 PyObject * obj4 = 0 ;
8282 PyObject * obj5 = 0 ;
8283 PyObject * obj6 = 0 ;
8284 char *kwnames[] = {
8285 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8286 };
8287
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c32bde28 8289 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 8290 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8291 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 8292 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8293 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 8294 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8295 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
8296 if (PyErr_Occurred()) SWIG_fail;
8297 if (obj4) {
c32bde28 8298 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 if (obj5) {
8302 {
8303 arg6 = wxString_in_helper(obj5);
8304 if (arg6 == NULL) SWIG_fail;
8305 temp6 = True;
8306 }
8307 }
8308 if (obj6) {
c32bde28 8309 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
8310 if (PyErr_Occurred()) SWIG_fail;
8311 }
8312 {
0439c23b 8313 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8314 PyThreadState* __tstate = wxPyBeginAllowThreads();
8315 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8316
8317 wxPyEndAllowThreads(__tstate);
110da5b0 8318 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8319 }
8320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8321 {
8322 if (temp6)
8323 delete arg6;
8324 }
8325 return resultobj;
8326 fail:
8327 {
8328 if (temp6)
8329 delete arg6;
8330 }
8331 return NULL;
8332}
8333
8334
c32bde28 8335static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8336 PyObject *resultobj;
8337 wxFont *arg1 = (wxFont *) 0 ;
8338 PyObject * obj0 = 0 ;
8339 char *kwnames[] = {
8340 (char *) "self", NULL
8341 };
8342
8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 delete arg1;
8349
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 Py_INCREF(Py_None); resultobj = Py_None;
8354 return resultobj;
8355 fail:
8356 return NULL;
8357}
8358
8359
c32bde28 8360static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8361 PyObject *resultobj;
8362 wxNativeFontInfo *arg1 = 0 ;
8363 wxFont *result;
8364 PyObject * obj0 = 0 ;
8365 char *kwnames[] = {
8366 (char *) "info", NULL
8367 };
8368
8369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8371 SWIG_POINTER_EXCEPTION | 0)) == -1)
8372 SWIG_fail;
8373 if (arg1 == NULL) {
8374 PyErr_SetString(PyExc_TypeError,"null reference");
8375 SWIG_fail;
8376 }
8377 {
0439c23b 8378 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8379 PyThreadState* __tstate = wxPyBeginAllowThreads();
8380 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8381
8382 wxPyEndAllowThreads(__tstate);
110da5b0 8383 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8384 }
8385 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8386 return resultobj;
8387 fail:
8388 return NULL;
8389}
8390
8391
c32bde28 8392static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8393 PyObject *resultobj;
8394 wxString *arg1 = 0 ;
8395 wxFont *result;
8396 bool temp1 = False ;
8397 PyObject * obj0 = 0 ;
8398 char *kwnames[] = {
8399 (char *) "info", NULL
8400 };
8401
8402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8403 {
8404 arg1 = wxString_in_helper(obj0);
8405 if (arg1 == NULL) SWIG_fail;
8406 temp1 = True;
8407 }
8408 {
0439c23b 8409 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8410 PyThreadState* __tstate = wxPyBeginAllowThreads();
8411 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8412
8413 wxPyEndAllowThreads(__tstate);
110da5b0 8414 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8415 }
8416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8417 {
8418 if (temp1)
8419 delete arg1;
8420 }
8421 return resultobj;
8422 fail:
8423 {
8424 if (temp1)
8425 delete arg1;
8426 }
8427 return NULL;
8428}
8429
8430
c32bde28 8431static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8432 PyObject *resultobj;
8433 int arg1 ;
8434 int arg2 ;
8435 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8436 wxString const &arg4_defvalue = wxPyEmptyString ;
8437 wxString *arg4 = (wxString *) &arg4_defvalue ;
8438 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8439 wxFont *result;
8440 bool temp4 = False ;
8441 PyObject * obj0 = 0 ;
8442 PyObject * obj1 = 0 ;
8443 PyObject * obj2 = 0 ;
8444 PyObject * obj3 = 0 ;
8445 PyObject * obj4 = 0 ;
8446 char *kwnames[] = {
8447 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8448 };
8449
8450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
c32bde28 8451 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 8452 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8453 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8454 if (PyErr_Occurred()) SWIG_fail;
8455 if (obj2) {
c32bde28 8456 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 if (obj3) {
8460 {
8461 arg4 = wxString_in_helper(obj3);
8462 if (arg4 == NULL) SWIG_fail;
8463 temp4 = True;
8464 }
8465 }
8466 if (obj4) {
c32bde28 8467 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 {
0439c23b 8471 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8474
8475 wxPyEndAllowThreads(__tstate);
110da5b0 8476 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8477 }
8478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8479 {
8480 if (temp4)
8481 delete arg4;
8482 }
8483 return resultobj;
8484 fail:
8485 {
8486 if (temp4)
8487 delete arg4;
8488 }
8489 return NULL;
8490}
8491
8492
c32bde28 8493static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8494 PyObject *resultobj;
8495 wxFont *arg1 = (wxFont *) 0 ;
8496 bool result;
8497 PyObject * obj0 = 0 ;
8498 char *kwnames[] = {
8499 (char *) "self", NULL
8500 };
8501
8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 result = (bool)((wxFont const *)arg1)->Ok();
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 {
8513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8514 }
8515 return resultobj;
8516 fail:
8517 return NULL;
8518}
8519
8520
c32bde28 8521static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8522 PyObject *resultobj;
8523 wxFont *arg1 = (wxFont *) 0 ;
8524 wxFont *arg2 = (wxFont *) 0 ;
8525 bool result;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 char *kwnames[] = {
8529 (char *) "self",(char *) "other", NULL
8530 };
8531
8532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8537 {
8538 PyThreadState* __tstate = wxPyBeginAllowThreads();
8539 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8540
8541 wxPyEndAllowThreads(__tstate);
8542 if (PyErr_Occurred()) SWIG_fail;
8543 }
8544 {
8545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8546 }
8547 return resultobj;
8548 fail:
8549 return NULL;
8550}
8551
8552
c32bde28 8553static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8554 PyObject *resultobj;
8555 wxFont *arg1 = (wxFont *) 0 ;
8556 wxFont *arg2 = (wxFont *) 0 ;
8557 bool result;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 char *kwnames[] = {
8561 (char *) "self",(char *) "other", NULL
8562 };
8563
8564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 {
8577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8578 }
8579 return resultobj;
8580 fail:
8581 return NULL;
8582}
8583
8584
c32bde28 8585static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8586 PyObject *resultobj;
8587 wxFont *arg1 = (wxFont *) 0 ;
8588 int result;
8589 PyObject * obj0 = 0 ;
8590 char *kwnames[] = {
8591 (char *) "self", NULL
8592 };
8593
8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8597 {
8598 PyThreadState* __tstate = wxPyBeginAllowThreads();
8599 result = (int)((wxFont const *)arg1)->GetPointSize();
8600
8601 wxPyEndAllowThreads(__tstate);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
c32bde28 8604 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8605 return resultobj;
8606 fail:
8607 return NULL;
8608}
8609
8610
c32bde28 8611static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8612 PyObject *resultobj;
8613 wxFont *arg1 = (wxFont *) 0 ;
8614 int result;
8615 PyObject * obj0 = 0 ;
8616 char *kwnames[] = {
8617 (char *) "self", NULL
8618 };
8619
8620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 result = (int)((wxFont const *)arg1)->GetFamily();
8626
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
c32bde28 8630 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8631 return resultobj;
8632 fail:
8633 return NULL;
8634}
8635
8636
c32bde28 8637static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8638 PyObject *resultobj;
8639 wxFont *arg1 = (wxFont *) 0 ;
8640 int result;
8641 PyObject * obj0 = 0 ;
8642 char *kwnames[] = {
8643 (char *) "self", NULL
8644 };
8645
8646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (int)((wxFont const *)arg1)->GetStyle();
8652
8653 wxPyEndAllowThreads(__tstate);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 }
c32bde28 8656 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8657 return resultobj;
8658 fail:
8659 return NULL;
8660}
8661
8662
c32bde28 8663static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8664 PyObject *resultobj;
8665 wxFont *arg1 = (wxFont *) 0 ;
8666 int result;
8667 PyObject * obj0 = 0 ;
8668 char *kwnames[] = {
8669 (char *) "self", NULL
8670 };
8671
8672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8675 {
8676 PyThreadState* __tstate = wxPyBeginAllowThreads();
8677 result = (int)((wxFont const *)arg1)->GetWeight();
8678
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
c32bde28 8682 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8683 return resultobj;
8684 fail:
8685 return NULL;
8686}
8687
8688
c32bde28 8689static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8690 PyObject *resultobj;
8691 wxFont *arg1 = (wxFont *) 0 ;
8692 bool result;
8693 PyObject * obj0 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 {
8709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8710 }
8711 return resultobj;
8712 fail:
8713 return NULL;
8714}
8715
8716
c32bde28 8717static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8718 PyObject *resultobj;
8719 wxFont *arg1 = (wxFont *) 0 ;
8720 wxString result;
8721 PyObject * obj0 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 result = ((wxFont const *)arg1)->GetFaceName();
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 {
8737#if wxUSE_UNICODE
8738 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8739#else
8740 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8741#endif
8742 }
8743 return resultobj;
8744 fail:
8745 return NULL;
8746}
8747
8748
c32bde28 8749static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8750 PyObject *resultobj;
8751 wxFont *arg1 = (wxFont *) 0 ;
8752 int result;
8753 PyObject * obj0 = 0 ;
8754 char *kwnames[] = {
8755 (char *) "self", NULL
8756 };
8757
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8761 {
8762 PyThreadState* __tstate = wxPyBeginAllowThreads();
8763 result = (int)((wxFont const *)arg1)->GetEncoding();
8764
8765 wxPyEndAllowThreads(__tstate);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
c32bde28 8768 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8769 return resultobj;
8770 fail:
8771 return NULL;
8772}
8773
8774
c32bde28 8775static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8776 PyObject *resultobj;
8777 wxFont *arg1 = (wxFont *) 0 ;
8778 wxNativeFontInfo *result;
8779 PyObject * obj0 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "self", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8795 return resultobj;
8796 fail:
8797 return NULL;
8798}
8799
8800
c32bde28 8801static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8802 PyObject *resultobj;
8803 wxFont *arg1 = (wxFont *) 0 ;
8804 bool result;
8805 PyObject * obj0 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "self", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8816
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 {
8821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8822 }
8823 return resultobj;
8824 fail:
8825 return NULL;
8826}
8827
8828
c32bde28 8829static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8830 PyObject *resultobj;
8831 wxFont *arg1 = (wxFont *) 0 ;
8832 wxString result;
8833 PyObject * obj0 = 0 ;
8834 char *kwnames[] = {
8835 (char *) "self", NULL
8836 };
8837
8838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8841 {
8842 PyThreadState* __tstate = wxPyBeginAllowThreads();
8843 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8844
8845 wxPyEndAllowThreads(__tstate);
8846 if (PyErr_Occurred()) SWIG_fail;
8847 }
8848 {
8849#if wxUSE_UNICODE
8850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8851#else
8852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8853#endif
8854 }
8855 return resultobj;
8856 fail:
8857 return NULL;
8858}
8859
8860
c32bde28 8861static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8862 PyObject *resultobj;
8863 wxFont *arg1 = (wxFont *) 0 ;
8864 wxString result;
8865 PyObject * obj0 = 0 ;
8866 char *kwnames[] = {
8867 (char *) "self", NULL
8868 };
8869
8870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8873 {
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
8875 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8876
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 {
8881#if wxUSE_UNICODE
8882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8883#else
8884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8885#endif
8886 }
8887 return resultobj;
8888 fail:
8889 return NULL;
8890}
8891
8892
c32bde28 8893static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8894 PyObject *resultobj;
8895 wxFont *arg1 = (wxFont *) 0 ;
8896 int arg2 ;
8897 PyObject * obj0 = 0 ;
8898 PyObject * obj1 = 0 ;
8899 char *kwnames[] = {
8900 (char *) "self",(char *) "pointSize", NULL
8901 };
8902
8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8906 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8907 if (PyErr_Occurred()) SWIG_fail;
8908 {
8909 PyThreadState* __tstate = wxPyBeginAllowThreads();
8910 (arg1)->SetPointSize(arg2);
8911
8912 wxPyEndAllowThreads(__tstate);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 Py_INCREF(Py_None); resultobj = Py_None;
8916 return resultobj;
8917 fail:
8918 return NULL;
8919}
8920
8921
c32bde28 8922static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8923 PyObject *resultobj;
8924 wxFont *arg1 = (wxFont *) 0 ;
8925 int arg2 ;
8926 PyObject * obj0 = 0 ;
8927 PyObject * obj1 = 0 ;
8928 char *kwnames[] = {
8929 (char *) "self",(char *) "family", NULL
8930 };
8931
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8935 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8936 if (PyErr_Occurred()) SWIG_fail;
8937 {
8938 PyThreadState* __tstate = wxPyBeginAllowThreads();
8939 (arg1)->SetFamily(arg2);
8940
8941 wxPyEndAllowThreads(__tstate);
8942 if (PyErr_Occurred()) SWIG_fail;
8943 }
8944 Py_INCREF(Py_None); resultobj = Py_None;
8945 return resultobj;
8946 fail:
8947 return NULL;
8948}
8949
8950
c32bde28 8951static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8952 PyObject *resultobj;
8953 wxFont *arg1 = (wxFont *) 0 ;
8954 int arg2 ;
8955 PyObject * obj0 = 0 ;
8956 PyObject * obj1 = 0 ;
8957 char *kwnames[] = {
8958 (char *) "self",(char *) "style", NULL
8959 };
8960
8961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8964 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8965 if (PyErr_Occurred()) SWIG_fail;
8966 {
8967 PyThreadState* __tstate = wxPyBeginAllowThreads();
8968 (arg1)->SetStyle(arg2);
8969
8970 wxPyEndAllowThreads(__tstate);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 Py_INCREF(Py_None); resultobj = Py_None;
8974 return resultobj;
8975 fail:
8976 return NULL;
8977}
8978
8979
c32bde28 8980static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8981 PyObject *resultobj;
8982 wxFont *arg1 = (wxFont *) 0 ;
8983 int arg2 ;
8984 PyObject * obj0 = 0 ;
8985 PyObject * obj1 = 0 ;
8986 char *kwnames[] = {
8987 (char *) "self",(char *) "weight", NULL
8988 };
8989
8990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8993 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8994 if (PyErr_Occurred()) SWIG_fail;
8995 {
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 (arg1)->SetWeight(arg2);
8998
8999 wxPyEndAllowThreads(__tstate);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 Py_INCREF(Py_None); resultobj = Py_None;
9003 return resultobj;
9004 fail:
9005 return NULL;
9006}
9007
9008
c32bde28 9009static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9010 PyObject *resultobj;
9011 wxFont *arg1 = (wxFont *) 0 ;
9012 wxString *arg2 = 0 ;
9013 bool temp2 = False ;
9014 PyObject * obj0 = 0 ;
9015 PyObject * obj1 = 0 ;
9016 char *kwnames[] = {
9017 (char *) "self",(char *) "faceName", NULL
9018 };
9019
9020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
9021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9023 {
9024 arg2 = wxString_in_helper(obj1);
9025 if (arg2 == NULL) SWIG_fail;
9026 temp2 = True;
9027 }
9028 {
9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
9030 (arg1)->SetFaceName((wxString const &)*arg2);
9031
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 Py_INCREF(Py_None); resultobj = Py_None;
9036 {
9037 if (temp2)
9038 delete arg2;
9039 }
9040 return resultobj;
9041 fail:
9042 {
9043 if (temp2)
9044 delete arg2;
9045 }
9046 return NULL;
9047}
9048
9049
c32bde28 9050static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9051 PyObject *resultobj;
9052 wxFont *arg1 = (wxFont *) 0 ;
9053 bool arg2 ;
9054 PyObject * obj0 = 0 ;
9055 PyObject * obj1 = 0 ;
9056 char *kwnames[] = {
9057 (char *) "self",(char *) "underlined", NULL
9058 };
9059
9060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
9061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9063 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
9064 if (PyErr_Occurred()) SWIG_fail;
9065 {
9066 PyThreadState* __tstate = wxPyBeginAllowThreads();
9067 (arg1)->SetUnderlined(arg2);
9068
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 Py_INCREF(Py_None); resultobj = Py_None;
9073 return resultobj;
9074 fail:
9075 return NULL;
9076}
9077
9078
c32bde28 9079static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9080 PyObject *resultobj;
9081 wxFont *arg1 = (wxFont *) 0 ;
9082 int arg2 ;
9083 PyObject * obj0 = 0 ;
9084 PyObject * obj1 = 0 ;
9085 char *kwnames[] = {
9086 (char *) "self",(char *) "encoding", NULL
9087 };
9088
9089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
9090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9092 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9093 if (PyErr_Occurred()) SWIG_fail;
9094 {
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 (arg1)->SetEncoding((wxFontEncoding )arg2);
9097
9098 wxPyEndAllowThreads(__tstate);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 }
9101 Py_INCREF(Py_None); resultobj = Py_None;
9102 return resultobj;
9103 fail:
9104 return NULL;
9105}
9106
9107
c32bde28 9108static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9109 PyObject *resultobj;
9110 wxFont *arg1 = (wxFont *) 0 ;
9111 wxNativeFontInfo *arg2 = 0 ;
9112 PyObject * obj0 = 0 ;
9113 PyObject * obj1 = 0 ;
9114 char *kwnames[] = {
9115 (char *) "self",(char *) "info", NULL
9116 };
9117
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
9119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
9122 SWIG_POINTER_EXCEPTION | 0)) == -1)
9123 SWIG_fail;
9124 if (arg2 == NULL) {
9125 PyErr_SetString(PyExc_TypeError,"null reference");
9126 SWIG_fail;
9127 }
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
9131
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 Py_INCREF(Py_None); resultobj = Py_None;
9136 return resultobj;
9137 fail:
9138 return NULL;
9139}
9140
9141
c32bde28 9142static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9143 PyObject *resultobj;
9144 wxFont *arg1 = (wxFont *) 0 ;
9145 wxString *arg2 = 0 ;
9146 bool temp2 = False ;
9147 PyObject * obj0 = 0 ;
9148 PyObject * obj1 = 0 ;
9149 char *kwnames[] = {
9150 (char *) "self",(char *) "info", NULL
9151 };
9152
9153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
9154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9156 {
9157 arg2 = wxString_in_helper(obj1);
9158 if (arg2 == NULL) SWIG_fail;
9159 temp2 = True;
9160 }
9161 {
9162 PyThreadState* __tstate = wxPyBeginAllowThreads();
9163 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
9164
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 Py_INCREF(Py_None); resultobj = Py_None;
9169 {
9170 if (temp2)
9171 delete arg2;
9172 }
9173 return resultobj;
9174 fail:
9175 {
9176 if (temp2)
9177 delete arg2;
9178 }
9179 return NULL;
9180}
9181
9182
c32bde28 9183static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9184 PyObject *resultobj;
9185 wxFont *arg1 = (wxFont *) 0 ;
9186 wxString *arg2 = 0 ;
9187 bool temp2 = False ;
9188 PyObject * obj0 = 0 ;
9189 PyObject * obj1 = 0 ;
9190 char *kwnames[] = {
9191 (char *) "self",(char *) "info", NULL
9192 };
9193
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9197 {
9198 arg2 = wxString_in_helper(obj1);
9199 if (arg2 == NULL) SWIG_fail;
9200 temp2 = True;
9201 }
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9205
9206 wxPyEndAllowThreads(__tstate);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 Py_INCREF(Py_None); resultobj = Py_None;
9210 {
9211 if (temp2)
9212 delete arg2;
9213 }
9214 return resultobj;
9215 fail:
9216 {
9217 if (temp2)
9218 delete arg2;
9219 }
9220 return NULL;
9221}
9222
9223
c32bde28 9224static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9225 PyObject *resultobj;
9226 wxFont *arg1 = (wxFont *) 0 ;
9227 wxString result;
9228 PyObject * obj0 = 0 ;
9229 char *kwnames[] = {
9230 (char *) "self", NULL
9231 };
9232
9233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 result = ((wxFont const *)arg1)->GetFamilyString();
9239
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 {
9244#if wxUSE_UNICODE
9245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9246#else
9247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9248#endif
9249 }
9250 return resultobj;
9251 fail:
9252 return NULL;
9253}
9254
9255
c32bde28 9256static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9257 PyObject *resultobj;
9258 wxFont *arg1 = (wxFont *) 0 ;
9259 wxString result;
9260 PyObject * obj0 = 0 ;
9261 char *kwnames[] = {
9262 (char *) "self", NULL
9263 };
9264
9265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 result = ((wxFont const *)arg1)->GetStyleString();
9271
9272 wxPyEndAllowThreads(__tstate);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 {
9276#if wxUSE_UNICODE
9277 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9278#else
9279 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9280#endif
9281 }
9282 return resultobj;
9283 fail:
9284 return NULL;
9285}
9286
9287
c32bde28 9288static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9289 PyObject *resultobj;
9290 wxFont *arg1 = (wxFont *) 0 ;
9291 wxString result;
9292 PyObject * obj0 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = ((wxFont const *)arg1)->GetWeightString();
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 {
9308#if wxUSE_UNICODE
9309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9310#else
9311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9312#endif
9313 }
9314 return resultobj;
9315 fail:
9316 return NULL;
9317}
9318
9319
c32bde28 9320static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9321 PyObject *resultobj;
9322 wxFont *arg1 = (wxFont *) 0 ;
9323 bool arg2 = (bool) True ;
9324 PyObject * obj0 = 0 ;
9325 PyObject * obj1 = 0 ;
9326 char *kwnames[] = {
9327 (char *) "self",(char *) "no", NULL
9328 };
9329
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9333 if (obj1) {
c32bde28 9334 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 (arg1)->SetNoAntiAliasing(arg2);
9340
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 Py_INCREF(Py_None); resultobj = Py_None;
9345 return resultobj;
9346 fail:
9347 return NULL;
9348}
9349
9350
c32bde28 9351static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9352 PyObject *resultobj;
9353 wxFont *arg1 = (wxFont *) 0 ;
9354 bool result;
9355 PyObject * obj0 = 0 ;
9356 char *kwnames[] = {
9357 (char *) "self", NULL
9358 };
9359
9360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9363 {
9364 PyThreadState* __tstate = wxPyBeginAllowThreads();
b0f7404b 9365 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d55e5bfc
RD
9366
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 {
9371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9372 }
9373 return resultobj;
9374 fail:
9375 return NULL;
9376}
9377
9378
c32bde28 9379static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9380 PyObject *resultobj;
9381 int result;
9382 char *kwnames[] = {
9383 NULL
9384 };
9385
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9387 {
0439c23b 9388 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 result = (int)wxFont::GetDefaultEncoding();
9391
9392 wxPyEndAllowThreads(__tstate);
110da5b0 9393 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9394 }
c32bde28 9395 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9396 return resultobj;
9397 fail:
9398 return NULL;
9399}
9400
9401
c32bde28 9402static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9403 PyObject *resultobj;
9404 int arg1 ;
9405 PyObject * obj0 = 0 ;
9406 char *kwnames[] = {
9407 (char *) "encoding", NULL
9408 };
9409
9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
c32bde28 9411 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9412 if (PyErr_Occurred()) SWIG_fail;
9413 {
0439c23b 9414 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
9416 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9417
9418 wxPyEndAllowThreads(__tstate);
110da5b0 9419 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9420 }
9421 Py_INCREF(Py_None); resultobj = Py_None;
9422 return resultobj;
9423 fail:
9424 return NULL;
9425}
9426
9427
c32bde28 9428static PyObject * Font_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9429 PyObject *obj;
9430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9431 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9432 Py_INCREF(obj);
9433 return Py_BuildValue((char *)"");
9434}
c32bde28 9435static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9436 PyObject *resultobj;
9437 wxPyFontEnumerator *result;
9438 char *kwnames[] = {
9439 NULL
9440 };
9441
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9443 {
0439c23b 9444 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9447
9448 wxPyEndAllowThreads(__tstate);
110da5b0 9449 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9450 }
9451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9452 return resultobj;
9453 fail:
9454 return NULL;
9455}
9456
9457
c32bde28 9458static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9459 PyObject *resultobj;
9460 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9461 PyObject * obj0 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "self", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 delete arg1;
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 Py_INCREF(Py_None); resultobj = Py_None;
9477 return resultobj;
9478 fail:
9479 return NULL;
9480}
9481
9482
c32bde28 9483static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9484 PyObject *resultobj;
9485 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9486 PyObject *arg2 = (PyObject *) 0 ;
9487 PyObject *arg3 = (PyObject *) 0 ;
9488 bool arg4 ;
9489 PyObject * obj0 = 0 ;
9490 PyObject * obj1 = 0 ;
9491 PyObject * obj2 = 0 ;
9492 PyObject * obj3 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9500 arg2 = obj1;
9501 arg3 = obj2;
c32bde28 9502 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
9503 if (PyErr_Occurred()) SWIG_fail;
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 Py_INCREF(Py_None); resultobj = Py_None;
9512 return resultobj;
9513 fail:
9514 return NULL;
9515}
9516
9517
c32bde28 9518static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9519 PyObject *resultobj;
9520 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9521 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9522 bool arg3 = (bool) False ;
9523 bool result;
9524 PyObject * obj0 = 0 ;
9525 PyObject * obj1 = 0 ;
9526 PyObject * obj2 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9534 if (obj1) {
c32bde28 9535 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 if (obj2) {
c32bde28 9539 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 {
9550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9551 }
9552 return resultobj;
9553 fail:
9554 return NULL;
9555}
9556
9557
c32bde28 9558static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9559 PyObject *resultobj;
9560 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9561 wxString const &arg2_defvalue = wxPyEmptyString ;
9562 wxString *arg2 = (wxString *) &arg2_defvalue ;
9563 bool result;
9564 bool temp2 = False ;
9565 PyObject * obj0 = 0 ;
9566 PyObject * obj1 = 0 ;
9567 char *kwnames[] = {
9568 (char *) "self",(char *) "facename", NULL
9569 };
9570
9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9574 if (obj1) {
9575 {
9576 arg2 = wxString_in_helper(obj1);
9577 if (arg2 == NULL) SWIG_fail;
9578 temp2 = True;
9579 }
9580 }
9581 {
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9584
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 {
9589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9590 }
9591 {
9592 if (temp2)
9593 delete arg2;
9594 }
9595 return resultobj;
9596 fail:
9597 {
9598 if (temp2)
9599 delete arg2;
9600 }
9601 return NULL;
9602}
9603
9604
c32bde28 9605static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9606 PyObject *resultobj;
9607 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9608 PyObject *result;
9609 PyObject * obj0 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9620
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 resultobj = result;
9625 return resultobj;
9626 fail:
9627 return NULL;
9628}
9629
9630
c32bde28 9631static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9632 PyObject *resultobj;
9633 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9634 PyObject *result;
9635 PyObject * obj0 = 0 ;
9636 char *kwnames[] = {
9637 (char *) "self", NULL
9638 };
9639
9640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = result;
9651 return resultobj;
9652 fail:
9653 return NULL;
9654}
9655
9656
c32bde28 9657static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9658 PyObject *obj;
9659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9660 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9661 Py_INCREF(obj);
9662 return Py_BuildValue((char *)"");
9663}
c32bde28 9664static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9665 PyObject *resultobj;
9666 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9667 int arg2 ;
9668 PyObject * obj0 = 0 ;
9669 PyObject * obj1 = 0 ;
9670 char *kwnames[] = {
9671 (char *) "self",(char *) "Language", NULL
9672 };
9673
9674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9677 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9678 if (PyErr_Occurred()) SWIG_fail;
9679 if (arg1) (arg1)->Language = arg2;
9680
9681 Py_INCREF(Py_None); resultobj = Py_None;
9682 return resultobj;
9683 fail:
9684 return NULL;
9685}
9686
9687
c32bde28 9688static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9689 PyObject *resultobj;
9690 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9691 int result;
9692 PyObject * obj0 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 result = (int) ((arg1)->Language);
9701
c32bde28 9702 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9703 return resultobj;
9704 fail:
9705 return NULL;
9706}
9707
9708
c32bde28 9709static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9710 PyObject *resultobj;
9711 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9712 wxString *arg2 = (wxString *) 0 ;
9713 bool temp2 = False ;
9714 PyObject * obj0 = 0 ;
9715 PyObject * obj1 = 0 ;
9716 char *kwnames[] = {
9717 (char *) "self",(char *) "CanonicalName", NULL
9718 };
9719
9720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9723 {
9724 arg2 = wxString_in_helper(obj1);
9725 if (arg2 == NULL) SWIG_fail;
9726 temp2 = True;
9727 }
9728 if (arg1) (arg1)->CanonicalName = *arg2;
9729
9730 Py_INCREF(Py_None); resultobj = Py_None;
9731 {
9732 if (temp2)
9733 delete arg2;
9734 }
9735 return resultobj;
9736 fail:
9737 {
9738 if (temp2)
9739 delete arg2;
9740 }
9741 return NULL;
9742}
9743
9744
c32bde28 9745static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9746 PyObject *resultobj;
9747 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9748 wxString *result;
9749 PyObject * obj0 = 0 ;
9750 char *kwnames[] = {
9751 (char *) "self", NULL
9752 };
9753
9754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9757 result = (wxString *)& ((arg1)->CanonicalName);
9758
9759 {
9760#if wxUSE_UNICODE
9761 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9762#else
9763 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9764#endif
9765 }
9766 return resultobj;
9767 fail:
9768 return NULL;
9769}
9770
9771
c32bde28 9772static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9773 PyObject *resultobj;
9774 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9775 wxString *arg2 = (wxString *) 0 ;
9776 bool temp2 = False ;
9777 PyObject * obj0 = 0 ;
9778 PyObject * obj1 = 0 ;
9779 char *kwnames[] = {
9780 (char *) "self",(char *) "Description", NULL
9781 };
9782
9783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9786 {
9787 arg2 = wxString_in_helper(obj1);
9788 if (arg2 == NULL) SWIG_fail;
9789 temp2 = True;
9790 }
9791 if (arg1) (arg1)->Description = *arg2;
9792
9793 Py_INCREF(Py_None); resultobj = Py_None;
9794 {
9795 if (temp2)
9796 delete arg2;
9797 }
9798 return resultobj;
9799 fail:
9800 {
9801 if (temp2)
9802 delete arg2;
9803 }
9804 return NULL;
9805}
9806
9807
c32bde28 9808static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9809 PyObject *resultobj;
9810 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9811 wxString *result;
9812 PyObject * obj0 = 0 ;
9813 char *kwnames[] = {
9814 (char *) "self", NULL
9815 };
9816
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9820 result = (wxString *)& ((arg1)->Description);
9821
9822 {
9823#if wxUSE_UNICODE
9824 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9825#else
9826 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9827#endif
9828 }
9829 return resultobj;
9830 fail:
9831 return NULL;
9832}
9833
9834
c32bde28 9835static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9836 PyObject *obj;
9837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9838 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9839 Py_INCREF(obj);
9840 return Py_BuildValue((char *)"");
9841}
c32bde28 9842static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9843 PyObject *resultobj;
79fccf9d 9844 int arg1 = (int) -1 ;
d55e5bfc
RD
9845 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9846 wxLocale *result;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 char *kwnames[] = {
9850 (char *) "language",(char *) "flags", NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9854 if (obj0) {
c32bde28 9855 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9856 if (PyErr_Occurred()) SWIG_fail;
9857 }
9858 if (obj1) {
c32bde28 9859 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9860 if (PyErr_Occurred()) SWIG_fail;
9861 }
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 9864 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9870 return resultobj;
9871 fail:
9872 return NULL;
9873}
9874
9875
c32bde28 9876static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9877 PyObject *resultobj;
9878 wxLocale *arg1 = (wxLocale *) 0 ;
9879 PyObject * obj0 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 delete arg1;
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 Py_INCREF(Py_None); resultobj = Py_None;
9895 return resultobj;
9896 fail:
9897 return NULL;
9898}
9899
9900
c32bde28 9901static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9902 PyObject *resultobj;
9903 wxLocale *arg1 = (wxLocale *) 0 ;
9904 wxString *arg2 = 0 ;
9905 wxString const &arg3_defvalue = wxPyEmptyString ;
9906 wxString *arg3 = (wxString *) &arg3_defvalue ;
9907 wxString const &arg4_defvalue = wxPyEmptyString ;
9908 wxString *arg4 = (wxString *) &arg4_defvalue ;
9909 bool arg5 = (bool) True ;
9910 bool arg6 = (bool) False ;
9911 bool result;
9912 bool temp2 = False ;
9913 bool temp3 = False ;
9914 bool temp4 = False ;
9915 PyObject * obj0 = 0 ;
9916 PyObject * obj1 = 0 ;
9917 PyObject * obj2 = 0 ;
9918 PyObject * obj3 = 0 ;
9919 PyObject * obj4 = 0 ;
9920 PyObject * obj5 = 0 ;
9921 char *kwnames[] = {
9922 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9923 };
9924
9925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9928 {
9929 arg2 = wxString_in_helper(obj1);
9930 if (arg2 == NULL) SWIG_fail;
9931 temp2 = True;
9932 }
9933 if (obj2) {
9934 {
9935 arg3 = wxString_in_helper(obj2);
9936 if (arg3 == NULL) SWIG_fail;
9937 temp3 = True;
9938 }
9939 }
9940 if (obj3) {
9941 {
9942 arg4 = wxString_in_helper(obj3);
9943 if (arg4 == NULL) SWIG_fail;
9944 temp4 = True;
9945 }
9946 }
9947 if (obj4) {
c32bde28 9948 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 if (obj5) {
c32bde28 9952 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 {
9963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9964 }
9965 {
9966 if (temp2)
9967 delete arg2;
9968 }
9969 {
9970 if (temp3)
9971 delete arg3;
9972 }
9973 {
9974 if (temp4)
9975 delete arg4;
9976 }
9977 return resultobj;
9978 fail:
9979 {
9980 if (temp2)
9981 delete arg2;
9982 }
9983 {
9984 if (temp3)
9985 delete arg3;
9986 }
9987 {
9988 if (temp4)
9989 delete arg4;
9990 }
9991 return NULL;
9992}
9993
9994
c32bde28 9995static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9996 PyObject *resultobj;
9997 wxLocale *arg1 = (wxLocale *) 0 ;
9998 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9999 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
10000 bool result;
10001 PyObject * obj0 = 0 ;
10002 PyObject * obj1 = 0 ;
10003 PyObject * obj2 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "self",(char *) "language",(char *) "flags", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
10009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10011 if (obj1) {
c32bde28 10012 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 if (obj2) {
c32bde28 10016 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10017 if (PyErr_Occurred()) SWIG_fail;
10018 }
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 result = (bool)(arg1)->Init(arg2,arg3);
10022
10023 wxPyEndAllowThreads(__tstate);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 }
10026 {
10027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10028 }
10029 return resultobj;
10030 fail:
10031 return NULL;
10032}
10033
10034
c32bde28 10035static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10036 PyObject *resultobj;
10037 int result;
10038 char *kwnames[] = {
10039 NULL
10040 };
10041
10042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 result = (int)wxLocale::GetSystemLanguage();
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
c32bde28 10050 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10051 return resultobj;
10052 fail:
10053 return NULL;
10054}
10055
10056
c32bde28 10057static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10058 PyObject *resultobj;
10059 int result;
10060 char *kwnames[] = {
10061 NULL
10062 };
10063
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 result = (int)wxLocale::GetSystemEncoding();
10068
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
c32bde28 10072 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10073 return resultobj;
10074 fail:
10075 return NULL;
10076}
10077
10078
c32bde28 10079static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10080 PyObject *resultobj;
10081 wxString result;
10082 char *kwnames[] = {
10083 NULL
10084 };
10085
10086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
10087 {
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 result = wxLocale::GetSystemEncodingName();
10090
10091 wxPyEndAllowThreads(__tstate);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 {
10095#if wxUSE_UNICODE
10096 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10097#else
10098 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10099#endif
10100 }
10101 return resultobj;
10102 fail:
10103 return NULL;
10104}
10105
10106
c32bde28 10107static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10108 PyObject *resultobj;
10109 wxLocale *arg1 = (wxLocale *) 0 ;
10110 bool result;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
10117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (bool)((wxLocale const *)arg1)->IsOk();
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 {
10127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10128 }
10129 return resultobj;
10130 fail:
10131 return NULL;
10132}
10133
10134
c32bde28 10135static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10136 PyObject *resultobj;
10137 wxLocale *arg1 = (wxLocale *) 0 ;
10138 wxString result;
10139 PyObject * obj0 = 0 ;
10140 char *kwnames[] = {
10141 (char *) "self", NULL
10142 };
10143
10144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
10145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10147 {
10148 PyThreadState* __tstate = wxPyBeginAllowThreads();
10149 result = ((wxLocale const *)arg1)->GetLocale();
10150
10151 wxPyEndAllowThreads(__tstate);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 {
10155#if wxUSE_UNICODE
10156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10157#else
10158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10159#endif
10160 }
10161 return resultobj;
10162 fail:
10163 return NULL;
10164}
10165
10166
c32bde28 10167static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10168 PyObject *resultobj;
10169 wxLocale *arg1 = (wxLocale *) 0 ;
10170 int result;
10171 PyObject * obj0 = 0 ;
10172 char *kwnames[] = {
10173 (char *) "self", NULL
10174 };
10175
10176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
10177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10179 {
10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
10181 result = (int)((wxLocale const *)arg1)->GetLanguage();
10182
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
c32bde28 10186 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10187 return resultobj;
10188 fail:
10189 return NULL;
10190}
10191
10192
c32bde28 10193static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10194 PyObject *resultobj;
10195 wxLocale *arg1 = (wxLocale *) 0 ;
10196 wxString result;
10197 PyObject * obj0 = 0 ;
10198 char *kwnames[] = {
10199 (char *) "self", NULL
10200 };
10201
10202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 result = ((wxLocale const *)arg1)->GetSysName();
10208
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 {
10213#if wxUSE_UNICODE
10214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10215#else
10216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10217#endif
10218 }
10219 return resultobj;
10220 fail:
10221 return NULL;
10222}
10223
10224
c32bde28 10225static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10226 PyObject *resultobj;
10227 wxLocale *arg1 = (wxLocale *) 0 ;
10228 wxString result;
10229 PyObject * obj0 = 0 ;
10230 char *kwnames[] = {
10231 (char *) "self", NULL
10232 };
10233
10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10237 {
10238 PyThreadState* __tstate = wxPyBeginAllowThreads();
10239 result = ((wxLocale const *)arg1)->GetCanonicalName();
10240
10241 wxPyEndAllowThreads(__tstate);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 }
10244 {
10245#if wxUSE_UNICODE
10246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10247#else
10248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10249#endif
10250 }
10251 return resultobj;
10252 fail:
10253 return NULL;
10254}
10255
10256
c32bde28 10257static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10258 PyObject *resultobj;
10259 wxString *arg1 = 0 ;
10260 bool temp1 = False ;
10261 PyObject * obj0 = 0 ;
10262 char *kwnames[] = {
10263 (char *) "prefix", NULL
10264 };
10265
10266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10267 {
10268 arg1 = wxString_in_helper(obj0);
10269 if (arg1 == NULL) SWIG_fail;
10270 temp1 = True;
10271 }
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10275
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 Py_INCREF(Py_None); resultobj = Py_None;
10280 {
10281 if (temp1)
10282 delete arg1;
10283 }
10284 return resultobj;
10285 fail:
10286 {
10287 if (temp1)
10288 delete arg1;
10289 }
10290 return NULL;
10291}
10292
10293
c32bde28 10294static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10295 PyObject *resultobj;
10296 wxLocale *arg1 = (wxLocale *) 0 ;
10297 wxString *arg2 = 0 ;
10298 bool result;
10299 bool temp2 = False ;
10300 PyObject * obj0 = 0 ;
10301 PyObject * obj1 = 0 ;
10302 char *kwnames[] = {
10303 (char *) "self",(char *) "szDomain", NULL
10304 };
10305
10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10309 {
10310 arg2 = wxString_in_helper(obj1);
10311 if (arg2 == NULL) SWIG_fail;
10312 temp2 = True;
10313 }
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
10316 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10317
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
10321 {
10322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10323 }
10324 {
10325 if (temp2)
10326 delete arg2;
10327 }
10328 return resultobj;
10329 fail:
10330 {
10331 if (temp2)
10332 delete arg2;
10333 }
10334 return NULL;
10335}
10336
10337
c32bde28 10338static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10339 PyObject *resultobj;
10340 wxLocale *arg1 = (wxLocale *) 0 ;
10341 wxString *arg2 = 0 ;
10342 bool result;
10343 bool temp2 = False ;
10344 PyObject * obj0 = 0 ;
10345 PyObject * obj1 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "self",(char *) "szDomain", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10353 {
10354 arg2 = wxString_in_helper(obj1);
10355 if (arg2 == NULL) SWIG_fail;
10356 temp2 = True;
10357 }
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10361
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 {
10366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10367 }
10368 {
10369 if (temp2)
10370 delete arg2;
10371 }
10372 return resultobj;
10373 fail:
10374 {
10375 if (temp2)
10376 delete arg2;
10377 }
10378 return NULL;
10379}
10380
10381
c32bde28 10382static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10383 PyObject *resultobj;
10384 int arg1 ;
10385 wxLanguageInfo *result;
10386 PyObject * obj0 = 0 ;
10387 char *kwnames[] = {
10388 (char *) "lang", NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
c32bde28 10392 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10393 if (PyErr_Occurred()) SWIG_fail;
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10402 return resultobj;
10403 fail:
10404 return NULL;
10405}
10406
10407
c32bde28 10408static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10409 PyObject *resultobj;
10410 int arg1 ;
10411 wxString result;
10412 PyObject * obj0 = 0 ;
10413 char *kwnames[] = {
10414 (char *) "lang", NULL
10415 };
10416
10417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
c32bde28 10418 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10419 if (PyErr_Occurred()) SWIG_fail;
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 result = wxLocale::GetLanguageName(arg1);
10423
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 {
10428#if wxUSE_UNICODE
10429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10430#else
10431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10432#endif
10433 }
10434 return resultobj;
10435 fail:
10436 return NULL;
10437}
10438
10439
c32bde28 10440static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10441 PyObject *resultobj;
10442 wxString *arg1 = 0 ;
10443 wxLanguageInfo *result;
10444 bool temp1 = False ;
10445 PyObject * obj0 = 0 ;
10446 char *kwnames[] = {
10447 (char *) "locale", NULL
10448 };
10449
10450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10451 {
10452 arg1 = wxString_in_helper(obj0);
10453 if (arg1 == NULL) SWIG_fail;
10454 temp1 = True;
10455 }
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10464 {
10465 if (temp1)
10466 delete arg1;
10467 }
10468 return resultobj;
10469 fail:
10470 {
10471 if (temp1)
10472 delete arg1;
10473 }
10474 return NULL;
10475}
10476
10477
c32bde28 10478static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10479 PyObject *resultobj;
10480 wxLanguageInfo *arg1 = 0 ;
10481 PyObject * obj0 = 0 ;
10482 char *kwnames[] = {
10483 (char *) "info", NULL
10484 };
10485
10486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10488 SWIG_POINTER_EXCEPTION | 0)) == -1)
10489 SWIG_fail;
10490 if (arg1 == NULL) {
10491 PyErr_SetString(PyExc_TypeError,"null reference");
10492 SWIG_fail;
10493 }
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10497
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 Py_INCREF(Py_None); resultobj = Py_None;
10502 return resultobj;
10503 fail:
10504 return NULL;
10505}
10506
10507
c32bde28 10508static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10509 PyObject *resultobj;
10510 wxLocale *arg1 = (wxLocale *) 0 ;
10511 wxString *arg2 = 0 ;
10512 wxString const &arg3_defvalue = wxPyEmptyString ;
10513 wxString *arg3 = (wxString *) &arg3_defvalue ;
10514 wxString result;
10515 bool temp2 = False ;
10516 bool temp3 = False ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 char *kwnames[] = {
10521 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10522 };
10523
10524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10527 {
10528 arg2 = wxString_in_helper(obj1);
10529 if (arg2 == NULL) SWIG_fail;
10530 temp2 = True;
10531 }
10532 if (obj2) {
10533 {
10534 arg3 = wxString_in_helper(obj2);
10535 if (arg3 == NULL) SWIG_fail;
10536 temp3 = True;
10537 }
10538 }
10539 {
10540 PyThreadState* __tstate = wxPyBeginAllowThreads();
10541 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10542
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 {
10547#if wxUSE_UNICODE
10548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10549#else
10550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10551#endif
10552 }
10553 {
10554 if (temp2)
10555 delete arg2;
10556 }
10557 {
10558 if (temp3)
10559 delete arg3;
10560 }
10561 return resultobj;
10562 fail:
10563 {
10564 if (temp2)
10565 delete arg2;
10566 }
10567 {
10568 if (temp3)
10569 delete arg3;
10570 }
10571 return NULL;
10572}
10573
10574
c32bde28 10575static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10576 PyObject *resultobj;
10577 wxLocale *arg1 = (wxLocale *) 0 ;
10578 wxString *result;
10579 PyObject * obj0 = 0 ;
10580 char *kwnames[] = {
10581 (char *) "self", NULL
10582 };
10583
10584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 {
10590 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10591 result = (wxString *) &_result_ref;
10592 }
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 {
10598#if wxUSE_UNICODE
10599 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10600#else
10601 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10602#endif
10603 }
10604 return resultobj;
10605 fail:
10606 return NULL;
10607}
10608
10609
c32bde28 10610static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10611 PyObject *obj;
10612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10613 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10614 Py_INCREF(obj);
10615 return Py_BuildValue((char *)"");
10616}
c32bde28 10617static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10618 PyObject *resultobj;
10619 wxLocale *result;
10620 char *kwnames[] = {
10621 NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10625 {
10626 PyThreadState* __tstate = wxPyBeginAllowThreads();
10627 result = (wxLocale *)wxGetLocale();
10628
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10633 return resultobj;
10634 fail:
10635 return NULL;
10636}
10637
10638
c32bde28 10639static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
10640 PyObject *resultobj;
10641 wxString *arg1 = 0 ;
10642 wxString result;
10643 bool temp1 = False ;
10644 PyObject * obj0 = 0 ;
10645
10646 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10647 {
10648 arg1 = wxString_in_helper(obj0);
10649 if (arg1 == NULL) SWIG_fail;
10650 temp1 = True;
10651 }
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 result = wxGetTranslation((wxString const &)*arg1);
10655
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 {
10660#if wxUSE_UNICODE
10661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10662#else
10663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10664#endif
10665 }
10666 {
10667 if (temp1)
10668 delete arg1;
10669 }
10670 return resultobj;
10671 fail:
10672 {
10673 if (temp1)
10674 delete arg1;
10675 }
10676 return NULL;
10677}
10678
10679
c32bde28 10680static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
10681 PyObject *resultobj;
10682 wxString *arg1 = 0 ;
10683 wxString *arg2 = 0 ;
10684 size_t arg3 ;
10685 wxString result;
10686 bool temp1 = False ;
10687 bool temp2 = False ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 PyObject * obj2 = 0 ;
10691
10692 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10693 {
10694 arg1 = wxString_in_helper(obj0);
10695 if (arg1 == NULL) SWIG_fail;
10696 temp1 = True;
10697 }
10698 {
10699 arg2 = wxString_in_helper(obj1);
10700 if (arg2 == NULL) SWIG_fail;
10701 temp2 = True;
10702 }
c32bde28 10703 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
d55e5bfc
RD
10704 if (PyErr_Occurred()) SWIG_fail;
10705 {
10706 PyThreadState* __tstate = wxPyBeginAllowThreads();
10707 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10708
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 {
10713#if wxUSE_UNICODE
10714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10715#else
10716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10717#endif
10718 }
10719 {
10720 if (temp1)
10721 delete arg1;
10722 }
10723 {
10724 if (temp2)
10725 delete arg2;
10726 }
10727 return resultobj;
10728 fail:
10729 {
10730 if (temp1)
10731 delete arg1;
10732 }
10733 {
10734 if (temp2)
10735 delete arg2;
10736 }
10737 return NULL;
10738}
10739
10740
10741static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10742 int argc;
10743 PyObject *argv[4];
10744 int ii;
10745
10746 argc = PyObject_Length(args);
10747 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10748 argv[ii] = PyTuple_GetItem(args,ii);
10749 }
10750 if (argc == 1) {
10751 int _v;
10752 {
10753 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10754 }
10755 if (_v) {
10756 return _wrap_GetTranslation__SWIG_0(self,args);
10757 }
10758 }
10759 if (argc == 3) {
10760 int _v;
10761 {
10762 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10763 }
10764 if (_v) {
10765 {
10766 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10767 }
10768 if (_v) {
c32bde28 10769 _v = SWIG_Check_unsigned_SS_long(argv[2]);
d55e5bfc
RD
10770 if (_v) {
10771 return _wrap_GetTranslation__SWIG_1(self,args);
10772 }
10773 }
10774 }
10775 }
10776
10777 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10778 return NULL;
10779}
10780
10781
c32bde28 10782static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10783 PyObject *resultobj;
10784 wxEncodingConverter *result;
10785 char *kwnames[] = {
10786 NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 result = (wxEncodingConverter *)new wxEncodingConverter();
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10798 return resultobj;
10799 fail:
10800 return NULL;
10801}
10802
10803
c32bde28 10804static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10805 PyObject *resultobj;
10806 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10807 PyObject * obj0 = 0 ;
10808 char *kwnames[] = {
10809 (char *) "self", NULL
10810 };
10811
10812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 delete arg1;
10818
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 Py_INCREF(Py_None); resultobj = Py_None;
10823 return resultobj;
10824 fail:
10825 return NULL;
10826}
10827
10828
c32bde28 10829static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10830 PyObject *resultobj;
10831 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10832 int arg2 ;
10833 int arg3 ;
10834 int arg4 = (int) wxCONVERT_STRICT ;
10835 bool result;
10836 PyObject * obj0 = 0 ;
10837 PyObject * obj1 = 0 ;
10838 PyObject * obj2 = 0 ;
10839 PyObject * obj3 = 0 ;
10840 char *kwnames[] = {
10841 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10842 };
10843
10844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 10847 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10848 if (PyErr_Occurred()) SWIG_fail;
c32bde28 10849 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10850 if (PyErr_Occurred()) SWIG_fail;
10851 if (obj3) {
c32bde28 10852 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10858
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 {
10863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10864 }
10865 return resultobj;
10866 fail:
10867 return NULL;
10868}
10869
10870
c32bde28 10871static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10872 PyObject *resultobj;
10873 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10874 wxString *arg2 = 0 ;
10875 wxString result;
10876 bool temp2 = False ;
10877 PyObject * obj0 = 0 ;
10878 PyObject * obj1 = 0 ;
10879 char *kwnames[] = {
10880 (char *) "self",(char *) "input", NULL
10881 };
10882
10883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10886 {
10887 arg2 = wxString_in_helper(obj1);
10888 if (arg2 == NULL) SWIG_fail;
10889 temp2 = True;
10890 }
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (arg1)->Convert((wxString const &)*arg2);
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899#if wxUSE_UNICODE
10900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10901#else
10902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10903#endif
10904 }
10905 {
10906 if (temp2)
10907 delete arg2;
10908 }
10909 return resultobj;
10910 fail:
10911 {
10912 if (temp2)
10913 delete arg2;
10914 }
10915 return NULL;
10916}
10917
10918
c32bde28 10919static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10920 PyObject *resultobj;
10921 int arg1 ;
10922 int arg2 = (int) wxPLATFORM_CURRENT ;
10923 wxFontEncodingArray result;
10924 PyObject * obj0 = 0 ;
10925 PyObject * obj1 = 0 ;
10926 char *kwnames[] = {
10927 (char *) "enc",(char *) "platform", NULL
10928 };
10929
10930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
c32bde28 10931 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10932 if (PyErr_Occurred()) SWIG_fail;
10933 if (obj1) {
c32bde28 10934 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 {
10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
10939 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10940
10941 wxPyEndAllowThreads(__tstate);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 {
10945 resultobj = PyList_New(0);
10946 for (size_t i=0; i < (&result)->GetCount(); i++) {
10947 PyObject* number = PyInt_FromLong((&result)->Item(i));
10948 PyList_Append(resultobj, number);
10949 Py_DECREF(number);
10950 }
10951 }
10952 return resultobj;
10953 fail:
10954 return NULL;
10955}
10956
10957
c32bde28 10958static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10959 PyObject *resultobj;
10960 int arg1 ;
10961 wxFontEncodingArray result;
10962 PyObject * obj0 = 0 ;
10963 char *kwnames[] = {
10964 (char *) "enc", NULL
10965 };
10966
10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
c32bde28 10968 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10969 if (PyErr_Occurred()) SWIG_fail;
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 resultobj = PyList_New(0);
10979 for (size_t i=0; i < (&result)->GetCount(); i++) {
10980 PyObject* number = PyInt_FromLong((&result)->Item(i));
10981 PyList_Append(resultobj, number);
10982 Py_DECREF(number);
10983 }
10984 }
10985 return resultobj;
10986 fail:
10987 return NULL;
10988}
10989
10990
c32bde28 10991static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10992 PyObject *resultobj;
10993 int arg1 ;
10994 int arg2 ;
10995 bool result;
10996 PyObject * obj0 = 0 ;
10997 PyObject * obj1 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "encIn",(char *) "encOut", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
c32bde28 11003 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 11004 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11005 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11006 if (PyErr_Occurred()) SWIG_fail;
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
11010
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020}
11021
11022
c32bde28 11023static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11024 PyObject *obj;
11025 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11026 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
11027 Py_INCREF(obj);
11028 return Py_BuildValue((char *)"");
11029}
c32bde28 11030static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11031 PyObject *resultobj;
11032 wxDC *arg1 = (wxDC *) 0 ;
11033 PyObject * obj0 = 0 ;
11034 char *kwnames[] = {
11035 (char *) "self", NULL
11036 };
11037
11038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
11039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 delete arg1;
11044
11045 wxPyEndAllowThreads(__tstate);
11046 if (PyErr_Occurred()) SWIG_fail;
11047 }
11048 Py_INCREF(Py_None); resultobj = Py_None;
11049 return resultobj;
11050 fail:
11051 return NULL;
11052}
11053
11054
c32bde28 11055static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11056 PyObject *resultobj;
11057 wxDC *arg1 = (wxDC *) 0 ;
11058 PyObject * obj0 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 (arg1)->BeginDrawing();
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 Py_INCREF(Py_None); resultobj = Py_None;
11074 return resultobj;
11075 fail:
11076 return NULL;
11077}
11078
11079
c32bde28 11080static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11081 PyObject *resultobj;
11082 wxDC *arg1 = (wxDC *) 0 ;
11083 PyObject * obj0 = 0 ;
11084 char *kwnames[] = {
11085 (char *) "self", NULL
11086 };
11087
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
11089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 (arg1)->EndDrawing();
11094
11095 wxPyEndAllowThreads(__tstate);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 Py_INCREF(Py_None); resultobj = Py_None;
11099 return resultobj;
11100 fail:
11101 return NULL;
11102}
11103
11104
c32bde28 11105static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11106 PyObject *resultobj;
11107 wxDC *arg1 = (wxDC *) 0 ;
11108 int arg2 ;
11109 int arg3 ;
11110 wxColour *arg4 = 0 ;
11111 int arg5 = (int) wxFLOOD_SURFACE ;
11112 bool result;
11113 wxColour temp4 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 PyObject * obj2 = 0 ;
11117 PyObject * obj3 = 0 ;
11118 PyObject * obj4 = 0 ;
11119 char *kwnames[] = {
11120 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
11121 };
11122
c24da6d6 11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11126 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11127 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11128 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11129 if (PyErr_Occurred()) SWIG_fail;
11130 {
11131 arg4 = &temp4;
11132 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11133 }
11134 if (obj4) {
c32bde28 11135 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 {
11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
11140 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
11141
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 {
11146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11147 }
11148 return resultobj;
11149 fail:
11150 return NULL;
11151}
11152
11153
c32bde28 11154static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11155 PyObject *resultobj;
11156 wxDC *arg1 = (wxDC *) 0 ;
11157 wxPoint *arg2 = 0 ;
11158 wxColour *arg3 = 0 ;
11159 int arg4 = (int) wxFLOOD_SURFACE ;
11160 bool result;
11161 wxPoint temp2 ;
11162 wxColour temp3 ;
11163 PyObject * obj0 = 0 ;
11164 PyObject * obj1 = 0 ;
11165 PyObject * obj2 = 0 ;
11166 PyObject * obj3 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
11169 };
11170
c24da6d6 11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 {
11175 arg2 = &temp2;
11176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11177 }
11178 {
11179 arg3 = &temp3;
11180 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11181 }
11182 if (obj3) {
c32bde28 11183 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11189
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 {
11194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11195 }
11196 return resultobj;
11197 fail:
11198 return NULL;
11199}
11200
11201
c32bde28 11202static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11203 PyObject *resultobj;
11204 wxDC *arg1 = (wxDC *) 0 ;
11205 int arg2 ;
11206 int arg3 ;
11207 wxColour result;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 PyObject * obj2 = 0 ;
11211 char *kwnames[] = {
11212 (char *) "self",(char *) "x",(char *) "y", NULL
11213 };
11214
c24da6d6 11215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11218 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11219 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11220 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11221 if (PyErr_Occurred()) SWIG_fail;
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11224 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
11225
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 {
11230 wxColour * resultptr;
11231 resultptr = new wxColour((wxColour &) result);
11232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11233 }
11234 return resultobj;
11235 fail:
11236 return NULL;
11237}
11238
11239
c32bde28 11240static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11241 PyObject *resultobj;
11242 wxDC *arg1 = (wxDC *) 0 ;
11243 wxPoint *arg2 = 0 ;
11244 wxColour result;
11245 wxPoint temp2 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "self",(char *) "pt", NULL
11250 };
11251
c24da6d6 11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11255 {
11256 arg2 = &temp2;
11257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11258 }
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11261 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 {
11267 wxColour * resultptr;
11268 resultptr = new wxColour((wxColour &) result);
11269 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11270 }
11271 return resultobj;
11272 fail:
11273 return NULL;
11274}
11275
11276
c32bde28 11277static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11278 PyObject *resultobj;
11279 wxDC *arg1 = (wxDC *) 0 ;
11280 int arg2 ;
11281 int arg3 ;
11282 int arg4 ;
11283 int arg5 ;
11284 PyObject * obj0 = 0 ;
11285 PyObject * obj1 = 0 ;
11286 PyObject * obj2 = 0 ;
11287 PyObject * obj3 = 0 ;
11288 PyObject * obj4 = 0 ;
11289 char *kwnames[] = {
11290 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11291 };
11292
c24da6d6 11293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11296 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11297 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11298 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11299 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11300 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11301 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11302 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11303 if (PyErr_Occurred()) SWIG_fail;
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11307
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 Py_INCREF(Py_None); resultobj = Py_None;
11312 return resultobj;
11313 fail:
11314 return NULL;
11315}
11316
11317
c32bde28 11318static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11319 PyObject *resultobj;
11320 wxDC *arg1 = (wxDC *) 0 ;
11321 wxPoint *arg2 = 0 ;
11322 wxPoint *arg3 = 0 ;
11323 wxPoint temp2 ;
11324 wxPoint temp3 ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj1 = 0 ;
11327 PyObject * obj2 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11330 };
11331
c24da6d6 11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11335 {
11336 arg2 = &temp2;
11337 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11338 }
11339 {
11340 arg3 = &temp3;
11341 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11342 }
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11346
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 Py_INCREF(Py_None); resultobj = Py_None;
11351 return resultobj;
11352 fail:
11353 return NULL;
11354}
11355
11356
c32bde28 11357static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11358 PyObject *resultobj;
11359 wxDC *arg1 = (wxDC *) 0 ;
11360 int arg2 ;
11361 int arg3 ;
11362 PyObject * obj0 = 0 ;
11363 PyObject * obj1 = 0 ;
11364 PyObject * obj2 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "self",(char *) "x",(char *) "y", NULL
11367 };
11368
c24da6d6 11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11372 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11373 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11374 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11375 if (PyErr_Occurred()) SWIG_fail;
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 (arg1)->CrossHair(arg2,arg3);
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 Py_INCREF(Py_None); resultobj = Py_None;
11384 return resultobj;
11385 fail:
11386 return NULL;
11387}
11388
11389
c32bde28 11390static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11391 PyObject *resultobj;
11392 wxDC *arg1 = (wxDC *) 0 ;
11393 wxPoint *arg2 = 0 ;
11394 wxPoint temp2 ;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self",(char *) "pt", NULL
11399 };
11400
c24da6d6 11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 {
11405 arg2 = &temp2;
11406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11407 }
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 (arg1)->CrossHair((wxPoint const &)*arg2);
11411
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 Py_INCREF(Py_None); resultobj = Py_None;
11416 return resultobj;
11417 fail:
11418 return NULL;
11419}
11420
11421
c32bde28 11422static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11423 PyObject *resultobj;
11424 wxDC *arg1 = (wxDC *) 0 ;
11425 int arg2 ;
11426 int arg3 ;
11427 int arg4 ;
11428 int arg5 ;
11429 int arg6 ;
11430 int arg7 ;
11431 PyObject * obj0 = 0 ;
11432 PyObject * obj1 = 0 ;
11433 PyObject * obj2 = 0 ;
11434 PyObject * obj3 = 0 ;
11435 PyObject * obj4 = 0 ;
11436 PyObject * obj5 = 0 ;
11437 PyObject * obj6 = 0 ;
11438 char *kwnames[] = {
11439 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11440 };
11441
c24da6d6 11442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11445 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11446 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11447 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11448 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11449 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11450 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11451 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11452 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11453 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc 11454 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11455 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
11456 if (PyErr_Occurred()) SWIG_fail;
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11460
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 Py_INCREF(Py_None); resultobj = Py_None;
11465 return resultobj;
11466 fail:
11467 return NULL;
11468}
11469
11470
c32bde28 11471static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11472 PyObject *resultobj;
11473 wxDC *arg1 = (wxDC *) 0 ;
11474 wxPoint *arg2 = 0 ;
11475 wxPoint *arg3 = 0 ;
11476 wxPoint *arg4 = 0 ;
11477 wxPoint temp2 ;
11478 wxPoint temp3 ;
11479 wxPoint temp4 ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 PyObject * obj2 = 0 ;
11483 PyObject * obj3 = 0 ;
11484 char *kwnames[] = {
f5b96ee1 11485 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d55e5bfc
RD
11486 };
11487
c24da6d6 11488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11491 {
11492 arg2 = &temp2;
11493 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11494 }
11495 {
11496 arg3 = &temp3;
11497 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11498 }
11499 {
11500 arg4 = &temp4;
11501 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11502 }
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11506
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 Py_INCREF(Py_None); resultobj = Py_None;
11511 return resultobj;
11512 fail:
11513 return NULL;
11514}
11515
11516
c32bde28 11517static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11518 PyObject *resultobj;
11519 wxDC *arg1 = (wxDC *) 0 ;
11520 int arg2 ;
11521 int arg3 ;
11522 int arg4 ;
11523 int arg5 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 PyObject * obj2 = 0 ;
11527 PyObject * obj3 = 0 ;
11528 PyObject * obj4 = 0 ;
11529 char *kwnames[] = {
11530 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11531 };
11532
c24da6d6 11533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11536 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11537 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11538 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11539 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11540 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11541 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11542 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11543 if (PyErr_Occurred()) SWIG_fail;
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11547
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 Py_INCREF(Py_None); resultobj = Py_None;
11552 return resultobj;
11553 fail:
11554 return NULL;
11555}
11556
11557
c32bde28 11558static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11559 PyObject *resultobj;
11560 wxDC *arg1 = (wxDC *) 0 ;
11561 wxRect *arg2 = 0 ;
11562 wxRect temp2 ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565 char *kwnames[] = {
11566 (char *) "self",(char *) "rect", NULL
11567 };
11568
c24da6d6 11569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11572 {
11573 arg2 = &temp2;
11574 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11575 }
11576 {
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11579
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 Py_INCREF(Py_None); resultobj = Py_None;
11584 return resultobj;
11585 fail:
11586 return NULL;
11587}
11588
11589
c32bde28 11590static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11591 PyObject *resultobj;
11592 wxDC *arg1 = (wxDC *) 0 ;
11593 int arg2 ;
11594 int arg3 ;
11595 int arg4 ;
11596 int arg5 ;
11597 double arg6 ;
11598 double arg7 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 PyObject * obj2 = 0 ;
11602 PyObject * obj3 = 0 ;
11603 PyObject * obj4 = 0 ;
11604 PyObject * obj5 = 0 ;
11605 PyObject * obj6 = 0 ;
11606 char *kwnames[] = {
f5b96ee1 11607 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11608 };
11609
c24da6d6 11610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11613 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11614 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11615 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11616 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11617 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11618 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11619 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11620 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11621 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc 11622 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11623 arg7 = (double)SWIG_As_double(obj6);
d55e5bfc
RD
11624 if (PyErr_Occurred()) SWIG_fail;
11625 {
11626 PyThreadState* __tstate = wxPyBeginAllowThreads();
11627 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11628
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 Py_INCREF(Py_None); resultobj = Py_None;
11633 return resultobj;
11634 fail:
11635 return NULL;
11636}
11637
11638
c32bde28 11639static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11640 PyObject *resultobj;
11641 wxDC *arg1 = (wxDC *) 0 ;
11642 wxPoint *arg2 = 0 ;
11643 wxSize *arg3 = 0 ;
11644 double arg4 ;
11645 double arg5 ;
11646 wxPoint temp2 ;
11647 wxSize temp3 ;
11648 PyObject * obj0 = 0 ;
11649 PyObject * obj1 = 0 ;
11650 PyObject * obj2 = 0 ;
11651 PyObject * obj3 = 0 ;
11652 PyObject * obj4 = 0 ;
11653 char *kwnames[] = {
f5b96ee1 11654 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11655 };
11656
c24da6d6 11657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11660 {
11661 arg2 = &temp2;
11662 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11663 }
11664 {
11665 arg3 = &temp3;
11666 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11667 }
c32bde28 11668 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc 11669 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11670 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
11671 if (PyErr_Occurred()) SWIG_fail;
11672 {
11673 PyThreadState* __tstate = wxPyBeginAllowThreads();
11674 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11675
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 Py_INCREF(Py_None); resultobj = Py_None;
11680 return resultobj;
11681 fail:
11682 return NULL;
11683}
11684
11685
c32bde28 11686static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11687 PyObject *resultobj;
11688 wxDC *arg1 = (wxDC *) 0 ;
11689 int arg2 ;
11690 int arg3 ;
11691 PyObject * obj0 = 0 ;
11692 PyObject * obj1 = 0 ;
11693 PyObject * obj2 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self",(char *) "x",(char *) "y", NULL
11696 };
11697
c24da6d6 11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11701 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11702 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11703 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11704 if (PyErr_Occurred()) SWIG_fail;
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 (arg1)->DrawPoint(arg2,arg3);
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 Py_INCREF(Py_None); resultobj = Py_None;
11713 return resultobj;
11714 fail:
11715 return NULL;
11716}
11717
11718
c32bde28 11719static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11720 PyObject *resultobj;
11721 wxDC *arg1 = (wxDC *) 0 ;
11722 wxPoint *arg2 = 0 ;
11723 wxPoint temp2 ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self",(char *) "pt", NULL
11728 };
11729
c24da6d6 11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11733 {
11734 arg2 = &temp2;
11735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11736 }
11737 {
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 (arg1)->DrawPoint((wxPoint const &)*arg2);
11740
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 Py_INCREF(Py_None); resultobj = Py_None;
11745 return resultobj;
11746 fail:
11747 return NULL;
11748}
11749
11750
c32bde28 11751static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11752 PyObject *resultobj;
11753 wxDC *arg1 = (wxDC *) 0 ;
11754 int arg2 ;
11755 int arg3 ;
11756 int arg4 ;
11757 int arg5 ;
11758 PyObject * obj0 = 0 ;
11759 PyObject * obj1 = 0 ;
11760 PyObject * obj2 = 0 ;
11761 PyObject * obj3 = 0 ;
11762 PyObject * obj4 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11765 };
11766
c24da6d6 11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11770 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11771 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11772 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11773 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11774 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11775 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11776 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11777 if (PyErr_Occurred()) SWIG_fail;
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11781
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 Py_INCREF(Py_None); resultobj = Py_None;
11786 return resultobj;
11787 fail:
11788 return NULL;
11789}
11790
11791
c32bde28 11792static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11793 PyObject *resultobj;
11794 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
11795 wxRect *arg2 = 0 ;
11796 wxRect temp2 ;
d55e5bfc
RD
11797 PyObject * obj0 = 0 ;
11798 PyObject * obj1 = 0 ;
d55e5bfc 11799 char *kwnames[] = {
c24da6d6 11800 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11801 };
11802
c24da6d6 11803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11806 {
11807 arg2 = &temp2;
c24da6d6 11808 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11809 }
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11812 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 Py_INCREF(Py_None); resultobj = Py_None;
11818 return resultobj;
11819 fail:
11820 return NULL;
11821}
11822
11823
c32bde28 11824static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11825 PyObject *resultobj;
11826 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
11827 wxPoint *arg2 = 0 ;
11828 wxSize *arg3 = 0 ;
11829 wxPoint temp2 ;
11830 wxSize temp3 ;
d55e5bfc
RD
11831 PyObject * obj0 = 0 ;
11832 PyObject * obj1 = 0 ;
c24da6d6 11833 PyObject * obj2 = 0 ;
d55e5bfc 11834 char *kwnames[] = {
c24da6d6 11835 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11836 };
11837
c24da6d6 11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11841 {
11842 arg2 = &temp2;
c24da6d6
RD
11843 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11844 }
11845 {
11846 arg3 = &temp3;
11847 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11848 }
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11851 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11852
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 Py_INCREF(Py_None); resultobj = Py_None;
11857 return resultobj;
11858 fail:
11859 return NULL;
11860}
11861
11862
c32bde28 11863static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11864 PyObject *resultobj;
11865 wxDC *arg1 = (wxDC *) 0 ;
11866 int arg2 ;
11867 int arg3 ;
11868 int arg4 ;
11869 int arg5 ;
11870 double arg6 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 PyObject * obj3 = 0 ;
11875 PyObject * obj4 = 0 ;
11876 PyObject * obj5 = 0 ;
11877 char *kwnames[] = {
11878 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11879 };
11880
c24da6d6 11881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
11882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11884 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11885 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11886 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11887 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11888 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11889 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11890 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11891 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11892 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc
RD
11893 if (PyErr_Occurred()) SWIG_fail;
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11897
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 Py_INCREF(Py_None); resultobj = Py_None;
11902 return resultobj;
11903 fail:
11904 return NULL;
11905}
11906
11907
c32bde28 11908static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11909 PyObject *resultobj;
11910 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
11911 wxRect *arg2 = 0 ;
11912 double arg3 ;
11913 wxRect temp2 ;
d55e5bfc
RD
11914 PyObject * obj0 = 0 ;
11915 PyObject * obj1 = 0 ;
11916 PyObject * obj2 = 0 ;
d55e5bfc 11917 char *kwnames[] = {
c24da6d6 11918 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
11919 };
11920
c24da6d6 11921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11924 {
11925 arg2 = &temp2;
c24da6d6 11926 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11927 }
c32bde28 11928 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
11929 if (PyErr_Occurred()) SWIG_fail;
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11932 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
11933
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 Py_INCREF(Py_None); resultobj = Py_None;
11938 return resultobj;
11939 fail:
11940 return NULL;
11941}
11942
11943
c32bde28 11944static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11945 PyObject *resultobj;
11946 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
11947 wxPoint *arg2 = 0 ;
11948 wxSize *arg3 = 0 ;
11949 double arg4 ;
11950 wxPoint temp2 ;
11951 wxSize temp3 ;
d55e5bfc
RD
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 PyObject * obj2 = 0 ;
c24da6d6 11955 PyObject * obj3 = 0 ;
d55e5bfc 11956 char *kwnames[] = {
c24da6d6 11957 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
11958 };
11959
c24da6d6 11960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11963 {
11964 arg2 = &temp2;
c24da6d6 11965 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11966 }
c24da6d6
RD
11967 {
11968 arg3 = &temp3;
11969 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11970 }
c32bde28 11971 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
11972 if (PyErr_Occurred()) SWIG_fail;
11973 {
11974 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11975 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d55e5bfc
RD
11976
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 Py_INCREF(Py_None); resultobj = Py_None;
11981 return resultobj;
11982 fail:
11983 return NULL;
11984}
11985
11986
c32bde28 11987static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11988 PyObject *resultobj;
11989 wxDC *arg1 = (wxDC *) 0 ;
11990 int arg2 ;
11991 int arg3 ;
11992 int arg4 ;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 PyObject * obj2 = 0 ;
11996 PyObject * obj3 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11999 };
12000
c24da6d6 12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12004 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12005 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12006 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12007 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12008 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12009 if (PyErr_Occurred()) SWIG_fail;
12010 {
12011 PyThreadState* __tstate = wxPyBeginAllowThreads();
12012 (arg1)->DrawCircle(arg2,arg3,arg4);
12013
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 Py_INCREF(Py_None); resultobj = Py_None;
12018 return resultobj;
12019 fail:
12020 return NULL;
12021}
12022
12023
c32bde28 12024static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12025 PyObject *resultobj;
12026 wxDC *arg1 = (wxDC *) 0 ;
12027 wxPoint *arg2 = 0 ;
12028 int arg3 ;
12029 wxPoint temp2 ;
12030 PyObject * obj0 = 0 ;
12031 PyObject * obj1 = 0 ;
12032 PyObject * obj2 = 0 ;
12033 char *kwnames[] = {
12034 (char *) "self",(char *) "pt",(char *) "radius", NULL
12035 };
12036
c24da6d6 12037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12040 {
12041 arg2 = &temp2;
12042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12043 }
c32bde28 12044 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12045 if (PyErr_Occurred()) SWIG_fail;
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
12049
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 Py_INCREF(Py_None); resultobj = Py_None;
12054 return resultobj;
12055 fail:
12056 return NULL;
12057}
12058
12059
c32bde28 12060static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12061 PyObject *resultobj;
12062 wxDC *arg1 = (wxDC *) 0 ;
12063 int arg2 ;
12064 int arg3 ;
12065 int arg4 ;
12066 int arg5 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 PyObject * obj2 = 0 ;
12070 PyObject * obj3 = 0 ;
12071 PyObject * obj4 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12074 };
12075
c24da6d6 12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12079 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12080 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12081 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12082 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12083 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12084 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12085 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12086 if (PyErr_Occurred()) SWIG_fail;
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
12090
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 Py_INCREF(Py_None); resultobj = Py_None;
12095 return resultobj;
12096 fail:
12097 return NULL;
12098}
12099
12100
c32bde28 12101static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12102 PyObject *resultobj;
12103 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12104 wxRect *arg2 = 0 ;
12105 wxRect temp2 ;
d55e5bfc
RD
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
d55e5bfc 12108 char *kwnames[] = {
c24da6d6 12109 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
12110 };
12111
c24da6d6 12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12115 {
12116 arg2 = &temp2;
c24da6d6 12117 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
12118 }
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12121 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
12122
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 Py_INCREF(Py_None); resultobj = Py_None;
12127 return resultobj;
12128 fail:
12129 return NULL;
12130}
12131
12132
c32bde28 12133static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12134 PyObject *resultobj;
12135 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12136 wxPoint *arg2 = 0 ;
12137 wxSize *arg3 = 0 ;
12138 wxPoint temp2 ;
12139 wxSize temp3 ;
d55e5bfc
RD
12140 PyObject * obj0 = 0 ;
12141 PyObject * obj1 = 0 ;
c24da6d6 12142 PyObject * obj2 = 0 ;
d55e5bfc 12143 char *kwnames[] = {
c24da6d6 12144 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
12145 };
12146
c24da6d6 12147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12150 {
12151 arg2 = &temp2;
c24da6d6
RD
12152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12153 }
12154 {
12155 arg3 = &temp3;
12156 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
12157 }
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12160 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
12161
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 Py_INCREF(Py_None); resultobj = Py_None;
12166 return resultobj;
12167 fail:
12168 return NULL;
12169}
12170
12171
c32bde28 12172static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12173 PyObject *resultobj;
12174 wxDC *arg1 = (wxDC *) 0 ;
12175 wxIcon *arg2 = 0 ;
12176 int arg3 ;
12177 int arg4 ;
12178 PyObject * obj0 = 0 ;
12179 PyObject * obj1 = 0 ;
12180 PyObject * obj2 = 0 ;
12181 PyObject * obj3 = 0 ;
12182 char *kwnames[] = {
12183 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
12184 };
12185
c24da6d6 12186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12190 SWIG_POINTER_EXCEPTION | 0)) == -1)
12191 SWIG_fail;
12192 if (arg2 == NULL) {
12193 PyErr_SetString(PyExc_TypeError,"null reference");
12194 SWIG_fail;
12195 }
c32bde28 12196 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12197 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12198 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12199 if (PyErr_Occurred()) SWIG_fail;
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 Py_INCREF(Py_None); resultobj = Py_None;
12208 return resultobj;
12209 fail:
12210 return NULL;
12211}
12212
12213
c32bde28 12214static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12215 PyObject *resultobj;
12216 wxDC *arg1 = (wxDC *) 0 ;
12217 wxIcon *arg2 = 0 ;
12218 wxPoint *arg3 = 0 ;
12219 wxPoint temp3 ;
12220 PyObject * obj0 = 0 ;
12221 PyObject * obj1 = 0 ;
12222 PyObject * obj2 = 0 ;
12223 char *kwnames[] = {
12224 (char *) "self",(char *) "icon",(char *) "pt", NULL
12225 };
12226
c24da6d6 12227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12230 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12231 SWIG_POINTER_EXCEPTION | 0)) == -1)
12232 SWIG_fail;
12233 if (arg2 == NULL) {
12234 PyErr_SetString(PyExc_TypeError,"null reference");
12235 SWIG_fail;
12236 }
12237 {
12238 arg3 = &temp3;
12239 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12240 }
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 return resultobj;
12250 fail:
12251 return NULL;
12252}
12253
12254
c32bde28 12255static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
12258 wxBitmap *arg2 = 0 ;
12259 int arg3 ;
12260 int arg4 ;
12261 bool arg5 = (bool) False ;
12262 PyObject * obj0 = 0 ;
12263 PyObject * obj1 = 0 ;
12264 PyObject * obj2 = 0 ;
12265 PyObject * obj3 = 0 ;
12266 PyObject * obj4 = 0 ;
12267 char *kwnames[] = {
12268 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12269 };
12270
c24da6d6 12271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12275 SWIG_POINTER_EXCEPTION | 0)) == -1)
12276 SWIG_fail;
12277 if (arg2 == NULL) {
12278 PyErr_SetString(PyExc_TypeError,"null reference");
12279 SWIG_fail;
12280 }
c32bde28 12281 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12282 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12283 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12284 if (PyErr_Occurred()) SWIG_fail;
12285 if (obj4) {
c32bde28 12286 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 return resultobj;
12298 fail:
12299 return NULL;
12300}
12301
12302
c32bde28 12303static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12304 PyObject *resultobj;
12305 wxDC *arg1 = (wxDC *) 0 ;
12306 wxBitmap *arg2 = 0 ;
12307 wxPoint *arg3 = 0 ;
12308 bool arg4 = (bool) False ;
12309 wxPoint temp3 ;
12310 PyObject * obj0 = 0 ;
12311 PyObject * obj1 = 0 ;
12312 PyObject * obj2 = 0 ;
12313 PyObject * obj3 = 0 ;
12314 char *kwnames[] = {
12315 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12316 };
12317
c24da6d6 12318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12322 SWIG_POINTER_EXCEPTION | 0)) == -1)
12323 SWIG_fail;
12324 if (arg2 == NULL) {
12325 PyErr_SetString(PyExc_TypeError,"null reference");
12326 SWIG_fail;
12327 }
12328 {
12329 arg3 = &temp3;
12330 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12331 }
12332 if (obj3) {
c32bde28 12333 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12339
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 Py_INCREF(Py_None); resultobj = Py_None;
12344 return resultobj;
12345 fail:
12346 return NULL;
12347}
12348
12349
c32bde28 12350static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12351 PyObject *resultobj;
12352 wxDC *arg1 = (wxDC *) 0 ;
12353 wxString *arg2 = 0 ;
12354 int arg3 ;
12355 int arg4 ;
12356 bool temp2 = False ;
12357 PyObject * obj0 = 0 ;
12358 PyObject * obj1 = 0 ;
12359 PyObject * obj2 = 0 ;
12360 PyObject * obj3 = 0 ;
12361 char *kwnames[] = {
12362 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12363 };
12364
c24da6d6 12365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12368 {
12369 arg2 = wxString_in_helper(obj1);
12370 if (arg2 == NULL) SWIG_fail;
12371 temp2 = True;
12372 }
c32bde28 12373 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12374 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12375 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12376 if (PyErr_Occurred()) SWIG_fail;
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 Py_INCREF(Py_None); resultobj = Py_None;
12385 {
12386 if (temp2)
12387 delete arg2;
12388 }
12389 return resultobj;
12390 fail:
12391 {
12392 if (temp2)
12393 delete arg2;
12394 }
12395 return NULL;
12396}
12397
12398
c32bde28 12399static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12400 PyObject *resultobj;
12401 wxDC *arg1 = (wxDC *) 0 ;
12402 wxString *arg2 = 0 ;
12403 wxPoint *arg3 = 0 ;
12404 bool temp2 = False ;
12405 wxPoint temp3 ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 PyObject * obj2 = 0 ;
12409 char *kwnames[] = {
12410 (char *) "self",(char *) "text",(char *) "pt", NULL
12411 };
12412
c24da6d6 12413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12416 {
12417 arg2 = wxString_in_helper(obj1);
12418 if (arg2 == NULL) SWIG_fail;
12419 temp2 = True;
12420 }
12421 {
12422 arg3 = &temp3;
12423 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 Py_INCREF(Py_None); resultobj = Py_None;
12433 {
12434 if (temp2)
12435 delete arg2;
12436 }
12437 return resultobj;
12438 fail:
12439 {
12440 if (temp2)
12441 delete arg2;
12442 }
12443 return NULL;
12444}
12445
12446
c32bde28 12447static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12448 PyObject *resultobj;
12449 wxDC *arg1 = (wxDC *) 0 ;
12450 wxString *arg2 = 0 ;
12451 int arg3 ;
12452 int arg4 ;
12453 double arg5 ;
12454 bool temp2 = False ;
12455 PyObject * obj0 = 0 ;
12456 PyObject * obj1 = 0 ;
12457 PyObject * obj2 = 0 ;
12458 PyObject * obj3 = 0 ;
12459 PyObject * obj4 = 0 ;
12460 char *kwnames[] = {
12461 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12462 };
12463
c24da6d6 12464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12467 {
12468 arg2 = wxString_in_helper(obj1);
12469 if (arg2 == NULL) SWIG_fail;
12470 temp2 = True;
12471 }
c32bde28 12472 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12473 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12474 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12475 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12476 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
12477 if (PyErr_Occurred()) SWIG_fail;
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 Py_INCREF(Py_None); resultobj = Py_None;
12486 {
12487 if (temp2)
12488 delete arg2;
12489 }
12490 return resultobj;
12491 fail:
12492 {
12493 if (temp2)
12494 delete arg2;
12495 }
12496 return NULL;
12497}
12498
12499
c32bde28 12500static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12501 PyObject *resultobj;
12502 wxDC *arg1 = (wxDC *) 0 ;
12503 wxString *arg2 = 0 ;
12504 wxPoint *arg3 = 0 ;
12505 double arg4 ;
12506 bool temp2 = False ;
12507 wxPoint temp3 ;
12508 PyObject * obj0 = 0 ;
12509 PyObject * obj1 = 0 ;
12510 PyObject * obj2 = 0 ;
12511 PyObject * obj3 = 0 ;
12512 char *kwnames[] = {
12513 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12514 };
12515
c24da6d6 12516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12519 {
12520 arg2 = wxString_in_helper(obj1);
12521 if (arg2 == NULL) SWIG_fail;
12522 temp2 = True;
12523 }
12524 {
12525 arg3 = &temp3;
12526 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12527 }
c32bde28 12528 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
12529 if (PyErr_Occurred()) SWIG_fail;
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 Py_INCREF(Py_None); resultobj = Py_None;
12538 {
12539 if (temp2)
12540 delete arg2;
12541 }
12542 return resultobj;
12543 fail:
12544 {
12545 if (temp2)
12546 delete arg2;
12547 }
12548 return NULL;
12549}
12550
12551
c32bde28 12552static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12553 PyObject *resultobj;
12554 wxDC *arg1 = (wxDC *) 0 ;
12555 int arg2 ;
12556 int arg3 ;
12557 int arg4 ;
12558 int arg5 ;
12559 wxDC *arg6 = (wxDC *) 0 ;
12560 int arg7 ;
12561 int arg8 ;
12562 int arg9 = (int) wxCOPY ;
12563 bool arg10 = (bool) False ;
12564 int arg11 = (int) -1 ;
12565 int arg12 = (int) -1 ;
12566 bool result;
12567 PyObject * obj0 = 0 ;
12568 PyObject * obj1 = 0 ;
12569 PyObject * obj2 = 0 ;
12570 PyObject * obj3 = 0 ;
12571 PyObject * obj4 = 0 ;
12572 PyObject * obj5 = 0 ;
12573 PyObject * obj6 = 0 ;
12574 PyObject * obj7 = 0 ;
12575 PyObject * obj8 = 0 ;
12576 PyObject * obj9 = 0 ;
12577 PyObject * obj10 = 0 ;
12578 PyObject * obj11 = 0 ;
12579 char *kwnames[] = {
12580 (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
12581 };
12582
c24da6d6 12583 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;
d55e5bfc
RD
12584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12586 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12587 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12588 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12589 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12590 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12591 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12592 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12593 if (PyErr_Occurred()) SWIG_fail;
12594 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12596 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc 12597 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12598 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
12599 if (PyErr_Occurred()) SWIG_fail;
12600 if (obj8) {
c32bde28 12601 arg9 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 if (obj9) {
c32bde28 12605 arg10 = (bool)SWIG_As_bool(obj9);
d55e5bfc
RD
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 if (obj10) {
c32bde28 12609 arg11 = (int)SWIG_As_int(obj10);
d55e5bfc
RD
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 if (obj11) {
c32bde28 12613 arg12 = (int)SWIG_As_int(obj11);
d55e5bfc
RD
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12619
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 {
12624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12625 }
12626 return resultobj;
12627 fail:
12628 return NULL;
12629}
12630
12631
c32bde28 12632static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12633 PyObject *resultobj;
12634 wxDC *arg1 = (wxDC *) 0 ;
12635 wxPoint *arg2 = 0 ;
12636 wxSize *arg3 = 0 ;
12637 wxDC *arg4 = (wxDC *) 0 ;
12638 wxPoint *arg5 = 0 ;
12639 int arg6 = (int) wxCOPY ;
12640 bool arg7 = (bool) False ;
12641 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12642 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12643 bool result;
12644 wxPoint temp2 ;
12645 wxSize temp3 ;
12646 wxPoint temp5 ;
12647 wxPoint temp8 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 PyObject * obj2 = 0 ;
12651 PyObject * obj3 = 0 ;
12652 PyObject * obj4 = 0 ;
12653 PyObject * obj5 = 0 ;
12654 PyObject * obj6 = 0 ;
12655 PyObject * obj7 = 0 ;
12656 char *kwnames[] = {
12657 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12658 };
12659
c24da6d6 12660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
12661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12663 {
12664 arg2 = &temp2;
12665 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12666 }
12667 {
12668 arg3 = &temp3;
12669 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12670 }
12671 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12673 {
12674 arg5 = &temp5;
12675 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12676 }
12677 if (obj5) {
c32bde28 12678 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 if (obj6) {
c32bde28 12682 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
12683 if (PyErr_Occurred()) SWIG_fail;
12684 }
12685 if (obj7) {
12686 {
12687 arg8 = &temp8;
12688 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12689 }
12690 }
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6
RD
12693 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12694
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 {
12699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12700 }
12701 return resultobj;
12702 fail:
12703 return NULL;
12704}
12705
12706
c32bde28 12707static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
12708 PyObject *resultobj;
12709 wxDC *arg1 = (wxDC *) 0 ;
12710 int arg2 ;
12711 int arg3 ;
12712 int arg4 ;
12713 int arg5 ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 PyObject * obj2 = 0 ;
12717 PyObject * obj3 = 0 ;
12718 PyObject * obj4 = 0 ;
12719 char *kwnames[] = {
12720 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12721 };
12722
12723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12726 arg2 = (int)SWIG_As_int(obj1);
c24da6d6 12727 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12728 arg3 = (int)SWIG_As_int(obj2);
c24da6d6 12729 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12730 arg4 = (int)SWIG_As_int(obj3);
c24da6d6 12731 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12732 arg5 = (int)SWIG_As_int(obj4);
c24da6d6
RD
12733 if (PyErr_Occurred()) SWIG_fail;
12734 {
12735 PyThreadState* __tstate = wxPyBeginAllowThreads();
12736 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12737
12738 wxPyEndAllowThreads(__tstate);
12739 if (PyErr_Occurred()) SWIG_fail;
12740 }
12741 Py_INCREF(Py_None); resultobj = Py_None;
12742 return resultobj;
12743 fail:
12744 return NULL;
12745}
12746
12747
c32bde28 12748static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
12749 PyObject *resultobj;
12750 wxDC *arg1 = (wxDC *) 0 ;
12751 wxPoint *arg2 = 0 ;
12752 wxSize *arg3 = 0 ;
12753 wxPoint temp2 ;
12754 wxSize temp3 ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 PyObject * obj2 = 0 ;
12758 char *kwnames[] = {
12759 (char *) "self",(char *) "pt",(char *) "sz", NULL
12760 };
12761
12762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12765 {
12766 arg2 = &temp2;
12767 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12768 }
12769 {
12770 arg3 = &temp3;
12771 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12772 }
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12776
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 Py_INCREF(Py_None); resultobj = Py_None;
12781 return resultobj;
12782 fail:
12783 return NULL;
12784}
12785
12786
c32bde28 12787static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
12788 PyObject *resultobj;
12789 wxDC *arg1 = (wxDC *) 0 ;
12790 wxRegion *arg2 = 0 ;
12791 PyObject * obj0 = 0 ;
12792 PyObject * obj1 = 0 ;
12793 char *kwnames[] = {
12794 (char *) "self",(char *) "region", NULL
12795 };
12796
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12801 SWIG_POINTER_EXCEPTION | 0)) == -1)
12802 SWIG_fail;
12803 if (arg2 == NULL) {
12804 PyErr_SetString(PyExc_TypeError,"null reference");
12805 SWIG_fail;
12806 }
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12810
12811 wxPyEndAllowThreads(__tstate);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 Py_INCREF(Py_None); resultobj = Py_None;
12815 return resultobj;
12816 fail:
12817 return NULL;
12818}
12819
12820
c32bde28 12821static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
12822 PyObject *resultobj;
12823 wxDC *arg1 = (wxDC *) 0 ;
12824 wxRect *arg2 = 0 ;
12825 wxRect temp2 ;
12826 PyObject * obj0 = 0 ;
12827 PyObject * obj1 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "self",(char *) "rect", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12835 {
12836 arg2 = &temp2;
12837 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12838 }
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
c24da6d6 12846 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
12847 return resultobj;
12848 fail:
12849 return NULL;
12850}
12851
12852
c32bde28 12853static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12854 PyObject *resultobj;
12855 wxDC *arg1 = (wxDC *) 0 ;
12856 int arg2 ;
12857 wxPoint *arg3 = (wxPoint *) 0 ;
12858 int arg4 = (int) 0 ;
12859 int arg5 = (int) 0 ;
12860 PyObject * obj0 = 0 ;
12861 PyObject * obj1 = 0 ;
12862 PyObject * obj2 = 0 ;
12863 PyObject * obj3 = 0 ;
12864 char *kwnames[] = {
12865 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12866 };
12867
12868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12871 {
12872 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12873 if (arg3 == NULL) SWIG_fail;
12874 }
12875 if (obj2) {
c32bde28 12876 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 if (obj3) {
c32bde28 12880 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12886
12887 wxPyEndAllowThreads(__tstate);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 Py_INCREF(Py_None); resultobj = Py_None;
12891 {
12892 if (arg3) delete [] arg3;
12893 }
12894 return resultobj;
12895 fail:
12896 {
12897 if (arg3) delete [] arg3;
12898 }
12899 return NULL;
12900}
12901
12902
c32bde28 12903static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12904 PyObject *resultobj;
12905 wxDC *arg1 = (wxDC *) 0 ;
12906 int arg2 ;
12907 wxPoint *arg3 = (wxPoint *) 0 ;
12908 int arg4 = (int) 0 ;
12909 int arg5 = (int) 0 ;
12910 int arg6 = (int) wxODDEVEN_RULE ;
12911 PyObject * obj0 = 0 ;
12912 PyObject * obj1 = 0 ;
12913 PyObject * obj2 = 0 ;
12914 PyObject * obj3 = 0 ;
12915 PyObject * obj4 = 0 ;
12916 char *kwnames[] = {
12917 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12918 };
12919
12920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12923 {
12924 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12925 if (arg3 == NULL) SWIG_fail;
12926 }
12927 if (obj2) {
c32bde28 12928 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 if (obj3) {
c32bde28 12932 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12933 if (PyErr_Occurred()) SWIG_fail;
12934 }
12935 if (obj4) {
c32bde28 12936 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12937 if (PyErr_Occurred()) SWIG_fail;
12938 }
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12942
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 Py_INCREF(Py_None); resultobj = Py_None;
12947 {
12948 if (arg3) delete [] arg3;
12949 }
12950 return resultobj;
12951 fail:
12952 {
12953 if (arg3) delete [] arg3;
12954 }
12955 return NULL;
12956}
12957
12958
c32bde28 12959static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12960 PyObject *resultobj;
12961 wxDC *arg1 = (wxDC *) 0 ;
12962 wxString *arg2 = 0 ;
12963 wxRect *arg3 = 0 ;
12964 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12965 int arg5 = (int) -1 ;
12966 bool temp2 = False ;
12967 wxRect temp3 ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 PyObject * obj2 = 0 ;
12971 PyObject * obj3 = 0 ;
12972 PyObject * obj4 = 0 ;
12973 char *kwnames[] = {
12974 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12975 };
12976
12977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12980 {
12981 arg2 = wxString_in_helper(obj1);
12982 if (arg2 == NULL) SWIG_fail;
12983 temp2 = True;
12984 }
12985 {
12986 arg3 = &temp3;
12987 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12988 }
12989 if (obj3) {
c32bde28 12990 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 if (obj4) {
c32bde28 12994 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
13000
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 Py_INCREF(Py_None); resultobj = Py_None;
13005 {
13006 if (temp2)
13007 delete arg2;
13008 }
13009 return resultobj;
13010 fail:
13011 {
13012 if (temp2)
13013 delete arg2;
13014 }
13015 return NULL;
13016}
13017
13018
c32bde28 13019static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13020 PyObject *resultobj;
13021 wxDC *arg1 = (wxDC *) 0 ;
13022 wxString *arg2 = 0 ;
13023 wxBitmap *arg3 = 0 ;
13024 wxRect *arg4 = 0 ;
13025 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
13026 int arg6 = (int) -1 ;
13027 wxRect result;
13028 bool temp2 = False ;
13029 wxRect temp4 ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 PyObject * obj2 = 0 ;
13033 PyObject * obj3 = 0 ;
13034 PyObject * obj4 = 0 ;
13035 PyObject * obj5 = 0 ;
13036 char *kwnames[] = {
13037 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
13038 };
13039
13040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13043 {
13044 arg2 = wxString_in_helper(obj1);
13045 if (arg2 == NULL) SWIG_fail;
13046 temp2 = True;
13047 }
13048 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
13049 SWIG_POINTER_EXCEPTION | 0)) == -1)
13050 SWIG_fail;
13051 if (arg3 == NULL) {
13052 PyErr_SetString(PyExc_TypeError,"null reference");
13053 SWIG_fail;
13054 }
13055 {
13056 arg4 = &temp4;
13057 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
13058 }
13059 if (obj4) {
c32bde28 13060 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 if (obj5) {
c32bde28 13064 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
13070
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 wxRect * resultptr;
13076 resultptr = new wxRect((wxRect &) result);
13077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13078 }
13079 {
13080 if (temp2)
13081 delete arg2;
13082 }
13083 return resultobj;
13084 fail:
13085 {
13086 if (temp2)
13087 delete arg2;
13088 }
13089 return NULL;
13090}
13091
13092
c32bde28 13093static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13094 PyObject *resultobj;
13095 wxDC *arg1 = (wxDC *) 0 ;
13096 int arg2 ;
13097 wxPoint *arg3 = (wxPoint *) 0 ;
13098 PyObject * obj0 = 0 ;
13099 PyObject * obj1 = 0 ;
13100 char *kwnames[] = {
13101 (char *) "self",(char *) "points", NULL
13102 };
13103
13104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
13105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13107 {
13108 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13109 if (arg3 == NULL) SWIG_fail;
13110 }
13111 {
13112 PyThreadState* __tstate = wxPyBeginAllowThreads();
13113 (arg1)->DrawSpline(arg2,arg3);
13114
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 Py_INCREF(Py_None); resultobj = Py_None;
13119 {
13120 if (arg3) delete [] arg3;
13121 }
13122 return resultobj;
13123 fail:
13124 {
13125 if (arg3) delete [] arg3;
13126 }
13127 return NULL;
13128}
13129
13130
c32bde28 13131static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13132 PyObject *resultobj;
13133 wxDC *arg1 = (wxDC *) 0 ;
13134 PyObject * obj0 = 0 ;
13135 char *kwnames[] = {
13136 (char *) "self", NULL
13137 };
13138
13139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
13140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 (arg1)->Clear();
13145
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 Py_INCREF(Py_None); resultobj = Py_None;
13150 return resultobj;
13151 fail:
13152 return NULL;
13153}
13154
13155
c32bde28 13156static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13157 PyObject *resultobj;
13158 wxDC *arg1 = (wxDC *) 0 ;
13159 wxString *arg2 = 0 ;
13160 bool result;
13161 bool temp2 = False ;
13162 PyObject * obj0 = 0 ;
13163 PyObject * obj1 = 0 ;
13164 char *kwnames[] = {
13165 (char *) "self",(char *) "message", NULL
13166 };
13167
13168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
13169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13171 {
13172 arg2 = wxString_in_helper(obj1);
13173 if (arg2 == NULL) SWIG_fail;
13174 temp2 = True;
13175 }
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
13179
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 {
13184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13185 }
13186 {
13187 if (temp2)
13188 delete arg2;
13189 }
13190 return resultobj;
13191 fail:
13192 {
13193 if (temp2)
13194 delete arg2;
13195 }
13196 return NULL;
13197}
13198
13199
c32bde28 13200static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13201 PyObject *resultobj;
13202 wxDC *arg1 = (wxDC *) 0 ;
13203 PyObject * obj0 = 0 ;
13204 char *kwnames[] = {
13205 (char *) "self", NULL
13206 };
13207
13208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
13209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 (arg1)->EndDoc();
13214
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 Py_INCREF(Py_None); resultobj = Py_None;
13219 return resultobj;
13220 fail:
13221 return NULL;
13222}
13223
13224
c32bde28 13225static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13226 PyObject *resultobj;
13227 wxDC *arg1 = (wxDC *) 0 ;
13228 PyObject * obj0 = 0 ;
13229 char *kwnames[] = {
13230 (char *) "self", NULL
13231 };
13232
13233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 (arg1)->StartPage();
13239
13240 wxPyEndAllowThreads(__tstate);
13241 if (PyErr_Occurred()) SWIG_fail;
13242 }
13243 Py_INCREF(Py_None); resultobj = Py_None;
13244 return resultobj;
13245 fail:
13246 return NULL;
13247}
13248
13249
c32bde28 13250static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13251 PyObject *resultobj;
13252 wxDC *arg1 = (wxDC *) 0 ;
13253 PyObject * obj0 = 0 ;
13254 char *kwnames[] = {
13255 (char *) "self", NULL
13256 };
13257
13258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 (arg1)->EndPage();
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 Py_INCREF(Py_None); resultobj = Py_None;
13269 return resultobj;
13270 fail:
13271 return NULL;
13272}
13273
13274
c32bde28 13275static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13276 PyObject *resultobj;
13277 wxDC *arg1 = (wxDC *) 0 ;
13278 wxFont *arg2 = 0 ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self",(char *) "font", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13289 SWIG_POINTER_EXCEPTION | 0)) == -1)
13290 SWIG_fail;
13291 if (arg2 == NULL) {
13292 PyErr_SetString(PyExc_TypeError,"null reference");
13293 SWIG_fail;
13294 }
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 (arg1)->SetFont((wxFont const &)*arg2);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 Py_INCREF(Py_None); resultobj = Py_None;
13303 return resultobj;
13304 fail:
13305 return NULL;
13306}
13307
13308
c32bde28 13309static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13310 PyObject *resultobj;
13311 wxDC *arg1 = (wxDC *) 0 ;
13312 wxPen *arg2 = 0 ;
13313 PyObject * obj0 = 0 ;
13314 PyObject * obj1 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "self",(char *) "pen", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13323 SWIG_POINTER_EXCEPTION | 0)) == -1)
13324 SWIG_fail;
13325 if (arg2 == NULL) {
13326 PyErr_SetString(PyExc_TypeError,"null reference");
13327 SWIG_fail;
13328 }
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 (arg1)->SetPen((wxPen const &)*arg2);
13332
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 Py_INCREF(Py_None); resultobj = Py_None;
13337 return resultobj;
13338 fail:
13339 return NULL;
13340}
13341
13342
c32bde28 13343static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13344 PyObject *resultobj;
13345 wxDC *arg1 = (wxDC *) 0 ;
13346 wxBrush *arg2 = 0 ;
13347 PyObject * obj0 = 0 ;
13348 PyObject * obj1 = 0 ;
13349 char *kwnames[] = {
13350 (char *) "self",(char *) "brush", NULL
13351 };
13352
13353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13357 SWIG_POINTER_EXCEPTION | 0)) == -1)
13358 SWIG_fail;
13359 if (arg2 == NULL) {
13360 PyErr_SetString(PyExc_TypeError,"null reference");
13361 SWIG_fail;
13362 }
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 (arg1)->SetBrush((wxBrush const &)*arg2);
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 Py_INCREF(Py_None); resultobj = Py_None;
13371 return resultobj;
13372 fail:
13373 return NULL;
13374}
13375
13376
c32bde28 13377static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13378 PyObject *resultobj;
13379 wxDC *arg1 = (wxDC *) 0 ;
13380 wxBrush *arg2 = 0 ;
13381 PyObject * obj0 = 0 ;
13382 PyObject * obj1 = 0 ;
13383 char *kwnames[] = {
13384 (char *) "self",(char *) "brush", NULL
13385 };
13386
13387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13390 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13391 SWIG_POINTER_EXCEPTION | 0)) == -1)
13392 SWIG_fail;
13393 if (arg2 == NULL) {
13394 PyErr_SetString(PyExc_TypeError,"null reference");
13395 SWIG_fail;
13396 }
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 (arg1)->SetBackground((wxBrush const &)*arg2);
13400
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 Py_INCREF(Py_None); resultobj = Py_None;
13405 return resultobj;
13406 fail:
13407 return NULL;
13408}
13409
13410
c32bde28 13411static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13412 PyObject *resultobj;
13413 wxDC *arg1 = (wxDC *) 0 ;
13414 int arg2 ;
13415 PyObject * obj0 = 0 ;
13416 PyObject * obj1 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "self",(char *) "mode", NULL
13419 };
13420
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13424 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13425 if (PyErr_Occurred()) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->SetBackgroundMode(arg2);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 return resultobj;
13435 fail:
13436 return NULL;
13437}
13438
13439
c32bde28 13440static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13441 PyObject *resultobj;
13442 wxDC *arg1 = (wxDC *) 0 ;
13443 wxPalette *arg2 = 0 ;
13444 PyObject * obj0 = 0 ;
13445 PyObject * obj1 = 0 ;
13446 char *kwnames[] = {
13447 (char *) "self",(char *) "palette", NULL
13448 };
13449
13450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13454 SWIG_POINTER_EXCEPTION | 0)) == -1)
13455 SWIG_fail;
13456 if (arg2 == NULL) {
13457 PyErr_SetString(PyExc_TypeError,"null reference");
13458 SWIG_fail;
13459 }
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 (arg1)->SetPalette((wxPalette const &)*arg2);
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 Py_INCREF(Py_None); resultobj = Py_None;
13468 return resultobj;
13469 fail:
13470 return NULL;
13471}
13472
13473
c32bde28 13474static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13475 PyObject *resultobj;
13476 wxDC *arg1 = (wxDC *) 0 ;
13477 PyObject * obj0 = 0 ;
13478 char *kwnames[] = {
13479 (char *) "self", NULL
13480 };
13481
13482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 (arg1)->DestroyClippingRegion();
13488
13489 wxPyEndAllowThreads(__tstate);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 Py_INCREF(Py_None); resultobj = Py_None;
13493 return resultobj;
13494 fail:
13495 return NULL;
13496}
13497
13498
c32bde28 13499static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13500 PyObject *resultobj;
13501 wxDC *arg1 = (wxDC *) 0 ;
13502 int *arg2 = (int *) 0 ;
13503 int *arg3 = (int *) 0 ;
13504 int *arg4 = (int *) 0 ;
13505 int *arg5 = (int *) 0 ;
13506 int temp2 ;
c32bde28 13507 int res2 = 0 ;
d55e5bfc 13508 int temp3 ;
c32bde28 13509 int res3 = 0 ;
d55e5bfc 13510 int temp4 ;
c32bde28 13511 int res4 = 0 ;
d55e5bfc 13512 int temp5 ;
c32bde28 13513 int res5 = 0 ;
d55e5bfc
RD
13514 PyObject * obj0 = 0 ;
13515 char *kwnames[] = {
13516 (char *) "self", NULL
13517 };
13518
c32bde28
RD
13519 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13520 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13521 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13522 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13534 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13535 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13536 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13537 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13538 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13539 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13540 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13541 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13542 return resultobj;
13543 fail:
13544 return NULL;
13545}
13546
13547
c32bde28 13548static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13549 PyObject *resultobj;
13550 wxDC *arg1 = (wxDC *) 0 ;
13551 wxRect result;
13552 PyObject * obj0 = 0 ;
13553 char *kwnames[] = {
13554 (char *) "self", NULL
13555 };
13556
13557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13560 {
13561 PyThreadState* __tstate = wxPyBeginAllowThreads();
13562 result = wxDC_GetClippingRect(arg1);
13563
13564 wxPyEndAllowThreads(__tstate);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 {
13568 wxRect * resultptr;
13569 resultptr = new wxRect((wxRect &) result);
13570 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13571 }
13572 return resultobj;
13573 fail:
13574 return NULL;
13575}
13576
13577
c32bde28 13578static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13579 PyObject *resultobj;
13580 wxDC *arg1 = (wxDC *) 0 ;
13581 int result;
13582 PyObject * obj0 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "self", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13590 {
13591 PyThreadState* __tstate = wxPyBeginAllowThreads();
13592 result = (int)((wxDC const *)arg1)->GetCharHeight();
13593
13594 wxPyEndAllowThreads(__tstate);
13595 if (PyErr_Occurred()) SWIG_fail;
13596 }
c32bde28 13597 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13598 return resultobj;
13599 fail:
13600 return NULL;
13601}
13602
13603
c32bde28 13604static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13605 PyObject *resultobj;
13606 wxDC *arg1 = (wxDC *) 0 ;
13607 int result;
13608 PyObject * obj0 = 0 ;
13609 char *kwnames[] = {
13610 (char *) "self", NULL
13611 };
13612
13613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13616 {
13617 PyThreadState* __tstate = wxPyBeginAllowThreads();
13618 result = (int)((wxDC const *)arg1)->GetCharWidth();
13619
13620 wxPyEndAllowThreads(__tstate);
13621 if (PyErr_Occurred()) SWIG_fail;
13622 }
c32bde28 13623 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13624 return resultobj;
13625 fail:
13626 return NULL;
13627}
13628
13629
c32bde28 13630static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13631 PyObject *resultobj;
13632 wxDC *arg1 = (wxDC *) 0 ;
13633 wxString *arg2 = 0 ;
13634 int *arg3 = (int *) 0 ;
13635 int *arg4 = (int *) 0 ;
13636 bool temp2 = False ;
13637 int temp3 ;
c32bde28 13638 int res3 = 0 ;
d55e5bfc 13639 int temp4 ;
c32bde28 13640 int res4 = 0 ;
d55e5bfc
RD
13641 PyObject * obj0 = 0 ;
13642 PyObject * obj1 = 0 ;
13643 char *kwnames[] = {
13644 (char *) "self",(char *) "string", NULL
13645 };
13646
c32bde28
RD
13647 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13648 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
13649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13652 {
13653 arg2 = wxString_in_helper(obj1);
13654 if (arg2 == NULL) SWIG_fail;
13655 temp2 = True;
13656 }
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13665 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13666 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13667 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13668 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13669 {
13670 if (temp2)
13671 delete arg2;
13672 }
13673 return resultobj;
13674 fail:
13675 {
13676 if (temp2)
13677 delete arg2;
13678 }
13679 return NULL;
13680}
13681
13682
c32bde28 13683static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13684 PyObject *resultobj;
13685 wxDC *arg1 = (wxDC *) 0 ;
13686 wxString *arg2 = 0 ;
13687 int *arg3 = (int *) 0 ;
13688 int *arg4 = (int *) 0 ;
13689 int *arg5 = (int *) 0 ;
13690 int *arg6 = (int *) 0 ;
13691 wxFont *arg7 = (wxFont *) NULL ;
13692 bool temp2 = False ;
13693 int temp3 ;
c32bde28 13694 int res3 = 0 ;
d55e5bfc 13695 int temp4 ;
c32bde28 13696 int res4 = 0 ;
d55e5bfc 13697 int temp5 ;
c32bde28 13698 int res5 = 0 ;
d55e5bfc 13699 int temp6 ;
c32bde28 13700 int res6 = 0 ;
d55e5bfc
RD
13701 PyObject * obj0 = 0 ;
13702 PyObject * obj1 = 0 ;
13703 PyObject * obj2 = 0 ;
13704 char *kwnames[] = {
13705 (char *) "self",(char *) "string",(char *) "font", NULL
13706 };
13707
c32bde28
RD
13708 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13709 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13710 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13711 arg6 = &temp6; res6 = SWIG_NEWOBJ;
d55e5bfc
RD
13712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13715 {
13716 arg2 = wxString_in_helper(obj1);
13717 if (arg2 == NULL) SWIG_fail;
13718 temp2 = True;
13719 }
13720 if (obj2) {
13721 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13723 }
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13727
13728 wxPyEndAllowThreads(__tstate);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
13731 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13732 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13733 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13734 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13735 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13736 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13737 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13738 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13739 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13740 {
13741 if (temp2)
13742 delete arg2;
13743 }
13744 return resultobj;
13745 fail:
13746 {
13747 if (temp2)
13748 delete arg2;
13749 }
13750 return NULL;
13751}
13752
13753
c32bde28 13754static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13755 PyObject *resultobj;
13756 wxDC *arg1 = (wxDC *) 0 ;
13757 wxString *arg2 = 0 ;
13758 int *arg3 = (int *) 0 ;
13759 int *arg4 = (int *) 0 ;
13760 int *arg5 = (int *) 0 ;
13761 wxFont *arg6 = (wxFont *) NULL ;
13762 bool temp2 = False ;
13763 int temp3 ;
c32bde28 13764 int res3 = 0 ;
d55e5bfc 13765 int temp4 ;
c32bde28 13766 int res4 = 0 ;
d55e5bfc 13767 int temp5 ;
c32bde28 13768 int res5 = 0 ;
d55e5bfc
RD
13769 PyObject * obj0 = 0 ;
13770 PyObject * obj1 = 0 ;
13771 PyObject * obj2 = 0 ;
13772 char *kwnames[] = {
13773 (char *) "self",(char *) "text",(char *) "font", NULL
13774 };
13775
c32bde28
RD
13776 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13777 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13778 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13782 {
13783 arg2 = wxString_in_helper(obj1);
13784 if (arg2 == NULL) SWIG_fail;
13785 temp2 = True;
13786 }
13787 if (obj2) {
13788 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13790 }
13791 {
13792 PyThreadState* __tstate = wxPyBeginAllowThreads();
13793 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13794
13795 wxPyEndAllowThreads(__tstate);
13796 if (PyErr_Occurred()) SWIG_fail;
13797 }
13798 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13799 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13800 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13801 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13802 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13803 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13804 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13805 {
13806 if (temp2)
13807 delete arg2;
13808 }
13809 return resultobj;
13810 fail:
13811 {
13812 if (temp2)
13813 delete arg2;
13814 }
13815 return NULL;
13816}
13817
13818
c32bde28 13819static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13820 PyObject *resultobj;
13821 wxDC *arg1 = (wxDC *) 0 ;
13822 wxString *arg2 = 0 ;
13823 wxArrayInt result;
13824 bool temp2 = False ;
13825 PyObject * obj0 = 0 ;
13826 PyObject * obj1 = 0 ;
13827 char *kwnames[] = {
13828 (char *) "self",(char *) "text", NULL
13829 };
13830
13831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13834 {
13835 arg2 = wxString_in_helper(obj1);
13836 if (arg2 == NULL) SWIG_fail;
13837 temp2 = True;
13838 }
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13842
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 {
13847 resultobj = PyList_New(0);
13848 size_t idx;
13849 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13850 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13851 PyList_Append(resultobj, val);
13852 Py_DECREF(val);
13853 }
13854 }
13855 {
13856 if (temp2)
13857 delete arg2;
13858 }
13859 return resultobj;
13860 fail:
13861 {
13862 if (temp2)
13863 delete arg2;
13864 }
13865 return NULL;
13866}
13867
13868
c32bde28 13869static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13870 PyObject *resultobj;
13871 wxDC *arg1 = (wxDC *) 0 ;
13872 wxSize result;
13873 PyObject * obj0 = 0 ;
13874 char *kwnames[] = {
13875 (char *) "self", NULL
13876 };
13877
13878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 result = (arg1)->GetSize();
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 {
13889 wxSize * resultptr;
13890 resultptr = new wxSize((wxSize &) result);
13891 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13892 }
13893 return resultobj;
13894 fail:
13895 return NULL;
13896}
13897
13898
c32bde28 13899static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13900 PyObject *resultobj;
13901 wxDC *arg1 = (wxDC *) 0 ;
13902 int *arg2 = (int *) 0 ;
13903 int *arg3 = (int *) 0 ;
13904 int temp2 ;
c32bde28 13905 int res2 = 0 ;
d55e5bfc 13906 int temp3 ;
c32bde28 13907 int res3 = 0 ;
d55e5bfc
RD
13908 PyObject * obj0 = 0 ;
13909 char *kwnames[] = {
13910 (char *) "self", NULL
13911 };
13912
c32bde28
RD
13913 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13914 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
13915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 (arg1)->GetSize(arg2,arg3);
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13926 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13927 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13928 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13929 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13930 return resultobj;
13931 fail:
13932 return NULL;
13933}
13934
13935
c32bde28 13936static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13937 PyObject *resultobj;
13938 wxDC *arg1 = (wxDC *) 0 ;
13939 wxSize result;
13940 PyObject * obj0 = 0 ;
13941 char *kwnames[] = {
13942 (char *) "self", NULL
13943 };
13944
13945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13948 {
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 result = ((wxDC const *)arg1)->GetSizeMM();
13951
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 {
13956 wxSize * resultptr;
13957 resultptr = new wxSize((wxSize &) result);
13958 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13959 }
13960 return resultobj;
13961 fail:
13962 return NULL;
13963}
13964
13965
c32bde28 13966static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13967 PyObject *resultobj;
13968 wxDC *arg1 = (wxDC *) 0 ;
13969 int *arg2 = (int *) 0 ;
13970 int *arg3 = (int *) 0 ;
13971 int temp2 ;
c32bde28 13972 int res2 = 0 ;
d55e5bfc 13973 int temp3 ;
c32bde28 13974 int res3 = 0 ;
d55e5bfc
RD
13975 PyObject * obj0 = 0 ;
13976 char *kwnames[] = {
13977 (char *) "self", NULL
13978 };
13979
c32bde28
RD
13980 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13981 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
13982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13985 {
13986 PyThreadState* __tstate = wxPyBeginAllowThreads();
13987 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13988
13989 wxPyEndAllowThreads(__tstate);
13990 if (PyErr_Occurred()) SWIG_fail;
13991 }
13992 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13993 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13994 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13995 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13996 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13997 return resultobj;
13998 fail:
13999 return NULL;
14000}
14001
14002
c32bde28 14003static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14004 PyObject *resultobj;
14005 wxDC *arg1 = (wxDC *) 0 ;
14006 int arg2 ;
14007 int result;
14008 PyObject * obj0 = 0 ;
14009 PyObject * obj1 = 0 ;
14010 char *kwnames[] = {
14011 (char *) "self",(char *) "x", NULL
14012 };
14013
14014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
14015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14017 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14018 if (PyErr_Occurred()) SWIG_fail;
14019 {
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
14022
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
c32bde28 14026 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14027 return resultobj;
14028 fail:
14029 return NULL;
14030}
14031
14032
c32bde28 14033static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14034 PyObject *resultobj;
14035 wxDC *arg1 = (wxDC *) 0 ;
14036 int arg2 ;
14037 int result;
14038 PyObject * obj0 = 0 ;
14039 PyObject * obj1 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self",(char *) "y", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14047 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14048 if (PyErr_Occurred()) SWIG_fail;
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
14052
14053 wxPyEndAllowThreads(__tstate);
14054 if (PyErr_Occurred()) SWIG_fail;
14055 }
c32bde28 14056 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14057 return resultobj;
14058 fail:
14059 return NULL;
14060}
14061
14062
c32bde28 14063static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14064 PyObject *resultobj;
14065 wxDC *arg1 = (wxDC *) 0 ;
14066 int arg2 ;
14067 int result;
14068 PyObject * obj0 = 0 ;
14069 PyObject * obj1 = 0 ;
14070 char *kwnames[] = {
14071 (char *) "self",(char *) "x", NULL
14072 };
14073
14074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
14075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14077 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14078 if (PyErr_Occurred()) SWIG_fail;
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
14082
14083 wxPyEndAllowThreads(__tstate);
14084 if (PyErr_Occurred()) SWIG_fail;
14085 }
c32bde28 14086 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14087 return resultobj;
14088 fail:
14089 return NULL;
14090}
14091
14092
c32bde28 14093static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14094 PyObject *resultobj;
14095 wxDC *arg1 = (wxDC *) 0 ;
14096 int arg2 ;
14097 int result;
14098 PyObject * obj0 = 0 ;
14099 PyObject * obj1 = 0 ;
14100 char *kwnames[] = {
14101 (char *) "self",(char *) "y", NULL
14102 };
14103
14104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
14105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14107 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14108 if (PyErr_Occurred()) SWIG_fail;
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
14112
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
c32bde28 14116 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14117 return resultobj;
14118 fail:
14119 return NULL;
14120}
14121
14122
c32bde28 14123static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14124 PyObject *resultobj;
14125 wxDC *arg1 = (wxDC *) 0 ;
14126 int arg2 ;
14127 int result;
14128 PyObject * obj0 = 0 ;
14129 PyObject * obj1 = 0 ;
14130 char *kwnames[] = {
14131 (char *) "self",(char *) "x", NULL
14132 };
14133
14134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
14135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14137 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14138 if (PyErr_Occurred()) SWIG_fail;
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
c32bde28 14146 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14147 return resultobj;
14148 fail:
14149 return NULL;
14150}
14151
14152
c32bde28 14153static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14154 PyObject *resultobj;
14155 wxDC *arg1 = (wxDC *) 0 ;
14156 int arg2 ;
14157 int result;
14158 PyObject * obj0 = 0 ;
14159 PyObject * obj1 = 0 ;
14160 char *kwnames[] = {
14161 (char *) "self",(char *) "y", NULL
14162 };
14163
14164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
14165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14167 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14168 if (PyErr_Occurred()) SWIG_fail;
14169 {
14170 PyThreadState* __tstate = wxPyBeginAllowThreads();
14171 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14172
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
c32bde28 14176 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14177 return resultobj;
14178 fail:
14179 return NULL;
14180}
14181
14182
c32bde28 14183static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14184 PyObject *resultobj;
14185 wxDC *arg1 = (wxDC *) 0 ;
14186 int arg2 ;
14187 int result;
14188 PyObject * obj0 = 0 ;
14189 PyObject * obj1 = 0 ;
14190 char *kwnames[] = {
14191 (char *) "self",(char *) "x", NULL
14192 };
14193
14194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14197 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14198 if (PyErr_Occurred()) SWIG_fail;
14199 {
14200 PyThreadState* __tstate = wxPyBeginAllowThreads();
14201 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14202
14203 wxPyEndAllowThreads(__tstate);
14204 if (PyErr_Occurred()) SWIG_fail;
14205 }
c32bde28 14206 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14207 return resultobj;
14208 fail:
14209 return NULL;
14210}
14211
14212
c32bde28 14213static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14214 PyObject *resultobj;
14215 wxDC *arg1 = (wxDC *) 0 ;
14216 int arg2 ;
14217 int result;
14218 PyObject * obj0 = 0 ;
14219 PyObject * obj1 = 0 ;
14220 char *kwnames[] = {
14221 (char *) "self",(char *) "y", NULL
14222 };
14223
14224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14227 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14228 if (PyErr_Occurred()) SWIG_fail;
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14232
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
c32bde28 14236 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14237 return resultobj;
14238 fail:
14239 return NULL;
14240}
14241
14242
c32bde28 14243static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14244 PyObject *resultobj;
14245 wxDC *arg1 = (wxDC *) 0 ;
14246 bool result;
14247 PyObject * obj0 = 0 ;
14248 char *kwnames[] = {
14249 (char *) "self", NULL
14250 };
14251
14252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 {
14263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14264 }
14265 return resultobj;
14266 fail:
14267 return NULL;
14268}
14269
14270
c32bde28 14271static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14272 PyObject *resultobj;
14273 wxDC *arg1 = (wxDC *) 0 ;
14274 bool result;
14275 PyObject * obj0 = 0 ;
14276 char *kwnames[] = {
14277 (char *) "self", NULL
14278 };
14279
14280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14283 {
14284 PyThreadState* __tstate = wxPyBeginAllowThreads();
14285 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14286
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 {
14291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14292 }
14293 return resultobj;
14294 fail:
14295 return NULL;
14296}
14297
14298
c32bde28 14299static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14300 PyObject *resultobj;
14301 wxDC *arg1 = (wxDC *) 0 ;
14302 int result;
14303 PyObject * obj0 = 0 ;
14304 char *kwnames[] = {
14305 (char *) "self", NULL
14306 };
14307
14308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14311 {
14312 PyThreadState* __tstate = wxPyBeginAllowThreads();
14313 result = (int)((wxDC const *)arg1)->GetDepth();
14314
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
c32bde28 14318 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14319 return resultobj;
14320 fail:
14321 return NULL;
14322}
14323
14324
c32bde28 14325static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14326 PyObject *resultobj;
14327 wxDC *arg1 = (wxDC *) 0 ;
14328 wxSize result;
14329 PyObject * obj0 = 0 ;
14330 char *kwnames[] = {
14331 (char *) "self", NULL
14332 };
14333
14334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = ((wxDC const *)arg1)->GetPPI();
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 {
14345 wxSize * resultptr;
14346 resultptr = new wxSize((wxSize &) result);
14347 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14348 }
14349 return resultobj;
14350 fail:
14351 return NULL;
14352}
14353
14354
c32bde28 14355static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14356 PyObject *resultobj;
14357 wxDC *arg1 = (wxDC *) 0 ;
14358 bool result;
14359 PyObject * obj0 = 0 ;
14360 char *kwnames[] = {
14361 (char *) "self", NULL
14362 };
14363
14364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14367 {
14368 PyThreadState* __tstate = wxPyBeginAllowThreads();
14369 result = (bool)((wxDC const *)arg1)->Ok();
14370
14371 wxPyEndAllowThreads(__tstate);
14372 if (PyErr_Occurred()) SWIG_fail;
14373 }
14374 {
14375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14376 }
14377 return resultobj;
14378 fail:
14379 return NULL;
14380}
14381
14382
c32bde28 14383static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14384 PyObject *resultobj;
14385 wxDC *arg1 = (wxDC *) 0 ;
14386 int result;
14387 PyObject * obj0 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14398
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
c32bde28 14402 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14403 return resultobj;
14404 fail:
14405 return NULL;
14406}
14407
14408
c32bde28 14409static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14410 PyObject *resultobj;
14411 wxDC *arg1 = (wxDC *) 0 ;
14412 wxBrush *result;
14413 PyObject * obj0 = 0 ;
14414 char *kwnames[] = {
14415 (char *) "self", NULL
14416 };
14417
14418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14421 {
14422 PyThreadState* __tstate = wxPyBeginAllowThreads();
14423 {
14424 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14425 result = (wxBrush *) &_result_ref;
14426 }
14427
14428 wxPyEndAllowThreads(__tstate);
14429 if (PyErr_Occurred()) SWIG_fail;
14430 }
14431 {
14432 wxBrush* resultptr = new wxBrush(*result);
14433 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14434 }
14435 return resultobj;
14436 fail:
14437 return NULL;
14438}
14439
14440
c32bde28 14441static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14442 PyObject *resultobj;
14443 wxDC *arg1 = (wxDC *) 0 ;
14444 wxBrush *result;
14445 PyObject * obj0 = 0 ;
14446 char *kwnames[] = {
14447 (char *) "self", NULL
14448 };
14449
14450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14453 {
14454 PyThreadState* __tstate = wxPyBeginAllowThreads();
14455 {
14456 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14457 result = (wxBrush *) &_result_ref;
14458 }
14459
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 {
14464 wxBrush* resultptr = new wxBrush(*result);
14465 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14466 }
14467 return resultobj;
14468 fail:
14469 return NULL;
14470}
14471
14472
c32bde28 14473static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14474 PyObject *resultobj;
14475 wxDC *arg1 = (wxDC *) 0 ;
14476 wxFont *result;
14477 PyObject * obj0 = 0 ;
14478 char *kwnames[] = {
14479 (char *) "self", NULL
14480 };
14481
14482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 {
14488 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14489 result = (wxFont *) &_result_ref;
14490 }
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 {
14496 wxFont* resultptr = new wxFont(*result);
14497 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14498 }
14499 return resultobj;
14500 fail:
14501 return NULL;
14502}
14503
14504
c32bde28 14505static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14506 PyObject *resultobj;
14507 wxDC *arg1 = (wxDC *) 0 ;
14508 wxPen *result;
14509 PyObject * obj0 = 0 ;
14510 char *kwnames[] = {
14511 (char *) "self", NULL
14512 };
14513
14514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 {
14520 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14521 result = (wxPen *) &_result_ref;
14522 }
14523
14524 wxPyEndAllowThreads(__tstate);
14525 if (PyErr_Occurred()) SWIG_fail;
14526 }
14527 {
14528 wxPen* resultptr = new wxPen(*result);
14529 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14530 }
14531 return resultobj;
14532 fail:
14533 return NULL;
14534}
14535
14536
c32bde28 14537static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14538 PyObject *resultobj;
14539 wxDC *arg1 = (wxDC *) 0 ;
14540 wxColour *result;
14541 PyObject * obj0 = 0 ;
14542 char *kwnames[] = {
14543 (char *) "self", NULL
14544 };
14545
14546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 {
14552 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14553 result = (wxColour *) &_result_ref;
14554 }
14555
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14560 return resultobj;
14561 fail:
14562 return NULL;
14563}
14564
14565
c32bde28 14566static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14567 PyObject *resultobj;
14568 wxDC *arg1 = (wxDC *) 0 ;
14569 wxColour *result;
14570 PyObject * obj0 = 0 ;
14571 char *kwnames[] = {
14572 (char *) "self", NULL
14573 };
14574
14575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14578 {
14579 PyThreadState* __tstate = wxPyBeginAllowThreads();
14580 {
14581 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14582 result = (wxColour *) &_result_ref;
14583 }
14584
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14589 return resultobj;
14590 fail:
14591 return NULL;
14592}
14593
14594
c32bde28 14595static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14596 PyObject *resultobj;
14597 wxDC *arg1 = (wxDC *) 0 ;
14598 wxColour *arg2 = 0 ;
14599 wxColour temp2 ;
14600 PyObject * obj0 = 0 ;
14601 PyObject * obj1 = 0 ;
14602 char *kwnames[] = {
14603 (char *) "self",(char *) "colour", NULL
14604 };
14605
14606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14609 {
14610 arg2 = &temp2;
14611 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14612 }
14613 {
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 (arg1)->SetTextForeground((wxColour const &)*arg2);
14616
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 Py_INCREF(Py_None); resultobj = Py_None;
14621 return resultobj;
14622 fail:
14623 return NULL;
14624}
14625
14626
c32bde28 14627static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14628 PyObject *resultobj;
14629 wxDC *arg1 = (wxDC *) 0 ;
14630 wxColour *arg2 = 0 ;
14631 wxColour temp2 ;
14632 PyObject * obj0 = 0 ;
14633 PyObject * obj1 = 0 ;
14634 char *kwnames[] = {
14635 (char *) "self",(char *) "colour", NULL
14636 };
14637
14638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14641 {
14642 arg2 = &temp2;
14643 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14644 }
14645 {
14646 PyThreadState* __tstate = wxPyBeginAllowThreads();
14647 (arg1)->SetTextBackground((wxColour const &)*arg2);
14648
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 Py_INCREF(Py_None); resultobj = Py_None;
14653 return resultobj;
14654 fail:
14655 return NULL;
14656}
14657
14658
c32bde28 14659static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14660 PyObject *resultobj;
14661 wxDC *arg1 = (wxDC *) 0 ;
14662 int result;
14663 PyObject * obj0 = 0 ;
14664 char *kwnames[] = {
14665 (char *) "self", NULL
14666 };
14667
14668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = (int)((wxDC const *)arg1)->GetMapMode();
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
c32bde28 14678 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14679 return resultobj;
14680 fail:
14681 return NULL;
14682}
14683
14684
c32bde28 14685static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14686 PyObject *resultobj;
14687 wxDC *arg1 = (wxDC *) 0 ;
14688 int arg2 ;
14689 PyObject * obj0 = 0 ;
14690 PyObject * obj1 = 0 ;
14691 char *kwnames[] = {
14692 (char *) "self",(char *) "mode", NULL
14693 };
14694
14695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14698 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14699 if (PyErr_Occurred()) SWIG_fail;
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 (arg1)->SetMapMode(arg2);
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 Py_INCREF(Py_None); resultobj = Py_None;
14708 return resultobj;
14709 fail:
14710 return NULL;
14711}
14712
14713
c32bde28 14714static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14715 PyObject *resultobj;
14716 wxDC *arg1 = (wxDC *) 0 ;
14717 double *arg2 = (double *) 0 ;
14718 double *arg3 = (double *) 0 ;
14719 double temp2 ;
c32bde28 14720 int res2 = 0 ;
d55e5bfc 14721 double temp3 ;
c32bde28 14722 int res3 = 0 ;
d55e5bfc
RD
14723 PyObject * obj0 = 0 ;
14724 char *kwnames[] = {
14725 (char *) "self", NULL
14726 };
14727
c32bde28
RD
14728 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14729 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14736
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14741 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14742 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14743 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14744 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14745 return resultobj;
14746 fail:
14747 return NULL;
14748}
14749
14750
c32bde28 14751static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14752 PyObject *resultobj;
14753 wxDC *arg1 = (wxDC *) 0 ;
14754 double arg2 ;
14755 double arg3 ;
14756 PyObject * obj0 = 0 ;
14757 PyObject * obj1 = 0 ;
14758 PyObject * obj2 = 0 ;
14759 char *kwnames[] = {
14760 (char *) "self",(char *) "x",(char *) "y", NULL
14761 };
14762
14763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14766 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14767 if (PyErr_Occurred()) SWIG_fail;
c32bde28 14768 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
14769 if (PyErr_Occurred()) SWIG_fail;
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 (arg1)->SetUserScale(arg2,arg3);
14773
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 Py_INCREF(Py_None); resultobj = Py_None;
14778 return resultobj;
14779 fail:
14780 return NULL;
14781}
14782
14783
c32bde28 14784static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14785 PyObject *resultobj;
14786 wxDC *arg1 = (wxDC *) 0 ;
14787 double *arg2 = (double *) 0 ;
14788 double *arg3 = (double *) 0 ;
14789 double temp2 ;
c32bde28 14790 int res2 = 0 ;
d55e5bfc 14791 double temp3 ;
c32bde28 14792 int res3 = 0 ;
d55e5bfc
RD
14793 PyObject * obj0 = 0 ;
14794 char *kwnames[] = {
14795 (char *) "self", NULL
14796 };
14797
c32bde28
RD
14798 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14799 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14803 {
14804 PyThreadState* __tstate = wxPyBeginAllowThreads();
14805 (arg1)->GetLogicalScale(arg2,arg3);
14806
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14811 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14812 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14813 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14814 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14815 return resultobj;
14816 fail:
14817 return NULL;
14818}
14819
14820
c32bde28 14821static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14822 PyObject *resultobj;
14823 wxDC *arg1 = (wxDC *) 0 ;
14824 double arg2 ;
14825 double arg3 ;
14826 PyObject * obj0 = 0 ;
14827 PyObject * obj1 = 0 ;
14828 PyObject * obj2 = 0 ;
14829 char *kwnames[] = {
14830 (char *) "self",(char *) "x",(char *) "y", NULL
14831 };
14832
14833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14836 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14837 if (PyErr_Occurred()) SWIG_fail;
c32bde28 14838 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
14839 if (PyErr_Occurred()) SWIG_fail;
14840 {
14841 PyThreadState* __tstate = wxPyBeginAllowThreads();
14842 (arg1)->SetLogicalScale(arg2,arg3);
14843
14844 wxPyEndAllowThreads(__tstate);
14845 if (PyErr_Occurred()) SWIG_fail;
14846 }
14847 Py_INCREF(Py_None); resultobj = Py_None;
14848 return resultobj;
14849 fail:
14850 return NULL;
14851}
14852
14853
c32bde28 14854static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14855 PyObject *resultobj;
14856 wxDC *arg1 = (wxDC *) 0 ;
14857 wxPoint result;
14858 PyObject * obj0 = 0 ;
14859 char *kwnames[] = {
14860 (char *) "self", NULL
14861 };
14862
14863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 {
14874 wxPoint * resultptr;
14875 resultptr = new wxPoint((wxPoint &) result);
14876 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14877 }
14878 return resultobj;
14879 fail:
14880 return NULL;
14881}
14882
14883
c32bde28 14884static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14885 PyObject *resultobj;
14886 wxDC *arg1 = (wxDC *) 0 ;
14887 int *arg2 = (int *) 0 ;
14888 int *arg3 = (int *) 0 ;
14889 int temp2 ;
c32bde28 14890 int res2 = 0 ;
d55e5bfc 14891 int temp3 ;
c32bde28 14892 int res3 = 0 ;
d55e5bfc
RD
14893 PyObject * obj0 = 0 ;
14894 char *kwnames[] = {
14895 (char *) "self", NULL
14896 };
14897
c32bde28
RD
14898 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14899 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14906
14907 wxPyEndAllowThreads(__tstate);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 }
14910 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14911 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14912 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14913 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14914 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14915 return resultobj;
14916 fail:
14917 return NULL;
14918}
14919
14920
c32bde28 14921static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14922 PyObject *resultobj;
14923 wxDC *arg1 = (wxDC *) 0 ;
14924 int arg2 ;
14925 int arg3 ;
14926 PyObject * obj0 = 0 ;
14927 PyObject * obj1 = 0 ;
14928 PyObject * obj2 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self",(char *) "x",(char *) "y", NULL
14931 };
14932
14933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14936 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14937 if (PyErr_Occurred()) SWIG_fail;
c32bde28 14938 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14939 if (PyErr_Occurred()) SWIG_fail;
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 (arg1)->SetLogicalOrigin(arg2,arg3);
14943
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 Py_INCREF(Py_None); resultobj = Py_None;
14948 return resultobj;
14949 fail:
14950 return NULL;
14951}
14952
14953
c32bde28 14954static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
14955 PyObject *resultobj;
14956 wxDC *arg1 = (wxDC *) 0 ;
14957 wxPoint *arg2 = 0 ;
14958 wxPoint temp2 ;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char *kwnames[] = {
14962 (char *) "self",(char *) "point", NULL
14963 };
14964
14965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14968 {
14969 arg2 = &temp2;
14970 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14971 }
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14975
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 Py_INCREF(Py_None); resultobj = Py_None;
14980 return resultobj;
14981 fail:
14982 return NULL;
14983}
14984
14985
c32bde28 14986static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14987 PyObject *resultobj;
14988 wxDC *arg1 = (wxDC *) 0 ;
14989 wxPoint result;
14990 PyObject * obj0 = 0 ;
14991 char *kwnames[] = {
14992 (char *) "self", NULL
14993 };
14994
14995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14998 {
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 result = ((wxDC const *)arg1)->GetDeviceOrigin();
15001
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 {
15006 wxPoint * resultptr;
15007 resultptr = new wxPoint((wxPoint &) result);
15008 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15009 }
15010 return resultobj;
15011 fail:
15012 return NULL;
15013}
15014
15015
c32bde28 15016static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15017 PyObject *resultobj;
15018 wxDC *arg1 = (wxDC *) 0 ;
15019 int *arg2 = (int *) 0 ;
15020 int *arg3 = (int *) 0 ;
15021 int temp2 ;
c32bde28 15022 int res2 = 0 ;
d55e5bfc 15023 int temp3 ;
c32bde28 15024 int res3 = 0 ;
d55e5bfc
RD
15025 PyObject * obj0 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "self", NULL
15028 };
15029
c32bde28
RD
15030 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15031 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
15032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15035 {
15036 PyThreadState* __tstate = wxPyBeginAllowThreads();
15037 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
15038
15039 wxPyEndAllowThreads(__tstate);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 }
15042 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
15043 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15044 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15045 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15046 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15047 return resultobj;
15048 fail:
15049 return NULL;
15050}
15051
15052
c32bde28 15053static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15054 PyObject *resultobj;
15055 wxDC *arg1 = (wxDC *) 0 ;
15056 int arg2 ;
15057 int arg3 ;
15058 PyObject * obj0 = 0 ;
15059 PyObject * obj1 = 0 ;
15060 PyObject * obj2 = 0 ;
15061 char *kwnames[] = {
15062 (char *) "self",(char *) "x",(char *) "y", NULL
15063 };
15064
15065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15068 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 15069 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15070 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
15071 if (PyErr_Occurred()) SWIG_fail;
15072 {
15073 PyThreadState* __tstate = wxPyBeginAllowThreads();
15074 (arg1)->SetDeviceOrigin(arg2,arg3);
15075
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 Py_INCREF(Py_None); resultobj = Py_None;
15080 return resultobj;
15081 fail:
15082 return NULL;
15083}
15084
15085
c32bde28 15086static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
15087 PyObject *resultobj;
15088 wxDC *arg1 = (wxDC *) 0 ;
15089 wxPoint *arg2 = 0 ;
15090 wxPoint temp2 ;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 char *kwnames[] = {
15094 (char *) "self",(char *) "point", NULL
15095 };
15096
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
15098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15100 {
15101 arg2 = &temp2;
15102 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15103 }
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
15107
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 Py_INCREF(Py_None); resultobj = Py_None;
15112 return resultobj;
15113 fail:
15114 return NULL;
15115}
15116
15117
c32bde28 15118static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15119 PyObject *resultobj;
15120 wxDC *arg1 = (wxDC *) 0 ;
15121 bool arg2 ;
15122 bool arg3 ;
15123 PyObject * obj0 = 0 ;
15124 PyObject * obj1 = 0 ;
15125 PyObject * obj2 = 0 ;
15126 char *kwnames[] = {
15127 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
15128 };
15129
15130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15133 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc 15134 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15135 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
15136 if (PyErr_Occurred()) SWIG_fail;
15137 {
15138 PyThreadState* __tstate = wxPyBeginAllowThreads();
15139 (arg1)->SetAxisOrientation(arg2,arg3);
15140
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 Py_INCREF(Py_None); resultobj = Py_None;
15145 return resultobj;
15146 fail:
15147 return NULL;
15148}
15149
15150
c32bde28 15151static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15152 PyObject *resultobj;
15153 wxDC *arg1 = (wxDC *) 0 ;
15154 int result;
15155 PyObject * obj0 = 0 ;
15156 char *kwnames[] = {
15157 (char *) "self", NULL
15158 };
15159
15160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
15166
15167 wxPyEndAllowThreads(__tstate);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
c32bde28 15170 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15171 return resultobj;
15172 fail:
15173 return NULL;
15174}
15175
15176
c32bde28 15177static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15178 PyObject *resultobj;
15179 wxDC *arg1 = (wxDC *) 0 ;
15180 int arg2 ;
15181 PyObject * obj0 = 0 ;
15182 PyObject * obj1 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "self",(char *) "function", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15190 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15191 if (PyErr_Occurred()) SWIG_fail;
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 (arg1)->SetLogicalFunction(arg2);
15195
15196 wxPyEndAllowThreads(__tstate);
15197 if (PyErr_Occurred()) SWIG_fail;
15198 }
15199 Py_INCREF(Py_None); resultobj = Py_None;
15200 return resultobj;
15201 fail:
15202 return NULL;
15203}
15204
15205
c32bde28 15206static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15207 PyObject *resultobj;
15208 wxDC *arg1 = (wxDC *) 0 ;
15209 bool arg2 ;
15210 PyObject * obj0 = 0 ;
15211 PyObject * obj1 = 0 ;
15212 char *kwnames[] = {
f5b96ee1 15213 (char *) "self",(char *) "optimize", NULL
d55e5bfc
RD
15214 };
15215
15216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15219 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15220 if (PyErr_Occurred()) SWIG_fail;
15221 {
15222 PyThreadState* __tstate = wxPyBeginAllowThreads();
15223 (arg1)->SetOptimization(arg2);
15224
15225 wxPyEndAllowThreads(__tstate);
15226 if (PyErr_Occurred()) SWIG_fail;
15227 }
15228 Py_INCREF(Py_None); resultobj = Py_None;
15229 return resultobj;
15230 fail:
15231 return NULL;
15232}
15233
15234
c32bde28 15235static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15236 PyObject *resultobj;
15237 wxDC *arg1 = (wxDC *) 0 ;
15238 bool result;
15239 PyObject * obj0 = 0 ;
15240 char *kwnames[] = {
15241 (char *) "self", NULL
15242 };
15243
15244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15247 {
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 result = (bool)(arg1)->GetOptimization();
15250
15251 wxPyEndAllowThreads(__tstate);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 {
15255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15256 }
15257 return resultobj;
15258 fail:
15259 return NULL;
15260}
15261
15262
c32bde28 15263static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15264 PyObject *resultobj;
15265 wxDC *arg1 = (wxDC *) 0 ;
15266 int arg2 ;
15267 int arg3 ;
15268 PyObject * obj0 = 0 ;
15269 PyObject * obj1 = 0 ;
15270 PyObject * obj2 = 0 ;
15271 char *kwnames[] = {
15272 (char *) "self",(char *) "x",(char *) "y", NULL
15273 };
15274
15275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15278 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 15279 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15280 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
15281 if (PyErr_Occurred()) SWIG_fail;
15282 {
15283 PyThreadState* __tstate = wxPyBeginAllowThreads();
15284 (arg1)->CalcBoundingBox(arg2,arg3);
15285
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 Py_INCREF(Py_None); resultobj = Py_None;
15290 return resultobj;
15291 fail:
15292 return NULL;
15293}
15294
15295
c32bde28 15296static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
15297 PyObject *resultobj;
15298 wxDC *arg1 = (wxDC *) 0 ;
15299 wxPoint *arg2 = 0 ;
15300 wxPoint temp2 ;
15301 PyObject * obj0 = 0 ;
15302 PyObject * obj1 = 0 ;
15303 char *kwnames[] = {
15304 (char *) "self",(char *) "point", NULL
15305 };
15306
15307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15310 {
15311 arg2 = &temp2;
15312 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15313 }
15314 {
15315 PyThreadState* __tstate = wxPyBeginAllowThreads();
15316 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15317
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 Py_INCREF(Py_None); resultobj = Py_None;
15322 return resultobj;
15323 fail:
15324 return NULL;
15325}
15326
15327
c32bde28 15328static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15329 PyObject *resultobj;
15330 wxDC *arg1 = (wxDC *) 0 ;
15331 PyObject * obj0 = 0 ;
15332 char *kwnames[] = {
15333 (char *) "self", NULL
15334 };
15335
15336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15339 {
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 (arg1)->ResetBoundingBox();
15342
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 Py_INCREF(Py_None); resultobj = Py_None;
15347 return resultobj;
15348 fail:
15349 return NULL;
15350}
15351
15352
c32bde28 15353static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15354 PyObject *resultobj;
15355 wxDC *arg1 = (wxDC *) 0 ;
15356 int result;
15357 PyObject * obj0 = 0 ;
15358 char *kwnames[] = {
15359 (char *) "self", NULL
15360 };
15361
15362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15365 {
15366 PyThreadState* __tstate = wxPyBeginAllowThreads();
15367 result = (int)((wxDC const *)arg1)->MinX();
15368
15369 wxPyEndAllowThreads(__tstate);
15370 if (PyErr_Occurred()) SWIG_fail;
15371 }
c32bde28 15372 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15373 return resultobj;
15374 fail:
15375 return NULL;
15376}
15377
15378
c32bde28 15379static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15380 PyObject *resultobj;
15381 wxDC *arg1 = (wxDC *) 0 ;
15382 int result;
15383 PyObject * obj0 = 0 ;
15384 char *kwnames[] = {
15385 (char *) "self", NULL
15386 };
15387
15388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 result = (int)((wxDC const *)arg1)->MaxX();
15394
15395 wxPyEndAllowThreads(__tstate);
15396 if (PyErr_Occurred()) SWIG_fail;
15397 }
c32bde28 15398 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15399 return resultobj;
15400 fail:
15401 return NULL;
15402}
15403
15404
c32bde28 15405static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15406 PyObject *resultobj;
15407 wxDC *arg1 = (wxDC *) 0 ;
15408 int result;
15409 PyObject * obj0 = 0 ;
15410 char *kwnames[] = {
15411 (char *) "self", NULL
15412 };
15413
15414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (int)((wxDC const *)arg1)->MinY();
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
c32bde28 15424 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15425 return resultobj;
15426 fail:
15427 return NULL;
15428}
15429
15430
c32bde28 15431static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15432 PyObject *resultobj;
15433 wxDC *arg1 = (wxDC *) 0 ;
15434 int result;
15435 PyObject * obj0 = 0 ;
15436 char *kwnames[] = {
15437 (char *) "self", NULL
15438 };
15439
15440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15443 {
15444 PyThreadState* __tstate = wxPyBeginAllowThreads();
15445 result = (int)((wxDC const *)arg1)->MaxY();
15446
15447 wxPyEndAllowThreads(__tstate);
15448 if (PyErr_Occurred()) SWIG_fail;
15449 }
c32bde28 15450 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15451 return resultobj;
15452 fail:
15453 return NULL;
15454}
15455
15456
c32bde28 15457static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15458 PyObject *resultobj;
15459 wxDC *arg1 = (wxDC *) 0 ;
15460 int *arg2 = (int *) 0 ;
15461 int *arg3 = (int *) 0 ;
15462 int *arg4 = (int *) 0 ;
15463 int *arg5 = (int *) 0 ;
15464 int temp2 ;
c32bde28 15465 int res2 = 0 ;
d55e5bfc 15466 int temp3 ;
c32bde28 15467 int res3 = 0 ;
d55e5bfc 15468 int temp4 ;
c32bde28 15469 int res4 = 0 ;
d55e5bfc 15470 int temp5 ;
c32bde28 15471 int res5 = 0 ;
d55e5bfc
RD
15472 PyObject * obj0 = 0 ;
15473 char *kwnames[] = {
15474 (char *) "self", NULL
15475 };
15476
c32bde28
RD
15477 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15478 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15479 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15480 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15484 {
15485 PyThreadState* __tstate = wxPyBeginAllowThreads();
15486 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15487
15488 wxPyEndAllowThreads(__tstate);
15489 if (PyErr_Occurred()) SWIG_fail;
15490 }
15491 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
15492 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15493 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15494 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15495 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15496 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15497 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15498 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15499 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15500 return resultobj;
15501 fail:
15502 return NULL;
15503}
15504
15505
c32bde28 15506static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) {
0439c23b
RD
15507 PyObject *resultobj;
15508 wxDC *arg1 = (wxDC *) 0 ;
15509 long result;
15510 PyObject * obj0 = 0 ;
15511 char *kwnames[] = {
15512 (char *) "self", NULL
15513 };
15514
15515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
15516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15518 {
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 result = (long)(arg1)->GetHDC();
15521
15522 wxPyEndAllowThreads(__tstate);
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
c32bde28 15525 resultobj = SWIG_From_long((long)result);
0439c23b
RD
15526 return resultobj;
15527 fail:
15528 return NULL;
15529}
15530
15531
c32bde28 15532static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15533 PyObject *resultobj;
15534 wxDC *arg1 = (wxDC *) 0 ;
15535 PyObject *arg2 = (PyObject *) 0 ;
15536 PyObject *arg3 = (PyObject *) 0 ;
15537 PyObject *arg4 = (PyObject *) 0 ;
15538 PyObject *result;
15539 PyObject * obj0 = 0 ;
15540 PyObject * obj1 = 0 ;
15541 PyObject * obj2 = 0 ;
15542 PyObject * obj3 = 0 ;
15543 char *kwnames[] = {
15544 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15545 };
15546
15547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15550 arg2 = obj1;
15551 arg3 = obj2;
15552 arg4 = obj3;
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15556
15557 wxPyEndAllowThreads(__tstate);
15558 if (PyErr_Occurred()) SWIG_fail;
15559 }
15560 resultobj = result;
15561 return resultobj;
15562 fail:
15563 return NULL;
15564}
15565
15566
c32bde28 15567static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15568 PyObject *resultobj;
15569 wxDC *arg1 = (wxDC *) 0 ;
15570 PyObject *arg2 = (PyObject *) 0 ;
15571 PyObject *arg3 = (PyObject *) 0 ;
15572 PyObject *arg4 = (PyObject *) 0 ;
15573 PyObject *result;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 PyObject * obj2 = 0 ;
15577 PyObject * obj3 = 0 ;
15578 char *kwnames[] = {
15579 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15580 };
15581
15582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15585 arg2 = obj1;
15586 arg3 = obj2;
15587 arg4 = obj3;
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15591
15592 wxPyEndAllowThreads(__tstate);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 resultobj = result;
15596 return resultobj;
15597 fail:
15598 return NULL;
15599}
15600
15601
c32bde28 15602static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15603 PyObject *resultobj;
15604 wxDC *arg1 = (wxDC *) 0 ;
15605 PyObject *arg2 = (PyObject *) 0 ;
15606 PyObject *arg3 = (PyObject *) 0 ;
15607 PyObject *arg4 = (PyObject *) 0 ;
15608 PyObject *result;
15609 PyObject * obj0 = 0 ;
15610 PyObject * obj1 = 0 ;
15611 PyObject * obj2 = 0 ;
15612 PyObject * obj3 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15620 arg2 = obj1;
15621 arg3 = obj2;
15622 arg4 = obj3;
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15626
15627 wxPyEndAllowThreads(__tstate);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 resultobj = result;
15631 return resultobj;
15632 fail:
15633 return NULL;
15634}
15635
15636
c32bde28 15637static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15638 PyObject *resultobj;
15639 wxDC *arg1 = (wxDC *) 0 ;
15640 PyObject *arg2 = (PyObject *) 0 ;
15641 PyObject *arg3 = (PyObject *) 0 ;
15642 PyObject *arg4 = (PyObject *) 0 ;
15643 PyObject *result;
15644 PyObject * obj0 = 0 ;
15645 PyObject * obj1 = 0 ;
15646 PyObject * obj2 = 0 ;
15647 PyObject * obj3 = 0 ;
15648 char *kwnames[] = {
15649 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15650 };
15651
15652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15655 arg2 = obj1;
15656 arg3 = obj2;
15657 arg4 = obj3;
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15661
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 resultobj = result;
15666 return resultobj;
15667 fail:
15668 return NULL;
15669}
15670
15671
c32bde28 15672static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15673 PyObject *resultobj;
15674 wxDC *arg1 = (wxDC *) 0 ;
15675 PyObject *arg2 = (PyObject *) 0 ;
15676 PyObject *arg3 = (PyObject *) 0 ;
15677 PyObject *arg4 = (PyObject *) 0 ;
15678 PyObject *result;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 PyObject * obj2 = 0 ;
15682 PyObject * obj3 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15690 arg2 = obj1;
15691 arg3 = obj2;
15692 arg4 = obj3;
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15696
15697 wxPyEndAllowThreads(__tstate);
15698 if (PyErr_Occurred()) SWIG_fail;
15699 }
15700 resultobj = result;
15701 return resultobj;
15702 fail:
15703 return NULL;
15704}
15705
15706
c32bde28 15707static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15708 PyObject *resultobj;
15709 wxDC *arg1 = (wxDC *) 0 ;
15710 PyObject *arg2 = (PyObject *) 0 ;
15711 PyObject *arg3 = (PyObject *) 0 ;
15712 PyObject *arg4 = (PyObject *) 0 ;
15713 PyObject *arg5 = (PyObject *) 0 ;
15714 PyObject *result;
15715 PyObject * obj0 = 0 ;
15716 PyObject * obj1 = 0 ;
15717 PyObject * obj2 = 0 ;
15718 PyObject * obj3 = 0 ;
15719 PyObject * obj4 = 0 ;
15720 char *kwnames[] = {
15721 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15722 };
15723
15724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15727 arg2 = obj1;
15728 arg3 = obj2;
15729 arg4 = obj3;
15730 arg5 = obj4;
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
15733 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15734
15735 wxPyEndAllowThreads(__tstate);
15736 if (PyErr_Occurred()) SWIG_fail;
15737 }
15738 resultobj = result;
15739 return resultobj;
15740 fail:
15741 return NULL;
15742}
15743
15744
c32bde28 15745static PyObject * DC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15746 PyObject *obj;
15747 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15748 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15749 Py_INCREF(obj);
15750 return Py_BuildValue((char *)"");
15751}
c32bde28 15752static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15753 PyObject *resultobj;
15754 wxMemoryDC *result;
15755 char *kwnames[] = {
15756 NULL
15757 };
15758
15759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15760 {
0439c23b 15761 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 result = (wxMemoryDC *)new wxMemoryDC();
15764
15765 wxPyEndAllowThreads(__tstate);
110da5b0 15766 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15767 }
15768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15769 return resultobj;
15770 fail:
15771 return NULL;
15772}
15773
15774
c32bde28 15775static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15776 PyObject *resultobj;
15777 wxDC *arg1 = (wxDC *) 0 ;
15778 wxMemoryDC *result;
15779 PyObject * obj0 = 0 ;
15780 char *kwnames[] = {
15781 (char *) "oldDC", NULL
15782 };
15783
15784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15787 {
0439c23b 15788 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15791
15792 wxPyEndAllowThreads(__tstate);
110da5b0 15793 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15794 }
15795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15796 return resultobj;
15797 fail:
15798 return NULL;
15799}
15800
15801
c32bde28 15802static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15803 PyObject *resultobj;
15804 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15805 wxBitmap *arg2 = 0 ;
15806 PyObject * obj0 = 0 ;
15807 PyObject * obj1 = 0 ;
15808 char *kwnames[] = {
15809 (char *) "self",(char *) "bitmap", NULL
15810 };
15811
15812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15816 SWIG_POINTER_EXCEPTION | 0)) == -1)
15817 SWIG_fail;
15818 if (arg2 == NULL) {
15819 PyErr_SetString(PyExc_TypeError,"null reference");
15820 SWIG_fail;
15821 }
15822 {
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 (arg1)->SelectObject((wxBitmap const &)*arg2);
15825
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 Py_INCREF(Py_None); resultobj = Py_None;
15830 return resultobj;
15831 fail:
15832 return NULL;
15833}
15834
15835
c32bde28 15836static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15837 PyObject *obj;
15838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15839 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15840 Py_INCREF(obj);
15841 return Py_BuildValue((char *)"");
15842}
c32bde28 15843static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
15844 PyObject *resultobj;
15845 wxDC *arg1 = (wxDC *) 0 ;
15846 wxBitmap *arg2 = 0 ;
15847 wxBufferedDC *result;
15848 PyObject * obj0 = 0 ;
15849 PyObject * obj1 = 0 ;
15850
15851 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15855 SWIG_POINTER_EXCEPTION | 0)) == -1)
15856 SWIG_fail;
15857 if (arg2 == NULL) {
15858 PyErr_SetString(PyExc_TypeError,"null reference");
15859 SWIG_fail;
15860 }
15861 {
0439c23b 15862 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15863 PyThreadState* __tstate = wxPyBeginAllowThreads();
15864 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15865
15866 wxPyEndAllowThreads(__tstate);
110da5b0 15867 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15868 }
15869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15870 return resultobj;
15871 fail:
15872 return NULL;
15873}
15874
15875
c32bde28 15876static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
15877 PyObject *resultobj;
15878 wxDC *arg1 = (wxDC *) 0 ;
15879 wxSize *arg2 = 0 ;
15880 wxBufferedDC *result;
15881 wxSize temp2 ;
15882 PyObject * obj0 = 0 ;
15883 PyObject * obj1 = 0 ;
15884
15885 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15888 {
15889 arg2 = &temp2;
15890 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15891 }
15892 {
0439c23b 15893 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15894 PyThreadState* __tstate = wxPyBeginAllowThreads();
15895 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15896
15897 wxPyEndAllowThreads(__tstate);
110da5b0 15898 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15899 }
15900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15901 return resultobj;
15902 fail:
15903 return NULL;
15904}
15905
15906
15907static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15908 int argc;
15909 PyObject *argv[3];
15910 int ii;
15911
15912 argc = PyObject_Length(args);
15913 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15914 argv[ii] = PyTuple_GetItem(args,ii);
15915 }
15916 if (argc == 2) {
15917 int _v;
15918 {
15919 void *ptr;
15920 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15921 _v = 0;
15922 PyErr_Clear();
15923 } else {
15924 _v = 1;
15925 }
15926 }
15927 if (_v) {
15928 {
15929 void *ptr;
15930 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15931 _v = 0;
15932 PyErr_Clear();
15933 } else {
15934 _v = 1;
15935 }
15936 }
15937 if (_v) {
15938 return _wrap_new_BufferedDC__SWIG_0(self,args);
15939 }
15940 }
15941 }
15942 if (argc == 2) {
15943 int _v;
15944 {
15945 void *ptr;
15946 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15947 _v = 0;
15948 PyErr_Clear();
15949 } else {
15950 _v = 1;
15951 }
15952 }
15953 if (_v) {
15954 {
15955 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15956 }
15957 if (_v) {
15958 return _wrap_new_BufferedDC__SWIG_1(self,args);
15959 }
15960 }
15961 }
15962
15963 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15964 return NULL;
15965}
15966
15967
c32bde28 15968static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15969 PyObject *resultobj;
15970 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15971 PyObject * obj0 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "self", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 delete arg1;
15982
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 Py_INCREF(Py_None); resultobj = Py_None;
15987 return resultobj;
15988 fail:
15989 return NULL;
15990}
15991
15992
c32bde28 15993static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15994 PyObject *resultobj;
15995 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15996 PyObject * obj0 = 0 ;
15997 char *kwnames[] = {
15998 (char *) "self", NULL
15999 };
16000
16001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
16002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
16003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 (arg1)->UnMask();
16007
16008 wxPyEndAllowThreads(__tstate);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 Py_INCREF(Py_None); resultobj = Py_None;
16012 return resultobj;
16013 fail:
16014 return NULL;
16015}
16016
16017
c32bde28 16018static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16019 PyObject *obj;
16020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16021 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
16022 Py_INCREF(obj);
16023 return Py_BuildValue((char *)"");
16024}
c32bde28 16025static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16026 PyObject *resultobj;
16027 wxWindow *arg1 = (wxWindow *) 0 ;
16028 wxBitmap const &arg2_defvalue = wxNullBitmap ;
16029 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
16030 wxBufferedPaintDC *result;
16031 PyObject * obj0 = 0 ;
16032 PyObject * obj1 = 0 ;
16033 char *kwnames[] = {
16034 (char *) "window",(char *) "buffer", NULL
16035 };
16036
16037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
16038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16040 if (obj1) {
16041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16042 SWIG_POINTER_EXCEPTION | 0)) == -1)
16043 SWIG_fail;
16044 if (arg2 == NULL) {
16045 PyErr_SetString(PyExc_TypeError,"null reference");
16046 SWIG_fail;
16047 }
16048 }
16049 {
0439c23b 16050 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
16052 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
16053
16054 wxPyEndAllowThreads(__tstate);
110da5b0 16055 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16056 }
16057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
16058 return resultobj;
16059 fail:
16060 return NULL;
16061}
16062
16063
c32bde28 16064static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16065 PyObject *obj;
16066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16067 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
16068 Py_INCREF(obj);
16069 return Py_BuildValue((char *)"");
16070}
c32bde28 16071static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16072 PyObject *resultobj;
16073 wxScreenDC *result;
16074 char *kwnames[] = {
16075 NULL
16076 };
16077
16078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
16079 {
0439c23b 16080 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16081 PyThreadState* __tstate = wxPyBeginAllowThreads();
16082 result = (wxScreenDC *)new wxScreenDC();
16083
16084 wxPyEndAllowThreads(__tstate);
110da5b0 16085 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16086 }
16087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
16088 return resultobj;
16089 fail:
16090 return NULL;
16091}
16092
16093
c32bde28 16094static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16095 PyObject *resultobj;
16096 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16097 wxWindow *arg2 = (wxWindow *) 0 ;
16098 bool result;
16099 PyObject * obj0 = 0 ;
16100 PyObject * obj1 = 0 ;
16101 char *kwnames[] = {
16102 (char *) "self",(char *) "window", NULL
16103 };
16104
16105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
16106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16110 {
16111 PyThreadState* __tstate = wxPyBeginAllowThreads();
16112 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16113
16114 wxPyEndAllowThreads(__tstate);
16115 if (PyErr_Occurred()) SWIG_fail;
16116 }
16117 {
16118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16119 }
16120 return resultobj;
16121 fail:
16122 return NULL;
16123}
16124
16125
c32bde28 16126static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16127 PyObject *resultobj;
16128 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16129 wxRect *arg2 = (wxRect *) NULL ;
16130 bool result;
16131 PyObject * obj0 = 0 ;
16132 PyObject * obj1 = 0 ;
16133 char *kwnames[] = {
16134 (char *) "self",(char *) "rect", NULL
16135 };
16136
16137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
16138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16140 if (obj1) {
16141 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16143 }
16144 {
16145 PyThreadState* __tstate = wxPyBeginAllowThreads();
16146 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16147
16148 wxPyEndAllowThreads(__tstate);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 }
16151 {
16152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16153 }
16154 return resultobj;
16155 fail:
16156 return NULL;
16157}
16158
16159
c32bde28 16160static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16161 PyObject *resultobj;
16162 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16163 bool result;
16164 PyObject * obj0 = 0 ;
16165 char *kwnames[] = {
16166 (char *) "self", NULL
16167 };
16168
16169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16172 {
16173 PyThreadState* __tstate = wxPyBeginAllowThreads();
16174 result = (bool)(arg1)->EndDrawingOnTop();
16175
16176 wxPyEndAllowThreads(__tstate);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 }
16179 {
16180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16181 }
16182 return resultobj;
16183 fail:
16184 return NULL;
16185}
16186
16187
c32bde28 16188static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16189 PyObject *obj;
16190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16191 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16192 Py_INCREF(obj);
16193 return Py_BuildValue((char *)"");
16194}
c32bde28 16195static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16196 PyObject *resultobj;
16197 wxWindow *arg1 = (wxWindow *) 0 ;
16198 wxClientDC *result;
16199 PyObject * obj0 = 0 ;
16200 char *kwnames[] = {
16201 (char *) "win", NULL
16202 };
16203
16204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16207 {
0439c23b 16208 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 result = (wxClientDC *)new wxClientDC(arg1);
16211
16212 wxPyEndAllowThreads(__tstate);
110da5b0 16213 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16214 }
16215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16216 return resultobj;
16217 fail:
16218 return NULL;
16219}
16220
16221
c32bde28 16222static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16223 PyObject *obj;
16224 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16225 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16226 Py_INCREF(obj);
16227 return Py_BuildValue((char *)"");
16228}
c32bde28 16229static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16230 PyObject *resultobj;
16231 wxWindow *arg1 = (wxWindow *) 0 ;
16232 wxPaintDC *result;
16233 PyObject * obj0 = 0 ;
16234 char *kwnames[] = {
16235 (char *) "win", NULL
16236 };
16237
16238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16241 {
0439c23b 16242 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16243 PyThreadState* __tstate = wxPyBeginAllowThreads();
16244 result = (wxPaintDC *)new wxPaintDC(arg1);
16245
16246 wxPyEndAllowThreads(__tstate);
110da5b0 16247 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16248 }
16249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16250 return resultobj;
16251 fail:
16252 return NULL;
16253}
16254
16255
c32bde28 16256static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16257 PyObject *obj;
16258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16259 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16260 Py_INCREF(obj);
16261 return Py_BuildValue((char *)"");
16262}
c32bde28 16263static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16264 PyObject *resultobj;
16265 wxWindow *arg1 = (wxWindow *) 0 ;
16266 wxWindowDC *result;
16267 PyObject * obj0 = 0 ;
16268 char *kwnames[] = {
16269 (char *) "win", NULL
16270 };
16271
16272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16275 {
0439c23b 16276 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (wxWindowDC *)new wxWindowDC(arg1);
16279
16280 wxPyEndAllowThreads(__tstate);
110da5b0 16281 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16282 }
16283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16284 return resultobj;
16285 fail:
16286 return NULL;
16287}
16288
16289
c32bde28 16290static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16291 PyObject *obj;
16292 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16293 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16294 Py_INCREF(obj);
16295 return Py_BuildValue((char *)"");
16296}
c32bde28 16297static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16298 PyObject *resultobj;
16299 wxDC *arg1 = 0 ;
16300 bool arg2 ;
16301 wxMirrorDC *result;
16302 PyObject * obj0 = 0 ;
16303 PyObject * obj1 = 0 ;
16304 char *kwnames[] = {
16305 (char *) "dc",(char *) "mirror", NULL
16306 };
16307
16308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16310 SWIG_POINTER_EXCEPTION | 0)) == -1)
16311 SWIG_fail;
16312 if (arg1 == NULL) {
16313 PyErr_SetString(PyExc_TypeError,"null reference");
16314 SWIG_fail;
16315 }
c32bde28 16316 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16317 if (PyErr_Occurred()) SWIG_fail;
16318 {
0439c23b 16319 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16322
16323 wxPyEndAllowThreads(__tstate);
110da5b0 16324 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16325 }
16326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16327 return resultobj;
16328 fail:
16329 return NULL;
16330}
16331
16332
c32bde28 16333static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16334 PyObject *obj;
16335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16336 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16337 Py_INCREF(obj);
16338 return Py_BuildValue((char *)"");
16339}
c32bde28 16340static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16341 PyObject *resultobj;
16342 wxPrintData *arg1 = 0 ;
16343 wxPostScriptDC *result;
16344 PyObject * obj0 = 0 ;
16345 char *kwnames[] = {
16346 (char *) "printData", NULL
16347 };
16348
16349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16351 SWIG_POINTER_EXCEPTION | 0)) == -1)
16352 SWIG_fail;
16353 if (arg1 == NULL) {
16354 PyErr_SetString(PyExc_TypeError,"null reference");
16355 SWIG_fail;
16356 }
16357 {
0439c23b 16358 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16359 PyThreadState* __tstate = wxPyBeginAllowThreads();
16360 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16361
16362 wxPyEndAllowThreads(__tstate);
110da5b0 16363 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16364 }
16365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16366 return resultobj;
16367 fail:
16368 return NULL;
16369}
16370
16371
c32bde28 16372static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16373 PyObject *resultobj;
16374 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16375 wxPrintData *result;
16376 PyObject * obj0 = 0 ;
16377 char *kwnames[] = {
16378 (char *) "self", NULL
16379 };
16380
16381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16384 {
16385 PyThreadState* __tstate = wxPyBeginAllowThreads();
16386 {
16387 wxPrintData &_result_ref = (arg1)->GetPrintData();
16388 result = (wxPrintData *) &_result_ref;
16389 }
16390
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16395 return resultobj;
16396 fail:
16397 return NULL;
16398}
16399
16400
c32bde28 16401static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16402 PyObject *resultobj;
16403 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16404 wxPrintData *arg2 = 0 ;
16405 PyObject * obj0 = 0 ;
16406 PyObject * obj1 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "self",(char *) "data", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16415 SWIG_POINTER_EXCEPTION | 0)) == -1)
16416 SWIG_fail;
16417 if (arg2 == NULL) {
16418 PyErr_SetString(PyExc_TypeError,"null reference");
16419 SWIG_fail;
16420 }
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16424
16425 wxPyEndAllowThreads(__tstate);
16426 if (PyErr_Occurred()) SWIG_fail;
16427 }
16428 Py_INCREF(Py_None); resultobj = Py_None;
16429 return resultobj;
16430 fail:
16431 return NULL;
16432}
16433
16434
c32bde28 16435static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16436 PyObject *resultobj;
16437 int arg1 ;
16438 PyObject * obj0 = 0 ;
16439 char *kwnames[] = {
16440 (char *) "ppi", NULL
16441 };
16442
16443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
c32bde28 16444 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
16445 if (PyErr_Occurred()) SWIG_fail;
16446 {
16447 PyThreadState* __tstate = wxPyBeginAllowThreads();
16448 wxPostScriptDC::SetResolution(arg1);
16449
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 Py_INCREF(Py_None); resultobj = Py_None;
16454 return resultobj;
16455 fail:
16456 return NULL;
16457}
16458
16459
c32bde28 16460static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16461 PyObject *resultobj;
16462 int result;
16463 char *kwnames[] = {
16464 NULL
16465 };
16466
16467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16468 {
16469 PyThreadState* __tstate = wxPyBeginAllowThreads();
16470 result = (int)wxPostScriptDC::GetResolution();
16471
16472 wxPyEndAllowThreads(__tstate);
16473 if (PyErr_Occurred()) SWIG_fail;
16474 }
c32bde28 16475 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16476 return resultobj;
16477 fail:
16478 return NULL;
16479}
16480
16481
c32bde28 16482static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16483 PyObject *obj;
16484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16485 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16486 Py_INCREF(obj);
16487 return Py_BuildValue((char *)"");
16488}
c32bde28 16489static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16490 PyObject *resultobj;
16491 wxString const &arg1_defvalue = wxPyEmptyString ;
16492 wxString *arg1 = (wxString *) &arg1_defvalue ;
16493 wxMetaFile *result;
16494 bool temp1 = False ;
16495 PyObject * obj0 = 0 ;
16496 char *kwnames[] = {
16497 (char *) "filename", NULL
16498 };
16499
16500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16501 if (obj0) {
16502 {
16503 arg1 = wxString_in_helper(obj0);
16504 if (arg1 == NULL) SWIG_fail;
16505 temp1 = True;
16506 }
16507 }
16508 {
0439c23b 16509 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16512
16513 wxPyEndAllowThreads(__tstate);
110da5b0 16514 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16515 }
16516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16517 {
16518 if (temp1)
16519 delete arg1;
16520 }
16521 return resultobj;
16522 fail:
16523 {
16524 if (temp1)
16525 delete arg1;
16526 }
16527 return NULL;
16528}
16529
16530
c32bde28 16531static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16532 PyObject *resultobj;
16533 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16534 PyObject * obj0 = 0 ;
16535 char *kwnames[] = {
16536 (char *) "self", NULL
16537 };
16538
16539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16542 {
16543 PyThreadState* __tstate = wxPyBeginAllowThreads();
16544 delete arg1;
16545
16546 wxPyEndAllowThreads(__tstate);
16547 if (PyErr_Occurred()) SWIG_fail;
16548 }
16549 Py_INCREF(Py_None); resultobj = Py_None;
16550 return resultobj;
16551 fail:
16552 return NULL;
16553}
16554
16555
c32bde28 16556static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16557 PyObject *resultobj;
16558 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16559 bool result;
16560 PyObject * obj0 = 0 ;
16561 char *kwnames[] = {
16562 (char *) "self", NULL
16563 };
16564
16565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16568 {
16569 PyThreadState* __tstate = wxPyBeginAllowThreads();
16570 result = (bool)(arg1)->Ok();
16571
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 {
16576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16577 }
16578 return resultobj;
16579 fail:
16580 return NULL;
16581}
16582
16583
c32bde28 16584static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16585 PyObject *resultobj;
16586 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16587 int arg2 = (int) 0 ;
16588 int arg3 = (int) 0 ;
16589 bool result;
16590 PyObject * obj0 = 0 ;
16591 PyObject * obj1 = 0 ;
16592 PyObject * obj2 = 0 ;
16593 char *kwnames[] = {
16594 (char *) "self",(char *) "width",(char *) "height", NULL
16595 };
16596
16597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16600 if (obj1) {
c32bde28 16601 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 if (obj2) {
c32bde28 16605 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16611
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 {
16616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16617 }
16618 return resultobj;
16619 fail:
16620 return NULL;
16621}
16622
16623
c32bde28 16624static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16625 PyObject *resultobj;
16626 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16627 wxSize result;
16628 PyObject * obj0 = 0 ;
16629 char *kwnames[] = {
16630 (char *) "self", NULL
16631 };
16632
16633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16636 {
16637 PyThreadState* __tstate = wxPyBeginAllowThreads();
16638 result = (arg1)->GetSize();
16639
16640 wxPyEndAllowThreads(__tstate);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
16643 {
16644 wxSize * resultptr;
16645 resultptr = new wxSize((wxSize &) result);
16646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16647 }
16648 return resultobj;
16649 fail:
16650 return NULL;
16651}
16652
16653
c32bde28 16654static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16655 PyObject *resultobj;
16656 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16657 int result;
16658 PyObject * obj0 = 0 ;
16659 char *kwnames[] = {
16660 (char *) "self", NULL
16661 };
16662
16663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16666 {
16667 PyThreadState* __tstate = wxPyBeginAllowThreads();
16668 result = (int)(arg1)->GetWidth();
16669
16670 wxPyEndAllowThreads(__tstate);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
c32bde28 16673 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16674 return resultobj;
16675 fail:
16676 return NULL;
16677}
16678
16679
c32bde28 16680static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16681 PyObject *resultobj;
16682 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16683 int result;
16684 PyObject * obj0 = 0 ;
16685 char *kwnames[] = {
16686 (char *) "self", NULL
16687 };
16688
16689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16692 {
16693 PyThreadState* __tstate = wxPyBeginAllowThreads();
16694 result = (int)(arg1)->GetHeight();
16695
16696 wxPyEndAllowThreads(__tstate);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
c32bde28 16699 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16700 return resultobj;
16701 fail:
16702 return NULL;
16703}
16704
16705
c32bde28 16706static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16707 PyObject *resultobj;
16708 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16709 wxString *result;
16710 PyObject * obj0 = 0 ;
16711 char *kwnames[] = {
16712 (char *) "self", NULL
16713 };
16714
16715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 {
16721 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16722 result = (wxString *) &_result_ref;
16723 }
16724
16725 wxPyEndAllowThreads(__tstate);
16726 if (PyErr_Occurred()) SWIG_fail;
16727 }
16728 {
16729#if wxUSE_UNICODE
16730 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16731#else
16732 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16733#endif
16734 }
16735 return resultobj;
16736 fail:
16737 return NULL;
16738}
16739
16740
c32bde28 16741static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16742 PyObject *obj;
16743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16744 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16745 Py_INCREF(obj);
16746 return Py_BuildValue((char *)"");
16747}
c32bde28 16748static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16749 PyObject *resultobj;
16750 wxString const &arg1_defvalue = wxPyEmptyString ;
16751 wxString *arg1 = (wxString *) &arg1_defvalue ;
16752 int arg2 = (int) 0 ;
16753 int arg3 = (int) 0 ;
16754 wxString const &arg4_defvalue = wxPyEmptyString ;
16755 wxString *arg4 = (wxString *) &arg4_defvalue ;
16756 wxMetaFileDC *result;
16757 bool temp1 = False ;
16758 bool temp4 = False ;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 PyObject * obj2 = 0 ;
16762 PyObject * obj3 = 0 ;
16763 char *kwnames[] = {
16764 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16765 };
16766
16767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16768 if (obj0) {
16769 {
16770 arg1 = wxString_in_helper(obj0);
16771 if (arg1 == NULL) SWIG_fail;
16772 temp1 = True;
16773 }
16774 }
16775 if (obj1) {
c32bde28 16776 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 if (obj2) {
c32bde28 16780 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 if (obj3) {
16784 {
16785 arg4 = wxString_in_helper(obj3);
16786 if (arg4 == NULL) SWIG_fail;
16787 temp4 = True;
16788 }
16789 }
16790 {
0439c23b 16791 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16794
16795 wxPyEndAllowThreads(__tstate);
110da5b0 16796 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16797 }
16798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16799 {
16800 if (temp1)
16801 delete arg1;
16802 }
16803 {
16804 if (temp4)
16805 delete arg4;
16806 }
16807 return resultobj;
16808 fail:
16809 {
16810 if (temp1)
16811 delete arg1;
16812 }
16813 {
16814 if (temp4)
16815 delete arg4;
16816 }
16817 return NULL;
16818}
16819
16820
c32bde28 16821static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16822 PyObject *resultobj;
16823 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16824 wxMetaFile *result;
16825 PyObject * obj0 = 0 ;
16826 char *kwnames[] = {
16827 (char *) "self", NULL
16828 };
16829
16830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16833 {
16834 PyThreadState* __tstate = wxPyBeginAllowThreads();
16835 result = (wxMetaFile *)(arg1)->Close();
16836
16837 wxPyEndAllowThreads(__tstate);
16838 if (PyErr_Occurred()) SWIG_fail;
16839 }
16840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16841 return resultobj;
16842 fail:
16843 return NULL;
16844}
16845
16846
c32bde28 16847static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16848 PyObject *obj;
16849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16850 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16851 Py_INCREF(obj);
16852 return Py_BuildValue((char *)"");
16853}
c32bde28 16854static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16855 PyObject *resultobj;
16856 wxPrintData *arg1 = 0 ;
16857 wxPrinterDC *result;
16858 PyObject * obj0 = 0 ;
16859 char *kwnames[] = {
16860 (char *) "printData", NULL
16861 };
16862
16863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16865 SWIG_POINTER_EXCEPTION | 0)) == -1)
16866 SWIG_fail;
16867 if (arg1 == NULL) {
16868 PyErr_SetString(PyExc_TypeError,"null reference");
16869 SWIG_fail;
16870 }
16871 {
0439c23b 16872 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16873 PyThreadState* __tstate = wxPyBeginAllowThreads();
16874 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16875
16876 wxPyEndAllowThreads(__tstate);
110da5b0 16877 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16878 }
16879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16880 return resultobj;
16881 fail:
16882 return NULL;
16883}
16884
16885
c32bde28 16886static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16887 PyObject *obj;
16888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16889 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16890 Py_INCREF(obj);
16891 return Py_BuildValue((char *)"");
16892}
c32bde28 16893static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16894 PyObject *resultobj;
16895 int arg1 ;
16896 int arg2 ;
16897 int arg3 = (int) True ;
16898 int arg4 = (int) 1 ;
16899 wxImageList *result;
16900 PyObject * obj0 = 0 ;
16901 PyObject * obj1 = 0 ;
16902 PyObject * obj2 = 0 ;
16903 PyObject * obj3 = 0 ;
16904 char *kwnames[] = {
16905 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16906 };
16907
16908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c32bde28 16909 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 16910 if (PyErr_Occurred()) SWIG_fail;
c32bde28 16911 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16912 if (PyErr_Occurred()) SWIG_fail;
16913 if (obj2) {
c32bde28 16914 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16915 if (PyErr_Occurred()) SWIG_fail;
16916 }
16917 if (obj3) {
c32bde28 16918 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
16919 if (PyErr_Occurred()) SWIG_fail;
16920 }
16921 {
0439c23b 16922 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16923 PyThreadState* __tstate = wxPyBeginAllowThreads();
16924 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16925
16926 wxPyEndAllowThreads(__tstate);
110da5b0 16927 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16928 }
16929 {
412d302d 16930 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
16931 }
16932 return resultobj;
16933 fail:
16934 return NULL;
16935}
16936
16937
c32bde28 16938static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16939 PyObject *resultobj;
16940 wxImageList *arg1 = (wxImageList *) 0 ;
16941 PyObject * obj0 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16949 {
16950 PyThreadState* __tstate = wxPyBeginAllowThreads();
16951 delete arg1;
16952
16953 wxPyEndAllowThreads(__tstate);
16954 if (PyErr_Occurred()) SWIG_fail;
16955 }
16956 Py_INCREF(Py_None); resultobj = Py_None;
16957 return resultobj;
16958 fail:
16959 return NULL;
16960}
16961
16962
c32bde28 16963static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16964 PyObject *resultobj;
16965 wxImageList *arg1 = (wxImageList *) 0 ;
16966 wxBitmap *arg2 = 0 ;
16967 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16968 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16969 int result;
16970 PyObject * obj0 = 0 ;
16971 PyObject * obj1 = 0 ;
16972 PyObject * obj2 = 0 ;
16973 char *kwnames[] = {
16974 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16975 };
16976
16977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16981 SWIG_POINTER_EXCEPTION | 0)) == -1)
16982 SWIG_fail;
16983 if (arg2 == NULL) {
16984 PyErr_SetString(PyExc_TypeError,"null reference");
16985 SWIG_fail;
16986 }
16987 if (obj2) {
16988 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16989 SWIG_POINTER_EXCEPTION | 0)) == -1)
16990 SWIG_fail;
16991 if (arg3 == NULL) {
16992 PyErr_SetString(PyExc_TypeError,"null reference");
16993 SWIG_fail;
16994 }
16995 }
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16999
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
c32bde28 17003 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17004 return resultobj;
17005 fail:
17006 return NULL;
17007}
17008
17009
c32bde28 17010static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17011 PyObject *resultobj;
17012 wxImageList *arg1 = (wxImageList *) 0 ;
17013 wxBitmap *arg2 = 0 ;
17014 wxColour *arg3 = 0 ;
17015 int result;
17016 wxColour temp3 ;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 PyObject * obj2 = 0 ;
17020 char *kwnames[] = {
17021 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
17022 };
17023
17024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
17025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17027 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17028 SWIG_POINTER_EXCEPTION | 0)) == -1)
17029 SWIG_fail;
17030 if (arg2 == NULL) {
17031 PyErr_SetString(PyExc_TypeError,"null reference");
17032 SWIG_fail;
17033 }
17034 {
17035 arg3 = &temp3;
17036 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17037 }
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
17041
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
c32bde28 17045 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17046 return resultobj;
17047 fail:
17048 return NULL;
17049}
17050
17051
c32bde28 17052static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17053 PyObject *resultobj;
17054 wxImageList *arg1 = (wxImageList *) 0 ;
17055 wxIcon *arg2 = 0 ;
17056 int result;
17057 PyObject * obj0 = 0 ;
17058 PyObject * obj1 = 0 ;
17059 char *kwnames[] = {
17060 (char *) "self",(char *) "icon", NULL
17061 };
17062
17063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
17064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
17067 SWIG_POINTER_EXCEPTION | 0)) == -1)
17068 SWIG_fail;
17069 if (arg2 == NULL) {
17070 PyErr_SetString(PyExc_TypeError,"null reference");
17071 SWIG_fail;
17072 }
17073 {
17074 PyThreadState* __tstate = wxPyBeginAllowThreads();
17075 result = (int)(arg1)->Add((wxIcon const &)*arg2);
17076
17077 wxPyEndAllowThreads(__tstate);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 }
c32bde28 17080 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17081 return resultobj;
17082 fail:
17083 return NULL;
17084}
17085
17086
c32bde28 17087static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17088 PyObject *resultobj;
17089 wxImageList *arg1 = (wxImageList *) 0 ;
17090 int arg2 ;
17091 wxBitmap *arg3 = 0 ;
17092 wxBitmap const &arg4_defvalue = wxNullBitmap ;
17093 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
17094 bool result;
17095 PyObject * obj0 = 0 ;
17096 PyObject * obj1 = 0 ;
17097 PyObject * obj2 = 0 ;
17098 PyObject * obj3 = 0 ;
17099 char *kwnames[] = {
17100 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
17101 };
17102
17103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17106 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17107 if (PyErr_Occurred()) SWIG_fail;
17108 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17109 SWIG_POINTER_EXCEPTION | 0)) == -1)
17110 SWIG_fail;
17111 if (arg3 == NULL) {
17112 PyErr_SetString(PyExc_TypeError,"null reference");
17113 SWIG_fail;
17114 }
17115 if (obj3) {
17116 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17117 SWIG_POINTER_EXCEPTION | 0)) == -1)
17118 SWIG_fail;
17119 if (arg4 == NULL) {
17120 PyErr_SetString(PyExc_TypeError,"null reference");
17121 SWIG_fail;
17122 }
17123 }
17124 {
17125 PyThreadState* __tstate = wxPyBeginAllowThreads();
17126 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
17127
17128 wxPyEndAllowThreads(__tstate);
17129 if (PyErr_Occurred()) SWIG_fail;
17130 }
17131 {
17132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17133 }
17134 return resultobj;
17135 fail:
17136 return NULL;
17137}
17138
17139
c32bde28 17140static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17141 PyObject *resultobj;
17142 wxImageList *arg1 = (wxImageList *) 0 ;
17143 int arg2 ;
17144 wxDC *arg3 = 0 ;
17145 int arg4 ;
17146 int arg5 ;
17147 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
17148 bool arg7 = (bool) (bool)False ;
17149 bool result;
17150 PyObject * obj0 = 0 ;
17151 PyObject * obj1 = 0 ;
17152 PyObject * obj2 = 0 ;
17153 PyObject * obj3 = 0 ;
17154 PyObject * obj4 = 0 ;
17155 PyObject * obj5 = 0 ;
17156 PyObject * obj6 = 0 ;
17157 char *kwnames[] = {
17158 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
17159 };
17160
17161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17164 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17165 if (PyErr_Occurred()) SWIG_fail;
17166 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17167 SWIG_POINTER_EXCEPTION | 0)) == -1)
17168 SWIG_fail;
17169 if (arg3 == NULL) {
17170 PyErr_SetString(PyExc_TypeError,"null reference");
17171 SWIG_fail;
17172 }
c32bde28 17173 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 17174 if (PyErr_Occurred()) SWIG_fail;
c32bde28 17175 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
17176 if (PyErr_Occurred()) SWIG_fail;
17177 if (obj5) {
c32bde28 17178 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 if (obj6) {
c32bde28 17182 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17188
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 {
17193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17194 }
17195 return resultobj;
17196 fail:
17197 return NULL;
17198}
17199
17200
c32bde28 17201static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17202 PyObject *resultobj;
17203 wxImageList *arg1 = (wxImageList *) 0 ;
17204 int result;
17205 PyObject * obj0 = 0 ;
17206 char *kwnames[] = {
17207 (char *) "self", NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17213 {
17214 PyThreadState* __tstate = wxPyBeginAllowThreads();
17215 result = (int)(arg1)->GetImageCount();
17216
17217 wxPyEndAllowThreads(__tstate);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 }
c32bde28 17220 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17221 return resultobj;
17222 fail:
17223 return NULL;
17224}
17225
17226
c32bde28 17227static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17228 PyObject *resultobj;
17229 wxImageList *arg1 = (wxImageList *) 0 ;
17230 int arg2 ;
17231 bool result;
17232 PyObject * obj0 = 0 ;
17233 PyObject * obj1 = 0 ;
17234 char *kwnames[] = {
17235 (char *) "self",(char *) "index", NULL
17236 };
17237
17238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17241 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17242 if (PyErr_Occurred()) SWIG_fail;
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 result = (bool)(arg1)->Remove(arg2);
17246
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 {
17251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17252 }
17253 return resultobj;
17254 fail:
17255 return NULL;
17256}
17257
17258
c32bde28 17259static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17260 PyObject *resultobj;
17261 wxImageList *arg1 = (wxImageList *) 0 ;
17262 bool result;
17263 PyObject * obj0 = 0 ;
17264 char *kwnames[] = {
17265 (char *) "self", NULL
17266 };
17267
17268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17271 {
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
17273 result = (bool)(arg1)->RemoveAll();
17274
17275 wxPyEndAllowThreads(__tstate);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 }
17278 {
17279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17280 }
17281 return resultobj;
17282 fail:
17283 return NULL;
17284}
17285
17286
c32bde28 17287static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17288 PyObject *resultobj;
17289 wxImageList *arg1 = (wxImageList *) 0 ;
17290 int arg2 ;
17291 int *arg3 = 0 ;
17292 int *arg4 = 0 ;
17293 int temp3 ;
c32bde28 17294 int res3 = 0 ;
d55e5bfc 17295 int temp4 ;
c32bde28 17296 int res4 = 0 ;
d55e5bfc
RD
17297 PyObject * obj0 = 0 ;
17298 PyObject * obj1 = 0 ;
17299 char *kwnames[] = {
17300 (char *) "self",(char *) "index", NULL
17301 };
17302
c32bde28
RD
17303 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17304 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
17305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17308 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17309 if (PyErr_Occurred()) SWIG_fail;
17310 {
17311 PyThreadState* __tstate = wxPyBeginAllowThreads();
17312 (arg1)->GetSize(arg2,*arg3,*arg4);
17313
17314 wxPyEndAllowThreads(__tstate);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 }
17317 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
17318 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17319 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17320 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17321 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
17322 return resultobj;
17323 fail:
17324 return NULL;
17325}
17326
17327
c32bde28 17328static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17329 PyObject *obj;
17330 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17331 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17332 Py_INCREF(obj);
17333 return Py_BuildValue((char *)"");
17334}
c32bde28 17335static int _wrap_NORMAL_FONT_set(PyObject *) {
d55e5bfc
RD
17336 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17337 return 1;
17338}
17339
17340
17341static PyObject *_wrap_NORMAL_FONT_get() {
17342 PyObject *pyobj;
17343
17344 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17345 return pyobj;
17346}
17347
17348
c32bde28 17349static int _wrap_SMALL_FONT_set(PyObject *) {
d55e5bfc
RD
17350 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17351 return 1;
17352}
17353
17354
17355static PyObject *_wrap_SMALL_FONT_get() {
17356 PyObject *pyobj;
17357
17358 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17359 return pyobj;
17360}
17361
17362
c32bde28 17363static int _wrap_ITALIC_FONT_set(PyObject *) {
d55e5bfc
RD
17364 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17365 return 1;
17366}
17367
17368
17369static PyObject *_wrap_ITALIC_FONT_get() {
17370 PyObject *pyobj;
17371
17372 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17373 return pyobj;
17374}
17375
17376
c32bde28 17377static int _wrap_SWISS_FONT_set(PyObject *) {
d55e5bfc
RD
17378 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17379 return 1;
17380}
17381
17382
17383static PyObject *_wrap_SWISS_FONT_get() {
17384 PyObject *pyobj;
17385
17386 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17387 return pyobj;
17388}
17389
17390
c32bde28 17391static int _wrap_RED_PEN_set(PyObject *) {
d55e5bfc
RD
17392 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17393 return 1;
17394}
17395
17396
17397static PyObject *_wrap_RED_PEN_get() {
17398 PyObject *pyobj;
17399
17400 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17401 return pyobj;
17402}
17403
17404
c32bde28 17405static int _wrap_CYAN_PEN_set(PyObject *) {
d55e5bfc
RD
17406 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17407 return 1;
17408}
17409
17410
17411static PyObject *_wrap_CYAN_PEN_get() {
17412 PyObject *pyobj;
17413
17414 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17415 return pyobj;
17416}
17417
17418
c32bde28 17419static int _wrap_GREEN_PEN_set(PyObject *) {
d55e5bfc
RD
17420 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17421 return 1;
17422}
17423
17424
17425static PyObject *_wrap_GREEN_PEN_get() {
17426 PyObject *pyobj;
17427
17428 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17429 return pyobj;
17430}
17431
17432
c32bde28 17433static int _wrap_BLACK_PEN_set(PyObject *) {
d55e5bfc
RD
17434 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17435 return 1;
17436}
17437
17438
17439static PyObject *_wrap_BLACK_PEN_get() {
17440 PyObject *pyobj;
17441
17442 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17443 return pyobj;
17444}
17445
17446
c32bde28 17447static int _wrap_WHITE_PEN_set(PyObject *) {
d55e5bfc
RD
17448 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17449 return 1;
17450}
17451
17452
17453static PyObject *_wrap_WHITE_PEN_get() {
17454 PyObject *pyobj;
17455
17456 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17457 return pyobj;
17458}
17459
17460
c32bde28 17461static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
d55e5bfc
RD
17462 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17463 return 1;
17464}
17465
17466
17467static PyObject *_wrap_TRANSPARENT_PEN_get() {
17468 PyObject *pyobj;
17469
17470 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17471 return pyobj;
17472}
17473
17474
c32bde28 17475static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
d55e5bfc
RD
17476 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17477 return 1;
17478}
17479
17480
17481static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17482 PyObject *pyobj;
17483
17484 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17485 return pyobj;
17486}
17487
17488
c32bde28 17489static int _wrap_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17490 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17491 return 1;
17492}
17493
17494
17495static PyObject *_wrap_GREY_PEN_get() {
17496 PyObject *pyobj;
17497
17498 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17499 return pyobj;
17500}
17501
17502
c32bde28 17503static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17504 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17505 return 1;
17506}
17507
17508
17509static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17510 PyObject *pyobj;
17511
17512 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17513 return pyobj;
17514}
17515
17516
c32bde28 17517static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17518 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17519 return 1;
17520}
17521
17522
17523static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17524 PyObject *pyobj;
17525
17526 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17527 return pyobj;
17528}
17529
17530
c32bde28 17531static int _wrap_BLUE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17532 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17533 return 1;
17534}
17535
17536
17537static PyObject *_wrap_BLUE_BRUSH_get() {
17538 PyObject *pyobj;
17539
17540 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17541 return pyobj;
17542}
17543
17544
c32bde28 17545static int _wrap_GREEN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17546 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17547 return 1;
17548}
17549
17550
17551static PyObject *_wrap_GREEN_BRUSH_get() {
17552 PyObject *pyobj;
17553
17554 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17555 return pyobj;
17556}
17557
17558
c32bde28 17559static int _wrap_WHITE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17560 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17561 return 1;
17562}
17563
17564
17565static PyObject *_wrap_WHITE_BRUSH_get() {
17566 PyObject *pyobj;
17567
17568 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17569 return pyobj;
17570}
17571
17572
c32bde28 17573static int _wrap_BLACK_BRUSH_set(PyObject *) {
d55e5bfc
RD
17574 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17575 return 1;
17576}
17577
17578
17579static PyObject *_wrap_BLACK_BRUSH_get() {
17580 PyObject *pyobj;
17581
17582 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17583 return pyobj;
17584}
17585
17586
c32bde28 17587static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
d55e5bfc
RD
17588 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17589 return 1;
17590}
17591
17592
17593static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17594 PyObject *pyobj;
17595
17596 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17597 return pyobj;
17598}
17599
17600
c32bde28 17601static int _wrap_CYAN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17602 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17603 return 1;
17604}
17605
17606
17607static PyObject *_wrap_CYAN_BRUSH_get() {
17608 PyObject *pyobj;
17609
17610 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17611 return pyobj;
17612}
17613
17614
c32bde28 17615static int _wrap_RED_BRUSH_set(PyObject *) {
d55e5bfc
RD
17616 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17617 return 1;
17618}
17619
17620
17621static PyObject *_wrap_RED_BRUSH_get() {
17622 PyObject *pyobj;
17623
17624 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17625 return pyobj;
17626}
17627
17628
c32bde28 17629static int _wrap_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17630 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17631 return 1;
17632}
17633
17634
17635static PyObject *_wrap_GREY_BRUSH_get() {
17636 PyObject *pyobj;
17637
17638 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17639 return pyobj;
17640}
17641
17642
c32bde28 17643static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17644 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17645 return 1;
17646}
17647
17648
17649static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17650 PyObject *pyobj;
17651
17652 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17653 return pyobj;
17654}
17655
17656
c32bde28 17657static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17658 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17659 return 1;
17660}
17661
17662
17663static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17664 PyObject *pyobj;
17665
17666 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17667 return pyobj;
17668}
17669
17670
c32bde28 17671static int _wrap_BLACK_set(PyObject *) {
d55e5bfc
RD
17672 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17673 return 1;
17674}
17675
17676
17677static PyObject *_wrap_BLACK_get() {
17678 PyObject *pyobj;
17679
17680 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17681 return pyobj;
17682}
17683
17684
c32bde28 17685static int _wrap_WHITE_set(PyObject *) {
d55e5bfc
RD
17686 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17687 return 1;
17688}
17689
17690
17691static PyObject *_wrap_WHITE_get() {
17692 PyObject *pyobj;
17693
17694 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17695 return pyobj;
17696}
17697
17698
c32bde28 17699static int _wrap_RED_set(PyObject *) {
d55e5bfc
RD
17700 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17701 return 1;
17702}
17703
17704
17705static PyObject *_wrap_RED_get() {
17706 PyObject *pyobj;
17707
17708 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17709 return pyobj;
17710}
17711
17712
c32bde28 17713static int _wrap_BLUE_set(PyObject *) {
d55e5bfc
RD
17714 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17715 return 1;
17716}
17717
17718
17719static PyObject *_wrap_BLUE_get() {
17720 PyObject *pyobj;
17721
17722 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17723 return pyobj;
17724}
17725
17726
c32bde28 17727static int _wrap_GREEN_set(PyObject *) {
d55e5bfc
RD
17728 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17729 return 1;
17730}
17731
17732
17733static PyObject *_wrap_GREEN_get() {
17734 PyObject *pyobj;
17735
17736 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17737 return pyobj;
17738}
17739
17740
c32bde28 17741static int _wrap_CYAN_set(PyObject *) {
d55e5bfc
RD
17742 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17743 return 1;
17744}
17745
17746
17747static PyObject *_wrap_CYAN_get() {
17748 PyObject *pyobj;
17749
17750 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17751 return pyobj;
17752}
17753
17754
c32bde28 17755static int _wrap_LIGHT_GREY_set(PyObject *) {
d55e5bfc
RD
17756 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17757 return 1;
17758}
17759
17760
17761static PyObject *_wrap_LIGHT_GREY_get() {
17762 PyObject *pyobj;
17763
17764 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17765 return pyobj;
17766}
17767
17768
c32bde28 17769static int _wrap_STANDARD_CURSOR_set(PyObject *) {
d55e5bfc
RD
17770 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17771 return 1;
17772}
17773
17774
17775static PyObject *_wrap_STANDARD_CURSOR_get() {
17776 PyObject *pyobj;
17777
17778 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17779 return pyobj;
17780}
17781
17782
c32bde28 17783static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
d55e5bfc
RD
17784 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17785 return 1;
17786}
17787
17788
17789static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17790 PyObject *pyobj;
17791
17792 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17793 return pyobj;
17794}
17795
17796
c32bde28 17797static int _wrap_CROSS_CURSOR_set(PyObject *) {
d55e5bfc
RD
17798 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17799 return 1;
17800}
17801
17802
17803static PyObject *_wrap_CROSS_CURSOR_get() {
17804 PyObject *pyobj;
17805
17806 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17807 return pyobj;
17808}
17809
17810
c32bde28 17811static int _wrap_NullBitmap_set(PyObject *) {
d55e5bfc
RD
17812 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17813 return 1;
17814}
17815
17816
17817static PyObject *_wrap_NullBitmap_get() {
17818 PyObject *pyobj;
17819
17820 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17821 return pyobj;
17822}
17823
17824
c32bde28 17825static int _wrap_NullIcon_set(PyObject *) {
d55e5bfc
RD
17826 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17827 return 1;
17828}
17829
17830
17831static PyObject *_wrap_NullIcon_get() {
17832 PyObject *pyobj;
17833
17834 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17835 return pyobj;
17836}
17837
17838
c32bde28 17839static int _wrap_NullCursor_set(PyObject *) {
d55e5bfc
RD
17840 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17841 return 1;
17842}
17843
17844
17845static PyObject *_wrap_NullCursor_get() {
17846 PyObject *pyobj;
17847
17848 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17849 return pyobj;
17850}
17851
17852
c32bde28 17853static int _wrap_NullPen_set(PyObject *) {
d55e5bfc
RD
17854 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17855 return 1;
17856}
17857
17858
17859static PyObject *_wrap_NullPen_get() {
17860 PyObject *pyobj;
17861
17862 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17863 return pyobj;
17864}
17865
17866
c32bde28 17867static int _wrap_NullBrush_set(PyObject *) {
d55e5bfc
RD
17868 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17869 return 1;
17870}
17871
17872
17873static PyObject *_wrap_NullBrush_get() {
17874 PyObject *pyobj;
17875
17876 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17877 return pyobj;
17878}
17879
17880
c32bde28 17881static int _wrap_NullPalette_set(PyObject *) {
d55e5bfc
RD
17882 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17883 return 1;
17884}
17885
17886
17887static PyObject *_wrap_NullPalette_get() {
17888 PyObject *pyobj;
17889
17890 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17891 return pyobj;
17892}
17893
17894
c32bde28 17895static int _wrap_NullFont_set(PyObject *) {
d55e5bfc
RD
17896 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17897 return 1;
17898}
17899
17900
17901static PyObject *_wrap_NullFont_get() {
17902 PyObject *pyobj;
17903
17904 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17905 return pyobj;
17906}
17907
17908
c32bde28 17909static int _wrap_NullColour_set(PyObject *) {
d55e5bfc
RD
17910 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17911 return 1;
17912}
17913
17914
17915static PyObject *_wrap_NullColour_get() {
17916 PyObject *pyobj;
17917
17918 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17919 return pyobj;
17920}
17921
17922
c32bde28 17923static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17924 PyObject *resultobj;
17925 wxPenList *arg1 = (wxPenList *) 0 ;
17926 wxPen *arg2 = (wxPen *) 0 ;
17927 PyObject * obj0 = 0 ;
17928 PyObject * obj1 = 0 ;
17929 char *kwnames[] = {
17930 (char *) "self",(char *) "pen", NULL
17931 };
17932
17933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17936 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17938 {
17939 PyThreadState* __tstate = wxPyBeginAllowThreads();
17940 (arg1)->AddPen(arg2);
17941
17942 wxPyEndAllowThreads(__tstate);
17943 if (PyErr_Occurred()) SWIG_fail;
17944 }
17945 Py_INCREF(Py_None); resultobj = Py_None;
17946 return resultobj;
17947 fail:
17948 return NULL;
17949}
17950
17951
c32bde28 17952static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17953 PyObject *resultobj;
17954 wxPenList *arg1 = (wxPenList *) 0 ;
17955 wxColour *arg2 = 0 ;
17956 int arg3 ;
17957 int arg4 ;
17958 wxPen *result;
17959 wxColour temp2 ;
17960 PyObject * obj0 = 0 ;
17961 PyObject * obj1 = 0 ;
17962 PyObject * obj2 = 0 ;
17963 PyObject * obj3 = 0 ;
17964 char *kwnames[] = {
17965 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17966 };
17967
17968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17971 {
17972 arg2 = &temp2;
17973 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17974 }
c32bde28 17975 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 17976 if (PyErr_Occurred()) SWIG_fail;
c32bde28 17977 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
17978 if (PyErr_Occurred()) SWIG_fail;
17979 {
17980 PyThreadState* __tstate = wxPyBeginAllowThreads();
17981 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17982
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17987 return resultobj;
17988 fail:
17989 return NULL;
17990}
17991
17992
c32bde28 17993static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17994 PyObject *resultobj;
17995 wxPenList *arg1 = (wxPenList *) 0 ;
17996 wxPen *arg2 = (wxPen *) 0 ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 char *kwnames[] = {
18000 (char *) "self",(char *) "pen", NULL
18001 };
18002
18003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
18004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
18007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18008 {
18009 PyThreadState* __tstate = wxPyBeginAllowThreads();
18010 (arg1)->RemovePen(arg2);
18011
18012 wxPyEndAllowThreads(__tstate);
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
18015 Py_INCREF(Py_None); resultobj = Py_None;
18016 return resultobj;
18017 fail:
18018 return NULL;
18019}
18020
18021
c32bde28 18022static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18023 PyObject *resultobj;
18024 wxPenList *arg1 = (wxPenList *) 0 ;
18025 int result;
18026 PyObject * obj0 = 0 ;
18027 char *kwnames[] = {
18028 (char *) "self", NULL
18029 };
18030
18031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
18032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 result = (int)(arg1)->GetCount();
18037
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
c32bde28 18041 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18042 return resultobj;
18043 fail:
18044 return NULL;
18045}
18046
18047
c32bde28 18048static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18049 PyObject *obj;
18050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18051 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
18052 Py_INCREF(obj);
18053 return Py_BuildValue((char *)"");
18054}
c32bde28 18055static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18056 PyObject *resultobj;
18057 wxBrushList *arg1 = (wxBrushList *) 0 ;
18058 wxBrush *arg2 = (wxBrush *) 0 ;
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 char *kwnames[] = {
18062 (char *) "self",(char *) "brush", NULL
18063 };
18064
18065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
18066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 (arg1)->AddBrush(arg2);
18073
18074 wxPyEndAllowThreads(__tstate);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 Py_INCREF(Py_None); resultobj = Py_None;
18078 return resultobj;
18079 fail:
18080 return NULL;
18081}
18082
18083
c32bde28 18084static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18085 PyObject *resultobj;
18086 wxBrushList *arg1 = (wxBrushList *) 0 ;
18087 wxColour *arg2 = 0 ;
18088 int arg3 ;
18089 wxBrush *result;
18090 wxColour temp2 ;
18091 PyObject * obj0 = 0 ;
18092 PyObject * obj1 = 0 ;
18093 PyObject * obj2 = 0 ;
18094 char *kwnames[] = {
18095 (char *) "self",(char *) "colour",(char *) "style", NULL
18096 };
18097
18098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
18099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18101 {
18102 arg2 = &temp2;
18103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18104 }
c32bde28 18105 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18106 if (PyErr_Occurred()) SWIG_fail;
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
18110
18111 wxPyEndAllowThreads(__tstate);
18112 if (PyErr_Occurred()) SWIG_fail;
18113 }
18114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
18115 return resultobj;
18116 fail:
18117 return NULL;
18118}
18119
18120
c32bde28 18121static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18122 PyObject *resultobj;
18123 wxBrushList *arg1 = (wxBrushList *) 0 ;
18124 wxBrush *arg2 = (wxBrush *) 0 ;
18125 PyObject * obj0 = 0 ;
18126 PyObject * obj1 = 0 ;
18127 char *kwnames[] = {
18128 (char *) "self",(char *) "brush", NULL
18129 };
18130
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
18132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 (arg1)->RemoveBrush(arg2);
18139
18140 wxPyEndAllowThreads(__tstate);
18141 if (PyErr_Occurred()) SWIG_fail;
18142 }
18143 Py_INCREF(Py_None); resultobj = Py_None;
18144 return resultobj;
18145 fail:
18146 return NULL;
18147}
18148
18149
c32bde28 18150static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18151 PyObject *resultobj;
18152 wxBrushList *arg1 = (wxBrushList *) 0 ;
18153 int result;
18154 PyObject * obj0 = 0 ;
18155 char *kwnames[] = {
18156 (char *) "self", NULL
18157 };
18158
18159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
18160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 result = (int)(arg1)->GetCount();
18165
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
c32bde28 18169 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18170 return resultobj;
18171 fail:
18172 return NULL;
18173}
18174
18175
c32bde28 18176static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18177 PyObject *obj;
18178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18179 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18180 Py_INCREF(obj);
18181 return Py_BuildValue((char *)"");
18182}
c32bde28 18183static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18184 PyObject *resultobj;
18185 wxColourDatabase *result;
18186 char *kwnames[] = {
18187 NULL
18188 };
18189
18190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18191 {
0439c23b 18192 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
18193 PyThreadState* __tstate = wxPyBeginAllowThreads();
18194 result = (wxColourDatabase *)new wxColourDatabase();
18195
18196 wxPyEndAllowThreads(__tstate);
110da5b0 18197 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
18198 }
18199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18200 return resultobj;
18201 fail:
18202 return NULL;
18203}
18204
18205
c32bde28 18206static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18207 PyObject *resultobj;
18208 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18209 PyObject * obj0 = 0 ;
18210 char *kwnames[] = {
18211 (char *) "self", NULL
18212 };
18213
18214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18217 {
18218 PyThreadState* __tstate = wxPyBeginAllowThreads();
18219 delete arg1;
18220
18221 wxPyEndAllowThreads(__tstate);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 Py_INCREF(Py_None); resultobj = Py_None;
18225 return resultobj;
18226 fail:
18227 return NULL;
18228}
18229
18230
c32bde28 18231static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18232 PyObject *resultobj;
18233 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18234 wxString *arg2 = 0 ;
18235 wxColour result;
18236 bool temp2 = False ;
18237 PyObject * obj0 = 0 ;
18238 PyObject * obj1 = 0 ;
18239 char *kwnames[] = {
18240 (char *) "self",(char *) "name", NULL
18241 };
18242
18243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18246 {
18247 arg2 = wxString_in_helper(obj1);
18248 if (arg2 == NULL) SWIG_fail;
18249 temp2 = True;
18250 }
18251 {
18252 PyThreadState* __tstate = wxPyBeginAllowThreads();
18253 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18254
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 {
18259 wxColour * resultptr;
18260 resultptr = new wxColour((wxColour &) result);
18261 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18262 }
18263 {
18264 if (temp2)
18265 delete arg2;
18266 }
18267 return resultobj;
18268 fail:
18269 {
18270 if (temp2)
18271 delete arg2;
18272 }
18273 return NULL;
18274}
18275
18276
c32bde28 18277static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18278 PyObject *resultobj;
18279 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18280 wxColour *arg2 = 0 ;
18281 wxString result;
18282 wxColour temp2 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char *kwnames[] = {
18286 (char *) "self",(char *) "colour", NULL
18287 };
18288
18289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18292 {
18293 arg2 = &temp2;
18294 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18295 }
18296 {
18297 PyThreadState* __tstate = wxPyBeginAllowThreads();
18298 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18299
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 {
18304#if wxUSE_UNICODE
18305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18306#else
18307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18308#endif
18309 }
18310 return resultobj;
18311 fail:
18312 return NULL;
18313}
18314
18315
c32bde28 18316static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18317 PyObject *resultobj;
18318 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18319 wxString *arg2 = 0 ;
18320 wxColour *arg3 = 0 ;
18321 bool temp2 = False ;
18322 wxColour temp3 ;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 PyObject * obj2 = 0 ;
18326 char *kwnames[] = {
18327 (char *) "self",(char *) "name",(char *) "colour", NULL
18328 };
18329
18330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18333 {
18334 arg2 = wxString_in_helper(obj1);
18335 if (arg2 == NULL) SWIG_fail;
18336 temp2 = True;
18337 }
18338 {
18339 arg3 = &temp3;
18340 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18341 }
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18345
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 Py_INCREF(Py_None); resultobj = Py_None;
18350 {
18351 if (temp2)
18352 delete arg2;
18353 }
18354 return resultobj;
18355 fail:
18356 {
18357 if (temp2)
18358 delete arg2;
18359 }
18360 return NULL;
18361}
18362
18363
c32bde28 18364static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18365 PyObject *resultobj;
18366 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18367 wxString *arg2 = 0 ;
18368 int arg3 ;
18369 int arg4 ;
18370 int arg5 ;
18371 bool temp2 = False ;
18372 PyObject * obj0 = 0 ;
18373 PyObject * obj1 = 0 ;
18374 PyObject * obj2 = 0 ;
18375 PyObject * obj3 = 0 ;
18376 PyObject * obj4 = 0 ;
18377 char *kwnames[] = {
18378 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18379 };
18380
18381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18384 {
18385 arg2 = wxString_in_helper(obj1);
18386 if (arg2 == NULL) SWIG_fail;
18387 temp2 = True;
18388 }
c32bde28 18389 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18390 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18391 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18392 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18393 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18394 if (PyErr_Occurred()) SWIG_fail;
18395 {
18396 PyThreadState* __tstate = wxPyBeginAllowThreads();
18397 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18398
18399 wxPyEndAllowThreads(__tstate);
18400 if (PyErr_Occurred()) SWIG_fail;
18401 }
18402 Py_INCREF(Py_None); resultobj = Py_None;
18403 {
18404 if (temp2)
18405 delete arg2;
18406 }
18407 return resultobj;
18408 fail:
18409 {
18410 if (temp2)
18411 delete arg2;
18412 }
18413 return NULL;
18414}
18415
18416
c32bde28 18417static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18418 PyObject *obj;
18419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18420 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18421 Py_INCREF(obj);
18422 return Py_BuildValue((char *)"");
18423}
c32bde28 18424static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18425 PyObject *resultobj;
18426 wxFontList *arg1 = (wxFontList *) 0 ;
18427 wxFont *arg2 = (wxFont *) 0 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 char *kwnames[] = {
18431 (char *) "self",(char *) "font", NULL
18432 };
18433
18434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 (arg1)->AddFont(arg2);
18442
18443 wxPyEndAllowThreads(__tstate);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 }
18446 Py_INCREF(Py_None); resultobj = Py_None;
18447 return resultobj;
18448 fail:
18449 return NULL;
18450}
18451
18452
c32bde28 18453static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18454 PyObject *resultobj;
18455 wxFontList *arg1 = (wxFontList *) 0 ;
18456 int arg2 ;
18457 int arg3 ;
18458 int arg4 ;
18459 int arg5 ;
18460 bool arg6 = (bool) False ;
18461 wxString const &arg7_defvalue = wxPyEmptyString ;
18462 wxString *arg7 = (wxString *) &arg7_defvalue ;
18463 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18464 wxFont *result;
18465 bool temp7 = False ;
18466 PyObject * obj0 = 0 ;
18467 PyObject * obj1 = 0 ;
18468 PyObject * obj2 = 0 ;
18469 PyObject * obj3 = 0 ;
18470 PyObject * obj4 = 0 ;
18471 PyObject * obj5 = 0 ;
18472 PyObject * obj6 = 0 ;
18473 PyObject * obj7 = 0 ;
18474 char *kwnames[] = {
18475 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18476 };
18477
18478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18481 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 18482 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18483 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18484 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18485 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18486 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18487 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18488 if (PyErr_Occurred()) SWIG_fail;
18489 if (obj5) {
c32bde28 18490 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
18491 if (PyErr_Occurred()) SWIG_fail;
18492 }
18493 if (obj6) {
18494 {
18495 arg7 = wxString_in_helper(obj6);
18496 if (arg7 == NULL) SWIG_fail;
18497 temp7 = True;
18498 }
18499 }
18500 if (obj7) {
c32bde28 18501 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18507
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18512 {
18513 if (temp7)
18514 delete arg7;
18515 }
18516 return resultobj;
18517 fail:
18518 {
18519 if (temp7)
18520 delete arg7;
18521 }
18522 return NULL;
18523}
18524
18525
c32bde28 18526static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18527 PyObject *resultobj;
18528 wxFontList *arg1 = (wxFontList *) 0 ;
18529 wxFont *arg2 = (wxFont *) 0 ;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 char *kwnames[] = {
18533 (char *) "self",(char *) "font", NULL
18534 };
18535
18536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 (arg1)->RemoveFont(arg2);
18544
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 Py_INCREF(Py_None); resultobj = Py_None;
18549 return resultobj;
18550 fail:
18551 return NULL;
18552}
18553
18554
c32bde28 18555static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18556 PyObject *resultobj;
18557 wxFontList *arg1 = (wxFontList *) 0 ;
18558 int result;
18559 PyObject * obj0 = 0 ;
18560 char *kwnames[] = {
18561 (char *) "self", NULL
18562 };
18563
18564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 result = (int)(arg1)->GetCount();
18570
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
c32bde28 18574 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18575 return resultobj;
18576 fail:
18577 return NULL;
18578}
18579
18580
c32bde28 18581static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18582 PyObject *obj;
18583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18584 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18585 Py_INCREF(obj);
18586 return Py_BuildValue((char *)"");
18587}
c32bde28 18588static int _wrap_TheFontList_set(PyObject *) {
d55e5bfc
RD
18589 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18590 return 1;
18591}
18592
18593
18594static PyObject *_wrap_TheFontList_get() {
18595 PyObject *pyobj;
18596
18597 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18598 return pyobj;
18599}
18600
18601
c32bde28 18602static int _wrap_ThePenList_set(PyObject *) {
d55e5bfc
RD
18603 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18604 return 1;
18605}
18606
18607
18608static PyObject *_wrap_ThePenList_get() {
18609 PyObject *pyobj;
18610
18611 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18612 return pyobj;
18613}
18614
18615
c32bde28 18616static int _wrap_TheBrushList_set(PyObject *) {
d55e5bfc
RD
18617 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18618 return 1;
18619}
18620
18621
18622static PyObject *_wrap_TheBrushList_get() {
18623 PyObject *pyobj;
18624
18625 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18626 return pyobj;
18627}
18628
18629
c32bde28 18630static int _wrap_TheColourDatabase_set(PyObject *) {
d55e5bfc
RD
18631 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18632 return 1;
18633}
18634
18635
18636static PyObject *_wrap_TheColourDatabase_get() {
18637 PyObject *pyobj;
18638
18639 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18640 return pyobj;
18641}
18642
18643
c32bde28 18644static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18645 PyObject *resultobj;
18646 wxEffects *result;
18647 char *kwnames[] = {
18648 NULL
18649 };
18650
18651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 result = (wxEffects *)new wxEffects();
18655
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18660 return resultobj;
18661 fail:
18662 return NULL;
18663}
18664
18665
c32bde28 18666static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18667 PyObject *resultobj;
18668 wxEffects *arg1 = (wxEffects *) 0 ;
18669 wxColour result;
18670 PyObject * obj0 = 0 ;
18671 char *kwnames[] = {
18672 (char *) "self", NULL
18673 };
18674
18675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18678 {
18679 PyThreadState* __tstate = wxPyBeginAllowThreads();
18680 result = ((wxEffects const *)arg1)->GetHighlightColour();
18681
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 {
18686 wxColour * resultptr;
18687 resultptr = new wxColour((wxColour &) result);
18688 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18689 }
18690 return resultobj;
18691 fail:
18692 return NULL;
18693}
18694
18695
c32bde28 18696static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18697 PyObject *resultobj;
18698 wxEffects *arg1 = (wxEffects *) 0 ;
18699 wxColour result;
18700 PyObject * obj0 = 0 ;
18701 char *kwnames[] = {
18702 (char *) "self", NULL
18703 };
18704
18705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18708 {
18709 PyThreadState* __tstate = wxPyBeginAllowThreads();
18710 result = ((wxEffects const *)arg1)->GetLightShadow();
18711
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 {
18716 wxColour * resultptr;
18717 resultptr = new wxColour((wxColour &) result);
18718 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18719 }
18720 return resultobj;
18721 fail:
18722 return NULL;
18723}
18724
18725
c32bde28 18726static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18727 PyObject *resultobj;
18728 wxEffects *arg1 = (wxEffects *) 0 ;
18729 wxColour result;
18730 PyObject * obj0 = 0 ;
18731 char *kwnames[] = {
18732 (char *) "self", NULL
18733 };
18734
18735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18738 {
18739 PyThreadState* __tstate = wxPyBeginAllowThreads();
18740 result = ((wxEffects const *)arg1)->GetFaceColour();
18741
18742 wxPyEndAllowThreads(__tstate);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 }
18745 {
18746 wxColour * resultptr;
18747 resultptr = new wxColour((wxColour &) result);
18748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18749 }
18750 return resultobj;
18751 fail:
18752 return NULL;
18753}
18754
18755
c32bde28 18756static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18757 PyObject *resultobj;
18758 wxEffects *arg1 = (wxEffects *) 0 ;
18759 wxColour result;
18760 PyObject * obj0 = 0 ;
18761 char *kwnames[] = {
18762 (char *) "self", NULL
18763 };
18764
18765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18768 {
18769 PyThreadState* __tstate = wxPyBeginAllowThreads();
18770 result = ((wxEffects const *)arg1)->GetMediumShadow();
18771
18772 wxPyEndAllowThreads(__tstate);
18773 if (PyErr_Occurred()) SWIG_fail;
18774 }
18775 {
18776 wxColour * resultptr;
18777 resultptr = new wxColour((wxColour &) result);
18778 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18779 }
18780 return resultobj;
18781 fail:
18782 return NULL;
18783}
18784
18785
c32bde28 18786static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18787 PyObject *resultobj;
18788 wxEffects *arg1 = (wxEffects *) 0 ;
18789 wxColour result;
18790 PyObject * obj0 = 0 ;
18791 char *kwnames[] = {
18792 (char *) "self", NULL
18793 };
18794
18795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18798 {
18799 PyThreadState* __tstate = wxPyBeginAllowThreads();
18800 result = ((wxEffects const *)arg1)->GetDarkShadow();
18801
18802 wxPyEndAllowThreads(__tstate);
18803 if (PyErr_Occurred()) SWIG_fail;
18804 }
18805 {
18806 wxColour * resultptr;
18807 resultptr = new wxColour((wxColour &) result);
18808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18809 }
18810 return resultobj;
18811 fail:
18812 return NULL;
18813}
18814
18815
c32bde28 18816static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18817 PyObject *resultobj;
18818 wxEffects *arg1 = (wxEffects *) 0 ;
18819 wxColour *arg2 = 0 ;
18820 wxColour temp2 ;
18821 PyObject * obj0 = 0 ;
18822 PyObject * obj1 = 0 ;
18823 char *kwnames[] = {
18824 (char *) "self",(char *) "c", NULL
18825 };
18826
18827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18830 {
18831 arg2 = &temp2;
18832 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18833 }
18834 {
18835 PyThreadState* __tstate = wxPyBeginAllowThreads();
18836 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18837
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 Py_INCREF(Py_None); resultobj = Py_None;
18842 return resultobj;
18843 fail:
18844 return NULL;
18845}
18846
18847
c32bde28 18848static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18849 PyObject *resultobj;
18850 wxEffects *arg1 = (wxEffects *) 0 ;
18851 wxColour *arg2 = 0 ;
18852 wxColour temp2 ;
18853 PyObject * obj0 = 0 ;
18854 PyObject * obj1 = 0 ;
18855 char *kwnames[] = {
18856 (char *) "self",(char *) "c", NULL
18857 };
18858
18859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18862 {
18863 arg2 = &temp2;
18864 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18865 }
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 (arg1)->SetLightShadow((wxColour const &)*arg2);
18869
18870 wxPyEndAllowThreads(__tstate);
18871 if (PyErr_Occurred()) SWIG_fail;
18872 }
18873 Py_INCREF(Py_None); resultobj = Py_None;
18874 return resultobj;
18875 fail:
18876 return NULL;
18877}
18878
18879
c32bde28 18880static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18881 PyObject *resultobj;
18882 wxEffects *arg1 = (wxEffects *) 0 ;
18883 wxColour *arg2 = 0 ;
18884 wxColour temp2 ;
18885 PyObject * obj0 = 0 ;
18886 PyObject * obj1 = 0 ;
18887 char *kwnames[] = {
18888 (char *) "self",(char *) "c", NULL
18889 };
18890
18891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18894 {
18895 arg2 = &temp2;
18896 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18897 }
18898 {
18899 PyThreadState* __tstate = wxPyBeginAllowThreads();
18900 (arg1)->SetFaceColour((wxColour const &)*arg2);
18901
18902 wxPyEndAllowThreads(__tstate);
18903 if (PyErr_Occurred()) SWIG_fail;
18904 }
18905 Py_INCREF(Py_None); resultobj = Py_None;
18906 return resultobj;
18907 fail:
18908 return NULL;
18909}
18910
18911
c32bde28 18912static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18913 PyObject *resultobj;
18914 wxEffects *arg1 = (wxEffects *) 0 ;
18915 wxColour *arg2 = 0 ;
18916 wxColour temp2 ;
18917 PyObject * obj0 = 0 ;
18918 PyObject * obj1 = 0 ;
18919 char *kwnames[] = {
18920 (char *) "self",(char *) "c", NULL
18921 };
18922
18923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18926 {
18927 arg2 = &temp2;
18928 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18929 }
18930 {
18931 PyThreadState* __tstate = wxPyBeginAllowThreads();
18932 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18933
18934 wxPyEndAllowThreads(__tstate);
18935 if (PyErr_Occurred()) SWIG_fail;
18936 }
18937 Py_INCREF(Py_None); resultobj = Py_None;
18938 return resultobj;
18939 fail:
18940 return NULL;
18941}
18942
18943
c32bde28 18944static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18945 PyObject *resultobj;
18946 wxEffects *arg1 = (wxEffects *) 0 ;
18947 wxColour *arg2 = 0 ;
18948 wxColour temp2 ;
18949 PyObject * obj0 = 0 ;
18950 PyObject * obj1 = 0 ;
18951 char *kwnames[] = {
18952 (char *) "self",(char *) "c", NULL
18953 };
18954
18955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18958 {
18959 arg2 = &temp2;
18960 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18961 }
18962 {
18963 PyThreadState* __tstate = wxPyBeginAllowThreads();
18964 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18965
18966 wxPyEndAllowThreads(__tstate);
18967 if (PyErr_Occurred()) SWIG_fail;
18968 }
18969 Py_INCREF(Py_None); resultobj = Py_None;
18970 return resultobj;
18971 fail:
18972 return NULL;
18973}
18974
18975
c32bde28 18976static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18977 PyObject *resultobj;
18978 wxEffects *arg1 = (wxEffects *) 0 ;
18979 wxColour *arg2 = 0 ;
18980 wxColour *arg3 = 0 ;
18981 wxColour *arg4 = 0 ;
18982 wxColour *arg5 = 0 ;
18983 wxColour *arg6 = 0 ;
18984 wxColour temp2 ;
18985 wxColour temp3 ;
18986 wxColour temp4 ;
18987 wxColour temp5 ;
18988 wxColour temp6 ;
18989 PyObject * obj0 = 0 ;
18990 PyObject * obj1 = 0 ;
18991 PyObject * obj2 = 0 ;
18992 PyObject * obj3 = 0 ;
18993 PyObject * obj4 = 0 ;
18994 PyObject * obj5 = 0 ;
18995 char *kwnames[] = {
18996 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18997 };
18998
18999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
19000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19002 {
19003 arg2 = &temp2;
19004 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19005 }
19006 {
19007 arg3 = &temp3;
19008 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19009 }
19010 {
19011 arg4 = &temp4;
19012 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
19013 }
19014 {
19015 arg5 = &temp5;
19016 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
19017 }
19018 {
19019 arg6 = &temp6;
19020 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
19021 }
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
19025
19026 wxPyEndAllowThreads(__tstate);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 }
19029 Py_INCREF(Py_None); resultobj = Py_None;
19030 return resultobj;
19031 fail:
19032 return NULL;
19033}
19034
19035
c32bde28 19036static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19037 PyObject *resultobj;
19038 wxEffects *arg1 = (wxEffects *) 0 ;
19039 wxDC *arg2 = 0 ;
19040 wxRect *arg3 = 0 ;
19041 int arg4 = (int) 1 ;
19042 wxRect temp3 ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 PyObject * obj2 = 0 ;
19046 PyObject * obj3 = 0 ;
19047 char *kwnames[] = {
19048 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
19049 };
19050
19051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
19055 SWIG_POINTER_EXCEPTION | 0)) == -1)
19056 SWIG_fail;
19057 if (arg2 == NULL) {
19058 PyErr_SetString(PyExc_TypeError,"null reference");
19059 SWIG_fail;
19060 }
19061 {
19062 arg3 = &temp3;
19063 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19064 }
19065 if (obj3) {
c32bde28 19066 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
19067 if (PyErr_Occurred()) SWIG_fail;
19068 }
19069 {
19070 PyThreadState* __tstate = wxPyBeginAllowThreads();
19071 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
19072
19073 wxPyEndAllowThreads(__tstate);
19074 if (PyErr_Occurred()) SWIG_fail;
19075 }
19076 Py_INCREF(Py_None); resultobj = Py_None;
19077 return resultobj;
19078 fail:
19079 return NULL;
19080}
19081
19082
c32bde28 19083static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19084 PyObject *resultobj;
19085 wxEffects *arg1 = (wxEffects *) 0 ;
19086 wxRect *arg2 = 0 ;
19087 wxDC *arg3 = 0 ;
19088 wxBitmap *arg4 = 0 ;
19089 bool result;
19090 wxRect temp2 ;
19091 PyObject * obj0 = 0 ;
19092 PyObject * obj1 = 0 ;
19093 PyObject * obj2 = 0 ;
19094 PyObject * obj3 = 0 ;
19095 char *kwnames[] = {
19096 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
19097 };
19098
19099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19102 {
19103 arg2 = &temp2;
19104 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19105 }
19106 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
19107 SWIG_POINTER_EXCEPTION | 0)) == -1)
19108 SWIG_fail;
19109 if (arg3 == NULL) {
19110 PyErr_SetString(PyExc_TypeError,"null reference");
19111 SWIG_fail;
19112 }
19113 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
19114 SWIG_POINTER_EXCEPTION | 0)) == -1)
19115 SWIG_fail;
19116 if (arg4 == NULL) {
19117 PyErr_SetString(PyExc_TypeError,"null reference");
19118 SWIG_fail;
19119 }
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
19123
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 {
19128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19129 }
19130 return resultobj;
19131 fail:
19132 return NULL;
19133}
19134
19135
c32bde28 19136static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19137 PyObject *obj;
19138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19139 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
19140 Py_INCREF(obj);
19141 return Py_BuildValue((char *)"");
19142}
19143static PyMethodDef SwigMethods[] = {
c32bde28
RD
19144 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
19145 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
19146 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
19147 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
19148 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
19149 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
19150 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
19151 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
19152 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19153 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
19154 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
19155 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
19156 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
19157 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19158 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19159 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19160 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
19161 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19162 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19163 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19164 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
19165 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19166 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
19167 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
19168 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
19169 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19170 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19171 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19172 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
19173 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
19174 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
19175 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
19176 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19177 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
19178 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19179 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19180 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19181 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
19182 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19183 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
19184 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19185 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19186 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19187 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19188 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19189 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL },
19190 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19191 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19192 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19193 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19194 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
19195 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
19196 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
19197 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19198 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19199 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19200 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19201 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19202 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19203 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19204 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
19205 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19206 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19207 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19208 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19209 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
19210 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
19211 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
19212 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19213 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19214 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19215 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19216 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19217 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19218 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19219 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19220 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
19221 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
19222 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
19223 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
19224 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19225 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
19226 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
19227 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19228 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19229 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19230 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19231 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19232 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL },
19233 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS, NULL },
19234 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL },
19235 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19236 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19237 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
19238 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
19239 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
19240 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
19241 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
19242 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19243 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19244 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19245 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
19246 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
19247 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19248 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19249 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19250 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19251 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19252 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19253 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19254 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19255 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19256 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19257 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19258 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
19259 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19260 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19261 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19262 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19263 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19264 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
19265 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
19266 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
19267 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
19268 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
19269 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19270 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
19271 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19272 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
19273 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19274 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
19275 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
19276 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
19277 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
19278 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
19279 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19280 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19281 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19282 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19283 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19284 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19285 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19286 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19287 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19288 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19289 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
19290 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
19291 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19292 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
19293 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
19294 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
19295 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19296 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
19297 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
19298 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19299 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
19300 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
19301 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
19302 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
19303 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
19304 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19305 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
19306 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
19307 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
19308 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19309 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
19310 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
19311 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19312 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
19313 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
19314 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19315 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19316 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19317 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
19318 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
19319 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
19320 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
19321 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
19322 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
19323 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
19324 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19325 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
19326 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19327 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
19328 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
19329 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
19330 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
19331 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
19332 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
19333 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19334 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19335 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19336 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
19337 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19338 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19339 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19340 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19341 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19342 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19343 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19344 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19345 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19346 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19347 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19348 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19349 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19350 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19351 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
19352 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
19353 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
19354 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
19355 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
19356 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
19357 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
19358 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
19359 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
19360 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
19361 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19362 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19363 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
19364 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
19365 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
19366 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19367 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19368 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
19369 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
19370 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
19371 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19372 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19373 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
19374 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19375 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19376 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
19377 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
19378 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
19379 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
19380 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
19381 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19382 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
19383 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
19384 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
19385 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
19386 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
19387 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
19388 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19389 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
19390 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
19391 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19392 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19393 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19394 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19395 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19396 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19397 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19398 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19399 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19400 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19401 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19402 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19403 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19404 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19405 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19406 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19407 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19408 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19409 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19410 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19411 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19412 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19413 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
19414 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19415 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
19416 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
19417 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
19418 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19419 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19420 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19421 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19422 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
19423 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19424 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19425 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19426 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19427 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19428 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19429 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19430 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
19431 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
19432 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
19433 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
19434 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
19435 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
19436 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
19437 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
19438 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19439 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19440 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
19441 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
19442 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19443 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19444 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19445 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19446 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19447 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19448 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
19449 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
19450 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
19451 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
19452 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
19453 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19454 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
19455 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19456 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19457 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
19458 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
19459 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
19460 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19461 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
19462 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19463 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19464 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19465 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
19466 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19467 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19468 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
19469 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
19470 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
19471 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19472 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19473 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
19474 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19475 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19476 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19477 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
19478 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19479 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
19480 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19481 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
19482 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19483 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
19484 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
19485 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
19486 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19487 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19488 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19489 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19490 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19491 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19492 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19493 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19494 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19495 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
19496 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19497 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
19498 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
19499 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19500 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19501 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19502 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19503 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19504 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
19505 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19506 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
19507 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19508 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
19509 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19510 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19511 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19512 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19513 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19514 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
19515 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
19516 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19517 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19518 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
19519 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19520 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19521 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19522 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
19523 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
19524 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19525 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19526 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19527 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19528 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19529 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19530 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19531 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19532 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19533 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19534 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19535 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19536 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19537 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19538 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
19539 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19540 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19541 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
19542 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19543 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
19544 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
19545 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19546 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19547 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
19548 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
19549 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19550 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19551 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19552 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19553 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19554 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
19555 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19556 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19557 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19558 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19559 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19560 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19561 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19562 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19563 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19564 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19565 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19566 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19567 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19568 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19569 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19570 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19571 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19572 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19573 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19574 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19575 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19576 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19577 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19578 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19579 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
19580 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19581 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19582 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19583 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19584 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19585 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19586 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19587 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
19588 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
19589 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
19590 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
19591 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19592 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL },
19593 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
19594 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
19595 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
19596 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
19597 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
19598 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
19599 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19600 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19601 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19602 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19603 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19604 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19605 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19606 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19607 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19608 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19609 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19610 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19611 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19612 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19613 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19614 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19615 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19616 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19617 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19618 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19619 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19620 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19621 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19622 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19623 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19624 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19625 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19626 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19627 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19628 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19629 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19630 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19631 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19632 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
19633 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19634 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19635 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19636 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19637 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19638 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19639 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
19640 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19641 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19642 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19643 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19644 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19645 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19646 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19647 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19648 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19649 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19650 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19651 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19652 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19653 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19654 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19655 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19656 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19657 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19658 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19659 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19660 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19661 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19662 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19663 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19664 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19665 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19666 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19667 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19668 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19669 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19670 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19671 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19672 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19673 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19674 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19675 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19676 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19677 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19678 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19679 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19680 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19681 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19682 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19683 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19684 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19685 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19686 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19687 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19688 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19689 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19690 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19691 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19692 { NULL, NULL, 0, NULL }
d55e5bfc
RD
19693};
19694
19695
19696/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19697
19698static void *_p_wxControlTo_p_wxWindow(void *x) {
19699 return (void *)((wxWindow *) ((wxControl *) x));
19700}
19701static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19702 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19703}
19704static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19705 return (void *)((wxWindow *) ((wxMenuBar *) x));
19706}
19707static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19708 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19709}
19710static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19711 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19712}
19713static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19714 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19715}
19716static void *_p_wxPenTo_p_wxObject(void *x) {
19717 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19718}
19719static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19720 return (void *)((wxObject *) ((wxRegionIterator *) x));
19721}
19722static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19723 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19724}
19725static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19726 return (void *)((wxObject *) ((wxSizerItem *) x));
19727}
19728static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19729 return (void *)((wxObject *) ((wxColourDatabase *) x));
19730}
19731static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19732 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19733}
19734static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19735 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19736}
19737static void *_p_wxIconTo_p_wxObject(void *x) {
19738 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19739}
19740static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19741 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19742}
19743static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19744 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19745}
19746static void *_p_wxSizerTo_p_wxObject(void *x) {
19747 return (void *)((wxObject *) ((wxSizer *) x));
19748}
19749static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19750 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19751}
19752static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19753 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19754}
19755static void *_p_wxPenListTo_p_wxObject(void *x) {
19756 return (void *)((wxObject *) ((wxPenList *) x));
19757}
19758static void *_p_wxEventTo_p_wxObject(void *x) {
19759 return (void *)((wxObject *) ((wxEvent *) x));
19760}
19761static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19762 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19763}
19764static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19765 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19766}
19767static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19768 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19769}
19770static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19771 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19772}
19773static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19774 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19775}
19776static void *_p_wxDCTo_p_wxObject(void *x) {
19777 return (void *)((wxObject *) ((wxDC *) x));
19778}
19779static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19780 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19781}
19782static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19783 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19784}
19785static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19786 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19787}
19788static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19789 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19790}
19791static void *_p_wxControlTo_p_wxObject(void *x) {
19792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19793}
19794static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19795 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19796}
19797static void *_p_wxClientDCTo_p_wxObject(void *x) {
19798 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19799}
19800static void *_p_wxFSFileTo_p_wxObject(void *x) {
19801 return (void *)((wxObject *) ((wxFSFile *) x));
19802}
19803static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19804 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19805}
19806static void *_p_wxRegionTo_p_wxObject(void *x) {
19807 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19808}
19809static void *_p_wxPySizerTo_p_wxObject(void *x) {
19810 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19811}
19812static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19813 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19814}
19815static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19816 return (void *)((wxObject *) ((wxGDIObject *) x));
19817}
19818static void *_p_wxEffectsTo_p_wxObject(void *x) {
19819 return (void *)((wxObject *) ((wxEffects *) x));
19820}
19821static void *_p_wxPyEventTo_p_wxObject(void *x) {
19822 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19823}
19824static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19825 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19826}
19827static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19828 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19829}
19830static void *_p_wxShowEventTo_p_wxObject(void *x) {
19831 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19832}
19833static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19834 return (void *)((wxObject *) ((wxMenuItem *) x));
19835}
19836static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19837 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19838}
19839static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19841}
19842static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19843 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19844}
19845static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19846 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19847}
19848static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19849 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19850}
19851static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19852 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19853}
19854static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19855 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19856}
19857static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19858 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19859}
19860static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19861 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19862}
19863static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19864 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19865}
19866static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19867 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19868}
19869static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19870 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19871}
19872static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19873 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19874}
19875static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19876 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19877}
19878static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19879 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19880}
19881static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19882 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19883}
19884static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19885 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19886}
19887static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19888 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19889}
19890static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19891 return (void *)((wxObject *) ((wxImageHandler *) x));
19892}
19893static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19894 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19895}
19896static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19897 return (void *)((wxObject *) ((wxEvtHandler *) x));
19898}
19899static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19900 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19901}
19902static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19903 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19904}
19905static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19906 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19907}
19908static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19909 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19910}
19911static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19912 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19913}
19914static void *_p_wxImageTo_p_wxObject(void *x) {
19915 return (void *)((wxObject *) ((wxImage *) x));
19916}
19917static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19918 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19919}
19920static void *_p_wxPaletteTo_p_wxObject(void *x) {
19921 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19922}
19923static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19924 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19925}
19926static void *_p_wxImageListTo_p_wxObject(void *x) {
19927 return (void *)((wxObject *) ((wxImageList *) x));
19928}
19929static void *_p_wxCursorTo_p_wxObject(void *x) {
19930 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19931}
19932static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19933 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19934}
19935static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19936 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19937}
19938static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19940}
19941static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19942 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19943}
19944static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19945 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19946}
19947static void *_p_wxWindowTo_p_wxObject(void *x) {
19948 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19949}
19950static void *_p_wxMenuTo_p_wxObject(void *x) {
19951 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19952}
19953static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19954 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19955}
19956static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19957 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19958}
19959static void *_p_wxBrushListTo_p_wxObject(void *x) {
19960 return (void *)((wxObject *) ((wxBrushList *) x));
19961}
d55e5bfc
RD
19962static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19963 return (void *)((wxObject *) ((wxFileSystem *) x));
19964}
19965static void *_p_wxBitmapTo_p_wxObject(void *x) {
19966 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19967}
19968static void *_p_wxMaskTo_p_wxObject(void *x) {
19969 return (void *)((wxObject *) ((wxMask *) x));
19970}
19971static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19972 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19973}
19974static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19975 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19976}
19977static void *_p_wxPyAppTo_p_wxObject(void *x) {
19978 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19979}
19980static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19981 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19982}
19983static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19984 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19985}
19986static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19987 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19988}
19989static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19990 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19991}
19992static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19993 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19994}
19995static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19996 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19997}
19998static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19999 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
20000}
20001static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
20002 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
20003}
20004static void *_p_wxFontTo_p_wxObject(void *x) {
20005 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
20006}
20007static void *_p_wxBrushTo_p_wxObject(void *x) {
20008 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
20009}
20010static void *_p_wxMetaFileTo_p_wxObject(void *x) {
20011 return (void *)((wxObject *) ((wxMetaFile *) x));
20012}
20013static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
20014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
20015}
20016static void *_p_wxColourTo_p_wxObject(void *x) {
20017 return (void *)((wxObject *) ((wxColour *) x));
20018}
20019static void *_p_wxFontListTo_p_wxObject(void *x) {
20020 return (void *)((wxObject *) ((wxFontList *) x));
20021}
20022static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
20023 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
20024}
20025static void *_p_wxValidatorTo_p_wxObject(void *x) {
20026 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
20027}
20028static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
20029 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
20030}
20031static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
20032 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
20033}
20034static void *_p_wxScreenDCTo_p_wxDC(void *x) {
20035 return (void *)((wxDC *) ((wxScreenDC *) x));
20036}
20037static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
20038 return (void *)((wxDC *) ((wxMirrorDC *) x));
20039}
20040static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
20041 return (void *)((wxDC *) ((wxMemoryDC *) x));
20042}
20043static void *_p_wxWindowDCTo_p_wxDC(void *x) {
20044 return (void *)((wxDC *) ((wxWindowDC *) x));
20045}
20046static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
20047 return (void *)((wxDC *) ((wxMetaFileDC *) x));
20048}
20049static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
20050 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
20051}
20052static void *_p_wxClientDCTo_p_wxDC(void *x) {
20053 return (void *)((wxDC *) ((wxClientDC *) x));
20054}
20055static void *_p_wxPaintDCTo_p_wxDC(void *x) {
20056 return (void *)((wxDC *) ((wxPaintDC *) x));
20057}
20058static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
20059 return (void *)((wxDC *) ((wxPostScriptDC *) x));
20060}
20061static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
20062 return (void *)((wxDC *) ((wxPrinterDC *) x));
20063}
d55e5bfc
RD
20064static void *_p_wxIconTo_p_wxGDIObject(void *x) {
20065 return (void *)((wxGDIObject *) ((wxIcon *) x));
20066}
20067static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
20068 return (void *)((wxGDIObject *) ((wxPalette *) x));
20069}
20070static void *_p_wxPenTo_p_wxGDIObject(void *x) {
20071 return (void *)((wxGDIObject *) ((wxPen *) x));
20072}
20073static void *_p_wxFontTo_p_wxGDIObject(void *x) {
20074 return (void *)((wxGDIObject *) ((wxFont *) x));
20075}
20076static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
20077 return (void *)((wxGDIObject *) ((wxCursor *) x));
20078}
20079static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
20080 return (void *)((wxGDIObject *) ((wxBitmap *) x));
20081}
20082static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
20083 return (void *)((wxGDIObject *) ((wxRegion *) x));
20084}
20085static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
20086 return (void *)((wxGDIObject *) ((wxBrush *) x));
20087}
d55e5bfc
RD
20088static 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}};
20089static 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}};
20090static 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}};
20091static 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}};
20092static 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}};
20093static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
20094static 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}};
20095static 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}};
20096static 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}};
20097static 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}};
20098static 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}};
20099static 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}};
20100static 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}};
20101static 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}};
20102static 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}};
20103static 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}};
20104static 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}};
20105static 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}};
20106static 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}};
20107static 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}};
20108static 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}};
20109static 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}};
c24da6d6 20110static 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_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_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_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_wxImageHandler", _p_wxImageHandlerTo_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_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_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_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
20111static 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}};
20112static 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}};
20113static 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}};
20114static 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}};
20115static 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}};
20116static 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}};
20117static 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}};
20118static 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}};
20119static 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}};
20120static 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}};
20121static 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}};
20122static 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}};
20123static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
c24da6d6 20124static 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
20125static 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}};
20126static 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}};
20127static 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}};
d55e5bfc 20128static 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}};
c24da6d6 20129static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
20130static 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}};
20131static 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}};
20132static 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}};
20133static 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 20134static 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
20135static 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}};
20136static 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}};
20137static 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
20138static 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}};
20139static 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}};
20140static 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}};
20141static 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}};
20142static 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}};
20143
20144static swig_type_info *swig_types_initial[] = {
20145_swigt__p_wxPostScriptDC,
20146_swigt__p_wxBrush,
20147_swigt__p_wxColour,
20148_swigt__p_wxDC,
20149_swigt__p_wxMirrorDC,
20150_swigt__p_byte,
20151_swigt__p_wxPyFontEnumerator,
20152_swigt__p_char,
20153_swigt__p_wxIconLocation,
20154_swigt__p_wxImage,
20155_swigt__p_wxMetaFileDC,
20156_swigt__p_wxMask,
20157_swigt__p_wxSize,
20158_swigt__p_wxFont,
20159_swigt__p_wxWindow,
20160_swigt__p_double,
20161_swigt__p_wxMemoryDC,
20162_swigt__p_wxFontMapper,
20163_swigt__p_wxEffects,
20164_swigt__p_wxNativeEncodingInfo,
20165_swigt__p_wxPalette,
20166_swigt__p_wxBitmap,
20167_swigt__p_wxObject,
20168_swigt__p_wxRegionIterator,
20169_swigt__p_wxRect,
20170_swigt__p_wxString,
20171_swigt__p_wxPrinterDC,
20172_swigt__p_wxIconBundle,
20173_swigt__p_wxPoint,
20174_swigt__p_wxDash,
20175_swigt__p_wxScreenDC,
20176_swigt__p_wxCursor,
20177_swigt__p_wxClientDC,
20178_swigt__p_wxBufferedDC,
20179_swigt__p_wxImageList,
20180_swigt__p_unsigned_char,
20181_swigt__p_wxGDIObject,
20182_swigt__p_wxIcon,
20183_swigt__p_wxLocale,
20184_swigt__p_wxRegion,
d55e5bfc 20185_swigt__p_wxLanguageInfo,
c24da6d6 20186_swigt__p_wxConfigBase,
d55e5bfc
RD
20187_swigt__p_wxWindowDC,
20188_swigt__p_wxPrintData,
20189_swigt__p_wxBrushList,
20190_swigt__p_wxFontList,
20191_swigt__p_wxPen,
20192_swigt__p_wxBufferedPaintDC,
20193_swigt__p_wxPaintDC,
20194_swigt__p_wxPenList,
d55e5bfc
RD
20195_swigt__p_int,
20196_swigt__p_wxMetaFile,
20197_swigt__p_wxNativeFontInfo,
20198_swigt__p_wxEncodingConverter,
20199_swigt__p_wxColourDatabase,
202000
20201};
20202
20203
20204/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20205
20206static swig_const_info swig_const_table[] = {
c32bde28 20207{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
20208
20209#ifdef __cplusplus
20210}
20211#endif
20212
20213#ifdef __cplusplus
20214extern "C"
20215#endif
20216SWIGEXPORT(void) SWIG_init(void) {
20217 static PyObject *SWIG_globals = 0;
20218 static int typeinit = 0;
20219 PyObject *m, *d;
20220 int i;
20221 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20222 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20223 d = PyModule_GetDict(m);
20224
20225 if (!typeinit) {
20226 for (i = 0; swig_types_initial[i]; i++) {
20227 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20228 }
20229 typeinit = 1;
20230 }
20231 SWIG_InstallConstants(d,swig_const_table);
20232
c32bde28
RD
20233 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
20234 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
20235 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
20236 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
20237 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
20238 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
20239 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
20240 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
20241 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
20242 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
20243 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
20244 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
20245 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
20246 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
20247 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
20248 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
20249 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
20250 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
20251 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
20252 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
20253 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
20254 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
20255 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
20256 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
20257 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
20258 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
20259 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
20260 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
20261 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
20262 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
20263 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
20264 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
20265 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
20266 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
20267 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
20268 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
20269 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
20270 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
20271 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
20272 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
20273 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
20274 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
20275 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
20276 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
20277 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
20278 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
20279 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
20280 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
20281 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
20282 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
20283 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
20284 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
20285 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
20286 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
20287 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
20288 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
20289 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
20290 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
20291 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
20292 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
20293 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
20294 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
20295 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
20296 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
20297 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
20298 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
20299 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
20300 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
20301 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
20302 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
20303 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
20304 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
20305 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
20306 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
20307 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
20308 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
20309 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
20310 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
20311 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
20312 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
20313 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
20314 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
20315 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
20316 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
20317 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
20318 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
20319 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
20320 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
20321 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
20322 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
20323 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
20324 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
20325 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
20326 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
20327 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
20328 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
20329 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
20330 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
20331 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
20332 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
20333 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
20334 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
20335 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
20336 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
20337 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
20338 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
20339 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
20340 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
20341 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
20342 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
20343 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
20344 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
20345 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
20346 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
20347 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
20348 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
20349 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
20350 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
20351 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
20352 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
20353 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
20354 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
20355 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
20356 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
20357 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
20358 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
20359 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
d55e5bfc
RD
20360
20361 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20362
c32bde28
RD
20363 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
20364 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
20365 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
20366 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
20367 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
20368 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
20369 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
20370 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
20371 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
20372 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
20373 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
20374 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
20375 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
20376 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
20377 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
20378 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
20379 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
20380 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
20381 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
20382 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20383 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
20384 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
20385 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
20386 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
20387 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
20388 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
20389 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
20390 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
20391 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
20392 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
20393 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
20394 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
20395 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
20396 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
20397 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
20398 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
20399 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
20400 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
20401 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
20402 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
20403 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
20404 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
20405 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
20406 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
20407 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20408 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20409 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
20410 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
20411 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
20412 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
20413 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
20414 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
20415 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
20416 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
20417 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
20418 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
20419 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
20420 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
20421 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
20422 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20423 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
20424 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20425 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
20426 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20427 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
20428 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
20429 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
20430 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20431 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20432 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20433 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20434 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20435 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
20436 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
20437 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
20438 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
20439 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
20440 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
20441 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
20442 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
20443 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
20444 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20445 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
20446 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
20447 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
20448 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
20449 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
20450 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
20451 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20452 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
20453 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20454 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20455 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
20456 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
20457 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
20458 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
20459 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
20460 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
20461 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
20462 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
20463 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
20464 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
20465 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
20466 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
20467 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
20468 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
20469 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
20470 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
20471 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
20472 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
20473 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
20474 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
20475 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
20476 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
20477 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
20478 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
20479 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
20480 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
20481 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
20482 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
20483 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
20484 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
20485 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
20486 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
20487 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
20488 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
20489 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
20490 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
20491 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
20492 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
20493 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
20494 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
20495 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20496 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
20497 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
20498 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
20499 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
20500 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
20501 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
20502 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
20503 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
20504 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
20505 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
20506 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20507 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20508 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
20509 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
20510 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
20511 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
20512 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
20513 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
20514 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20515 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
20516 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
20517 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
20518 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
20519 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
20520 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20521 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
20522 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
20523 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
20524 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
20525 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
20526 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20527 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
20528 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
20529 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
20530 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
20531 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
20532 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
20533 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
20534 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
20535 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
20536 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
20537 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
20538 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
20539 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
20540 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
20541 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
20542 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
20543 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20544 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20545 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
20546 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20547 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
20548 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
20549 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
20550 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
20551 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
20552 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
20553 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
20554 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
20555 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20556 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
20557 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
20558 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
20559 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
20560 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
20561 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
20562 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
20563 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
20564 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
20565 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
20566 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
20567 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
20568 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
20569 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
20570 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
20571 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
20572 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
20573 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
20574 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
20575 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
20576 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
20577 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
20578 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
20579 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
20580 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
20581 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
20582 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
20583 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
20584 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
20585 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
20586 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
20587 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
20588 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
20589 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
20590 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
20591 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
20592 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
20593 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
20594 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
20595 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
20596 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
20597 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
20598 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
20599 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
20600 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
20601 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
20602 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
20603 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
20604 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
20605 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
20606 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
20607 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20608 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20609 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20610 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20611 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20612 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20613 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20614 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20615 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
d55e5bfc
RD
20616 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20617 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20618 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20619 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20620 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20621 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20622 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20623 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20624 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20625 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20626 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20627 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20628 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20629 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20630 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20631 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20632 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20633 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20634 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20635 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20636 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20637 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20638 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20639 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20640 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20641 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20642 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20643 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20644 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20645 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20646 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20647 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20648 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20649 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20650 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20651 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20652 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20653 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20654 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20655 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20656 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20657 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20658 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20659 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20660 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20661 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20662 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20663
20664 // Work around a chicken/egg problem in drawlist.cpp
20665 wxPyDrawList_SetAPIPtr();
20666
20667}
20668