]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[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;
7e63a440
RD
624 } else {
625 if (!PyTuple_Check(target)) {
626 o2 = target;
627 target = PyTuple_New(1);
628 PyTuple_SetItem(target, 0, o2);
629 }
d55e5bfc
RD
630 o3 = PyTuple_New(1);
631 PyTuple_SetItem(o3, 0, o);
632
633 o2 = target;
634 target = PySequence_Concat(o2, o3);
635 Py_DECREF(o2);
636 Py_DECREF(o3);
637 }
638 return target;
7e63a440 639 }
d55e5bfc 640
c32bde28 641
d55e5bfc
RD
642PyObject *wxPen_GetDashes(wxPen *self){
643 wxDash* dashes;
644 int count = self->GetDashes(&dashes);
645 bool blocked = wxPyBeginBlockThreads();
646 PyObject* retval = PyList_New(0);
a07a67e6
RD
647 for (int x=0; x<count; x++) {
648 PyObject* pyint = PyInt_FromLong(dashes[x]);
649 PyList_Append(retval, pyint);
650 Py_DECREF(pyint);
651 }
d55e5bfc
RD
652 wxPyEndBlockThreads(blocked);
653 return retval;
654 }
c24da6d6
RD
655void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
656 bool blocked = wxPyBeginBlockThreads();
657 int size = PyList_Size(pyDashes);
658 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
659
660 // black magic warning! The array of wxDashes needs to exist as
661 // long as the pen does because wxPen does not copy the array. So
662 // stick a copy in a Python string object and attach it to _self,
663 // and then call SetDashes with a pointer to that array. Then
664 // when the Python pen object is destroyed the array will be
665 // cleaned up too.
666 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
667 PyObject_SetAttrString(_self, "_dashes", strDashes);
668
669 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
670 delete [] dashes;
671 Py_DECREF(strDashes);
672 wxPyEndBlockThreads(blocked);
673 }
ae8162c8
RD
674bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
675bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 676
d55e5bfc
RD
677#include <wx/image.h>
678
679 static char** ConvertListOfStrings(PyObject* listOfStrings) {
680 char** cArray = NULL;
681 int count;
682
683 if (!PyList_Check(listOfStrings)) {
684 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
685 return NULL;
686 }
687 count = PyList_Size(listOfStrings);
688 cArray = new char*[count];
689
690 for(int x=0; x<count; x++) {
691 // TODO: Need some validation and error checking here
692 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
693 }
694 return cArray;
695 }
696
697
698wxBitmap *new_wxBitmap(PyObject *listOfStrings){
699 char** cArray = NULL;
700 wxBitmap* bmp;
701
702 cArray = ConvertListOfStrings(listOfStrings);
703 if (! cArray)
704 return NULL;
705 bmp = new wxBitmap(cArray);
706 delete [] cArray;
707 return bmp;
708 }
709wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
710 char* buf;
711 int length;
712 PyString_AsStringAndSize(bits, &buf, &length);
713 return new wxBitmap(buf, width, height, depth);
714 }
d55e5bfc 715
c32bde28
RD
716SWIGSTATICINLINE(long)
717SWIG_As_long(PyObject* obj)
d55e5bfc 718{
c32bde28
RD
719 long v;
720 if (!SWIG_AsVal_long(obj, &v)) {
721 /*
722 this is needed to make valgrind/purify happier. the other
723 solution is throw an exception, but since this code should work
724 with plain C ....
725 */
726 memset((void*)&v, 0, sizeof(long));
d55e5bfc 727 }
c32bde28
RD
728 return v;
729}
730
731
732SWIGSTATICINLINE(int)
733SWIG_Check_long(PyObject* obj)
734{
735 return SWIG_AsVal_long(obj, (long*)0);
d55e5bfc
RD
736}
737
738void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
739wxSize wxBitmap_GetSize(wxBitmap *self){
740 wxSize size(self->GetWidth(), self->GetHeight());
741 return size;
742 }
743void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
744 wxMask *mask = new wxMask(*self, colour);
745 self->SetMask(mask);
746 }
747void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
748 self->SetWidth(size.x);
749 self->SetHeight(size.y);
750 }
ae8162c8
RD
751bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
752bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
d55e5bfc
RD
753wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
754 if ( !colour.Ok() )
755 return new wxMask(bitmap, *wxBLACK);
756 else
757 return new wxMask(bitmap, colour);
758 }
759
760#include <wx/iconbndl.h>
761
762wxIcon *new_wxIcon(wxBitmap const &bmp){
763 wxIcon* icon = new wxIcon();
764 icon->CopyFromBitmap(bmp);
765 return icon;
766 }
767wxIcon *new_wxIcon(PyObject *listOfStrings){
768 char** cArray = NULL;
769 wxIcon* icon;
770
771 cArray = ConvertListOfStrings(listOfStrings);
772 if (! cArray)
773 return NULL;
774 icon = new wxIcon(cArray);
775 delete [] cArray;
776 return icon;
777 }
778void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
779wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
780
781 return new wxIconLocation(*filename, num);
782
783
784
785 }
786void wxIconLocation_SetIndex(wxIconLocation *self,int num){
787
788 self->SetIndex(num);
789
790
791
792 }
793int wxIconLocation_GetIndex(wxIconLocation *self){
794
795 return self->GetIndex();
796
797
798
799 }
800wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
801#ifdef __WXGTK__
ae8162c8 802 wxCHECK_MSG(false, NULL,
d55e5bfc
RD
803 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
804#else
805 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
806#endif
807 }
808void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
809
810
811void wxRegionIterator_Next(wxRegionIterator *self){
812 (*self) ++;
813 }
814bool wxRegionIterator___nonzero__(wxRegionIterator *self){
815 return self->operator bool();
816 }
817
818#include <wx/fontutil.h>
819#include <wx/fontmap.h>
820#include <wx/fontenum.h>
821
822wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
823 return self->ToString();
824 }
825
826 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
827 { wxPyRaiseNotImplemented(); return NULL; }
5e483524 828
d55e5bfc 829 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
ae8162c8 830 { wxPyRaiseNotImplemented(); return false; }
d55e5bfc
RD
831
832PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
833 wxFontEncoding alt_enc;
834 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
835 return PyInt_FromLong(alt_enc);
836 else {
837 Py_INCREF(Py_None);
838 return Py_None;
839 }
840 }
841wxFont *new_wxFont(wxString const &info){
842 wxNativeFontInfo nfi;
843 nfi.FromString(info);
844 return new wxFont(nfi);
845 }
846wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
847 return wxFont::New(pointSize, family, flags, face, encoding);
848 }
5e483524
RD
849wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){
850 return wxFontBase::New(pixelSize, family,
851 style, weight, underlined,
852 face, encoding);
853 }
ae8162c8
RD
854bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
855bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc
RD
856
857class wxPyFontEnumerator : public wxFontEnumerator {
858public:
859 wxPyFontEnumerator() {}
860 ~wxPyFontEnumerator() {}
861
862 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
863 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
864
865 PYPRIVATE;
866};
867
868IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
869IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
870
871
872PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
873 wxArrayString* arr = self->GetEncodings();
b0f7404b
RD
874 if (arr)
875 return wxArrayString2PyList_helper(*arr);
876 else
877 return PyList_New(0);
d55e5bfc
RD
878 }
879PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
880 wxArrayString* arr = self->GetFacenames();
b0f7404b
RD
881 if (arr)
882 return wxArrayString2PyList_helper(*arr);
883 else
884 return PyList_New(0);
d55e5bfc
RD
885 }
886
887
79fccf9d
RD
888wxLocale *new_wxLocale(int language,int flags){
889 if (language == -1)
890 return new wxLocale();
891 else
892 return new wxLocale(language, flags);
893 }
d55e5bfc
RD
894
895#include "wx/wxPython/pydrawxxx.h"
896
c24da6d6 897wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d55e5bfc
RD
898 wxColour col;
899 self->GetPixel(x, y, &col);
900 return col;
901 }
c24da6d6 902wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d55e5bfc
RD
903 wxColour col;
904 self->GetPixel(pt, &col);
905 return col;
906 }
907
c32bde28
RD
908// See my_fragments.i
909SWIGSTATICINLINE(int)
910SWIG_AsVal_double(PyObject *obj, double* val)
d55e5bfc 911{
c32bde28
RD
912 if (PyNumber_Check(obj)) {
913 if (val) *val = PyFloat_AsDouble(obj);
914 return 1;
915 }
d55e5bfc
RD
916 else {
917 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
918 obj->ob_type->tp_name);
919 PyErr_SetObject(PyExc_TypeError, errmsg);
920 Py_DECREF(errmsg);
d55e5bfc 921 }
c32bde28 922 return 0;
d55e5bfc
RD
923}
924
925
c32bde28
RD
926SWIGSTATICINLINE(double)
927SWIG_As_double(PyObject* obj)
d55e5bfc 928{
c32bde28
RD
929 double v;
930 if (!SWIG_AsVal_double(obj, &v)) {
931 /*
932 this is needed to make valgrind/purify happier. the other
933 solution is throw an exception, but since this code should work
934 with plain C ....
935 */
936 memset((void*)&v, 0, sizeof(double));
d55e5bfc 937 }
c32bde28
RD
938 return v;
939}
940
941
942SWIGSTATICINLINE(int)
943SWIG_Check_double(PyObject* obj)
944{
945 return SWIG_AsVal_double(obj, (double*)0);
d55e5bfc
RD
946}
947
948wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
949 wxRect rv;
950 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
951 return rv;
952 }
c32bde28 953
d55e5bfc
RD
954wxRect wxDC_GetClippingRect(wxDC *self){
955 wxRect rect;
956 self->GetClippingBox(rect);
957 return rect;
958 }
959wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
960 wxArrayInt widths;
961 self->GetPartialTextExtents(text, widths);
962 return widths;
963 }
c32bde28 964
c24da6d6
RD
965void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
966 self->SetLogicalOrigin(point.x, point.y);
967 }
968void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
969 self->SetDeviceOrigin(point.x, point.y);
970 }
971void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
972 self->CalcBoundingBox(point.x, point.y);
973 }
d55e5bfc
RD
974PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
975 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
976 }
977PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
978 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
979 }
980PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
981 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
982 }
983PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
984 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
985 }
986PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
987 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
988 }
989PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
990 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
991 }
992
993static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
994 *x1 = dc->MinX();
995 *y1 = dc->MinY();
996 *x2 = dc->MaxX();
997 *y2 = dc->MaxY();
998}
999
1000
1001#include <wx/dcbuffer.h>
1002
1003
1004#include <wx/dcps.h>
1005
1006
1007#include <wx/metafile.h>
1008
1009
1010
1011void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1012 self->AddColour(name, wxColour(red, green, blue));
1013 }
1014
1015#include <wx/effects.h>
1016
1017#ifdef __cplusplus
1018extern "C" {
1019#endif
c32bde28 1020static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1021 PyObject *resultobj;
1022 wxGDIObject *result;
1023 char *kwnames[] = {
1024 NULL
1025 };
1026
1027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1028 {
0439c23b 1029 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1030 PyThreadState* __tstate = wxPyBeginAllowThreads();
1031 result = (wxGDIObject *)new wxGDIObject();
1032
1033 wxPyEndAllowThreads(__tstate);
110da5b0 1034 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1035 }
1036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1037 return resultobj;
1038 fail:
1039 return NULL;
1040}
1041
1042
c32bde28 1043static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1044 PyObject *resultobj;
1045 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1046 PyObject * obj0 = 0 ;
1047 char *kwnames[] = {
1048 (char *) "self", NULL
1049 };
1050
1051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1054 {
1055 PyThreadState* __tstate = wxPyBeginAllowThreads();
1056 delete arg1;
1057
1058 wxPyEndAllowThreads(__tstate);
1059 if (PyErr_Occurred()) SWIG_fail;
1060 }
1061 Py_INCREF(Py_None); resultobj = Py_None;
1062 return resultobj;
1063 fail:
1064 return NULL;
1065}
1066
1067
c32bde28 1068static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1069 PyObject *resultobj;
1070 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1071 bool result;
1072 PyObject * obj0 = 0 ;
1073 char *kwnames[] = {
1074 (char *) "self", NULL
1075 };
1076
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1080 {
1081 PyThreadState* __tstate = wxPyBeginAllowThreads();
1082 result = (bool)(arg1)->GetVisible();
1083
1084 wxPyEndAllowThreads(__tstate);
1085 if (PyErr_Occurred()) SWIG_fail;
1086 }
1087 {
1088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1089 }
1090 return resultobj;
1091 fail:
1092 return NULL;
1093}
1094
1095
c32bde28 1096static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1097 PyObject *resultobj;
1098 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1099 bool arg2 ;
1100 PyObject * obj0 = 0 ;
1101 PyObject * obj1 = 0 ;
1102 char *kwnames[] = {
1103 (char *) "self",(char *) "visible", NULL
1104 };
1105
1106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1109 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
1110 if (PyErr_Occurred()) SWIG_fail;
1111 {
1112 PyThreadState* __tstate = wxPyBeginAllowThreads();
1113 (arg1)->SetVisible(arg2);
1114
1115 wxPyEndAllowThreads(__tstate);
1116 if (PyErr_Occurred()) SWIG_fail;
1117 }
1118 Py_INCREF(Py_None); resultobj = Py_None;
1119 return resultobj;
1120 fail:
1121 return NULL;
1122}
1123
1124
c32bde28 1125static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1126 PyObject *resultobj;
1127 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1128 bool result;
1129 PyObject * obj0 = 0 ;
1130 char *kwnames[] = {
1131 (char *) "self", NULL
1132 };
1133
1134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1137 {
1138 PyThreadState* __tstate = wxPyBeginAllowThreads();
1139 result = (bool)(arg1)->IsNull();
1140
1141 wxPyEndAllowThreads(__tstate);
1142 if (PyErr_Occurred()) SWIG_fail;
1143 }
1144 {
1145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1146 }
1147 return resultobj;
1148 fail:
1149 return NULL;
1150}
1151
1152
c32bde28 1153static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1154 PyObject *obj;
1155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1156 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1157 Py_INCREF(obj);
1158 return Py_BuildValue((char *)"");
1159}
c32bde28 1160static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 1161 PyObject *resultobj;
79fccf9d
RD
1162 byte arg1 = (byte) 0 ;
1163 byte arg2 = (byte) 0 ;
1164 byte arg3 = (byte) 0 ;
d55e5bfc
RD
1165 wxColour *result;
1166 PyObject * obj0 = 0 ;
1167 PyObject * obj1 = 0 ;
1168 PyObject * obj2 = 0 ;
1169 char *kwnames[] = {
1170 (char *) "red",(char *) "green",(char *) "blue", NULL
1171 };
1172
1173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1174 if (obj0) {
c32bde28 1175 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
d55e5bfc
RD
1176 if (PyErr_Occurred()) SWIG_fail;
1177 }
1178 if (obj1) {
c32bde28 1179 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc
RD
1180 if (PyErr_Occurred()) SWIG_fail;
1181 }
1182 if (obj2) {
c32bde28 1183 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc
RD
1184 if (PyErr_Occurred()) SWIG_fail;
1185 }
1186 {
1187 PyThreadState* __tstate = wxPyBeginAllowThreads();
1188 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1189
1190 wxPyEndAllowThreads(__tstate);
1191 if (PyErr_Occurred()) SWIG_fail;
1192 }
1193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1194 return resultobj;
1195 fail:
1196 return NULL;
1197}
1198
1199
c32bde28 1200static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1201 PyObject *resultobj;
1202 wxString *arg1 = 0 ;
1203 wxColour *result;
ae8162c8 1204 bool temp1 = false ;
d55e5bfc
RD
1205 PyObject * obj0 = 0 ;
1206 char *kwnames[] = {
1207 (char *) "colorName", NULL
1208 };
1209
1210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1211 {
1212 arg1 = wxString_in_helper(obj0);
1213 if (arg1 == NULL) SWIG_fail;
ae8162c8 1214 temp1 = true;
d55e5bfc
RD
1215 }
1216 {
bf26d883 1217 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1218 PyThreadState* __tstate = wxPyBeginAllowThreads();
1219 result = (wxColour *)new wxColour((wxString const &)*arg1);
1220
1221 wxPyEndAllowThreads(__tstate);
1222 if (PyErr_Occurred()) SWIG_fail;
1223 }
1224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1225 {
1226 if (temp1)
1227 delete arg1;
1228 }
1229 return resultobj;
1230 fail:
1231 {
1232 if (temp1)
1233 delete arg1;
1234 }
1235 return NULL;
1236}
1237
1238
c32bde28 1239static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1240 PyObject *resultobj;
1241 unsigned long arg1 ;
1242 wxColour *result;
1243 PyObject * obj0 = 0 ;
1244 char *kwnames[] = {
1245 (char *) "colRGB", NULL
1246 };
1247
1248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
c32bde28 1249 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
1250 if (PyErr_Occurred()) SWIG_fail;
1251 {
1252 PyThreadState* __tstate = wxPyBeginAllowThreads();
1253 result = (wxColour *)new wxColour(arg1);
1254
1255 wxPyEndAllowThreads(__tstate);
1256 if (PyErr_Occurred()) SWIG_fail;
1257 }
1258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1259 return resultobj;
1260 fail:
1261 return NULL;
1262}
1263
1264
c32bde28 1265static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1266 PyObject *resultobj;
1267 wxColour *arg1 = (wxColour *) 0 ;
1268 PyObject * obj0 = 0 ;
1269 char *kwnames[] = {
1270 (char *) "self", NULL
1271 };
1272
1273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1276 {
1277 PyThreadState* __tstate = wxPyBeginAllowThreads();
1278 delete arg1;
1279
1280 wxPyEndAllowThreads(__tstate);
1281 if (PyErr_Occurred()) SWIG_fail;
1282 }
1283 Py_INCREF(Py_None); resultobj = Py_None;
1284 return resultobj;
1285 fail:
1286 return NULL;
1287}
1288
1289
c32bde28 1290static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1291 PyObject *resultobj;
1292 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d 1293 byte result;
d55e5bfc
RD
1294 PyObject * obj0 = 0 ;
1295 char *kwnames[] = {
1296 (char *) "self", NULL
1297 };
1298
1299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1302 {
1303 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 1304 result = (byte)(arg1)->Red();
d55e5bfc
RD
1305
1306 wxPyEndAllowThreads(__tstate);
1307 if (PyErr_Occurred()) SWIG_fail;
1308 }
c32bde28 1309 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1310 return resultobj;
1311 fail:
1312 return NULL;
1313}
1314
1315
c32bde28 1316static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1317 PyObject *resultobj;
1318 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d 1319 byte result;
d55e5bfc
RD
1320 PyObject * obj0 = 0 ;
1321 char *kwnames[] = {
1322 (char *) "self", NULL
1323 };
1324
1325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1328 {
1329 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 1330 result = (byte)(arg1)->Green();
d55e5bfc
RD
1331
1332 wxPyEndAllowThreads(__tstate);
1333 if (PyErr_Occurred()) SWIG_fail;
1334 }
c32bde28 1335 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1336 return resultobj;
1337 fail:
1338 return NULL;
1339}
1340
1341
c32bde28 1342static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1343 PyObject *resultobj;
1344 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d 1345 byte result;
d55e5bfc
RD
1346 PyObject * obj0 = 0 ;
1347 char *kwnames[] = {
1348 (char *) "self", NULL
1349 };
1350
1351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1354 {
1355 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 1356 result = (byte)(arg1)->Blue();
d55e5bfc
RD
1357
1358 wxPyEndAllowThreads(__tstate);
1359 if (PyErr_Occurred()) SWIG_fail;
1360 }
c32bde28 1361 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1362 return resultobj;
1363 fail:
1364 return NULL;
1365}
1366
1367
c32bde28 1368static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1369 PyObject *resultobj;
1370 wxColour *arg1 = (wxColour *) 0 ;
1371 bool result;
1372 PyObject * obj0 = 0 ;
1373 char *kwnames[] = {
1374 (char *) "self", NULL
1375 };
1376
1377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1380 {
1381 PyThreadState* __tstate = wxPyBeginAllowThreads();
1382 result = (bool)(arg1)->Ok();
1383
1384 wxPyEndAllowThreads(__tstate);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 }
1387 {
1388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1389 }
1390 return resultobj;
1391 fail:
1392 return NULL;
1393}
1394
1395
c32bde28 1396static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1397 PyObject *resultobj;
1398 wxColour *arg1 = (wxColour *) 0 ;
79fccf9d
RD
1399 byte arg2 ;
1400 byte arg3 ;
1401 byte arg4 ;
d55e5bfc
RD
1402 PyObject * obj0 = 0 ;
1403 PyObject * obj1 = 0 ;
1404 PyObject * obj2 = 0 ;
1405 PyObject * obj3 = 0 ;
1406 char *kwnames[] = {
1407 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1408 };
1409
1410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1413 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 1414 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1415 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 1416 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1417 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
1418 if (PyErr_Occurred()) SWIG_fail;
1419 {
1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
1421 (arg1)->Set(arg2,arg3,arg4);
1422
1423 wxPyEndAllowThreads(__tstate);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 Py_INCREF(Py_None); resultobj = Py_None;
1427 return resultobj;
1428 fail:
1429 return NULL;
1430}
1431
1432
c32bde28 1433static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1434 PyObject *resultobj;
1435 wxColour *arg1 = (wxColour *) 0 ;
1436 unsigned long arg2 ;
1437 PyObject * obj0 = 0 ;
1438 PyObject * obj1 = 0 ;
1439 char *kwnames[] = {
1440 (char *) "self",(char *) "colRGB", NULL
1441 };
1442
1443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1446 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
1447 if (PyErr_Occurred()) SWIG_fail;
1448 {
1449 PyThreadState* __tstate = wxPyBeginAllowThreads();
1450 (arg1)->Set(arg2);
1451
1452 wxPyEndAllowThreads(__tstate);
1453 if (PyErr_Occurred()) SWIG_fail;
1454 }
1455 Py_INCREF(Py_None); resultobj = Py_None;
1456 return resultobj;
1457 fail:
1458 return NULL;
1459}
1460
1461
c32bde28 1462static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1463 PyObject *resultobj;
1464 wxColour *arg1 = (wxColour *) 0 ;
1465 wxString *arg2 = 0 ;
ae8162c8 1466 bool temp2 = false ;
d55e5bfc
RD
1467 PyObject * obj0 = 0 ;
1468 PyObject * obj1 = 0 ;
1469 char *kwnames[] = {
1470 (char *) "self",(char *) "colourName", NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1476 {
1477 arg2 = wxString_in_helper(obj1);
1478 if (arg2 == NULL) SWIG_fail;
ae8162c8 1479 temp2 = true;
d55e5bfc
RD
1480 }
1481 {
1482 PyThreadState* __tstate = wxPyBeginAllowThreads();
1483 (arg1)->InitFromName((wxString const &)*arg2);
1484
1485 wxPyEndAllowThreads(__tstate);
1486 if (PyErr_Occurred()) SWIG_fail;
1487 }
1488 Py_INCREF(Py_None); resultobj = Py_None;
1489 {
1490 if (temp2)
1491 delete arg2;
1492 }
1493 return resultobj;
1494 fail:
1495 {
1496 if (temp2)
1497 delete arg2;
1498 }
1499 return NULL;
1500}
1501
1502
c32bde28 1503static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1504 PyObject *resultobj;
1505 wxColour *arg1 = (wxColour *) 0 ;
1506 long result;
1507 PyObject * obj0 = 0 ;
1508 char *kwnames[] = {
1509 (char *) "self", NULL
1510 };
1511
1512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1515 {
1516 PyThreadState* __tstate = wxPyBeginAllowThreads();
1517 result = (long)((wxColour const *)arg1)->GetPixel();
1518
1519 wxPyEndAllowThreads(__tstate);
1520 if (PyErr_Occurred()) SWIG_fail;
1521 }
c32bde28 1522 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
1523 return resultobj;
1524 fail:
1525 return NULL;
1526}
1527
1528
c32bde28 1529static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1530 PyObject *resultobj;
1531 wxColour *arg1 = (wxColour *) 0 ;
1532 wxColour *arg2 = 0 ;
1533 bool result;
1534 wxColour temp2 ;
1535 PyObject * obj0 = 0 ;
1536 PyObject * obj1 = 0 ;
1537 char *kwnames[] = {
1538 (char *) "self",(char *) "colour", NULL
1539 };
1540
1541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1544 {
1545 arg2 = &temp2;
1546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1547 }
1548 {
1549 PyThreadState* __tstate = wxPyBeginAllowThreads();
1550 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1551
1552 wxPyEndAllowThreads(__tstate);
1553 if (PyErr_Occurred()) SWIG_fail;
1554 }
1555 {
1556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1557 }
1558 return resultobj;
1559 fail:
1560 return NULL;
1561}
1562
1563
c32bde28 1564static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1565 PyObject *resultobj;
1566 wxColour *arg1 = (wxColour *) 0 ;
1567 wxColour *arg2 = 0 ;
1568 bool result;
1569 wxColour temp2 ;
1570 PyObject * obj0 = 0 ;
1571 PyObject * obj1 = 0 ;
1572 char *kwnames[] = {
1573 (char *) "self",(char *) "colour", NULL
1574 };
1575
1576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1579 {
1580 arg2 = &temp2;
1581 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1582 }
1583 {
1584 PyThreadState* __tstate = wxPyBeginAllowThreads();
1585 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1586
1587 wxPyEndAllowThreads(__tstate);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 }
1590 {
1591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1592 }
1593 return resultobj;
1594 fail:
1595 return NULL;
1596}
1597
1598
c32bde28 1599static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1600 PyObject *resultobj;
1601 wxColour *arg1 = (wxColour *) 0 ;
1602 PyObject *result;
1603 PyObject * obj0 = 0 ;
1604 char *kwnames[] = {
1605 (char *) "self", NULL
1606 };
1607
1608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1611 {
1612 PyThreadState* __tstate = wxPyBeginAllowThreads();
1613 result = (PyObject *)wxColour_Get(arg1);
1614
1615 wxPyEndAllowThreads(__tstate);
1616 if (PyErr_Occurred()) SWIG_fail;
1617 }
1618 resultobj = result;
1619 return resultobj;
1620 fail:
1621 return NULL;
1622}
1623
1624
c32bde28 1625static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1626 PyObject *resultobj;
1627 wxColour *arg1 = (wxColour *) 0 ;
1628 unsigned long result;
1629 PyObject * obj0 = 0 ;
1630 char *kwnames[] = {
1631 (char *) "self", NULL
1632 };
1633
1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1637 {
1638 PyThreadState* __tstate = wxPyBeginAllowThreads();
1639 result = (unsigned long)wxColour_GetRGB(arg1);
1640
1641 wxPyEndAllowThreads(__tstate);
1642 if (PyErr_Occurred()) SWIG_fail;
1643 }
c32bde28 1644 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
1645 return resultobj;
1646 fail:
1647 return NULL;
1648}
1649
1650
c32bde28 1651static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1652 PyObject *obj;
1653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1654 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1655 Py_INCREF(obj);
1656 return Py_BuildValue((char *)"");
1657}
c32bde28 1658static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1659 PyObject *resultobj;
1660 int arg1 ;
1661 unsigned char *arg2 = (unsigned char *) 0 ;
1662 unsigned char *arg3 = (unsigned char *) 0 ;
1663 unsigned char *arg4 = (unsigned char *) 0 ;
1664 wxPalette *result;
1665 PyObject * obj0 = 0 ;
1666 PyObject * obj1 = 0 ;
1667 PyObject * obj2 = 0 ;
1668 PyObject * obj3 = 0 ;
1669 char *kwnames[] = {
1670 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1671 };
1672
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c32bde28 1674 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1675 if (PyErr_Occurred()) SWIG_fail;
1676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1678 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1680 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1682 {
0439c23b 1683 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1686
1687 wxPyEndAllowThreads(__tstate);
110da5b0 1688 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1689 }
1690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1691 return resultobj;
1692 fail:
1693 return NULL;
1694}
1695
1696
c32bde28 1697static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1698 PyObject *resultobj;
1699 wxPalette *arg1 = (wxPalette *) 0 ;
1700 PyObject * obj0 = 0 ;
1701 char *kwnames[] = {
1702 (char *) "self", NULL
1703 };
1704
1705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1708 {
1709 PyThreadState* __tstate = wxPyBeginAllowThreads();
1710 delete arg1;
1711
1712 wxPyEndAllowThreads(__tstate);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 }
1715 Py_INCREF(Py_None); resultobj = Py_None;
1716 return resultobj;
1717 fail:
1718 return NULL;
1719}
1720
1721
c32bde28 1722static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1723 PyObject *resultobj;
1724 wxPalette *arg1 = (wxPalette *) 0 ;
1725 byte arg2 ;
1726 byte arg3 ;
1727 byte arg4 ;
1728 int result;
1729 PyObject * obj0 = 0 ;
1730 PyObject * obj1 = 0 ;
1731 PyObject * obj2 = 0 ;
1732 PyObject * obj3 = 0 ;
1733 char *kwnames[] = {
1734 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1735 };
1736
1737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1740 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 1741 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1742 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 1743 if (PyErr_Occurred()) SWIG_fail;
c32bde28 1744 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
1745 if (PyErr_Occurred()) SWIG_fail;
1746 {
1747 PyThreadState* __tstate = wxPyBeginAllowThreads();
1748 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1749
1750 wxPyEndAllowThreads(__tstate);
1751 if (PyErr_Occurred()) SWIG_fail;
1752 }
c32bde28 1753 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1754 return resultobj;
1755 fail:
1756 return NULL;
1757}
1758
1759
c32bde28 1760static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1761 PyObject *resultobj;
1762 wxPalette *arg1 = (wxPalette *) 0 ;
1763 int arg2 ;
1764 byte *arg3 = (byte *) 0 ;
1765 byte *arg4 = (byte *) 0 ;
1766 byte *arg5 = (byte *) 0 ;
1767 bool result;
1768 byte temp3 ;
c32bde28 1769 int res3 = 0 ;
d55e5bfc 1770 byte temp4 ;
c32bde28 1771 int res4 = 0 ;
d55e5bfc 1772 byte temp5 ;
c32bde28 1773 int res5 = 0 ;
d55e5bfc
RD
1774 PyObject * obj0 = 0 ;
1775 PyObject * obj1 = 0 ;
1776 char *kwnames[] = {
1777 (char *) "self",(char *) "pixel", NULL
1778 };
1779
c32bde28
RD
1780 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1781 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1782 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 1786 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
1787 if (PyErr_Occurred()) SWIG_fail;
1788 {
1789 PyThreadState* __tstate = wxPyBeginAllowThreads();
1790 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1791
1792 wxPyEndAllowThreads(__tstate);
1793 if (PyErr_Occurred()) SWIG_fail;
1794 }
1795 {
1796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1797 }
c32bde28
RD
1798 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1799 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1800 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1801 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1802 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1803 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
d55e5bfc
RD
1804 return resultobj;
1805 fail:
1806 return NULL;
1807}
1808
1809
c32bde28 1810static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1811 PyObject *resultobj;
1812 wxPalette *arg1 = (wxPalette *) 0 ;
1813 bool result;
1814 PyObject * obj0 = 0 ;
1815 char *kwnames[] = {
1816 (char *) "self", NULL
1817 };
1818
1819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1822 {
1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
1824 result = (bool)(arg1)->Ok();
1825
1826 wxPyEndAllowThreads(__tstate);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 {
1830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1831 }
1832 return resultobj;
1833 fail:
1834 return NULL;
1835}
1836
1837
c32bde28 1838static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1839 PyObject *obj;
1840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1841 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1842 Py_INCREF(obj);
1843 return Py_BuildValue((char *)"");
1844}
c32bde28 1845static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1846 PyObject *resultobj;
1847 wxColour *arg1 = 0 ;
1848 int arg2 = (int) 1 ;
1849 int arg3 = (int) wxSOLID ;
1850 wxPen *result;
1851 wxColour temp1 ;
1852 PyObject * obj0 = 0 ;
1853 PyObject * obj1 = 0 ;
1854 PyObject * obj2 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "colour",(char *) "width",(char *) "style", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1860 {
1861 arg1 = &temp1;
1862 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1863 }
1864 if (obj1) {
c32bde28 1865 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
1866 if (PyErr_Occurred()) SWIG_fail;
1867 }
1868 if (obj2) {
c32bde28 1869 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
1870 if (PyErr_Occurred()) SWIG_fail;
1871 }
1872 {
0439c23b 1873 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1874 PyThreadState* __tstate = wxPyBeginAllowThreads();
1875 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1876
1877 wxPyEndAllowThreads(__tstate);
110da5b0 1878 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1879 }
1880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1881 return resultobj;
1882 fail:
1883 return NULL;
1884}
1885
1886
c32bde28 1887static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1888 PyObject *resultobj;
1889 wxPen *arg1 = (wxPen *) 0 ;
1890 PyObject * obj0 = 0 ;
1891 char *kwnames[] = {
1892 (char *) "self", NULL
1893 };
1894
1895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 delete arg1;
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) SWIG_fail;
1904 }
1905 Py_INCREF(Py_None); resultobj = Py_None;
1906 return resultobj;
1907 fail:
1908 return NULL;
1909}
1910
1911
c32bde28 1912static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1913 PyObject *resultobj;
1914 wxPen *arg1 = (wxPen *) 0 ;
1915 int result;
1916 PyObject * obj0 = 0 ;
1917 char *kwnames[] = {
1918 (char *) "self", NULL
1919 };
1920
1921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 result = (int)(arg1)->GetCap();
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
c32bde28 1931 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1932 return resultobj;
1933 fail:
1934 return NULL;
1935}
1936
1937
c32bde28 1938static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1939 PyObject *resultobj;
1940 wxPen *arg1 = (wxPen *) 0 ;
1941 wxColour result;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "self", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 result = (arg1)->GetColour();
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 {
1958 wxColour * resultptr;
1959 resultptr = new wxColour((wxColour &) result);
1960 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1961 }
1962 return resultobj;
1963 fail:
1964 return NULL;
1965}
1966
1967
c32bde28 1968static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1969 PyObject *resultobj;
1970 wxPen *arg1 = (wxPen *) 0 ;
1971 int result;
1972 PyObject * obj0 = 0 ;
1973 char *kwnames[] = {
1974 (char *) "self", NULL
1975 };
1976
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 result = (int)(arg1)->GetJoin();
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
c32bde28 1987 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1988 return resultobj;
1989 fail:
1990 return NULL;
1991}
1992
1993
c32bde28 1994static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1995 PyObject *resultobj;
1996 wxPen *arg1 = (wxPen *) 0 ;
1997 int result;
1998 PyObject * obj0 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "self", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 result = (int)(arg1)->GetStyle();
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
c32bde28 2013 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2014 return resultobj;
2015 fail:
2016 return NULL;
2017}
2018
2019
c32bde28 2020static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2021 PyObject *resultobj;
2022 wxPen *arg1 = (wxPen *) 0 ;
2023 int result;
2024 PyObject * obj0 = 0 ;
2025 char *kwnames[] = {
2026 (char *) "self", NULL
2027 };
2028
2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2032 {
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 result = (int)(arg1)->GetWidth();
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
c32bde28 2039 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2040 return resultobj;
2041 fail:
2042 return NULL;
2043}
2044
2045
c32bde28 2046static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2047 PyObject *resultobj;
2048 wxPen *arg1 = (wxPen *) 0 ;
2049 bool result;
2050 PyObject * obj0 = 0 ;
2051 char *kwnames[] = {
2052 (char *) "self", NULL
2053 };
2054
2055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 result = (bool)(arg1)->Ok();
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 {
2066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2067 }
2068 return resultobj;
2069 fail:
2070 return NULL;
2071}
2072
2073
c32bde28 2074static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2075 PyObject *resultobj;
2076 wxPen *arg1 = (wxPen *) 0 ;
2077 int arg2 ;
2078 PyObject * obj0 = 0 ;
2079 PyObject * obj1 = 0 ;
2080 char *kwnames[] = {
2081 (char *) "self",(char *) "cap_style", NULL
2082 };
2083
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2087 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2088 if (PyErr_Occurred()) SWIG_fail;
2089 {
2090 PyThreadState* __tstate = wxPyBeginAllowThreads();
2091 (arg1)->SetCap(arg2);
2092
2093 wxPyEndAllowThreads(__tstate);
2094 if (PyErr_Occurred()) SWIG_fail;
2095 }
2096 Py_INCREF(Py_None); resultobj = Py_None;
2097 return resultobj;
2098 fail:
2099 return NULL;
2100}
2101
2102
c32bde28 2103static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2104 PyObject *resultobj;
2105 wxPen *arg1 = (wxPen *) 0 ;
2106 wxColour *arg2 = 0 ;
2107 wxColour temp2 ;
2108 PyObject * obj0 = 0 ;
2109 PyObject * obj1 = 0 ;
2110 char *kwnames[] = {
2111 (char *) "self",(char *) "colour", NULL
2112 };
2113
2114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2117 {
2118 arg2 = &temp2;
2119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2120 }
2121 {
2122 PyThreadState* __tstate = wxPyBeginAllowThreads();
2123 (arg1)->SetColour(*arg2);
2124
2125 wxPyEndAllowThreads(__tstate);
2126 if (PyErr_Occurred()) SWIG_fail;
2127 }
2128 Py_INCREF(Py_None); resultobj = Py_None;
2129 return resultobj;
2130 fail:
2131 return NULL;
2132}
2133
2134
c32bde28 2135static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2136 PyObject *resultobj;
2137 wxPen *arg1 = (wxPen *) 0 ;
2138 int arg2 ;
2139 PyObject * obj0 = 0 ;
2140 PyObject * obj1 = 0 ;
2141 char *kwnames[] = {
2142 (char *) "self",(char *) "join_style", NULL
2143 };
2144
2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2148 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2149 if (PyErr_Occurred()) SWIG_fail;
2150 {
2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
2152 (arg1)->SetJoin(arg2);
2153
2154 wxPyEndAllowThreads(__tstate);
2155 if (PyErr_Occurred()) SWIG_fail;
2156 }
2157 Py_INCREF(Py_None); resultobj = Py_None;
2158 return resultobj;
2159 fail:
2160 return NULL;
2161}
2162
2163
c32bde28 2164static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2165 PyObject *resultobj;
2166 wxPen *arg1 = (wxPen *) 0 ;
2167 int arg2 ;
2168 PyObject * obj0 = 0 ;
2169 PyObject * obj1 = 0 ;
2170 char *kwnames[] = {
2171 (char *) "self",(char *) "style", NULL
2172 };
2173
2174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2177 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2178 if (PyErr_Occurred()) SWIG_fail;
2179 {
2180 PyThreadState* __tstate = wxPyBeginAllowThreads();
2181 (arg1)->SetStyle(arg2);
2182
2183 wxPyEndAllowThreads(__tstate);
2184 if (PyErr_Occurred()) SWIG_fail;
2185 }
2186 Py_INCREF(Py_None); resultobj = Py_None;
2187 return resultobj;
2188 fail:
2189 return NULL;
2190}
2191
2192
c32bde28 2193static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2194 PyObject *resultobj;
2195 wxPen *arg1 = (wxPen *) 0 ;
2196 int arg2 ;
2197 PyObject * obj0 = 0 ;
2198 PyObject * obj1 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "self",(char *) "width", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2206 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2207 if (PyErr_Occurred()) SWIG_fail;
2208 {
2209 PyThreadState* __tstate = wxPyBeginAllowThreads();
2210 (arg1)->SetWidth(arg2);
2211
2212 wxPyEndAllowThreads(__tstate);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 }
2215 Py_INCREF(Py_None); resultobj = Py_None;
2216 return resultobj;
2217 fail:
2218 return NULL;
2219}
2220
2221
c32bde28 2222static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2223 PyObject *resultobj;
2224 wxPen *arg1 = (wxPen *) 0 ;
2225 int arg2 ;
2226 wxDash *arg3 = (wxDash *) 0 ;
2227 PyObject * obj0 = 0 ;
2228 PyObject * obj1 = 0 ;
2229 char *kwnames[] = {
2230 (char *) "self",(char *) "dashes", NULL
2231 };
2232
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2236 {
2237 arg2 = PyList_Size(obj1);
2238 arg3 = (wxDash*)byte_LIST_helper(obj1);
2239 if (arg3 == NULL) SWIG_fail;
2240 }
2241 {
2242 PyThreadState* __tstate = wxPyBeginAllowThreads();
2243 (arg1)->SetDashes(arg2,arg3);
2244
2245 wxPyEndAllowThreads(__tstate);
2246 if (PyErr_Occurred()) SWIG_fail;
2247 }
2248 Py_INCREF(Py_None); resultobj = Py_None;
2249 {
2250 if (arg3) delete [] arg3;
2251 }
2252 return resultobj;
2253 fail:
2254 {
2255 if (arg3) delete [] arg3;
2256 }
2257 return NULL;
2258}
2259
2260
c32bde28 2261static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2262 PyObject *resultobj;
2263 wxPen *arg1 = (wxPen *) 0 ;
2264 PyObject *result;
2265 PyObject * obj0 = 0 ;
2266 char *kwnames[] = {
2267 (char *) "self", NULL
2268 };
2269
2270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2273 {
2274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2275 result = (PyObject *)wxPen_GetDashes(arg1);
2276
2277 wxPyEndAllowThreads(__tstate);
2278 if (PyErr_Occurred()) SWIG_fail;
2279 }
2280 resultobj = result;
2281 return resultobj;
2282 fail:
2283 return NULL;
2284}
2285
2286
c32bde28 2287static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2288 PyObject *resultobj;
2289 wxPen *arg1 = (wxPen *) 0 ;
c24da6d6
RD
2290 PyObject *arg2 = (PyObject *) 0 ;
2291 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
2292 PyObject * obj0 = 0 ;
2293 PyObject * obj1 = 0 ;
c24da6d6 2294 PyObject * obj2 = 0 ;
d55e5bfc 2295 char *kwnames[] = {
c24da6d6 2296 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d55e5bfc
RD
2297 };
2298
c24da6d6 2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
2300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c24da6d6
RD
2302 arg2 = obj1;
2303 arg3 = obj2;
d55e5bfc
RD
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 2306 wxPen__SetDashes(arg1,arg2,arg3);
d55e5bfc
RD
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
c24da6d6 2311 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2312 return resultobj;
2313 fail:
2314 return NULL;
2315}
2316
2317
c32bde28 2318static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2319 PyObject *resultobj;
2320 wxPen *arg1 = (wxPen *) 0 ;
2321 int result;
2322 PyObject * obj0 = 0 ;
2323 char *kwnames[] = {
2324 (char *) "self", NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2330 {
2331 PyThreadState* __tstate = wxPyBeginAllowThreads();
2332 result = (int)((wxPen const *)arg1)->GetDashCount();
2333
2334 wxPyEndAllowThreads(__tstate);
2335 if (PyErr_Occurred()) SWIG_fail;
2336 }
c32bde28 2337 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2338 return resultobj;
2339 fail:
2340 return NULL;
2341}
2342
2343
c32bde28 2344static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2345 PyObject *resultobj;
2346 wxPen *arg1 = (wxPen *) 0 ;
2347 wxBitmap *result;
2348 PyObject * obj0 = 0 ;
2349 char *kwnames[] = {
2350 (char *) "self", NULL
2351 };
2352
2353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 result = (wxBitmap *)(arg1)->GetStipple();
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) SWIG_fail;
2362 }
2363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2364 return resultobj;
2365 fail:
2366 return NULL;
2367}
2368
2369
c32bde28 2370static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2371 PyObject *resultobj;
2372 wxPen *arg1 = (wxPen *) 0 ;
2373 wxBitmap *arg2 = 0 ;
2374 PyObject * obj0 = 0 ;
2375 PyObject * obj1 = 0 ;
2376 char *kwnames[] = {
2377 (char *) "self",(char *) "stipple", NULL
2378 };
2379
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2384 SWIG_POINTER_EXCEPTION | 0)) == -1)
2385 SWIG_fail;
2386 if (arg2 == NULL) {
2387 PyErr_SetString(PyExc_TypeError,"null reference");
2388 SWIG_fail;
2389 }
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 (arg1)->SetStipple(*arg2);
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 Py_INCREF(Py_None); resultobj = Py_None;
2398 return resultobj;
2399 fail:
2400 return NULL;
2401}
2402
2403
c32bde28 2404static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2405 PyObject *resultobj;
c24da6d6
RD
2406 wxPen *arg1 = (wxPen *) 0 ;
2407 wxPen *arg2 = (wxPen *) 0 ;
2408 bool result;
d55e5bfc
RD
2409 PyObject * obj0 = 0 ;
2410 PyObject * obj1 = 0 ;
d55e5bfc 2411 char *kwnames[] = {
c24da6d6 2412 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2413 };
2414
c24da6d6
RD
2415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2420 {
2421 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 2422 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2423
2424 wxPyEndAllowThreads(__tstate);
2425 if (PyErr_Occurred()) SWIG_fail;
2426 }
d55e5bfc 2427 {
c24da6d6 2428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc 2429 }
d55e5bfc
RD
2430 return resultobj;
2431 fail:
2432 return NULL;
2433}
2434
2435
c32bde28 2436static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2437 PyObject *resultobj;
c24da6d6
RD
2438 wxPen *arg1 = (wxPen *) 0 ;
2439 wxPen *arg2 = (wxPen *) 0 ;
2440 bool result;
d55e5bfc
RD
2441 PyObject * obj0 = 0 ;
2442 PyObject * obj1 = 0 ;
2443 char *kwnames[] = {
c24da6d6 2444 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2445 };
2446
c24da6d6
RD
2447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
d55e5bfc 2451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2452 {
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 2454 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) SWIG_fail;
2458 }
d55e5bfc 2459 {
c24da6d6 2460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
2461 }
2462 return resultobj;
2463 fail:
d55e5bfc
RD
2464 return NULL;
2465}
2466
2467
c32bde28 2468static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2469 PyObject *obj;
2470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
c24da6d6 2471 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d55e5bfc
RD
2472 Py_INCREF(obj);
2473 return Py_BuildValue((char *)"");
2474}
c32bde28 2475static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2476 PyObject *resultobj;
2477 wxColour *arg1 = 0 ;
2478 int arg2 = (int) wxSOLID ;
2479 wxBrush *result;
2480 wxColour temp1 ;
2481 PyObject * obj0 = 0 ;
2482 PyObject * obj1 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "colour",(char *) "style", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2488 {
2489 arg1 = &temp1;
2490 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2491 }
2492 if (obj1) {
c32bde28 2493 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2494 if (PyErr_Occurred()) SWIG_fail;
2495 }
2496 {
0439c23b 2497 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2498 PyThreadState* __tstate = wxPyBeginAllowThreads();
2499 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2500
2501 wxPyEndAllowThreads(__tstate);
110da5b0 2502 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2503 }
2504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2505 return resultobj;
2506 fail:
2507 return NULL;
2508}
2509
2510
c32bde28 2511static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2512 PyObject *resultobj;
2513 wxBrush *arg1 = (wxBrush *) 0 ;
2514 PyObject * obj0 = 0 ;
2515 char *kwnames[] = {
2516 (char *) "self", NULL
2517 };
2518
2519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 delete arg1;
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 return resultobj;
2531 fail:
2532 return NULL;
2533}
2534
2535
c32bde28 2536static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2537 PyObject *resultobj;
2538 wxBrush *arg1 = (wxBrush *) 0 ;
2539 wxColour *arg2 = 0 ;
2540 wxColour temp2 ;
2541 PyObject * obj0 = 0 ;
2542 PyObject * obj1 = 0 ;
2543 char *kwnames[] = {
2544 (char *) "self",(char *) "col", NULL
2545 };
2546
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2550 {
2551 arg2 = &temp2;
2552 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2553 }
2554 {
2555 PyThreadState* __tstate = wxPyBeginAllowThreads();
2556 (arg1)->SetColour((wxColour const &)*arg2);
2557
2558 wxPyEndAllowThreads(__tstate);
2559 if (PyErr_Occurred()) SWIG_fail;
2560 }
2561 Py_INCREF(Py_None); resultobj = Py_None;
2562 return resultobj;
2563 fail:
2564 return NULL;
2565}
2566
2567
c32bde28 2568static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2569 PyObject *resultobj;
2570 wxBrush *arg1 = (wxBrush *) 0 ;
2571 int arg2 ;
2572 PyObject * obj0 = 0 ;
2573 PyObject * obj1 = 0 ;
2574 char *kwnames[] = {
2575 (char *) "self",(char *) "style", NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2581 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2582 if (PyErr_Occurred()) SWIG_fail;
2583 {
2584 PyThreadState* __tstate = wxPyBeginAllowThreads();
2585 (arg1)->SetStyle(arg2);
2586
2587 wxPyEndAllowThreads(__tstate);
2588 if (PyErr_Occurred()) SWIG_fail;
2589 }
2590 Py_INCREF(Py_None); resultobj = Py_None;
2591 return resultobj;
2592 fail:
2593 return NULL;
2594}
2595
2596
c32bde28 2597static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2598 PyObject *resultobj;
2599 wxBrush *arg1 = (wxBrush *) 0 ;
2600 wxBitmap *arg2 = 0 ;
2601 PyObject * obj0 = 0 ;
2602 PyObject * obj1 = 0 ;
2603 char *kwnames[] = {
2604 (char *) "self",(char *) "stipple", NULL
2605 };
2606
2607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2611 SWIG_POINTER_EXCEPTION | 0)) == -1)
2612 SWIG_fail;
2613 if (arg2 == NULL) {
2614 PyErr_SetString(PyExc_TypeError,"null reference");
2615 SWIG_fail;
2616 }
2617 {
2618 PyThreadState* __tstate = wxPyBeginAllowThreads();
2619 (arg1)->SetStipple((wxBitmap const &)*arg2);
2620
2621 wxPyEndAllowThreads(__tstate);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 }
2624 Py_INCREF(Py_None); resultobj = Py_None;
2625 return resultobj;
2626 fail:
2627 return NULL;
2628}
2629
2630
c32bde28 2631static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2632 PyObject *resultobj;
2633 wxBrush *arg1 = (wxBrush *) 0 ;
2634 wxColour result;
2635 PyObject * obj0 = 0 ;
2636 char *kwnames[] = {
2637 (char *) "self", NULL
2638 };
2639
2640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2643 {
2644 PyThreadState* __tstate = wxPyBeginAllowThreads();
2645 result = ((wxBrush const *)arg1)->GetColour();
2646
2647 wxPyEndAllowThreads(__tstate);
2648 if (PyErr_Occurred()) SWIG_fail;
2649 }
2650 {
2651 wxColour * resultptr;
2652 resultptr = new wxColour((wxColour &) result);
2653 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2654 }
2655 return resultobj;
2656 fail:
2657 return NULL;
2658}
2659
2660
c32bde28 2661static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2662 PyObject *resultobj;
2663 wxBrush *arg1 = (wxBrush *) 0 ;
2664 int result;
2665 PyObject * obj0 = 0 ;
2666 char *kwnames[] = {
2667 (char *) "self", NULL
2668 };
2669
2670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2673 {
2674 PyThreadState* __tstate = wxPyBeginAllowThreads();
2675 result = (int)((wxBrush const *)arg1)->GetStyle();
2676
2677 wxPyEndAllowThreads(__tstate);
2678 if (PyErr_Occurred()) SWIG_fail;
2679 }
c32bde28 2680 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2681 return resultobj;
2682 fail:
2683 return NULL;
2684}
2685
2686
c32bde28 2687static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2688 PyObject *resultobj;
2689 wxBrush *arg1 = (wxBrush *) 0 ;
2690 wxBitmap *result;
2691 PyObject * obj0 = 0 ;
2692 char *kwnames[] = {
2693 (char *) "self", NULL
2694 };
2695
2696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2699 {
2700 PyThreadState* __tstate = wxPyBeginAllowThreads();
2701 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2702
2703 wxPyEndAllowThreads(__tstate);
2704 if (PyErr_Occurred()) SWIG_fail;
2705 }
2706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2707 return resultobj;
2708 fail:
2709 return NULL;
2710}
2711
2712
c32bde28 2713static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2714 PyObject *resultobj;
2715 wxBrush *arg1 = (wxBrush *) 0 ;
2716 bool result;
2717 PyObject * obj0 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "self", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2725 {
2726 PyThreadState* __tstate = wxPyBeginAllowThreads();
2727 result = (bool)(arg1)->Ok();
2728
2729 wxPyEndAllowThreads(__tstate);
2730 if (PyErr_Occurred()) SWIG_fail;
2731 }
2732 {
2733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2734 }
2735 return resultobj;
2736 fail:
2737 return NULL;
2738}
2739
2740
c32bde28 2741static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2742 PyObject *obj;
2743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2744 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2745 Py_INCREF(obj);
2746 return Py_BuildValue((char *)"");
2747}
c32bde28 2748static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2749 PyObject *resultobj;
2750 wxString *arg1 = 0 ;
2751 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2752 wxBitmap *result;
ae8162c8 2753 bool temp1 = false ;
d55e5bfc
RD
2754 PyObject * obj0 = 0 ;
2755 PyObject * obj1 = 0 ;
2756 char *kwnames[] = {
2757 (char *) "name",(char *) "type", NULL
2758 };
2759
2760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2761 {
2762 arg1 = wxString_in_helper(obj0);
2763 if (arg1 == NULL) SWIG_fail;
ae8162c8 2764 temp1 = true;
d55e5bfc
RD
2765 }
2766 if (obj1) {
c32bde28 2767 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2768 if (PyErr_Occurred()) SWIG_fail;
2769 }
2770 {
0439c23b 2771 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2772 PyThreadState* __tstate = wxPyBeginAllowThreads();
2773 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2774
2775 wxPyEndAllowThreads(__tstate);
110da5b0 2776 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2777 }
2778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2779 {
2780 if (temp1)
2781 delete arg1;
2782 }
2783 return resultobj;
2784 fail:
2785 {
2786 if (temp1)
2787 delete arg1;
2788 }
2789 return NULL;
2790}
2791
2792
c32bde28 2793static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2794 PyObject *resultobj;
2795 wxBitmap *arg1 = (wxBitmap *) 0 ;
2796 PyObject * obj0 = 0 ;
2797 char *kwnames[] = {
2798 (char *) "self", NULL
2799 };
2800
2801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2804 {
2805 PyThreadState* __tstate = wxPyBeginAllowThreads();
2806 delete arg1;
2807
2808 wxPyEndAllowThreads(__tstate);
2809 if (PyErr_Occurred()) SWIG_fail;
2810 }
2811 Py_INCREF(Py_None); resultobj = Py_None;
2812 return resultobj;
2813 fail:
2814 return NULL;
2815}
2816
2817
c32bde28 2818static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
2819 PyObject *resultobj;
2820 int arg1 ;
2821 int arg2 ;
2822 int arg3 = (int) -1 ;
2823 wxBitmap *result;
2824 PyObject * obj0 = 0 ;
2825 PyObject * obj1 = 0 ;
2826 PyObject * obj2 = 0 ;
2827 char *kwnames[] = {
2828 (char *) "width",(char *) "height",(char *) "depth", NULL
2829 };
2830
2831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
c32bde28 2832 arg1 = (int)SWIG_As_int(obj0);
c24da6d6 2833 if (PyErr_Occurred()) SWIG_fail;
c32bde28 2834 arg2 = (int)SWIG_As_int(obj1);
c24da6d6
RD
2835 if (PyErr_Occurred()) SWIG_fail;
2836 if (obj2) {
c32bde28 2837 arg3 = (int)SWIG_As_int(obj2);
c24da6d6
RD
2838 if (PyErr_Occurred()) SWIG_fail;
2839 }
2840 {
0439c23b 2841 if (!wxPyCheckForApp()) SWIG_fail;
c24da6d6
RD
2842 PyThreadState* __tstate = wxPyBeginAllowThreads();
2843 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2844
2845 wxPyEndAllowThreads(__tstate);
110da5b0 2846 if (PyErr_Occurred()) SWIG_fail;
c24da6d6
RD
2847 }
2848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2849 return resultobj;
2850 fail:
2851 return NULL;
2852}
2853
2854
c32bde28 2855static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2856 PyObject *resultobj;
2857 wxIcon *arg1 = 0 ;
2858 wxBitmap *result;
2859 PyObject * obj0 = 0 ;
2860 char *kwnames[] = {
2861 (char *) "icon", NULL
2862 };
2863
2864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2866 SWIG_POINTER_EXCEPTION | 0)) == -1)
2867 SWIG_fail;
2868 if (arg1 == NULL) {
2869 PyErr_SetString(PyExc_TypeError,"null reference");
2870 SWIG_fail;
2871 }
2872 {
0439c23b 2873 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2874 PyThreadState* __tstate = wxPyBeginAllowThreads();
2875 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2876
2877 wxPyEndAllowThreads(__tstate);
110da5b0 2878 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2879 }
2880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2881 return resultobj;
2882 fail:
2883 return NULL;
2884}
2885
2886
c32bde28 2887static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2888 PyObject *resultobj;
2889 wxImage *arg1 = 0 ;
2890 int arg2 = (int) -1 ;
2891 wxBitmap *result;
2892 PyObject * obj0 = 0 ;
2893 PyObject * obj1 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "image",(char *) "depth", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2900 SWIG_POINTER_EXCEPTION | 0)) == -1)
2901 SWIG_fail;
2902 if (arg1 == NULL) {
2903 PyErr_SetString(PyExc_TypeError,"null reference");
2904 SWIG_fail;
2905 }
2906 if (obj1) {
c32bde28 2907 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2908 if (PyErr_Occurred()) SWIG_fail;
2909 }
2910 {
0439c23b 2911 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2912 PyThreadState* __tstate = wxPyBeginAllowThreads();
2913 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2914
2915 wxPyEndAllowThreads(__tstate);
110da5b0 2916 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2917 }
2918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2919 return resultobj;
2920 fail:
2921 return NULL;
2922}
2923
2924
c32bde28 2925static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2926 PyObject *resultobj;
2927 PyObject *arg1 = (PyObject *) 0 ;
2928 wxBitmap *result;
2929 PyObject * obj0 = 0 ;
2930 char *kwnames[] = {
2931 (char *) "listOfStrings", NULL
2932 };
2933
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2935 arg1 = obj0;
2936 {
0439c23b 2937 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (wxBitmap *)new_wxBitmap(arg1);
2940
2941 wxPyEndAllowThreads(__tstate);
110da5b0 2942 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2943 }
2944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2945 return resultobj;
2946 fail:
2947 return NULL;
2948}
2949
2950
c32bde28 2951static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2952 PyObject *resultobj;
2953 PyObject *arg1 = (PyObject *) 0 ;
2954 int arg2 ;
2955 int arg3 ;
2956 int arg4 = (int) 1 ;
2957 wxBitmap *result;
2958 PyObject * obj0 = 0 ;
2959 PyObject * obj1 = 0 ;
2960 PyObject * obj2 = 0 ;
2961 PyObject * obj3 = 0 ;
2962 char *kwnames[] = {
2963 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2964 };
2965
2966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2967 arg1 = obj0;
c32bde28 2968 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 2969 if (PyErr_Occurred()) SWIG_fail;
c32bde28 2970 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
2971 if (PyErr_Occurred()) SWIG_fail;
2972 if (obj3) {
c32bde28 2973 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
2974 if (PyErr_Occurred()) SWIG_fail;
2975 }
2976 {
0439c23b 2977 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2978 PyThreadState* __tstate = wxPyBeginAllowThreads();
2979 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2980
2981 wxPyEndAllowThreads(__tstate);
110da5b0 2982 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2983 }
2984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2985 return resultobj;
2986 fail:
2987 return NULL;
2988}
2989
2990
c32bde28 2991static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2992 PyObject *resultobj;
c24da6d6
RD
2993 wxBitmap *arg1 = (wxBitmap *) 0 ;
2994 wxPalette *arg2 = 0 ;
d55e5bfc
RD
2995 PyObject * obj0 = 0 ;
2996 PyObject * obj1 = 0 ;
c24da6d6
RD
2997 char *kwnames[] = {
2998 (char *) "self",(char *) "palette", NULL
2999 };
d55e5bfc 3000
c24da6d6
RD
3001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
3002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
3005 SWIG_POINTER_EXCEPTION | 0)) == -1)
3006 SWIG_fail;
3007 if (arg2 == NULL) {
3008 PyErr_SetString(PyExc_TypeError,"null reference");
3009 SWIG_fail;
d55e5bfc
RD
3010 }
3011 {
3012 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 3013 (arg1)->SetPalette(*arg2);
d55e5bfc
RD
3014
3015 wxPyEndAllowThreads(__tstate);
3016 if (PyErr_Occurred()) SWIG_fail;
3017 }
c24da6d6 3018 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3019 return resultobj;
3020 fail:
3021 return NULL;
3022}
3023
3024
c32bde28 3025static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 3026 PyObject *resultobj;
c24da6d6
RD
3027 wxBitmap *arg1 = (wxBitmap *) 0 ;
3028 long result;
d55e5bfc 3029 PyObject * obj0 = 0 ;
c24da6d6
RD
3030 char *kwnames[] = {
3031 (char *) "self", NULL
3032 };
d55e5bfc 3033
c24da6d6
RD
3034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
3035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc 3037 {
c24da6d6
RD
3038 PyThreadState* __tstate = wxPyBeginAllowThreads();
3039 result = (long)(arg1)->GetHandle();
3040
3041 wxPyEndAllowThreads(__tstate);
d55e5bfc
RD
3042 if (PyErr_Occurred()) SWIG_fail;
3043 }
c32bde28 3044 resultobj = SWIG_From_long((long)result);
c24da6d6
RD
3045 return resultobj;
3046 fail:
3047 return NULL;
3048}
3049
3050
c32bde28 3051static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
3052 PyObject *resultobj;
3053 wxBitmap *arg1 = (wxBitmap *) 0 ;
3054 long arg2 ;
3055 PyObject * obj0 = 0 ;
3056 PyObject * obj1 = 0 ;
3057 char *kwnames[] = {
3058 (char *) "self",(char *) "handle", NULL
3059 };
3060
3061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3064 arg2 = (long)SWIG_As_long(obj1);
c24da6d6 3065 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3066 {
3067 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 3068 wxBitmap_SetHandle(arg1,arg2);
d55e5bfc
RD
3069
3070 wxPyEndAllowThreads(__tstate);
3071 if (PyErr_Occurred()) SWIG_fail;
3072 }
c24da6d6 3073 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
3074 return resultobj;
3075 fail:
3076 return NULL;
3077}
3078
3079
c32bde28 3080static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3081 PyObject *resultobj;
3082 wxBitmap *arg1 = (wxBitmap *) 0 ;
3083 bool result;
3084 PyObject * obj0 = 0 ;
3085 char *kwnames[] = {
3086 (char *) "self", NULL
3087 };
3088
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3092 {
3093 PyThreadState* __tstate = wxPyBeginAllowThreads();
3094 result = (bool)(arg1)->Ok();
3095
3096 wxPyEndAllowThreads(__tstate);
3097 if (PyErr_Occurred()) SWIG_fail;
3098 }
3099 {
3100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3101 }
3102 return resultobj;
3103 fail:
3104 return NULL;
3105}
3106
3107
c32bde28 3108static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3109 PyObject *resultobj;
3110 wxBitmap *arg1 = (wxBitmap *) 0 ;
3111 int result;
3112 PyObject * obj0 = 0 ;
3113 char *kwnames[] = {
3114 (char *) "self", NULL
3115 };
3116
3117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3120 {
3121 PyThreadState* __tstate = wxPyBeginAllowThreads();
3122 result = (int)(arg1)->GetWidth();
3123
3124 wxPyEndAllowThreads(__tstate);
3125 if (PyErr_Occurred()) SWIG_fail;
3126 }
c32bde28 3127 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3128 return resultobj;
3129 fail:
3130 return NULL;
3131}
3132
3133
c32bde28 3134static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3135 PyObject *resultobj;
3136 wxBitmap *arg1 = (wxBitmap *) 0 ;
3137 int result;
3138 PyObject * obj0 = 0 ;
3139 char *kwnames[] = {
3140 (char *) "self", NULL
3141 };
3142
3143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
3148 result = (int)(arg1)->GetHeight();
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) SWIG_fail;
3152 }
c32bde28 3153 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3154 return resultobj;
3155 fail:
3156 return NULL;
3157}
3158
3159
c32bde28 3160static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3161 PyObject *resultobj;
3162 wxBitmap *arg1 = (wxBitmap *) 0 ;
3163 int result;
3164 PyObject * obj0 = 0 ;
3165 char *kwnames[] = {
3166 (char *) "self", NULL
3167 };
3168
3169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3172 {
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 result = (int)(arg1)->GetDepth();
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
c32bde28 3179 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3180 return resultobj;
3181 fail:
3182 return NULL;
3183}
3184
3185
c32bde28 3186static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3187 PyObject *resultobj;
3188 wxBitmap *arg1 = (wxBitmap *) 0 ;
3189 wxSize result;
3190 PyObject * obj0 = 0 ;
3191 char *kwnames[] = {
3192 (char *) "self", NULL
3193 };
3194
3195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3198 {
3199 PyThreadState* __tstate = wxPyBeginAllowThreads();
3200 result = wxBitmap_GetSize(arg1);
3201
3202 wxPyEndAllowThreads(__tstate);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
3205 {
3206 wxSize * resultptr;
3207 resultptr = new wxSize((wxSize &) result);
3208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3209 }
3210 return resultobj;
3211 fail:
3212 return NULL;
3213}
3214
3215
c32bde28 3216static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3217 PyObject *resultobj;
3218 wxBitmap *arg1 = (wxBitmap *) 0 ;
3219 SwigValueWrapper< wxImage > result;
3220 PyObject * obj0 = 0 ;
3221 char *kwnames[] = {
3222 (char *) "self", NULL
3223 };
3224
3225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 result = ((wxBitmap const *)arg1)->ConvertToImage();
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 {
3236 wxImage * resultptr;
3237 resultptr = new wxImage((wxImage &) result);
3238 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3239 }
3240 return resultobj;
3241 fail:
3242 return NULL;
3243}
3244
3245
c32bde28 3246static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3247 PyObject *resultobj;
3248 wxBitmap *arg1 = (wxBitmap *) 0 ;
3249 wxMask *result;
3250 PyObject * obj0 = 0 ;
3251 char *kwnames[] = {
3252 (char *) "self", NULL
3253 };
3254
3255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3258 {
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3266 return resultobj;
3267 fail:
3268 return NULL;
3269}
3270
3271
c32bde28 3272static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3273 PyObject *resultobj;
3274 wxBitmap *arg1 = (wxBitmap *) 0 ;
3275 wxMask *arg2 = (wxMask *) 0 ;
3276 PyObject * obj0 = 0 ;
3277 PyObject * obj1 = 0 ;
3278 char *kwnames[] = {
3279 (char *) "self",(char *) "mask", NULL
3280 };
3281
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3287 {
3288 PyThreadState* __tstate = wxPyBeginAllowThreads();
3289 (arg1)->SetMask(arg2);
3290
3291 wxPyEndAllowThreads(__tstate);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 }
3294 Py_INCREF(Py_None); resultobj = Py_None;
3295 return resultobj;
3296 fail:
3297 return NULL;
3298}
3299
3300
c32bde28 3301static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3302 PyObject *resultobj;
3303 wxBitmap *arg1 = (wxBitmap *) 0 ;
3304 wxColour *arg2 = 0 ;
3305 wxColour temp2 ;
3306 PyObject * obj0 = 0 ;
3307 PyObject * obj1 = 0 ;
3308 char *kwnames[] = {
3309 (char *) "self",(char *) "colour", NULL
3310 };
3311
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3315 {
3316 arg2 = &temp2;
3317 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3318 }
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3322
3323 wxPyEndAllowThreads(__tstate);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 }
3326 Py_INCREF(Py_None); resultobj = Py_None;
3327 return resultobj;
3328 fail:
3329 return NULL;
3330}
3331
3332
c32bde28 3333static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3334 PyObject *resultobj;
3335 wxBitmap *arg1 = (wxBitmap *) 0 ;
3336 wxRect *arg2 = 0 ;
3337 SwigValueWrapper< wxBitmap > result;
3338 wxRect temp2 ;
3339 PyObject * obj0 = 0 ;
3340 PyObject * obj1 = 0 ;
3341 char *kwnames[] = {
3342 (char *) "self",(char *) "rect", NULL
3343 };
3344
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3348 {
3349 arg2 = &temp2;
3350 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3351 }
3352 {
3353 PyThreadState* __tstate = wxPyBeginAllowThreads();
3354 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3355
3356 wxPyEndAllowThreads(__tstate);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 }
3359 {
3360 wxBitmap * resultptr;
3361 resultptr = new wxBitmap((wxBitmap &) result);
3362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3363 }
3364 return resultobj;
3365 fail:
3366 return NULL;
3367}
3368
3369
c32bde28 3370static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3371 PyObject *resultobj;
3372 wxBitmap *arg1 = (wxBitmap *) 0 ;
3373 wxString *arg2 = 0 ;
3374 int arg3 ;
c24da6d6 3375 wxPalette *arg4 = (wxPalette *) NULL ;
d55e5bfc 3376 bool result;
ae8162c8 3377 bool temp2 = false ;
d55e5bfc
RD
3378 PyObject * obj0 = 0 ;
3379 PyObject * obj1 = 0 ;
3380 PyObject * obj2 = 0 ;
3381 PyObject * obj3 = 0 ;
3382 char *kwnames[] = {
3383 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3384 };
3385
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3389 {
3390 arg2 = wxString_in_helper(obj1);
3391 if (arg2 == NULL) SWIG_fail;
ae8162c8 3392 temp2 = true;
d55e5bfc 3393 }
c32bde28 3394 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3395 if (PyErr_Occurred()) SWIG_fail;
3396 if (obj3) {
3397 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3399 }
3400 {
3401 PyThreadState* __tstate = wxPyBeginAllowThreads();
3402 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3403
3404 wxPyEndAllowThreads(__tstate);
3405 if (PyErr_Occurred()) SWIG_fail;
3406 }
3407 {
3408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3409 }
3410 {
3411 if (temp2)
3412 delete arg2;
3413 }
3414 return resultobj;
3415 fail:
3416 {
3417 if (temp2)
3418 delete arg2;
3419 }
3420 return NULL;
3421}
3422
3423
c32bde28 3424static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3425 PyObject *resultobj;
3426 wxBitmap *arg1 = (wxBitmap *) 0 ;
3427 wxString *arg2 = 0 ;
3428 int arg3 ;
3429 bool result;
ae8162c8 3430 bool temp2 = false ;
d55e5bfc
RD
3431 PyObject * obj0 = 0 ;
3432 PyObject * obj1 = 0 ;
3433 PyObject * obj2 = 0 ;
3434 char *kwnames[] = {
3435 (char *) "self",(char *) "name",(char *) "type", NULL
3436 };
3437
3438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3441 {
3442 arg2 = wxString_in_helper(obj1);
3443 if (arg2 == NULL) SWIG_fail;
ae8162c8 3444 temp2 = true;
d55e5bfc 3445 }
c32bde28 3446 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3447 if (PyErr_Occurred()) SWIG_fail;
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 {
3456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3457 }
3458 {
3459 if (temp2)
3460 delete arg2;
3461 }
3462 return resultobj;
3463 fail:
3464 {
3465 if (temp2)
3466 delete arg2;
3467 }
3468 return NULL;
3469}
3470
3471
c32bde28 3472static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3473 PyObject *resultobj;
3474 wxBitmap *arg1 = (wxBitmap *) 0 ;
3475 wxIcon *arg2 = 0 ;
3476 bool result;
3477 PyObject * obj0 = 0 ;
3478 PyObject * obj1 = 0 ;
3479 char *kwnames[] = {
3480 (char *) "self",(char *) "icon", NULL
3481 };
3482
3483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3487 SWIG_POINTER_EXCEPTION | 0)) == -1)
3488 SWIG_fail;
3489 if (arg2 == NULL) {
3490 PyErr_SetString(PyExc_TypeError,"null reference");
3491 SWIG_fail;
3492 }
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 {
3501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3502 }
3503 return resultobj;
3504 fail:
3505 return NULL;
3506}
3507
3508
c32bde28 3509static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3510 PyObject *resultobj;
3511 wxBitmap *arg1 = (wxBitmap *) 0 ;
3512 int arg2 ;
3513 PyObject * obj0 = 0 ;
3514 PyObject * obj1 = 0 ;
3515 char *kwnames[] = {
3516 (char *) "self",(char *) "height", NULL
3517 };
3518
3519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3522 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3523 if (PyErr_Occurred()) SWIG_fail;
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 (arg1)->SetHeight(arg2);
3527
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 Py_INCREF(Py_None); resultobj = Py_None;
3532 return resultobj;
3533 fail:
3534 return NULL;
3535}
3536
3537
c32bde28 3538static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3539 PyObject *resultobj;
3540 wxBitmap *arg1 = (wxBitmap *) 0 ;
3541 int arg2 ;
3542 PyObject * obj0 = 0 ;
3543 PyObject * obj1 = 0 ;
3544 char *kwnames[] = {
3545 (char *) "self",(char *) "width", NULL
3546 };
3547
3548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3551 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3552 if (PyErr_Occurred()) SWIG_fail;
3553 {
3554 PyThreadState* __tstate = wxPyBeginAllowThreads();
3555 (arg1)->SetWidth(arg2);
3556
3557 wxPyEndAllowThreads(__tstate);
3558 if (PyErr_Occurred()) SWIG_fail;
3559 }
3560 Py_INCREF(Py_None); resultobj = Py_None;
3561 return resultobj;
3562 fail:
3563 return NULL;
3564}
3565
3566
c32bde28 3567static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3568 PyObject *resultobj;
3569 wxBitmap *arg1 = (wxBitmap *) 0 ;
3570 int arg2 ;
3571 PyObject * obj0 = 0 ;
3572 PyObject * obj1 = 0 ;
3573 char *kwnames[] = {
3574 (char *) "self",(char *) "depth", NULL
3575 };
3576
3577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3580 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3581 if (PyErr_Occurred()) SWIG_fail;
3582 {
3583 PyThreadState* __tstate = wxPyBeginAllowThreads();
3584 (arg1)->SetDepth(arg2);
3585
3586 wxPyEndAllowThreads(__tstate);
3587 if (PyErr_Occurred()) SWIG_fail;
3588 }
3589 Py_INCREF(Py_None); resultobj = Py_None;
3590 return resultobj;
3591 fail:
3592 return NULL;
3593}
3594
3595
c32bde28 3596static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3597 PyObject *resultobj;
3598 wxBitmap *arg1 = (wxBitmap *) 0 ;
3599 wxSize *arg2 = 0 ;
3600 wxSize temp2 ;
3601 PyObject * obj0 = 0 ;
3602 PyObject * obj1 = 0 ;
3603 char *kwnames[] = {
3604 (char *) "self",(char *) "size", NULL
3605 };
3606
3607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3610 {
3611 arg2 = &temp2;
3612 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3613 }
3614 {
3615 PyThreadState* __tstate = wxPyBeginAllowThreads();
3616 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3617
3618 wxPyEndAllowThreads(__tstate);
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 Py_INCREF(Py_None); resultobj = Py_None;
3622 return resultobj;
3623 fail:
3624 return NULL;
3625}
3626
3627
c32bde28 3628static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3629 PyObject *resultobj;
3630 wxBitmap *arg1 = (wxBitmap *) 0 ;
3631 wxCursor *arg2 = 0 ;
3632 bool result;
3633 PyObject * obj0 = 0 ;
3634 PyObject * obj1 = 0 ;
3635 char *kwnames[] = {
3636 (char *) "self",(char *) "cursor", NULL
3637 };
3638
3639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3643 SWIG_POINTER_EXCEPTION | 0)) == -1)
3644 SWIG_fail;
3645 if (arg2 == NULL) {
3646 PyErr_SetString(PyExc_TypeError,"null reference");
3647 SWIG_fail;
3648 }
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3652
3653 wxPyEndAllowThreads(__tstate);
3654 if (PyErr_Occurred()) SWIG_fail;
3655 }
3656 {
3657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3658 }
3659 return resultobj;
3660 fail:
3661 return NULL;
3662}
3663
3664
c32bde28 3665static PyObject *_wrap_Bitmap_GetQuality(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3666 PyObject *resultobj;
3667 wxBitmap *arg1 = (wxBitmap *) 0 ;
3668 int result;
3669 PyObject * obj0 = 0 ;
3670 char *kwnames[] = {
3671 (char *) "self", NULL
3672 };
3673
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 result = (int)(arg1)->GetQuality();
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
c32bde28 3684 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3685 return resultobj;
3686 fail:
3687 return NULL;
3688}
3689
3690
c32bde28 3691static PyObject *_wrap_Bitmap_SetQuality(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3692 PyObject *resultobj;
3693 wxBitmap *arg1 = (wxBitmap *) 0 ;
3694 int arg2 ;
3695 PyObject * obj0 = 0 ;
3696 PyObject * obj1 = 0 ;
3697 char *kwnames[] = {
3698 (char *) "self",(char *) "q", NULL
3699 };
3700
3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3704 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3705 if (PyErr_Occurred()) SWIG_fail;
3706 {
3707 PyThreadState* __tstate = wxPyBeginAllowThreads();
3708 (arg1)->SetQuality(arg2);
3709
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 Py_INCREF(Py_None); resultobj = Py_None;
3714 return resultobj;
3715 fail:
3716 return NULL;
3717}
3718
3719
c32bde28 3720static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3721 PyObject *resultobj;
3722 wxBitmap *arg1 = (wxBitmap *) 0 ;
3723 wxBitmap *arg2 = (wxBitmap *) 0 ;
3724 bool result;
3725 PyObject * obj0 = 0 ;
3726 PyObject * obj1 = 0 ;
3727 char *kwnames[] = {
3728 (char *) "self",(char *) "other", NULL
3729 };
3730
3731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 {
3744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3745 }
3746 return resultobj;
3747 fail:
3748 return NULL;
3749}
3750
3751
c32bde28 3752static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3753 PyObject *resultobj;
3754 wxBitmap *arg1 = (wxBitmap *) 0 ;
3755 wxBitmap *arg2 = (wxBitmap *) 0 ;
3756 bool result;
3757 PyObject * obj0 = 0 ;
3758 PyObject * obj1 = 0 ;
3759 char *kwnames[] = {
3760 (char *) "self",(char *) "other", NULL
3761 };
3762
3763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3771
3772 wxPyEndAllowThreads(__tstate);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 {
3776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3777 }
3778 return resultobj;
3779 fail:
3780 return NULL;
3781}
3782
3783
c32bde28 3784static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3785 PyObject *obj;
3786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3787 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3788 Py_INCREF(obj);
3789 return Py_BuildValue((char *)"");
3790}
c32bde28 3791static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3792 PyObject *resultobj;
3793 wxBitmap *arg1 = 0 ;
3794 wxColour const &arg2_defvalue = wxNullColour ;
3795 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3796 wxMask *result;
3797 wxColour temp2 ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 char *kwnames[] = {
3801 (char *) "bitmap",(char *) "colour", NULL
3802 };
3803
3804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3806 SWIG_POINTER_EXCEPTION | 0)) == -1)
3807 SWIG_fail;
3808 if (arg1 == NULL) {
3809 PyErr_SetString(PyExc_TypeError,"null reference");
3810 SWIG_fail;
3811 }
3812 if (obj1) {
3813 {
3814 arg2 = &temp2;
3815 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3816 }
3817 }
3818 {
0439c23b 3819 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3820 PyThreadState* __tstate = wxPyBeginAllowThreads();
3821 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3822
3823 wxPyEndAllowThreads(__tstate);
110da5b0 3824 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3825 }
3826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3827 return resultobj;
3828 fail:
3829 return NULL;
3830}
3831
3832
c32bde28 3833static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3834 PyObject *obj;
3835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3836 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3837 Py_INCREF(obj);
3838 return Py_BuildValue((char *)"");
3839}
c32bde28 3840static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3841 PyObject *resultobj;
3842 wxString *arg1 = 0 ;
3843 int arg2 ;
3844 int arg3 = (int) -1 ;
3845 int arg4 = (int) -1 ;
3846 wxIcon *result;
ae8162c8 3847 bool temp1 = false ;
d55e5bfc
RD
3848 PyObject * obj0 = 0 ;
3849 PyObject * obj1 = 0 ;
3850 PyObject * obj2 = 0 ;
3851 PyObject * obj3 = 0 ;
3852 char *kwnames[] = {
3853 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3854 };
3855
3856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3857 {
3858 arg1 = wxString_in_helper(obj0);
3859 if (arg1 == NULL) SWIG_fail;
ae8162c8 3860 temp1 = true;
d55e5bfc 3861 }
c32bde28 3862 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3863 if (PyErr_Occurred()) SWIG_fail;
3864 if (obj2) {
c32bde28 3865 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3866 if (PyErr_Occurred()) SWIG_fail;
3867 }
3868 if (obj3) {
c32bde28 3869 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 {
0439c23b 3873 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3876
3877 wxPyEndAllowThreads(__tstate);
110da5b0 3878 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3879 }
3880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3881 {
3882 if (temp1)
3883 delete arg1;
3884 }
3885 return resultobj;
3886 fail:
3887 {
3888 if (temp1)
3889 delete arg1;
3890 }
3891 return NULL;
3892}
3893
3894
c32bde28 3895static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3896 PyObject *resultobj;
3897 wxIcon *arg1 = (wxIcon *) 0 ;
3898 PyObject * obj0 = 0 ;
3899 char *kwnames[] = {
3900 (char *) "self", NULL
3901 };
3902
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3906 {
3907 PyThreadState* __tstate = wxPyBeginAllowThreads();
3908 delete arg1;
3909
3910 wxPyEndAllowThreads(__tstate);
3911 if (PyErr_Occurred()) SWIG_fail;
3912 }
3913 Py_INCREF(Py_None); resultobj = Py_None;
3914 return resultobj;
3915 fail:
3916 return NULL;
3917}
3918
3919
c32bde28 3920static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3921 PyObject *resultobj;
3922 wxIcon *result;
3923 char *kwnames[] = {
3924 NULL
3925 };
3926
3927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3928 {
0439c23b 3929 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3930 PyThreadState* __tstate = wxPyBeginAllowThreads();
3931 result = (wxIcon *)new wxIcon();
3932
3933 wxPyEndAllowThreads(__tstate);
110da5b0 3934 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3935 }
3936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3937 return resultobj;
3938 fail:
3939 return NULL;
3940}
3941
3942
c32bde28 3943static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3944 PyObject *resultobj;
3945 wxIconLocation *arg1 = 0 ;
3946 wxIcon *result;
3947 PyObject * obj0 = 0 ;
3948 char *kwnames[] = {
3949 (char *) "loc", NULL
3950 };
3951
3952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3954 SWIG_POINTER_EXCEPTION | 0)) == -1)
3955 SWIG_fail;
3956 if (arg1 == NULL) {
3957 PyErr_SetString(PyExc_TypeError,"null reference");
3958 SWIG_fail;
3959 }
3960 {
0439c23b 3961 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
3963 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3964
3965 wxPyEndAllowThreads(__tstate);
110da5b0 3966 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3967 }
3968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3969 return resultobj;
3970 fail:
3971 return NULL;
3972}
3973
3974
c32bde28 3975static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3976 PyObject *resultobj;
3977 wxBitmap *arg1 = 0 ;
3978 wxIcon *result;
3979 PyObject * obj0 = 0 ;
3980 char *kwnames[] = {
3981 (char *) "bmp", NULL
3982 };
3983
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3986 SWIG_POINTER_EXCEPTION | 0)) == -1)
3987 SWIG_fail;
3988 if (arg1 == NULL) {
3989 PyErr_SetString(PyExc_TypeError,"null reference");
3990 SWIG_fail;
3991 }
3992 {
0439c23b 3993 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3996
3997 wxPyEndAllowThreads(__tstate);
110da5b0 3998 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3999 }
4000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4001 return resultobj;
4002 fail:
4003 return NULL;
4004}
4005
4006
c32bde28 4007static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4008 PyObject *resultobj;
4009 PyObject *arg1 = (PyObject *) 0 ;
4010 wxIcon *result;
4011 PyObject * obj0 = 0 ;
4012 char *kwnames[] = {
4013 (char *) "listOfStrings", NULL
4014 };
4015
4016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
4017 arg1 = obj0;
4018 {
0439c23b 4019 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (wxIcon *)new_wxIcon(arg1);
4022
4023 wxPyEndAllowThreads(__tstate);
110da5b0 4024 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4025 }
4026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4027 return resultobj;
4028 fail:
4029 return NULL;
4030}
4031
4032
c32bde28 4033static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4034 PyObject *resultobj;
4035 wxIcon *arg1 = (wxIcon *) 0 ;
4036 wxString *arg2 = 0 ;
4037 int arg3 ;
4038 bool result;
ae8162c8 4039 bool temp2 = false ;
d55e5bfc
RD
4040 PyObject * obj0 = 0 ;
4041 PyObject * obj1 = 0 ;
4042 PyObject * obj2 = 0 ;
4043 char *kwnames[] = {
4044 (char *) "self",(char *) "name",(char *) "type", NULL
4045 };
4046
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4050 {
4051 arg2 = wxString_in_helper(obj1);
4052 if (arg2 == NULL) SWIG_fail;
ae8162c8 4053 temp2 = true;
d55e5bfc 4054 }
c32bde28 4055 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4056 if (PyErr_Occurred()) SWIG_fail;
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
4060
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 {
4065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4066 }
4067 {
4068 if (temp2)
4069 delete arg2;
4070 }
4071 return resultobj;
4072 fail:
4073 {
4074 if (temp2)
4075 delete arg2;
4076 }
4077 return NULL;
4078}
4079
4080
c32bde28 4081static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4082 PyObject *resultobj;
4083 wxIcon *arg1 = (wxIcon *) 0 ;
4084 long result;
4085 PyObject * obj0 = 0 ;
4086 char *kwnames[] = {
4087 (char *) "self", NULL
4088 };
4089
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
4091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4093 {
4094 PyThreadState* __tstate = wxPyBeginAllowThreads();
4095 result = (long)(arg1)->GetHandle();
4096
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
c32bde28 4100 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
4101 return resultobj;
4102 fail:
4103 return NULL;
4104}
4105
4106
c32bde28 4107static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4108 PyObject *resultobj;
4109 wxIcon *arg1 = (wxIcon *) 0 ;
4110 long arg2 ;
4111 PyObject * obj0 = 0 ;
4112 PyObject * obj1 = 0 ;
4113 char *kwnames[] = {
4114 (char *) "self",(char *) "handle", NULL
4115 };
4116
4117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4120 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4121 if (PyErr_Occurred()) SWIG_fail;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 wxIcon_SetHandle(arg1,arg2);
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 Py_INCREF(Py_None); resultobj = Py_None;
4130 return resultobj;
4131 fail:
4132 return NULL;
4133}
4134
4135
c32bde28 4136static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4137 PyObject *resultobj;
4138 wxIcon *arg1 = (wxIcon *) 0 ;
4139 bool result;
4140 PyObject * obj0 = 0 ;
4141 char *kwnames[] = {
4142 (char *) "self", NULL
4143 };
4144
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (bool)(arg1)->Ok();
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 {
4156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4157 }
4158 return resultobj;
4159 fail:
4160 return NULL;
4161}
4162
4163
c32bde28 4164static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4165 PyObject *resultobj;
4166 wxIcon *arg1 = (wxIcon *) 0 ;
4167 int result;
4168 PyObject * obj0 = 0 ;
4169 char *kwnames[] = {
4170 (char *) "self", NULL
4171 };
4172
4173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4176 {
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 result = (int)(arg1)->GetWidth();
4179
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
c32bde28 4183 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4184 return resultobj;
4185 fail:
4186 return NULL;
4187}
4188
4189
c32bde28 4190static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4191 PyObject *resultobj;
4192 wxIcon *arg1 = (wxIcon *) 0 ;
4193 int result;
4194 PyObject * obj0 = 0 ;
4195 char *kwnames[] = {
4196 (char *) "self", NULL
4197 };
4198
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4202 {
4203 PyThreadState* __tstate = wxPyBeginAllowThreads();
4204 result = (int)(arg1)->GetHeight();
4205
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
c32bde28 4209 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4210 return resultobj;
4211 fail:
4212 return NULL;
4213}
4214
4215
c32bde28 4216static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4217 PyObject *resultobj;
4218 wxIcon *arg1 = (wxIcon *) 0 ;
4219 int result;
4220 PyObject * obj0 = 0 ;
4221 char *kwnames[] = {
4222 (char *) "self", NULL
4223 };
4224
4225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 result = (int)(arg1)->GetDepth();
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
c32bde28 4235 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4236 return resultobj;
4237 fail:
4238 return NULL;
4239}
4240
4241
c32bde28 4242static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4243 PyObject *resultobj;
4244 wxIcon *arg1 = (wxIcon *) 0 ;
4245 int arg2 ;
4246 PyObject * obj0 = 0 ;
4247 PyObject * obj1 = 0 ;
4248 char *kwnames[] = {
4249 (char *) "self",(char *) "w", NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4255 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4256 if (PyErr_Occurred()) SWIG_fail;
4257 {
4258 PyThreadState* __tstate = wxPyBeginAllowThreads();
4259 (arg1)->SetWidth(arg2);
4260
4261 wxPyEndAllowThreads(__tstate);
4262 if (PyErr_Occurred()) SWIG_fail;
4263 }
4264 Py_INCREF(Py_None); resultobj = Py_None;
4265 return resultobj;
4266 fail:
4267 return NULL;
4268}
4269
4270
c32bde28 4271static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4272 PyObject *resultobj;
4273 wxIcon *arg1 = (wxIcon *) 0 ;
4274 int arg2 ;
4275 PyObject * obj0 = 0 ;
4276 PyObject * obj1 = 0 ;
4277 char *kwnames[] = {
4278 (char *) "self",(char *) "h", NULL
4279 };
4280
4281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4284 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4285 if (PyErr_Occurred()) SWIG_fail;
4286 {
4287 PyThreadState* __tstate = wxPyBeginAllowThreads();
4288 (arg1)->SetHeight(arg2);
4289
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 Py_INCREF(Py_None); resultobj = Py_None;
4294 return resultobj;
4295 fail:
4296 return NULL;
4297}
4298
4299
c32bde28 4300static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4301 PyObject *resultobj;
4302 wxIcon *arg1 = (wxIcon *) 0 ;
4303 int arg2 ;
4304 PyObject * obj0 = 0 ;
4305 PyObject * obj1 = 0 ;
4306 char *kwnames[] = {
4307 (char *) "self",(char *) "d", NULL
4308 };
4309
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4313 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4314 if (PyErr_Occurred()) SWIG_fail;
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 (arg1)->SetDepth(arg2);
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 Py_INCREF(Py_None); resultobj = Py_None;
4323 return resultobj;
4324 fail:
4325 return NULL;
4326}
4327
4328
c32bde28 4329static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4330 PyObject *resultobj;
4331 wxIcon *arg1 = (wxIcon *) 0 ;
4332 wxSize *arg2 = 0 ;
4333 wxSize temp2 ;
4334 PyObject * obj0 = 0 ;
4335 PyObject * obj1 = 0 ;
4336 char *kwnames[] = {
4337 (char *) "self",(char *) "size", NULL
4338 };
4339
4340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4343 {
4344 arg2 = &temp2;
4345 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4346 }
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 (arg1)->SetSize((wxSize const &)*arg2);
4350
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) SWIG_fail;
4353 }
4354 Py_INCREF(Py_None); resultobj = Py_None;
4355 return resultobj;
4356 fail:
4357 return NULL;
4358}
4359
4360
c32bde28 4361static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4362 PyObject *resultobj;
4363 wxIcon *arg1 = (wxIcon *) 0 ;
4364 wxBitmap *arg2 = 0 ;
4365 PyObject * obj0 = 0 ;
4366 PyObject * obj1 = 0 ;
4367 char *kwnames[] = {
4368 (char *) "self",(char *) "bmp", NULL
4369 };
4370
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4375 SWIG_POINTER_EXCEPTION | 0)) == -1)
4376 SWIG_fail;
4377 if (arg2 == NULL) {
4378 PyErr_SetString(PyExc_TypeError,"null reference");
4379 SWIG_fail;
4380 }
4381 {
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4384
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 Py_INCREF(Py_None); resultobj = Py_None;
4389 return resultobj;
4390 fail:
4391 return NULL;
4392}
4393
4394
c32bde28 4395static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4396 PyObject *obj;
4397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4398 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4399 Py_INCREF(obj);
4400 return Py_BuildValue((char *)"");
4401}
c32bde28 4402static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4403 PyObject *resultobj;
4404 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4405 int arg2 = (int) 0 ;
4406 wxIconLocation *result;
ae8162c8 4407 bool temp1 = false ;
d55e5bfc
RD
4408 PyObject * obj0 = 0 ;
4409 PyObject * obj1 = 0 ;
4410 char *kwnames[] = {
4411 (char *) "filename",(char *) "num", NULL
4412 };
4413
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4415 if (obj0) {
4416 {
4417 arg1 = wxString_in_helper(obj0);
4418 if (arg1 == NULL) SWIG_fail;
ae8162c8 4419 temp1 = true;
d55e5bfc
RD
4420 }
4421 }
4422 if (obj1) {
c32bde28 4423 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4434 {
4435 if (temp1)
4436 delete arg1;
4437 }
4438 return resultobj;
4439 fail:
4440 {
4441 if (temp1)
4442 delete arg1;
4443 }
4444 return NULL;
4445}
4446
4447
c32bde28 4448static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4449 PyObject *resultobj;
4450 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4451 PyObject * obj0 = 0 ;
4452 char *kwnames[] = {
4453 (char *) "self", NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 delete arg1;
4462
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 Py_INCREF(Py_None); resultobj = Py_None;
4467 return resultobj;
4468 fail:
4469 return NULL;
4470}
4471
4472
c32bde28 4473static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4474 PyObject *resultobj;
4475 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4476 bool result;
4477 PyObject * obj0 = 0 ;
4478 char *kwnames[] = {
4479 (char *) "self", NULL
4480 };
4481
4482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 {
4493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4494 }
4495 return resultobj;
4496 fail:
4497 return NULL;
4498}
4499
4500
c32bde28 4501static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4502 PyObject *resultobj;
4503 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4504 wxString *arg2 = 0 ;
ae8162c8 4505 bool temp2 = false ;
d55e5bfc
RD
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 char *kwnames[] = {
4509 (char *) "self",(char *) "filename", NULL
4510 };
4511
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4515 {
4516 arg2 = wxString_in_helper(obj1);
4517 if (arg2 == NULL) SWIG_fail;
ae8162c8 4518 temp2 = true;
d55e5bfc
RD
4519 }
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 (arg1)->SetFileName((wxString const &)*arg2);
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 Py_INCREF(Py_None); resultobj = Py_None;
4528 {
4529 if (temp2)
4530 delete arg2;
4531 }
4532 return resultobj;
4533 fail:
4534 {
4535 if (temp2)
4536 delete arg2;
4537 }
4538 return NULL;
4539}
4540
4541
c32bde28 4542static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4543 PyObject *resultobj;
4544 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4545 wxString *result;
4546 PyObject * obj0 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "self", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 {
4557 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4558 result = (wxString *) &_result_ref;
4559 }
4560
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 {
4565#if wxUSE_UNICODE
4566 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4567#else
4568 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4569#endif
4570 }
4571 return resultobj;
4572 fail:
4573 return NULL;
4574}
4575
4576
c32bde28 4577static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4578 PyObject *resultobj;
4579 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4580 int arg2 ;
4581 PyObject * obj0 = 0 ;
4582 PyObject * obj1 = 0 ;
4583 char *kwnames[] = {
4584 (char *) "self",(char *) "num", NULL
4585 };
4586
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4590 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4591 if (PyErr_Occurred()) SWIG_fail;
4592 {
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 wxIconLocation_SetIndex(arg1,arg2);
4595
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 Py_INCREF(Py_None); resultobj = Py_None;
4600 return resultobj;
4601 fail:
4602 return NULL;
4603}
4604
4605
c32bde28 4606static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4607 PyObject *resultobj;
4608 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4609 int result;
4610 PyObject * obj0 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "self", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4618 {
4619 PyThreadState* __tstate = wxPyBeginAllowThreads();
4620 result = (int)wxIconLocation_GetIndex(arg1);
4621
4622 wxPyEndAllowThreads(__tstate);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
c32bde28 4625 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4626 return resultobj;
4627 fail:
4628 return NULL;
4629}
4630
4631
c32bde28 4632static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4633 PyObject *obj;
4634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4635 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4636 Py_INCREF(obj);
4637 return Py_BuildValue((char *)"");
4638}
c32bde28 4639static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4640 PyObject *resultobj;
4641 wxIconBundle *result;
4642 char *kwnames[] = {
4643 NULL
4644 };
4645
4646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 result = (wxIconBundle *)new wxIconBundle();
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4655 return resultobj;
4656 fail:
4657 return NULL;
4658}
4659
4660
c32bde28 4661static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4662 PyObject *resultobj;
4663 wxString *arg1 = 0 ;
4664 long arg2 ;
4665 wxIconBundle *result;
ae8162c8 4666 bool temp1 = false ;
d55e5bfc
RD
4667 PyObject * obj0 = 0 ;
4668 PyObject * obj1 = 0 ;
4669 char *kwnames[] = {
4670 (char *) "file",(char *) "type", NULL
4671 };
4672
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4674 {
4675 arg1 = wxString_in_helper(obj0);
4676 if (arg1 == NULL) SWIG_fail;
ae8162c8 4677 temp1 = true;
d55e5bfc 4678 }
c32bde28 4679 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4680 if (PyErr_Occurred()) SWIG_fail;
4681 {
4682 PyThreadState* __tstate = wxPyBeginAllowThreads();
4683 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4684
4685 wxPyEndAllowThreads(__tstate);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4689 {
4690 if (temp1)
4691 delete arg1;
4692 }
4693 return resultobj;
4694 fail:
4695 {
4696 if (temp1)
4697 delete arg1;
4698 }
4699 return NULL;
4700}
4701
4702
c32bde28 4703static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4704 PyObject *resultobj;
4705 wxIcon *arg1 = 0 ;
4706 wxIconBundle *result;
4707 PyObject * obj0 = 0 ;
4708 char *kwnames[] = {
4709 (char *) "icon", NULL
4710 };
4711
4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4714 SWIG_POINTER_EXCEPTION | 0)) == -1)
4715 SWIG_fail;
4716 if (arg1 == NULL) {
4717 PyErr_SetString(PyExc_TypeError,"null reference");
4718 SWIG_fail;
4719 }
4720 {
4721 PyThreadState* __tstate = wxPyBeginAllowThreads();
4722 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4723
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4728 return resultobj;
4729 fail:
4730 return NULL;
4731}
4732
4733
c32bde28 4734static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4735 PyObject *resultobj;
4736 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4737 PyObject * obj0 = 0 ;
4738 char *kwnames[] = {
4739 (char *) "self", NULL
4740 };
4741
4742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 delete arg1;
4748
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 Py_INCREF(Py_None); resultobj = Py_None;
4753 return resultobj;
4754 fail:
4755 return NULL;
4756}
4757
4758
c32bde28 4759static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4760 PyObject *resultobj;
4761 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4762 wxIcon *arg2 = 0 ;
4763 PyObject * obj0 = 0 ;
4764 PyObject * obj1 = 0 ;
4765 char *kwnames[] = {
4766 (char *) "self",(char *) "icon", NULL
4767 };
4768
4769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4773 SWIG_POINTER_EXCEPTION | 0)) == -1)
4774 SWIG_fail;
4775 if (arg2 == NULL) {
4776 PyErr_SetString(PyExc_TypeError,"null reference");
4777 SWIG_fail;
4778 }
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 (arg1)->AddIcon((wxIcon const &)*arg2);
4782
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 Py_INCREF(Py_None); resultobj = Py_None;
4787 return resultobj;
4788 fail:
4789 return NULL;
4790}
4791
4792
c32bde28 4793static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4794 PyObject *resultobj;
4795 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4796 wxString *arg2 = 0 ;
4797 long arg3 ;
ae8162c8 4798 bool temp2 = false ;
d55e5bfc
RD
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4801 PyObject * obj2 = 0 ;
4802 char *kwnames[] = {
4803 (char *) "self",(char *) "file",(char *) "type", NULL
4804 };
4805
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4809 {
4810 arg2 = wxString_in_helper(obj1);
4811 if (arg2 == NULL) SWIG_fail;
ae8162c8 4812 temp2 = true;
d55e5bfc 4813 }
c32bde28 4814 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
4815 if (PyErr_Occurred()) SWIG_fail;
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 Py_INCREF(Py_None); resultobj = Py_None;
4824 {
4825 if (temp2)
4826 delete arg2;
4827 }
4828 return resultobj;
4829 fail:
4830 {
4831 if (temp2)
4832 delete arg2;
4833 }
4834 return NULL;
4835}
4836
4837
c32bde28 4838static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4839 PyObject *resultobj;
4840 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4841 wxSize *arg2 = 0 ;
4842 wxIcon *result;
4843 wxSize temp2 ;
4844 PyObject * obj0 = 0 ;
4845 PyObject * obj1 = 0 ;
4846 char *kwnames[] = {
4847 (char *) "self",(char *) "size", NULL
4848 };
4849
4850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4853 {
4854 arg2 = &temp2;
4855 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4856 }
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 {
4860 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4861 result = (wxIcon *) &_result_ref;
4862 }
4863
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 {
4868 wxIcon* resultptr = new wxIcon(*result);
4869 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4870 }
4871 return resultobj;
4872 fail:
4873 return NULL;
4874}
4875
4876
c32bde28 4877static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4878 PyObject *obj;
4879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4880 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4881 Py_INCREF(obj);
4882 return Py_BuildValue((char *)"");
4883}
c32bde28 4884static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4885 PyObject *resultobj;
4886 wxString *arg1 = (wxString *) 0 ;
4887 long arg2 ;
4888 int arg3 = (int) 0 ;
4889 int arg4 = (int) 0 ;
4890 wxCursor *result;
ae8162c8 4891 bool temp1 = false ;
d55e5bfc
RD
4892 PyObject * obj0 = 0 ;
4893 PyObject * obj1 = 0 ;
4894 PyObject * obj2 = 0 ;
4895 PyObject * obj3 = 0 ;
4896 char *kwnames[] = {
4897 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4898 };
4899
4900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4901 {
4902 arg1 = wxString_in_helper(obj0);
4903 if (arg1 == NULL) SWIG_fail;
ae8162c8 4904 temp1 = true;
d55e5bfc 4905 }
c32bde28 4906 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4907 if (PyErr_Occurred()) SWIG_fail;
4908 if (obj2) {
c32bde28 4909 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 if (obj3) {
c32bde28 4913 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 {
0439c23b 4917 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4920
4921 wxPyEndAllowThreads(__tstate);
110da5b0 4922 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4923 }
4924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4925 {
4926 if (temp1)
4927 delete arg1;
4928 }
4929 return resultobj;
4930 fail:
4931 {
4932 if (temp1)
4933 delete arg1;
4934 }
4935 return NULL;
4936}
4937
4938
c32bde28 4939static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4940 PyObject *resultobj;
4941 wxCursor *arg1 = (wxCursor *) 0 ;
4942 PyObject * obj0 = 0 ;
4943 char *kwnames[] = {
4944 (char *) "self", NULL
4945 };
4946
4947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4950 {
4951 PyThreadState* __tstate = wxPyBeginAllowThreads();
4952 delete arg1;
4953
4954 wxPyEndAllowThreads(__tstate);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 Py_INCREF(Py_None); resultobj = Py_None;
4958 return resultobj;
4959 fail:
4960 return NULL;
4961}
4962
4963
c32bde28 4964static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4965 PyObject *resultobj;
4966 int arg1 ;
4967 wxCursor *result;
4968 PyObject * obj0 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "id", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
c32bde28 4974 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4975 if (PyErr_Occurred()) SWIG_fail;
4976 {
0439c23b 4977 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4978 PyThreadState* __tstate = wxPyBeginAllowThreads();
4979 result = (wxCursor *)new wxCursor(arg1);
4980
4981 wxPyEndAllowThreads(__tstate);
110da5b0 4982 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4983 }
4984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4985 return resultobj;
4986 fail:
4987 return NULL;
4988}
4989
4990
c32bde28 4991static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4992 PyObject *resultobj;
4993 wxImage *arg1 = 0 ;
4994 wxCursor *result;
4995 PyObject * obj0 = 0 ;
4996 char *kwnames[] = {
4997 (char *) "image", NULL
4998 };
4999
5000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
5001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
5002 SWIG_POINTER_EXCEPTION | 0)) == -1)
5003 SWIG_fail;
5004 if (arg1 == NULL) {
5005 PyErr_SetString(PyExc_TypeError,"null reference");
5006 SWIG_fail;
5007 }
5008 {
0439c23b 5009 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
5012
5013 wxPyEndAllowThreads(__tstate);
110da5b0 5014 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5015 }
5016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5017 return resultobj;
5018 fail:
5019 return NULL;
5020}
5021
5022
c32bde28 5023static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5024 PyObject *resultobj;
5025 wxCursor *arg1 = (wxCursor *) 0 ;
5026 long result;
5027 PyObject * obj0 = 0 ;
5028 char *kwnames[] = {
5029 (char *) "self", NULL
5030 };
5031
5032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
5033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (long)(arg1)->GetHandle();
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
c32bde28 5042 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
5043 return resultobj;
5044 fail:
5045 return NULL;
5046}
5047
5048
c32bde28 5049static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5050 PyObject *resultobj;
5051 wxCursor *arg1 = (wxCursor *) 0 ;
5052 long arg2 ;
5053 PyObject * obj0 = 0 ;
5054 PyObject * obj1 = 0 ;
5055 char *kwnames[] = {
5056 (char *) "self",(char *) "handle", NULL
5057 };
5058
5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5062 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
5063 if (PyErr_Occurred()) SWIG_fail;
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 wxCursor_SetHandle(arg1,arg2);
5067
5068 wxPyEndAllowThreads(__tstate);
5069 if (PyErr_Occurred()) SWIG_fail;
5070 }
5071 Py_INCREF(Py_None); resultobj = Py_None;
5072 return resultobj;
5073 fail:
5074 return NULL;
5075}
5076
5077
c32bde28 5078static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5079 PyObject *resultobj;
5080 wxCursor *arg1 = (wxCursor *) 0 ;
5081 bool result;
5082 PyObject * obj0 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "self", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 {
5091 PyThreadState* __tstate = wxPyBeginAllowThreads();
5092 result = (bool)(arg1)->Ok();
5093
5094 wxPyEndAllowThreads(__tstate);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 }
5097 {
5098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5099 }
5100 return resultobj;
5101 fail:
5102 return NULL;
5103}
5104
5105
c32bde28 5106static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5107 PyObject *resultobj;
5108 wxCursor *arg1 = (wxCursor *) 0 ;
5109 int result;
5110 PyObject * obj0 = 0 ;
5111 char *kwnames[] = {
5112 (char *) "self", NULL
5113 };
5114
5115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
5116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 result = (int)(arg1)->GetWidth();
5121
5122 wxPyEndAllowThreads(__tstate);
5123 if (PyErr_Occurred()) SWIG_fail;
5124 }
c32bde28 5125 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5126 return resultobj;
5127 fail:
5128 return NULL;
5129}
5130
5131
c32bde28 5132static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5133 PyObject *resultobj;
5134 wxCursor *arg1 = (wxCursor *) 0 ;
5135 int result;
5136 PyObject * obj0 = 0 ;
5137 char *kwnames[] = {
5138 (char *) "self", NULL
5139 };
5140
5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 result = (int)(arg1)->GetHeight();
5147
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
c32bde28 5151 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5152 return resultobj;
5153 fail:
5154 return NULL;
5155}
5156
5157
c32bde28 5158static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5159 PyObject *resultobj;
5160 wxCursor *arg1 = (wxCursor *) 0 ;
5161 int result;
5162 PyObject * obj0 = 0 ;
5163 char *kwnames[] = {
5164 (char *) "self", NULL
5165 };
5166
5167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5170 {
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 result = (int)(arg1)->GetDepth();
5173
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
c32bde28 5177 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5178 return resultobj;
5179 fail:
5180 return NULL;
5181}
5182
5183
c32bde28 5184static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5185 PyObject *resultobj;
5186 wxCursor *arg1 = (wxCursor *) 0 ;
5187 int arg2 ;
5188 PyObject * obj0 = 0 ;
5189 PyObject * obj1 = 0 ;
5190 char *kwnames[] = {
5191 (char *) "self",(char *) "w", NULL
5192 };
5193
5194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5197 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5198 if (PyErr_Occurred()) SWIG_fail;
5199 {
5200 PyThreadState* __tstate = wxPyBeginAllowThreads();
5201 (arg1)->SetWidth(arg2);
5202
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 Py_INCREF(Py_None); resultobj = Py_None;
5207 return resultobj;
5208 fail:
5209 return NULL;
5210}
5211
5212
c32bde28 5213static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5214 PyObject *resultobj;
5215 wxCursor *arg1 = (wxCursor *) 0 ;
5216 int arg2 ;
5217 PyObject * obj0 = 0 ;
5218 PyObject * obj1 = 0 ;
5219 char *kwnames[] = {
5220 (char *) "self",(char *) "h", NULL
5221 };
5222
5223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5226 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5227 if (PyErr_Occurred()) SWIG_fail;
5228 {
5229 PyThreadState* __tstate = wxPyBeginAllowThreads();
5230 (arg1)->SetHeight(arg2);
5231
5232 wxPyEndAllowThreads(__tstate);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 }
5235 Py_INCREF(Py_None); resultobj = Py_None;
5236 return resultobj;
5237 fail:
5238 return NULL;
5239}
5240
5241
c32bde28 5242static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5243 PyObject *resultobj;
5244 wxCursor *arg1 = (wxCursor *) 0 ;
5245 int arg2 ;
5246 PyObject * obj0 = 0 ;
5247 PyObject * obj1 = 0 ;
5248 char *kwnames[] = {
5249 (char *) "self",(char *) "d", NULL
5250 };
5251
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5255 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5256 if (PyErr_Occurred()) SWIG_fail;
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 (arg1)->SetDepth(arg2);
5260
5261 wxPyEndAllowThreads(__tstate);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 Py_INCREF(Py_None); resultobj = Py_None;
5265 return resultobj;
5266 fail:
5267 return NULL;
5268}
5269
5270
c32bde28 5271static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5272 PyObject *resultobj;
5273 wxCursor *arg1 = (wxCursor *) 0 ;
5274 wxSize *arg2 = 0 ;
5275 wxSize temp2 ;
5276 PyObject * obj0 = 0 ;
5277 PyObject * obj1 = 0 ;
5278 char *kwnames[] = {
5279 (char *) "self",(char *) "size", NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5285 {
5286 arg2 = &temp2;
5287 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5288 }
5289 {
5290 PyThreadState* __tstate = wxPyBeginAllowThreads();
5291 (arg1)->SetSize((wxSize const &)*arg2);
5292
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 }
5296 Py_INCREF(Py_None); resultobj = Py_None;
5297 return resultobj;
5298 fail:
5299 return NULL;
5300}
5301
5302
c32bde28 5303static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5304 PyObject *obj;
5305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5306 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5307 Py_INCREF(obj);
5308 return Py_BuildValue((char *)"");
5309}
c32bde28 5310static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5311 PyObject *resultobj;
5312 int arg1 = (int) 0 ;
5313 int arg2 = (int) 0 ;
5314 int arg3 = (int) 0 ;
5315 int arg4 = (int) 0 ;
5316 wxRegion *result;
5317 PyObject * obj0 = 0 ;
5318 PyObject * obj1 = 0 ;
5319 PyObject * obj2 = 0 ;
5320 PyObject * obj3 = 0 ;
5321 char *kwnames[] = {
5322 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5323 };
5324
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5326 if (obj0) {
c32bde28 5327 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 if (obj1) {
c32bde28 5331 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 if (obj2) {
c32bde28 5335 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 if (obj3) {
c32bde28 5339 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 {
0439c23b 5343 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5346
5347 wxPyEndAllowThreads(__tstate);
110da5b0 5348 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5349 }
5350 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5351 return resultobj;
5352 fail:
5353 return NULL;
5354}
5355
5356
c32bde28 5357static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5358 PyObject *resultobj;
5359 wxBitmap *arg1 = 0 ;
a2569024
RD
5360 wxRegion *result;
5361 PyObject * obj0 = 0 ;
5362 char *kwnames[] = {
5363 (char *) "bmp", NULL
5364 };
5365
5366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
5367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5368 SWIG_POINTER_EXCEPTION | 0)) == -1)
5369 SWIG_fail;
5370 if (arg1 == NULL) {
5371 PyErr_SetString(PyExc_TypeError,"null reference");
5372 SWIG_fail;
5373 }
5374 {
5375 if (!wxPyCheckForApp()) SWIG_fail;
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
5378
5379 wxPyEndAllowThreads(__tstate);
110da5b0 5380 if (PyErr_Occurred()) SWIG_fail;
a2569024
RD
5381 }
5382 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5383 return resultobj;
5384 fail:
5385 return NULL;
5386}
5387
5388
c32bde28 5389static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
a2569024
RD
5390 PyObject *resultobj;
5391 wxBitmap *arg1 = 0 ;
5392 wxColour *arg2 = 0 ;
d55e5bfc
RD
5393 int arg3 = (int) 0 ;
5394 wxRegion *result;
5395 wxColour temp2 ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 PyObject * obj2 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5401 };
5402
a2569024 5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
5404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5405 SWIG_POINTER_EXCEPTION | 0)) == -1)
5406 SWIG_fail;
5407 if (arg1 == NULL) {
5408 PyErr_SetString(PyExc_TypeError,"null reference");
5409 SWIG_fail;
5410 }
a2569024
RD
5411 {
5412 arg2 = &temp2;
5413 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
5414 }
5415 if (obj2) {
c32bde28 5416 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
0439c23b 5420 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5423
5424 wxPyEndAllowThreads(__tstate);
110da5b0 5425 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5426 }
5427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5428 return resultobj;
5429 fail:
5430 return NULL;
5431}
5432
5433
c32bde28 5434static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5435 PyObject *resultobj;
5436 int arg1 ;
5437 wxPoint *arg2 = (wxPoint *) 0 ;
5438 int arg3 = (int) wxWINDING_RULE ;
5439 wxRegion *result;
5440 PyObject * obj0 = 0 ;
5441 PyObject * obj1 = 0 ;
5442 char *kwnames[] = {
5443 (char *) "points",(char *) "fillStyle", NULL
5444 };
5445
5446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5447 {
5448 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5449 if (arg2 == NULL) SWIG_fail;
5450 }
5451 if (obj1) {
c32bde28 5452 arg3 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
5455 {
0439c23b 5456 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5459
5460 wxPyEndAllowThreads(__tstate);
110da5b0 5461 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5462 }
5463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5464 {
5465 if (arg2) delete [] arg2;
5466 }
5467 return resultobj;
5468 fail:
5469 {
5470 if (arg2) delete [] arg2;
5471 }
5472 return NULL;
5473}
5474
5475
c32bde28 5476static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5477 PyObject *resultobj;
5478 wxRegion *arg1 = (wxRegion *) 0 ;
5479 PyObject * obj0 = 0 ;
5480 char *kwnames[] = {
5481 (char *) "self", NULL
5482 };
5483
5484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5487 {
5488 PyThreadState* __tstate = wxPyBeginAllowThreads();
5489 delete arg1;
5490
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 }
5494 Py_INCREF(Py_None); resultobj = Py_None;
5495 return resultobj;
5496 fail:
5497 return NULL;
5498}
5499
5500
c32bde28 5501static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5502 PyObject *resultobj;
5503 wxRegion *arg1 = (wxRegion *) 0 ;
5504 PyObject * obj0 = 0 ;
5505 char *kwnames[] = {
5506 (char *) "self", NULL
5507 };
5508
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5512 {
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 (arg1)->Clear();
5515
5516 wxPyEndAllowThreads(__tstate);
5517 if (PyErr_Occurred()) SWIG_fail;
5518 }
5519 Py_INCREF(Py_None); resultobj = Py_None;
5520 return resultobj;
5521 fail:
5522 return NULL;
5523}
5524
5525
c32bde28 5526static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5527 PyObject *resultobj;
5528 wxRegion *arg1 = (wxRegion *) 0 ;
5529 int arg2 ;
5530 int arg3 ;
5531 bool result;
5532 PyObject * obj0 = 0 ;
5533 PyObject * obj1 = 0 ;
5534 PyObject * obj2 = 0 ;
5535 char *kwnames[] = {
5536 (char *) "self",(char *) "x",(char *) "y", NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5542 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5543 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5544 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5545 if (PyErr_Occurred()) SWIG_fail;
5546 {
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 result = (bool)(arg1)->Offset(arg2,arg3);
5549
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 {
5554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5555 }
5556 return resultobj;
5557 fail:
5558 return NULL;
5559}
5560
5561
c32bde28 5562static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5563 PyObject *resultobj;
5564 wxRegion *arg1 = (wxRegion *) 0 ;
5565 int arg2 ;
5566 int arg3 ;
5567 int result;
5568 PyObject * obj0 = 0 ;
5569 PyObject * obj1 = 0 ;
5570 PyObject * obj2 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self",(char *) "x",(char *) "y", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5578 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5579 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5580 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5581 if (PyErr_Occurred()) SWIG_fail;
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (int)(arg1)->Contains(arg2,arg3);
5585
5586 wxPyEndAllowThreads(__tstate);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 }
c32bde28 5589 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5590 return resultobj;
5591 fail:
5592 return NULL;
5593}
5594
5595
c32bde28 5596static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5597 PyObject *resultobj;
5598 wxRegion *arg1 = (wxRegion *) 0 ;
5599 wxPoint *arg2 = 0 ;
5600 int result;
5601 wxPoint temp2 ;
5602 PyObject * obj0 = 0 ;
5603 PyObject * obj1 = 0 ;
5604 char *kwnames[] = {
5605 (char *) "self",(char *) "pt", NULL
5606 };
5607
5608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5611 {
5612 arg2 = &temp2;
5613 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
c32bde28 5622 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5623 return resultobj;
5624 fail:
5625 return NULL;
5626}
5627
5628
c32bde28 5629static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5630 PyObject *resultobj;
5631 wxRegion *arg1 = (wxRegion *) 0 ;
5632 wxRect *arg2 = 0 ;
5633 int result;
5634 wxRect temp2 ;
5635 PyObject * obj0 = 0 ;
5636 PyObject * obj1 = 0 ;
5637 char *kwnames[] = {
5638 (char *) "self",(char *) "rect", NULL
5639 };
5640
5641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5644 {
5645 arg2 = &temp2;
5646 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5647 }
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5651
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) SWIG_fail;
5654 }
c32bde28 5655 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5656 return resultobj;
5657 fail:
5658 return NULL;
5659}
5660
5661
c32bde28 5662static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5663 PyObject *resultobj;
5664 wxRegion *arg1 = (wxRegion *) 0 ;
5665 int arg2 ;
5666 int arg3 ;
5667 int arg4 ;
5668 int arg5 ;
5669 int result;
5670 PyObject * obj0 = 0 ;
5671 PyObject * obj1 = 0 ;
5672 PyObject * obj2 = 0 ;
5673 PyObject * obj3 = 0 ;
5674 PyObject * obj4 = 0 ;
5675 char *kwnames[] = {
5676 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5677 };
5678
5679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5682 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5683 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5684 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5685 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5686 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5687 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5688 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5689 if (PyErr_Occurred()) SWIG_fail;
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) SWIG_fail;
5696 }
c32bde28 5697 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5698 return resultobj;
5699 fail:
5700 return NULL;
5701}
5702
5703
c32bde28 5704static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5705 PyObject *resultobj;
5706 wxRegion *arg1 = (wxRegion *) 0 ;
5707 wxRect result;
5708 PyObject * obj0 = 0 ;
5709 char *kwnames[] = {
5710 (char *) "self", NULL
5711 };
5712
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 result = (arg1)->GetBox();
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 {
5724 wxRect * resultptr;
5725 resultptr = new wxRect((wxRect &) result);
5726 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5727 }
5728 return resultobj;
5729 fail:
5730 return NULL;
5731}
5732
5733
c32bde28 5734static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5735 PyObject *resultobj;
5736 wxRegion *arg1 = (wxRegion *) 0 ;
5737 int arg2 ;
5738 int arg3 ;
5739 int arg4 ;
5740 int arg5 ;
5741 bool result;
5742 PyObject * obj0 = 0 ;
5743 PyObject * obj1 = 0 ;
5744 PyObject * obj2 = 0 ;
5745 PyObject * obj3 = 0 ;
5746 PyObject * obj4 = 0 ;
5747 char *kwnames[] = {
5748 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5749 };
5750
5751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5754 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5755 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5756 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5757 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5758 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5759 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5760 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5761 if (PyErr_Occurred()) SWIG_fail;
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 {
5770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5771 }
5772 return resultobj;
5773 fail:
5774 return NULL;
5775}
5776
5777
c32bde28 5778static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5779 PyObject *resultobj;
5780 wxRegion *arg1 = (wxRegion *) 0 ;
5781 wxRect *arg2 = 0 ;
5782 bool result;
5783 wxRect temp2 ;
5784 PyObject * obj0 = 0 ;
5785 PyObject * obj1 = 0 ;
5786 char *kwnames[] = {
5787 (char *) "self",(char *) "rect", NULL
5788 };
5789
5790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5793 {
5794 arg2 = &temp2;
5795 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5796 }
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 {
5805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5806 }
5807 return resultobj;
5808 fail:
5809 return NULL;
5810}
5811
5812
c32bde28 5813static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5814 PyObject *resultobj;
5815 wxRegion *arg1 = (wxRegion *) 0 ;
5816 wxRegion *arg2 = 0 ;
5817 bool result;
5818 PyObject * obj0 = 0 ;
5819 PyObject * obj1 = 0 ;
5820 char *kwnames[] = {
5821 (char *) "self",(char *) "region", NULL
5822 };
5823
5824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5828 SWIG_POINTER_EXCEPTION | 0)) == -1)
5829 SWIG_fail;
5830 if (arg2 == NULL) {
5831 PyErr_SetString(PyExc_TypeError,"null reference");
5832 SWIG_fail;
5833 }
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5837
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) SWIG_fail;
5840 }
5841 {
5842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5843 }
5844 return resultobj;
5845 fail:
5846 return NULL;
5847}
5848
5849
c32bde28 5850static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5851 PyObject *resultobj;
5852 wxRegion *arg1 = (wxRegion *) 0 ;
5853 bool result;
5854 PyObject * obj0 = 0 ;
5855 char *kwnames[] = {
5856 (char *) "self", NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5862 {
5863 PyThreadState* __tstate = wxPyBeginAllowThreads();
5864 result = (bool)(arg1)->IsEmpty();
5865
5866 wxPyEndAllowThreads(__tstate);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 {
5870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5871 }
5872 return resultobj;
5873 fail:
5874 return NULL;
5875}
5876
5877
c32bde28 5878static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5879 PyObject *resultobj;
5880 wxRegion *arg1 = (wxRegion *) 0 ;
5881 int arg2 ;
5882 int arg3 ;
5883 int arg4 ;
5884 int arg5 ;
5885 bool result;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 PyObject * obj2 = 0 ;
5889 PyObject * obj3 = 0 ;
5890 PyObject * obj4 = 0 ;
5891 char *kwnames[] = {
5892 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5893 };
5894
5895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5898 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5899 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5900 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5901 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5902 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5903 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5904 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5905 if (PyErr_Occurred()) SWIG_fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 {
5914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5915 }
5916 return resultobj;
5917 fail:
5918 return NULL;
5919}
5920
5921
c32bde28 5922static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5923 PyObject *resultobj;
5924 wxRegion *arg1 = (wxRegion *) 0 ;
5925 wxRect *arg2 = 0 ;
5926 bool result;
5927 wxRect temp2 ;
5928 PyObject * obj0 = 0 ;
5929 PyObject * obj1 = 0 ;
5930 char *kwnames[] = {
5931 (char *) "self",(char *) "rect", NULL
5932 };
5933
5934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5937 {
5938 arg2 = &temp2;
5939 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5940 }
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5944
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 {
5949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5950 }
5951 return resultobj;
5952 fail:
5953 return NULL;
5954}
5955
5956
c32bde28 5957static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5958 PyObject *resultobj;
5959 wxRegion *arg1 = (wxRegion *) 0 ;
5960 wxRegion *arg2 = 0 ;
5961 bool result;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char *kwnames[] = {
5965 (char *) "self",(char *) "region", NULL
5966 };
5967
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5971 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1)
5973 SWIG_fail;
5974 if (arg2 == NULL) {
5975 PyErr_SetString(PyExc_TypeError,"null reference");
5976 SWIG_fail;
5977 }
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5981
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 {
5986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5987 }
5988 return resultobj;
5989 fail:
5990 return NULL;
5991}
5992
5993
c32bde28 5994static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5995 PyObject *resultobj;
5996 wxRegion *arg1 = (wxRegion *) 0 ;
5997 int arg2 ;
5998 int arg3 ;
5999 int arg4 ;
6000 int arg5 ;
6001 bool result;
6002 PyObject * obj0 = 0 ;
6003 PyObject * obj1 = 0 ;
6004 PyObject * obj2 = 0 ;
6005 PyObject * obj3 = 0 ;
6006 PyObject * obj4 = 0 ;
6007 char *kwnames[] = {
6008 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6009 };
6010
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6014 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 6015 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6016 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 6017 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6018 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 6019 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6020 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
6021 if (PyErr_Occurred()) SWIG_fail;
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 {
6030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6031 }
6032 return resultobj;
6033 fail:
6034 return NULL;
6035}
6036
6037
c32bde28 6038static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6039 PyObject *resultobj;
6040 wxRegion *arg1 = (wxRegion *) 0 ;
6041 wxRect *arg2 = 0 ;
6042 bool result;
6043 wxRect temp2 ;
6044 PyObject * obj0 = 0 ;
6045 PyObject * obj1 = 0 ;
6046 char *kwnames[] = {
6047 (char *) "self",(char *) "rect", NULL
6048 };
6049
6050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
6051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6053 {
6054 arg2 = &temp2;
6055 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6056 }
6057 {
6058 PyThreadState* __tstate = wxPyBeginAllowThreads();
6059 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
6060
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 {
6065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6066 }
6067 return resultobj;
6068 fail:
6069 return NULL;
6070}
6071
6072
c32bde28 6073static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6074 PyObject *resultobj;
6075 wxRegion *arg1 = (wxRegion *) 0 ;
6076 wxRegion *arg2 = 0 ;
6077 bool result;
6078 PyObject * obj0 = 0 ;
6079 PyObject * obj1 = 0 ;
6080 char *kwnames[] = {
6081 (char *) "self",(char *) "region", NULL
6082 };
6083
6084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
6085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6087 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1)
6089 SWIG_fail;
6090 if (arg2 == NULL) {
6091 PyErr_SetString(PyExc_TypeError,"null reference");
6092 SWIG_fail;
6093 }
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 {
6102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6103 }
6104 return resultobj;
6105 fail:
6106 return NULL;
6107}
6108
6109
c32bde28 6110static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6111 PyObject *resultobj;
6112 wxRegion *arg1 = (wxRegion *) 0 ;
6113 int arg2 ;
6114 int arg3 ;
6115 int arg4 ;
6116 int arg5 ;
6117 bool result;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 PyObject * obj2 = 0 ;
6121 PyObject * obj3 = 0 ;
6122 PyObject * obj4 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6130 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 6131 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6132 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 6133 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6134 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 6135 if (PyErr_Occurred()) SWIG_fail;
c32bde28 6136 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
6137 if (PyErr_Occurred()) SWIG_fail;
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6141
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 {
6146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6147 }
6148 return resultobj;
6149 fail:
6150 return NULL;
6151}
6152
6153
c32bde28 6154static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6155 PyObject *resultobj;
6156 wxRegion *arg1 = (wxRegion *) 0 ;
6157 wxRect *arg2 = 0 ;
6158 bool result;
6159 wxRect temp2 ;
6160 PyObject * obj0 = 0 ;
6161 PyObject * obj1 = 0 ;
6162 char *kwnames[] = {
6163 (char *) "self",(char *) "rect", NULL
6164 };
6165
6166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6169 {
6170 arg2 = &temp2;
6171 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6172 }
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6176
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 {
6181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6182 }
6183 return resultobj;
6184 fail:
6185 return NULL;
6186}
6187
6188
c32bde28 6189static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6190 PyObject *resultobj;
6191 wxRegion *arg1 = (wxRegion *) 0 ;
6192 wxRegion *arg2 = 0 ;
6193 bool result;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 char *kwnames[] = {
6197 (char *) "self",(char *) "region", NULL
6198 };
6199
6200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1)
6205 SWIG_fail;
6206 if (arg2 == NULL) {
6207 PyErr_SetString(PyExc_TypeError,"null reference");
6208 SWIG_fail;
6209 }
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6213
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 {
6218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6219 }
6220 return resultobj;
6221 fail:
6222 return NULL;
6223}
6224
6225
c32bde28 6226static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6227 PyObject *resultobj;
6228 wxRegion *arg1 = (wxRegion *) 0 ;
6229 SwigValueWrapper< wxBitmap > result;
6230 PyObject * obj0 = 0 ;
6231 char *kwnames[] = {
6232 (char *) "self", NULL
6233 };
6234
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (arg1)->ConvertToBitmap();
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 {
6246 wxBitmap * resultptr;
6247 resultptr = new wxBitmap((wxBitmap &) result);
6248 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6249 }
6250 return resultobj;
6251 fail:
6252 return NULL;
6253}
6254
6255
c32bde28 6256static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6257 PyObject *resultobj;
6258 wxRegion *arg1 = (wxRegion *) 0 ;
6259 wxBitmap *arg2 = 0 ;
a2569024
RD
6260 bool result;
6261 PyObject * obj0 = 0 ;
6262 PyObject * obj1 = 0 ;
6263 char *kwnames[] = {
6264 (char *) "self",(char *) "bmp", NULL
6265 };
6266
6267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
6268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6270 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6271 SWIG_POINTER_EXCEPTION | 0)) == -1)
6272 SWIG_fail;
6273 if (arg2 == NULL) {
6274 PyErr_SetString(PyExc_TypeError,"null reference");
6275 SWIG_fail;
6276 }
6277 {
6278 PyThreadState* __tstate = wxPyBeginAllowThreads();
6279 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
6280
6281 wxPyEndAllowThreads(__tstate);
6282 if (PyErr_Occurred()) SWIG_fail;
6283 }
6284 {
6285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6286 }
6287 return resultobj;
6288 fail:
6289 return NULL;
6290}
6291
6292
c32bde28 6293static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
a2569024
RD
6294 PyObject *resultobj;
6295 wxRegion *arg1 = (wxRegion *) 0 ;
6296 wxBitmap *arg2 = 0 ;
6297 wxColour *arg3 = 0 ;
d55e5bfc
RD
6298 int arg4 = (int) 0 ;
6299 bool result;
6300 wxColour temp3 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
6303 PyObject * obj2 = 0 ;
6304 PyObject * obj3 = 0 ;
6305 char *kwnames[] = {
6306 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6307 };
6308
a2569024 6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
6310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6312 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6313 SWIG_POINTER_EXCEPTION | 0)) == -1)
6314 SWIG_fail;
6315 if (arg2 == NULL) {
6316 PyErr_SetString(PyExc_TypeError,"null reference");
6317 SWIG_fail;
6318 }
a2569024
RD
6319 {
6320 arg3 = &temp3;
6321 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
6322 }
6323 if (obj3) {
c32bde28 6324 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 {
6335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6336 }
6337 return resultobj;
6338 fail:
6339 return NULL;
6340}
6341
6342
c32bde28 6343static PyObject * Region_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6344 PyObject *obj;
6345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6346 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6347 Py_INCREF(obj);
6348 return Py_BuildValue((char *)"");
6349}
c32bde28 6350static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6351 PyObject *resultobj;
6352 wxRegion *arg1 = 0 ;
6353 wxRegionIterator *result;
6354 PyObject * obj0 = 0 ;
6355 char *kwnames[] = {
6356 (char *) "region", NULL
6357 };
6358
6359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6361 SWIG_POINTER_EXCEPTION | 0)) == -1)
6362 SWIG_fail;
6363 if (arg1 == NULL) {
6364 PyErr_SetString(PyExc_TypeError,"null reference");
6365 SWIG_fail;
6366 }
6367 {
0439c23b 6368 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6369 PyThreadState* __tstate = wxPyBeginAllowThreads();
6370 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6371
6372 wxPyEndAllowThreads(__tstate);
110da5b0 6373 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6374 }
6375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6376 return resultobj;
6377 fail:
6378 return NULL;
6379}
6380
6381
c32bde28 6382static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6383 PyObject *resultobj;
6384 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6385 PyObject * obj0 = 0 ;
6386 char *kwnames[] = {
6387 (char *) "self", NULL
6388 };
6389
6390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6393 {
6394 PyThreadState* __tstate = wxPyBeginAllowThreads();
6395 delete arg1;
6396
6397 wxPyEndAllowThreads(__tstate);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 Py_INCREF(Py_None); resultobj = Py_None;
6401 return resultobj;
6402 fail:
6403 return NULL;
6404}
6405
6406
c32bde28 6407static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6408 PyObject *resultobj;
6409 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6410 int result;
6411 PyObject * obj0 = 0 ;
6412 char *kwnames[] = {
6413 (char *) "self", NULL
6414 };
6415
6416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6419 {
6420 PyThreadState* __tstate = wxPyBeginAllowThreads();
6421 result = (int)(arg1)->GetX();
6422
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
c32bde28 6426 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6427 return resultobj;
6428 fail:
6429 return NULL;
6430}
6431
6432
c32bde28 6433static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6434 PyObject *resultobj;
6435 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6436 int result;
6437 PyObject * obj0 = 0 ;
6438 char *kwnames[] = {
6439 (char *) "self", NULL
6440 };
6441
6442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 result = (int)(arg1)->GetY();
6448
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
c32bde28 6452 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6453 return resultobj;
6454 fail:
6455 return NULL;
6456}
6457
6458
c32bde28 6459static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6460 PyObject *resultobj;
6461 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6462 int result;
6463 PyObject * obj0 = 0 ;
6464 char *kwnames[] = {
6465 (char *) "self", NULL
6466 };
6467
6468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 result = (int)(arg1)->GetW();
6474
6475 wxPyEndAllowThreads(__tstate);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
c32bde28 6478 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6479 return resultobj;
6480 fail:
6481 return NULL;
6482}
6483
6484
c32bde28 6485static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6486 PyObject *resultobj;
6487 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6488 int result;
6489 PyObject * obj0 = 0 ;
6490 char *kwnames[] = {
6491 (char *) "self", NULL
6492 };
6493
6494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6497 {
6498 PyThreadState* __tstate = wxPyBeginAllowThreads();
6499 result = (int)(arg1)->GetWidth();
6500
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
c32bde28 6504 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6505 return resultobj;
6506 fail:
6507 return NULL;
6508}
6509
6510
c32bde28 6511static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6512 PyObject *resultobj;
6513 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6514 int result;
6515 PyObject * obj0 = 0 ;
6516 char *kwnames[] = {
6517 (char *) "self", NULL
6518 };
6519
6520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6523 {
6524 PyThreadState* __tstate = wxPyBeginAllowThreads();
6525 result = (int)(arg1)->GetH();
6526
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
c32bde28 6530 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6531 return resultobj;
6532 fail:
6533 return NULL;
6534}
6535
6536
c32bde28 6537static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6538 PyObject *resultobj;
6539 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6540 int result;
6541 PyObject * obj0 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = (int)(arg1)->GetHeight();
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
c32bde28 6556 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6557 return resultobj;
6558 fail:
6559 return NULL;
6560}
6561
6562
c32bde28 6563static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6564 PyObject *resultobj;
6565 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6566 wxRect result;
6567 PyObject * obj0 = 0 ;
6568 char *kwnames[] = {
6569 (char *) "self", NULL
6570 };
6571
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 result = (arg1)->GetRect();
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 {
6583 wxRect * resultptr;
6584 resultptr = new wxRect((wxRect &) result);
6585 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6586 }
6587 return resultobj;
6588 fail:
6589 return NULL;
6590}
6591
6592
c32bde28 6593static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6594 PyObject *resultobj;
6595 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6596 bool result;
6597 PyObject * obj0 = 0 ;
6598 char *kwnames[] = {
6599 (char *) "self", NULL
6600 };
6601
6602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6605 {
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
6607 result = (bool)(arg1)->HaveRects();
6608
6609 wxPyEndAllowThreads(__tstate);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 {
6613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6614 }
6615 return resultobj;
6616 fail:
6617 return NULL;
6618}
6619
6620
c32bde28 6621static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6622 PyObject *resultobj;
6623 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6624 PyObject * obj0 = 0 ;
6625 char *kwnames[] = {
6626 (char *) "self", NULL
6627 };
6628
6629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6632 {
6633 PyThreadState* __tstate = wxPyBeginAllowThreads();
6634 (arg1)->Reset();
6635
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 Py_INCREF(Py_None); resultobj = Py_None;
6640 return resultobj;
6641 fail:
6642 return NULL;
6643}
6644
6645
c32bde28 6646static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6647 PyObject *resultobj;
6648 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6649 PyObject * obj0 = 0 ;
6650 char *kwnames[] = {
6651 (char *) "self", NULL
6652 };
6653
6654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6657 {
6658 PyThreadState* __tstate = wxPyBeginAllowThreads();
6659 wxRegionIterator_Next(arg1);
6660
6661 wxPyEndAllowThreads(__tstate);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 Py_INCREF(Py_None); resultobj = Py_None;
6665 return resultobj;
6666 fail:
6667 return NULL;
6668}
6669
6670
c32bde28 6671static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6672 PyObject *resultobj;
6673 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6674 bool result;
6675 PyObject * obj0 = 0 ;
6676 char *kwnames[] = {
6677 (char *) "self", NULL
6678 };
6679
6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6683 {
6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
6685 result = (bool)wxRegionIterator___nonzero__(arg1);
6686
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 {
6691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6692 }
6693 return resultobj;
6694 fail:
6695 return NULL;
6696}
6697
6698
c32bde28 6699static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6700 PyObject *obj;
6701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6702 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6703 Py_INCREF(obj);
6704 return Py_BuildValue((char *)"");
6705}
c32bde28 6706static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6707 PyObject *resultobj;
6708 wxNativeFontInfo *result;
6709 char *kwnames[] = {
6710 NULL
6711 };
6712
6713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6714 {
6715 PyThreadState* __tstate = wxPyBeginAllowThreads();
6716 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6717
6718 wxPyEndAllowThreads(__tstate);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6722 return resultobj;
6723 fail:
6724 return NULL;
6725}
6726
6727
c32bde28 6728static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6729 PyObject *resultobj;
6730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6739 {
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 delete arg1;
6742
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 Py_INCREF(Py_None); resultobj = Py_None;
6747 return resultobj;
6748 fail:
6749 return NULL;
6750}
6751
6752
c32bde28 6753static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6754 PyObject *resultobj;
6755 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6756 PyObject * obj0 = 0 ;
6757 char *kwnames[] = {
6758 (char *) "self", NULL
6759 };
6760
6761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 (arg1)->Init();
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 Py_INCREF(Py_None); resultobj = Py_None;
6772 return resultobj;
6773 fail:
6774 return NULL;
6775}
6776
6777
c32bde28 6778static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6779 PyObject *resultobj;
6780 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6781 wxFont *arg2 = 0 ;
6782 PyObject * obj0 = 0 ;
6783 PyObject * obj1 = 0 ;
6784 char *kwnames[] = {
6785 (char *) "self",(char *) "font", NULL
6786 };
6787
6788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6792 SWIG_POINTER_EXCEPTION | 0)) == -1)
6793 SWIG_fail;
6794 if (arg2 == NULL) {
6795 PyErr_SetString(PyExc_TypeError,"null reference");
6796 SWIG_fail;
6797 }
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 (arg1)->InitFromFont((wxFont const &)*arg2);
6801
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 Py_INCREF(Py_None); resultobj = Py_None;
6806 return resultobj;
6807 fail:
6808 return NULL;
6809}
6810
6811
c32bde28 6812static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6813 PyObject *resultobj;
6814 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6815 int result;
6816 PyObject * obj0 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6824 {
6825 PyThreadState* __tstate = wxPyBeginAllowThreads();
6826 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6827
6828 wxPyEndAllowThreads(__tstate);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
c32bde28 6831 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6832 return resultobj;
6833 fail:
6834 return NULL;
6835}
6836
6837
5e483524
RD
6838static PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
6839 PyObject *resultobj;
6840 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6841 wxSize result;
6842 PyObject * obj0 = 0 ;
6843 char *kwnames[] = {
6844 (char *) "self", NULL
6845 };
6846
6847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPixelSize",kwnames,&obj0)) goto fail;
6848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6850 {
6851 PyThreadState* __tstate = wxPyBeginAllowThreads();
6852 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
6853
6854 wxPyEndAllowThreads(__tstate);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 {
6858 wxSize * resultptr;
6859 resultptr = new wxSize((wxSize &) result);
6860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
6861 }
6862 return resultobj;
6863 fail:
6864 return NULL;
6865}
6866
6867
c32bde28 6868static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6869 PyObject *resultobj;
6870 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6871 int result;
6872 PyObject * obj0 = 0 ;
6873 char *kwnames[] = {
6874 (char *) "self", NULL
6875 };
6876
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6883
6884 wxPyEndAllowThreads(__tstate);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
c32bde28 6887 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6888 return resultobj;
6889 fail:
6890 return NULL;
6891}
6892
6893
c32bde28 6894static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6895 PyObject *resultobj;
6896 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6897 int result;
6898 PyObject * obj0 = 0 ;
6899 char *kwnames[] = {
6900 (char *) "self", NULL
6901 };
6902
6903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6906 {
6907 PyThreadState* __tstate = wxPyBeginAllowThreads();
6908 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6909
6910 wxPyEndAllowThreads(__tstate);
6911 if (PyErr_Occurred()) SWIG_fail;
6912 }
c32bde28 6913 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6914 return resultobj;
6915 fail:
6916 return NULL;
6917}
6918
6919
c32bde28 6920static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6921 PyObject *resultobj;
6922 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6923 bool result;
6924 PyObject * obj0 = 0 ;
6925 char *kwnames[] = {
6926 (char *) "self", NULL
6927 };
6928
6929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6935
6936 wxPyEndAllowThreads(__tstate);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 {
6940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6941 }
6942 return resultobj;
6943 fail:
6944 return NULL;
6945}
6946
6947
c32bde28 6948static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6949 PyObject *resultobj;
6950 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6951 wxString result;
6952 PyObject * obj0 = 0 ;
6953 char *kwnames[] = {
6954 (char *) "self", NULL
6955 };
6956
6957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 {
6968#if wxUSE_UNICODE
6969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6970#else
6971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6972#endif
6973 }
6974 return resultobj;
6975 fail:
6976 return NULL;
6977}
6978
6979
c32bde28 6980static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6981 PyObject *resultobj;
6982 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6983 int result;
6984 PyObject * obj0 = 0 ;
6985 char *kwnames[] = {
6986 (char *) "self", NULL
6987 };
6988
6989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6995
6996 wxPyEndAllowThreads(__tstate);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
c32bde28 6999 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7000 return resultobj;
7001 fail:
7002 return NULL;
7003}
7004
7005
c32bde28 7006static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7007 PyObject *resultobj;
7008 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7009 int result;
7010 PyObject * obj0 = 0 ;
7011 char *kwnames[] = {
7012 (char *) "self", NULL
7013 };
7014
7015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
7016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7018 {
7019 PyThreadState* __tstate = wxPyBeginAllowThreads();
7020 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
7021
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
c32bde28 7025 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7026 return resultobj;
7027 fail:
7028 return NULL;
7029}
7030
7031
c32bde28 7032static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7033 PyObject *resultobj;
7034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7035 int arg2 ;
7036 PyObject * obj0 = 0 ;
7037 PyObject * obj1 = 0 ;
7038 char *kwnames[] = {
7039 (char *) "self",(char *) "pointsize", NULL
7040 };
7041
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7045 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7046 if (PyErr_Occurred()) SWIG_fail;
7047 {
7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
7049 (arg1)->SetPointSize(arg2);
7050
7051 wxPyEndAllowThreads(__tstate);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 Py_INCREF(Py_None); resultobj = Py_None;
7055 return resultobj;
7056 fail:
7057 return NULL;
7058}
7059
7060
5e483524
RD
7061static PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
7062 PyObject *resultobj;
7063 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7064 wxSize *arg2 = 0 ;
7065 wxSize temp2 ;
7066 PyObject * obj0 = 0 ;
7067 PyObject * obj1 = 0 ;
7068 char *kwnames[] = {
7069 (char *) "self",(char *) "pixelSize", NULL
7070 };
7071
7072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
7073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7075 {
7076 arg2 = &temp2;
7077 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7078 }
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 (arg1)->SetPixelSize((wxSize const &)*arg2);
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 Py_INCREF(Py_None); resultobj = Py_None;
7087 return resultobj;
7088 fail:
7089 return NULL;
7090}
7091
7092
c32bde28 7093static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7094 PyObject *resultobj;
7095 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7096 int arg2 ;
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 char *kwnames[] = {
7100 (char *) "self",(char *) "style", NULL
7101 };
7102
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7106 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7107 if (PyErr_Occurred()) SWIG_fail;
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 (arg1)->SetStyle((wxFontStyle )arg2);
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 Py_INCREF(Py_None); resultobj = Py_None;
7116 return resultobj;
7117 fail:
7118 return NULL;
7119}
7120
7121
c32bde28 7122static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7123 PyObject *resultobj;
7124 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7125 int arg2 ;
7126 PyObject * obj0 = 0 ;
7127 PyObject * obj1 = 0 ;
7128 char *kwnames[] = {
7129 (char *) "self",(char *) "weight", NULL
7130 };
7131
7132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7135 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7136 if (PyErr_Occurred()) SWIG_fail;
7137 {
7138 PyThreadState* __tstate = wxPyBeginAllowThreads();
7139 (arg1)->SetWeight((wxFontWeight )arg2);
7140
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 Py_INCREF(Py_None); resultobj = Py_None;
7145 return resultobj;
7146 fail:
7147 return NULL;
7148}
7149
7150
c32bde28 7151static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7152 PyObject *resultobj;
7153 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7154 bool arg2 ;
7155 PyObject * obj0 = 0 ;
7156 PyObject * obj1 = 0 ;
7157 char *kwnames[] = {
7158 (char *) "self",(char *) "underlined", NULL
7159 };
7160
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7164 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
7165 if (PyErr_Occurred()) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->SetUnderlined(arg2);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 Py_INCREF(Py_None); resultobj = Py_None;
7174 return resultobj;
7175 fail:
7176 return NULL;
7177}
7178
7179
c32bde28 7180static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7181 PyObject *resultobj;
7182 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7183 wxString arg2 ;
7184 PyObject * obj0 = 0 ;
7185 PyObject * obj1 = 0 ;
7186 char *kwnames[] = {
7187 (char *) "self",(char *) "facename", NULL
7188 };
7189
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7193 {
7194 wxString* sptr = wxString_in_helper(obj1);
7195 if (sptr == NULL) SWIG_fail;
7196 arg2 = *sptr;
7197 delete sptr;
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 (arg1)->SetFaceName(arg2);
7202
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 Py_INCREF(Py_None); resultobj = Py_None;
7207 return resultobj;
7208 fail:
7209 return NULL;
7210}
7211
7212
c32bde28 7213static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7214 PyObject *resultobj;
7215 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7216 int arg2 ;
7217 PyObject * obj0 = 0 ;
7218 PyObject * obj1 = 0 ;
7219 char *kwnames[] = {
7220 (char *) "self",(char *) "family", NULL
7221 };
7222
7223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7226 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7227 if (PyErr_Occurred()) SWIG_fail;
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 (arg1)->SetFamily((wxFontFamily )arg2);
7231
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 Py_INCREF(Py_None); resultobj = Py_None;
7236 return resultobj;
7237 fail:
7238 return NULL;
7239}
7240
7241
c32bde28 7242static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7243 PyObject *resultobj;
7244 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7245 int arg2 ;
7246 PyObject * obj0 = 0 ;
7247 PyObject * obj1 = 0 ;
7248 char *kwnames[] = {
7249 (char *) "self",(char *) "encoding", NULL
7250 };
7251
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7255 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7256 if (PyErr_Occurred()) SWIG_fail;
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 (arg1)->SetEncoding((wxFontEncoding )arg2);
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 Py_INCREF(Py_None); resultobj = Py_None;
7265 return resultobj;
7266 fail:
7267 return NULL;
7268}
7269
7270
c32bde28 7271static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7272 PyObject *resultobj;
7273 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7274 wxString *arg2 = 0 ;
7275 bool result;
ae8162c8 7276 bool temp2 = false ;
d55e5bfc
RD
7277 PyObject * obj0 = 0 ;
7278 PyObject * obj1 = 0 ;
7279 char *kwnames[] = {
7280 (char *) "self",(char *) "s", NULL
7281 };
7282
7283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7286 {
7287 arg2 = wxString_in_helper(obj1);
7288 if (arg2 == NULL) SWIG_fail;
ae8162c8 7289 temp2 = true;
d55e5bfc
RD
7290 }
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 {
7299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7300 }
7301 {
7302 if (temp2)
7303 delete arg2;
7304 }
7305 return resultobj;
7306 fail:
7307 {
7308 if (temp2)
7309 delete arg2;
7310 }
7311 return NULL;
7312}
7313
7314
c32bde28 7315static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7316 PyObject *resultobj;
7317 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7318 wxString result;
7319 PyObject * obj0 = 0 ;
7320 char *kwnames[] = {
7321 (char *) "self", NULL
7322 };
7323
7324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7327 {
7328 PyThreadState* __tstate = wxPyBeginAllowThreads();
7329 result = ((wxNativeFontInfo const *)arg1)->ToString();
7330
7331 wxPyEndAllowThreads(__tstate);
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 {
7335#if wxUSE_UNICODE
7336 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7337#else
7338 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7339#endif
7340 }
7341 return resultobj;
7342 fail:
7343 return NULL;
7344}
7345
7346
c32bde28 7347static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7348 PyObject *resultobj;
7349 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7350 wxString result;
7351 PyObject * obj0 = 0 ;
7352 char *kwnames[] = {
7353 (char *) "self", NULL
7354 };
7355
7356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7359 {
7360 PyThreadState* __tstate = wxPyBeginAllowThreads();
7361 result = wxNativeFontInfo___str__(arg1);
7362
7363 wxPyEndAllowThreads(__tstate);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 {
7367#if wxUSE_UNICODE
7368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7369#else
7370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7371#endif
7372 }
7373 return resultobj;
7374 fail:
7375 return NULL;
7376}
7377
7378
c32bde28 7379static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7380 PyObject *resultobj;
7381 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7382 wxString *arg2 = 0 ;
7383 bool result;
ae8162c8 7384 bool temp2 = false ;
d55e5bfc
RD
7385 PyObject * obj0 = 0 ;
7386 PyObject * obj1 = 0 ;
7387 char *kwnames[] = {
7388 (char *) "self",(char *) "s", NULL
7389 };
7390
7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7394 {
7395 arg2 = wxString_in_helper(obj1);
7396 if (arg2 == NULL) SWIG_fail;
ae8162c8 7397 temp2 = true;
d55e5bfc
RD
7398 }
7399 {
7400 PyThreadState* __tstate = wxPyBeginAllowThreads();
7401 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7402
7403 wxPyEndAllowThreads(__tstate);
7404 if (PyErr_Occurred()) SWIG_fail;
7405 }
7406 {
7407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7408 }
7409 {
7410 if (temp2)
7411 delete arg2;
7412 }
7413 return resultobj;
7414 fail:
7415 {
7416 if (temp2)
7417 delete arg2;
7418 }
7419 return NULL;
7420}
7421
7422
c32bde28 7423static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7424 PyObject *resultobj;
7425 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7426 wxString result;
7427 PyObject * obj0 = 0 ;
7428 char *kwnames[] = {
7429 (char *) "self", NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7435 {
7436 PyThreadState* __tstate = wxPyBeginAllowThreads();
7437 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7438
7439 wxPyEndAllowThreads(__tstate);
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 {
7443#if wxUSE_UNICODE
7444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7445#else
7446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7447#endif
7448 }
7449 return resultobj;
7450 fail:
7451 return NULL;
7452}
7453
7454
c32bde28 7455static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7456 PyObject *obj;
7457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7458 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7459 Py_INCREF(obj);
7460 return Py_BuildValue((char *)"");
7461}
c32bde28 7462static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7463 PyObject *resultobj;
7464 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7465 wxString *arg2 = (wxString *) 0 ;
ae8162c8 7466 bool temp2 = false ;
d55e5bfc
RD
7467 PyObject * obj0 = 0 ;
7468 PyObject * obj1 = 0 ;
7469 char *kwnames[] = {
7470 (char *) "self",(char *) "facename", NULL
7471 };
7472
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7476 {
7477 arg2 = wxString_in_helper(obj1);
7478 if (arg2 == NULL) SWIG_fail;
ae8162c8 7479 temp2 = true;
d55e5bfc
RD
7480 }
7481 if (arg1) (arg1)->facename = *arg2;
7482
7483 Py_INCREF(Py_None); resultobj = Py_None;
7484 {
7485 if (temp2)
7486 delete arg2;
7487 }
7488 return resultobj;
7489 fail:
7490 {
7491 if (temp2)
7492 delete arg2;
7493 }
7494 return NULL;
7495}
7496
7497
c32bde28 7498static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7499 PyObject *resultobj;
7500 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7501 wxString *result;
7502 PyObject * obj0 = 0 ;
7503 char *kwnames[] = {
7504 (char *) "self", NULL
7505 };
7506
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7510 result = (wxString *)& ((arg1)->facename);
7511
7512 {
7513#if wxUSE_UNICODE
7514 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7515#else
7516 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7517#endif
7518 }
7519 return resultobj;
7520 fail:
7521 return NULL;
7522}
7523
7524
c32bde28 7525static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7526 PyObject *resultobj;
7527 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7528 int arg2 ;
7529 PyObject * obj0 = 0 ;
7530 PyObject * obj1 = 0 ;
7531 char *kwnames[] = {
7532 (char *) "self",(char *) "encoding", NULL
7533 };
7534
7535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7538 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7539 if (PyErr_Occurred()) SWIG_fail;
7540 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
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_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7550 PyObject *resultobj;
7551 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7552 int result;
7553 PyObject * obj0 = 0 ;
7554 char *kwnames[] = {
7555 (char *) "self", NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7561 result = (int) ((arg1)->encoding);
7562
c32bde28 7563 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7564 return resultobj;
7565 fail:
7566 return NULL;
7567}
7568
7569
c32bde28 7570static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7571 PyObject *resultobj;
7572 wxNativeEncodingInfo *result;
7573 char *kwnames[] = {
7574 NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7578 {
7579 PyThreadState* __tstate = wxPyBeginAllowThreads();
7580 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7581
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7586 return resultobj;
7587 fail:
7588 return NULL;
7589}
7590
7591
c32bde28 7592static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7593 PyObject *resultobj;
7594 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7595 PyObject * obj0 = 0 ;
7596 char *kwnames[] = {
7597 (char *) "self", NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7603 {
7604 PyThreadState* __tstate = wxPyBeginAllowThreads();
7605 delete arg1;
7606
7607 wxPyEndAllowThreads(__tstate);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 Py_INCREF(Py_None); resultobj = Py_None;
7611 return resultobj;
7612 fail:
7613 return NULL;
7614}
7615
7616
c32bde28 7617static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7618 PyObject *resultobj;
7619 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7620 wxString *arg2 = 0 ;
7621 bool result;
ae8162c8 7622 bool temp2 = false ;
d55e5bfc
RD
7623 PyObject * obj0 = 0 ;
7624 PyObject * obj1 = 0 ;
7625 char *kwnames[] = {
7626 (char *) "self",(char *) "s", NULL
7627 };
7628
7629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7632 {
7633 arg2 = wxString_in_helper(obj1);
7634 if (arg2 == NULL) SWIG_fail;
ae8162c8 7635 temp2 = true;
d55e5bfc
RD
7636 }
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7640
7641 wxPyEndAllowThreads(__tstate);
7642 if (PyErr_Occurred()) SWIG_fail;
7643 }
7644 {
7645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7646 }
7647 {
7648 if (temp2)
7649 delete arg2;
7650 }
7651 return resultobj;
7652 fail:
7653 {
7654 if (temp2)
7655 delete arg2;
7656 }
7657 return NULL;
7658}
7659
7660
c32bde28 7661static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7662 PyObject *resultobj;
7663 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7664 wxString result;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "self", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 {
7681#if wxUSE_UNICODE
7682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7683#else
7684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7685#endif
7686 }
7687 return resultobj;
7688 fail:
7689 return NULL;
7690}
7691
7692
c32bde28 7693static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7694 PyObject *obj;
7695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7696 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7697 Py_INCREF(obj);
7698 return Py_BuildValue((char *)"");
7699}
c32bde28 7700static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7701 PyObject *resultobj;
7702 int arg1 ;
7703 wxNativeEncodingInfo *result;
7704 PyObject * obj0 = 0 ;
7705 char *kwnames[] = {
7706 (char *) "encoding", NULL
7707 };
7708
7709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
c32bde28 7710 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7711 if (PyErr_Occurred()) SWIG_fail;
7712 {
7713 PyThreadState* __tstate = wxPyBeginAllowThreads();
7714 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7715
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7720 return resultobj;
7721 fail:
7722 return NULL;
7723}
7724
7725
c32bde28 7726static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7727 PyObject *resultobj;
7728 wxNativeEncodingInfo *arg1 = 0 ;
7729 bool result;
7730 PyObject * obj0 = 0 ;
7731 char *kwnames[] = {
7732 (char *) "info", NULL
7733 };
7734
7735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7737 SWIG_POINTER_EXCEPTION | 0)) == -1)
7738 SWIG_fail;
7739 if (arg1 == NULL) {
7740 PyErr_SetString(PyExc_TypeError,"null reference");
7741 SWIG_fail;
7742 }
7743 {
7744 PyThreadState* __tstate = wxPyBeginAllowThreads();
7745 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7746
7747 wxPyEndAllowThreads(__tstate);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 {
7751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7752 }
7753 return resultobj;
7754 fail:
7755 return NULL;
7756}
7757
7758
c32bde28 7759static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7760 PyObject *resultobj;
7761 wxFontMapper *result;
7762 char *kwnames[] = {
7763 NULL
7764 };
7765
7766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 result = (wxFontMapper *)new wxFontMapper();
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7775 return resultobj;
7776 fail:
7777 return NULL;
7778}
7779
7780
c32bde28 7781static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7782 PyObject *resultobj;
7783 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7784 PyObject * obj0 = 0 ;
7785 char *kwnames[] = {
7786 (char *) "self", NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 delete arg1;
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) SWIG_fail;
7798 }
7799 Py_INCREF(Py_None); resultobj = Py_None;
7800 return resultobj;
7801 fail:
7802 return NULL;
7803}
7804
7805
c32bde28 7806static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7807 PyObject *resultobj;
7808 wxFontMapper *result;
7809 char *kwnames[] = {
7810 NULL
7811 };
7812
7813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7814 {
7815 PyThreadState* __tstate = wxPyBeginAllowThreads();
7816 result = (wxFontMapper *)wxFontMapper::Get();
7817
7818 wxPyEndAllowThreads(__tstate);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7822 return resultobj;
7823 fail:
7824 return NULL;
7825}
7826
7827
c32bde28 7828static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7829 PyObject *resultobj;
7830 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7831 wxFontMapper *result;
7832 PyObject * obj0 = 0 ;
7833 char *kwnames[] = {
7834 (char *) "mapper", NULL
7835 };
7836
7837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7848 return resultobj;
7849 fail:
7850 return NULL;
7851}
7852
7853
c32bde28 7854static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7855 PyObject *resultobj;
7856 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7857 wxString *arg2 = 0 ;
ae8162c8 7858 bool arg3 = (bool) true ;
d55e5bfc 7859 int result;
ae8162c8 7860 bool temp2 = false ;
d55e5bfc
RD
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 PyObject * obj2 = 0 ;
7864 char *kwnames[] = {
7865 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7866 };
7867
7868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7871 {
7872 arg2 = wxString_in_helper(obj1);
7873 if (arg2 == NULL) SWIG_fail;
ae8162c8 7874 temp2 = true;
d55e5bfc
RD
7875 }
7876 if (obj2) {
c32bde28 7877 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
c32bde28 7887 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7888 {
7889 if (temp2)
7890 delete arg2;
7891 }
7892 return resultobj;
7893 fail:
7894 {
7895 if (temp2)
7896 delete arg2;
7897 }
7898 return NULL;
7899}
7900
7901
c32bde28 7902static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7903 PyObject *resultobj;
7904 size_t result;
7905 char *kwnames[] = {
7906 NULL
7907 };
7908
7909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7910 {
7911 PyThreadState* __tstate = wxPyBeginAllowThreads();
7912 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7913
7914 wxPyEndAllowThreads(__tstate);
7915 if (PyErr_Occurred()) SWIG_fail;
7916 }
c32bde28 7917 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
7918 return resultobj;
7919 fail:
7920 return NULL;
7921}
7922
7923
c32bde28 7924static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7925 PyObject *resultobj;
7926 size_t arg1 ;
7927 int result;
7928 PyObject * obj0 = 0 ;
7929 char *kwnames[] = {
7930 (char *) "n", NULL
7931 };
7932
7933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
c32bde28 7934 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7935 if (PyErr_Occurred()) SWIG_fail;
7936 {
7937 PyThreadState* __tstate = wxPyBeginAllowThreads();
7938 result = (int)wxFontMapper::GetEncoding(arg1);
7939
7940 wxPyEndAllowThreads(__tstate);
7941 if (PyErr_Occurred()) SWIG_fail;
7942 }
c32bde28 7943 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7944 return resultobj;
7945 fail:
7946 return NULL;
7947}
7948
7949
c32bde28 7950static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7951 PyObject *resultobj;
7952 int arg1 ;
7953 wxString result;
7954 PyObject * obj0 = 0 ;
7955 char *kwnames[] = {
7956 (char *) "encoding", NULL
7957 };
7958
7959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
c32bde28 7960 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7961 if (PyErr_Occurred()) SWIG_fail;
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7965
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 {
7970#if wxUSE_UNICODE
7971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7972#else
7973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7974#endif
7975 }
7976 return resultobj;
7977 fail:
7978 return NULL;
7979}
7980
7981
c32bde28 7982static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7983 PyObject *resultobj;
7984 int arg1 ;
7985 wxString result;
7986 PyObject * obj0 = 0 ;
7987 char *kwnames[] = {
7988 (char *) "encoding", NULL
7989 };
7990
7991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
c32bde28 7992 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7993 if (PyErr_Occurred()) SWIG_fail;
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7997
7998 wxPyEndAllowThreads(__tstate);
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 {
8002#if wxUSE_UNICODE
8003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8004#else
8005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8006#endif
8007 }
8008 return resultobj;
8009 fail:
8010 return NULL;
8011}
8012
8013
c32bde28 8014static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8015 PyObject *resultobj;
8016 wxString *arg1 = 0 ;
8017 int result;
ae8162c8 8018 bool temp1 = false ;
d55e5bfc
RD
8019 PyObject * obj0 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "name", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
8025 {
8026 arg1 = wxString_in_helper(obj0);
8027 if (arg1 == NULL) SWIG_fail;
ae8162c8 8028 temp1 = true;
d55e5bfc
RD
8029 }
8030 {
8031 PyThreadState* __tstate = wxPyBeginAllowThreads();
8032 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
8033
8034 wxPyEndAllowThreads(__tstate);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
c32bde28 8037 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8038 {
8039 if (temp1)
8040 delete arg1;
8041 }
8042 return resultobj;
8043 fail:
8044 {
8045 if (temp1)
8046 delete arg1;
8047 }
8048 return NULL;
8049}
8050
8051
c32bde28 8052static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8053 PyObject *resultobj;
8054 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8055 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
8056 PyObject * obj0 = 0 ;
8057 PyObject * obj1 = 0 ;
8058 char *kwnames[] = {
8059 (char *) "self",(char *) "config", NULL
8060 };
8061
8062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
8063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
8066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 (arg1)->SetConfig(arg2);
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 Py_INCREF(Py_None); resultobj = Py_None;
8075 return resultobj;
8076 fail:
8077 return NULL;
8078}
8079
8080
c32bde28 8081static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8082 PyObject *resultobj;
8083 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8084 wxString *arg2 = 0 ;
ae8162c8 8085 bool temp2 = false ;
d55e5bfc
RD
8086 PyObject * obj0 = 0 ;
8087 PyObject * obj1 = 0 ;
8088 char *kwnames[] = {
8089 (char *) "self",(char *) "prefix", NULL
8090 };
8091
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
8093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8095 {
8096 arg2 = wxString_in_helper(obj1);
8097 if (arg2 == NULL) SWIG_fail;
ae8162c8 8098 temp2 = true;
d55e5bfc
RD
8099 }
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 (arg1)->SetConfigPath((wxString const &)*arg2);
8103
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 Py_INCREF(Py_None); resultobj = Py_None;
8108 {
8109 if (temp2)
8110 delete arg2;
8111 }
8112 return resultobj;
8113 fail:
8114 {
8115 if (temp2)
8116 delete arg2;
8117 }
8118 return NULL;
8119}
8120
8121
c32bde28 8122static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8123 PyObject *resultobj;
8124 wxString result;
8125 char *kwnames[] = {
8126 NULL
8127 };
8128
8129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
8130 {
8131 PyThreadState* __tstate = wxPyBeginAllowThreads();
8132 result = wxFontMapper::GetDefaultConfigPath();
8133
8134 wxPyEndAllowThreads(__tstate);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 {
8138#if wxUSE_UNICODE
8139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8140#else
8141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8142#endif
8143 }
8144 return resultobj;
8145 fail:
8146 return NULL;
8147}
8148
8149
c32bde28 8150static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8151 PyObject *resultobj;
8152 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8153 int arg2 ;
8154 wxString const &arg3_defvalue = wxPyEmptyString ;
8155 wxString *arg3 = (wxString *) &arg3_defvalue ;
ae8162c8 8156 bool arg4 = (bool) true ;
d55e5bfc 8157 PyObject *result;
ae8162c8 8158 bool temp3 = false ;
d55e5bfc
RD
8159 PyObject * obj0 = 0 ;
8160 PyObject * obj1 = 0 ;
8161 PyObject * obj2 = 0 ;
8162 PyObject * obj3 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8170 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8171 if (PyErr_Occurred()) SWIG_fail;
8172 if (obj2) {
8173 {
8174 arg3 = wxString_in_helper(obj2);
8175 if (arg3 == NULL) SWIG_fail;
ae8162c8 8176 temp3 = true;
d55e5bfc
RD
8177 }
8178 }
8179 if (obj3) {
c32bde28 8180 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 resultobj = result;
8191 {
8192 if (temp3)
8193 delete arg3;
8194 }
8195 return resultobj;
8196 fail:
8197 {
8198 if (temp3)
8199 delete arg3;
8200 }
8201 return NULL;
8202}
8203
8204
c32bde28 8205static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8206 PyObject *resultobj;
8207 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8208 int arg2 ;
8209 wxString const &arg3_defvalue = wxPyEmptyString ;
8210 wxString *arg3 = (wxString *) &arg3_defvalue ;
8211 bool result;
ae8162c8 8212 bool temp3 = false ;
d55e5bfc
RD
8213 PyObject * obj0 = 0 ;
8214 PyObject * obj1 = 0 ;
8215 PyObject * obj2 = 0 ;
8216 char *kwnames[] = {
8217 (char *) "self",(char *) "encoding",(char *) "facename", NULL
8218 };
8219
8220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
8221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8223 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8224 if (PyErr_Occurred()) SWIG_fail;
8225 if (obj2) {
8226 {
8227 arg3 = wxString_in_helper(obj2);
8228 if (arg3 == NULL) SWIG_fail;
ae8162c8 8229 temp3 = true;
d55e5bfc
RD
8230 }
8231 }
8232 {
8233 PyThreadState* __tstate = wxPyBeginAllowThreads();
8234 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
8235
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 {
8240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8241 }
8242 {
8243 if (temp3)
8244 delete arg3;
8245 }
8246 return resultobj;
8247 fail:
8248 {
8249 if (temp3)
8250 delete arg3;
8251 }
8252 return NULL;
8253}
8254
8255
c32bde28 8256static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8257 PyObject *resultobj;
8258 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8259 wxWindow *arg2 = (wxWindow *) 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "self",(char *) "parent", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8271 {
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 (arg1)->SetDialogParent(arg2);
8274
8275 wxPyEndAllowThreads(__tstate);
8276 if (PyErr_Occurred()) SWIG_fail;
8277 }
8278 Py_INCREF(Py_None); resultobj = Py_None;
8279 return resultobj;
8280 fail:
8281 return NULL;
8282}
8283
8284
c32bde28 8285static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8286 PyObject *resultobj;
8287 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8288 wxString *arg2 = 0 ;
ae8162c8 8289 bool temp2 = false ;
d55e5bfc
RD
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char *kwnames[] = {
8293 (char *) "self",(char *) "title", NULL
8294 };
8295
8296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8299 {
8300 arg2 = wxString_in_helper(obj1);
8301 if (arg2 == NULL) SWIG_fail;
ae8162c8 8302 temp2 = true;
d55e5bfc
RD
8303 }
8304 {
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 (arg1)->SetDialogTitle((wxString const &)*arg2);
8307
8308 wxPyEndAllowThreads(__tstate);
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 Py_INCREF(Py_None); resultobj = Py_None;
8312 {
8313 if (temp2)
8314 delete arg2;
8315 }
8316 return resultobj;
8317 fail:
8318 {
8319 if (temp2)
8320 delete arg2;
8321 }
8322 return NULL;
8323}
8324
8325
c32bde28 8326static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8327 PyObject *obj;
8328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8329 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8330 Py_INCREF(obj);
8331 return Py_BuildValue((char *)"");
8332}
c32bde28 8333static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8334 PyObject *resultobj;
8335 int arg1 ;
8336 int arg2 ;
8337 int arg3 ;
8338 int arg4 ;
ae8162c8 8339 bool arg5 = (bool) false ;
d55e5bfc
RD
8340 wxString const &arg6_defvalue = wxPyEmptyString ;
8341 wxString *arg6 = (wxString *) &arg6_defvalue ;
8342 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8343 wxFont *result;
ae8162c8 8344 bool temp6 = false ;
d55e5bfc
RD
8345 PyObject * obj0 = 0 ;
8346 PyObject * obj1 = 0 ;
8347 PyObject * obj2 = 0 ;
8348 PyObject * obj3 = 0 ;
8349 PyObject * obj4 = 0 ;
8350 PyObject * obj5 = 0 ;
8351 PyObject * obj6 = 0 ;
8352 char *kwnames[] = {
8353 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8354 };
8355
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c32bde28 8357 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 8358 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8359 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 8360 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8361 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 8362 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8363 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
8364 if (PyErr_Occurred()) SWIG_fail;
8365 if (obj4) {
c32bde28 8366 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 if (obj5) {
8370 {
8371 arg6 = wxString_in_helper(obj5);
8372 if (arg6 == NULL) SWIG_fail;
ae8162c8 8373 temp6 = true;
d55e5bfc
RD
8374 }
8375 }
8376 if (obj6) {
c32bde28 8377 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 {
0439c23b 8381 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8384
8385 wxPyEndAllowThreads(__tstate);
110da5b0 8386 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8387 }
8388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8389 {
8390 if (temp6)
8391 delete arg6;
8392 }
8393 return resultobj;
8394 fail:
8395 {
8396 if (temp6)
8397 delete arg6;
8398 }
8399 return NULL;
8400}
8401
8402
c32bde28 8403static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8404 PyObject *resultobj;
8405 wxFont *arg1 = (wxFont *) 0 ;
8406 PyObject * obj0 = 0 ;
8407 char *kwnames[] = {
8408 (char *) "self", NULL
8409 };
8410
8411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8414 {
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 delete arg1;
8417
8418 wxPyEndAllowThreads(__tstate);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 Py_INCREF(Py_None); resultobj = Py_None;
8422 return resultobj;
8423 fail:
8424 return NULL;
8425}
8426
8427
c32bde28 8428static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8429 PyObject *resultobj;
8430 wxNativeFontInfo *arg1 = 0 ;
8431 wxFont *result;
8432 PyObject * obj0 = 0 ;
8433 char *kwnames[] = {
8434 (char *) "info", NULL
8435 };
8436
8437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8439 SWIG_POINTER_EXCEPTION | 0)) == -1)
8440 SWIG_fail;
8441 if (arg1 == NULL) {
8442 PyErr_SetString(PyExc_TypeError,"null reference");
8443 SWIG_fail;
8444 }
8445 {
0439c23b 8446 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8449
8450 wxPyEndAllowThreads(__tstate);
110da5b0 8451 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8452 }
8453 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8454 return resultobj;
8455 fail:
8456 return NULL;
8457}
8458
8459
c32bde28 8460static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8461 PyObject *resultobj;
8462 wxString *arg1 = 0 ;
8463 wxFont *result;
ae8162c8 8464 bool temp1 = false ;
d55e5bfc
RD
8465 PyObject * obj0 = 0 ;
8466 char *kwnames[] = {
8467 (char *) "info", NULL
8468 };
8469
8470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8471 {
8472 arg1 = wxString_in_helper(obj0);
8473 if (arg1 == NULL) SWIG_fail;
ae8162c8 8474 temp1 = true;
d55e5bfc
RD
8475 }
8476 {
0439c23b 8477 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8480
8481 wxPyEndAllowThreads(__tstate);
110da5b0 8482 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8483 }
8484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8485 {
8486 if (temp1)
8487 delete arg1;
8488 }
8489 return resultobj;
8490 fail:
8491 {
8492 if (temp1)
8493 delete arg1;
8494 }
8495 return NULL;
8496}
8497
8498
c32bde28 8499static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8500 PyObject *resultobj;
8501 int arg1 ;
8502 int arg2 ;
8503 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8504 wxString const &arg4_defvalue = wxPyEmptyString ;
8505 wxString *arg4 = (wxString *) &arg4_defvalue ;
8506 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8507 wxFont *result;
ae8162c8 8508 bool temp4 = false ;
d55e5bfc
RD
8509 PyObject * obj0 = 0 ;
8510 PyObject * obj1 = 0 ;
8511 PyObject * obj2 = 0 ;
8512 PyObject * obj3 = 0 ;
8513 PyObject * obj4 = 0 ;
8514 char *kwnames[] = {
8515 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8516 };
8517
8518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
c32bde28 8519 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 8520 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8521 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8522 if (PyErr_Occurred()) SWIG_fail;
8523 if (obj2) {
c32bde28 8524 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 if (obj3) {
8528 {
8529 arg4 = wxString_in_helper(obj3);
8530 if (arg4 == NULL) SWIG_fail;
ae8162c8 8531 temp4 = true;
d55e5bfc
RD
8532 }
8533 }
8534 if (obj4) {
c32bde28 8535 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 {
0439c23b 8539 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8540 PyThreadState* __tstate = wxPyBeginAllowThreads();
8541 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8542
8543 wxPyEndAllowThreads(__tstate);
110da5b0 8544 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8545 }
8546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8547 {
8548 if (temp4)
8549 delete arg4;
8550 }
8551 return resultobj;
8552 fail:
8553 {
8554 if (temp4)
8555 delete arg4;
8556 }
8557 return NULL;
8558}
8559
8560
5e483524
RD
8561static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj;
8563 wxSize *arg1 = 0 ;
8564 int arg2 ;
8565 int arg3 ;
8566 int arg4 ;
8567 bool arg5 = (bool) false ;
8568 wxString const &arg6_defvalue = wxEmptyString ;
8569 wxString *arg6 = (wxString *) &arg6_defvalue ;
8570 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8571 wxFont *result;
8572 wxSize temp1 ;
8573 bool temp6 = false ;
8574 PyObject * obj0 = 0 ;
8575 PyObject * obj1 = 0 ;
8576 PyObject * obj2 = 0 ;
8577 PyObject * obj3 = 0 ;
8578 PyObject * obj4 = 0 ;
8579 PyObject * obj5 = 0 ;
8580 PyObject * obj6 = 0 ;
8581 char *kwnames[] = {
8582 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
8583 };
8584
8585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8586 {
8587 arg1 = &temp1;
8588 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
8589 }
8590 arg2 = (int)SWIG_As_int(obj1);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 arg3 = (int)SWIG_As_int(obj2);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 arg4 = (int)SWIG_As_int(obj3);
8595 if (PyErr_Occurred()) SWIG_fail;
8596 if (obj4) {
8597 arg5 = (bool)SWIG_As_bool(obj4);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 if (obj5) {
8601 {
8602 arg6 = wxString_in_helper(obj5);
8603 if (arg6 == NULL) SWIG_fail;
8604 temp6 = true;
8605 }
8606 }
8607 if (obj6) {
8608 arg7 = (int)SWIG_As_int(obj6);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 {
8612 if (!wxPyCheckForApp()) SWIG_fail;
8613 PyThreadState* __tstate = wxPyBeginAllowThreads();
8614 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8615
8616 wxPyEndAllowThreads(__tstate);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8620 {
8621 if (temp6)
8622 delete arg6;
8623 }
8624 return resultobj;
8625 fail:
8626 {
8627 if (temp6)
8628 delete arg6;
8629 }
8630 return NULL;
8631}
8632
8633
c32bde28 8634static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8635 PyObject *resultobj;
8636 wxFont *arg1 = (wxFont *) 0 ;
8637 bool result;
8638 PyObject * obj0 = 0 ;
8639 char *kwnames[] = {
8640 (char *) "self", NULL
8641 };
8642
8643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 result = (bool)((wxFont const *)arg1)->Ok();
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 {
8654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8655 }
8656 return resultobj;
8657 fail:
8658 return NULL;
8659}
8660
8661
c32bde28 8662static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8663 PyObject *resultobj;
8664 wxFont *arg1 = (wxFont *) 0 ;
8665 wxFont *arg2 = (wxFont *) 0 ;
8666 bool result;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669 char *kwnames[] = {
8670 (char *) "self",(char *) "other", NULL
8671 };
8672
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8681
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 {
8686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8687 }
8688 return resultobj;
8689 fail:
8690 return NULL;
8691}
8692
8693
c32bde28 8694static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8695 PyObject *resultobj;
8696 wxFont *arg1 = (wxFont *) 0 ;
8697 wxFont *arg2 = (wxFont *) 0 ;
8698 bool result;
8699 PyObject * obj0 = 0 ;
8700 PyObject * obj1 = 0 ;
8701 char *kwnames[] = {
8702 (char *) "self",(char *) "other", NULL
8703 };
8704
8705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8710 {
8711 PyThreadState* __tstate = wxPyBeginAllowThreads();
8712 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8713
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 {
8718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8719 }
8720 return resultobj;
8721 fail:
8722 return NULL;
8723}
8724
8725
c32bde28 8726static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8727 PyObject *resultobj;
8728 wxFont *arg1 = (wxFont *) 0 ;
8729 int result;
8730 PyObject * obj0 = 0 ;
8731 char *kwnames[] = {
8732 (char *) "self", NULL
8733 };
8734
8735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8738 {
8739 PyThreadState* __tstate = wxPyBeginAllowThreads();
8740 result = (int)((wxFont const *)arg1)->GetPointSize();
8741
8742 wxPyEndAllowThreads(__tstate);
8743 if (PyErr_Occurred()) SWIG_fail;
8744 }
c32bde28 8745 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8746 return resultobj;
8747 fail:
8748 return NULL;
8749}
8750
8751
5e483524
RD
8752static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8753 PyObject *resultobj;
8754 wxFont *arg1 = (wxFont *) 0 ;
8755 wxSize result;
8756 PyObject * obj0 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = ((wxFont const *)arg1)->GetPixelSize();
8767
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 {
8772 wxSize * resultptr;
8773 resultptr = new wxSize((wxSize &) result);
8774 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8775 }
8776 return resultobj;
8777 fail:
8778 return NULL;
8779}
8780
8781
8782static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxFont *arg1 = (wxFont *) 0 ;
8785 bool result;
8786 PyObject * obj0 = 0 ;
8787 char *kwnames[] = {
8788 (char *) "self", NULL
8789 };
8790
8791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
8792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 {
8802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8803 }
8804 return resultobj;
8805 fail:
8806 return NULL;
8807}
8808
8809
c32bde28 8810static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8811 PyObject *resultobj;
8812 wxFont *arg1 = (wxFont *) 0 ;
8813 int result;
8814 PyObject * obj0 = 0 ;
8815 char *kwnames[] = {
8816 (char *) "self", NULL
8817 };
8818
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 result = (int)((wxFont const *)arg1)->GetFamily();
8825
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
c32bde28 8829 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8830 return resultobj;
8831 fail:
8832 return NULL;
8833}
8834
8835
c32bde28 8836static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8837 PyObject *resultobj;
8838 wxFont *arg1 = (wxFont *) 0 ;
8839 int result;
8840 PyObject * obj0 = 0 ;
8841 char *kwnames[] = {
8842 (char *) "self", NULL
8843 };
8844
8845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (int)((wxFont const *)arg1)->GetStyle();
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
c32bde28 8855 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8856 return resultobj;
8857 fail:
8858 return NULL;
8859}
8860
8861
c32bde28 8862static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8863 PyObject *resultobj;
8864 wxFont *arg1 = (wxFont *) 0 ;
8865 int result;
8866 PyObject * obj0 = 0 ;
8867 char *kwnames[] = {
8868 (char *) "self", NULL
8869 };
8870
8871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 result = (int)((wxFont const *)arg1)->GetWeight();
8877
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
c32bde28 8881 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8882 return resultobj;
8883 fail:
8884 return NULL;
8885}
8886
8887
c32bde28 8888static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8889 PyObject *resultobj;
8890 wxFont *arg1 = (wxFont *) 0 ;
8891 bool result;
8892 PyObject * obj0 = 0 ;
8893 char *kwnames[] = {
8894 (char *) "self", NULL
8895 };
8896
8897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8903
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 {
8908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8909 }
8910 return resultobj;
8911 fail:
8912 return NULL;
8913}
8914
8915
c32bde28 8916static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8917 PyObject *resultobj;
8918 wxFont *arg1 = (wxFont *) 0 ;
8919 wxString result;
8920 PyObject * obj0 = 0 ;
8921 char *kwnames[] = {
8922 (char *) "self", NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 result = ((wxFont const *)arg1)->GetFaceName();
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 {
8936#if wxUSE_UNICODE
8937 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8938#else
8939 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8940#endif
8941 }
8942 return resultobj;
8943 fail:
8944 return NULL;
8945}
8946
8947
c32bde28 8948static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8949 PyObject *resultobj;
8950 wxFont *arg1 = (wxFont *) 0 ;
8951 int result;
8952 PyObject * obj0 = 0 ;
8953 char *kwnames[] = {
8954 (char *) "self", NULL
8955 };
8956
8957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 result = (int)((wxFont const *)arg1)->GetEncoding();
8963
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 }
c32bde28 8967 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8968 return resultobj;
8969 fail:
8970 return NULL;
8971}
8972
8973
c32bde28 8974static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8975 PyObject *resultobj;
8976 wxFont *arg1 = (wxFont *) 0 ;
8977 wxNativeFontInfo *result;
8978 PyObject * obj0 = 0 ;
8979 char *kwnames[] = {
8980 (char *) "self", NULL
8981 };
8982
8983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8989
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8994 return resultobj;
8995 fail:
8996 return NULL;
8997}
8998
8999
c32bde28 9000static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9001 PyObject *resultobj;
9002 wxFont *arg1 = (wxFont *) 0 ;
9003 bool result;
9004 PyObject * obj0 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "self", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
9010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9012 {
9013 PyThreadState* __tstate = wxPyBeginAllowThreads();
9014 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
9015
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 {
9020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9021 }
9022 return resultobj;
9023 fail:
9024 return NULL;
9025}
9026
9027
c32bde28 9028static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9029 PyObject *resultobj;
9030 wxFont *arg1 = (wxFont *) 0 ;
9031 wxString result;
9032 PyObject * obj0 = 0 ;
9033 char *kwnames[] = {
9034 (char *) "self", NULL
9035 };
9036
9037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
9038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9040 {
9041 PyThreadState* __tstate = wxPyBeginAllowThreads();
9042 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
9043
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 {
9048#if wxUSE_UNICODE
9049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9050#else
9051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9052#endif
9053 }
9054 return resultobj;
9055 fail:
9056 return NULL;
9057}
9058
9059
c32bde28 9060static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9061 PyObject *resultobj;
9062 wxFont *arg1 = (wxFont *) 0 ;
9063 wxString result;
9064 PyObject * obj0 = 0 ;
9065 char *kwnames[] = {
9066 (char *) "self", NULL
9067 };
9068
9069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
9070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
9075
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 {
9080#if wxUSE_UNICODE
9081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9082#else
9083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9084#endif
9085 }
9086 return resultobj;
9087 fail:
9088 return NULL;
9089}
9090
9091
c32bde28 9092static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9093 PyObject *resultobj;
9094 wxFont *arg1 = (wxFont *) 0 ;
9095 int arg2 ;
9096 PyObject * obj0 = 0 ;
9097 PyObject * obj1 = 0 ;
9098 char *kwnames[] = {
9099 (char *) "self",(char *) "pointSize", NULL
9100 };
9101
9102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
9103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9105 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9106 if (PyErr_Occurred()) SWIG_fail;
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 (arg1)->SetPointSize(arg2);
9110
9111 wxPyEndAllowThreads(__tstate);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 Py_INCREF(Py_None); resultobj = Py_None;
9115 return resultobj;
9116 fail:
9117 return NULL;
9118}
9119
9120
5e483524
RD
9121static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9122 PyObject *resultobj;
9123 wxFont *arg1 = (wxFont *) 0 ;
9124 wxSize *arg2 = 0 ;
9125 wxSize temp2 ;
9126 PyObject * obj0 = 0 ;
9127 PyObject * obj1 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self",(char *) "pixelSize", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
9133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9135 {
9136 arg2 = &temp2;
9137 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9138 }
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 (arg1)->SetPixelSize((wxSize const &)*arg2);
9142
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 Py_INCREF(Py_None); resultobj = Py_None;
9147 return resultobj;
9148 fail:
9149 return NULL;
9150}
9151
9152
c32bde28 9153static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9154 PyObject *resultobj;
9155 wxFont *arg1 = (wxFont *) 0 ;
9156 int arg2 ;
9157 PyObject * obj0 = 0 ;
9158 PyObject * obj1 = 0 ;
9159 char *kwnames[] = {
9160 (char *) "self",(char *) "family", NULL
9161 };
9162
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
9164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9166 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9167 if (PyErr_Occurred()) SWIG_fail;
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 (arg1)->SetFamily(arg2);
9171
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 Py_INCREF(Py_None); resultobj = Py_None;
9176 return resultobj;
9177 fail:
9178 return NULL;
9179}
9180
9181
c32bde28 9182static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9183 PyObject *resultobj;
9184 wxFont *arg1 = (wxFont *) 0 ;
9185 int arg2 ;
9186 PyObject * obj0 = 0 ;
9187 PyObject * obj1 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self",(char *) "style", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9195 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9196 if (PyErr_Occurred()) SWIG_fail;
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->SetStyle(arg2);
9200
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 Py_INCREF(Py_None); resultobj = Py_None;
9205 return resultobj;
9206 fail:
9207 return NULL;
9208}
9209
9210
c32bde28 9211static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9212 PyObject *resultobj;
9213 wxFont *arg1 = (wxFont *) 0 ;
9214 int arg2 ;
9215 PyObject * obj0 = 0 ;
9216 PyObject * obj1 = 0 ;
9217 char *kwnames[] = {
9218 (char *) "self",(char *) "weight", NULL
9219 };
9220
9221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
9222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9224 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9225 if (PyErr_Occurred()) SWIG_fail;
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 (arg1)->SetWeight(arg2);
9229
9230 wxPyEndAllowThreads(__tstate);
9231 if (PyErr_Occurred()) SWIG_fail;
9232 }
9233 Py_INCREF(Py_None); resultobj = Py_None;
9234 return resultobj;
9235 fail:
9236 return NULL;
9237}
9238
9239
c32bde28 9240static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9241 PyObject *resultobj;
9242 wxFont *arg1 = (wxFont *) 0 ;
9243 wxString *arg2 = 0 ;
ae8162c8 9244 bool temp2 = false ;
d55e5bfc
RD
9245 PyObject * obj0 = 0 ;
9246 PyObject * obj1 = 0 ;
9247 char *kwnames[] = {
9248 (char *) "self",(char *) "faceName", NULL
9249 };
9250
9251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
9252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9254 {
9255 arg2 = wxString_in_helper(obj1);
9256 if (arg2 == NULL) SWIG_fail;
ae8162c8 9257 temp2 = true;
d55e5bfc
RD
9258 }
9259 {
9260 PyThreadState* __tstate = wxPyBeginAllowThreads();
9261 (arg1)->SetFaceName((wxString const &)*arg2);
9262
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 Py_INCREF(Py_None); resultobj = Py_None;
9267 {
9268 if (temp2)
9269 delete arg2;
9270 }
9271 return resultobj;
9272 fail:
9273 {
9274 if (temp2)
9275 delete arg2;
9276 }
9277 return NULL;
9278}
9279
9280
c32bde28 9281static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9282 PyObject *resultobj;
9283 wxFont *arg1 = (wxFont *) 0 ;
9284 bool arg2 ;
9285 PyObject * obj0 = 0 ;
9286 PyObject * obj1 = 0 ;
9287 char *kwnames[] = {
9288 (char *) "self",(char *) "underlined", NULL
9289 };
9290
9291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
9292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9294 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
9295 if (PyErr_Occurred()) SWIG_fail;
9296 {
9297 PyThreadState* __tstate = wxPyBeginAllowThreads();
9298 (arg1)->SetUnderlined(arg2);
9299
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 Py_INCREF(Py_None); resultobj = Py_None;
9304 return resultobj;
9305 fail:
9306 return NULL;
9307}
9308
9309
c32bde28 9310static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9311 PyObject *resultobj;
9312 wxFont *arg1 = (wxFont *) 0 ;
9313 int arg2 ;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 char *kwnames[] = {
9317 (char *) "self",(char *) "encoding", NULL
9318 };
9319
9320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
9321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9323 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9324 if (PyErr_Occurred()) SWIG_fail;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 (arg1)->SetEncoding((wxFontEncoding )arg2);
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 Py_INCREF(Py_None); resultobj = Py_None;
9333 return resultobj;
9334 fail:
9335 return NULL;
9336}
9337
9338
c32bde28 9339static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9340 PyObject *resultobj;
9341 wxFont *arg1 = (wxFont *) 0 ;
9342 wxNativeFontInfo *arg2 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 char *kwnames[] = {
9346 (char *) "self",(char *) "info", NULL
9347 };
9348
9349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
9350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
9353 SWIG_POINTER_EXCEPTION | 0)) == -1)
9354 SWIG_fail;
9355 if (arg2 == NULL) {
9356 PyErr_SetString(PyExc_TypeError,"null reference");
9357 SWIG_fail;
9358 }
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 Py_INCREF(Py_None); resultobj = Py_None;
9367 return resultobj;
9368 fail:
9369 return NULL;
9370}
9371
9372
c32bde28 9373static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9374 PyObject *resultobj;
9375 wxFont *arg1 = (wxFont *) 0 ;
9376 wxString *arg2 = 0 ;
ae8162c8 9377 bool temp2 = false ;
d55e5bfc
RD
9378 PyObject * obj0 = 0 ;
9379 PyObject * obj1 = 0 ;
9380 char *kwnames[] = {
9381 (char *) "self",(char *) "info", NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9387 {
9388 arg2 = wxString_in_helper(obj1);
9389 if (arg2 == NULL) SWIG_fail;
ae8162c8 9390 temp2 = true;
d55e5bfc
RD
9391 }
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 Py_INCREF(Py_None); resultobj = Py_None;
9400 {
9401 if (temp2)
9402 delete arg2;
9403 }
9404 return resultobj;
9405 fail:
9406 {
9407 if (temp2)
9408 delete arg2;
9409 }
9410 return NULL;
9411}
9412
9413
c32bde28 9414static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9415 PyObject *resultobj;
9416 wxFont *arg1 = (wxFont *) 0 ;
9417 wxString *arg2 = 0 ;
ae8162c8 9418 bool temp2 = false ;
d55e5bfc
RD
9419 PyObject * obj0 = 0 ;
9420 PyObject * obj1 = 0 ;
9421 char *kwnames[] = {
9422 (char *) "self",(char *) "info", NULL
9423 };
9424
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9428 {
9429 arg2 = wxString_in_helper(obj1);
9430 if (arg2 == NULL) SWIG_fail;
ae8162c8 9431 temp2 = true;
d55e5bfc
RD
9432 }
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9436
9437 wxPyEndAllowThreads(__tstate);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 Py_INCREF(Py_None); resultobj = Py_None;
9441 {
9442 if (temp2)
9443 delete arg2;
9444 }
9445 return resultobj;
9446 fail:
9447 {
9448 if (temp2)
9449 delete arg2;
9450 }
9451 return NULL;
9452}
9453
9454
c32bde28 9455static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9456 PyObject *resultobj;
9457 wxFont *arg1 = (wxFont *) 0 ;
9458 wxString result;
9459 PyObject * obj0 = 0 ;
9460 char *kwnames[] = {
9461 (char *) "self", NULL
9462 };
9463
9464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 result = ((wxFont const *)arg1)->GetFamilyString();
9470
9471 wxPyEndAllowThreads(__tstate);
9472 if (PyErr_Occurred()) SWIG_fail;
9473 }
9474 {
9475#if wxUSE_UNICODE
9476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9477#else
9478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9479#endif
9480 }
9481 return resultobj;
9482 fail:
9483 return NULL;
9484}
9485
9486
c32bde28 9487static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9488 PyObject *resultobj;
9489 wxFont *arg1 = (wxFont *) 0 ;
9490 wxString result;
9491 PyObject * obj0 = 0 ;
9492 char *kwnames[] = {
9493 (char *) "self", NULL
9494 };
9495
9496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 result = ((wxFont const *)arg1)->GetStyleString();
9502
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 {
9507#if wxUSE_UNICODE
9508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9509#else
9510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9511#endif
9512 }
9513 return resultobj;
9514 fail:
9515 return NULL;
9516}
9517
9518
c32bde28 9519static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9520 PyObject *resultobj;
9521 wxFont *arg1 = (wxFont *) 0 ;
9522 wxString result;
9523 PyObject * obj0 = 0 ;
9524 char *kwnames[] = {
9525 (char *) "self", NULL
9526 };
9527
9528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = ((wxFont const *)arg1)->GetWeightString();
9534
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 {
9539#if wxUSE_UNICODE
9540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9541#else
9542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9543#endif
9544 }
9545 return resultobj;
9546 fail:
9547 return NULL;
9548}
9549
9550
c32bde28 9551static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9552 PyObject *resultobj;
9553 wxFont *arg1 = (wxFont *) 0 ;
ae8162c8 9554 bool arg2 = (bool) true ;
d55e5bfc
RD
9555 PyObject * obj0 = 0 ;
9556 PyObject * obj1 = 0 ;
9557 char *kwnames[] = {
9558 (char *) "self",(char *) "no", NULL
9559 };
9560
9561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9564 if (obj1) {
c32bde28 9565 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
9568 {
9569 PyThreadState* __tstate = wxPyBeginAllowThreads();
9570 (arg1)->SetNoAntiAliasing(arg2);
9571
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 Py_INCREF(Py_None); resultobj = Py_None;
9576 return resultobj;
9577 fail:
9578 return NULL;
9579}
9580
9581
c32bde28 9582static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9583 PyObject *resultobj;
9584 wxFont *arg1 = (wxFont *) 0 ;
9585 bool result;
9586 PyObject * obj0 = 0 ;
9587 char *kwnames[] = {
9588 (char *) "self", NULL
9589 };
9590
9591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9594 {
9595 PyThreadState* __tstate = wxPyBeginAllowThreads();
b0f7404b 9596 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d55e5bfc
RD
9597
9598 wxPyEndAllowThreads(__tstate);
9599 if (PyErr_Occurred()) SWIG_fail;
9600 }
9601 {
9602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9603 }
9604 return resultobj;
9605 fail:
9606 return NULL;
9607}
9608
9609
c32bde28 9610static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9611 PyObject *resultobj;
9612 int result;
9613 char *kwnames[] = {
9614 NULL
9615 };
9616
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9618 {
0439c23b 9619 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 result = (int)wxFont::GetDefaultEncoding();
9622
9623 wxPyEndAllowThreads(__tstate);
110da5b0 9624 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9625 }
c32bde28 9626 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9627 return resultobj;
9628 fail:
9629 return NULL;
9630}
9631
9632
c32bde28 9633static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9634 PyObject *resultobj;
9635 int arg1 ;
9636 PyObject * obj0 = 0 ;
9637 char *kwnames[] = {
9638 (char *) "encoding", NULL
9639 };
9640
9641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
c32bde28 9642 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9643 if (PyErr_Occurred()) SWIG_fail;
9644 {
0439c23b 9645 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9648
9649 wxPyEndAllowThreads(__tstate);
110da5b0 9650 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9651 }
9652 Py_INCREF(Py_None); resultobj = Py_None;
9653 return resultobj;
9654 fail:
9655 return NULL;
9656}
9657
9658
c32bde28 9659static PyObject * Font_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9660 PyObject *obj;
9661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9662 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9663 Py_INCREF(obj);
9664 return Py_BuildValue((char *)"");
9665}
c32bde28 9666static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9667 PyObject *resultobj;
9668 wxPyFontEnumerator *result;
9669 char *kwnames[] = {
9670 NULL
9671 };
9672
9673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9674 {
0439c23b 9675 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
9677 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9678
9679 wxPyEndAllowThreads(__tstate);
110da5b0 9680 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9681 }
9682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9683 return resultobj;
9684 fail:
9685 return NULL;
9686}
9687
9688
c32bde28 9689static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9690 PyObject *resultobj;
9691 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9692 PyObject * obj0 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 {
9701 PyThreadState* __tstate = wxPyBeginAllowThreads();
9702 delete arg1;
9703
9704 wxPyEndAllowThreads(__tstate);
9705 if (PyErr_Occurred()) SWIG_fail;
9706 }
9707 Py_INCREF(Py_None); resultobj = Py_None;
9708 return resultobj;
9709 fail:
9710 return NULL;
9711}
9712
9713
c32bde28 9714static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9715 PyObject *resultobj;
9716 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9717 PyObject *arg2 = (PyObject *) 0 ;
9718 PyObject *arg3 = (PyObject *) 0 ;
9719 bool arg4 ;
9720 PyObject * obj0 = 0 ;
9721 PyObject * obj1 = 0 ;
9722 PyObject * obj2 = 0 ;
9723 PyObject * obj3 = 0 ;
9724 char *kwnames[] = {
9725 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9726 };
9727
9728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9731 arg2 = obj1;
9732 arg3 = obj2;
c32bde28 9733 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
9734 if (PyErr_Occurred()) SWIG_fail;
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9738
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
9742 Py_INCREF(Py_None); resultobj = Py_None;
9743 return resultobj;
9744 fail:
9745 return NULL;
9746}
9747
9748
c32bde28 9749static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9750 PyObject *resultobj;
9751 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9752 int arg2 = (int) wxFONTENCODING_SYSTEM ;
ae8162c8 9753 bool arg3 = (bool) false ;
d55e5bfc
RD
9754 bool result;
9755 PyObject * obj0 = 0 ;
9756 PyObject * obj1 = 0 ;
9757 PyObject * obj2 = 0 ;
9758 char *kwnames[] = {
9759 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9760 };
9761
9762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9765 if (obj1) {
c32bde28 9766 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 if (obj2) {
c32bde28 9770 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
9773 {
9774 PyThreadState* __tstate = wxPyBeginAllowThreads();
9775 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9776
9777 wxPyEndAllowThreads(__tstate);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 }
9780 {
9781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9782 }
9783 return resultobj;
9784 fail:
9785 return NULL;
9786}
9787
9788
c32bde28 9789static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9790 PyObject *resultobj;
9791 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9792 wxString const &arg2_defvalue = wxPyEmptyString ;
9793 wxString *arg2 = (wxString *) &arg2_defvalue ;
9794 bool result;
ae8162c8 9795 bool temp2 = false ;
d55e5bfc
RD
9796 PyObject * obj0 = 0 ;
9797 PyObject * obj1 = 0 ;
9798 char *kwnames[] = {
9799 (char *) "self",(char *) "facename", NULL
9800 };
9801
9802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9805 if (obj1) {
9806 {
9807 arg2 = wxString_in_helper(obj1);
9808 if (arg2 == NULL) SWIG_fail;
ae8162c8 9809 temp2 = true;
d55e5bfc
RD
9810 }
9811 }
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 {
9820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9821 }
9822 {
9823 if (temp2)
9824 delete arg2;
9825 }
9826 return resultobj;
9827 fail:
9828 {
9829 if (temp2)
9830 delete arg2;
9831 }
9832 return NULL;
9833}
9834
9835
c32bde28 9836static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9837 PyObject *resultobj;
9838 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9839 PyObject *result;
9840 PyObject * obj0 = 0 ;
9841 char *kwnames[] = {
9842 (char *) "self", NULL
9843 };
9844
9845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9851
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = result;
9856 return resultobj;
9857 fail:
9858 return NULL;
9859}
9860
9861
c32bde28 9862static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9863 PyObject *resultobj;
9864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9865 PyObject *result;
9866 PyObject * obj0 = 0 ;
9867 char *kwnames[] = {
9868 (char *) "self", NULL
9869 };
9870
9871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9877
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 resultobj = result;
9882 return resultobj;
9883 fail:
9884 return NULL;
9885}
9886
9887
c32bde28 9888static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9889 PyObject *obj;
9890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9891 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9892 Py_INCREF(obj);
9893 return Py_BuildValue((char *)"");
9894}
c32bde28 9895static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9896 PyObject *resultobj;
9897 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9898 int arg2 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9901 char *kwnames[] = {
9902 (char *) "self",(char *) "Language", NULL
9903 };
9904
9905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9908 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9909 if (PyErr_Occurred()) SWIG_fail;
9910 if (arg1) (arg1)->Language = arg2;
9911
9912 Py_INCREF(Py_None); resultobj = Py_None;
9913 return resultobj;
9914 fail:
9915 return NULL;
9916}
9917
9918
c32bde28 9919static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9920 PyObject *resultobj;
9921 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9922 int result;
9923 PyObject * obj0 = 0 ;
9924 char *kwnames[] = {
9925 (char *) "self", NULL
9926 };
9927
9928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9931 result = (int) ((arg1)->Language);
9932
c32bde28 9933 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9934 return resultobj;
9935 fail:
9936 return NULL;
9937}
9938
9939
c32bde28 9940static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9941 PyObject *resultobj;
9942 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9943 wxString *arg2 = (wxString *) 0 ;
ae8162c8 9944 bool temp2 = false ;
d55e5bfc
RD
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 char *kwnames[] = {
9948 (char *) "self",(char *) "CanonicalName", NULL
9949 };
9950
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9954 {
9955 arg2 = wxString_in_helper(obj1);
9956 if (arg2 == NULL) SWIG_fail;
ae8162c8 9957 temp2 = true;
d55e5bfc
RD
9958 }
9959 if (arg1) (arg1)->CanonicalName = *arg2;
9960
9961 Py_INCREF(Py_None); resultobj = Py_None;
9962 {
9963 if (temp2)
9964 delete arg2;
9965 }
9966 return resultobj;
9967 fail:
9968 {
9969 if (temp2)
9970 delete arg2;
9971 }
9972 return NULL;
9973}
9974
9975
c32bde28 9976static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9977 PyObject *resultobj;
9978 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9979 wxString *result;
9980 PyObject * obj0 = 0 ;
9981 char *kwnames[] = {
9982 (char *) "self", NULL
9983 };
9984
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9988 result = (wxString *)& ((arg1)->CanonicalName);
9989
9990 {
9991#if wxUSE_UNICODE
9992 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9993#else
9994 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9995#endif
9996 }
9997 return resultobj;
9998 fail:
9999 return NULL;
10000}
10001
10002
c32bde28 10003static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10004 PyObject *resultobj;
10005 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10006 wxString *arg2 = (wxString *) 0 ;
ae8162c8 10007 bool temp2 = false ;
d55e5bfc
RD
10008 PyObject * obj0 = 0 ;
10009 PyObject * obj1 = 0 ;
10010 char *kwnames[] = {
10011 (char *) "self",(char *) "Description", NULL
10012 };
10013
10014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
10015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10017 {
10018 arg2 = wxString_in_helper(obj1);
10019 if (arg2 == NULL) SWIG_fail;
ae8162c8 10020 temp2 = true;
d55e5bfc
RD
10021 }
10022 if (arg1) (arg1)->Description = *arg2;
10023
10024 Py_INCREF(Py_None); resultobj = Py_None;
10025 {
10026 if (temp2)
10027 delete arg2;
10028 }
10029 return resultobj;
10030 fail:
10031 {
10032 if (temp2)
10033 delete arg2;
10034 }
10035 return NULL;
10036}
10037
10038
c32bde28 10039static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10040 PyObject *resultobj;
10041 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10042 wxString *result;
10043 PyObject * obj0 = 0 ;
10044 char *kwnames[] = {
10045 (char *) "self", NULL
10046 };
10047
10048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
10049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10051 result = (wxString *)& ((arg1)->Description);
10052
10053 {
10054#if wxUSE_UNICODE
10055 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10056#else
10057 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10058#endif
10059 }
10060 return resultobj;
10061 fail:
10062 return NULL;
10063}
10064
10065
c32bde28 10066static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10067 PyObject *obj;
10068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10069 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
10070 Py_INCREF(obj);
10071 return Py_BuildValue((char *)"");
10072}
c32bde28 10073static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 10074 PyObject *resultobj;
79fccf9d 10075 int arg1 = (int) -1 ;
d55e5bfc
RD
10076 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
10077 wxLocale *result;
10078 PyObject * obj0 = 0 ;
10079 PyObject * obj1 = 0 ;
10080 char *kwnames[] = {
10081 (char *) "language",(char *) "flags", NULL
10082 };
10083
10084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
10085 if (obj0) {
c32bde28 10086 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10087 if (PyErr_Occurred()) SWIG_fail;
10088 }
10089 if (obj1) {
c32bde28 10090 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
79fccf9d 10095 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
10101 return resultobj;
10102 fail:
10103 return NULL;
10104}
10105
10106
c32bde28 10107static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10108 PyObject *resultobj;
10109 wxLocale *arg1 = (wxLocale *) 0 ;
10110 PyObject * obj0 = 0 ;
10111 char *kwnames[] = {
10112 (char *) "self", NULL
10113 };
10114
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
10116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 delete arg1;
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129}
10130
10131
c32bde28 10132static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10133 PyObject *resultobj;
10134 wxLocale *arg1 = (wxLocale *) 0 ;
10135 wxString *arg2 = 0 ;
10136 wxString const &arg3_defvalue = wxPyEmptyString ;
10137 wxString *arg3 = (wxString *) &arg3_defvalue ;
10138 wxString const &arg4_defvalue = wxPyEmptyString ;
10139 wxString *arg4 = (wxString *) &arg4_defvalue ;
ae8162c8
RD
10140 bool arg5 = (bool) true ;
10141 bool arg6 = (bool) false ;
d55e5bfc 10142 bool result;
ae8162c8
RD
10143 bool temp2 = false ;
10144 bool temp3 = false ;
10145 bool temp4 = false ;
d55e5bfc
RD
10146 PyObject * obj0 = 0 ;
10147 PyObject * obj1 = 0 ;
10148 PyObject * obj2 = 0 ;
10149 PyObject * obj3 = 0 ;
10150 PyObject * obj4 = 0 ;
10151 PyObject * obj5 = 0 ;
10152 char *kwnames[] = {
10153 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
10154 };
10155
10156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10159 {
10160 arg2 = wxString_in_helper(obj1);
10161 if (arg2 == NULL) SWIG_fail;
ae8162c8 10162 temp2 = true;
d55e5bfc
RD
10163 }
10164 if (obj2) {
10165 {
10166 arg3 = wxString_in_helper(obj2);
10167 if (arg3 == NULL) SWIG_fail;
ae8162c8 10168 temp3 = true;
d55e5bfc
RD
10169 }
10170 }
10171 if (obj3) {
10172 {
10173 arg4 = wxString_in_helper(obj3);
10174 if (arg4 == NULL) SWIG_fail;
ae8162c8 10175 temp4 = true;
d55e5bfc
RD
10176 }
10177 }
10178 if (obj4) {
c32bde28 10179 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 if (obj5) {
c32bde28 10183 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 {
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
10189
10190 wxPyEndAllowThreads(__tstate);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 {
10194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10195 }
10196 {
10197 if (temp2)
10198 delete arg2;
10199 }
10200 {
10201 if (temp3)
10202 delete arg3;
10203 }
10204 {
10205 if (temp4)
10206 delete arg4;
10207 }
10208 return resultobj;
10209 fail:
10210 {
10211 if (temp2)
10212 delete arg2;
10213 }
10214 {
10215 if (temp3)
10216 delete arg3;
10217 }
10218 {
10219 if (temp4)
10220 delete arg4;
10221 }
10222 return NULL;
10223}
10224
10225
c32bde28 10226static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10227 PyObject *resultobj;
10228 wxLocale *arg1 = (wxLocale *) 0 ;
10229 int arg2 = (int) wxLANGUAGE_DEFAULT ;
10230 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
10231 bool result;
10232 PyObject * obj0 = 0 ;
10233 PyObject * obj1 = 0 ;
10234 PyObject * obj2 = 0 ;
10235 char *kwnames[] = {
10236 (char *) "self",(char *) "language",(char *) "flags", NULL
10237 };
10238
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
10240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10242 if (obj1) {
c32bde28 10243 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 if (obj2) {
c32bde28 10247 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10248 if (PyErr_Occurred()) SWIG_fail;
10249 }
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (bool)(arg1)->Init(arg2,arg3);
10253
10254 wxPyEndAllowThreads(__tstate);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 }
10257 {
10258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10259 }
10260 return resultobj;
10261 fail:
10262 return NULL;
10263}
10264
10265
c32bde28 10266static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10267 PyObject *resultobj;
10268 int result;
10269 char *kwnames[] = {
10270 NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 result = (int)wxLocale::GetSystemLanguage();
10277
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
c32bde28 10281 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10282 return resultobj;
10283 fail:
10284 return NULL;
10285}
10286
10287
c32bde28 10288static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10289 PyObject *resultobj;
10290 int result;
10291 char *kwnames[] = {
10292 NULL
10293 };
10294
10295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 result = (int)wxLocale::GetSystemEncoding();
10299
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
c32bde28 10303 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10304 return resultobj;
10305 fail:
10306 return NULL;
10307}
10308
10309
c32bde28 10310static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10311 PyObject *resultobj;
10312 wxString result;
10313 char *kwnames[] = {
10314 NULL
10315 };
10316
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
10318 {
10319 PyThreadState* __tstate = wxPyBeginAllowThreads();
10320 result = wxLocale::GetSystemEncodingName();
10321
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 {
10326#if wxUSE_UNICODE
10327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10328#else
10329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10330#endif
10331 }
10332 return resultobj;
10333 fail:
10334 return NULL;
10335}
10336
10337
c32bde28 10338static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10339 PyObject *resultobj;
10340 wxLocale *arg1 = (wxLocale *) 0 ;
10341 bool result;
10342 PyObject * obj0 = 0 ;
10343 char *kwnames[] = {
10344 (char *) "self", NULL
10345 };
10346
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
10348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 result = (bool)((wxLocale const *)arg1)->IsOk();
10353
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 {
10358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10359 }
10360 return resultobj;
10361 fail:
10362 return NULL;
10363}
10364
10365
c32bde28 10366static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10367 PyObject *resultobj;
10368 wxLocale *arg1 = (wxLocale *) 0 ;
10369 wxString result;
10370 PyObject * obj0 = 0 ;
10371 char *kwnames[] = {
10372 (char *) "self", NULL
10373 };
10374
10375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
10376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = ((wxLocale const *)arg1)->GetLocale();
10381
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386#if wxUSE_UNICODE
10387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10388#else
10389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10390#endif
10391 }
10392 return resultobj;
10393 fail:
10394 return NULL;
10395}
10396
10397
c32bde28 10398static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10399 PyObject *resultobj;
10400 wxLocale *arg1 = (wxLocale *) 0 ;
10401 int result;
10402 PyObject * obj0 = 0 ;
10403 char *kwnames[] = {
10404 (char *) "self", NULL
10405 };
10406
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
10408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 result = (int)((wxLocale const *)arg1)->GetLanguage();
10413
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
c32bde28 10417 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10418 return resultobj;
10419 fail:
10420 return NULL;
10421}
10422
10423
c32bde28 10424static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10425 PyObject *resultobj;
10426 wxLocale *arg1 = (wxLocale *) 0 ;
10427 wxString result;
10428 PyObject * obj0 = 0 ;
10429 char *kwnames[] = {
10430 (char *) "self", NULL
10431 };
10432
10433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = ((wxLocale const *)arg1)->GetSysName();
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 {
10444#if wxUSE_UNICODE
10445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10446#else
10447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10448#endif
10449 }
10450 return resultobj;
10451 fail:
10452 return NULL;
10453}
10454
10455
c32bde28 10456static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10457 PyObject *resultobj;
10458 wxLocale *arg1 = (wxLocale *) 0 ;
10459 wxString result;
10460 PyObject * obj0 = 0 ;
10461 char *kwnames[] = {
10462 (char *) "self", NULL
10463 };
10464
10465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 result = ((wxLocale const *)arg1)->GetCanonicalName();
10471
10472 wxPyEndAllowThreads(__tstate);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 }
10475 {
10476#if wxUSE_UNICODE
10477 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10478#else
10479 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10480#endif
10481 }
10482 return resultobj;
10483 fail:
10484 return NULL;
10485}
10486
10487
c32bde28 10488static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10489 PyObject *resultobj;
10490 wxString *arg1 = 0 ;
ae8162c8 10491 bool temp1 = false ;
d55e5bfc
RD
10492 PyObject * obj0 = 0 ;
10493 char *kwnames[] = {
10494 (char *) "prefix", NULL
10495 };
10496
10497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10498 {
10499 arg1 = wxString_in_helper(obj0);
10500 if (arg1 == NULL) SWIG_fail;
ae8162c8 10501 temp1 = true;
d55e5bfc
RD
10502 }
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10506
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 Py_INCREF(Py_None); resultobj = Py_None;
10511 {
10512 if (temp1)
10513 delete arg1;
10514 }
10515 return resultobj;
10516 fail:
10517 {
10518 if (temp1)
10519 delete arg1;
10520 }
10521 return NULL;
10522}
10523
10524
c32bde28 10525static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10526 PyObject *resultobj;
10527 wxLocale *arg1 = (wxLocale *) 0 ;
10528 wxString *arg2 = 0 ;
10529 bool result;
ae8162c8 10530 bool temp2 = false ;
d55e5bfc
RD
10531 PyObject * obj0 = 0 ;
10532 PyObject * obj1 = 0 ;
10533 char *kwnames[] = {
10534 (char *) "self",(char *) "szDomain", NULL
10535 };
10536
10537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10540 {
10541 arg2 = wxString_in_helper(obj1);
10542 if (arg2 == NULL) SWIG_fail;
ae8162c8 10543 temp2 = true;
d55e5bfc
RD
10544 }
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10548
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 {
10553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10554 }
10555 {
10556 if (temp2)
10557 delete arg2;
10558 }
10559 return resultobj;
10560 fail:
10561 {
10562 if (temp2)
10563 delete arg2;
10564 }
10565 return NULL;
10566}
10567
10568
c32bde28 10569static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10570 PyObject *resultobj;
10571 wxLocale *arg1 = (wxLocale *) 0 ;
10572 wxString *arg2 = 0 ;
10573 bool result;
ae8162c8 10574 bool temp2 = false ;
d55e5bfc
RD
10575 PyObject * obj0 = 0 ;
10576 PyObject * obj1 = 0 ;
10577 char *kwnames[] = {
10578 (char *) "self",(char *) "szDomain", NULL
10579 };
10580
10581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10584 {
10585 arg2 = wxString_in_helper(obj1);
10586 if (arg2 == NULL) SWIG_fail;
ae8162c8 10587 temp2 = true;
d55e5bfc
RD
10588 }
10589 {
10590 PyThreadState* __tstate = wxPyBeginAllowThreads();
10591 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10592
10593 wxPyEndAllowThreads(__tstate);
10594 if (PyErr_Occurred()) SWIG_fail;
10595 }
10596 {
10597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10598 }
10599 {
10600 if (temp2)
10601 delete arg2;
10602 }
10603 return resultobj;
10604 fail:
10605 {
10606 if (temp2)
10607 delete arg2;
10608 }
10609 return NULL;
10610}
10611
10612
c32bde28 10613static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10614 PyObject *resultobj;
10615 int arg1 ;
10616 wxLanguageInfo *result;
10617 PyObject * obj0 = 0 ;
10618 char *kwnames[] = {
10619 (char *) "lang", NULL
10620 };
10621
10622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
c32bde28 10623 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10624 if (PyErr_Occurred()) SWIG_fail;
10625 {
10626 PyThreadState* __tstate = wxPyBeginAllowThreads();
10627 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10628
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10633 return resultobj;
10634 fail:
10635 return NULL;
10636}
10637
10638
c32bde28 10639static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10640 PyObject *resultobj;
10641 int arg1 ;
10642 wxString result;
10643 PyObject * obj0 = 0 ;
10644 char *kwnames[] = {
10645 (char *) "lang", NULL
10646 };
10647
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
c32bde28 10649 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10650 if (PyErr_Occurred()) SWIG_fail;
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 result = wxLocale::GetLanguageName(arg1);
10654
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 {
10659#if wxUSE_UNICODE
10660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10661#else
10662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10663#endif
10664 }
10665 return resultobj;
10666 fail:
10667 return NULL;
10668}
10669
10670
c32bde28 10671static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10672 PyObject *resultobj;
10673 wxString *arg1 = 0 ;
10674 wxLanguageInfo *result;
ae8162c8 10675 bool temp1 = false ;
d55e5bfc
RD
10676 PyObject * obj0 = 0 ;
10677 char *kwnames[] = {
10678 (char *) "locale", NULL
10679 };
10680
10681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10682 {
10683 arg1 = wxString_in_helper(obj0);
10684 if (arg1 == NULL) SWIG_fail;
ae8162c8 10685 temp1 = true;
d55e5bfc
RD
10686 }
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10690
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10695 {
10696 if (temp1)
10697 delete arg1;
10698 }
10699 return resultobj;
10700 fail:
10701 {
10702 if (temp1)
10703 delete arg1;
10704 }
10705 return NULL;
10706}
10707
10708
c32bde28 10709static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10710 PyObject *resultobj;
10711 wxLanguageInfo *arg1 = 0 ;
10712 PyObject * obj0 = 0 ;
10713 char *kwnames[] = {
10714 (char *) "info", NULL
10715 };
10716
10717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10719 SWIG_POINTER_EXCEPTION | 0)) == -1)
10720 SWIG_fail;
10721 if (arg1 == NULL) {
10722 PyErr_SetString(PyExc_TypeError,"null reference");
10723 SWIG_fail;
10724 }
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10728
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 Py_INCREF(Py_None); resultobj = Py_None;
10733 return resultobj;
10734 fail:
10735 return NULL;
10736}
10737
10738
c32bde28 10739static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10740 PyObject *resultobj;
10741 wxLocale *arg1 = (wxLocale *) 0 ;
10742 wxString *arg2 = 0 ;
10743 wxString const &arg3_defvalue = wxPyEmptyString ;
10744 wxString *arg3 = (wxString *) &arg3_defvalue ;
10745 wxString result;
ae8162c8
RD
10746 bool temp2 = false ;
10747 bool temp3 = false ;
d55e5bfc
RD
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 PyObject * obj2 = 0 ;
10751 char *kwnames[] = {
10752 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10753 };
10754
10755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10758 {
10759 arg2 = wxString_in_helper(obj1);
10760 if (arg2 == NULL) SWIG_fail;
ae8162c8 10761 temp2 = true;
d55e5bfc
RD
10762 }
10763 if (obj2) {
10764 {
10765 arg3 = wxString_in_helper(obj2);
10766 if (arg3 == NULL) SWIG_fail;
ae8162c8 10767 temp3 = true;
d55e5bfc
RD
10768 }
10769 }
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10773
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 {
10778#if wxUSE_UNICODE
10779 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10780#else
10781 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10782#endif
10783 }
10784 {
10785 if (temp2)
10786 delete arg2;
10787 }
10788 {
10789 if (temp3)
10790 delete arg3;
10791 }
10792 return resultobj;
10793 fail:
10794 {
10795 if (temp2)
10796 delete arg2;
10797 }
10798 {
10799 if (temp3)
10800 delete arg3;
10801 }
10802 return NULL;
10803}
10804
10805
c32bde28 10806static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10807 PyObject *resultobj;
10808 wxLocale *arg1 = (wxLocale *) 0 ;
10809 wxString *result;
10810 PyObject * obj0 = 0 ;
10811 char *kwnames[] = {
10812 (char *) "self", NULL
10813 };
10814
10815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 {
10821 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10822 result = (wxString *) &_result_ref;
10823 }
10824
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 {
10829#if wxUSE_UNICODE
10830 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10831#else
10832 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10833#endif
10834 }
10835 return resultobj;
10836 fail:
10837 return NULL;
10838}
10839
10840
c32bde28 10841static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10842 PyObject *obj;
10843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10844 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10845 Py_INCREF(obj);
10846 return Py_BuildValue((char *)"");
10847}
c32bde28 10848static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10849 PyObject *resultobj;
10850 wxLocale *result;
10851 char *kwnames[] = {
10852 NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 result = (wxLocale *)wxGetLocale();
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10864 return resultobj;
10865 fail:
10866 return NULL;
10867}
10868
10869
c32bde28 10870static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
10871 PyObject *resultobj;
10872 wxString *arg1 = 0 ;
10873 wxString result;
ae8162c8 10874 bool temp1 = false ;
d55e5bfc
RD
10875 PyObject * obj0 = 0 ;
10876
10877 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10878 {
10879 arg1 = wxString_in_helper(obj0);
10880 if (arg1 == NULL) SWIG_fail;
ae8162c8 10881 temp1 = true;
d55e5bfc
RD
10882 }
10883 {
10884 PyThreadState* __tstate = wxPyBeginAllowThreads();
10885 result = wxGetTranslation((wxString const &)*arg1);
10886
10887 wxPyEndAllowThreads(__tstate);
10888 if (PyErr_Occurred()) SWIG_fail;
10889 }
10890 {
10891#if wxUSE_UNICODE
10892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10893#else
10894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10895#endif
10896 }
10897 {
10898 if (temp1)
10899 delete arg1;
10900 }
10901 return resultobj;
10902 fail:
10903 {
10904 if (temp1)
10905 delete arg1;
10906 }
10907 return NULL;
10908}
10909
10910
c32bde28 10911static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
10912 PyObject *resultobj;
10913 wxString *arg1 = 0 ;
10914 wxString *arg2 = 0 ;
10915 size_t arg3 ;
10916 wxString result;
ae8162c8
RD
10917 bool temp1 = false ;
10918 bool temp2 = false ;
d55e5bfc
RD
10919 PyObject * obj0 = 0 ;
10920 PyObject * obj1 = 0 ;
10921 PyObject * obj2 = 0 ;
10922
10923 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10924 {
10925 arg1 = wxString_in_helper(obj0);
10926 if (arg1 == NULL) SWIG_fail;
ae8162c8 10927 temp1 = true;
d55e5bfc
RD
10928 }
10929 {
10930 arg2 = wxString_in_helper(obj1);
10931 if (arg2 == NULL) SWIG_fail;
ae8162c8 10932 temp2 = true;
d55e5bfc 10933 }
c32bde28 10934 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
d55e5bfc
RD
10935 if (PyErr_Occurred()) SWIG_fail;
10936 {
10937 PyThreadState* __tstate = wxPyBeginAllowThreads();
10938 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10939
10940 wxPyEndAllowThreads(__tstate);
10941 if (PyErr_Occurred()) SWIG_fail;
10942 }
10943 {
10944#if wxUSE_UNICODE
10945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10946#else
10947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10948#endif
10949 }
10950 {
10951 if (temp1)
10952 delete arg1;
10953 }
10954 {
10955 if (temp2)
10956 delete arg2;
10957 }
10958 return resultobj;
10959 fail:
10960 {
10961 if (temp1)
10962 delete arg1;
10963 }
10964 {
10965 if (temp2)
10966 delete arg2;
10967 }
10968 return NULL;
10969}
10970
10971
10972static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10973 int argc;
10974 PyObject *argv[4];
10975 int ii;
10976
10977 argc = PyObject_Length(args);
10978 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10979 argv[ii] = PyTuple_GetItem(args,ii);
10980 }
10981 if (argc == 1) {
10982 int _v;
10983 {
10984 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10985 }
10986 if (_v) {
10987 return _wrap_GetTranslation__SWIG_0(self,args);
10988 }
10989 }
10990 if (argc == 3) {
10991 int _v;
10992 {
10993 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10994 }
10995 if (_v) {
10996 {
10997 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10998 }
10999 if (_v) {
c32bde28 11000 _v = SWIG_Check_unsigned_SS_long(argv[2]);
d55e5bfc
RD
11001 if (_v) {
11002 return _wrap_GetTranslation__SWIG_1(self,args);
11003 }
11004 }
11005 }
11006 }
11007
11008 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
11009 return NULL;
11010}
11011
11012
c32bde28 11013static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11014 PyObject *resultobj;
11015 wxEncodingConverter *result;
11016 char *kwnames[] = {
11017 NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (wxEncodingConverter *)new wxEncodingConverter();
11024
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
11029 return resultobj;
11030 fail:
11031 return NULL;
11032}
11033
11034
c32bde28 11035static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11036 PyObject *resultobj;
11037 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
11038 PyObject * obj0 = 0 ;
11039 char *kwnames[] = {
11040 (char *) "self", NULL
11041 };
11042
11043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
11044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
11045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 delete arg1;
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 Py_INCREF(Py_None); resultobj = Py_None;
11054 return resultobj;
11055 fail:
11056 return NULL;
11057}
11058
11059
c32bde28 11060static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11061 PyObject *resultobj;
11062 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
11063 int arg2 ;
11064 int arg3 ;
11065 int arg4 = (int) wxCONVERT_STRICT ;
11066 bool result;
11067 PyObject * obj0 = 0 ;
11068 PyObject * obj1 = 0 ;
11069 PyObject * obj2 = 0 ;
11070 PyObject * obj3 = 0 ;
11071 char *kwnames[] = {
11072 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
11073 };
11074
11075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
11077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11078 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11079 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11080 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11081 if (PyErr_Occurred()) SWIG_fail;
11082 if (obj3) {
c32bde28 11083 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11084 if (PyErr_Occurred()) SWIG_fail;
11085 }
11086 {
11087 PyThreadState* __tstate = wxPyBeginAllowThreads();
11088 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
11089
11090 wxPyEndAllowThreads(__tstate);
11091 if (PyErr_Occurred()) SWIG_fail;
11092 }
11093 {
11094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11095 }
11096 return resultobj;
11097 fail:
11098 return NULL;
11099}
11100
11101
c32bde28 11102static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11103 PyObject *resultobj;
11104 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
11105 wxString *arg2 = 0 ;
11106 wxString result;
ae8162c8 11107 bool temp2 = false ;
d55e5bfc
RD
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 char *kwnames[] = {
11111 (char *) "self",(char *) "input", NULL
11112 };
11113
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
11115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
11116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11117 {
11118 arg2 = wxString_in_helper(obj1);
11119 if (arg2 == NULL) SWIG_fail;
ae8162c8 11120 temp2 = true;
d55e5bfc
RD
11121 }
11122 {
11123 PyThreadState* __tstate = wxPyBeginAllowThreads();
11124 result = (arg1)->Convert((wxString const &)*arg2);
11125
11126 wxPyEndAllowThreads(__tstate);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 }
11129 {
11130#if wxUSE_UNICODE
11131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11132#else
11133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11134#endif
11135 }
11136 {
11137 if (temp2)
11138 delete arg2;
11139 }
11140 return resultobj;
11141 fail:
11142 {
11143 if (temp2)
11144 delete arg2;
11145 }
11146 return NULL;
11147}
11148
11149
c32bde28 11150static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11151 PyObject *resultobj;
11152 int arg1 ;
11153 int arg2 = (int) wxPLATFORM_CURRENT ;
11154 wxFontEncodingArray result;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char *kwnames[] = {
11158 (char *) "enc",(char *) "platform", NULL
11159 };
11160
11161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
c32bde28 11162 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
11163 if (PyErr_Occurred()) SWIG_fail;
11164 if (obj1) {
c32bde28 11165 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
11171
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = PyList_New(0);
11177 for (size_t i=0; i < (&result)->GetCount(); i++) {
11178 PyObject* number = PyInt_FromLong((&result)->Item(i));
11179 PyList_Append(resultobj, number);
11180 Py_DECREF(number);
11181 }
11182 }
11183 return resultobj;
11184 fail:
11185 return NULL;
11186}
11187
11188
c32bde28 11189static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11190 PyObject *resultobj;
11191 int arg1 ;
11192 wxFontEncodingArray result;
11193 PyObject * obj0 = 0 ;
11194 char *kwnames[] = {
11195 (char *) "enc", NULL
11196 };
11197
11198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
c32bde28 11199 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
11200 if (PyErr_Occurred()) SWIG_fail;
11201 {
11202 PyThreadState* __tstate = wxPyBeginAllowThreads();
11203 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
11204
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 {
11209 resultobj = PyList_New(0);
11210 for (size_t i=0; i < (&result)->GetCount(); i++) {
11211 PyObject* number = PyInt_FromLong((&result)->Item(i));
11212 PyList_Append(resultobj, number);
11213 Py_DECREF(number);
11214 }
11215 }
11216 return resultobj;
11217 fail:
11218 return NULL;
11219}
11220
11221
c32bde28 11222static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11223 PyObject *resultobj;
11224 int arg1 ;
11225 int arg2 ;
11226 bool result;
11227 PyObject * obj0 = 0 ;
11228 PyObject * obj1 = 0 ;
11229 char *kwnames[] = {
11230 (char *) "encIn",(char *) "encOut", NULL
11231 };
11232
11233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
c32bde28 11234 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 11235 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11236 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11237 if (PyErr_Occurred()) SWIG_fail;
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 {
11246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11247 }
11248 return resultobj;
11249 fail:
11250 return NULL;
11251}
11252
11253
c32bde28 11254static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11255 PyObject *obj;
11256 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11257 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
11258 Py_INCREF(obj);
11259 return Py_BuildValue((char *)"");
11260}
c32bde28 11261static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11262 PyObject *resultobj;
11263 wxDC *arg1 = (wxDC *) 0 ;
11264 PyObject * obj0 = 0 ;
11265 char *kwnames[] = {
11266 (char *) "self", NULL
11267 };
11268
11269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
11270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 delete arg1;
11275
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 Py_INCREF(Py_None); resultobj = Py_None;
11280 return resultobj;
11281 fail:
11282 return NULL;
11283}
11284
11285
c32bde28 11286static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11287 PyObject *resultobj;
11288 wxDC *arg1 = (wxDC *) 0 ;
11289 PyObject * obj0 = 0 ;
11290 char *kwnames[] = {
11291 (char *) "self", NULL
11292 };
11293
11294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
11295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11297 {
11298 PyThreadState* __tstate = wxPyBeginAllowThreads();
11299 (arg1)->BeginDrawing();
11300
11301 wxPyEndAllowThreads(__tstate);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 }
11304 Py_INCREF(Py_None); resultobj = Py_None;
11305 return resultobj;
11306 fail:
11307 return NULL;
11308}
11309
11310
c32bde28 11311static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11312 PyObject *resultobj;
11313 wxDC *arg1 = (wxDC *) 0 ;
11314 PyObject * obj0 = 0 ;
11315 char *kwnames[] = {
11316 (char *) "self", NULL
11317 };
11318
11319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
11320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 (arg1)->EndDrawing();
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 Py_INCREF(Py_None); resultobj = Py_None;
11330 return resultobj;
11331 fail:
11332 return NULL;
11333}
11334
11335
c32bde28 11336static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11337 PyObject *resultobj;
11338 wxDC *arg1 = (wxDC *) 0 ;
11339 int arg2 ;
11340 int arg3 ;
11341 wxColour *arg4 = 0 ;
11342 int arg5 = (int) wxFLOOD_SURFACE ;
11343 bool result;
11344 wxColour temp4 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 PyObject * obj2 = 0 ;
11348 PyObject * obj3 = 0 ;
11349 PyObject * obj4 = 0 ;
11350 char *kwnames[] = {
11351 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
11352 };
11353
c24da6d6 11354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11357 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11358 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11359 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11360 if (PyErr_Occurred()) SWIG_fail;
11361 {
11362 arg4 = &temp4;
11363 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11364 }
11365 if (obj4) {
c32bde28 11366 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 {
11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
11371 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
11372
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11378 }
11379 return resultobj;
11380 fail:
11381 return NULL;
11382}
11383
11384
c32bde28 11385static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11386 PyObject *resultobj;
11387 wxDC *arg1 = (wxDC *) 0 ;
11388 wxPoint *arg2 = 0 ;
11389 wxColour *arg3 = 0 ;
11390 int arg4 = (int) wxFLOOD_SURFACE ;
11391 bool result;
11392 wxPoint temp2 ;
11393 wxColour temp3 ;
11394 PyObject * obj0 = 0 ;
11395 PyObject * obj1 = 0 ;
11396 PyObject * obj2 = 0 ;
11397 PyObject * obj3 = 0 ;
11398 char *kwnames[] = {
11399 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
11400 };
11401
c24da6d6 11402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 {
11410 arg3 = &temp3;
11411 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11412 }
11413 if (obj3) {
c32bde28 11414 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11420
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 {
11425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11426 }
11427 return resultobj;
11428 fail:
11429 return NULL;
11430}
11431
11432
c32bde28 11433static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11434 PyObject *resultobj;
11435 wxDC *arg1 = (wxDC *) 0 ;
11436 int arg2 ;
11437 int arg3 ;
11438 wxColour result;
11439 PyObject * obj0 = 0 ;
11440 PyObject * obj1 = 0 ;
11441 PyObject * obj2 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self",(char *) "x",(char *) "y", NULL
11444 };
11445
c24da6d6 11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11449 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11450 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11451 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11452 if (PyErr_Occurred()) SWIG_fail;
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11455 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 {
11461 wxColour * resultptr;
11462 resultptr = new wxColour((wxColour &) result);
11463 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11464 }
11465 return resultobj;
11466 fail:
11467 return NULL;
11468}
11469
11470
c32bde28 11471static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11472 PyObject *resultobj;
11473 wxDC *arg1 = (wxDC *) 0 ;
11474 wxPoint *arg2 = 0 ;
11475 wxColour result;
11476 wxPoint temp2 ;
11477 PyObject * obj0 = 0 ;
11478 PyObject * obj1 = 0 ;
11479 char *kwnames[] = {
11480 (char *) "self",(char *) "pt", NULL
11481 };
11482
c24da6d6 11483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11486 {
11487 arg2 = &temp2;
11488 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11489 }
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 11492 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
11493
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 {
11498 wxColour * resultptr;
11499 resultptr = new wxColour((wxColour &) result);
11500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11501 }
11502 return resultobj;
11503 fail:
11504 return NULL;
11505}
11506
11507
c32bde28 11508static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11509 PyObject *resultobj;
11510 wxDC *arg1 = (wxDC *) 0 ;
11511 int arg2 ;
11512 int arg3 ;
11513 int arg4 ;
11514 int arg5 ;
11515 PyObject * obj0 = 0 ;
11516 PyObject * obj1 = 0 ;
11517 PyObject * obj2 = 0 ;
11518 PyObject * obj3 = 0 ;
11519 PyObject * obj4 = 0 ;
11520 char *kwnames[] = {
11521 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11522 };
11523
c24da6d6 11524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11527 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11528 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11529 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11530 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11531 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11532 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11533 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11534 if (PyErr_Occurred()) SWIG_fail;
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
11537 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 Py_INCREF(Py_None); resultobj = Py_None;
11543 return resultobj;
11544 fail:
11545 return NULL;
11546}
11547
11548
c32bde28 11549static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11550 PyObject *resultobj;
11551 wxDC *arg1 = (wxDC *) 0 ;
11552 wxPoint *arg2 = 0 ;
11553 wxPoint *arg3 = 0 ;
11554 wxPoint temp2 ;
11555 wxPoint temp3 ;
11556 PyObject * obj0 = 0 ;
11557 PyObject * obj1 = 0 ;
11558 PyObject * obj2 = 0 ;
11559 char *kwnames[] = {
11560 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11561 };
11562
c24da6d6 11563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11566 {
11567 arg2 = &temp2;
11568 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11569 }
11570 {
11571 arg3 = &temp3;
11572 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11573 }
11574 {
11575 PyThreadState* __tstate = wxPyBeginAllowThreads();
11576 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11577
11578 wxPyEndAllowThreads(__tstate);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 Py_INCREF(Py_None); resultobj = Py_None;
11582 return resultobj;
11583 fail:
11584 return NULL;
11585}
11586
11587
c32bde28 11588static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11589 PyObject *resultobj;
11590 wxDC *arg1 = (wxDC *) 0 ;
11591 int arg2 ;
11592 int arg3 ;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 PyObject * obj2 = 0 ;
11596 char *kwnames[] = {
11597 (char *) "self",(char *) "x",(char *) "y", NULL
11598 };
11599
c24da6d6 11600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11603 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11604 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11605 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11606 if (PyErr_Occurred()) SWIG_fail;
11607 {
11608 PyThreadState* __tstate = wxPyBeginAllowThreads();
11609 (arg1)->CrossHair(arg2,arg3);
11610
11611 wxPyEndAllowThreads(__tstate);
11612 if (PyErr_Occurred()) SWIG_fail;
11613 }
11614 Py_INCREF(Py_None); resultobj = Py_None;
11615 return resultobj;
11616 fail:
11617 return NULL;
11618}
11619
11620
c32bde28 11621static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11622 PyObject *resultobj;
11623 wxDC *arg1 = (wxDC *) 0 ;
11624 wxPoint *arg2 = 0 ;
11625 wxPoint temp2 ;
11626 PyObject * obj0 = 0 ;
11627 PyObject * obj1 = 0 ;
11628 char *kwnames[] = {
11629 (char *) "self",(char *) "pt", NULL
11630 };
11631
c24da6d6 11632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11635 {
11636 arg2 = &temp2;
11637 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11638 }
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 (arg1)->CrossHair((wxPoint const &)*arg2);
11642
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 Py_INCREF(Py_None); resultobj = Py_None;
11647 return resultobj;
11648 fail:
11649 return NULL;
11650}
11651
11652
c32bde28 11653static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11654 PyObject *resultobj;
11655 wxDC *arg1 = (wxDC *) 0 ;
11656 int arg2 ;
11657 int arg3 ;
11658 int arg4 ;
11659 int arg5 ;
11660 int arg6 ;
11661 int arg7 ;
11662 PyObject * obj0 = 0 ;
11663 PyObject * obj1 = 0 ;
11664 PyObject * obj2 = 0 ;
11665 PyObject * obj3 = 0 ;
11666 PyObject * obj4 = 0 ;
11667 PyObject * obj5 = 0 ;
11668 PyObject * obj6 = 0 ;
11669 char *kwnames[] = {
11670 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11671 };
11672
c24da6d6 11673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11676 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11677 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11678 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11679 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11680 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11681 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11682 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11683 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11684 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc 11685 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11686 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
11687 if (PyErr_Occurred()) SWIG_fail;
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 Py_INCREF(Py_None); resultobj = Py_None;
11696 return resultobj;
11697 fail:
11698 return NULL;
11699}
11700
11701
c32bde28 11702static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11703 PyObject *resultobj;
11704 wxDC *arg1 = (wxDC *) 0 ;
11705 wxPoint *arg2 = 0 ;
11706 wxPoint *arg3 = 0 ;
11707 wxPoint *arg4 = 0 ;
11708 wxPoint temp2 ;
11709 wxPoint temp3 ;
11710 wxPoint temp4 ;
11711 PyObject * obj0 = 0 ;
11712 PyObject * obj1 = 0 ;
11713 PyObject * obj2 = 0 ;
11714 PyObject * obj3 = 0 ;
11715 char *kwnames[] = {
f5b96ee1 11716 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d55e5bfc
RD
11717 };
11718
c24da6d6 11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11722 {
11723 arg2 = &temp2;
11724 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11725 }
11726 {
11727 arg3 = &temp3;
11728 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11729 }
11730 {
11731 arg4 = &temp4;
11732 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11733 }
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 Py_INCREF(Py_None); resultobj = Py_None;
11742 return resultobj;
11743 fail:
11744 return NULL;
11745}
11746
11747
c32bde28 11748static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11749 PyObject *resultobj;
11750 wxDC *arg1 = (wxDC *) 0 ;
11751 int arg2 ;
11752 int arg3 ;
11753 int arg4 ;
11754 int arg5 ;
11755 PyObject * obj0 = 0 ;
11756 PyObject * obj1 = 0 ;
11757 PyObject * obj2 = 0 ;
11758 PyObject * obj3 = 0 ;
11759 PyObject * obj4 = 0 ;
11760 char *kwnames[] = {
11761 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11762 };
11763
c24da6d6 11764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11767 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11768 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11769 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11770 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11771 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11772 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11773 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11774 if (PyErr_Occurred()) SWIG_fail;
11775 {
11776 PyThreadState* __tstate = wxPyBeginAllowThreads();
11777 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11778
11779 wxPyEndAllowThreads(__tstate);
11780 if (PyErr_Occurred()) SWIG_fail;
11781 }
11782 Py_INCREF(Py_None); resultobj = Py_None;
11783 return resultobj;
11784 fail:
11785 return NULL;
11786}
11787
11788
c32bde28 11789static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11790 PyObject *resultobj;
11791 wxDC *arg1 = (wxDC *) 0 ;
11792 wxRect *arg2 = 0 ;
11793 wxRect temp2 ;
11794 PyObject * obj0 = 0 ;
11795 PyObject * obj1 = 0 ;
11796 char *kwnames[] = {
11797 (char *) "self",(char *) "rect", NULL
11798 };
11799
c24da6d6 11800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11803 {
11804 arg2 = &temp2;
11805 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11806 }
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11810
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 Py_INCREF(Py_None); resultobj = Py_None;
11815 return resultobj;
11816 fail:
11817 return NULL;
11818}
11819
11820
c32bde28 11821static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11822 PyObject *resultobj;
11823 wxDC *arg1 = (wxDC *) 0 ;
11824 int arg2 ;
11825 int arg3 ;
11826 int arg4 ;
11827 int arg5 ;
11828 double arg6 ;
11829 double arg7 ;
11830 PyObject * obj0 = 0 ;
11831 PyObject * obj1 = 0 ;
11832 PyObject * obj2 = 0 ;
11833 PyObject * obj3 = 0 ;
11834 PyObject * obj4 = 0 ;
11835 PyObject * obj5 = 0 ;
11836 PyObject * obj6 = 0 ;
11837 char *kwnames[] = {
f5b96ee1 11838 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11839 };
11840
c24da6d6 11841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11844 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11845 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11846 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11847 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11848 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11849 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11850 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11851 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11852 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc 11853 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11854 arg7 = (double)SWIG_As_double(obj6);
d55e5bfc
RD
11855 if (PyErr_Occurred()) SWIG_fail;
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11859
11860 wxPyEndAllowThreads(__tstate);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 Py_INCREF(Py_None); resultobj = Py_None;
11864 return resultobj;
11865 fail:
11866 return NULL;
11867}
11868
11869
c32bde28 11870static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11871 PyObject *resultobj;
11872 wxDC *arg1 = (wxDC *) 0 ;
11873 wxPoint *arg2 = 0 ;
11874 wxSize *arg3 = 0 ;
11875 double arg4 ;
11876 double arg5 ;
11877 wxPoint temp2 ;
11878 wxSize temp3 ;
11879 PyObject * obj0 = 0 ;
11880 PyObject * obj1 = 0 ;
11881 PyObject * obj2 = 0 ;
11882 PyObject * obj3 = 0 ;
11883 PyObject * obj4 = 0 ;
11884 char *kwnames[] = {
f5b96ee1 11885 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11886 };
11887
c24da6d6 11888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11891 {
11892 arg2 = &temp2;
11893 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11894 }
11895 {
11896 arg3 = &temp3;
11897 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11898 }
c32bde28 11899 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc 11900 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11901 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
11902 if (PyErr_Occurred()) SWIG_fail;
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11906
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 Py_INCREF(Py_None); resultobj = Py_None;
11911 return resultobj;
11912 fail:
11913 return NULL;
11914}
11915
11916
c32bde28 11917static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11918 PyObject *resultobj;
11919 wxDC *arg1 = (wxDC *) 0 ;
11920 int arg2 ;
11921 int arg3 ;
11922 PyObject * obj0 = 0 ;
11923 PyObject * obj1 = 0 ;
11924 PyObject * obj2 = 0 ;
11925 char *kwnames[] = {
11926 (char *) "self",(char *) "x",(char *) "y", NULL
11927 };
11928
c24da6d6 11929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11932 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11933 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11934 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11935 if (PyErr_Occurred()) SWIG_fail;
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 (arg1)->DrawPoint(arg2,arg3);
11939
11940 wxPyEndAllowThreads(__tstate);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 }
11943 Py_INCREF(Py_None); resultobj = Py_None;
11944 return resultobj;
11945 fail:
11946 return NULL;
11947}
11948
11949
c32bde28 11950static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11951 PyObject *resultobj;
11952 wxDC *arg1 = (wxDC *) 0 ;
11953 wxPoint *arg2 = 0 ;
11954 wxPoint temp2 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 char *kwnames[] = {
11958 (char *) "self",(char *) "pt", NULL
11959 };
11960
c24da6d6 11961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11964 {
11965 arg2 = &temp2;
11966 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11967 }
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 (arg1)->DrawPoint((wxPoint const &)*arg2);
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 Py_INCREF(Py_None); resultobj = Py_None;
11976 return resultobj;
11977 fail:
11978 return NULL;
11979}
11980
11981
c32bde28 11982static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11983 PyObject *resultobj;
11984 wxDC *arg1 = (wxDC *) 0 ;
11985 int arg2 ;
11986 int arg3 ;
11987 int arg4 ;
11988 int arg5 ;
11989 PyObject * obj0 = 0 ;
11990 PyObject * obj1 = 0 ;
11991 PyObject * obj2 = 0 ;
11992 PyObject * obj3 = 0 ;
11993 PyObject * obj4 = 0 ;
11994 char *kwnames[] = {
11995 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11996 };
11997
c24da6d6 11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12001 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12002 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12003 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12004 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12005 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12006 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12007 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12008 if (PyErr_Occurred()) SWIG_fail;
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 Py_INCREF(Py_None); resultobj = Py_None;
12017 return resultobj;
12018 fail:
12019 return NULL;
12020}
12021
12022
c32bde28 12023static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12024 PyObject *resultobj;
12025 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12026 wxRect *arg2 = 0 ;
12027 wxRect temp2 ;
d55e5bfc
RD
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
d55e5bfc 12030 char *kwnames[] = {
c24da6d6 12031 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
12032 };
12033
c24da6d6 12034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12037 {
12038 arg2 = &temp2;
c24da6d6 12039 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12043 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 Py_INCREF(Py_None); resultobj = Py_None;
12049 return resultobj;
12050 fail:
12051 return NULL;
12052}
12053
12054
c32bde28 12055static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12056 PyObject *resultobj;
12057 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12058 wxPoint *arg2 = 0 ;
12059 wxSize *arg3 = 0 ;
12060 wxPoint temp2 ;
12061 wxSize temp3 ;
d55e5bfc
RD
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
c24da6d6 12064 PyObject * obj2 = 0 ;
d55e5bfc 12065 char *kwnames[] = {
c24da6d6 12066 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
12067 };
12068
c24da6d6 12069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12072 {
12073 arg2 = &temp2;
c24da6d6
RD
12074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12075 }
12076 {
12077 arg3 = &temp3;
12078 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
12079 }
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12082 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
12083
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 Py_INCREF(Py_None); resultobj = Py_None;
12088 return resultobj;
12089 fail:
12090 return NULL;
12091}
12092
12093
c32bde28 12094static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12095 PyObject *resultobj;
12096 wxDC *arg1 = (wxDC *) 0 ;
12097 int arg2 ;
12098 int arg3 ;
12099 int arg4 ;
12100 int arg5 ;
12101 double arg6 ;
12102 PyObject * obj0 = 0 ;
12103 PyObject * obj1 = 0 ;
12104 PyObject * obj2 = 0 ;
12105 PyObject * obj3 = 0 ;
12106 PyObject * obj4 = 0 ;
12107 PyObject * obj5 = 0 ;
12108 char *kwnames[] = {
12109 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
12110 };
12111
c24da6d6 12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
12113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12115 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12116 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12117 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12118 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12119 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12120 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12121 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 12122 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12123 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc
RD
12124 if (PyErr_Occurred()) SWIG_fail;
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
12128
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 Py_INCREF(Py_None); resultobj = Py_None;
12133 return resultobj;
12134 fail:
12135 return NULL;
12136}
12137
12138
c32bde28 12139static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12140 PyObject *resultobj;
12141 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12142 wxRect *arg2 = 0 ;
12143 double arg3 ;
12144 wxRect temp2 ;
d55e5bfc
RD
12145 PyObject * obj0 = 0 ;
12146 PyObject * obj1 = 0 ;
12147 PyObject * obj2 = 0 ;
d55e5bfc 12148 char *kwnames[] = {
c24da6d6 12149 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
12150 };
12151
c24da6d6 12152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12155 {
12156 arg2 = &temp2;
c24da6d6 12157 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 12158 }
c32bde28 12159 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
12160 if (PyErr_Occurred()) SWIG_fail;
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12163 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
12164
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 Py_INCREF(Py_None); resultobj = Py_None;
12169 return resultobj;
12170 fail:
12171 return NULL;
12172}
12173
12174
c32bde28 12175static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12176 PyObject *resultobj;
12177 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12178 wxPoint *arg2 = 0 ;
12179 wxSize *arg3 = 0 ;
12180 double arg4 ;
12181 wxPoint temp2 ;
12182 wxSize temp3 ;
d55e5bfc
RD
12183 PyObject * obj0 = 0 ;
12184 PyObject * obj1 = 0 ;
12185 PyObject * obj2 = 0 ;
c24da6d6 12186 PyObject * obj3 = 0 ;
d55e5bfc 12187 char *kwnames[] = {
c24da6d6 12188 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
12189 };
12190
c24da6d6 12191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12194 {
12195 arg2 = &temp2;
c24da6d6 12196 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 12197 }
c24da6d6
RD
12198 {
12199 arg3 = &temp3;
12200 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12201 }
c32bde28 12202 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
12203 if (PyErr_Occurred()) SWIG_fail;
12204 {
12205 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12206 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d55e5bfc
RD
12207
12208 wxPyEndAllowThreads(__tstate);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 }
12211 Py_INCREF(Py_None); resultobj = Py_None;
12212 return resultobj;
12213 fail:
12214 return NULL;
12215}
12216
12217
c32bde28 12218static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12219 PyObject *resultobj;
12220 wxDC *arg1 = (wxDC *) 0 ;
12221 int arg2 ;
12222 int arg3 ;
12223 int arg4 ;
12224 PyObject * obj0 = 0 ;
12225 PyObject * obj1 = 0 ;
12226 PyObject * obj2 = 0 ;
12227 PyObject * obj3 = 0 ;
12228 char *kwnames[] = {
12229 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
12230 };
12231
c24da6d6 12232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12235 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12236 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12237 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12238 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12239 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12240 if (PyErr_Occurred()) SWIG_fail;
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->DrawCircle(arg2,arg3,arg4);
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_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
12258 wxPoint *arg2 = 0 ;
12259 int arg3 ;
12260 wxPoint temp2 ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 PyObject * obj2 = 0 ;
12264 char *kwnames[] = {
12265 (char *) "self",(char *) "pt",(char *) "radius", NULL
12266 };
12267
c24da6d6 12268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12271 {
12272 arg2 = &temp2;
12273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12274 }
c32bde28 12275 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12276 if (PyErr_Occurred()) SWIG_fail;
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
12280
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 Py_INCREF(Py_None); resultobj = Py_None;
12285 return resultobj;
12286 fail:
12287 return NULL;
12288}
12289
12290
c32bde28 12291static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12292 PyObject *resultobj;
12293 wxDC *arg1 = (wxDC *) 0 ;
12294 int arg2 ;
12295 int arg3 ;
12296 int arg4 ;
12297 int arg5 ;
12298 PyObject * obj0 = 0 ;
12299 PyObject * obj1 = 0 ;
12300 PyObject * obj2 = 0 ;
12301 PyObject * obj3 = 0 ;
12302 PyObject * obj4 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12305 };
12306
c24da6d6 12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12310 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12311 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12312 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12313 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12314 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12315 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12316 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12317 if (PyErr_Occurred()) SWIG_fail;
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
12321
12322 wxPyEndAllowThreads(__tstate);
12323 if (PyErr_Occurred()) SWIG_fail;
12324 }
12325 Py_INCREF(Py_None); resultobj = Py_None;
12326 return resultobj;
12327 fail:
12328 return NULL;
12329}
12330
12331
c32bde28 12332static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12333 PyObject *resultobj;
12334 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12335 wxRect *arg2 = 0 ;
12336 wxRect temp2 ;
d55e5bfc
RD
12337 PyObject * obj0 = 0 ;
12338 PyObject * obj1 = 0 ;
d55e5bfc 12339 char *kwnames[] = {
c24da6d6 12340 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
12341 };
12342
c24da6d6 12343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12346 {
12347 arg2 = &temp2;
c24da6d6 12348 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
12349 }
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12352 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
12353
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 Py_INCREF(Py_None); resultobj = Py_None;
12358 return resultobj;
12359 fail:
12360 return NULL;
12361}
12362
12363
c32bde28 12364static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12365 PyObject *resultobj;
12366 wxDC *arg1 = (wxDC *) 0 ;
c24da6d6
RD
12367 wxPoint *arg2 = 0 ;
12368 wxSize *arg3 = 0 ;
12369 wxPoint temp2 ;
12370 wxSize temp3 ;
d55e5bfc
RD
12371 PyObject * obj0 = 0 ;
12372 PyObject * obj1 = 0 ;
c24da6d6 12373 PyObject * obj2 = 0 ;
d55e5bfc 12374 char *kwnames[] = {
c24da6d6 12375 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
12376 };
12377
c24da6d6 12378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12381 {
12382 arg2 = &temp2;
c24da6d6
RD
12383 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12384 }
12385 {
12386 arg3 = &temp3;
12387 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
12388 }
12389 {
12390 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 12391 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
12392
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 Py_INCREF(Py_None); resultobj = Py_None;
12397 return resultobj;
12398 fail:
12399 return NULL;
12400}
12401
12402
c32bde28 12403static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12404 PyObject *resultobj;
12405 wxDC *arg1 = (wxDC *) 0 ;
12406 wxIcon *arg2 = 0 ;
12407 int arg3 ;
12408 int arg4 ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 PyObject * obj2 = 0 ;
12412 PyObject * obj3 = 0 ;
12413 char *kwnames[] = {
12414 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
12415 };
12416
c24da6d6 12417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12421 SWIG_POINTER_EXCEPTION | 0)) == -1)
12422 SWIG_fail;
12423 if (arg2 == NULL) {
12424 PyErr_SetString(PyExc_TypeError,"null reference");
12425 SWIG_fail;
12426 }
c32bde28 12427 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12428 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12429 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12430 if (PyErr_Occurred()) SWIG_fail;
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12434
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 Py_INCREF(Py_None); resultobj = Py_None;
12439 return resultobj;
12440 fail:
12441 return NULL;
12442}
12443
12444
c32bde28 12445static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12446 PyObject *resultobj;
12447 wxDC *arg1 = (wxDC *) 0 ;
12448 wxIcon *arg2 = 0 ;
12449 wxPoint *arg3 = 0 ;
12450 wxPoint temp3 ;
12451 PyObject * obj0 = 0 ;
12452 PyObject * obj1 = 0 ;
12453 PyObject * obj2 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self",(char *) "icon",(char *) "pt", NULL
12456 };
12457
c24da6d6 12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12462 SWIG_POINTER_EXCEPTION | 0)) == -1)
12463 SWIG_fail;
12464 if (arg2 == NULL) {
12465 PyErr_SetString(PyExc_TypeError,"null reference");
12466 SWIG_fail;
12467 }
12468 {
12469 arg3 = &temp3;
12470 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12471 }
12472 {
12473 PyThreadState* __tstate = wxPyBeginAllowThreads();
12474 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12475
12476 wxPyEndAllowThreads(__tstate);
12477 if (PyErr_Occurred()) SWIG_fail;
12478 }
12479 Py_INCREF(Py_None); resultobj = Py_None;
12480 return resultobj;
12481 fail:
12482 return NULL;
12483}
12484
12485
c32bde28 12486static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12487 PyObject *resultobj;
12488 wxDC *arg1 = (wxDC *) 0 ;
12489 wxBitmap *arg2 = 0 ;
12490 int arg3 ;
12491 int arg4 ;
ae8162c8 12492 bool arg5 = (bool) false ;
d55e5bfc
RD
12493 PyObject * obj0 = 0 ;
12494 PyObject * obj1 = 0 ;
12495 PyObject * obj2 = 0 ;
12496 PyObject * obj3 = 0 ;
12497 PyObject * obj4 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12500 };
12501
c24da6d6 12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12506 SWIG_POINTER_EXCEPTION | 0)) == -1)
12507 SWIG_fail;
12508 if (arg2 == NULL) {
12509 PyErr_SetString(PyExc_TypeError,"null reference");
12510 SWIG_fail;
12511 }
c32bde28 12512 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12513 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12514 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12515 if (PyErr_Occurred()) SWIG_fail;
12516 if (obj4) {
c32bde28 12517 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12523
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 Py_INCREF(Py_None); resultobj = Py_None;
12528 return resultobj;
12529 fail:
12530 return NULL;
12531}
12532
12533
c32bde28 12534static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12535 PyObject *resultobj;
12536 wxDC *arg1 = (wxDC *) 0 ;
12537 wxBitmap *arg2 = 0 ;
12538 wxPoint *arg3 = 0 ;
ae8162c8 12539 bool arg4 = (bool) false ;
d55e5bfc
RD
12540 wxPoint temp3 ;
12541 PyObject * obj0 = 0 ;
12542 PyObject * obj1 = 0 ;
12543 PyObject * obj2 = 0 ;
12544 PyObject * obj3 = 0 ;
12545 char *kwnames[] = {
12546 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12547 };
12548
c24da6d6 12549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12553 SWIG_POINTER_EXCEPTION | 0)) == -1)
12554 SWIG_fail;
12555 if (arg2 == NULL) {
12556 PyErr_SetString(PyExc_TypeError,"null reference");
12557 SWIG_fail;
12558 }
12559 {
12560 arg3 = &temp3;
12561 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12562 }
12563 if (obj3) {
c32bde28 12564 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 {
12568 PyThreadState* __tstate = wxPyBeginAllowThreads();
12569 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12570
12571 wxPyEndAllowThreads(__tstate);
12572 if (PyErr_Occurred()) SWIG_fail;
12573 }
12574 Py_INCREF(Py_None); resultobj = Py_None;
12575 return resultobj;
12576 fail:
12577 return NULL;
12578}
12579
12580
c32bde28 12581static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12582 PyObject *resultobj;
12583 wxDC *arg1 = (wxDC *) 0 ;
12584 wxString *arg2 = 0 ;
12585 int arg3 ;
12586 int arg4 ;
ae8162c8 12587 bool temp2 = false ;
d55e5bfc
RD
12588 PyObject * obj0 = 0 ;
12589 PyObject * obj1 = 0 ;
12590 PyObject * obj2 = 0 ;
12591 PyObject * obj3 = 0 ;
12592 char *kwnames[] = {
12593 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12594 };
12595
c24da6d6 12596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12599 {
12600 arg2 = wxString_in_helper(obj1);
12601 if (arg2 == NULL) SWIG_fail;
ae8162c8 12602 temp2 = true;
d55e5bfc 12603 }
c32bde28 12604 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12605 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12606 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12607 if (PyErr_Occurred()) SWIG_fail;
12608 {
12609 PyThreadState* __tstate = wxPyBeginAllowThreads();
12610 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12611
12612 wxPyEndAllowThreads(__tstate);
12613 if (PyErr_Occurred()) SWIG_fail;
12614 }
12615 Py_INCREF(Py_None); resultobj = Py_None;
12616 {
12617 if (temp2)
12618 delete arg2;
12619 }
12620 return resultobj;
12621 fail:
12622 {
12623 if (temp2)
12624 delete arg2;
12625 }
12626 return NULL;
12627}
12628
12629
c32bde28 12630static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12631 PyObject *resultobj;
12632 wxDC *arg1 = (wxDC *) 0 ;
12633 wxString *arg2 = 0 ;
12634 wxPoint *arg3 = 0 ;
ae8162c8 12635 bool temp2 = false ;
d55e5bfc
RD
12636 wxPoint temp3 ;
12637 PyObject * obj0 = 0 ;
12638 PyObject * obj1 = 0 ;
12639 PyObject * obj2 = 0 ;
12640 char *kwnames[] = {
12641 (char *) "self",(char *) "text",(char *) "pt", NULL
12642 };
12643
c24da6d6 12644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12647 {
12648 arg2 = wxString_in_helper(obj1);
12649 if (arg2 == NULL) SWIG_fail;
ae8162c8 12650 temp2 = true;
d55e5bfc
RD
12651 }
12652 {
12653 arg3 = &temp3;
12654 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12655 }
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12659
12660 wxPyEndAllowThreads(__tstate);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 Py_INCREF(Py_None); resultobj = Py_None;
12664 {
12665 if (temp2)
12666 delete arg2;
12667 }
12668 return resultobj;
12669 fail:
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 return NULL;
12675}
12676
12677
c32bde28 12678static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12679 PyObject *resultobj;
12680 wxDC *arg1 = (wxDC *) 0 ;
12681 wxString *arg2 = 0 ;
12682 int arg3 ;
12683 int arg4 ;
12684 double arg5 ;
ae8162c8 12685 bool temp2 = false ;
d55e5bfc
RD
12686 PyObject * obj0 = 0 ;
12687 PyObject * obj1 = 0 ;
12688 PyObject * obj2 = 0 ;
12689 PyObject * obj3 = 0 ;
12690 PyObject * obj4 = 0 ;
12691 char *kwnames[] = {
12692 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12693 };
12694
c24da6d6 12695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12698 {
12699 arg2 = wxString_in_helper(obj1);
12700 if (arg2 == NULL) SWIG_fail;
ae8162c8 12701 temp2 = true;
d55e5bfc 12702 }
c32bde28 12703 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12704 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12705 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12706 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12707 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
12708 if (PyErr_Occurred()) SWIG_fail;
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12712
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 Py_INCREF(Py_None); resultobj = Py_None;
12717 {
12718 if (temp2)
12719 delete arg2;
12720 }
12721 return resultobj;
12722 fail:
12723 {
12724 if (temp2)
12725 delete arg2;
12726 }
12727 return NULL;
12728}
12729
12730
c32bde28 12731static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12732 PyObject *resultobj;
12733 wxDC *arg1 = (wxDC *) 0 ;
12734 wxString *arg2 = 0 ;
12735 wxPoint *arg3 = 0 ;
12736 double arg4 ;
ae8162c8 12737 bool temp2 = false ;
d55e5bfc
RD
12738 wxPoint temp3 ;
12739 PyObject * obj0 = 0 ;
12740 PyObject * obj1 = 0 ;
12741 PyObject * obj2 = 0 ;
12742 PyObject * obj3 = 0 ;
12743 char *kwnames[] = {
12744 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12745 };
12746
c24da6d6 12747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12750 {
12751 arg2 = wxString_in_helper(obj1);
12752 if (arg2 == NULL) SWIG_fail;
ae8162c8 12753 temp2 = true;
d55e5bfc
RD
12754 }
12755 {
12756 arg3 = &temp3;
12757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12758 }
c32bde28 12759 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
12760 if (PyErr_Occurred()) SWIG_fail;
12761 {
12762 PyThreadState* __tstate = wxPyBeginAllowThreads();
12763 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12764
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 Py_INCREF(Py_None); resultobj = Py_None;
12769 {
12770 if (temp2)
12771 delete arg2;
12772 }
12773 return resultobj;
12774 fail:
12775 {
12776 if (temp2)
12777 delete arg2;
12778 }
12779 return NULL;
12780}
12781
12782
c32bde28 12783static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12784 PyObject *resultobj;
12785 wxDC *arg1 = (wxDC *) 0 ;
12786 int arg2 ;
12787 int arg3 ;
12788 int arg4 ;
12789 int arg5 ;
12790 wxDC *arg6 = (wxDC *) 0 ;
12791 int arg7 ;
12792 int arg8 ;
12793 int arg9 = (int) wxCOPY ;
ae8162c8 12794 bool arg10 = (bool) false ;
d55e5bfc
RD
12795 int arg11 = (int) -1 ;
12796 int arg12 = (int) -1 ;
12797 bool result;
12798 PyObject * obj0 = 0 ;
12799 PyObject * obj1 = 0 ;
12800 PyObject * obj2 = 0 ;
12801 PyObject * obj3 = 0 ;
12802 PyObject * obj4 = 0 ;
12803 PyObject * obj5 = 0 ;
12804 PyObject * obj6 = 0 ;
12805 PyObject * obj7 = 0 ;
12806 PyObject * obj8 = 0 ;
12807 PyObject * obj9 = 0 ;
12808 PyObject * obj10 = 0 ;
12809 PyObject * obj11 = 0 ;
12810 char *kwnames[] = {
12811 (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
12812 };
12813
c24da6d6 12814 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
12815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12817 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12818 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12819 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12820 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12821 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12822 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12823 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12824 if (PyErr_Occurred()) SWIG_fail;
12825 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12827 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc 12828 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12829 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
12830 if (PyErr_Occurred()) SWIG_fail;
12831 if (obj8) {
c32bde28 12832 arg9 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 if (obj9) {
c32bde28 12836 arg10 = (bool)SWIG_As_bool(obj9);
d55e5bfc
RD
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 if (obj10) {
c32bde28 12840 arg11 = (int)SWIG_As_int(obj10);
d55e5bfc
RD
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 if (obj11) {
c32bde28 12844 arg12 = (int)SWIG_As_int(obj11);
d55e5bfc
RD
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12850
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 {
12855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12856 }
12857 return resultobj;
12858 fail:
12859 return NULL;
12860}
12861
12862
c32bde28 12863static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12864 PyObject *resultobj;
12865 wxDC *arg1 = (wxDC *) 0 ;
12866 wxPoint *arg2 = 0 ;
12867 wxSize *arg3 = 0 ;
12868 wxDC *arg4 = (wxDC *) 0 ;
12869 wxPoint *arg5 = 0 ;
12870 int arg6 = (int) wxCOPY ;
ae8162c8 12871 bool arg7 = (bool) false ;
d55e5bfc
RD
12872 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12873 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12874 bool result;
12875 wxPoint temp2 ;
12876 wxSize temp3 ;
12877 wxPoint temp5 ;
12878 wxPoint temp8 ;
12879 PyObject * obj0 = 0 ;
12880 PyObject * obj1 = 0 ;
12881 PyObject * obj2 = 0 ;
12882 PyObject * obj3 = 0 ;
12883 PyObject * obj4 = 0 ;
12884 PyObject * obj5 = 0 ;
12885 PyObject * obj6 = 0 ;
12886 PyObject * obj7 = 0 ;
12887 char *kwnames[] = {
12888 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12889 };
12890
c24da6d6 12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
12892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12894 {
12895 arg2 = &temp2;
12896 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12897 }
12898 {
12899 arg3 = &temp3;
12900 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12901 }
12902 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12904 {
12905 arg5 = &temp5;
12906 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12907 }
12908 if (obj5) {
c32bde28 12909 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 if (obj6) {
c32bde28 12913 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 if (obj7) {
12917 {
12918 arg8 = &temp8;
12919 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12920 }
12921 }
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6
RD
12924 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12925
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 {
12930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12931 }
12932 return resultobj;
12933 fail:
12934 return NULL;
12935}
12936
12937
c32bde28 12938static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
12939 PyObject *resultobj;
12940 wxDC *arg1 = (wxDC *) 0 ;
12941 int arg2 ;
12942 int arg3 ;
12943 int arg4 ;
12944 int arg5 ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12948 PyObject * obj3 = 0 ;
12949 PyObject * obj4 = 0 ;
12950 char *kwnames[] = {
12951 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12952 };
12953
12954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12957 arg2 = (int)SWIG_As_int(obj1);
c24da6d6 12958 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12959 arg3 = (int)SWIG_As_int(obj2);
c24da6d6 12960 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12961 arg4 = (int)SWIG_As_int(obj3);
c24da6d6 12962 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12963 arg5 = (int)SWIG_As_int(obj4);
c24da6d6
RD
12964 if (PyErr_Occurred()) SWIG_fail;
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 Py_INCREF(Py_None); resultobj = Py_None;
12973 return resultobj;
12974 fail:
12975 return NULL;
12976}
12977
12978
c32bde28 12979static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
12980 PyObject *resultobj;
12981 wxDC *arg1 = (wxDC *) 0 ;
12982 wxPoint *arg2 = 0 ;
12983 wxSize *arg3 = 0 ;
12984 wxPoint temp2 ;
12985 wxSize temp3 ;
12986 PyObject * obj0 = 0 ;
12987 PyObject * obj1 = 0 ;
12988 PyObject * obj2 = 0 ;
12989 char *kwnames[] = {
12990 (char *) "self",(char *) "pt",(char *) "sz", NULL
12991 };
12992
12993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12996 {
12997 arg2 = &temp2;
12998 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12999 }
13000 {
13001 arg3 = &temp3;
13002 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13003 }
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13007
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 Py_INCREF(Py_None); resultobj = Py_None;
13012 return resultobj;
13013 fail:
13014 return NULL;
13015}
13016
13017
c32bde28 13018static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
13019 PyObject *resultobj;
13020 wxDC *arg1 = (wxDC *) 0 ;
13021 wxRegion *arg2 = 0 ;
13022 PyObject * obj0 = 0 ;
13023 PyObject * obj1 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self",(char *) "region", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13032 SWIG_POINTER_EXCEPTION | 0)) == -1)
13033 SWIG_fail;
13034 if (arg2 == NULL) {
13035 PyErr_SetString(PyExc_TypeError,"null reference");
13036 SWIG_fail;
13037 }
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 Py_INCREF(Py_None); resultobj = Py_None;
13046 return resultobj;
13047 fail:
13048 return NULL;
13049}
13050
13051
c32bde28 13052static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
13053 PyObject *resultobj;
13054 wxDC *arg1 = (wxDC *) 0 ;
13055 wxRect *arg2 = 0 ;
13056 wxRect temp2 ;
13057 PyObject * obj0 = 0 ;
13058 PyObject * obj1 = 0 ;
13059 char *kwnames[] = {
13060 (char *) "self",(char *) "rect", NULL
13061 };
13062
13063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
13064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13066 {
13067 arg2 = &temp2;
13068 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13069 }
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
13073
13074 wxPyEndAllowThreads(__tstate);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
c24da6d6 13077 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
13078 return resultobj;
13079 fail:
13080 return NULL;
13081}
13082
13083
c32bde28 13084static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13085 PyObject *resultobj;
13086 wxDC *arg1 = (wxDC *) 0 ;
13087 int arg2 ;
13088 wxPoint *arg3 = (wxPoint *) 0 ;
13089 int arg4 = (int) 0 ;
13090 int arg5 = (int) 0 ;
13091 PyObject * obj0 = 0 ;
13092 PyObject * obj1 = 0 ;
13093 PyObject * obj2 = 0 ;
13094 PyObject * obj3 = 0 ;
13095 char *kwnames[] = {
13096 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
13097 };
13098
13099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13102 {
13103 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13104 if (arg3 == NULL) SWIG_fail;
13105 }
13106 if (obj2) {
c32bde28 13107 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 if (obj3) {
c32bde28 13111 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
13112 if (PyErr_Occurred()) SWIG_fail;
13113 }
13114 {
13115 PyThreadState* __tstate = wxPyBeginAllowThreads();
13116 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
13117
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 Py_INCREF(Py_None); resultobj = Py_None;
13122 {
13123 if (arg3) delete [] arg3;
13124 }
13125 return resultobj;
13126 fail:
13127 {
13128 if (arg3) delete [] arg3;
13129 }
13130 return NULL;
13131}
13132
13133
c32bde28 13134static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13135 PyObject *resultobj;
13136 wxDC *arg1 = (wxDC *) 0 ;
13137 int arg2 ;
13138 wxPoint *arg3 = (wxPoint *) 0 ;
13139 int arg4 = (int) 0 ;
13140 int arg5 = (int) 0 ;
13141 int arg6 = (int) wxODDEVEN_RULE ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 PyObject * obj2 = 0 ;
13145 PyObject * obj3 = 0 ;
13146 PyObject * obj4 = 0 ;
13147 char *kwnames[] = {
13148 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
13149 };
13150
13151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13154 {
13155 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13156 if (arg3 == NULL) SWIG_fail;
13157 }
13158 if (obj2) {
c32bde28 13159 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 if (obj3) {
c32bde28 13163 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 if (obj4) {
c32bde28 13167 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 Py_INCREF(Py_None); resultobj = Py_None;
13178 {
13179 if (arg3) delete [] arg3;
13180 }
13181 return resultobj;
13182 fail:
13183 {
13184 if (arg3) delete [] arg3;
13185 }
13186 return NULL;
13187}
13188
13189
c32bde28 13190static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13191 PyObject *resultobj;
13192 wxDC *arg1 = (wxDC *) 0 ;
13193 wxString *arg2 = 0 ;
13194 wxRect *arg3 = 0 ;
13195 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
13196 int arg5 = (int) -1 ;
ae8162c8 13197 bool temp2 = false ;
d55e5bfc
RD
13198 wxRect temp3 ;
13199 PyObject * obj0 = 0 ;
13200 PyObject * obj1 = 0 ;
13201 PyObject * obj2 = 0 ;
13202 PyObject * obj3 = 0 ;
13203 PyObject * obj4 = 0 ;
13204 char *kwnames[] = {
13205 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
13206 };
13207
13208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13211 {
13212 arg2 = wxString_in_helper(obj1);
13213 if (arg2 == NULL) SWIG_fail;
ae8162c8 13214 temp2 = true;
d55e5bfc
RD
13215 }
13216 {
13217 arg3 = &temp3;
13218 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
13219 }
13220 if (obj3) {
c32bde28 13221 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 if (obj4) {
c32bde28 13225 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
13231
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 Py_INCREF(Py_None); resultobj = Py_None;
13236 {
13237 if (temp2)
13238 delete arg2;
13239 }
13240 return resultobj;
13241 fail:
13242 {
13243 if (temp2)
13244 delete arg2;
13245 }
13246 return NULL;
13247}
13248
13249
c32bde28 13250static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13251 PyObject *resultobj;
13252 wxDC *arg1 = (wxDC *) 0 ;
13253 wxString *arg2 = 0 ;
13254 wxBitmap *arg3 = 0 ;
13255 wxRect *arg4 = 0 ;
13256 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
13257 int arg6 = (int) -1 ;
13258 wxRect result;
ae8162c8 13259 bool temp2 = false ;
d55e5bfc
RD
13260 wxRect temp4 ;
13261 PyObject * obj0 = 0 ;
13262 PyObject * obj1 = 0 ;
13263 PyObject * obj2 = 0 ;
13264 PyObject * obj3 = 0 ;
13265 PyObject * obj4 = 0 ;
13266 PyObject * obj5 = 0 ;
13267 char *kwnames[] = {
13268 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
13269 };
13270
13271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13274 {
13275 arg2 = wxString_in_helper(obj1);
13276 if (arg2 == NULL) SWIG_fail;
ae8162c8 13277 temp2 = true;
d55e5bfc
RD
13278 }
13279 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
13280 SWIG_POINTER_EXCEPTION | 0)) == -1)
13281 SWIG_fail;
13282 if (arg3 == NULL) {
13283 PyErr_SetString(PyExc_TypeError,"null reference");
13284 SWIG_fail;
13285 }
13286 {
13287 arg4 = &temp4;
13288 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
13289 }
13290 if (obj4) {
c32bde28 13291 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 if (obj5) {
c32bde28 13295 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 {
13306 wxRect * resultptr;
13307 resultptr = new wxRect((wxRect &) result);
13308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13309 }
13310 {
13311 if (temp2)
13312 delete arg2;
13313 }
13314 return resultobj;
13315 fail:
13316 {
13317 if (temp2)
13318 delete arg2;
13319 }
13320 return NULL;
13321}
13322
13323
c32bde28 13324static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13325 PyObject *resultobj;
13326 wxDC *arg1 = (wxDC *) 0 ;
13327 int arg2 ;
13328 wxPoint *arg3 = (wxPoint *) 0 ;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "self",(char *) "points", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
13336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13338 {
13339 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13340 if (arg3 == NULL) SWIG_fail;
13341 }
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 (arg1)->DrawSpline(arg2,arg3);
13345
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 Py_INCREF(Py_None); resultobj = Py_None;
13350 {
13351 if (arg3) delete [] arg3;
13352 }
13353 return resultobj;
13354 fail:
13355 {
13356 if (arg3) delete [] arg3;
13357 }
13358 return NULL;
13359}
13360
13361
c32bde28 13362static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13363 PyObject *resultobj;
13364 wxDC *arg1 = (wxDC *) 0 ;
13365 PyObject * obj0 = 0 ;
13366 char *kwnames[] = {
13367 (char *) "self", NULL
13368 };
13369
13370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
13371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13373 {
13374 PyThreadState* __tstate = wxPyBeginAllowThreads();
13375 (arg1)->Clear();
13376
13377 wxPyEndAllowThreads(__tstate);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 }
13380 Py_INCREF(Py_None); resultobj = Py_None;
13381 return resultobj;
13382 fail:
13383 return NULL;
13384}
13385
13386
c32bde28 13387static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13388 PyObject *resultobj;
13389 wxDC *arg1 = (wxDC *) 0 ;
13390 wxString *arg2 = 0 ;
13391 bool result;
ae8162c8 13392 bool temp2 = false ;
d55e5bfc
RD
13393 PyObject * obj0 = 0 ;
13394 PyObject * obj1 = 0 ;
13395 char *kwnames[] = {
13396 (char *) "self",(char *) "message", NULL
13397 };
13398
13399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
13400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13402 {
13403 arg2 = wxString_in_helper(obj1);
13404 if (arg2 == NULL) SWIG_fail;
ae8162c8 13405 temp2 = true;
d55e5bfc
RD
13406 }
13407 {
13408 PyThreadState* __tstate = wxPyBeginAllowThreads();
13409 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
13410
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 {
13415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13416 }
13417 {
13418 if (temp2)
13419 delete arg2;
13420 }
13421 return resultobj;
13422 fail:
13423 {
13424 if (temp2)
13425 delete arg2;
13426 }
13427 return NULL;
13428}
13429
13430
c32bde28 13431static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13432 PyObject *resultobj;
13433 wxDC *arg1 = (wxDC *) 0 ;
13434 PyObject * obj0 = 0 ;
13435 char *kwnames[] = {
13436 (char *) "self", NULL
13437 };
13438
13439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
13440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 (arg1)->EndDoc();
13445
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 Py_INCREF(Py_None); resultobj = Py_None;
13450 return resultobj;
13451 fail:
13452 return NULL;
13453}
13454
13455
c32bde28 13456static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13457 PyObject *resultobj;
13458 wxDC *arg1 = (wxDC *) 0 ;
13459 PyObject * obj0 = 0 ;
13460 char *kwnames[] = {
13461 (char *) "self", NULL
13462 };
13463
13464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 (arg1)->StartPage();
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 Py_INCREF(Py_None); resultobj = Py_None;
13475 return resultobj;
13476 fail:
13477 return NULL;
13478}
13479
13480
c32bde28 13481static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13482 PyObject *resultobj;
13483 wxDC *arg1 = (wxDC *) 0 ;
13484 PyObject * obj0 = 0 ;
13485 char *kwnames[] = {
13486 (char *) "self", NULL
13487 };
13488
13489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 (arg1)->EndPage();
13495
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 Py_INCREF(Py_None); resultobj = Py_None;
13500 return resultobj;
13501 fail:
13502 return NULL;
13503}
13504
13505
c32bde28 13506static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13507 PyObject *resultobj;
13508 wxDC *arg1 = (wxDC *) 0 ;
13509 wxFont *arg2 = 0 ;
13510 PyObject * obj0 = 0 ;
13511 PyObject * obj1 = 0 ;
13512 char *kwnames[] = {
13513 (char *) "self",(char *) "font", NULL
13514 };
13515
13516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13520 SWIG_POINTER_EXCEPTION | 0)) == -1)
13521 SWIG_fail;
13522 if (arg2 == NULL) {
13523 PyErr_SetString(PyExc_TypeError,"null reference");
13524 SWIG_fail;
13525 }
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 (arg1)->SetFont((wxFont const &)*arg2);
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 Py_INCREF(Py_None); resultobj = Py_None;
13534 return resultobj;
13535 fail:
13536 return NULL;
13537}
13538
13539
c32bde28 13540static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13541 PyObject *resultobj;
13542 wxDC *arg1 = (wxDC *) 0 ;
13543 wxPen *arg2 = 0 ;
13544 PyObject * obj0 = 0 ;
13545 PyObject * obj1 = 0 ;
13546 char *kwnames[] = {
13547 (char *) "self",(char *) "pen", NULL
13548 };
13549
13550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13554 SWIG_POINTER_EXCEPTION | 0)) == -1)
13555 SWIG_fail;
13556 if (arg2 == NULL) {
13557 PyErr_SetString(PyExc_TypeError,"null reference");
13558 SWIG_fail;
13559 }
13560 {
13561 PyThreadState* __tstate = wxPyBeginAllowThreads();
13562 (arg1)->SetPen((wxPen const &)*arg2);
13563
13564 wxPyEndAllowThreads(__tstate);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 Py_INCREF(Py_None); resultobj = Py_None;
13568 return resultobj;
13569 fail:
13570 return NULL;
13571}
13572
13573
c32bde28 13574static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13575 PyObject *resultobj;
13576 wxDC *arg1 = (wxDC *) 0 ;
13577 wxBrush *arg2 = 0 ;
13578 PyObject * obj0 = 0 ;
13579 PyObject * obj1 = 0 ;
13580 char *kwnames[] = {
13581 (char *) "self",(char *) "brush", NULL
13582 };
13583
13584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13588 SWIG_POINTER_EXCEPTION | 0)) == -1)
13589 SWIG_fail;
13590 if (arg2 == NULL) {
13591 PyErr_SetString(PyExc_TypeError,"null reference");
13592 SWIG_fail;
13593 }
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 (arg1)->SetBrush((wxBrush const &)*arg2);
13597
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 Py_INCREF(Py_None); resultobj = Py_None;
13602 return resultobj;
13603 fail:
13604 return NULL;
13605}
13606
13607
c32bde28 13608static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13609 PyObject *resultobj;
13610 wxDC *arg1 = (wxDC *) 0 ;
13611 wxBrush *arg2 = 0 ;
13612 PyObject * obj0 = 0 ;
13613 PyObject * obj1 = 0 ;
13614 char *kwnames[] = {
13615 (char *) "self",(char *) "brush", NULL
13616 };
13617
13618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13621 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13622 SWIG_POINTER_EXCEPTION | 0)) == -1)
13623 SWIG_fail;
13624 if (arg2 == NULL) {
13625 PyErr_SetString(PyExc_TypeError,"null reference");
13626 SWIG_fail;
13627 }
13628 {
13629 PyThreadState* __tstate = wxPyBeginAllowThreads();
13630 (arg1)->SetBackground((wxBrush const &)*arg2);
13631
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 Py_INCREF(Py_None); resultobj = Py_None;
13636 return resultobj;
13637 fail:
13638 return NULL;
13639}
13640
13641
c32bde28 13642static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13643 PyObject *resultobj;
13644 wxDC *arg1 = (wxDC *) 0 ;
13645 int arg2 ;
13646 PyObject * obj0 = 0 ;
13647 PyObject * obj1 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self",(char *) "mode", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13655 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13656 if (PyErr_Occurred()) SWIG_fail;
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 (arg1)->SetBackgroundMode(arg2);
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 Py_INCREF(Py_None); resultobj = Py_None;
13665 return resultobj;
13666 fail:
13667 return NULL;
13668}
13669
13670
c32bde28 13671static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13672 PyObject *resultobj;
13673 wxDC *arg1 = (wxDC *) 0 ;
13674 wxPalette *arg2 = 0 ;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char *kwnames[] = {
13678 (char *) "self",(char *) "palette", NULL
13679 };
13680
13681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13684 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13685 SWIG_POINTER_EXCEPTION | 0)) == -1)
13686 SWIG_fail;
13687 if (arg2 == NULL) {
13688 PyErr_SetString(PyExc_TypeError,"null reference");
13689 SWIG_fail;
13690 }
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 (arg1)->SetPalette((wxPalette const &)*arg2);
13694
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 Py_INCREF(Py_None); resultobj = Py_None;
13699 return resultobj;
13700 fail:
13701 return NULL;
13702}
13703
13704
c32bde28 13705static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13706 PyObject *resultobj;
13707 wxDC *arg1 = (wxDC *) 0 ;
13708 PyObject * obj0 = 0 ;
13709 char *kwnames[] = {
13710 (char *) "self", NULL
13711 };
13712
13713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13716 {
13717 PyThreadState* __tstate = wxPyBeginAllowThreads();
13718 (arg1)->DestroyClippingRegion();
13719
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 Py_INCREF(Py_None); resultobj = Py_None;
13724 return resultobj;
13725 fail:
13726 return NULL;
13727}
13728
13729
c32bde28 13730static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13731 PyObject *resultobj;
13732 wxDC *arg1 = (wxDC *) 0 ;
13733 int *arg2 = (int *) 0 ;
13734 int *arg3 = (int *) 0 ;
13735 int *arg4 = (int *) 0 ;
13736 int *arg5 = (int *) 0 ;
13737 int temp2 ;
c32bde28 13738 int res2 = 0 ;
d55e5bfc 13739 int temp3 ;
c32bde28 13740 int res3 = 0 ;
d55e5bfc 13741 int temp4 ;
c32bde28 13742 int res4 = 0 ;
d55e5bfc 13743 int temp5 ;
c32bde28 13744 int res5 = 0 ;
d55e5bfc
RD
13745 PyObject * obj0 = 0 ;
13746 char *kwnames[] = {
13747 (char *) "self", NULL
13748 };
13749
c32bde28
RD
13750 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13751 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13752 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13753 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13760
13761 wxPyEndAllowThreads(__tstate);
13762 if (PyErr_Occurred()) SWIG_fail;
13763 }
13764 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13765 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13766 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13767 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13768 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13769 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13770 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13771 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13772 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13773 return resultobj;
13774 fail:
13775 return NULL;
13776}
13777
13778
c32bde28 13779static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13780 PyObject *resultobj;
13781 wxDC *arg1 = (wxDC *) 0 ;
13782 wxRect result;
13783 PyObject * obj0 = 0 ;
13784 char *kwnames[] = {
13785 (char *) "self", NULL
13786 };
13787
13788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13791 {
13792 PyThreadState* __tstate = wxPyBeginAllowThreads();
13793 result = wxDC_GetClippingRect(arg1);
13794
13795 wxPyEndAllowThreads(__tstate);
13796 if (PyErr_Occurred()) SWIG_fail;
13797 }
13798 {
13799 wxRect * resultptr;
13800 resultptr = new wxRect((wxRect &) result);
13801 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13802 }
13803 return resultobj;
13804 fail:
13805 return NULL;
13806}
13807
13808
c32bde28 13809static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13810 PyObject *resultobj;
13811 wxDC *arg1 = (wxDC *) 0 ;
13812 int result;
13813 PyObject * obj0 = 0 ;
13814 char *kwnames[] = {
13815 (char *) "self", NULL
13816 };
13817
13818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13821 {
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
13823 result = (int)((wxDC const *)arg1)->GetCharHeight();
13824
13825 wxPyEndAllowThreads(__tstate);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
c32bde28 13828 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13829 return resultobj;
13830 fail:
13831 return NULL;
13832}
13833
13834
c32bde28 13835static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13836 PyObject *resultobj;
13837 wxDC *arg1 = (wxDC *) 0 ;
13838 int result;
13839 PyObject * obj0 = 0 ;
13840 char *kwnames[] = {
13841 (char *) "self", NULL
13842 };
13843
13844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (int)((wxDC const *)arg1)->GetCharWidth();
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
c32bde28 13854 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13855 return resultobj;
13856 fail:
13857 return NULL;
13858}
13859
13860
c32bde28 13861static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13862 PyObject *resultobj;
13863 wxDC *arg1 = (wxDC *) 0 ;
13864 wxString *arg2 = 0 ;
13865 int *arg3 = (int *) 0 ;
13866 int *arg4 = (int *) 0 ;
ae8162c8 13867 bool temp2 = false ;
d55e5bfc 13868 int temp3 ;
c32bde28 13869 int res3 = 0 ;
d55e5bfc 13870 int temp4 ;
c32bde28 13871 int res4 = 0 ;
d55e5bfc
RD
13872 PyObject * obj0 = 0 ;
13873 PyObject * obj1 = 0 ;
13874 char *kwnames[] = {
13875 (char *) "self",(char *) "string", NULL
13876 };
13877
c32bde28
RD
13878 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13879 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
13880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13883 {
13884 arg2 = wxString_in_helper(obj1);
13885 if (arg2 == NULL) SWIG_fail;
ae8162c8 13886 temp2 = true;
d55e5bfc
RD
13887 }
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13891
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13896 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13897 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13898 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13899 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13900 {
13901 if (temp2)
13902 delete arg2;
13903 }
13904 return resultobj;
13905 fail:
13906 {
13907 if (temp2)
13908 delete arg2;
13909 }
13910 return NULL;
13911}
13912
13913
c32bde28 13914static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13915 PyObject *resultobj;
13916 wxDC *arg1 = (wxDC *) 0 ;
13917 wxString *arg2 = 0 ;
13918 int *arg3 = (int *) 0 ;
13919 int *arg4 = (int *) 0 ;
13920 int *arg5 = (int *) 0 ;
13921 int *arg6 = (int *) 0 ;
13922 wxFont *arg7 = (wxFont *) NULL ;
ae8162c8 13923 bool temp2 = false ;
d55e5bfc 13924 int temp3 ;
c32bde28 13925 int res3 = 0 ;
d55e5bfc 13926 int temp4 ;
c32bde28 13927 int res4 = 0 ;
d55e5bfc 13928 int temp5 ;
c32bde28 13929 int res5 = 0 ;
d55e5bfc 13930 int temp6 ;
c32bde28 13931 int res6 = 0 ;
d55e5bfc
RD
13932 PyObject * obj0 = 0 ;
13933 PyObject * obj1 = 0 ;
13934 PyObject * obj2 = 0 ;
13935 char *kwnames[] = {
13936 (char *) "self",(char *) "string",(char *) "font", NULL
13937 };
13938
c32bde28
RD
13939 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13940 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13941 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13942 arg6 = &temp6; res6 = SWIG_NEWOBJ;
d55e5bfc
RD
13943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13946 {
13947 arg2 = wxString_in_helper(obj1);
13948 if (arg2 == NULL) SWIG_fail;
ae8162c8 13949 temp2 = true;
d55e5bfc
RD
13950 }
13951 if (obj2) {
13952 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13954 }
13955 {
13956 PyThreadState* __tstate = wxPyBeginAllowThreads();
13957 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13958
13959 wxPyEndAllowThreads(__tstate);
13960 if (PyErr_Occurred()) SWIG_fail;
13961 }
13962 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
13963 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13964 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13965 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13966 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13967 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13968 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13969 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13970 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13971 {
13972 if (temp2)
13973 delete arg2;
13974 }
13975 return resultobj;
13976 fail:
13977 {
13978 if (temp2)
13979 delete arg2;
13980 }
13981 return NULL;
13982}
13983
13984
c32bde28 13985static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13986 PyObject *resultobj;
13987 wxDC *arg1 = (wxDC *) 0 ;
13988 wxString *arg2 = 0 ;
13989 int *arg3 = (int *) 0 ;
13990 int *arg4 = (int *) 0 ;
13991 int *arg5 = (int *) 0 ;
13992 wxFont *arg6 = (wxFont *) NULL ;
ae8162c8 13993 bool temp2 = false ;
d55e5bfc 13994 int temp3 ;
c32bde28 13995 int res3 = 0 ;
d55e5bfc 13996 int temp4 ;
c32bde28 13997 int res4 = 0 ;
d55e5bfc 13998 int temp5 ;
c32bde28 13999 int res5 = 0 ;
d55e5bfc
RD
14000 PyObject * obj0 = 0 ;
14001 PyObject * obj1 = 0 ;
14002 PyObject * obj2 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self",(char *) "text",(char *) "font", NULL
14005 };
14006
c32bde28
RD
14007 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14008 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14009 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
14010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
14011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14013 {
14014 arg2 = wxString_in_helper(obj1);
14015 if (arg2 == NULL) SWIG_fail;
ae8162c8 14016 temp2 = true;
d55e5bfc
RD
14017 }
14018 if (obj2) {
14019 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
14020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14021 }
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
14025
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14030 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14031 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14032 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14033 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14034 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
14035 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14036 {
14037 if (temp2)
14038 delete arg2;
14039 }
14040 return resultobj;
14041 fail:
14042 {
14043 if (temp2)
14044 delete arg2;
14045 }
14046 return NULL;
14047}
14048
14049
c32bde28 14050static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14051 PyObject *resultobj;
14052 wxDC *arg1 = (wxDC *) 0 ;
14053 wxString *arg2 = 0 ;
14054 wxArrayInt result;
ae8162c8 14055 bool temp2 = false ;
d55e5bfc
RD
14056 PyObject * obj0 = 0 ;
14057 PyObject * obj1 = 0 ;
14058 char *kwnames[] = {
14059 (char *) "self",(char *) "text", NULL
14060 };
14061
14062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
14063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14065 {
14066 arg2 = wxString_in_helper(obj1);
14067 if (arg2 == NULL) SWIG_fail;
ae8162c8 14068 temp2 = true;
d55e5bfc
RD
14069 }
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
14073
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 {
14078 resultobj = PyList_New(0);
14079 size_t idx;
14080 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
14081 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
14082 PyList_Append(resultobj, val);
14083 Py_DECREF(val);
14084 }
14085 }
14086 {
14087 if (temp2)
14088 delete arg2;
14089 }
14090 return resultobj;
14091 fail:
14092 {
14093 if (temp2)
14094 delete arg2;
14095 }
14096 return NULL;
14097}
14098
14099
c32bde28 14100static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14101 PyObject *resultobj;
14102 wxDC *arg1 = (wxDC *) 0 ;
14103 wxSize result;
14104 PyObject * obj0 = 0 ;
14105 char *kwnames[] = {
14106 (char *) "self", NULL
14107 };
14108
14109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
14110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (arg1)->GetSize();
14115
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 {
14120 wxSize * resultptr;
14121 resultptr = new wxSize((wxSize &) result);
14122 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14123 }
14124 return resultobj;
14125 fail:
14126 return NULL;
14127}
14128
14129
c32bde28 14130static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14131 PyObject *resultobj;
14132 wxDC *arg1 = (wxDC *) 0 ;
14133 int *arg2 = (int *) 0 ;
14134 int *arg3 = (int *) 0 ;
14135 int temp2 ;
c32bde28 14136 int res2 = 0 ;
d55e5bfc 14137 int temp3 ;
c32bde28 14138 int res3 = 0 ;
d55e5bfc
RD
14139 PyObject * obj0 = 0 ;
14140 char *kwnames[] = {
14141 (char *) "self", NULL
14142 };
14143
c32bde28
RD
14144 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14145 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
14147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 (arg1)->GetSize(arg2,arg3);
14152
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14157 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14158 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14159 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14160 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14161 return resultobj;
14162 fail:
14163 return NULL;
14164}
14165
14166
c32bde28 14167static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14168 PyObject *resultobj;
14169 wxDC *arg1 = (wxDC *) 0 ;
14170 wxSize result;
14171 PyObject * obj0 = 0 ;
14172 char *kwnames[] = {
14173 (char *) "self", NULL
14174 };
14175
14176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
14177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 result = ((wxDC const *)arg1)->GetSizeMM();
14182
14183 wxPyEndAllowThreads(__tstate);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 }
14186 {
14187 wxSize * resultptr;
14188 resultptr = new wxSize((wxSize &) result);
14189 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14190 }
14191 return resultobj;
14192 fail:
14193 return NULL;
14194}
14195
14196
c32bde28 14197static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14198 PyObject *resultobj;
14199 wxDC *arg1 = (wxDC *) 0 ;
14200 int *arg2 = (int *) 0 ;
14201 int *arg3 = (int *) 0 ;
14202 int temp2 ;
c32bde28 14203 int res2 = 0 ;
d55e5bfc 14204 int temp3 ;
c32bde28 14205 int res3 = 0 ;
d55e5bfc
RD
14206 PyObject * obj0 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self", NULL
14209 };
14210
c32bde28
RD
14211 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14212 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
14214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
14219
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14224 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14225 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14226 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14227 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14228 return resultobj;
14229 fail:
14230 return NULL;
14231}
14232
14233
c32bde28 14234static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14235 PyObject *resultobj;
14236 wxDC *arg1 = (wxDC *) 0 ;
14237 int arg2 ;
14238 int result;
14239 PyObject * obj0 = 0 ;
14240 PyObject * obj1 = 0 ;
14241 char *kwnames[] = {
14242 (char *) "self",(char *) "x", NULL
14243 };
14244
14245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
14246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14248 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14249 if (PyErr_Occurred()) SWIG_fail;
14250 {
14251 PyThreadState* __tstate = wxPyBeginAllowThreads();
14252 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
14253
14254 wxPyEndAllowThreads(__tstate);
14255 if (PyErr_Occurred()) SWIG_fail;
14256 }
c32bde28 14257 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14258 return resultobj;
14259 fail:
14260 return NULL;
14261}
14262
14263
c32bde28 14264static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14265 PyObject *resultobj;
14266 wxDC *arg1 = (wxDC *) 0 ;
14267 int arg2 ;
14268 int result;
14269 PyObject * obj0 = 0 ;
14270 PyObject * obj1 = 0 ;
14271 char *kwnames[] = {
14272 (char *) "self",(char *) "y", NULL
14273 };
14274
14275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
14276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14278 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14279 if (PyErr_Occurred()) SWIG_fail;
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
14283
14284 wxPyEndAllowThreads(__tstate);
14285 if (PyErr_Occurred()) SWIG_fail;
14286 }
c32bde28 14287 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14288 return resultobj;
14289 fail:
14290 return NULL;
14291}
14292
14293
c32bde28 14294static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14295 PyObject *resultobj;
14296 wxDC *arg1 = (wxDC *) 0 ;
14297 int arg2 ;
14298 int result;
14299 PyObject * obj0 = 0 ;
14300 PyObject * obj1 = 0 ;
14301 char *kwnames[] = {
14302 (char *) "self",(char *) "x", NULL
14303 };
14304
14305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
14306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14308 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14309 if (PyErr_Occurred()) SWIG_fail;
14310 {
14311 PyThreadState* __tstate = wxPyBeginAllowThreads();
14312 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
14313
14314 wxPyEndAllowThreads(__tstate);
14315 if (PyErr_Occurred()) SWIG_fail;
14316 }
c32bde28 14317 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14318 return resultobj;
14319 fail:
14320 return NULL;
14321}
14322
14323
c32bde28 14324static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14325 PyObject *resultobj;
14326 wxDC *arg1 = (wxDC *) 0 ;
14327 int arg2 ;
14328 int result;
14329 PyObject * obj0 = 0 ;
14330 PyObject * obj1 = 0 ;
14331 char *kwnames[] = {
14332 (char *) "self",(char *) "y", NULL
14333 };
14334
14335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
14336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14338 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14339 if (PyErr_Occurred()) SWIG_fail;
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
c32bde28 14347 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14348 return resultobj;
14349 fail:
14350 return NULL;
14351}
14352
14353
c32bde28 14354static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14355 PyObject *resultobj;
14356 wxDC *arg1 = (wxDC *) 0 ;
14357 int arg2 ;
14358 int result;
14359 PyObject * obj0 = 0 ;
14360 PyObject * obj1 = 0 ;
14361 char *kwnames[] = {
14362 (char *) "self",(char *) "x", NULL
14363 };
14364
14365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
14366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14368 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14369 if (PyErr_Occurred()) SWIG_fail;
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
14373
14374 wxPyEndAllowThreads(__tstate);
14375 if (PyErr_Occurred()) SWIG_fail;
14376 }
c32bde28 14377 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14378 return resultobj;
14379 fail:
14380 return NULL;
14381}
14382
14383
c32bde28 14384static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14385 PyObject *resultobj;
14386 wxDC *arg1 = (wxDC *) 0 ;
14387 int arg2 ;
14388 int result;
14389 PyObject * obj0 = 0 ;
14390 PyObject * obj1 = 0 ;
14391 char *kwnames[] = {
14392 (char *) "self",(char *) "y", NULL
14393 };
14394
14395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
14396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14398 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14399 if (PyErr_Occurred()) SWIG_fail;
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14403
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
c32bde28 14407 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14408 return resultobj;
14409 fail:
14410 return NULL;
14411}
14412
14413
c32bde28 14414static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14415 PyObject *resultobj;
14416 wxDC *arg1 = (wxDC *) 0 ;
14417 int arg2 ;
14418 int result;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self",(char *) "x", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14428 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14429 if (PyErr_Occurred()) SWIG_fail;
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14433
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
c32bde28 14437 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14438 return resultobj;
14439 fail:
14440 return NULL;
14441}
14442
14443
c32bde28 14444static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14445 PyObject *resultobj;
14446 wxDC *arg1 = (wxDC *) 0 ;
14447 int arg2 ;
14448 int result;
14449 PyObject * obj0 = 0 ;
14450 PyObject * obj1 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "self",(char *) "y", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14458 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14459 if (PyErr_Occurred()) SWIG_fail;
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14463
14464 wxPyEndAllowThreads(__tstate);
14465 if (PyErr_Occurred()) SWIG_fail;
14466 }
c32bde28 14467 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14468 return resultobj;
14469 fail:
14470 return NULL;
14471}
14472
14473
c32bde28 14474static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14475 PyObject *resultobj;
14476 wxDC *arg1 = (wxDC *) 0 ;
14477 bool result;
14478 PyObject * obj0 = 0 ;
14479 char *kwnames[] = {
14480 (char *) "self", NULL
14481 };
14482
14483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14489
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 {
14494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14495 }
14496 return resultobj;
14497 fail:
14498 return NULL;
14499}
14500
14501
c32bde28 14502static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14503 PyObject *resultobj;
14504 wxDC *arg1 = (wxDC *) 0 ;
14505 bool result;
14506 PyObject * obj0 = 0 ;
14507 char *kwnames[] = {
14508 (char *) "self", NULL
14509 };
14510
14511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14517
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14523 }
14524 return resultobj;
14525 fail:
14526 return NULL;
14527}
14528
14529
c32bde28 14530static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14531 PyObject *resultobj;
14532 wxDC *arg1 = (wxDC *) 0 ;
14533 int result;
14534 PyObject * obj0 = 0 ;
14535 char *kwnames[] = {
14536 (char *) "self", NULL
14537 };
14538
14539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = (int)((wxDC const *)arg1)->GetDepth();
14545
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
c32bde28 14549 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14550 return resultobj;
14551 fail:
14552 return NULL;
14553}
14554
14555
c32bde28 14556static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14557 PyObject *resultobj;
14558 wxDC *arg1 = (wxDC *) 0 ;
14559 wxSize result;
14560 PyObject * obj0 = 0 ;
14561 char *kwnames[] = {
14562 (char *) "self", NULL
14563 };
14564
14565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 result = ((wxDC const *)arg1)->GetPPI();
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 {
14576 wxSize * resultptr;
14577 resultptr = new wxSize((wxSize &) result);
14578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14579 }
14580 return resultobj;
14581 fail:
14582 return NULL;
14583}
14584
14585
c32bde28 14586static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14587 PyObject *resultobj;
14588 wxDC *arg1 = (wxDC *) 0 ;
14589 bool result;
14590 PyObject * obj0 = 0 ;
14591 char *kwnames[] = {
14592 (char *) "self", NULL
14593 };
14594
14595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 result = (bool)((wxDC const *)arg1)->Ok();
14601
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 {
14606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14607 }
14608 return resultobj;
14609 fail:
14610 return NULL;
14611}
14612
14613
c32bde28 14614static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14615 PyObject *resultobj;
14616 wxDC *arg1 = (wxDC *) 0 ;
14617 int result;
14618 PyObject * obj0 = 0 ;
14619 char *kwnames[] = {
14620 (char *) "self", NULL
14621 };
14622
14623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14629
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
c32bde28 14633 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14634 return resultobj;
14635 fail:
14636 return NULL;
14637}
14638
14639
c32bde28 14640static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14641 PyObject *resultobj;
14642 wxDC *arg1 = (wxDC *) 0 ;
14643 wxBrush *result;
14644 PyObject * obj0 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "self", NULL
14647 };
14648
14649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 {
14655 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14656 result = (wxBrush *) &_result_ref;
14657 }
14658
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 {
14663 wxBrush* resultptr = new wxBrush(*result);
14664 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14665 }
14666 return resultobj;
14667 fail:
14668 return NULL;
14669}
14670
14671
c32bde28 14672static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14673 PyObject *resultobj;
14674 wxDC *arg1 = (wxDC *) 0 ;
14675 wxBrush *result;
14676 PyObject * obj0 = 0 ;
14677 char *kwnames[] = {
14678 (char *) "self", NULL
14679 };
14680
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 {
14687 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14688 result = (wxBrush *) &_result_ref;
14689 }
14690
14691 wxPyEndAllowThreads(__tstate);
14692 if (PyErr_Occurred()) SWIG_fail;
14693 }
14694 {
14695 wxBrush* resultptr = new wxBrush(*result);
14696 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14697 }
14698 return resultobj;
14699 fail:
14700 return NULL;
14701}
14702
14703
c32bde28 14704static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14705 PyObject *resultobj;
14706 wxDC *arg1 = (wxDC *) 0 ;
14707 wxFont *result;
14708 PyObject * obj0 = 0 ;
14709 char *kwnames[] = {
14710 (char *) "self", NULL
14711 };
14712
14713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14716 {
14717 PyThreadState* __tstate = wxPyBeginAllowThreads();
14718 {
14719 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14720 result = (wxFont *) &_result_ref;
14721 }
14722
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 {
14727 wxFont* resultptr = new wxFont(*result);
14728 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14729 }
14730 return resultobj;
14731 fail:
14732 return NULL;
14733}
14734
14735
c32bde28 14736static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14737 PyObject *resultobj;
14738 wxDC *arg1 = (wxDC *) 0 ;
14739 wxPen *result;
14740 PyObject * obj0 = 0 ;
14741 char *kwnames[] = {
14742 (char *) "self", NULL
14743 };
14744
14745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 {
14751 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14752 result = (wxPen *) &_result_ref;
14753 }
14754
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 {
14759 wxPen* resultptr = new wxPen(*result);
14760 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14761 }
14762 return resultobj;
14763 fail:
14764 return NULL;
14765}
14766
14767
c32bde28 14768static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14769 PyObject *resultobj;
14770 wxDC *arg1 = (wxDC *) 0 ;
14771 wxColour *result;
14772 PyObject * obj0 = 0 ;
14773 char *kwnames[] = {
14774 (char *) "self", NULL
14775 };
14776
14777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 {
14783 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14784 result = (wxColour *) &_result_ref;
14785 }
14786
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14791 return resultobj;
14792 fail:
14793 return NULL;
14794}
14795
14796
c32bde28 14797static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14798 PyObject *resultobj;
14799 wxDC *arg1 = (wxDC *) 0 ;
14800 wxColour *result;
14801 PyObject * obj0 = 0 ;
14802 char *kwnames[] = {
14803 (char *) "self", NULL
14804 };
14805
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14809 {
14810 PyThreadState* __tstate = wxPyBeginAllowThreads();
14811 {
14812 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14813 result = (wxColour *) &_result_ref;
14814 }
14815
14816 wxPyEndAllowThreads(__tstate);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
14819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14820 return resultobj;
14821 fail:
14822 return NULL;
14823}
14824
14825
c32bde28 14826static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14827 PyObject *resultobj;
14828 wxDC *arg1 = (wxDC *) 0 ;
14829 wxColour *arg2 = 0 ;
14830 wxColour temp2 ;
14831 PyObject * obj0 = 0 ;
14832 PyObject * obj1 = 0 ;
14833 char *kwnames[] = {
14834 (char *) "self",(char *) "colour", NULL
14835 };
14836
14837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14840 {
14841 arg2 = &temp2;
14842 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14843 }
14844 {
14845 PyThreadState* __tstate = wxPyBeginAllowThreads();
14846 (arg1)->SetTextForeground((wxColour const &)*arg2);
14847
14848 wxPyEndAllowThreads(__tstate);
14849 if (PyErr_Occurred()) SWIG_fail;
14850 }
14851 Py_INCREF(Py_None); resultobj = Py_None;
14852 return resultobj;
14853 fail:
14854 return NULL;
14855}
14856
14857
c32bde28 14858static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14859 PyObject *resultobj;
14860 wxDC *arg1 = (wxDC *) 0 ;
14861 wxColour *arg2 = 0 ;
14862 wxColour temp2 ;
14863 PyObject * obj0 = 0 ;
14864 PyObject * obj1 = 0 ;
14865 char *kwnames[] = {
14866 (char *) "self",(char *) "colour", NULL
14867 };
14868
14869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14872 {
14873 arg2 = &temp2;
14874 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14875 }
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetTextBackground((wxColour const &)*arg2);
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 Py_INCREF(Py_None); resultobj = Py_None;
14884 return resultobj;
14885 fail:
14886 return NULL;
14887}
14888
14889
c32bde28 14890static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14891 PyObject *resultobj;
14892 wxDC *arg1 = (wxDC *) 0 ;
14893 int result;
14894 PyObject * obj0 = 0 ;
14895 char *kwnames[] = {
14896 (char *) "self", NULL
14897 };
14898
14899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14902 {
14903 PyThreadState* __tstate = wxPyBeginAllowThreads();
14904 result = (int)((wxDC const *)arg1)->GetMapMode();
14905
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
c32bde28 14909 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14910 return resultobj;
14911 fail:
14912 return NULL;
14913}
14914
14915
c32bde28 14916static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14917 PyObject *resultobj;
14918 wxDC *arg1 = (wxDC *) 0 ;
14919 int arg2 ;
14920 PyObject * obj0 = 0 ;
14921 PyObject * obj1 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "self",(char *) "mode", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14929 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14930 if (PyErr_Occurred()) SWIG_fail;
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 (arg1)->SetMapMode(arg2);
14934
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 Py_INCREF(Py_None); resultobj = Py_None;
14939 return resultobj;
14940 fail:
14941 return NULL;
14942}
14943
14944
c32bde28 14945static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14946 PyObject *resultobj;
14947 wxDC *arg1 = (wxDC *) 0 ;
14948 double *arg2 = (double *) 0 ;
14949 double *arg3 = (double *) 0 ;
14950 double temp2 ;
c32bde28 14951 int res2 = 0 ;
d55e5bfc 14952 double temp3 ;
c32bde28 14953 int res3 = 0 ;
d55e5bfc
RD
14954 PyObject * obj0 = 0 ;
14955 char *kwnames[] = {
14956 (char *) "self", NULL
14957 };
14958
c32bde28
RD
14959 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14960 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14967
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14972 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14973 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14974 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14975 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14976 return resultobj;
14977 fail:
14978 return NULL;
14979}
14980
14981
c32bde28 14982static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14983 PyObject *resultobj;
14984 wxDC *arg1 = (wxDC *) 0 ;
14985 double arg2 ;
14986 double arg3 ;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989 PyObject * obj2 = 0 ;
14990 char *kwnames[] = {
14991 (char *) "self",(char *) "x",(char *) "y", NULL
14992 };
14993
14994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14997 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14998 if (PyErr_Occurred()) SWIG_fail;
c32bde28 14999 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
15000 if (PyErr_Occurred()) SWIG_fail;
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 (arg1)->SetUserScale(arg2,arg3);
15004
15005 wxPyEndAllowThreads(__tstate);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 Py_INCREF(Py_None); resultobj = Py_None;
15009 return resultobj;
15010 fail:
15011 return NULL;
15012}
15013
15014
c32bde28 15015static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15016 PyObject *resultobj;
15017 wxDC *arg1 = (wxDC *) 0 ;
15018 double *arg2 = (double *) 0 ;
15019 double *arg3 = (double *) 0 ;
15020 double temp2 ;
c32bde28 15021 int res2 = 0 ;
d55e5bfc 15022 double temp3 ;
c32bde28 15023 int res3 = 0 ;
d55e5bfc
RD
15024 PyObject * obj0 = 0 ;
15025 char *kwnames[] = {
15026 (char *) "self", NULL
15027 };
15028
c32bde28
RD
15029 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15030 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
15031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
15032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15034 {
15035 PyThreadState* __tstate = wxPyBeginAllowThreads();
15036 (arg1)->GetLogicalScale(arg2,arg3);
15037
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
15042 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15043 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
15044 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15045 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
15046 return resultobj;
15047 fail:
15048 return NULL;
15049}
15050
15051
c32bde28 15052static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15053 PyObject *resultobj;
15054 wxDC *arg1 = (wxDC *) 0 ;
15055 double arg2 ;
15056 double arg3 ;
15057 PyObject * obj0 = 0 ;
15058 PyObject * obj1 = 0 ;
15059 PyObject * obj2 = 0 ;
15060 char *kwnames[] = {
15061 (char *) "self",(char *) "x",(char *) "y", NULL
15062 };
15063
15064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15067 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 15068 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15069 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
15070 if (PyErr_Occurred()) SWIG_fail;
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
15073 (arg1)->SetLogicalScale(arg2,arg3);
15074
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 Py_INCREF(Py_None); resultobj = Py_None;
15079 return resultobj;
15080 fail:
15081 return NULL;
15082}
15083
15084
c32bde28 15085static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15086 PyObject *resultobj;
15087 wxDC *arg1 = (wxDC *) 0 ;
15088 wxPoint result;
15089 PyObject * obj0 = 0 ;
15090 char *kwnames[] = {
15091 (char *) "self", NULL
15092 };
15093
15094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
15095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 result = ((wxDC const *)arg1)->GetLogicalOrigin();
15100
15101 wxPyEndAllowThreads(__tstate);
15102 if (PyErr_Occurred()) SWIG_fail;
15103 }
15104 {
15105 wxPoint * resultptr;
15106 resultptr = new wxPoint((wxPoint &) result);
15107 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15108 }
15109 return resultobj;
15110 fail:
15111 return NULL;
15112}
15113
15114
c32bde28 15115static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15116 PyObject *resultobj;
15117 wxDC *arg1 = (wxDC *) 0 ;
15118 int *arg2 = (int *) 0 ;
15119 int *arg3 = (int *) 0 ;
15120 int temp2 ;
c32bde28 15121 int res2 = 0 ;
d55e5bfc 15122 int temp3 ;
c32bde28 15123 int res3 = 0 ;
d55e5bfc
RD
15124 PyObject * obj0 = 0 ;
15125 char *kwnames[] = {
15126 (char *) "self", NULL
15127 };
15128
c32bde28
RD
15129 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15130 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
15131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
15132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
15137
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
15142 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15143 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15144 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15145 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15146 return resultobj;
15147 fail:
15148 return NULL;
15149}
15150
15151
c32bde28 15152static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15153 PyObject *resultobj;
15154 wxDC *arg1 = (wxDC *) 0 ;
15155 int arg2 ;
15156 int arg3 ;
15157 PyObject * obj0 = 0 ;
15158 PyObject * obj1 = 0 ;
15159 PyObject * obj2 = 0 ;
15160 char *kwnames[] = {
15161 (char *) "self",(char *) "x",(char *) "y", NULL
15162 };
15163
15164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15167 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 15168 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15169 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
15170 if (PyErr_Occurred()) SWIG_fail;
15171 {
15172 PyThreadState* __tstate = wxPyBeginAllowThreads();
15173 (arg1)->SetLogicalOrigin(arg2,arg3);
15174
15175 wxPyEndAllowThreads(__tstate);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 }
15178 Py_INCREF(Py_None); resultobj = Py_None;
15179 return resultobj;
15180 fail:
15181 return NULL;
15182}
15183
15184
c32bde28 15185static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
15186 PyObject *resultobj;
15187 wxDC *arg1 = (wxDC *) 0 ;
15188 wxPoint *arg2 = 0 ;
15189 wxPoint temp2 ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 char *kwnames[] = {
15193 (char *) "self",(char *) "point", NULL
15194 };
15195
15196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
15197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15199 {
15200 arg2 = &temp2;
15201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15202 }
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 Py_INCREF(Py_None); resultobj = Py_None;
15211 return resultobj;
15212 fail:
15213 return NULL;
15214}
15215
15216
c32bde28 15217static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15218 PyObject *resultobj;
15219 wxDC *arg1 = (wxDC *) 0 ;
15220 wxPoint result;
15221 PyObject * obj0 = 0 ;
15222 char *kwnames[] = {
15223 (char *) "self", NULL
15224 };
15225
15226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
15227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15229 {
15230 PyThreadState* __tstate = wxPyBeginAllowThreads();
15231 result = ((wxDC const *)arg1)->GetDeviceOrigin();
15232
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 {
15237 wxPoint * resultptr;
15238 resultptr = new wxPoint((wxPoint &) result);
15239 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15240 }
15241 return resultobj;
15242 fail:
15243 return NULL;
15244}
15245
15246
c32bde28 15247static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15248 PyObject *resultobj;
15249 wxDC *arg1 = (wxDC *) 0 ;
15250 int *arg2 = (int *) 0 ;
15251 int *arg3 = (int *) 0 ;
15252 int temp2 ;
c32bde28 15253 int res2 = 0 ;
d55e5bfc 15254 int temp3 ;
c32bde28 15255 int res3 = 0 ;
d55e5bfc
RD
15256 PyObject * obj0 = 0 ;
15257 char *kwnames[] = {
15258 (char *) "self", NULL
15259 };
15260
c32bde28
RD
15261 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15262 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
15269
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
15274 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15275 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15276 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15277 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15278 return resultobj;
15279 fail:
15280 return NULL;
15281}
15282
15283
c32bde28 15284static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15285 PyObject *resultobj;
15286 wxDC *arg1 = (wxDC *) 0 ;
15287 int arg2 ;
15288 int arg3 ;
15289 PyObject * obj0 = 0 ;
15290 PyObject * obj1 = 0 ;
15291 PyObject * obj2 = 0 ;
15292 char *kwnames[] = {
15293 (char *) "self",(char *) "x",(char *) "y", NULL
15294 };
15295
15296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15299 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 15300 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15301 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
15302 if (PyErr_Occurred()) SWIG_fail;
15303 {
15304 PyThreadState* __tstate = wxPyBeginAllowThreads();
15305 (arg1)->SetDeviceOrigin(arg2,arg3);
15306
15307 wxPyEndAllowThreads(__tstate);
15308 if (PyErr_Occurred()) SWIG_fail;
15309 }
15310 Py_INCREF(Py_None); resultobj = Py_None;
15311 return resultobj;
15312 fail:
15313 return NULL;
15314}
15315
15316
c32bde28 15317static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
15318 PyObject *resultobj;
15319 wxDC *arg1 = (wxDC *) 0 ;
15320 wxPoint *arg2 = 0 ;
15321 wxPoint temp2 ;
15322 PyObject * obj0 = 0 ;
15323 PyObject * obj1 = 0 ;
15324 char *kwnames[] = {
15325 (char *) "self",(char *) "point", NULL
15326 };
15327
15328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
15329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15331 {
15332 arg2 = &temp2;
15333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15334 }
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
15338
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 Py_INCREF(Py_None); resultobj = Py_None;
15343 return resultobj;
15344 fail:
15345 return NULL;
15346}
15347
15348
c32bde28 15349static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15350 PyObject *resultobj;
15351 wxDC *arg1 = (wxDC *) 0 ;
15352 bool arg2 ;
15353 bool arg3 ;
15354 PyObject * obj0 = 0 ;
15355 PyObject * obj1 = 0 ;
15356 PyObject * obj2 = 0 ;
15357 char *kwnames[] = {
15358 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
15359 };
15360
15361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15364 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc 15365 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15366 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
15367 if (PyErr_Occurred()) SWIG_fail;
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 (arg1)->SetAxisOrientation(arg2,arg3);
15371
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 Py_INCREF(Py_None); resultobj = Py_None;
15376 return resultobj;
15377 fail:
15378 return NULL;
15379}
15380
15381
c32bde28 15382static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15383 PyObject *resultobj;
15384 wxDC *arg1 = (wxDC *) 0 ;
15385 int result;
15386 PyObject * obj0 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
c32bde28 15401 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15402 return resultobj;
15403 fail:
15404 return NULL;
15405}
15406
15407
c32bde28 15408static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15409 PyObject *resultobj;
15410 wxDC *arg1 = (wxDC *) 0 ;
15411 int arg2 ;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 char *kwnames[] = {
15415 (char *) "self",(char *) "function", NULL
15416 };
15417
15418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15421 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15422 if (PyErr_Occurred()) SWIG_fail;
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
15425 (arg1)->SetLogicalFunction(arg2);
15426
15427 wxPyEndAllowThreads(__tstate);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
15430 Py_INCREF(Py_None); resultobj = Py_None;
15431 return resultobj;
15432 fail:
15433 return NULL;
15434}
15435
15436
c32bde28 15437static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15438 PyObject *resultobj;
15439 wxDC *arg1 = (wxDC *) 0 ;
15440 bool arg2 ;
15441 PyObject * obj0 = 0 ;
15442 PyObject * obj1 = 0 ;
15443 char *kwnames[] = {
f5b96ee1 15444 (char *) "self",(char *) "optimize", NULL
d55e5bfc
RD
15445 };
15446
15447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15450 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15451 if (PyErr_Occurred()) SWIG_fail;
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->SetOptimization(arg2);
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 Py_INCREF(Py_None); resultobj = Py_None;
15460 return resultobj;
15461 fail:
15462 return NULL;
15463}
15464
15465
c32bde28 15466static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15467 PyObject *resultobj;
15468 wxDC *arg1 = (wxDC *) 0 ;
15469 bool result;
15470 PyObject * obj0 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "self", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (bool)(arg1)->GetOptimization();
15481
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 {
15486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15487 }
15488 return resultobj;
15489 fail:
15490 return NULL;
15491}
15492
15493
c32bde28 15494static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15495 PyObject *resultobj;
15496 wxDC *arg1 = (wxDC *) 0 ;
15497 int arg2 ;
15498 int arg3 ;
15499 PyObject * obj0 = 0 ;
15500 PyObject * obj1 = 0 ;
15501 PyObject * obj2 = 0 ;
15502 char *kwnames[] = {
15503 (char *) "self",(char *) "x",(char *) "y", NULL
15504 };
15505
15506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15509 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 15510 if (PyErr_Occurred()) SWIG_fail;
c32bde28 15511 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
15512 if (PyErr_Occurred()) SWIG_fail;
15513 {
15514 PyThreadState* __tstate = wxPyBeginAllowThreads();
15515 (arg1)->CalcBoundingBox(arg2,arg3);
15516
15517 wxPyEndAllowThreads(__tstate);
15518 if (PyErr_Occurred()) SWIG_fail;
15519 }
15520 Py_INCREF(Py_None); resultobj = Py_None;
15521 return resultobj;
15522 fail:
15523 return NULL;
15524}
15525
15526
c32bde28 15527static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
c24da6d6
RD
15528 PyObject *resultobj;
15529 wxDC *arg1 = (wxDC *) 0 ;
15530 wxPoint *arg2 = 0 ;
15531 wxPoint temp2 ;
15532 PyObject * obj0 = 0 ;
15533 PyObject * obj1 = 0 ;
15534 char *kwnames[] = {
15535 (char *) "self",(char *) "point", NULL
15536 };
15537
15538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15541 {
15542 arg2 = &temp2;
15543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15544 }
15545 {
15546 PyThreadState* __tstate = wxPyBeginAllowThreads();
15547 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15548
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 Py_INCREF(Py_None); resultobj = Py_None;
15553 return resultobj;
15554 fail:
15555 return NULL;
15556}
15557
15558
c32bde28 15559static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15560 PyObject *resultobj;
15561 wxDC *arg1 = (wxDC *) 0 ;
15562 PyObject * obj0 = 0 ;
15563 char *kwnames[] = {
15564 (char *) "self", NULL
15565 };
15566
15567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15570 {
15571 PyThreadState* __tstate = wxPyBeginAllowThreads();
15572 (arg1)->ResetBoundingBox();
15573
15574 wxPyEndAllowThreads(__tstate);
15575 if (PyErr_Occurred()) SWIG_fail;
15576 }
15577 Py_INCREF(Py_None); resultobj = Py_None;
15578 return resultobj;
15579 fail:
15580 return NULL;
15581}
15582
15583
c32bde28 15584static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15585 PyObject *resultobj;
15586 wxDC *arg1 = (wxDC *) 0 ;
15587 int result;
15588 PyObject * obj0 = 0 ;
15589 char *kwnames[] = {
15590 (char *) "self", NULL
15591 };
15592
15593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15596 {
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 result = (int)((wxDC const *)arg1)->MinX();
15599
15600 wxPyEndAllowThreads(__tstate);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
c32bde28 15603 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15604 return resultobj;
15605 fail:
15606 return NULL;
15607}
15608
15609
c32bde28 15610static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15611 PyObject *resultobj;
15612 wxDC *arg1 = (wxDC *) 0 ;
15613 int result;
15614 PyObject * obj0 = 0 ;
15615 char *kwnames[] = {
15616 (char *) "self", NULL
15617 };
15618
15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15622 {
15623 PyThreadState* __tstate = wxPyBeginAllowThreads();
15624 result = (int)((wxDC const *)arg1)->MaxX();
15625
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
c32bde28 15629 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15630 return resultobj;
15631 fail:
15632 return NULL;
15633}
15634
15635
c32bde28 15636static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15637 PyObject *resultobj;
15638 wxDC *arg1 = (wxDC *) 0 ;
15639 int result;
15640 PyObject * obj0 = 0 ;
15641 char *kwnames[] = {
15642 (char *) "self", NULL
15643 };
15644
15645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 result = (int)((wxDC const *)arg1)->MinY();
15651
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
c32bde28 15655 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15656 return resultobj;
15657 fail:
15658 return NULL;
15659}
15660
15661
c32bde28 15662static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15663 PyObject *resultobj;
15664 wxDC *arg1 = (wxDC *) 0 ;
15665 int result;
15666 PyObject * obj0 = 0 ;
15667 char *kwnames[] = {
15668 (char *) "self", NULL
15669 };
15670
15671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15674 {
15675 PyThreadState* __tstate = wxPyBeginAllowThreads();
15676 result = (int)((wxDC const *)arg1)->MaxY();
15677
15678 wxPyEndAllowThreads(__tstate);
15679 if (PyErr_Occurred()) SWIG_fail;
15680 }
c32bde28 15681 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15682 return resultobj;
15683 fail:
15684 return NULL;
15685}
15686
15687
c32bde28 15688static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15689 PyObject *resultobj;
15690 wxDC *arg1 = (wxDC *) 0 ;
15691 int *arg2 = (int *) 0 ;
15692 int *arg3 = (int *) 0 ;
15693 int *arg4 = (int *) 0 ;
15694 int *arg5 = (int *) 0 ;
15695 int temp2 ;
c32bde28 15696 int res2 = 0 ;
d55e5bfc 15697 int temp3 ;
c32bde28 15698 int res3 = 0 ;
d55e5bfc 15699 int temp4 ;
c32bde28 15700 int res4 = 0 ;
d55e5bfc 15701 int temp5 ;
c32bde28 15702 int res5 = 0 ;
d55e5bfc
RD
15703 PyObject * obj0 = 0 ;
15704 char *kwnames[] = {
15705 (char *) "self", NULL
15706 };
15707
c32bde28
RD
15708 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15709 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15710 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15711 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
15712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15718
15719 wxPyEndAllowThreads(__tstate);
15720 if (PyErr_Occurred()) SWIG_fail;
15721 }
15722 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
15723 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15724 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15725 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15726 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15727 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15728 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15729 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15730 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15731 return resultobj;
15732 fail:
15733 return NULL;
15734}
15735
15736
c32bde28 15737static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) {
0439c23b
RD
15738 PyObject *resultobj;
15739 wxDC *arg1 = (wxDC *) 0 ;
15740 long result;
15741 PyObject * obj0 = 0 ;
15742 char *kwnames[] = {
15743 (char *) "self", NULL
15744 };
15745
15746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
15747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (long)(arg1)->GetHDC();
15752
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
c32bde28 15756 resultobj = SWIG_From_long((long)result);
0439c23b
RD
15757 return resultobj;
15758 fail:
15759 return NULL;
15760}
15761
15762
c32bde28 15763static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15764 PyObject *resultobj;
15765 wxDC *arg1 = (wxDC *) 0 ;
15766 PyObject *arg2 = (PyObject *) 0 ;
15767 PyObject *arg3 = (PyObject *) 0 ;
15768 PyObject *arg4 = (PyObject *) 0 ;
15769 PyObject *result;
15770 PyObject * obj0 = 0 ;
15771 PyObject * obj1 = 0 ;
15772 PyObject * obj2 = 0 ;
15773 PyObject * obj3 = 0 ;
15774 char *kwnames[] = {
15775 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15776 };
15777
15778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15781 arg2 = obj1;
15782 arg3 = obj2;
15783 arg4 = obj3;
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15787
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 resultobj = result;
15792 return resultobj;
15793 fail:
15794 return NULL;
15795}
15796
15797
c32bde28 15798static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15799 PyObject *resultobj;
15800 wxDC *arg1 = (wxDC *) 0 ;
15801 PyObject *arg2 = (PyObject *) 0 ;
15802 PyObject *arg3 = (PyObject *) 0 ;
15803 PyObject *arg4 = (PyObject *) 0 ;
15804 PyObject *result;
15805 PyObject * obj0 = 0 ;
15806 PyObject * obj1 = 0 ;
15807 PyObject * obj2 = 0 ;
15808 PyObject * obj3 = 0 ;
15809 char *kwnames[] = {
15810 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15811 };
15812
15813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15816 arg2 = obj1;
15817 arg3 = obj2;
15818 arg4 = obj3;
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15822
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 resultobj = result;
15827 return resultobj;
15828 fail:
15829 return NULL;
15830}
15831
15832
c32bde28 15833static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15834 PyObject *resultobj;
15835 wxDC *arg1 = (wxDC *) 0 ;
15836 PyObject *arg2 = (PyObject *) 0 ;
15837 PyObject *arg3 = (PyObject *) 0 ;
15838 PyObject *arg4 = (PyObject *) 0 ;
15839 PyObject *result;
15840 PyObject * obj0 = 0 ;
15841 PyObject * obj1 = 0 ;
15842 PyObject * obj2 = 0 ;
15843 PyObject * obj3 = 0 ;
15844 char *kwnames[] = {
15845 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15846 };
15847
15848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15851 arg2 = obj1;
15852 arg3 = obj2;
15853 arg4 = obj3;
15854 {
15855 PyThreadState* __tstate = wxPyBeginAllowThreads();
15856 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15857
15858 wxPyEndAllowThreads(__tstate);
15859 if (PyErr_Occurred()) SWIG_fail;
15860 }
15861 resultobj = result;
15862 return resultobj;
15863 fail:
15864 return NULL;
15865}
15866
15867
c32bde28 15868static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15869 PyObject *resultobj;
15870 wxDC *arg1 = (wxDC *) 0 ;
15871 PyObject *arg2 = (PyObject *) 0 ;
15872 PyObject *arg3 = (PyObject *) 0 ;
15873 PyObject *arg4 = (PyObject *) 0 ;
15874 PyObject *result;
15875 PyObject * obj0 = 0 ;
15876 PyObject * obj1 = 0 ;
15877 PyObject * obj2 = 0 ;
15878 PyObject * obj3 = 0 ;
15879 char *kwnames[] = {
15880 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15881 };
15882
15883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15886 arg2 = obj1;
15887 arg3 = obj2;
15888 arg4 = obj3;
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15892
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 resultobj = result;
15897 return resultobj;
15898 fail:
15899 return NULL;
15900}
15901
15902
c32bde28 15903static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15904 PyObject *resultobj;
15905 wxDC *arg1 = (wxDC *) 0 ;
15906 PyObject *arg2 = (PyObject *) 0 ;
15907 PyObject *arg3 = (PyObject *) 0 ;
15908 PyObject *arg4 = (PyObject *) 0 ;
15909 PyObject *result;
15910 PyObject * obj0 = 0 ;
15911 PyObject * obj1 = 0 ;
15912 PyObject * obj2 = 0 ;
15913 PyObject * obj3 = 0 ;
15914 char *kwnames[] = {
15915 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15916 };
15917
15918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15921 arg2 = obj1;
15922 arg3 = obj2;
15923 arg4 = obj3;
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15927
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 resultobj = result;
15932 return resultobj;
15933 fail:
15934 return NULL;
15935}
15936
15937
c32bde28 15938static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15939 PyObject *resultobj;
15940 wxDC *arg1 = (wxDC *) 0 ;
15941 PyObject *arg2 = (PyObject *) 0 ;
15942 PyObject *arg3 = (PyObject *) 0 ;
15943 PyObject *arg4 = (PyObject *) 0 ;
15944 PyObject *arg5 = (PyObject *) 0 ;
15945 PyObject *result;
15946 PyObject * obj0 = 0 ;
15947 PyObject * obj1 = 0 ;
15948 PyObject * obj2 = 0 ;
15949 PyObject * obj3 = 0 ;
15950 PyObject * obj4 = 0 ;
15951 char *kwnames[] = {
15952 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15953 };
15954
15955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15958 arg2 = obj1;
15959 arg3 = obj2;
15960 arg4 = obj3;
15961 arg5 = obj4;
15962 {
15963 PyThreadState* __tstate = wxPyBeginAllowThreads();
15964 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15965
15966 wxPyEndAllowThreads(__tstate);
15967 if (PyErr_Occurred()) SWIG_fail;
15968 }
15969 resultobj = result;
15970 return resultobj;
15971 fail:
15972 return NULL;
15973}
15974
15975
c32bde28 15976static PyObject * DC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15977 PyObject *obj;
15978 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15979 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15980 Py_INCREF(obj);
15981 return Py_BuildValue((char *)"");
15982}
c32bde28 15983static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15984 PyObject *resultobj;
15985 wxMemoryDC *result;
15986 char *kwnames[] = {
15987 NULL
15988 };
15989
15990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15991 {
0439c23b 15992 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15993 PyThreadState* __tstate = wxPyBeginAllowThreads();
15994 result = (wxMemoryDC *)new wxMemoryDC();
15995
15996 wxPyEndAllowThreads(__tstate);
110da5b0 15997 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15998 }
15999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
16000 return resultobj;
16001 fail:
16002 return NULL;
16003}
16004
16005
c32bde28 16006static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16007 PyObject *resultobj;
16008 wxDC *arg1 = (wxDC *) 0 ;
16009 wxMemoryDC *result;
16010 PyObject * obj0 = 0 ;
16011 char *kwnames[] = {
16012 (char *) "oldDC", NULL
16013 };
16014
16015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
16016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16018 {
0439c23b 16019 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16020 PyThreadState* __tstate = wxPyBeginAllowThreads();
16021 result = (wxMemoryDC *)new wxMemoryDC(arg1);
16022
16023 wxPyEndAllowThreads(__tstate);
110da5b0 16024 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16025 }
16026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
16027 return resultobj;
16028 fail:
16029 return NULL;
16030}
16031
16032
c32bde28 16033static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16034 PyObject *resultobj;
16035 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
16036 wxBitmap *arg2 = 0 ;
16037 PyObject * obj0 = 0 ;
16038 PyObject * obj1 = 0 ;
16039 char *kwnames[] = {
16040 (char *) "self",(char *) "bitmap", NULL
16041 };
16042
16043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
16044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
16045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16046 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16047 SWIG_POINTER_EXCEPTION | 0)) == -1)
16048 SWIG_fail;
16049 if (arg2 == NULL) {
16050 PyErr_SetString(PyExc_TypeError,"null reference");
16051 SWIG_fail;
16052 }
16053 {
16054 PyThreadState* __tstate = wxPyBeginAllowThreads();
16055 (arg1)->SelectObject((wxBitmap const &)*arg2);
16056
16057 wxPyEndAllowThreads(__tstate);
16058 if (PyErr_Occurred()) SWIG_fail;
16059 }
16060 Py_INCREF(Py_None); resultobj = Py_None;
16061 return resultobj;
16062 fail:
16063 return NULL;
16064}
16065
16066
c32bde28 16067static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16068 PyObject *obj;
16069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16070 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
16071 Py_INCREF(obj);
16072 return Py_BuildValue((char *)"");
16073}
c32bde28 16074static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
16075 PyObject *resultobj;
16076 wxDC *arg1 = (wxDC *) 0 ;
16077 wxBitmap *arg2 = 0 ;
16078 wxBufferedDC *result;
16079 PyObject * obj0 = 0 ;
16080 PyObject * obj1 = 0 ;
16081
16082 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
16083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16086 SWIG_POINTER_EXCEPTION | 0)) == -1)
16087 SWIG_fail;
16088 if (arg2 == NULL) {
16089 PyErr_SetString(PyExc_TypeError,"null reference");
16090 SWIG_fail;
16091 }
16092 {
0439c23b 16093 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16094 PyThreadState* __tstate = wxPyBeginAllowThreads();
16095 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
16096
16097 wxPyEndAllowThreads(__tstate);
110da5b0 16098 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16099 }
16100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
16101 return resultobj;
16102 fail:
16103 return NULL;
16104}
16105
16106
c32bde28 16107static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
16108 PyObject *resultobj;
16109 wxDC *arg1 = (wxDC *) 0 ;
16110 wxSize *arg2 = 0 ;
16111 wxBufferedDC *result;
16112 wxSize temp2 ;
16113 PyObject * obj0 = 0 ;
16114 PyObject * obj1 = 0 ;
16115
16116 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
16117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16119 {
16120 arg2 = &temp2;
16121 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16122 }
16123 {
0439c23b 16124 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
16127
16128 wxPyEndAllowThreads(__tstate);
110da5b0 16129 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16130 }
16131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
16132 return resultobj;
16133 fail:
16134 return NULL;
16135}
16136
16137
16138static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
16139 int argc;
16140 PyObject *argv[3];
16141 int ii;
16142
16143 argc = PyObject_Length(args);
16144 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
16145 argv[ii] = PyTuple_GetItem(args,ii);
16146 }
16147 if (argc == 2) {
16148 int _v;
16149 {
16150 void *ptr;
16151 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
16152 _v = 0;
16153 PyErr_Clear();
16154 } else {
16155 _v = 1;
16156 }
16157 }
16158 if (_v) {
16159 {
16160 void *ptr;
16161 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
16162 _v = 0;
16163 PyErr_Clear();
16164 } else {
16165 _v = 1;
16166 }
16167 }
16168 if (_v) {
16169 return _wrap_new_BufferedDC__SWIG_0(self,args);
16170 }
16171 }
16172 }
16173 if (argc == 2) {
16174 int _v;
16175 {
16176 void *ptr;
16177 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
16178 _v = 0;
16179 PyErr_Clear();
16180 } else {
16181 _v = 1;
16182 }
16183 }
16184 if (_v) {
16185 {
16186 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
16187 }
16188 if (_v) {
16189 return _wrap_new_BufferedDC__SWIG_1(self,args);
16190 }
16191 }
16192 }
16193
16194 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
16195 return NULL;
16196}
16197
16198
c32bde28 16199static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16200 PyObject *resultobj;
16201 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
16202 PyObject * obj0 = 0 ;
16203 char *kwnames[] = {
16204 (char *) "self", NULL
16205 };
16206
16207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
16208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
16209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 delete arg1;
16213
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 Py_INCREF(Py_None); resultobj = Py_None;
16218 return resultobj;
16219 fail:
16220 return NULL;
16221}
16222
16223
c32bde28 16224static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16225 PyObject *resultobj;
16226 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
16227 PyObject * obj0 = 0 ;
16228 char *kwnames[] = {
16229 (char *) "self", NULL
16230 };
16231
16232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
16233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
16234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16235 {
16236 PyThreadState* __tstate = wxPyBeginAllowThreads();
16237 (arg1)->UnMask();
16238
16239 wxPyEndAllowThreads(__tstate);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 }
16242 Py_INCREF(Py_None); resultobj = Py_None;
16243 return resultobj;
16244 fail:
16245 return NULL;
16246}
16247
16248
c32bde28 16249static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16250 PyObject *obj;
16251 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16252 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
16253 Py_INCREF(obj);
16254 return Py_BuildValue((char *)"");
16255}
c32bde28 16256static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16257 PyObject *resultobj;
16258 wxWindow *arg1 = (wxWindow *) 0 ;
16259 wxBitmap const &arg2_defvalue = wxNullBitmap ;
16260 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
16261 wxBufferedPaintDC *result;
16262 PyObject * obj0 = 0 ;
16263 PyObject * obj1 = 0 ;
16264 char *kwnames[] = {
16265 (char *) "window",(char *) "buffer", NULL
16266 };
16267
16268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
16269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16271 if (obj1) {
16272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16273 SWIG_POINTER_EXCEPTION | 0)) == -1)
16274 SWIG_fail;
16275 if (arg2 == NULL) {
16276 PyErr_SetString(PyExc_TypeError,"null reference");
16277 SWIG_fail;
16278 }
16279 }
16280 {
0439c23b 16281 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16282 PyThreadState* __tstate = wxPyBeginAllowThreads();
16283 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
16284
16285 wxPyEndAllowThreads(__tstate);
110da5b0 16286 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16287 }
16288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
16289 return resultobj;
16290 fail:
16291 return NULL;
16292}
16293
16294
c32bde28 16295static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16296 PyObject *obj;
16297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16298 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
16299 Py_INCREF(obj);
16300 return Py_BuildValue((char *)"");
16301}
c32bde28 16302static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16303 PyObject *resultobj;
16304 wxScreenDC *result;
16305 char *kwnames[] = {
16306 NULL
16307 };
16308
16309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
16310 {
0439c23b 16311 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 result = (wxScreenDC *)new wxScreenDC();
16314
16315 wxPyEndAllowThreads(__tstate);
110da5b0 16316 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16317 }
16318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
16319 return resultobj;
16320 fail:
16321 return NULL;
16322}
16323
16324
c32bde28 16325static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16326 PyObject *resultobj;
16327 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16328 wxWindow *arg2 = (wxWindow *) 0 ;
16329 bool result;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 char *kwnames[] = {
16333 (char *) "self",(char *) "window", NULL
16334 };
16335
16336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
16337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16341 {
16342 PyThreadState* __tstate = wxPyBeginAllowThreads();
16343 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16344
16345 wxPyEndAllowThreads(__tstate);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 {
16349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16350 }
16351 return resultobj;
16352 fail:
16353 return NULL;
16354}
16355
16356
c32bde28 16357static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16358 PyObject *resultobj;
16359 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16360 wxRect *arg2 = (wxRect *) NULL ;
16361 bool result;
16362 PyObject * obj0 = 0 ;
16363 PyObject * obj1 = 0 ;
16364 char *kwnames[] = {
16365 (char *) "self",(char *) "rect", NULL
16366 };
16367
16368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
16369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16371 if (obj1) {
16372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16374 }
16375 {
16376 PyThreadState* __tstate = wxPyBeginAllowThreads();
16377 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16378
16379 wxPyEndAllowThreads(__tstate);
16380 if (PyErr_Occurred()) SWIG_fail;
16381 }
16382 {
16383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16384 }
16385 return resultobj;
16386 fail:
16387 return NULL;
16388}
16389
16390
c32bde28 16391static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16392 PyObject *resultobj;
16393 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16394 bool result;
16395 PyObject * obj0 = 0 ;
16396 char *kwnames[] = {
16397 (char *) "self", NULL
16398 };
16399
16400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (bool)(arg1)->EndDrawingOnTop();
16406
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 {
16411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16412 }
16413 return resultobj;
16414 fail:
16415 return NULL;
16416}
16417
16418
c32bde28 16419static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16420 PyObject *obj;
16421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16422 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16423 Py_INCREF(obj);
16424 return Py_BuildValue((char *)"");
16425}
c32bde28 16426static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16427 PyObject *resultobj;
16428 wxWindow *arg1 = (wxWindow *) 0 ;
16429 wxClientDC *result;
16430 PyObject * obj0 = 0 ;
16431 char *kwnames[] = {
16432 (char *) "win", NULL
16433 };
16434
16435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16438 {
0439c23b 16439 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = (wxClientDC *)new wxClientDC(arg1);
16442
16443 wxPyEndAllowThreads(__tstate);
110da5b0 16444 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16445 }
16446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16447 return resultobj;
16448 fail:
16449 return NULL;
16450}
16451
16452
c32bde28 16453static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16454 PyObject *obj;
16455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16456 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16457 Py_INCREF(obj);
16458 return Py_BuildValue((char *)"");
16459}
c32bde28 16460static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16461 PyObject *resultobj;
16462 wxWindow *arg1 = (wxWindow *) 0 ;
16463 wxPaintDC *result;
16464 PyObject * obj0 = 0 ;
16465 char *kwnames[] = {
16466 (char *) "win", NULL
16467 };
16468
16469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16472 {
0439c23b 16473 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16474 PyThreadState* __tstate = wxPyBeginAllowThreads();
16475 result = (wxPaintDC *)new wxPaintDC(arg1);
16476
16477 wxPyEndAllowThreads(__tstate);
110da5b0 16478 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16479 }
16480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16481 return resultobj;
16482 fail:
16483 return NULL;
16484}
16485
16486
c32bde28 16487static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16488 PyObject *obj;
16489 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16490 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16491 Py_INCREF(obj);
16492 return Py_BuildValue((char *)"");
16493}
c32bde28 16494static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16495 PyObject *resultobj;
16496 wxWindow *arg1 = (wxWindow *) 0 ;
16497 wxWindowDC *result;
16498 PyObject * obj0 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "win", NULL
16501 };
16502
16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16506 {
0439c23b 16507 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16508 PyThreadState* __tstate = wxPyBeginAllowThreads();
16509 result = (wxWindowDC *)new wxWindowDC(arg1);
16510
16511 wxPyEndAllowThreads(__tstate);
110da5b0 16512 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16513 }
16514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16515 return resultobj;
16516 fail:
16517 return NULL;
16518}
16519
16520
c32bde28 16521static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16522 PyObject *obj;
16523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16524 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16525 Py_INCREF(obj);
16526 return Py_BuildValue((char *)"");
16527}
c32bde28 16528static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16529 PyObject *resultobj;
16530 wxDC *arg1 = 0 ;
16531 bool arg2 ;
16532 wxMirrorDC *result;
16533 PyObject * obj0 = 0 ;
16534 PyObject * obj1 = 0 ;
16535 char *kwnames[] = {
16536 (char *) "dc",(char *) "mirror", NULL
16537 };
16538
16539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16541 SWIG_POINTER_EXCEPTION | 0)) == -1)
16542 SWIG_fail;
16543 if (arg1 == NULL) {
16544 PyErr_SetString(PyExc_TypeError,"null reference");
16545 SWIG_fail;
16546 }
c32bde28 16547 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16548 if (PyErr_Occurred()) SWIG_fail;
16549 {
0439c23b 16550 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16551 PyThreadState* __tstate = wxPyBeginAllowThreads();
16552 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16553
16554 wxPyEndAllowThreads(__tstate);
110da5b0 16555 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16556 }
16557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16558 return resultobj;
16559 fail:
16560 return NULL;
16561}
16562
16563
c32bde28 16564static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16565 PyObject *obj;
16566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16567 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16568 Py_INCREF(obj);
16569 return Py_BuildValue((char *)"");
16570}
c32bde28 16571static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16572 PyObject *resultobj;
16573 wxPrintData *arg1 = 0 ;
16574 wxPostScriptDC *result;
16575 PyObject * obj0 = 0 ;
16576 char *kwnames[] = {
16577 (char *) "printData", NULL
16578 };
16579
16580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16582 SWIG_POINTER_EXCEPTION | 0)) == -1)
16583 SWIG_fail;
16584 if (arg1 == NULL) {
16585 PyErr_SetString(PyExc_TypeError,"null reference");
16586 SWIG_fail;
16587 }
16588 {
0439c23b 16589 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16590 PyThreadState* __tstate = wxPyBeginAllowThreads();
16591 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16592
16593 wxPyEndAllowThreads(__tstate);
110da5b0 16594 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16595 }
16596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16597 return resultobj;
16598 fail:
16599 return NULL;
16600}
16601
16602
c32bde28 16603static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16604 PyObject *resultobj;
16605 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16606 wxPrintData *result;
16607 PyObject * obj0 = 0 ;
16608 char *kwnames[] = {
16609 (char *) "self", NULL
16610 };
16611
16612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 {
16618 wxPrintData &_result_ref = (arg1)->GetPrintData();
16619 result = (wxPrintData *) &_result_ref;
16620 }
16621
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16626 return resultobj;
16627 fail:
16628 return NULL;
16629}
16630
16631
c32bde28 16632static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16633 PyObject *resultobj;
16634 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16635 wxPrintData *arg2 = 0 ;
16636 PyObject * obj0 = 0 ;
16637 PyObject * obj1 = 0 ;
16638 char *kwnames[] = {
16639 (char *) "self",(char *) "data", NULL
16640 };
16641
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16645 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16646 SWIG_POINTER_EXCEPTION | 0)) == -1)
16647 SWIG_fail;
16648 if (arg2 == NULL) {
16649 PyErr_SetString(PyExc_TypeError,"null reference");
16650 SWIG_fail;
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16655
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
16659 Py_INCREF(Py_None); resultobj = Py_None;
16660 return resultobj;
16661 fail:
16662 return NULL;
16663}
16664
16665
c32bde28 16666static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16667 PyObject *resultobj;
16668 int arg1 ;
16669 PyObject * obj0 = 0 ;
16670 char *kwnames[] = {
16671 (char *) "ppi", NULL
16672 };
16673
16674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
c32bde28 16675 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
16676 if (PyErr_Occurred()) SWIG_fail;
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 wxPostScriptDC::SetResolution(arg1);
16680
16681 wxPyEndAllowThreads(__tstate);
16682 if (PyErr_Occurred()) SWIG_fail;
16683 }
16684 Py_INCREF(Py_None); resultobj = Py_None;
16685 return resultobj;
16686 fail:
16687 return NULL;
16688}
16689
16690
c32bde28 16691static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16692 PyObject *resultobj;
16693 int result;
16694 char *kwnames[] = {
16695 NULL
16696 };
16697
16698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16699 {
16700 PyThreadState* __tstate = wxPyBeginAllowThreads();
16701 result = (int)wxPostScriptDC::GetResolution();
16702
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
c32bde28 16706 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16707 return resultobj;
16708 fail:
16709 return NULL;
16710}
16711
16712
c32bde28 16713static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16714 PyObject *obj;
16715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16716 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16717 Py_INCREF(obj);
16718 return Py_BuildValue((char *)"");
16719}
c32bde28 16720static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16721 PyObject *resultobj;
16722 wxString const &arg1_defvalue = wxPyEmptyString ;
16723 wxString *arg1 = (wxString *) &arg1_defvalue ;
16724 wxMetaFile *result;
ae8162c8 16725 bool temp1 = false ;
d55e5bfc
RD
16726 PyObject * obj0 = 0 ;
16727 char *kwnames[] = {
16728 (char *) "filename", NULL
16729 };
16730
16731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16732 if (obj0) {
16733 {
16734 arg1 = wxString_in_helper(obj0);
16735 if (arg1 == NULL) SWIG_fail;
ae8162c8 16736 temp1 = true;
d55e5bfc
RD
16737 }
16738 }
16739 {
0439c23b 16740 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16743
16744 wxPyEndAllowThreads(__tstate);
110da5b0 16745 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16746 }
16747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16748 {
16749 if (temp1)
16750 delete arg1;
16751 }
16752 return resultobj;
16753 fail:
16754 {
16755 if (temp1)
16756 delete arg1;
16757 }
16758 return NULL;
16759}
16760
16761
c32bde28 16762static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16763 PyObject *resultobj;
16764 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16765 PyObject * obj0 = 0 ;
16766 char *kwnames[] = {
16767 (char *) "self", NULL
16768 };
16769
16770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 delete arg1;
16776
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 Py_INCREF(Py_None); resultobj = Py_None;
16781 return resultobj;
16782 fail:
16783 return NULL;
16784}
16785
16786
c32bde28 16787static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16788 PyObject *resultobj;
16789 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16790 bool result;
16791 PyObject * obj0 = 0 ;
16792 char *kwnames[] = {
16793 (char *) "self", NULL
16794 };
16795
16796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16799 {
16800 PyThreadState* __tstate = wxPyBeginAllowThreads();
16801 result = (bool)(arg1)->Ok();
16802
16803 wxPyEndAllowThreads(__tstate);
16804 if (PyErr_Occurred()) SWIG_fail;
16805 }
16806 {
16807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16808 }
16809 return resultobj;
16810 fail:
16811 return NULL;
16812}
16813
16814
c32bde28 16815static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16816 PyObject *resultobj;
16817 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16818 int arg2 = (int) 0 ;
16819 int arg3 = (int) 0 ;
16820 bool result;
16821 PyObject * obj0 = 0 ;
16822 PyObject * obj1 = 0 ;
16823 PyObject * obj2 = 0 ;
16824 char *kwnames[] = {
16825 (char *) "self",(char *) "width",(char *) "height", NULL
16826 };
16827
16828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16831 if (obj1) {
c32bde28 16832 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16833 if (PyErr_Occurred()) SWIG_fail;
16834 }
16835 if (obj2) {
c32bde28 16836 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16837 if (PyErr_Occurred()) SWIG_fail;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16842
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 {
16847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16848 }
16849 return resultobj;
16850 fail:
16851 return NULL;
16852}
16853
16854
c32bde28 16855static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16856 PyObject *resultobj;
16857 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16858 wxSize result;
16859 PyObject * obj0 = 0 ;
16860 char *kwnames[] = {
16861 (char *) "self", NULL
16862 };
16863
16864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16867 {
16868 PyThreadState* __tstate = wxPyBeginAllowThreads();
16869 result = (arg1)->GetSize();
16870
16871 wxPyEndAllowThreads(__tstate);
16872 if (PyErr_Occurred()) SWIG_fail;
16873 }
16874 {
16875 wxSize * resultptr;
16876 resultptr = new wxSize((wxSize &) result);
16877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16878 }
16879 return resultobj;
16880 fail:
16881 return NULL;
16882}
16883
16884
c32bde28 16885static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16886 PyObject *resultobj;
16887 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16888 int result;
16889 PyObject * obj0 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "self", NULL
16892 };
16893
16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16897 {
16898 PyThreadState* __tstate = wxPyBeginAllowThreads();
16899 result = (int)(arg1)->GetWidth();
16900
16901 wxPyEndAllowThreads(__tstate);
16902 if (PyErr_Occurred()) SWIG_fail;
16903 }
c32bde28 16904 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16905 return resultobj;
16906 fail:
16907 return NULL;
16908}
16909
16910
c32bde28 16911static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16912 PyObject *resultobj;
16913 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16914 int result;
16915 PyObject * obj0 = 0 ;
16916 char *kwnames[] = {
16917 (char *) "self", NULL
16918 };
16919
16920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 result = (int)(arg1)->GetHeight();
16926
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
c32bde28 16930 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16931 return resultobj;
16932 fail:
16933 return NULL;
16934}
16935
16936
c32bde28 16937static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16938 PyObject *resultobj;
16939 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16940 wxString *result;
16941 PyObject * obj0 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16949 {
16950 PyThreadState* __tstate = wxPyBeginAllowThreads();
16951 {
16952 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16953 result = (wxString *) &_result_ref;
16954 }
16955
16956 wxPyEndAllowThreads(__tstate);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
16959 {
16960#if wxUSE_UNICODE
16961 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16962#else
16963 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16964#endif
16965 }
16966 return resultobj;
16967 fail:
16968 return NULL;
16969}
16970
16971
c32bde28 16972static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16973 PyObject *obj;
16974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16975 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16976 Py_INCREF(obj);
16977 return Py_BuildValue((char *)"");
16978}
c32bde28 16979static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16980 PyObject *resultobj;
16981 wxString const &arg1_defvalue = wxPyEmptyString ;
16982 wxString *arg1 = (wxString *) &arg1_defvalue ;
16983 int arg2 = (int) 0 ;
16984 int arg3 = (int) 0 ;
16985 wxString const &arg4_defvalue = wxPyEmptyString ;
16986 wxString *arg4 = (wxString *) &arg4_defvalue ;
16987 wxMetaFileDC *result;
ae8162c8
RD
16988 bool temp1 = false ;
16989 bool temp4 = false ;
d55e5bfc
RD
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 PyObject * obj2 = 0 ;
16993 PyObject * obj3 = 0 ;
16994 char *kwnames[] = {
16995 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16996 };
16997
16998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16999 if (obj0) {
17000 {
17001 arg1 = wxString_in_helper(obj0);
17002 if (arg1 == NULL) SWIG_fail;
ae8162c8 17003 temp1 = true;
d55e5bfc
RD
17004 }
17005 }
17006 if (obj1) {
c32bde28 17007 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 if (obj2) {
c32bde28 17011 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 if (obj3) {
17015 {
17016 arg4 = wxString_in_helper(obj3);
17017 if (arg4 == NULL) SWIG_fail;
ae8162c8 17018 temp4 = true;
d55e5bfc
RD
17019 }
17020 }
17021 {
0439c23b 17022 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17023 PyThreadState* __tstate = wxPyBeginAllowThreads();
17024 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
17025
17026 wxPyEndAllowThreads(__tstate);
110da5b0 17027 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17028 }
17029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
17030 {
17031 if (temp1)
17032 delete arg1;
17033 }
17034 {
17035 if (temp4)
17036 delete arg4;
17037 }
17038 return resultobj;
17039 fail:
17040 {
17041 if (temp1)
17042 delete arg1;
17043 }
17044 {
17045 if (temp4)
17046 delete arg4;
17047 }
17048 return NULL;
17049}
17050
17051
c32bde28 17052static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17053 PyObject *resultobj;
17054 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
17055 wxMetaFile *result;
17056 PyObject * obj0 = 0 ;
17057 char *kwnames[] = {
17058 (char *) "self", NULL
17059 };
17060
17061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
17062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
17063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17064 {
17065 PyThreadState* __tstate = wxPyBeginAllowThreads();
17066 result = (wxMetaFile *)(arg1)->Close();
17067
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
17072 return resultobj;
17073 fail:
17074 return NULL;
17075}
17076
17077
c32bde28 17078static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17079 PyObject *obj;
17080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17081 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
17082 Py_INCREF(obj);
17083 return Py_BuildValue((char *)"");
17084}
c32bde28 17085static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17086 PyObject *resultobj;
17087 wxPrintData *arg1 = 0 ;
17088 wxPrinterDC *result;
17089 PyObject * obj0 = 0 ;
17090 char *kwnames[] = {
17091 (char *) "printData", NULL
17092 };
17093
17094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
17095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
17096 SWIG_POINTER_EXCEPTION | 0)) == -1)
17097 SWIG_fail;
17098 if (arg1 == NULL) {
17099 PyErr_SetString(PyExc_TypeError,"null reference");
17100 SWIG_fail;
17101 }
17102 {
0439c23b 17103 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
17106
17107 wxPyEndAllowThreads(__tstate);
110da5b0 17108 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17109 }
17110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
17111 return resultobj;
17112 fail:
17113 return NULL;
17114}
17115
17116
c32bde28 17117static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17118 PyObject *obj;
17119 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17120 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
17121 Py_INCREF(obj);
17122 return Py_BuildValue((char *)"");
17123}
c32bde28 17124static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17125 PyObject *resultobj;
17126 int arg1 ;
17127 int arg2 ;
ae8162c8 17128 int arg3 = (int) true ;
d55e5bfc
RD
17129 int arg4 = (int) 1 ;
17130 wxImageList *result;
17131 PyObject * obj0 = 0 ;
17132 PyObject * obj1 = 0 ;
17133 PyObject * obj2 = 0 ;
17134 PyObject * obj3 = 0 ;
17135 char *kwnames[] = {
17136 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
17137 };
17138
17139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c32bde28 17140 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 17141 if (PyErr_Occurred()) SWIG_fail;
c32bde28 17142 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17143 if (PyErr_Occurred()) SWIG_fail;
17144 if (obj2) {
c32bde28 17145 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 if (obj3) {
c32bde28 17149 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 {
0439c23b 17153 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
17156
17157 wxPyEndAllowThreads(__tstate);
110da5b0 17158 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17159 }
17160 {
412d302d 17161 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
17162 }
17163 return resultobj;
17164 fail:
17165 return NULL;
17166}
17167
17168
c32bde28 17169static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17170 PyObject *resultobj;
17171 wxImageList *arg1 = (wxImageList *) 0 ;
17172 PyObject * obj0 = 0 ;
17173 char *kwnames[] = {
17174 (char *) "self", NULL
17175 };
17176
17177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
17178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17180 {
17181 PyThreadState* __tstate = wxPyBeginAllowThreads();
17182 delete arg1;
17183
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 Py_INCREF(Py_None); resultobj = Py_None;
17188 return resultobj;
17189 fail:
17190 return NULL;
17191}
17192
17193
c32bde28 17194static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17195 PyObject *resultobj;
17196 wxImageList *arg1 = (wxImageList *) 0 ;
17197 wxBitmap *arg2 = 0 ;
17198 wxBitmap const &arg3_defvalue = wxNullBitmap ;
17199 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
17200 int result;
17201 PyObject * obj0 = 0 ;
17202 PyObject * obj1 = 0 ;
17203 PyObject * obj2 = 0 ;
17204 char *kwnames[] = {
17205 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
17206 };
17207
17208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
17209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17212 SWIG_POINTER_EXCEPTION | 0)) == -1)
17213 SWIG_fail;
17214 if (arg2 == NULL) {
17215 PyErr_SetString(PyExc_TypeError,"null reference");
17216 SWIG_fail;
17217 }
17218 if (obj2) {
17219 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17220 SWIG_POINTER_EXCEPTION | 0)) == -1)
17221 SWIG_fail;
17222 if (arg3 == NULL) {
17223 PyErr_SetString(PyExc_TypeError,"null reference");
17224 SWIG_fail;
17225 }
17226 }
17227 {
17228 PyThreadState* __tstate = wxPyBeginAllowThreads();
17229 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
17230
17231 wxPyEndAllowThreads(__tstate);
17232 if (PyErr_Occurred()) SWIG_fail;
17233 }
c32bde28 17234 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17235 return resultobj;
17236 fail:
17237 return NULL;
17238}
17239
17240
c32bde28 17241static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17242 PyObject *resultobj;
17243 wxImageList *arg1 = (wxImageList *) 0 ;
17244 wxBitmap *arg2 = 0 ;
17245 wxColour *arg3 = 0 ;
17246 int result;
17247 wxColour temp3 ;
17248 PyObject * obj0 = 0 ;
17249 PyObject * obj1 = 0 ;
17250 PyObject * obj2 = 0 ;
17251 char *kwnames[] = {
17252 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
17253 };
17254
17255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
17256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17259 SWIG_POINTER_EXCEPTION | 0)) == -1)
17260 SWIG_fail;
17261 if (arg2 == NULL) {
17262 PyErr_SetString(PyExc_TypeError,"null reference");
17263 SWIG_fail;
17264 }
17265 {
17266 arg3 = &temp3;
17267 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17268 }
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
c32bde28 17276 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17277 return resultobj;
17278 fail:
17279 return NULL;
17280}
17281
17282
c32bde28 17283static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17284 PyObject *resultobj;
17285 wxImageList *arg1 = (wxImageList *) 0 ;
17286 wxIcon *arg2 = 0 ;
17287 int result;
17288 PyObject * obj0 = 0 ;
17289 PyObject * obj1 = 0 ;
17290 char *kwnames[] = {
17291 (char *) "self",(char *) "icon", NULL
17292 };
17293
17294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
17295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17297 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
17298 SWIG_POINTER_EXCEPTION | 0)) == -1)
17299 SWIG_fail;
17300 if (arg2 == NULL) {
17301 PyErr_SetString(PyExc_TypeError,"null reference");
17302 SWIG_fail;
17303 }
17304 {
17305 PyThreadState* __tstate = wxPyBeginAllowThreads();
17306 result = (int)(arg1)->Add((wxIcon const &)*arg2);
17307
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
c32bde28 17311 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17312 return resultobj;
17313 fail:
17314 return NULL;
17315}
17316
17317
c32bde28 17318static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17319 PyObject *resultobj;
17320 wxImageList *arg1 = (wxImageList *) 0 ;
17321 int arg2 ;
17322 wxBitmap *arg3 = 0 ;
17323 wxBitmap const &arg4_defvalue = wxNullBitmap ;
17324 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
17325 bool result;
17326 PyObject * obj0 = 0 ;
17327 PyObject * obj1 = 0 ;
17328 PyObject * obj2 = 0 ;
17329 PyObject * obj3 = 0 ;
17330 char *kwnames[] = {
17331 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
17332 };
17333
17334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17337 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17338 if (PyErr_Occurred()) SWIG_fail;
17339 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17340 SWIG_POINTER_EXCEPTION | 0)) == -1)
17341 SWIG_fail;
17342 if (arg3 == NULL) {
17343 PyErr_SetString(PyExc_TypeError,"null reference");
17344 SWIG_fail;
17345 }
17346 if (obj3) {
17347 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17348 SWIG_POINTER_EXCEPTION | 0)) == -1)
17349 SWIG_fail;
17350 if (arg4 == NULL) {
17351 PyErr_SetString(PyExc_TypeError,"null reference");
17352 SWIG_fail;
17353 }
17354 }
17355 {
17356 PyThreadState* __tstate = wxPyBeginAllowThreads();
17357 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
17358
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 {
17363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17364 }
17365 return resultobj;
17366 fail:
17367 return NULL;
17368}
17369
17370
c32bde28 17371static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17372 PyObject *resultobj;
17373 wxImageList *arg1 = (wxImageList *) 0 ;
17374 int arg2 ;
17375 wxDC *arg3 = 0 ;
17376 int arg4 ;
17377 int arg5 ;
17378 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
ae8162c8 17379 bool arg7 = (bool) (bool)false ;
d55e5bfc
RD
17380 bool result;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17383 PyObject * obj2 = 0 ;
17384 PyObject * obj3 = 0 ;
17385 PyObject * obj4 = 0 ;
17386 PyObject * obj5 = 0 ;
17387 PyObject * obj6 = 0 ;
17388 char *kwnames[] = {
17389 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
17390 };
17391
17392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17395 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17396 if (PyErr_Occurred()) SWIG_fail;
17397 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17398 SWIG_POINTER_EXCEPTION | 0)) == -1)
17399 SWIG_fail;
17400 if (arg3 == NULL) {
17401 PyErr_SetString(PyExc_TypeError,"null reference");
17402 SWIG_fail;
17403 }
c32bde28 17404 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 17405 if (PyErr_Occurred()) SWIG_fail;
c32bde28 17406 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
17407 if (PyErr_Occurred()) SWIG_fail;
17408 if (obj5) {
c32bde28 17409 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
17410 if (PyErr_Occurred()) SWIG_fail;
17411 }
17412 if (obj6) {
c32bde28 17413 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 {
17417 PyThreadState* __tstate = wxPyBeginAllowThreads();
17418 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17419
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 {
17424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17425 }
17426 return resultobj;
17427 fail:
17428 return NULL;
17429}
17430
17431
c32bde28 17432static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17433 PyObject *resultobj;
17434 wxImageList *arg1 = (wxImageList *) 0 ;
17435 int result;
17436 PyObject * obj0 = 0 ;
17437 char *kwnames[] = {
17438 (char *) "self", NULL
17439 };
17440
17441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17444 {
17445 PyThreadState* __tstate = wxPyBeginAllowThreads();
17446 result = (int)(arg1)->GetImageCount();
17447
17448 wxPyEndAllowThreads(__tstate);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
c32bde28 17451 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17452 return resultobj;
17453 fail:
17454 return NULL;
17455}
17456
17457
c32bde28 17458static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17459 PyObject *resultobj;
17460 wxImageList *arg1 = (wxImageList *) 0 ;
17461 int arg2 ;
17462 bool result;
17463 PyObject * obj0 = 0 ;
17464 PyObject * obj1 = 0 ;
17465 char *kwnames[] = {
17466 (char *) "self",(char *) "index", NULL
17467 };
17468
17469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17472 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17473 if (PyErr_Occurred()) SWIG_fail;
17474 {
17475 PyThreadState* __tstate = wxPyBeginAllowThreads();
17476 result = (bool)(arg1)->Remove(arg2);
17477
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 {
17482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17483 }
17484 return resultobj;
17485 fail:
17486 return NULL;
17487}
17488
17489
c32bde28 17490static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17491 PyObject *resultobj;
17492 wxImageList *arg1 = (wxImageList *) 0 ;
17493 bool result;
17494 PyObject * obj0 = 0 ;
17495 char *kwnames[] = {
17496 (char *) "self", NULL
17497 };
17498
17499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17502 {
17503 PyThreadState* __tstate = wxPyBeginAllowThreads();
17504 result = (bool)(arg1)->RemoveAll();
17505
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 {
17510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17511 }
17512 return resultobj;
17513 fail:
17514 return NULL;
17515}
17516
17517
c32bde28 17518static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17519 PyObject *resultobj;
17520 wxImageList *arg1 = (wxImageList *) 0 ;
17521 int arg2 ;
17522 int *arg3 = 0 ;
17523 int *arg4 = 0 ;
17524 int temp3 ;
c32bde28 17525 int res3 = 0 ;
d55e5bfc 17526 int temp4 ;
c32bde28 17527 int res4 = 0 ;
d55e5bfc
RD
17528 PyObject * obj0 = 0 ;
17529 PyObject * obj1 = 0 ;
17530 char *kwnames[] = {
17531 (char *) "self",(char *) "index", NULL
17532 };
17533
c32bde28
RD
17534 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17535 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
17536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17539 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17540 if (PyErr_Occurred()) SWIG_fail;
17541 {
17542 PyThreadState* __tstate = wxPyBeginAllowThreads();
17543 (arg1)->GetSize(arg2,*arg3,*arg4);
17544
17545 wxPyEndAllowThreads(__tstate);
17546 if (PyErr_Occurred()) SWIG_fail;
17547 }
17548 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
17549 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17550 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17551 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17552 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
17553 return resultobj;
17554 fail:
17555 return NULL;
17556}
17557
17558
c32bde28 17559static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17560 PyObject *obj;
17561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17562 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17563 Py_INCREF(obj);
17564 return Py_BuildValue((char *)"");
17565}
c32bde28 17566static int _wrap_NORMAL_FONT_set(PyObject *) {
d55e5bfc
RD
17567 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17568 return 1;
17569}
17570
17571
17572static PyObject *_wrap_NORMAL_FONT_get() {
17573 PyObject *pyobj;
17574
17575 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17576 return pyobj;
17577}
17578
17579
c32bde28 17580static int _wrap_SMALL_FONT_set(PyObject *) {
d55e5bfc
RD
17581 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17582 return 1;
17583}
17584
17585
17586static PyObject *_wrap_SMALL_FONT_get() {
17587 PyObject *pyobj;
17588
17589 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17590 return pyobj;
17591}
17592
17593
c32bde28 17594static int _wrap_ITALIC_FONT_set(PyObject *) {
d55e5bfc
RD
17595 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17596 return 1;
17597}
17598
17599
17600static PyObject *_wrap_ITALIC_FONT_get() {
17601 PyObject *pyobj;
17602
17603 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17604 return pyobj;
17605}
17606
17607
c32bde28 17608static int _wrap_SWISS_FONT_set(PyObject *) {
d55e5bfc
RD
17609 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17610 return 1;
17611}
17612
17613
17614static PyObject *_wrap_SWISS_FONT_get() {
17615 PyObject *pyobj;
17616
17617 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17618 return pyobj;
17619}
17620
17621
c32bde28 17622static int _wrap_RED_PEN_set(PyObject *) {
d55e5bfc
RD
17623 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17624 return 1;
17625}
17626
17627
17628static PyObject *_wrap_RED_PEN_get() {
17629 PyObject *pyobj;
17630
17631 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17632 return pyobj;
17633}
17634
17635
c32bde28 17636static int _wrap_CYAN_PEN_set(PyObject *) {
d55e5bfc
RD
17637 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17638 return 1;
17639}
17640
17641
17642static PyObject *_wrap_CYAN_PEN_get() {
17643 PyObject *pyobj;
17644
17645 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17646 return pyobj;
17647}
17648
17649
c32bde28 17650static int _wrap_GREEN_PEN_set(PyObject *) {
d55e5bfc
RD
17651 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17652 return 1;
17653}
17654
17655
17656static PyObject *_wrap_GREEN_PEN_get() {
17657 PyObject *pyobj;
17658
17659 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17660 return pyobj;
17661}
17662
17663
c32bde28 17664static int _wrap_BLACK_PEN_set(PyObject *) {
d55e5bfc
RD
17665 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17666 return 1;
17667}
17668
17669
17670static PyObject *_wrap_BLACK_PEN_get() {
17671 PyObject *pyobj;
17672
17673 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17674 return pyobj;
17675}
17676
17677
c32bde28 17678static int _wrap_WHITE_PEN_set(PyObject *) {
d55e5bfc
RD
17679 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17680 return 1;
17681}
17682
17683
17684static PyObject *_wrap_WHITE_PEN_get() {
17685 PyObject *pyobj;
17686
17687 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17688 return pyobj;
17689}
17690
17691
c32bde28 17692static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
d55e5bfc
RD
17693 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17694 return 1;
17695}
17696
17697
17698static PyObject *_wrap_TRANSPARENT_PEN_get() {
17699 PyObject *pyobj;
17700
17701 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17702 return pyobj;
17703}
17704
17705
c32bde28 17706static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
d55e5bfc
RD
17707 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17708 return 1;
17709}
17710
17711
17712static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17713 PyObject *pyobj;
17714
17715 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17716 return pyobj;
17717}
17718
17719
c32bde28 17720static int _wrap_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17721 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17722 return 1;
17723}
17724
17725
17726static PyObject *_wrap_GREY_PEN_get() {
17727 PyObject *pyobj;
17728
17729 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17730 return pyobj;
17731}
17732
17733
c32bde28 17734static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17735 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17736 return 1;
17737}
17738
17739
17740static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17741 PyObject *pyobj;
17742
17743 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17744 return pyobj;
17745}
17746
17747
c32bde28 17748static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17749 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17750 return 1;
17751}
17752
17753
17754static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17755 PyObject *pyobj;
17756
17757 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17758 return pyobj;
17759}
17760
17761
c32bde28 17762static int _wrap_BLUE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17763 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17764 return 1;
17765}
17766
17767
17768static PyObject *_wrap_BLUE_BRUSH_get() {
17769 PyObject *pyobj;
17770
17771 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17772 return pyobj;
17773}
17774
17775
c32bde28 17776static int _wrap_GREEN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17777 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17778 return 1;
17779}
17780
17781
17782static PyObject *_wrap_GREEN_BRUSH_get() {
17783 PyObject *pyobj;
17784
17785 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17786 return pyobj;
17787}
17788
17789
c32bde28 17790static int _wrap_WHITE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17791 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17792 return 1;
17793}
17794
17795
17796static PyObject *_wrap_WHITE_BRUSH_get() {
17797 PyObject *pyobj;
17798
17799 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17800 return pyobj;
17801}
17802
17803
c32bde28 17804static int _wrap_BLACK_BRUSH_set(PyObject *) {
d55e5bfc
RD
17805 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17806 return 1;
17807}
17808
17809
17810static PyObject *_wrap_BLACK_BRUSH_get() {
17811 PyObject *pyobj;
17812
17813 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17814 return pyobj;
17815}
17816
17817
c32bde28 17818static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
d55e5bfc
RD
17819 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17820 return 1;
17821}
17822
17823
17824static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17825 PyObject *pyobj;
17826
17827 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17828 return pyobj;
17829}
17830
17831
c32bde28 17832static int _wrap_CYAN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17833 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17834 return 1;
17835}
17836
17837
17838static PyObject *_wrap_CYAN_BRUSH_get() {
17839 PyObject *pyobj;
17840
17841 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17842 return pyobj;
17843}
17844
17845
c32bde28 17846static int _wrap_RED_BRUSH_set(PyObject *) {
d55e5bfc
RD
17847 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17848 return 1;
17849}
17850
17851
17852static PyObject *_wrap_RED_BRUSH_get() {
17853 PyObject *pyobj;
17854
17855 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17856 return pyobj;
17857}
17858
17859
c32bde28 17860static int _wrap_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17861 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17862 return 1;
17863}
17864
17865
17866static PyObject *_wrap_GREY_BRUSH_get() {
17867 PyObject *pyobj;
17868
17869 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17870 return pyobj;
17871}
17872
17873
c32bde28 17874static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17875 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17876 return 1;
17877}
17878
17879
17880static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17881 PyObject *pyobj;
17882
17883 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17884 return pyobj;
17885}
17886
17887
c32bde28 17888static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17889 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17890 return 1;
17891}
17892
17893
17894static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17895 PyObject *pyobj;
17896
17897 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17898 return pyobj;
17899}
17900
17901
c32bde28 17902static int _wrap_BLACK_set(PyObject *) {
d55e5bfc
RD
17903 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17904 return 1;
17905}
17906
17907
17908static PyObject *_wrap_BLACK_get() {
17909 PyObject *pyobj;
17910
17911 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17912 return pyobj;
17913}
17914
17915
c32bde28 17916static int _wrap_WHITE_set(PyObject *) {
d55e5bfc
RD
17917 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17918 return 1;
17919}
17920
17921
17922static PyObject *_wrap_WHITE_get() {
17923 PyObject *pyobj;
17924
17925 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17926 return pyobj;
17927}
17928
17929
c32bde28 17930static int _wrap_RED_set(PyObject *) {
d55e5bfc
RD
17931 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17932 return 1;
17933}
17934
17935
17936static PyObject *_wrap_RED_get() {
17937 PyObject *pyobj;
17938
17939 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17940 return pyobj;
17941}
17942
17943
c32bde28 17944static int _wrap_BLUE_set(PyObject *) {
d55e5bfc
RD
17945 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17946 return 1;
17947}
17948
17949
17950static PyObject *_wrap_BLUE_get() {
17951 PyObject *pyobj;
17952
17953 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17954 return pyobj;
17955}
17956
17957
c32bde28 17958static int _wrap_GREEN_set(PyObject *) {
d55e5bfc
RD
17959 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17960 return 1;
17961}
17962
17963
17964static PyObject *_wrap_GREEN_get() {
17965 PyObject *pyobj;
17966
17967 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17968 return pyobj;
17969}
17970
17971
c32bde28 17972static int _wrap_CYAN_set(PyObject *) {
d55e5bfc
RD
17973 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17974 return 1;
17975}
17976
17977
17978static PyObject *_wrap_CYAN_get() {
17979 PyObject *pyobj;
17980
17981 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17982 return pyobj;
17983}
17984
17985
c32bde28 17986static int _wrap_LIGHT_GREY_set(PyObject *) {
d55e5bfc
RD
17987 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17988 return 1;
17989}
17990
17991
17992static PyObject *_wrap_LIGHT_GREY_get() {
17993 PyObject *pyobj;
17994
17995 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17996 return pyobj;
17997}
17998
17999
c32bde28 18000static int _wrap_STANDARD_CURSOR_set(PyObject *) {
d55e5bfc
RD
18001 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
18002 return 1;
18003}
18004
18005
18006static PyObject *_wrap_STANDARD_CURSOR_get() {
18007 PyObject *pyobj;
18008
18009 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
18010 return pyobj;
18011}
18012
18013
c32bde28 18014static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
d55e5bfc
RD
18015 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
18016 return 1;
18017}
18018
18019
18020static PyObject *_wrap_HOURGLASS_CURSOR_get() {
18021 PyObject *pyobj;
18022
18023 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
18024 return pyobj;
18025}
18026
18027
c32bde28 18028static int _wrap_CROSS_CURSOR_set(PyObject *) {
d55e5bfc
RD
18029 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
18030 return 1;
18031}
18032
18033
18034static PyObject *_wrap_CROSS_CURSOR_get() {
18035 PyObject *pyobj;
18036
18037 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
18038 return pyobj;
18039}
18040
18041
c32bde28 18042static int _wrap_NullBitmap_set(PyObject *) {
d55e5bfc
RD
18043 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
18044 return 1;
18045}
18046
18047
18048static PyObject *_wrap_NullBitmap_get() {
18049 PyObject *pyobj;
18050
18051 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
18052 return pyobj;
18053}
18054
18055
c32bde28 18056static int _wrap_NullIcon_set(PyObject *) {
d55e5bfc
RD
18057 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
18058 return 1;
18059}
18060
18061
18062static PyObject *_wrap_NullIcon_get() {
18063 PyObject *pyobj;
18064
18065 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
18066 return pyobj;
18067}
18068
18069
c32bde28 18070static int _wrap_NullCursor_set(PyObject *) {
d55e5bfc
RD
18071 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
18072 return 1;
18073}
18074
18075
18076static PyObject *_wrap_NullCursor_get() {
18077 PyObject *pyobj;
18078
18079 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
18080 return pyobj;
18081}
18082
18083
c32bde28 18084static int _wrap_NullPen_set(PyObject *) {
d55e5bfc
RD
18085 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
18086 return 1;
18087}
18088
18089
18090static PyObject *_wrap_NullPen_get() {
18091 PyObject *pyobj;
18092
18093 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
18094 return pyobj;
18095}
18096
18097
c32bde28 18098static int _wrap_NullBrush_set(PyObject *) {
d55e5bfc
RD
18099 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
18100 return 1;
18101}
18102
18103
18104static PyObject *_wrap_NullBrush_get() {
18105 PyObject *pyobj;
18106
18107 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
18108 return pyobj;
18109}
18110
18111
c32bde28 18112static int _wrap_NullPalette_set(PyObject *) {
d55e5bfc
RD
18113 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
18114 return 1;
18115}
18116
18117
18118static PyObject *_wrap_NullPalette_get() {
18119 PyObject *pyobj;
18120
18121 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
18122 return pyobj;
18123}
18124
18125
c32bde28 18126static int _wrap_NullFont_set(PyObject *) {
d55e5bfc
RD
18127 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
18128 return 1;
18129}
18130
18131
18132static PyObject *_wrap_NullFont_get() {
18133 PyObject *pyobj;
18134
18135 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
18136 return pyobj;
18137}
18138
18139
c32bde28 18140static int _wrap_NullColour_set(PyObject *) {
d55e5bfc
RD
18141 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
18142 return 1;
18143}
18144
18145
18146static PyObject *_wrap_NullColour_get() {
18147 PyObject *pyobj;
18148
18149 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
18150 return pyobj;
18151}
18152
18153
c32bde28 18154static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18155 PyObject *resultobj;
18156 wxPenList *arg1 = (wxPenList *) 0 ;
18157 wxPen *arg2 = (wxPen *) 0 ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 char *kwnames[] = {
18161 (char *) "self",(char *) "pen", NULL
18162 };
18163
18164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
18165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
18168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 (arg1)->AddPen(arg2);
18172
18173 wxPyEndAllowThreads(__tstate);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 }
18176 Py_INCREF(Py_None); resultobj = Py_None;
18177 return resultobj;
18178 fail:
18179 return NULL;
18180}
18181
18182
c32bde28 18183static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18184 PyObject *resultobj;
18185 wxPenList *arg1 = (wxPenList *) 0 ;
18186 wxColour *arg2 = 0 ;
18187 int arg3 ;
18188 int arg4 ;
18189 wxPen *result;
18190 wxColour temp2 ;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 PyObject * obj2 = 0 ;
18194 PyObject * obj3 = 0 ;
18195 char *kwnames[] = {
18196 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
18197 };
18198
18199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18202 {
18203 arg2 = &temp2;
18204 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18205 }
c32bde28 18206 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18207 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18208 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18209 if (PyErr_Occurred()) SWIG_fail;
18210 {
18211 PyThreadState* __tstate = wxPyBeginAllowThreads();
18212 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
18213
18214 wxPyEndAllowThreads(__tstate);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 }
18217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
18218 return resultobj;
18219 fail:
18220 return NULL;
18221}
18222
18223
c32bde28 18224static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18225 PyObject *resultobj;
18226 wxPenList *arg1 = (wxPenList *) 0 ;
18227 wxPen *arg2 = (wxPen *) 0 ;
18228 PyObject * obj0 = 0 ;
18229 PyObject * obj1 = 0 ;
18230 char *kwnames[] = {
18231 (char *) "self",(char *) "pen", NULL
18232 };
18233
18234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
18235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
18238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18239 {
18240 PyThreadState* __tstate = wxPyBeginAllowThreads();
18241 (arg1)->RemovePen(arg2);
18242
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 Py_INCREF(Py_None); resultobj = Py_None;
18247 return resultobj;
18248 fail:
18249 return NULL;
18250}
18251
18252
c32bde28 18253static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18254 PyObject *resultobj;
18255 wxPenList *arg1 = (wxPenList *) 0 ;
18256 int result;
18257 PyObject * obj0 = 0 ;
18258 char *kwnames[] = {
18259 (char *) "self", NULL
18260 };
18261
18262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
18263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 result = (int)(arg1)->GetCount();
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
c32bde28 18272 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18273 return resultobj;
18274 fail:
18275 return NULL;
18276}
18277
18278
c32bde28 18279static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18280 PyObject *obj;
18281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18282 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
18283 Py_INCREF(obj);
18284 return Py_BuildValue((char *)"");
18285}
c32bde28 18286static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18287 PyObject *resultobj;
18288 wxBrushList *arg1 = (wxBrushList *) 0 ;
18289 wxBrush *arg2 = (wxBrush *) 0 ;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self",(char *) "brush", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 (arg1)->AddBrush(arg2);
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 Py_INCREF(Py_None); resultobj = Py_None;
18309 return resultobj;
18310 fail:
18311 return NULL;
18312}
18313
18314
c32bde28 18315static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18316 PyObject *resultobj;
18317 wxBrushList *arg1 = (wxBrushList *) 0 ;
18318 wxColour *arg2 = 0 ;
18319 int arg3 ;
18320 wxBrush *result;
18321 wxColour temp2 ;
18322 PyObject * obj0 = 0 ;
18323 PyObject * obj1 = 0 ;
18324 PyObject * obj2 = 0 ;
18325 char *kwnames[] = {
18326 (char *) "self",(char *) "colour",(char *) "style", NULL
18327 };
18328
18329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
18330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18332 {
18333 arg2 = &temp2;
18334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18335 }
c32bde28 18336 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18337 if (PyErr_Occurred()) SWIG_fail;
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
18341
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
18346 return resultobj;
18347 fail:
18348 return NULL;
18349}
18350
18351
c32bde28 18352static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18353 PyObject *resultobj;
18354 wxBrushList *arg1 = (wxBrushList *) 0 ;
18355 wxBrush *arg2 = (wxBrush *) 0 ;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 char *kwnames[] = {
18359 (char *) "self",(char *) "brush", NULL
18360 };
18361
18362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
18363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18365 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18367 {
18368 PyThreadState* __tstate = wxPyBeginAllowThreads();
18369 (arg1)->RemoveBrush(arg2);
18370
18371 wxPyEndAllowThreads(__tstate);
18372 if (PyErr_Occurred()) SWIG_fail;
18373 }
18374 Py_INCREF(Py_None); resultobj = Py_None;
18375 return resultobj;
18376 fail:
18377 return NULL;
18378}
18379
18380
c32bde28 18381static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18382 PyObject *resultobj;
18383 wxBrushList *arg1 = (wxBrushList *) 0 ;
18384 int result;
18385 PyObject * obj0 = 0 ;
18386 char *kwnames[] = {
18387 (char *) "self", NULL
18388 };
18389
18390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
18391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18393 {
18394 PyThreadState* __tstate = wxPyBeginAllowThreads();
18395 result = (int)(arg1)->GetCount();
18396
18397 wxPyEndAllowThreads(__tstate);
18398 if (PyErr_Occurred()) SWIG_fail;
18399 }
c32bde28 18400 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18401 return resultobj;
18402 fail:
18403 return NULL;
18404}
18405
18406
c32bde28 18407static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18408 PyObject *obj;
18409 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18410 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18411 Py_INCREF(obj);
18412 return Py_BuildValue((char *)"");
18413}
c32bde28 18414static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18415 PyObject *resultobj;
18416 wxColourDatabase *result;
18417 char *kwnames[] = {
18418 NULL
18419 };
18420
18421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18422 {
0439c23b 18423 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
18424 PyThreadState* __tstate = wxPyBeginAllowThreads();
18425 result = (wxColourDatabase *)new wxColourDatabase();
18426
18427 wxPyEndAllowThreads(__tstate);
110da5b0 18428 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
18429 }
18430 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18431 return resultobj;
18432 fail:
18433 return NULL;
18434}
18435
18436
c32bde28 18437static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18438 PyObject *resultobj;
18439 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18440 PyObject * obj0 = 0 ;
18441 char *kwnames[] = {
18442 (char *) "self", NULL
18443 };
18444
18445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18448 {
18449 PyThreadState* __tstate = wxPyBeginAllowThreads();
18450 delete arg1;
18451
18452 wxPyEndAllowThreads(__tstate);
18453 if (PyErr_Occurred()) SWIG_fail;
18454 }
18455 Py_INCREF(Py_None); resultobj = Py_None;
18456 return resultobj;
18457 fail:
18458 return NULL;
18459}
18460
18461
c32bde28 18462static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18463 PyObject *resultobj;
18464 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18465 wxString *arg2 = 0 ;
18466 wxColour result;
ae8162c8 18467 bool temp2 = false ;
d55e5bfc
RD
18468 PyObject * obj0 = 0 ;
18469 PyObject * obj1 = 0 ;
18470 char *kwnames[] = {
18471 (char *) "self",(char *) "name", NULL
18472 };
18473
18474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18477 {
18478 arg2 = wxString_in_helper(obj1);
18479 if (arg2 == NULL) SWIG_fail;
ae8162c8 18480 temp2 = true;
d55e5bfc
RD
18481 }
18482 {
18483 PyThreadState* __tstate = wxPyBeginAllowThreads();
18484 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18485
18486 wxPyEndAllowThreads(__tstate);
18487 if (PyErr_Occurred()) SWIG_fail;
18488 }
18489 {
18490 wxColour * resultptr;
18491 resultptr = new wxColour((wxColour &) result);
18492 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18493 }
18494 {
18495 if (temp2)
18496 delete arg2;
18497 }
18498 return resultobj;
18499 fail:
18500 {
18501 if (temp2)
18502 delete arg2;
18503 }
18504 return NULL;
18505}
18506
18507
c32bde28 18508static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18509 PyObject *resultobj;
18510 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18511 wxColour *arg2 = 0 ;
18512 wxString result;
18513 wxColour temp2 ;
18514 PyObject * obj0 = 0 ;
18515 PyObject * obj1 = 0 ;
18516 char *kwnames[] = {
18517 (char *) "self",(char *) "colour", NULL
18518 };
18519
18520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18523 {
18524 arg2 = &temp2;
18525 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18526 }
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535#if wxUSE_UNICODE
18536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18537#else
18538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18539#endif
18540 }
18541 return resultobj;
18542 fail:
18543 return NULL;
18544}
18545
18546
c32bde28 18547static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18548 PyObject *resultobj;
18549 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18550 wxString *arg2 = 0 ;
18551 wxColour *arg3 = 0 ;
ae8162c8 18552 bool temp2 = false ;
d55e5bfc
RD
18553 wxColour temp3 ;
18554 PyObject * obj0 = 0 ;
18555 PyObject * obj1 = 0 ;
18556 PyObject * obj2 = 0 ;
18557 char *kwnames[] = {
18558 (char *) "self",(char *) "name",(char *) "colour", NULL
18559 };
18560
18561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18564 {
18565 arg2 = wxString_in_helper(obj1);
18566 if (arg2 == NULL) SWIG_fail;
ae8162c8 18567 temp2 = true;
d55e5bfc
RD
18568 }
18569 {
18570 arg3 = &temp3;
18571 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18572 }
18573 {
18574 PyThreadState* __tstate = wxPyBeginAllowThreads();
18575 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18576
18577 wxPyEndAllowThreads(__tstate);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 }
18580 Py_INCREF(Py_None); resultobj = Py_None;
18581 {
18582 if (temp2)
18583 delete arg2;
18584 }
18585 return resultobj;
18586 fail:
18587 {
18588 if (temp2)
18589 delete arg2;
18590 }
18591 return NULL;
18592}
18593
18594
c32bde28 18595static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18596 PyObject *resultobj;
18597 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18598 wxString *arg2 = 0 ;
18599 int arg3 ;
18600 int arg4 ;
18601 int arg5 ;
ae8162c8 18602 bool temp2 = false ;
d55e5bfc
RD
18603 PyObject * obj0 = 0 ;
18604 PyObject * obj1 = 0 ;
18605 PyObject * obj2 = 0 ;
18606 PyObject * obj3 = 0 ;
18607 PyObject * obj4 = 0 ;
18608 char *kwnames[] = {
18609 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18610 };
18611
18612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18615 {
18616 arg2 = wxString_in_helper(obj1);
18617 if (arg2 == NULL) SWIG_fail;
ae8162c8 18618 temp2 = true;
d55e5bfc 18619 }
c32bde28 18620 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18621 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18622 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18623 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18624 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18625 if (PyErr_Occurred()) SWIG_fail;
18626 {
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18629
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 Py_INCREF(Py_None); resultobj = Py_None;
18634 {
18635 if (temp2)
18636 delete arg2;
18637 }
18638 return resultobj;
18639 fail:
18640 {
18641 if (temp2)
18642 delete arg2;
18643 }
18644 return NULL;
18645}
18646
18647
c32bde28 18648static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18649 PyObject *obj;
18650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18651 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18652 Py_INCREF(obj);
18653 return Py_BuildValue((char *)"");
18654}
c32bde28 18655static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18656 PyObject *resultobj;
18657 wxFontList *arg1 = (wxFontList *) 0 ;
18658 wxFont *arg2 = (wxFont *) 0 ;
18659 PyObject * obj0 = 0 ;
18660 PyObject * obj1 = 0 ;
18661 char *kwnames[] = {
18662 (char *) "self",(char *) "font", NULL
18663 };
18664
18665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18668 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18670 {
18671 PyThreadState* __tstate = wxPyBeginAllowThreads();
18672 (arg1)->AddFont(arg2);
18673
18674 wxPyEndAllowThreads(__tstate);
18675 if (PyErr_Occurred()) SWIG_fail;
18676 }
18677 Py_INCREF(Py_None); resultobj = Py_None;
18678 return resultobj;
18679 fail:
18680 return NULL;
18681}
18682
18683
c32bde28 18684static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18685 PyObject *resultobj;
18686 wxFontList *arg1 = (wxFontList *) 0 ;
18687 int arg2 ;
18688 int arg3 ;
18689 int arg4 ;
18690 int arg5 ;
ae8162c8 18691 bool arg6 = (bool) false ;
d55e5bfc
RD
18692 wxString const &arg7_defvalue = wxPyEmptyString ;
18693 wxString *arg7 = (wxString *) &arg7_defvalue ;
18694 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18695 wxFont *result;
ae8162c8 18696 bool temp7 = false ;
d55e5bfc
RD
18697 PyObject * obj0 = 0 ;
18698 PyObject * obj1 = 0 ;
18699 PyObject * obj2 = 0 ;
18700 PyObject * obj3 = 0 ;
18701 PyObject * obj4 = 0 ;
18702 PyObject * obj5 = 0 ;
18703 PyObject * obj6 = 0 ;
18704 PyObject * obj7 = 0 ;
18705 char *kwnames[] = {
18706 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18707 };
18708
18709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18712 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 18713 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18714 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18715 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18716 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18717 if (PyErr_Occurred()) SWIG_fail;
c32bde28 18718 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18719 if (PyErr_Occurred()) SWIG_fail;
18720 if (obj5) {
c32bde28 18721 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 if (obj6) {
18725 {
18726 arg7 = wxString_in_helper(obj6);
18727 if (arg7 == NULL) SWIG_fail;
ae8162c8 18728 temp7 = true;
d55e5bfc
RD
18729 }
18730 }
18731 if (obj7) {
c32bde28 18732 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
18733 if (PyErr_Occurred()) SWIG_fail;
18734 }
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18738
18739 wxPyEndAllowThreads(__tstate);
18740 if (PyErr_Occurred()) SWIG_fail;
18741 }
18742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18743 {
18744 if (temp7)
18745 delete arg7;
18746 }
18747 return resultobj;
18748 fail:
18749 {
18750 if (temp7)
18751 delete arg7;
18752 }
18753 return NULL;
18754}
18755
18756
c32bde28 18757static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18758 PyObject *resultobj;
18759 wxFontList *arg1 = (wxFontList *) 0 ;
18760 wxFont *arg2 = (wxFont *) 0 ;
18761 PyObject * obj0 = 0 ;
18762 PyObject * obj1 = 0 ;
18763 char *kwnames[] = {
18764 (char *) "self",(char *) "font", NULL
18765 };
18766
18767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18770 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18772 {
18773 PyThreadState* __tstate = wxPyBeginAllowThreads();
18774 (arg1)->RemoveFont(arg2);
18775
18776 wxPyEndAllowThreads(__tstate);
18777 if (PyErr_Occurred()) SWIG_fail;
18778 }
18779 Py_INCREF(Py_None); resultobj = Py_None;
18780 return resultobj;
18781 fail:
18782 return NULL;
18783}
18784
18785
c32bde28 18786static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18787 PyObject *resultobj;
18788 wxFontList *arg1 = (wxFontList *) 0 ;
18789 int result;
18790 PyObject * obj0 = 0 ;
18791 char *kwnames[] = {
18792 (char *) "self", NULL
18793 };
18794
18795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18798 {
18799 PyThreadState* __tstate = wxPyBeginAllowThreads();
18800 result = (int)(arg1)->GetCount();
18801
18802 wxPyEndAllowThreads(__tstate);
18803 if (PyErr_Occurred()) SWIG_fail;
18804 }
c32bde28 18805 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18806 return resultobj;
18807 fail:
18808 return NULL;
18809}
18810
18811
c32bde28 18812static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18813 PyObject *obj;
18814 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18815 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18816 Py_INCREF(obj);
18817 return Py_BuildValue((char *)"");
18818}
c32bde28 18819static int _wrap_TheFontList_set(PyObject *) {
d55e5bfc
RD
18820 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18821 return 1;
18822}
18823
18824
18825static PyObject *_wrap_TheFontList_get() {
18826 PyObject *pyobj;
18827
18828 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18829 return pyobj;
18830}
18831
18832
c32bde28 18833static int _wrap_ThePenList_set(PyObject *) {
d55e5bfc
RD
18834 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18835 return 1;
18836}
18837
18838
18839static PyObject *_wrap_ThePenList_get() {
18840 PyObject *pyobj;
18841
18842 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18843 return pyobj;
18844}
18845
18846
c32bde28 18847static int _wrap_TheBrushList_set(PyObject *) {
d55e5bfc
RD
18848 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18849 return 1;
18850}
18851
18852
18853static PyObject *_wrap_TheBrushList_get() {
18854 PyObject *pyobj;
18855
18856 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18857 return pyobj;
18858}
18859
18860
c32bde28 18861static int _wrap_TheColourDatabase_set(PyObject *) {
d55e5bfc
RD
18862 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18863 return 1;
18864}
18865
18866
18867static PyObject *_wrap_TheColourDatabase_get() {
18868 PyObject *pyobj;
18869
18870 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18871 return pyobj;
18872}
18873
18874
c32bde28 18875static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18876 PyObject *resultobj;
18877 wxEffects *result;
18878 char *kwnames[] = {
18879 NULL
18880 };
18881
18882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18883 {
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 result = (wxEffects *)new wxEffects();
18886
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18891 return resultobj;
18892 fail:
18893 return NULL;
18894}
18895
18896
c32bde28 18897static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18898 PyObject *resultobj;
18899 wxEffects *arg1 = (wxEffects *) 0 ;
18900 wxColour result;
18901 PyObject * obj0 = 0 ;
18902 char *kwnames[] = {
18903 (char *) "self", NULL
18904 };
18905
18906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18909 {
18910 PyThreadState* __tstate = wxPyBeginAllowThreads();
18911 result = ((wxEffects const *)arg1)->GetHighlightColour();
18912
18913 wxPyEndAllowThreads(__tstate);
18914 if (PyErr_Occurred()) SWIG_fail;
18915 }
18916 {
18917 wxColour * resultptr;
18918 resultptr = new wxColour((wxColour &) result);
18919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18920 }
18921 return resultobj;
18922 fail:
18923 return NULL;
18924}
18925
18926
c32bde28 18927static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18928 PyObject *resultobj;
18929 wxEffects *arg1 = (wxEffects *) 0 ;
18930 wxColour result;
18931 PyObject * obj0 = 0 ;
18932 char *kwnames[] = {
18933 (char *) "self", NULL
18934 };
18935
18936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18939 {
18940 PyThreadState* __tstate = wxPyBeginAllowThreads();
18941 result = ((wxEffects const *)arg1)->GetLightShadow();
18942
18943 wxPyEndAllowThreads(__tstate);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 }
18946 {
18947 wxColour * resultptr;
18948 resultptr = new wxColour((wxColour &) result);
18949 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18950 }
18951 return resultobj;
18952 fail:
18953 return NULL;
18954}
18955
18956
c32bde28 18957static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18958 PyObject *resultobj;
18959 wxEffects *arg1 = (wxEffects *) 0 ;
18960 wxColour result;
18961 PyObject * obj0 = 0 ;
18962 char *kwnames[] = {
18963 (char *) "self", NULL
18964 };
18965
18966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18969 {
18970 PyThreadState* __tstate = wxPyBeginAllowThreads();
18971 result = ((wxEffects const *)arg1)->GetFaceColour();
18972
18973 wxPyEndAllowThreads(__tstate);
18974 if (PyErr_Occurred()) SWIG_fail;
18975 }
18976 {
18977 wxColour * resultptr;
18978 resultptr = new wxColour((wxColour &) result);
18979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18980 }
18981 return resultobj;
18982 fail:
18983 return NULL;
18984}
18985
18986
c32bde28 18987static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18988 PyObject *resultobj;
18989 wxEffects *arg1 = (wxEffects *) 0 ;
18990 wxColour result;
18991 PyObject * obj0 = 0 ;
18992 char *kwnames[] = {
18993 (char *) "self", NULL
18994 };
18995
18996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 result = ((wxEffects const *)arg1)->GetMediumShadow();
19002
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 {
19007 wxColour * resultptr;
19008 resultptr = new wxColour((wxColour &) result);
19009 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19010 }
19011 return resultobj;
19012 fail:
19013 return NULL;
19014}
19015
19016
c32bde28 19017static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19018 PyObject *resultobj;
19019 wxEffects *arg1 = (wxEffects *) 0 ;
19020 wxColour result;
19021 PyObject * obj0 = 0 ;
19022 char *kwnames[] = {
19023 (char *) "self", NULL
19024 };
19025
19026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
19027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 result = ((wxEffects const *)arg1)->GetDarkShadow();
19032
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 {
19037 wxColour * resultptr;
19038 resultptr = new wxColour((wxColour &) result);
19039 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19040 }
19041 return resultobj;
19042 fail:
19043 return NULL;
19044}
19045
19046
c32bde28 19047static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19048 PyObject *resultobj;
19049 wxEffects *arg1 = (wxEffects *) 0 ;
19050 wxColour *arg2 = 0 ;
19051 wxColour temp2 ;
19052 PyObject * obj0 = 0 ;
19053 PyObject * obj1 = 0 ;
19054 char *kwnames[] = {
19055 (char *) "self",(char *) "c", NULL
19056 };
19057
19058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
19059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19061 {
19062 arg2 = &temp2;
19063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->SetHighlightColour((wxColour const &)*arg2);
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 Py_INCREF(Py_None); resultobj = Py_None;
19073 return resultobj;
19074 fail:
19075 return NULL;
19076}
19077
19078
c32bde28 19079static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19080 PyObject *resultobj;
19081 wxEffects *arg1 = (wxEffects *) 0 ;
19082 wxColour *arg2 = 0 ;
19083 wxColour temp2 ;
19084 PyObject * obj0 = 0 ;
19085 PyObject * obj1 = 0 ;
19086 char *kwnames[] = {
19087 (char *) "self",(char *) "c", NULL
19088 };
19089
19090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
19091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19093 {
19094 arg2 = &temp2;
19095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19096 }
19097 {
19098 PyThreadState* __tstate = wxPyBeginAllowThreads();
19099 (arg1)->SetLightShadow((wxColour const &)*arg2);
19100
19101 wxPyEndAllowThreads(__tstate);
19102 if (PyErr_Occurred()) SWIG_fail;
19103 }
19104 Py_INCREF(Py_None); resultobj = Py_None;
19105 return resultobj;
19106 fail:
19107 return NULL;
19108}
19109
19110
c32bde28 19111static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19112 PyObject *resultobj;
19113 wxEffects *arg1 = (wxEffects *) 0 ;
19114 wxColour *arg2 = 0 ;
19115 wxColour temp2 ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 char *kwnames[] = {
19119 (char *) "self",(char *) "c", NULL
19120 };
19121
19122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
19123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19125 {
19126 arg2 = &temp2;
19127 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19128 }
19129 {
19130 PyThreadState* __tstate = wxPyBeginAllowThreads();
19131 (arg1)->SetFaceColour((wxColour const &)*arg2);
19132
19133 wxPyEndAllowThreads(__tstate);
19134 if (PyErr_Occurred()) SWIG_fail;
19135 }
19136 Py_INCREF(Py_None); resultobj = Py_None;
19137 return resultobj;
19138 fail:
19139 return NULL;
19140}
19141
19142
c32bde28 19143static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19144 PyObject *resultobj;
19145 wxEffects *arg1 = (wxEffects *) 0 ;
19146 wxColour *arg2 = 0 ;
19147 wxColour temp2 ;
19148 PyObject * obj0 = 0 ;
19149 PyObject * obj1 = 0 ;
19150 char *kwnames[] = {
19151 (char *) "self",(char *) "c", NULL
19152 };
19153
19154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
19155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19157 {
19158 arg2 = &temp2;
19159 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19160 }
19161 {
19162 PyThreadState* __tstate = wxPyBeginAllowThreads();
19163 (arg1)->SetMediumShadow((wxColour const &)*arg2);
19164
19165 wxPyEndAllowThreads(__tstate);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 Py_INCREF(Py_None); resultobj = Py_None;
19169 return resultobj;
19170 fail:
19171 return NULL;
19172}
19173
19174
c32bde28 19175static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19176 PyObject *resultobj;
19177 wxEffects *arg1 = (wxEffects *) 0 ;
19178 wxColour *arg2 = 0 ;
19179 wxColour temp2 ;
19180 PyObject * obj0 = 0 ;
19181 PyObject * obj1 = 0 ;
19182 char *kwnames[] = {
19183 (char *) "self",(char *) "c", NULL
19184 };
19185
19186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
19187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19189 {
19190 arg2 = &temp2;
19191 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19192 }
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 (arg1)->SetDarkShadow((wxColour const &)*arg2);
19196
19197 wxPyEndAllowThreads(__tstate);
19198 if (PyErr_Occurred()) SWIG_fail;
19199 }
19200 Py_INCREF(Py_None); resultobj = Py_None;
19201 return resultobj;
19202 fail:
19203 return NULL;
19204}
19205
19206
c32bde28 19207static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19208 PyObject *resultobj;
19209 wxEffects *arg1 = (wxEffects *) 0 ;
19210 wxColour *arg2 = 0 ;
19211 wxColour *arg3 = 0 ;
19212 wxColour *arg4 = 0 ;
19213 wxColour *arg5 = 0 ;
19214 wxColour *arg6 = 0 ;
19215 wxColour temp2 ;
19216 wxColour temp3 ;
19217 wxColour temp4 ;
19218 wxColour temp5 ;
19219 wxColour temp6 ;
19220 PyObject * obj0 = 0 ;
19221 PyObject * obj1 = 0 ;
19222 PyObject * obj2 = 0 ;
19223 PyObject * obj3 = 0 ;
19224 PyObject * obj4 = 0 ;
19225 PyObject * obj5 = 0 ;
19226 char *kwnames[] = {
19227 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
19228 };
19229
19230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
19231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19233 {
19234 arg2 = &temp2;
19235 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19236 }
19237 {
19238 arg3 = &temp3;
19239 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19240 }
19241 {
19242 arg4 = &temp4;
19243 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
19244 }
19245 {
19246 arg5 = &temp5;
19247 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
19248 }
19249 {
19250 arg6 = &temp6;
19251 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
19252 }
19253 {
19254 PyThreadState* __tstate = wxPyBeginAllowThreads();
19255 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
19256
19257 wxPyEndAllowThreads(__tstate);
19258 if (PyErr_Occurred()) SWIG_fail;
19259 }
19260 Py_INCREF(Py_None); resultobj = Py_None;
19261 return resultobj;
19262 fail:
19263 return NULL;
19264}
19265
19266
c32bde28 19267static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19268 PyObject *resultobj;
19269 wxEffects *arg1 = (wxEffects *) 0 ;
19270 wxDC *arg2 = 0 ;
19271 wxRect *arg3 = 0 ;
19272 int arg4 = (int) 1 ;
19273 wxRect temp3 ;
19274 PyObject * obj0 = 0 ;
19275 PyObject * obj1 = 0 ;
19276 PyObject * obj2 = 0 ;
19277 PyObject * obj3 = 0 ;
19278 char *kwnames[] = {
19279 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
19280 };
19281
19282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
19286 SWIG_POINTER_EXCEPTION | 0)) == -1)
19287 SWIG_fail;
19288 if (arg2 == NULL) {
19289 PyErr_SetString(PyExc_TypeError,"null reference");
19290 SWIG_fail;
19291 }
19292 {
19293 arg3 = &temp3;
19294 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19295 }
19296 if (obj3) {
c32bde28 19297 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
19298 if (PyErr_Occurred()) SWIG_fail;
19299 }
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
19303
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 Py_INCREF(Py_None); resultobj = Py_None;
19308 return resultobj;
19309 fail:
19310 return NULL;
19311}
19312
19313
c32bde28 19314static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19315 PyObject *resultobj;
19316 wxEffects *arg1 = (wxEffects *) 0 ;
19317 wxRect *arg2 = 0 ;
19318 wxDC *arg3 = 0 ;
19319 wxBitmap *arg4 = 0 ;
19320 bool result;
19321 wxRect temp2 ;
19322 PyObject * obj0 = 0 ;
19323 PyObject * obj1 = 0 ;
19324 PyObject * obj2 = 0 ;
19325 PyObject * obj3 = 0 ;
19326 char *kwnames[] = {
19327 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
19328 };
19329
19330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19333 {
19334 arg2 = &temp2;
19335 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19336 }
19337 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
19338 SWIG_POINTER_EXCEPTION | 0)) == -1)
19339 SWIG_fail;
19340 if (arg3 == NULL) {
19341 PyErr_SetString(PyExc_TypeError,"null reference");
19342 SWIG_fail;
19343 }
19344 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
19345 SWIG_POINTER_EXCEPTION | 0)) == -1)
19346 SWIG_fail;
19347 if (arg4 == NULL) {
19348 PyErr_SetString(PyExc_TypeError,"null reference");
19349 SWIG_fail;
19350 }
19351 {
19352 PyThreadState* __tstate = wxPyBeginAllowThreads();
19353 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
19354
19355 wxPyEndAllowThreads(__tstate);
19356 if (PyErr_Occurred()) SWIG_fail;
19357 }
19358 {
19359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19360 }
19361 return resultobj;
19362 fail:
19363 return NULL;
19364}
19365
19366
c32bde28 19367static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19368 PyObject *obj;
19369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19370 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
19371 Py_INCREF(obj);
19372 return Py_BuildValue((char *)"");
19373}
19374static PyMethodDef SwigMethods[] = {
c32bde28
RD
19375 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
19376 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
19377 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
19378 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
19379 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
19380 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
19381 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
19382 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
19383 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19384 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
19385 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
19386 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
19387 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
19388 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19389 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19390 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19391 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
19392 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19393 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19394 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19395 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
19396 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19397 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
19398 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
19399 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
19400 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19401 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19402 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19403 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
19404 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
19405 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
19406 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
19407 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19408 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
19409 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19410 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19411 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19412 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
19413 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19414 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
19415 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19416 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19417 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19418 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19419 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19420 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL },
19421 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19422 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19423 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19424 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19425 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
19426 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
19427 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
19428 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19429 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19430 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19431 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19432 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19433 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19434 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19435 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
19436 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19437 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19438 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19439 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19440 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
19441 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
19442 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
19443 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19444 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19445 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19446 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19447 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19448 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19449 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19450 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19451 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
19452 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
19453 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
19454 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
19455 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19456 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
19457 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
19458 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19459 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19460 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19461 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19462 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19463 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL },
19464 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS, NULL },
19465 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL },
19466 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19467 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19468 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
19469 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
19470 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
19471 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
19472 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
19473 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19474 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19475 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19476 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
19477 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
19478 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19479 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19480 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19481 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19482 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19483 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19484 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19485 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19486 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19487 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19488 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19489 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
19490 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19491 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19492 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19493 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19494 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19495 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
19496 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
19497 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
19498 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
19499 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
19500 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19501 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
19502 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19503 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
19504 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19505 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
19506 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
19507 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
19508 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
19509 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
19510 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19511 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19512 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19513 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19514 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19515 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19516 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19517 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19518 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19519 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19520 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
19521 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
19522 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19523 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
19524 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
19525 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
19526 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19527 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
19528 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
19529 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19530 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
19531 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
19532 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
19533 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
19534 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
19535 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19536 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
19537 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
19538 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
19539 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19540 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
19541 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
19542 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19543 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
19544 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
19545 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19546 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19547 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19548 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
19549 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
19550 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
19551 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
19552 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
19553 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
19554 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
19555 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19556 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
19557 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19558 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
19559 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
19560 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
19561 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
19562 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
19563 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
19564 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19565 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19566 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19567 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
19568 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 19569 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction) _wrap_NativeFontInfo_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c32bde28
RD
19570 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19571 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19572 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19573 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19574 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19575 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19576 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 19577 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c32bde28
RD
19578 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19579 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19580 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19581 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19582 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19583 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19584 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
19585 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
19586 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
19587 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
19588 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
19589 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
19590 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
19591 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
19592 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
19593 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
19594 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19595 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19596 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
19597 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
19598 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
19599 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19600 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19601 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
19602 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
19603 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
19604 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19605 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19606 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
19607 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19608 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19609 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
19610 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
19611 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
19612 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
19613 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
19614 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19615 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
19616 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
19617 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
19618 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
19619 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
19620 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
19621 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19622 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
19623 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 19624 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c32bde28
RD
19625 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19626 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19627 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19628 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524
RD
19629 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19630 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL },
c32bde28
RD
19631 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19632 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19633 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19634 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19635 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19636 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19637 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19638 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19639 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19640 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19641 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 19642 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c32bde28
RD
19643 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19644 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19645 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19646 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19647 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19648 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19649 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19650 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
19651 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19652 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
19653 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
19654 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
19655 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19656 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19657 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19658 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19659 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
19660 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19661 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19662 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19663 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19664 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19665 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19666 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19667 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
19668 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
19669 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
19670 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
19671 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
19672 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
19673 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
19674 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
19675 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19676 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19677 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
19678 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
19679 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19680 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19681 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19682 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19683 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19684 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19685 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
19686 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
19687 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
19688 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
19689 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
19690 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19691 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
19692 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19693 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19694 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
19695 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
19696 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
19697 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19698 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
19699 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19700 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19701 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19702 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
19703 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19704 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19705 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
19706 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
19707 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
19708 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19709 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19710 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
19711 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19712 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19713 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19714 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
19715 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19716 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
19717 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19718 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
19719 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19720 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
19721 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
19722 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
19723 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19724 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19725 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19726 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19727 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19728 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19729 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19730 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19731 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19732 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
19733 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19734 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
19735 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
19736 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19737 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19738 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19739 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19740 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19741 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
19742 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19743 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
19744 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19745 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
19746 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19747 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19748 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19749 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19750 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19751 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
19752 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
19753 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19754 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19755 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
19756 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19757 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19758 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19759 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
19760 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
19761 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19762 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19763 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19764 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19765 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19766 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19767 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19768 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19769 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19770 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19771 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19772 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19773 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19774 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19775 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
19776 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19777 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19778 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
19779 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19780 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
19781 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
19782 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19783 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19784 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
19785 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
19786 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19787 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19788 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19789 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19790 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19791 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
19792 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19793 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19794 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19795 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19796 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19797 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19798 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19799 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19800 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19801 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19802 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19803 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19804 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19805 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19806 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19807 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19808 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19809 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19810 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19811 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19812 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19813 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19814 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19815 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19816 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
19817 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19818 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19819 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19820 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19821 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19822 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19823 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19824 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
19825 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
19826 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
19827 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
19828 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19829 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL },
19830 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
19831 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
19832 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
19833 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
19834 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
19835 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
19836 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19837 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19838 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19839 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19840 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19841 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19842 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19843 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19844 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19845 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19846 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19847 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19848 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19849 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19850 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19851 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19852 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19853 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19854 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19855 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19856 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19857 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19858 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19859 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19860 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19861 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19862 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19863 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19864 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19865 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19866 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19867 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19868 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19869 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
19870 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19871 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19872 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19873 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19874 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19875 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19876 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
19877 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19878 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19879 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19880 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19881 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19882 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19883 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19884 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19885 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19886 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19887 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19888 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19889 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19890 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19891 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19892 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19893 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19894 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19895 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19896 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19897 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19898 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19899 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19900 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19901 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19902 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19903 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19904 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19905 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19906 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19907 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19908 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19909 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19910 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19911 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19912 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19913 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19914 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19915 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19916 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19917 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19918 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19919 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19920 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19921 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19922 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19923 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19924 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19925 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19926 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19927 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19928 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19929 { NULL, NULL, 0, NULL }
d55e5bfc
RD
19930};
19931
19932
19933/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19934
19935static void *_p_wxControlTo_p_wxWindow(void *x) {
19936 return (void *)((wxWindow *) ((wxControl *) x));
19937}
19938static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19939 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19940}
19941static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19942 return (void *)((wxWindow *) ((wxMenuBar *) x));
19943}
19944static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19945 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19946}
19947static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19948 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19949}
19950static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19951 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19952}
19953static void *_p_wxPenTo_p_wxObject(void *x) {
19954 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19955}
19956static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19957 return (void *)((wxObject *) ((wxRegionIterator *) x));
19958}
19959static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19960 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19961}
19962static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19963 return (void *)((wxObject *) ((wxSizerItem *) x));
19964}
19965static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19966 return (void *)((wxObject *) ((wxColourDatabase *) x));
19967}
19968static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19969 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19970}
19971static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19972 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19973}
19974static void *_p_wxIconTo_p_wxObject(void *x) {
19975 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19976}
19977static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19978 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19979}
19980static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19981 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19982}
19983static void *_p_wxSizerTo_p_wxObject(void *x) {
19984 return (void *)((wxObject *) ((wxSizer *) x));
19985}
19986static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19987 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19988}
19989static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19990 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19991}
19992static void *_p_wxPenListTo_p_wxObject(void *x) {
19993 return (void *)((wxObject *) ((wxPenList *) x));
19994}
19995static void *_p_wxEventTo_p_wxObject(void *x) {
19996 return (void *)((wxObject *) ((wxEvent *) x));
19997}
19998static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19999 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
20000}
20001static void *_p_wxGridSizerTo_p_wxObject(void *x) {
20002 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
20003}
20004static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
20005 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
20006}
20007static void *_p_wxPaintEventTo_p_wxObject(void *x) {
20008 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
20009}
20010static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
20011 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
20012}
20013static void *_p_wxDCTo_p_wxObject(void *x) {
20014 return (void *)((wxObject *) ((wxDC *) x));
20015}
20016static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
20017 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
20018}
20019static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
20020 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
20021}
20022static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
20023 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
20024}
20025static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
20026 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
20027}
20028static void *_p_wxControlTo_p_wxObject(void *x) {
20029 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
20030}
20031static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
20032 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
20033}
20034static void *_p_wxClientDCTo_p_wxObject(void *x) {
20035 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
20036}
20037static void *_p_wxFSFileTo_p_wxObject(void *x) {
20038 return (void *)((wxObject *) ((wxFSFile *) x));
20039}
20040static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
20041 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
20042}
20043static void *_p_wxRegionTo_p_wxObject(void *x) {
20044 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
20045}
20046static void *_p_wxPySizerTo_p_wxObject(void *x) {
20047 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
20048}
20049static void *_p_wxWindowDCTo_p_wxObject(void *x) {
20050 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
20051}
20052static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
20053 return (void *)((wxObject *) ((wxGDIObject *) x));
20054}
20055static void *_p_wxEffectsTo_p_wxObject(void *x) {
20056 return (void *)((wxObject *) ((wxEffects *) x));
20057}
20058static void *_p_wxPyEventTo_p_wxObject(void *x) {
20059 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
20060}
20061static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
20062 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
20063}
20064static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
20065 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
20066}
20067static void *_p_wxShowEventTo_p_wxObject(void *x) {
20068 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
20069}
20070static void *_p_wxMenuItemTo_p_wxObject(void *x) {
20071 return (void *)((wxObject *) ((wxMenuItem *) x));
20072}
20073static void *_p_wxIdleEventTo_p_wxObject(void *x) {
20074 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
20075}
20076static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
20077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
20078}
20079static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
20080 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
20081}
20082static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
20083 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
20084}
20085static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
20086 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
20087}
20088static void *_p_wxSizeEventTo_p_wxObject(void *x) {
20089 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
20090}
20091static void *_p_wxMoveEventTo_p_wxObject(void *x) {
20092 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
20093}
20094static void *_p_wxActivateEventTo_p_wxObject(void *x) {
20095 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
20096}
20097static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
20098 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
20099}
20100static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
20101 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
20102}
20103static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
20104 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
20105}
20106static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
20107 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
20108}
20109static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
20110 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
20111}
20112static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
20113 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
20114}
20115static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
20116 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
20117}
20118static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
20119 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
20120}
20121static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
20122 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
20123}
20124static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
20125 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
20126}
20127static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
20128 return (void *)((wxObject *) ((wxImageHandler *) x));
20129}
20130static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
20131 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
20132}
20133static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
20134 return (void *)((wxObject *) ((wxEvtHandler *) x));
20135}
20136static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
20137 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
20138}
20139static void *_p_wxPaintDCTo_p_wxObject(void *x) {
20140 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
20141}
20142static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
20143 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
20144}
20145static void *_p_wxScreenDCTo_p_wxObject(void *x) {
20146 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
20147}
20148static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
20149 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
20150}
20151static void *_p_wxImageTo_p_wxObject(void *x) {
20152 return (void *)((wxObject *) ((wxImage *) x));
20153}
20154static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
20155 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
20156}
20157static void *_p_wxPaletteTo_p_wxObject(void *x) {
20158 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
20159}
20160static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
20161 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
20162}
20163static void *_p_wxImageListTo_p_wxObject(void *x) {
20164 return (void *)((wxObject *) ((wxImageList *) x));
20165}
20166static void *_p_wxCursorTo_p_wxObject(void *x) {
20167 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
20168}
20169static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
20170 return (void *)((wxObject *) ((wxEncodingConverter *) x));
20171}
20172static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
20173 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
20174}
20175static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
20176 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
20177}
20178static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
20179 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
20180}
20181static void *_p_wxKeyEventTo_p_wxObject(void *x) {
20182 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
20183}
20184static void *_p_wxWindowTo_p_wxObject(void *x) {
20185 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
20186}
20187static void *_p_wxMenuTo_p_wxObject(void *x) {
20188 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
20189}
20190static void *_p_wxMenuBarTo_p_wxObject(void *x) {
20191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
20192}
20193static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
20194 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
20195}
20196static void *_p_wxBrushListTo_p_wxObject(void *x) {
20197 return (void *)((wxObject *) ((wxBrushList *) x));
20198}
d55e5bfc
RD
20199static void *_p_wxFileSystemTo_p_wxObject(void *x) {
20200 return (void *)((wxObject *) ((wxFileSystem *) x));
20201}
20202static void *_p_wxBitmapTo_p_wxObject(void *x) {
20203 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
20204}
20205static void *_p_wxMaskTo_p_wxObject(void *x) {
20206 return (void *)((wxObject *) ((wxMask *) x));
20207}
20208static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
20209 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
20210}
20211static void *_p_wxMenuEventTo_p_wxObject(void *x) {
20212 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
20213}
20214static void *_p_wxPyAppTo_p_wxObject(void *x) {
20215 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
20216}
20217static void *_p_wxCloseEventTo_p_wxObject(void *x) {
20218 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
20219}
20220static void *_p_wxMouseEventTo_p_wxObject(void *x) {
20221 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
20222}
20223static void *_p_wxEraseEventTo_p_wxObject(void *x) {
20224 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
20225}
20226static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
20227 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
20228}
20229static void *_p_wxCommandEventTo_p_wxObject(void *x) {
20230 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
20231}
20232static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
20233 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
20234}
20235static void *_p_wxFocusEventTo_p_wxObject(void *x) {
20236 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
20237}
20238static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
20239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
20240}
20241static void *_p_wxFontTo_p_wxObject(void *x) {
20242 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
20243}
20244static void *_p_wxBrushTo_p_wxObject(void *x) {
20245 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
20246}
20247static void *_p_wxMetaFileTo_p_wxObject(void *x) {
20248 return (void *)((wxObject *) ((wxMetaFile *) x));
20249}
20250static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
20251 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
20252}
20253static void *_p_wxColourTo_p_wxObject(void *x) {
20254 return (void *)((wxObject *) ((wxColour *) x));
20255}
20256static void *_p_wxFontListTo_p_wxObject(void *x) {
20257 return (void *)((wxObject *) ((wxFontList *) x));
20258}
20259static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
20260 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
20261}
20262static void *_p_wxValidatorTo_p_wxObject(void *x) {
20263 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
20264}
20265static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
20266 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
20267}
20268static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
20269 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
20270}
20271static void *_p_wxScreenDCTo_p_wxDC(void *x) {
20272 return (void *)((wxDC *) ((wxScreenDC *) x));
20273}
20274static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
20275 return (void *)((wxDC *) ((wxMirrorDC *) x));
20276}
20277static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
20278 return (void *)((wxDC *) ((wxMemoryDC *) x));
20279}
20280static void *_p_wxWindowDCTo_p_wxDC(void *x) {
20281 return (void *)((wxDC *) ((wxWindowDC *) x));
20282}
20283static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
20284 return (void *)((wxDC *) ((wxMetaFileDC *) x));
20285}
20286static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
20287 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
20288}
20289static void *_p_wxClientDCTo_p_wxDC(void *x) {
20290 return (void *)((wxDC *) ((wxClientDC *) x));
20291}
20292static void *_p_wxPaintDCTo_p_wxDC(void *x) {
20293 return (void *)((wxDC *) ((wxPaintDC *) x));
20294}
20295static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
20296 return (void *)((wxDC *) ((wxPostScriptDC *) x));
20297}
20298static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
20299 return (void *)((wxDC *) ((wxPrinterDC *) x));
20300}
d55e5bfc
RD
20301static void *_p_wxIconTo_p_wxGDIObject(void *x) {
20302 return (void *)((wxGDIObject *) ((wxIcon *) x));
20303}
20304static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
20305 return (void *)((wxGDIObject *) ((wxPalette *) x));
20306}
20307static void *_p_wxPenTo_p_wxGDIObject(void *x) {
20308 return (void *)((wxGDIObject *) ((wxPen *) x));
20309}
20310static void *_p_wxFontTo_p_wxGDIObject(void *x) {
20311 return (void *)((wxGDIObject *) ((wxFont *) x));
20312}
20313static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
20314 return (void *)((wxGDIObject *) ((wxCursor *) x));
20315}
20316static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
20317 return (void *)((wxGDIObject *) ((wxBitmap *) x));
20318}
20319static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
20320 return (void *)((wxGDIObject *) ((wxRegion *) x));
20321}
20322static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
20323 return (void *)((wxGDIObject *) ((wxBrush *) x));
20324}
d55e5bfc
RD
20325static 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}};
20326static 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}};
20327static 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}};
20328static 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}};
20329static 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}};
20330static 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}};
20331static 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}};
20332static 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}};
20333static 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}};
20334static 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}};
20335static 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}};
20336static 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}};
20337static 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}};
20338static 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}};
20339static 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}};
20340static 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}};
20341static 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}};
20342static 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}};
20343static 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}};
20344static 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}};
20345static 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}};
20346static 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 20347static 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
20348static 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}};
20349static 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}};
20350static 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}};
20351static 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}};
20352static 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}};
20353static 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}};
20354static 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}};
20355static 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}};
20356static 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}};
20357static 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}};
20358static 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}};
20359static 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}};
20360static 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 20361static 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
20362static 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}};
20363static 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}};
20364static 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 20365static 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 20366static 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
20367static 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}};
20368static 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}};
20369static 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}};
20370static 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 20371static 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
20372static 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}};
20373static 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}};
20374static 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
20375static 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}};
20376static 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}};
20377static 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}};
20378static 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}};
20379static 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}};
20380
20381static swig_type_info *swig_types_initial[] = {
20382_swigt__p_wxPostScriptDC,
20383_swigt__p_wxBrush,
20384_swigt__p_wxColour,
20385_swigt__p_wxDC,
20386_swigt__p_wxMirrorDC,
20387_swigt__p_byte,
20388_swigt__p_wxPyFontEnumerator,
20389_swigt__p_char,
20390_swigt__p_wxIconLocation,
20391_swigt__p_wxImage,
20392_swigt__p_wxMetaFileDC,
20393_swigt__p_wxMask,
20394_swigt__p_wxSize,
20395_swigt__p_wxFont,
20396_swigt__p_wxWindow,
20397_swigt__p_double,
20398_swigt__p_wxMemoryDC,
20399_swigt__p_wxFontMapper,
20400_swigt__p_wxEffects,
20401_swigt__p_wxNativeEncodingInfo,
20402_swigt__p_wxPalette,
20403_swigt__p_wxBitmap,
20404_swigt__p_wxObject,
20405_swigt__p_wxRegionIterator,
20406_swigt__p_wxRect,
20407_swigt__p_wxString,
20408_swigt__p_wxPrinterDC,
20409_swigt__p_wxIconBundle,
20410_swigt__p_wxPoint,
20411_swigt__p_wxDash,
20412_swigt__p_wxScreenDC,
20413_swigt__p_wxCursor,
20414_swigt__p_wxClientDC,
20415_swigt__p_wxBufferedDC,
20416_swigt__p_wxImageList,
20417_swigt__p_unsigned_char,
20418_swigt__p_wxGDIObject,
20419_swigt__p_wxIcon,
20420_swigt__p_wxLocale,
20421_swigt__p_wxRegion,
d55e5bfc 20422_swigt__p_wxLanguageInfo,
c24da6d6 20423_swigt__p_wxConfigBase,
d55e5bfc
RD
20424_swigt__p_wxWindowDC,
20425_swigt__p_wxPrintData,
20426_swigt__p_wxBrushList,
20427_swigt__p_wxFontList,
20428_swigt__p_wxPen,
20429_swigt__p_wxBufferedPaintDC,
20430_swigt__p_wxPaintDC,
20431_swigt__p_wxPenList,
d55e5bfc
RD
20432_swigt__p_int,
20433_swigt__p_wxMetaFile,
20434_swigt__p_wxNativeFontInfo,
20435_swigt__p_wxEncodingConverter,
20436_swigt__p_wxColourDatabase,
204370
20438};
20439
20440
20441/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20442
20443static swig_const_info swig_const_table[] = {
c32bde28 20444{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
20445
20446#ifdef __cplusplus
20447}
20448#endif
20449
20450#ifdef __cplusplus
20451extern "C"
20452#endif
20453SWIGEXPORT(void) SWIG_init(void) {
20454 static PyObject *SWIG_globals = 0;
20455 static int typeinit = 0;
20456 PyObject *m, *d;
20457 int i;
20458 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20459 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20460 d = PyModule_GetDict(m);
20461
20462 if (!typeinit) {
20463 for (i = 0; swig_types_initial[i]; i++) {
20464 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20465 }
20466 typeinit = 1;
20467 }
20468 SWIG_InstallConstants(d,swig_const_table);
20469
c32bde28
RD
20470 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
20471 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
20472 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
20473 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
20474 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
20475 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
20476 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
20477 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
20478 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
20479 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
20480 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
20481 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
20482 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
20483 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
20484 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
20485 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
20486 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
20487 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
20488 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
20489 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
20490 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
20491 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
20492 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
20493 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
20494 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
20495 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
20496 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
20497 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
20498 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
20499 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
20500 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
20501 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
20502 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
20503 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
20504 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
20505 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
20506 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
20507 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
20508 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
20509 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
20510 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
20511 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
20512 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
20513 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
20514 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
20515 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
20516 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
20517 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
20518 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
20519 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
20520 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
20521 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
20522 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
20523 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
20524 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
20525 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
20526 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
20527 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
20528 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
20529 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
20530 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
20531 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
20532 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
20533 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
20534 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
20535 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
20536 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
20537 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
20538 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
20539 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
20540 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
20541 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
20542 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
20543 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
20544 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
20545 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
20546 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
20547 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
20548 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
20549 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
20550 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
20551 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
20552 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
20553 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
20554 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
20555 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
20556 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
20557 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
20558 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
20559 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
20560 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
20561 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
20562 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
20563 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
20564 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
20565 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
20566 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
20567 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
20568 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
20569 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
20570 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
20571 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
20572 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
20573 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
20574 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
20575 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
20576 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
20577 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
20578 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
20579 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
20580 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
20581 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
20582 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
20583 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
20584 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
20585 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
20586 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
20587 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
20588 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
20589 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
20590 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
20591 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
20592 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
20593 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
20594 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
20595 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
20596 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
d55e5bfc
RD
20597
20598 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20599
c32bde28
RD
20600 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
20601 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
20602 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
20603 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
20604 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
20605 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
20606 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
20607 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
20608 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
20609 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
20610 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
20611 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
20612 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
20613 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
20614 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
20615 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
20616 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
20617 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
20618 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
20619 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20620 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
20621 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
20622 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
20623 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
20624 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
20625 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
20626 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
20627 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
20628 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
20629 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
20630 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
20631 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
20632 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
20633 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
20634 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
20635 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
20636 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
20637 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
20638 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
20639 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
20640 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
20641 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
20642 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
20643 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
20644 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20645 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20646 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
20647 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
20648 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
20649 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
20650 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
20651 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
20652 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
20653 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
20654 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
20655 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
20656 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
20657 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
20658 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
20659 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20660 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
20661 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20662 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
20663 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20664 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
20665 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
20666 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
20667 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20668 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20669 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20670 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20671 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20672 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
20673 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
20674 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
20675 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
20676 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
20677 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
20678 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
20679 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
20680 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
20681 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20682 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
20683 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
20684 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
20685 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
20686 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
20687 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
20688 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20689 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
20690 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20691 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20692 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
20693 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
20694 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
20695 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
20696 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
20697 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
20698 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
20699 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
20700 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
20701 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
20702 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
20703 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
20704 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
20705 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
20706 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
20707 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
20708 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
20709 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
20710 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
20711 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
20712 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
20713 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
20714 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
20715 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
20716 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
20717 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
20718 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
20719 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
20720 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
20721 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
20722 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
20723 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
20724 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
20725 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
20726 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
20727 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
20728 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
20729 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
20730 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
20731 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
20732 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20733 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
20734 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
20735 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
20736 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
20737 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
20738 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
20739 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
20740 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
20741 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
20742 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
20743 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20744 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20745 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
20746 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
20747 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
20748 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
20749 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
20750 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
20751 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20752 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
20753 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
20754 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
20755 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
20756 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
20757 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20758 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
20759 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
20760 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
20761 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
20762 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
20763 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20764 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
20765 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
20766 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
20767 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
20768 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
20769 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
20770 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
20771 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
20772 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
20773 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
20774 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
20775 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
20776 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
20777 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
20778 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
20779 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
20780 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20781 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20782 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
20783 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20784 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
20785 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
20786 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
20787 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
20788 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
20789 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
20790 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
20791 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
20792 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20793 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
20794 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
20795 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
20796 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
20797 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
20798 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
20799 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
20800 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
20801 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
20802 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
20803 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
20804 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
20805 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
20806 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
20807 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
20808 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
20809 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
20810 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
20811 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
20812 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
20813 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
20814 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
20815 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
20816 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
20817 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
20818 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
20819 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
20820 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
20821 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
20822 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
20823 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
20824 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
20825 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
20826 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
20827 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
20828 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
20829 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
20830 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
20831 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
20832 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
20833 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
20834 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
20835 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
20836 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
20837 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
20838 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
20839 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
20840 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
20841 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
20842 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
20843 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
20844 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20845 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20846 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20847 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20848 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20849 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20850 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20851 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20852 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
d55e5bfc
RD
20853 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20854 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20855 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20856 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20857 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20858 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20859 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20860 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20861 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20862 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20863 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20864 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20865 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20866 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20867 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20868 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20869 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20870 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20871 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20872 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20873 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20874 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20875 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20876 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20877 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20878 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20879 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20880 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20881 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20882 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20883 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20884 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20885 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20886 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20887 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20888 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20889 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20890 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20891 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20892 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20893 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20894 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20895 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20896 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20897 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20898 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20899 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20900
20901 // Work around a chicken/egg problem in drawlist.cpp
20902 wxPyDrawList_SetAPIPtr();
20903
20904}
20905