]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
wxPageSetupDialog no longer derives from wxDialog
[wxWidgets.git] / wxPython / src / mac / _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
c370783e 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 *);
c370783e 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
c370783e 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
c370783e 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]
d6c14a4c
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]
d6c14a4c
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
c370783e
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
c370783e
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
c370783e
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
c370783e
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)
c370783e
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
c370783e
RD
312/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
313#define SWIG_From_signed_SS_char PyInt_FromLong
314/*@@*/
315/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
316#define SWIG_From_unsigned_SS_char PyInt_FromLong
317/*@@*/
318/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
319#define SWIG_From_short PyInt_FromLong
320/*@@*/
321/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
322#define SWIG_From_unsigned_SS_short PyInt_FromLong
323/*@@*/
324/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
325#define SWIG_From_int PyInt_FromLong
326/*@@*/
327/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
328#define SWIG_From_long PyInt_FromLong
329/*@@*/
330/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
331#define SWIG_From_float PyFloat_FromDouble
332/*@@*/
333/*@/opt/swig/share/swig/1.3.22/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
c370783e
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{
c370783e
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
c370783e 370// See my_fragments.i
d55e5bfc 371SWIGSTATICINLINE(int)
c370783e 372SWIG_AsVal_long(PyObject* obj, long* val)
d55e5bfc 373{
c370783e
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;
c370783e
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 {
c370783e 402 PyErr_Clear();
d55e5bfc 403 }
c370783e
RD
404 if (val) {
405 PyErr_SetString(PyExc_TypeError, "an int is expected");
406 }
407 return 0;
d55e5bfc 408}
c370783e
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
c370783e
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
c370783e
RD
442SWIGSTATICINLINE(bool)
443SWIG_As_bool(PyObject* obj)
d55e5bfc 444{
c370783e
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 }
c370783e 454 return v;
d55e5bfc
RD
455}
456
c370783e
RD
457
458SWIGSTATICINLINE(int)
459SWIG_Check_bool(PyObject* obj)
460{
461 return SWIG_AsVal_bool(obj, (bool*)0);
462}
d55e5bfc 463
c370783e
RD
464
465// See my_fragments.i
466SWIGSTATICINLINE(int)
467SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
d55e5bfc 468{
c370783e
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 }
c370783e
RD
474 else if (val)
475 *val = (unsigned long)v;
476 return 1;
d55e5bfc
RD
477}
478
479
c370783e
RD
480SWIGSTATICINLINE(int)
481 SWIG_CheckUnsignedLongInRange(unsigned long value,
482 unsigned long max_value,
483 const char *errmsg)
d55e5bfc 484{
c370783e
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 }
c370783e 491 return 0;
d55e5bfc 492 }
c370783e
RD
493 return 1;
494 }
d55e5bfc
RD
495
496
c370783e
RD
497SWIGSTATICINLINE(int)
498 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
d55e5bfc 499{
c370783e
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
c370783e
RD
519SWIGSTATICINLINE(unsigned char)
520SWIG_As_unsigned_SS_char(PyObject* obj)
d55e5bfc 521{
c370783e
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 }
c370783e 531 return v;
d55e5bfc
RD
532}
533
c370783e 534
d55e5bfc 535SWIGSTATICINLINE(int)
c370783e 536SWIG_Check_unsigned_SS_char(PyObject* obj)
d55e5bfc 537{
c370783e
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 }
c370783e
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* )
c370783e 584 SWIG_From_unsigned_SS_long(unsigned long value)
d55e5bfc
RD
585{
586 return (value > LONG_MAX) ?
587 PyLong_FromUnsignedLong(value)
c370783e 588 : PyInt_FromLong(swig_numeric_cast(value,long));
d55e5bfc
RD
589}
590
591
c370783e
RD
592SWIGSTATICINLINE(int)
593SWIG_As_int(PyObject* obj)
d55e5bfc 594{
c370783e
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 }
c370783e 604 return v;
d55e5bfc
RD
605}
606
c370783e 607
d55e5bfc 608SWIGSTATICINLINE(int)
c370783e 609SWIG_Check_int(PyObject* obj)
d55e5bfc 610{
c370783e 611 return SWIG_AsVal_int(obj, (int*)0);
d55e5bfc
RD
612}
613
614
c370783e 615 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
d55e5bfc
RD
616 PyObject* o2;
617 PyObject* o3;
c370783e 618
d55e5bfc
RD
619 if (!target) {
620 target = o;
621 } else if (target == Py_None) {
622 Py_DECREF(Py_None);
623 target = o;
629e65c2
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;
629e65c2 639 }
d55e5bfc 640
c370783e 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);
68e533f8
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 }
d6c14a4c
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 }
b411df4a
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
c370783e
RD
677SWIGSTATICINLINE(int)
678 SWIG_AsVal_short(PyObject *obj, short *val)
d55e5bfc 679{
c370783e
RD
680 const char* errmsg = val ? "short" : 0;
681 long v;
682 if (SWIG_AsVal_long(obj, &v)) {
683 if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) {
684 if (val) *val = swig_numeric_cast(v, short);
685 return 1;
686 } else {
687 return 0;
688 }
689 } else {
690 PyErr_Clear();
691 }
692 if (val) {
693 PyErr_SetString(PyExc_TypeError, "a short is expected");
694 }
695 return 0;
d55e5bfc
RD
696}
697
698
c370783e
RD
699SWIGSTATICINLINE(short)
700SWIG_As_short(PyObject* obj)
d55e5bfc 701{
c370783e
RD
702 short v;
703 if (!SWIG_AsVal_short(obj, &v)) {
704 /*
705 this is needed to make valgrind/purify happier. the other
706 solution is throw an exception, but since this code should work
707 with plain C ....
708 */
709 memset((void*)&v, 0, sizeof(short));
d55e5bfc 710 }
c370783e
RD
711 return v;
712}
713
714
715SWIGSTATICINLINE(int)
716SWIG_Check_short(PyObject* obj)
717{
718 return SWIG_AsVal_short(obj, (short*)0);
d55e5bfc
RD
719}
720
721
722#include <wx/image.h>
723
724 static char** ConvertListOfStrings(PyObject* listOfStrings) {
725 char** cArray = NULL;
726 int count;
727
728 if (!PyList_Check(listOfStrings)) {
729 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
730 return NULL;
731 }
732 count = PyList_Size(listOfStrings);
733 cArray = new char*[count];
734
735 for(int x=0; x<count; x++) {
736 // TODO: Need some validation and error checking here
737 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
738 }
739 return cArray;
740 }
741
742
743wxBitmap *new_wxBitmap(PyObject *listOfStrings){
744 char** cArray = NULL;
745 wxBitmap* bmp;
746
747 cArray = ConvertListOfStrings(listOfStrings);
748 if (! cArray)
749 return NULL;
750 bmp = new wxBitmap(cArray);
751 delete [] cArray;
752 return bmp;
753 }
754wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
755 char* buf;
756 int length;
757 PyString_AsStringAndSize(bits, &buf, &length);
758 return new wxBitmap(buf, width, height, depth);
759 }
d55e5bfc
RD
760wxSize wxBitmap_GetSize(wxBitmap *self){
761 wxSize size(self->GetWidth(), self->GetHeight());
762 return size;
763 }
764void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
765 wxMask *mask = new wxMask(*self, colour);
766 self->SetMask(mask);
767 }
768void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
769 self->SetWidth(size.x);
770 self->SetHeight(size.y);
771 }
b411df4a
RD
772bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
773bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
d55e5bfc
RD
774wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
775 if ( !colour.Ok() )
776 return new wxMask(bitmap, *wxBLACK);
777 else
778 return new wxMask(bitmap, colour);
779 }
780
781#include <wx/iconbndl.h>
782
783wxIcon *new_wxIcon(wxBitmap const &bmp){
784 wxIcon* icon = new wxIcon();
785 icon->CopyFromBitmap(bmp);
786 return icon;
787 }
788wxIcon *new_wxIcon(PyObject *listOfStrings){
789 char** cArray = NULL;
790 wxIcon* icon;
791
792 cArray = ConvertListOfStrings(listOfStrings);
793 if (! cArray)
794 return NULL;
795 icon = new wxIcon(cArray);
796 delete [] cArray;
797 return icon;
798 }
799wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
800
801
802
803 return new wxIconLocation(*filename);
804
805 }
806void wxIconLocation_SetIndex(wxIconLocation *self,int num){
807
808
809
810 // do nothing
811
812 }
813int wxIconLocation_GetIndex(wxIconLocation *self){
814
815
816
817 return -1;
818
819 }
820
c370783e
RD
821SWIGSTATICINLINE(long)
822SWIG_As_long(PyObject* obj)
d55e5bfc 823{
c370783e
RD
824 long v;
825 if (!SWIG_AsVal_long(obj, &v)) {
826 /*
827 this is needed to make valgrind/purify happier. the other
828 solution is throw an exception, but since this code should work
829 with plain C ....
830 */
831 memset((void*)&v, 0, sizeof(long));
d55e5bfc 832 }
c370783e
RD
833 return v;
834}
835
836
837SWIGSTATICINLINE(int)
838SWIG_Check_long(PyObject* obj)
839{
840 return SWIG_AsVal_long(obj, (long*)0);
d55e5bfc
RD
841}
842
843wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
844#ifdef __WXGTK__
b411df4a 845 wxCHECK_MSG(false, NULL,
d55e5bfc
RD
846 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
847#else
848 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
849#endif
850 }
851
852
d55e5bfc
RD
853void wxRegionIterator_Next(wxRegionIterator *self){
854 (*self) ++;
855 }
856bool wxRegionIterator___nonzero__(wxRegionIterator *self){
857 return self->operator bool();
858 }
859
860#include <wx/fontutil.h>
861#include <wx/fontmap.h>
862#include <wx/fontenum.h>
863
864wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
865 return self->ToString();
866 }
867
868 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
869 static wxNativeEncodingInfo info;
870 if ( wxGetNativeFontEncoding(encoding, &info) )
871 return &info;
872 else
873 return NULL;
874 }
875
876PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
877 wxFontEncoding alt_enc;
878 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
879 return PyInt_FromLong(alt_enc);
880 else {
881 Py_INCREF(Py_None);
882 return Py_None;
883 }
884 }
885wxFont *new_wxFont(wxString const &info){
886 wxNativeFontInfo nfi;
887 nfi.FromString(info);
888 return new wxFont(nfi);
889 }
890wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
891 return wxFont::New(pointSize, family, flags, face, encoding);
892 }
5e483524
RD
893wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){
894 return wxFontBase::New(pixelSize, family,
895 style, weight, underlined,
896 face, encoding);
897 }
b411df4a
RD
898bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
899bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc
RD
900
901class wxPyFontEnumerator : public wxFontEnumerator {
902public:
903 wxPyFontEnumerator() {}
904 ~wxPyFontEnumerator() {}
905
906 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
907 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
908
909 PYPRIVATE;
910};
911
912IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
913IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
914
915
916PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
917 wxArrayString* arr = self->GetEncodings();
92379a03
RD
918 if (arr)
919 return wxArrayString2PyList_helper(*arr);
920 else
921 return PyList_New(0);
d55e5bfc
RD
922 }
923PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
924 wxArrayString* arr = self->GetFacenames();
92379a03
RD
925 if (arr)
926 return wxArrayString2PyList_helper(*arr);
927 else
928 return PyList_New(0);
d55e5bfc
RD
929 }
930
070c48b4 931#include <locale.h>
d55e5bfc 932
15817c7e 933wxLocale *new_wxLocale(int language,int flags){
070c48b4 934 wxLocale* loc;
15817c7e 935 if (language == -1)
070c48b4 936 loc = new wxLocale();
15817c7e 937 else
070c48b4
RD
938 loc = new wxLocale(language, flags);
939 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
940 // for the floating point conversions and such to work right.
941#if PY_VERSION_HEX < 0x02040000
942 setlocale(LC_NUMERIC, "C");
943#endif
944 return loc;
945 }
946bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){
947 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
948 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
949 // for the floating point conversions and such to work right.
950#if PY_VERSION_HEX < 0x02040000
951 setlocale(LC_NUMERIC, "C");
952#endif
953 return rc;
954 }
955bool wxLocale_Init2(wxLocale *self,int language,int flags){
956 bool rc = self->Init(language, flags);
957 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
958 // for the floating point conversions and such to work right.
959#if PY_VERSION_HEX < 0x02040000
960 setlocale(LC_NUMERIC, "C");
961#endif
962 return rc;
15817c7e 963 }
d55e5bfc
RD
964
965#include "wx/wxPython/pydrawxxx.h"
966
d6c14a4c 967wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d55e5bfc
RD
968 wxColour col;
969 self->GetPixel(x, y, &col);
970 return col;
971 }
d6c14a4c 972wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d55e5bfc
RD
973 wxColour col;
974 self->GetPixel(pt, &col);
975 return col;
976 }
977
c370783e
RD
978// See my_fragments.i
979SWIGSTATICINLINE(int)
980SWIG_AsVal_double(PyObject *obj, double* val)
d55e5bfc 981{
c370783e
RD
982 if (PyNumber_Check(obj)) {
983 if (val) *val = PyFloat_AsDouble(obj);
984 return 1;
985 }
d55e5bfc
RD
986 else {
987 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
988 obj->ob_type->tp_name);
989 PyErr_SetObject(PyExc_TypeError, errmsg);
990 Py_DECREF(errmsg);
d55e5bfc 991 }
c370783e 992 return 0;
d55e5bfc
RD
993}
994
995
c370783e
RD
996SWIGSTATICINLINE(double)
997SWIG_As_double(PyObject* obj)
d55e5bfc 998{
c370783e
RD
999 double v;
1000 if (!SWIG_AsVal_double(obj, &v)) {
1001 /*
1002 this is needed to make valgrind/purify happier. the other
1003 solution is throw an exception, but since this code should work
1004 with plain C ....
1005 */
1006 memset((void*)&v, 0, sizeof(double));
d55e5bfc 1007 }
c370783e
RD
1008 return v;
1009}
1010
1011
1012SWIGSTATICINLINE(int)
1013SWIG_Check_double(PyObject* obj)
1014{
1015 return SWIG_AsVal_double(obj, (double*)0);
d55e5bfc
RD
1016}
1017
1018wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
1019 wxRect rv;
1020 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
1021 return rv;
1022 }
c370783e 1023
d55e5bfc
RD
1024wxRect wxDC_GetClippingRect(wxDC *self){
1025 wxRect rect;
1026 self->GetClippingBox(rect);
1027 return rect;
1028 }
1029wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
1030 wxArrayInt widths;
1031 self->GetPartialTextExtents(text, widths);
1032 return widths;
1033 }
c370783e 1034
d6c14a4c
RD
1035void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
1036 self->SetLogicalOrigin(point.x, point.y);
1037 }
1038void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
1039 self->SetDeviceOrigin(point.x, point.y);
1040 }
1041void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
1042 self->CalcBoundingBox(point.x, point.y);
1043 }
d55e5bfc
RD
1044PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1045 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
1046 }
1047PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1048 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
1049 }
1050PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1051 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
1052 }
1053PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1054 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
1055 }
1056PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1057 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
1058 }
1059PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
1060 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
1061 }
1062
1063static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
1064 *x1 = dc->MinX();
1065 *y1 = dc->MinY();
1066 *x2 = dc->MaxX();
1067 *y2 = dc->MaxY();
1068}
1069
1070
1071#include <wx/dcbuffer.h>
1072
1073
1074#include <wx/dcps.h>
1075
1076
1077#include <wx/metafile.h>
1078
1079
1080
1081void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1082 self->AddColour(name, wxColour(red, green, blue));
1083 }
1084
1085#include <wx/effects.h>
1086
1087#ifdef __cplusplus
1088extern "C" {
1089#endif
c370783e 1090static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1091 PyObject *resultobj;
1092 wxGDIObject *result;
1093 char *kwnames[] = {
1094 NULL
1095 };
1096
1097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1098 {
0439c23b 1099 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1100 PyThreadState* __tstate = wxPyBeginAllowThreads();
1101 result = (wxGDIObject *)new wxGDIObject();
1102
1103 wxPyEndAllowThreads(__tstate);
110da5b0 1104 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1105 }
1106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1107 return resultobj;
1108 fail:
1109 return NULL;
1110}
1111
1112
c370783e 1113static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1114 PyObject *resultobj;
1115 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1116 PyObject * obj0 = 0 ;
1117 char *kwnames[] = {
1118 (char *) "self", NULL
1119 };
1120
1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1124 {
1125 PyThreadState* __tstate = wxPyBeginAllowThreads();
1126 delete arg1;
1127
1128 wxPyEndAllowThreads(__tstate);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 }
1131 Py_INCREF(Py_None); resultobj = Py_None;
1132 return resultobj;
1133 fail:
1134 return NULL;
1135}
1136
1137
c370783e 1138static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1139 PyObject *resultobj;
1140 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1141 bool result;
1142 PyObject * obj0 = 0 ;
1143 char *kwnames[] = {
1144 (char *) "self", NULL
1145 };
1146
1147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 result = (bool)(arg1)->GetVisible();
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
1157 {
1158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1159 }
1160 return resultobj;
1161 fail:
1162 return NULL;
1163}
1164
1165
c370783e 1166static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1167 PyObject *resultobj;
1168 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1169 bool arg2 ;
1170 PyObject * obj0 = 0 ;
1171 PyObject * obj1 = 0 ;
1172 char *kwnames[] = {
1173 (char *) "self",(char *) "visible", NULL
1174 };
1175
1176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 1179 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
1180 if (PyErr_Occurred()) SWIG_fail;
1181 {
1182 PyThreadState* __tstate = wxPyBeginAllowThreads();
1183 (arg1)->SetVisible(arg2);
1184
1185 wxPyEndAllowThreads(__tstate);
1186 if (PyErr_Occurred()) SWIG_fail;
1187 }
1188 Py_INCREF(Py_None); resultobj = Py_None;
1189 return resultobj;
1190 fail:
1191 return NULL;
1192}
1193
1194
c370783e 1195static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1196 PyObject *resultobj;
1197 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1198 bool result;
1199 PyObject * obj0 = 0 ;
1200 char *kwnames[] = {
1201 (char *) "self", NULL
1202 };
1203
1204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1207 {
1208 PyThreadState* __tstate = wxPyBeginAllowThreads();
1209 result = (bool)(arg1)->IsNull();
1210
1211 wxPyEndAllowThreads(__tstate);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 {
1215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1216 }
1217 return resultobj;
1218 fail:
1219 return NULL;
1220}
1221
1222
c370783e 1223static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1224 PyObject *obj;
1225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1226 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1227 Py_INCREF(obj);
1228 return Py_BuildValue((char *)"");
1229}
c370783e 1230static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 1231 PyObject *resultobj;
15817c7e
RD
1232 byte arg1 = (byte) 0 ;
1233 byte arg2 = (byte) 0 ;
1234 byte arg3 = (byte) 0 ;
d55e5bfc
RD
1235 wxColour *result;
1236 PyObject * obj0 = 0 ;
1237 PyObject * obj1 = 0 ;
1238 PyObject * obj2 = 0 ;
1239 char *kwnames[] = {
1240 (char *) "red",(char *) "green",(char *) "blue", NULL
1241 };
1242
1243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1244 if (obj0) {
c370783e 1245 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
d55e5bfc
RD
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
1248 if (obj1) {
c370783e 1249 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc
RD
1250 if (PyErr_Occurred()) SWIG_fail;
1251 }
1252 if (obj2) {
c370783e 1253 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc
RD
1254 if (PyErr_Occurred()) SWIG_fail;
1255 }
1256 {
1257 PyThreadState* __tstate = wxPyBeginAllowThreads();
1258 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1259
1260 wxPyEndAllowThreads(__tstate);
1261 if (PyErr_Occurred()) SWIG_fail;
1262 }
1263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1264 return resultobj;
1265 fail:
1266 return NULL;
1267}
1268
1269
c370783e 1270static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1271 PyObject *resultobj;
1272 wxString *arg1 = 0 ;
1273 wxColour *result;
b411df4a 1274 bool temp1 = false ;
d55e5bfc
RD
1275 PyObject * obj0 = 0 ;
1276 char *kwnames[] = {
1277 (char *) "colorName", NULL
1278 };
1279
1280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1281 {
1282 arg1 = wxString_in_helper(obj0);
1283 if (arg1 == NULL) SWIG_fail;
b411df4a 1284 temp1 = true;
d55e5bfc
RD
1285 }
1286 {
eab6e45e 1287 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1288 PyThreadState* __tstate = wxPyBeginAllowThreads();
1289 result = (wxColour *)new wxColour((wxString const &)*arg1);
1290
1291 wxPyEndAllowThreads(__tstate);
1292 if (PyErr_Occurred()) SWIG_fail;
1293 }
1294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1295 {
1296 if (temp1)
1297 delete arg1;
1298 }
1299 return resultobj;
1300 fail:
1301 {
1302 if (temp1)
1303 delete arg1;
1304 }
1305 return NULL;
1306}
1307
1308
c370783e 1309static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1310 PyObject *resultobj;
1311 unsigned long arg1 ;
1312 wxColour *result;
1313 PyObject * obj0 = 0 ;
1314 char *kwnames[] = {
1315 (char *) "colRGB", NULL
1316 };
1317
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
c370783e 1319 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
1320 if (PyErr_Occurred()) SWIG_fail;
1321 {
1322 PyThreadState* __tstate = wxPyBeginAllowThreads();
1323 result = (wxColour *)new wxColour(arg1);
1324
1325 wxPyEndAllowThreads(__tstate);
1326 if (PyErr_Occurred()) SWIG_fail;
1327 }
1328 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1329 return resultobj;
1330 fail:
1331 return NULL;
1332}
1333
1334
c370783e 1335static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1336 PyObject *resultobj;
1337 wxColour *arg1 = (wxColour *) 0 ;
1338 PyObject * obj0 = 0 ;
1339 char *kwnames[] = {
1340 (char *) "self", NULL
1341 };
1342
1343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1346 {
1347 PyThreadState* __tstate = wxPyBeginAllowThreads();
1348 delete arg1;
1349
1350 wxPyEndAllowThreads(__tstate);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 Py_INCREF(Py_None); resultobj = Py_None;
1354 return resultobj;
1355 fail:
1356 return NULL;
1357}
1358
1359
c370783e 1360static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1361 PyObject *resultobj;
1362 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1363 byte result;
d55e5bfc
RD
1364 PyObject * obj0 = 0 ;
1365 char *kwnames[] = {
1366 (char *) "self", NULL
1367 };
1368
1369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1374 result = (byte)(arg1)->Red();
d55e5bfc
RD
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) SWIG_fail;
1378 }
c370783e 1379 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1380 return resultobj;
1381 fail:
1382 return NULL;
1383}
1384
1385
c370783e 1386static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1387 PyObject *resultobj;
1388 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1389 byte result;
d55e5bfc
RD
1390 PyObject * obj0 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "self", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1398 {
1399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1400 result = (byte)(arg1)->Green();
d55e5bfc
RD
1401
1402 wxPyEndAllowThreads(__tstate);
1403 if (PyErr_Occurred()) SWIG_fail;
1404 }
c370783e 1405 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1406 return resultobj;
1407 fail:
1408 return NULL;
1409}
1410
1411
c370783e 1412static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1413 PyObject *resultobj;
1414 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1415 byte result;
d55e5bfc
RD
1416 PyObject * obj0 = 0 ;
1417 char *kwnames[] = {
1418 (char *) "self", NULL
1419 };
1420
1421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1424 {
1425 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1426 result = (byte)(arg1)->Blue();
d55e5bfc
RD
1427
1428 wxPyEndAllowThreads(__tstate);
1429 if (PyErr_Occurred()) SWIG_fail;
1430 }
c370783e 1431 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
1432 return resultobj;
1433 fail:
1434 return NULL;
1435}
1436
1437
c370783e 1438static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1439 PyObject *resultobj;
1440 wxColour *arg1 = (wxColour *) 0 ;
1441 bool result;
1442 PyObject * obj0 = 0 ;
1443 char *kwnames[] = {
1444 (char *) "self", NULL
1445 };
1446
1447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1450 {
1451 PyThreadState* __tstate = wxPyBeginAllowThreads();
1452 result = (bool)(arg1)->Ok();
1453
1454 wxPyEndAllowThreads(__tstate);
1455 if (PyErr_Occurred()) SWIG_fail;
1456 }
1457 {
1458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1459 }
1460 return resultobj;
1461 fail:
1462 return NULL;
1463}
1464
1465
c370783e 1466static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1467 PyObject *resultobj;
1468 wxColour *arg1 = (wxColour *) 0 ;
15817c7e
RD
1469 byte arg2 ;
1470 byte arg3 ;
1471 byte arg4 ;
d55e5bfc
RD
1472 PyObject * obj0 = 0 ;
1473 PyObject * obj1 = 0 ;
1474 PyObject * obj2 = 0 ;
1475 PyObject * obj3 = 0 ;
1476 char *kwnames[] = {
1477 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1478 };
1479
1480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 1483 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 1484 if (PyErr_Occurred()) SWIG_fail;
c370783e 1485 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 1486 if (PyErr_Occurred()) SWIG_fail;
c370783e 1487 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
1488 if (PyErr_Occurred()) SWIG_fail;
1489 {
1490 PyThreadState* __tstate = wxPyBeginAllowThreads();
1491 (arg1)->Set(arg2,arg3,arg4);
1492
1493 wxPyEndAllowThreads(__tstate);
1494 if (PyErr_Occurred()) SWIG_fail;
1495 }
1496 Py_INCREF(Py_None); resultobj = Py_None;
1497 return resultobj;
1498 fail:
1499 return NULL;
1500}
1501
1502
c370783e 1503static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1504 PyObject *resultobj;
1505 wxColour *arg1 = (wxColour *) 0 ;
1506 unsigned long arg2 ;
1507 PyObject * obj0 = 0 ;
1508 PyObject * obj1 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "self",(char *) "colRGB", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 1516 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
1517 if (PyErr_Occurred()) SWIG_fail;
1518 {
1519 PyThreadState* __tstate = wxPyBeginAllowThreads();
1520 (arg1)->Set(arg2);
1521
1522 wxPyEndAllowThreads(__tstate);
1523 if (PyErr_Occurred()) SWIG_fail;
1524 }
1525 Py_INCREF(Py_None); resultobj = Py_None;
1526 return resultobj;
1527 fail:
1528 return NULL;
1529}
1530
1531
c370783e 1532static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1533 PyObject *resultobj;
1534 wxColour *arg1 = (wxColour *) 0 ;
1535 wxString *arg2 = 0 ;
b411df4a 1536 bool temp2 = false ;
d55e5bfc
RD
1537 PyObject * obj0 = 0 ;
1538 PyObject * obj1 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "self",(char *) "colourName", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1546 {
1547 arg2 = wxString_in_helper(obj1);
1548 if (arg2 == NULL) SWIG_fail;
b411df4a 1549 temp2 = true;
d55e5bfc
RD
1550 }
1551 {
1552 PyThreadState* __tstate = wxPyBeginAllowThreads();
1553 (arg1)->InitFromName((wxString const &)*arg2);
1554
1555 wxPyEndAllowThreads(__tstate);
1556 if (PyErr_Occurred()) SWIG_fail;
1557 }
1558 Py_INCREF(Py_None); resultobj = Py_None;
1559 {
1560 if (temp2)
1561 delete arg2;
1562 }
1563 return resultobj;
1564 fail:
1565 {
1566 if (temp2)
1567 delete arg2;
1568 }
1569 return NULL;
1570}
1571
1572
c370783e 1573static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1574 PyObject *resultobj;
1575 wxColour *arg1 = (wxColour *) 0 ;
1576 long result;
1577 PyObject * obj0 = 0 ;
1578 char *kwnames[] = {
1579 (char *) "self", NULL
1580 };
1581
1582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 result = (long)((wxColour const *)arg1)->GetPixel();
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
c370783e 1592 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
1593 return resultobj;
1594 fail:
1595 return NULL;
1596}
1597
1598
c370783e 1599static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1600 PyObject *resultobj;
1601 wxColour *arg1 = (wxColour *) 0 ;
1602 wxColour *arg2 = 0 ;
1603 bool result;
1604 wxColour temp2 ;
1605 PyObject * obj0 = 0 ;
1606 PyObject * obj1 = 0 ;
1607 char *kwnames[] = {
1608 (char *) "self",(char *) "colour", NULL
1609 };
1610
1611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1614 {
1615 arg2 = &temp2;
1616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1617 }
1618 {
1619 PyThreadState* __tstate = wxPyBeginAllowThreads();
1620 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1621
1622 wxPyEndAllowThreads(__tstate);
1623 if (PyErr_Occurred()) SWIG_fail;
1624 }
1625 {
1626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1627 }
1628 return resultobj;
1629 fail:
1630 return NULL;
1631}
1632
1633
c370783e 1634static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1635 PyObject *resultobj;
1636 wxColour *arg1 = (wxColour *) 0 ;
1637 wxColour *arg2 = 0 ;
1638 bool result;
1639 wxColour temp2 ;
1640 PyObject * obj0 = 0 ;
1641 PyObject * obj1 = 0 ;
1642 char *kwnames[] = {
1643 (char *) "self",(char *) "colour", NULL
1644 };
1645
1646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1649 {
1650 arg2 = &temp2;
1651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1652 }
1653 {
1654 PyThreadState* __tstate = wxPyBeginAllowThreads();
1655 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1656
1657 wxPyEndAllowThreads(__tstate);
1658 if (PyErr_Occurred()) SWIG_fail;
1659 }
1660 {
1661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1662 }
1663 return resultobj;
1664 fail:
1665 return NULL;
1666}
1667
1668
c370783e 1669static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1670 PyObject *resultobj;
1671 wxColour *arg1 = (wxColour *) 0 ;
1672 PyObject *result;
1673 PyObject * obj0 = 0 ;
1674 char *kwnames[] = {
1675 (char *) "self", NULL
1676 };
1677
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 result = (PyObject *)wxColour_Get(arg1);
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) SWIG_fail;
1687 }
1688 resultobj = result;
1689 return resultobj;
1690 fail:
1691 return NULL;
1692}
1693
1694
c370783e 1695static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1696 PyObject *resultobj;
1697 wxColour *arg1 = (wxColour *) 0 ;
1698 unsigned long result;
1699 PyObject * obj0 = 0 ;
1700 char *kwnames[] = {
1701 (char *) "self", NULL
1702 };
1703
1704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1707 {
1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
1709 result = (unsigned long)wxColour_GetRGB(arg1);
1710
1711 wxPyEndAllowThreads(__tstate);
1712 if (PyErr_Occurred()) SWIG_fail;
1713 }
c370783e 1714 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
1715 return resultobj;
1716 fail:
1717 return NULL;
1718}
1719
1720
c370783e 1721static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1722 PyObject *obj;
1723 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1724 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1725 Py_INCREF(obj);
1726 return Py_BuildValue((char *)"");
1727}
c370783e 1728static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1729 PyObject *resultobj;
1730 int arg1 ;
1731 unsigned char *arg2 = (unsigned char *) 0 ;
1732 unsigned char *arg3 = (unsigned char *) 0 ;
1733 unsigned char *arg4 = (unsigned char *) 0 ;
1734 wxPalette *result;
1735 PyObject * obj0 = 0 ;
1736 PyObject * obj1 = 0 ;
1737 PyObject * obj2 = 0 ;
1738 PyObject * obj3 = 0 ;
1739 char *kwnames[] = {
1740 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1741 };
1742
1743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c370783e 1744 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1745 if (PyErr_Occurred()) SWIG_fail;
1746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1748 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1750 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1752 {
0439c23b 1753 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1754 PyThreadState* __tstate = wxPyBeginAllowThreads();
1755 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1756
1757 wxPyEndAllowThreads(__tstate);
110da5b0 1758 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1759 }
1760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1761 return resultobj;
1762 fail:
1763 return NULL;
1764}
1765
1766
c370783e 1767static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1768 PyObject *resultobj;
1769 wxPalette *arg1 = (wxPalette *) 0 ;
1770 PyObject * obj0 = 0 ;
1771 char *kwnames[] = {
1772 (char *) "self", NULL
1773 };
1774
1775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1778 {
1779 PyThreadState* __tstate = wxPyBeginAllowThreads();
1780 delete arg1;
1781
1782 wxPyEndAllowThreads(__tstate);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 }
1785 Py_INCREF(Py_None); resultobj = Py_None;
1786 return resultobj;
1787 fail:
1788 return NULL;
1789}
1790
1791
c370783e 1792static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1793 PyObject *resultobj;
1794 wxPalette *arg1 = (wxPalette *) 0 ;
1795 byte arg2 ;
1796 byte arg3 ;
1797 byte arg4 ;
1798 int result;
1799 PyObject * obj0 = 0 ;
1800 PyObject * obj1 = 0 ;
1801 PyObject * obj2 = 0 ;
1802 PyObject * obj3 = 0 ;
1803 char *kwnames[] = {
1804 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1805 };
1806
1807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 1810 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 1811 if (PyErr_Occurred()) SWIG_fail;
c370783e 1812 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 1813 if (PyErr_Occurred()) SWIG_fail;
c370783e 1814 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
1815 if (PyErr_Occurred()) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
c370783e 1823 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1824 return resultobj;
1825 fail:
1826 return NULL;
1827}
1828
1829
c370783e 1830static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1831 PyObject *resultobj;
1832 wxPalette *arg1 = (wxPalette *) 0 ;
1833 int arg2 ;
1834 byte *arg3 = (byte *) 0 ;
1835 byte *arg4 = (byte *) 0 ;
1836 byte *arg5 = (byte *) 0 ;
1837 bool result;
1838 byte temp3 ;
c370783e 1839 int res3 = 0 ;
d55e5bfc 1840 byte temp4 ;
c370783e 1841 int res4 = 0 ;
d55e5bfc 1842 byte temp5 ;
c370783e 1843 int res5 = 0 ;
d55e5bfc
RD
1844 PyObject * obj0 = 0 ;
1845 PyObject * obj1 = 0 ;
1846 char *kwnames[] = {
1847 (char *) "self",(char *) "pixel", NULL
1848 };
1849
c370783e
RD
1850 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1851 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1852 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
1853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 1856 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
1857 if (PyErr_Occurred()) SWIG_fail;
1858 {
1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
1860 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1861
1862 wxPyEndAllowThreads(__tstate);
1863 if (PyErr_Occurred()) SWIG_fail;
1864 }
1865 {
1866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1867 }
c370783e
RD
1868 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1869 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1870 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1871 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1872 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1873 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
d55e5bfc
RD
1874 return resultobj;
1875 fail:
1876 return NULL;
1877}
1878
1879
c370783e 1880static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1881 PyObject *resultobj;
1882 wxPalette *arg1 = (wxPalette *) 0 ;
1883 bool result;
1884 PyObject * obj0 = 0 ;
1885 char *kwnames[] = {
1886 (char *) "self", NULL
1887 };
1888
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1892 {
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 result = (bool)(arg1)->Ok();
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) SWIG_fail;
1898 }
1899 {
1900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1901 }
1902 return resultobj;
1903 fail:
1904 return NULL;
1905}
1906
1907
c370783e 1908static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1909 PyObject *obj;
1910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1911 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1912 Py_INCREF(obj);
1913 return Py_BuildValue((char *)"");
1914}
c370783e 1915static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1916 PyObject *resultobj;
1917 wxColour *arg1 = 0 ;
1918 int arg2 = (int) 1 ;
1919 int arg3 = (int) wxSOLID ;
1920 wxPen *result;
1921 wxColour temp1 ;
1922 PyObject * obj0 = 0 ;
1923 PyObject * obj1 = 0 ;
1924 PyObject * obj2 = 0 ;
1925 char *kwnames[] = {
1926 (char *) "colour",(char *) "width",(char *) "style", NULL
1927 };
1928
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1930 {
1931 arg1 = &temp1;
1932 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1933 }
1934 if (obj1) {
c370783e 1935 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
1936 if (PyErr_Occurred()) SWIG_fail;
1937 }
1938 if (obj2) {
c370783e 1939 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
1940 if (PyErr_Occurred()) SWIG_fail;
1941 }
1942 {
0439c23b 1943 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1946
1947 wxPyEndAllowThreads(__tstate);
110da5b0 1948 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1949 }
1950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1951 return resultobj;
1952 fail:
1953 return NULL;
1954}
1955
1956
c370783e 1957static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1958 PyObject *resultobj;
1959 wxPen *arg1 = (wxPen *) 0 ;
1960 PyObject * obj0 = 0 ;
1961 char *kwnames[] = {
1962 (char *) "self", NULL
1963 };
1964
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1968 {
1969 PyThreadState* __tstate = wxPyBeginAllowThreads();
1970 delete arg1;
1971
1972 wxPyEndAllowThreads(__tstate);
1973 if (PyErr_Occurred()) SWIG_fail;
1974 }
1975 Py_INCREF(Py_None); resultobj = Py_None;
1976 return resultobj;
1977 fail:
1978 return NULL;
1979}
1980
1981
c370783e 1982static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1983 PyObject *resultobj;
1984 wxPen *arg1 = (wxPen *) 0 ;
1985 int result;
1986 PyObject * obj0 = 0 ;
1987 char *kwnames[] = {
1988 (char *) "self", NULL
1989 };
1990
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1994 {
1995 PyThreadState* __tstate = wxPyBeginAllowThreads();
1996 result = (int)(arg1)->GetCap();
1997
1998 wxPyEndAllowThreads(__tstate);
1999 if (PyErr_Occurred()) SWIG_fail;
2000 }
c370783e 2001 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2002 return resultobj;
2003 fail:
2004 return NULL;
2005}
2006
2007
c370783e 2008static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2009 PyObject *resultobj;
2010 wxPen *arg1 = (wxPen *) 0 ;
2011 wxColour result;
2012 PyObject * obj0 = 0 ;
2013 char *kwnames[] = {
2014 (char *) "self", NULL
2015 };
2016
2017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
2018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 result = (arg1)->GetColour();
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 {
2028 wxColour * resultptr;
2029 resultptr = new wxColour((wxColour &) result);
2030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2031 }
2032 return resultobj;
2033 fail:
2034 return NULL;
2035}
2036
2037
c370783e 2038static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2039 PyObject *resultobj;
2040 wxPen *arg1 = (wxPen *) 0 ;
2041 int result;
2042 PyObject * obj0 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "self", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2050 {
2051 PyThreadState* __tstate = wxPyBeginAllowThreads();
2052 result = (int)(arg1)->GetJoin();
2053
2054 wxPyEndAllowThreads(__tstate);
2055 if (PyErr_Occurred()) SWIG_fail;
2056 }
c370783e 2057 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2058 return resultobj;
2059 fail:
2060 return NULL;
2061}
2062
2063
c370783e 2064static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2065 PyObject *resultobj;
2066 wxPen *arg1 = (wxPen *) 0 ;
2067 int result;
2068 PyObject * obj0 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2076 {
2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
2078 result = (int)(arg1)->GetStyle();
2079
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) SWIG_fail;
2082 }
c370783e 2083 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2084 return resultobj;
2085 fail:
2086 return NULL;
2087}
2088
2089
c370783e 2090static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2091 PyObject *resultobj;
2092 wxPen *arg1 = (wxPen *) 0 ;
2093 int result;
2094 PyObject * obj0 = 0 ;
2095 char *kwnames[] = {
2096 (char *) "self", NULL
2097 };
2098
2099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2102 {
2103 PyThreadState* __tstate = wxPyBeginAllowThreads();
2104 result = (int)(arg1)->GetWidth();
2105
2106 wxPyEndAllowThreads(__tstate);
2107 if (PyErr_Occurred()) SWIG_fail;
2108 }
c370783e 2109 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2110 return resultobj;
2111 fail:
2112 return NULL;
2113}
2114
2115
c370783e 2116static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2117 PyObject *resultobj;
2118 wxPen *arg1 = (wxPen *) 0 ;
2119 bool result;
2120 PyObject * obj0 = 0 ;
2121 char *kwnames[] = {
2122 (char *) "self", NULL
2123 };
2124
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2128 {
2129 PyThreadState* __tstate = wxPyBeginAllowThreads();
2130 result = (bool)(arg1)->Ok();
2131
2132 wxPyEndAllowThreads(__tstate);
2133 if (PyErr_Occurred()) SWIG_fail;
2134 }
2135 {
2136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2137 }
2138 return resultobj;
2139 fail:
2140 return NULL;
2141}
2142
2143
c370783e 2144static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2145 PyObject *resultobj;
2146 wxPen *arg1 = (wxPen *) 0 ;
2147 int arg2 ;
2148 PyObject * obj0 = 0 ;
2149 PyObject * obj1 = 0 ;
2150 char *kwnames[] = {
2151 (char *) "self",(char *) "cap_style", NULL
2152 };
2153
2154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2157 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2158 if (PyErr_Occurred()) SWIG_fail;
2159 {
2160 PyThreadState* __tstate = wxPyBeginAllowThreads();
2161 (arg1)->SetCap(arg2);
2162
2163 wxPyEndAllowThreads(__tstate);
2164 if (PyErr_Occurred()) SWIG_fail;
2165 }
2166 Py_INCREF(Py_None); resultobj = Py_None;
2167 return resultobj;
2168 fail:
2169 return NULL;
2170}
2171
2172
c370783e 2173static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2174 PyObject *resultobj;
2175 wxPen *arg1 = (wxPen *) 0 ;
2176 wxColour *arg2 = 0 ;
2177 wxColour temp2 ;
2178 PyObject * obj0 = 0 ;
2179 PyObject * obj1 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self",(char *) "colour", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2187 {
2188 arg2 = &temp2;
2189 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2190 }
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 (arg1)->SetColour(*arg2);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 Py_INCREF(Py_None); resultobj = Py_None;
2199 return resultobj;
2200 fail:
2201 return NULL;
2202}
2203
2204
c370783e 2205static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2206 PyObject *resultobj;
2207 wxPen *arg1 = (wxPen *) 0 ;
2208 int arg2 ;
2209 PyObject * obj0 = 0 ;
2210 PyObject * obj1 = 0 ;
2211 char *kwnames[] = {
2212 (char *) "self",(char *) "join_style", NULL
2213 };
2214
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2218 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2219 if (PyErr_Occurred()) SWIG_fail;
2220 {
2221 PyThreadState* __tstate = wxPyBeginAllowThreads();
2222 (arg1)->SetJoin(arg2);
2223
2224 wxPyEndAllowThreads(__tstate);
2225 if (PyErr_Occurred()) SWIG_fail;
2226 }
2227 Py_INCREF(Py_None); resultobj = Py_None;
2228 return resultobj;
2229 fail:
2230 return NULL;
2231}
2232
2233
c370783e 2234static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2235 PyObject *resultobj;
2236 wxPen *arg1 = (wxPen *) 0 ;
2237 int arg2 ;
2238 PyObject * obj0 = 0 ;
2239 PyObject * obj1 = 0 ;
2240 char *kwnames[] = {
2241 (char *) "self",(char *) "style", NULL
2242 };
2243
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2247 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2248 if (PyErr_Occurred()) SWIG_fail;
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 (arg1)->SetStyle(arg2);
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 Py_INCREF(Py_None); resultobj = Py_None;
2257 return resultobj;
2258 fail:
2259 return NULL;
2260}
2261
2262
c370783e 2263static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2264 PyObject *resultobj;
2265 wxPen *arg1 = (wxPen *) 0 ;
2266 int arg2 ;
2267 PyObject * obj0 = 0 ;
2268 PyObject * obj1 = 0 ;
2269 char *kwnames[] = {
2270 (char *) "self",(char *) "width", NULL
2271 };
2272
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2276 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2277 if (PyErr_Occurred()) SWIG_fail;
2278 {
2279 PyThreadState* __tstate = wxPyBeginAllowThreads();
2280 (arg1)->SetWidth(arg2);
2281
2282 wxPyEndAllowThreads(__tstate);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 }
2285 Py_INCREF(Py_None); resultobj = Py_None;
2286 return resultobj;
2287 fail:
2288 return NULL;
2289}
2290
2291
c370783e 2292static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2293 PyObject *resultobj;
2294 wxPen *arg1 = (wxPen *) 0 ;
2295 int arg2 ;
2296 wxDash *arg3 = (wxDash *) 0 ;
2297 PyObject * obj0 = 0 ;
2298 PyObject * obj1 = 0 ;
2299 char *kwnames[] = {
2300 (char *) "self",(char *) "dashes", NULL
2301 };
2302
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2306 {
2307 arg2 = PyList_Size(obj1);
2308 arg3 = (wxDash*)byte_LIST_helper(obj1);
2309 if (arg3 == NULL) SWIG_fail;
2310 }
2311 {
2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
2313 (arg1)->SetDashes(arg2,arg3);
2314
2315 wxPyEndAllowThreads(__tstate);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 Py_INCREF(Py_None); resultobj = Py_None;
2319 {
2320 if (arg3) delete [] arg3;
2321 }
2322 return resultobj;
2323 fail:
2324 {
2325 if (arg3) delete [] arg3;
2326 }
2327 return NULL;
2328}
2329
2330
c370783e 2331static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2332 PyObject *resultobj;
2333 wxPen *arg1 = (wxPen *) 0 ;
2334 PyObject *result;
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
2337 (char *) "self", NULL
2338 };
2339
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2343 {
2344 PyThreadState* __tstate = wxPyBeginAllowThreads();
2345 result = (PyObject *)wxPen_GetDashes(arg1);
2346
2347 wxPyEndAllowThreads(__tstate);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 resultobj = result;
2351 return resultobj;
2352 fail:
2353 return NULL;
2354}
2355
2356
c370783e 2357static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2358 PyObject *resultobj;
2359 wxPen *arg1 = (wxPen *) 0 ;
d6c14a4c
RD
2360 PyObject *arg2 = (PyObject *) 0 ;
2361 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
2362 PyObject * obj0 = 0 ;
2363 PyObject * obj1 = 0 ;
d6c14a4c 2364 PyObject * obj2 = 0 ;
d55e5bfc 2365 char *kwnames[] = {
d6c14a4c 2366 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d55e5bfc
RD
2367 };
2368
d6c14a4c 2369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
2370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d6c14a4c
RD
2372 arg2 = obj1;
2373 arg3 = obj2;
d55e5bfc
RD
2374 {
2375 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2376 wxPen__SetDashes(arg1,arg2,arg3);
d55e5bfc
RD
2377
2378 wxPyEndAllowThreads(__tstate);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 }
d6c14a4c 2381 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2382 return resultobj;
2383 fail:
2384 return NULL;
2385}
2386
2387
c370783e 2388static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2389 PyObject *resultobj;
2390 wxPen *arg1 = (wxPen *) 0 ;
2391 wxPen *arg2 = (wxPen *) 0 ;
2392 bool result;
2393 PyObject * obj0 = 0 ;
2394 PyObject * obj1 = 0 ;
2395 char *kwnames[] = {
2396 (char *) "self",(char *) "other", NULL
2397 };
2398
d6c14a4c 2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
2400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2406 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2413 }
2414 return resultobj;
2415 fail:
2416 return NULL;
2417}
2418
2419
c370783e 2420static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2421 PyObject *resultobj;
d6c14a4c
RD
2422 wxPen *arg1 = (wxPen *) 0 ;
2423 wxPen *arg2 = (wxPen *) 0 ;
2424 bool result;
d55e5bfc
RD
2425 PyObject * obj0 = 0 ;
2426 PyObject * obj1 = 0 ;
d55e5bfc 2427 char *kwnames[] = {
d6c14a4c 2428 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2429 };
2430
d6c14a4c
RD
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
d55e5bfc 2433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d6c14a4c 2434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
d55e5bfc 2435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2436 {
2437 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2438 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2439
2440 wxPyEndAllowThreads(__tstate);
2441 if (PyErr_Occurred()) SWIG_fail;
2442 }
d55e5bfc 2443 {
d6c14a4c 2444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
2445 }
2446 return resultobj;
2447 fail:
d55e5bfc
RD
2448 return NULL;
2449}
2450
2451
c370783e 2452static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2453 PyObject *obj;
2454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
d6c14a4c 2455 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d55e5bfc
RD
2456 Py_INCREF(obj);
2457 return Py_BuildValue((char *)"");
2458}
c370783e 2459static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2460 PyObject *resultobj;
2461 wxColour *arg1 = 0 ;
2462 int arg2 = (int) wxSOLID ;
2463 wxBrush *result;
2464 wxColour temp1 ;
2465 PyObject * obj0 = 0 ;
2466 PyObject * obj1 = 0 ;
2467 char *kwnames[] = {
2468 (char *) "colour",(char *) "style", NULL
2469 };
2470
2471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2472 {
2473 arg1 = &temp1;
2474 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2475 }
2476 if (obj1) {
c370783e 2477 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2478 if (PyErr_Occurred()) SWIG_fail;
2479 }
2480 {
0439c23b 2481 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2482 PyThreadState* __tstate = wxPyBeginAllowThreads();
2483 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2484
2485 wxPyEndAllowThreads(__tstate);
110da5b0 2486 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2487 }
2488 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2489 return resultobj;
2490 fail:
2491 return NULL;
2492}
2493
2494
c370783e 2495static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2496 PyObject *resultobj;
2497 wxBrush *arg1 = (wxBrush *) 0 ;
2498 PyObject * obj0 = 0 ;
2499 char *kwnames[] = {
2500 (char *) "self", NULL
2501 };
2502
2503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2506 {
2507 PyThreadState* __tstate = wxPyBeginAllowThreads();
2508 delete arg1;
2509
2510 wxPyEndAllowThreads(__tstate);
2511 if (PyErr_Occurred()) SWIG_fail;
2512 }
2513 Py_INCREF(Py_None); resultobj = Py_None;
2514 return resultobj;
2515 fail:
2516 return NULL;
2517}
2518
2519
c370783e 2520static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2521 PyObject *resultobj;
2522 wxBrush *arg1 = (wxBrush *) 0 ;
2523 wxColour *arg2 = 0 ;
2524 wxColour temp2 ;
2525 PyObject * obj0 = 0 ;
2526 PyObject * obj1 = 0 ;
2527 char *kwnames[] = {
2528 (char *) "self",(char *) "col", NULL
2529 };
2530
2531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2534 {
2535 arg2 = &temp2;
2536 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2537 }
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 (arg1)->SetColour((wxColour const &)*arg2);
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 Py_INCREF(Py_None); resultobj = Py_None;
2546 return resultobj;
2547 fail:
2548 return NULL;
2549}
2550
2551
c370783e 2552static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2553 PyObject *resultobj;
2554 wxBrush *arg1 = (wxBrush *) 0 ;
2555 int arg2 ;
2556 PyObject * obj0 = 0 ;
2557 PyObject * obj1 = 0 ;
2558 char *kwnames[] = {
2559 (char *) "self",(char *) "style", NULL
2560 };
2561
2562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2565 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2566 if (PyErr_Occurred()) SWIG_fail;
2567 {
2568 PyThreadState* __tstate = wxPyBeginAllowThreads();
2569 (arg1)->SetStyle(arg2);
2570
2571 wxPyEndAllowThreads(__tstate);
2572 if (PyErr_Occurred()) SWIG_fail;
2573 }
2574 Py_INCREF(Py_None); resultobj = Py_None;
2575 return resultobj;
2576 fail:
2577 return NULL;
2578}
2579
2580
c370783e 2581static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2582 PyObject *resultobj;
2583 wxBrush *arg1 = (wxBrush *) 0 ;
2584 wxBitmap *arg2 = 0 ;
2585 PyObject * obj0 = 0 ;
2586 PyObject * obj1 = 0 ;
2587 char *kwnames[] = {
2588 (char *) "self",(char *) "stipple", NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2594 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2595 SWIG_POINTER_EXCEPTION | 0)) == -1)
2596 SWIG_fail;
2597 if (arg2 == NULL) {
2598 PyErr_SetString(PyExc_TypeError,"null reference");
2599 SWIG_fail;
2600 }
2601 {
2602 PyThreadState* __tstate = wxPyBeginAllowThreads();
2603 (arg1)->SetStipple((wxBitmap const &)*arg2);
2604
2605 wxPyEndAllowThreads(__tstate);
2606 if (PyErr_Occurred()) SWIG_fail;
2607 }
2608 Py_INCREF(Py_None); resultobj = Py_None;
2609 return resultobj;
2610 fail:
2611 return NULL;
2612}
2613
2614
c370783e 2615static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2616 PyObject *resultobj;
2617 wxBrush *arg1 = (wxBrush *) 0 ;
2618 wxColour result;
2619 PyObject * obj0 = 0 ;
2620 char *kwnames[] = {
2621 (char *) "self", NULL
2622 };
2623
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2627 {
2628 PyThreadState* __tstate = wxPyBeginAllowThreads();
2629 result = ((wxBrush const *)arg1)->GetColour();
2630
2631 wxPyEndAllowThreads(__tstate);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 {
2635 wxColour * resultptr;
2636 resultptr = new wxColour((wxColour &) result);
2637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2638 }
2639 return resultobj;
2640 fail:
2641 return NULL;
2642}
2643
2644
c370783e 2645static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2646 PyObject *resultobj;
2647 wxBrush *arg1 = (wxBrush *) 0 ;
2648 int result;
2649 PyObject * obj0 = 0 ;
2650 char *kwnames[] = {
2651 (char *) "self", NULL
2652 };
2653
2654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2657 {
2658 PyThreadState* __tstate = wxPyBeginAllowThreads();
2659 result = (int)((wxBrush const *)arg1)->GetStyle();
2660
2661 wxPyEndAllowThreads(__tstate);
2662 if (PyErr_Occurred()) SWIG_fail;
2663 }
c370783e 2664 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2665 return resultobj;
2666 fail:
2667 return NULL;
2668}
2669
2670
c370783e 2671static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2672 PyObject *resultobj;
2673 wxBrush *arg1 = (wxBrush *) 0 ;
2674 wxBitmap *result;
2675 PyObject * obj0 = 0 ;
2676 char *kwnames[] = {
2677 (char *) "self", NULL
2678 };
2679
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2691 return resultobj;
2692 fail:
2693 return NULL;
2694}
2695
2696
c370783e 2697static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2698 PyObject *resultobj;
2699 wxBrush *arg1 = (wxBrush *) 0 ;
2700 bool result;
2701 PyObject * obj0 = 0 ;
2702 char *kwnames[] = {
2703 (char *) "self", NULL
2704 };
2705
2706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2709 {
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 result = (bool)(arg1)->Ok();
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 }
2716 {
2717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2718 }
2719 return resultobj;
2720 fail:
2721 return NULL;
2722}
2723
2724
c370783e 2725static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2726 PyObject *resultobj;
2727 wxBrush *arg1 = (wxBrush *) 0 ;
2728 short result;
2729 PyObject * obj0 = 0 ;
2730 char *kwnames[] = {
2731 (char *) "self", NULL
2732 };
2733
2734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2737 {
2738 PyThreadState* __tstate = wxPyBeginAllowThreads();
2739 result = (short)(arg1)->MacGetTheme();
2740
2741 wxPyEndAllowThreads(__tstate);
2742 if (PyErr_Occurred()) SWIG_fail;
2743 }
c370783e 2744 resultobj = SWIG_From_short((short)result);
d55e5bfc
RD
2745 return resultobj;
2746 fail:
2747 return NULL;
2748}
2749
2750
c370783e 2751static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2752 PyObject *resultobj;
2753 wxBrush *arg1 = (wxBrush *) 0 ;
2754 short arg2 ;
2755 PyObject * obj0 = 0 ;
2756 PyObject * obj1 = 0 ;
2757 char *kwnames[] = {
2758 (char *) "self",(char *) "macThemeBrush", NULL
2759 };
2760
2761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2764 arg2 = (short)SWIG_As_short(obj1);
d55e5bfc
RD
2765 if (PyErr_Occurred()) SWIG_fail;
2766 {
2767 PyThreadState* __tstate = wxPyBeginAllowThreads();
2768 (arg1)->MacSetTheme(arg2);
2769
2770 wxPyEndAllowThreads(__tstate);
2771 if (PyErr_Occurred()) SWIG_fail;
2772 }
2773 Py_INCREF(Py_None); resultobj = Py_None;
2774 return resultobj;
2775 fail:
2776 return NULL;
2777}
2778
2779
c370783e 2780static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2781 PyObject *obj;
2782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2783 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2784 Py_INCREF(obj);
2785 return Py_BuildValue((char *)"");
2786}
c370783e 2787static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2788 PyObject *resultobj;
2789 wxString *arg1 = 0 ;
2790 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2791 wxBitmap *result;
b411df4a 2792 bool temp1 = false ;
d55e5bfc
RD
2793 PyObject * obj0 = 0 ;
2794 PyObject * obj1 = 0 ;
2795 char *kwnames[] = {
2796 (char *) "name",(char *) "type", NULL
2797 };
2798
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2800 {
2801 arg1 = wxString_in_helper(obj0);
2802 if (arg1 == NULL) SWIG_fail;
b411df4a 2803 temp1 = true;
d55e5bfc
RD
2804 }
2805 if (obj1) {
c370783e 2806 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 {
0439c23b 2810 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2811 PyThreadState* __tstate = wxPyBeginAllowThreads();
2812 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2813
2814 wxPyEndAllowThreads(__tstate);
110da5b0 2815 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2816 }
2817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2818 {
2819 if (temp1)
2820 delete arg1;
2821 }
2822 return resultobj;
2823 fail:
2824 {
2825 if (temp1)
2826 delete arg1;
2827 }
2828 return NULL;
2829}
2830
2831
c370783e 2832static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2833 PyObject *resultobj;
2834 wxBitmap *arg1 = (wxBitmap *) 0 ;
2835 PyObject * obj0 = 0 ;
2836 char *kwnames[] = {
2837 (char *) "self", NULL
2838 };
2839
2840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2843 {
2844 PyThreadState* __tstate = wxPyBeginAllowThreads();
2845 delete arg1;
2846
2847 wxPyEndAllowThreads(__tstate);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 Py_INCREF(Py_None); resultobj = Py_None;
2851 return resultobj;
2852 fail:
2853 return NULL;
2854}
2855
2856
c370783e 2857static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
2858 PyObject *resultobj;
2859 int arg1 ;
2860 int arg2 ;
2861 int arg3 = (int) -1 ;
2862 wxBitmap *result;
2863 PyObject * obj0 = 0 ;
2864 PyObject * obj1 = 0 ;
2865 PyObject * obj2 = 0 ;
2866 char *kwnames[] = {
2867 (char *) "width",(char *) "height",(char *) "depth", NULL
2868 };
2869
2870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
c370783e 2871 arg1 = (int)SWIG_As_int(obj0);
d6c14a4c 2872 if (PyErr_Occurred()) SWIG_fail;
c370783e 2873 arg2 = (int)SWIG_As_int(obj1);
d6c14a4c
RD
2874 if (PyErr_Occurred()) SWIG_fail;
2875 if (obj2) {
c370783e 2876 arg3 = (int)SWIG_As_int(obj2);
d6c14a4c
RD
2877 if (PyErr_Occurred()) SWIG_fail;
2878 }
2879 {
0439c23b 2880 if (!wxPyCheckForApp()) SWIG_fail;
d6c14a4c
RD
2881 PyThreadState* __tstate = wxPyBeginAllowThreads();
2882 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2883
2884 wxPyEndAllowThreads(__tstate);
110da5b0 2885 if (PyErr_Occurred()) SWIG_fail;
d6c14a4c
RD
2886 }
2887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2888 return resultobj;
2889 fail:
2890 return NULL;
2891}
2892
2893
c370783e 2894static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2895 PyObject *resultobj;
2896 wxIcon *arg1 = 0 ;
2897 wxBitmap *result;
2898 PyObject * obj0 = 0 ;
2899 char *kwnames[] = {
2900 (char *) "icon", NULL
2901 };
2902
2903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2905 SWIG_POINTER_EXCEPTION | 0)) == -1)
2906 SWIG_fail;
2907 if (arg1 == NULL) {
2908 PyErr_SetString(PyExc_TypeError,"null reference");
2909 SWIG_fail;
2910 }
2911 {
0439c23b 2912 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2913 PyThreadState* __tstate = wxPyBeginAllowThreads();
2914 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2915
2916 wxPyEndAllowThreads(__tstate);
110da5b0 2917 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2918 }
2919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2920 return resultobj;
2921 fail:
2922 return NULL;
2923}
2924
2925
c370783e 2926static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2927 PyObject *resultobj;
2928 wxImage *arg1 = 0 ;
2929 int arg2 = (int) -1 ;
2930 wxBitmap *result;
2931 PyObject * obj0 = 0 ;
2932 PyObject * obj1 = 0 ;
2933 char *kwnames[] = {
2934 (char *) "image",(char *) "depth", NULL
2935 };
2936
2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2939 SWIG_POINTER_EXCEPTION | 0)) == -1)
2940 SWIG_fail;
2941 if (arg1 == NULL) {
2942 PyErr_SetString(PyExc_TypeError,"null reference");
2943 SWIG_fail;
2944 }
2945 if (obj1) {
c370783e 2946 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2947 if (PyErr_Occurred()) SWIG_fail;
2948 }
2949 {
0439c23b 2950 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2951 PyThreadState* __tstate = wxPyBeginAllowThreads();
2952 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2953
2954 wxPyEndAllowThreads(__tstate);
110da5b0 2955 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2956 }
2957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2958 return resultobj;
2959 fail:
2960 return NULL;
2961}
2962
2963
c370783e 2964static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2965 PyObject *resultobj;
2966 PyObject *arg1 = (PyObject *) 0 ;
2967 wxBitmap *result;
2968 PyObject * obj0 = 0 ;
2969 char *kwnames[] = {
2970 (char *) "listOfStrings", NULL
2971 };
2972
2973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2974 arg1 = obj0;
2975 {
0439c23b 2976 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2977 PyThreadState* __tstate = wxPyBeginAllowThreads();
2978 result = (wxBitmap *)new_wxBitmap(arg1);
2979
2980 wxPyEndAllowThreads(__tstate);
110da5b0 2981 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2982 }
2983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2984 return resultobj;
2985 fail:
2986 return NULL;
2987}
2988
2989
c370783e 2990static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2991 PyObject *resultobj;
2992 PyObject *arg1 = (PyObject *) 0 ;
2993 int arg2 ;
2994 int arg3 ;
2995 int arg4 = (int) 1 ;
2996 wxBitmap *result;
2997 PyObject * obj0 = 0 ;
2998 PyObject * obj1 = 0 ;
2999 PyObject * obj2 = 0 ;
3000 PyObject * obj3 = 0 ;
3001 char *kwnames[] = {
3002 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
3003 };
3004
3005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3006 arg1 = obj0;
c370783e 3007 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 3008 if (PyErr_Occurred()) SWIG_fail;
c370783e 3009 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3010 if (PyErr_Occurred()) SWIG_fail;
3011 if (obj3) {
c370783e 3012 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3013 if (PyErr_Occurred()) SWIG_fail;
3014 }
3015 {
0439c23b 3016 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
3019
3020 wxPyEndAllowThreads(__tstate);
110da5b0 3021 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3022 }
3023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3024 return resultobj;
3025 fail:
3026 return NULL;
3027}
3028
3029
c370783e 3030static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3031 PyObject *resultobj;
3032 wxBitmap *arg1 = (wxBitmap *) 0 ;
3033 bool result;
3034 PyObject * obj0 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "self", NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3042 {
3043 PyThreadState* __tstate = wxPyBeginAllowThreads();
3044 result = (bool)(arg1)->Ok();
3045
3046 wxPyEndAllowThreads(__tstate);
3047 if (PyErr_Occurred()) SWIG_fail;
3048 }
3049 {
3050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3051 }
3052 return resultobj;
3053 fail:
3054 return NULL;
3055}
3056
3057
c370783e 3058static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3059 PyObject *resultobj;
3060 wxBitmap *arg1 = (wxBitmap *) 0 ;
3061 int result;
3062 PyObject * obj0 = 0 ;
3063 char *kwnames[] = {
3064 (char *) "self", NULL
3065 };
3066
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3070 {
3071 PyThreadState* __tstate = wxPyBeginAllowThreads();
3072 result = (int)(arg1)->GetWidth();
3073
3074 wxPyEndAllowThreads(__tstate);
3075 if (PyErr_Occurred()) SWIG_fail;
3076 }
c370783e 3077 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3078 return resultobj;
3079 fail:
3080 return NULL;
3081}
3082
3083
c370783e 3084static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3085 PyObject *resultobj;
3086 wxBitmap *arg1 = (wxBitmap *) 0 ;
3087 int result;
3088 PyObject * obj0 = 0 ;
3089 char *kwnames[] = {
3090 (char *) "self", NULL
3091 };
3092
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3096 {
3097 PyThreadState* __tstate = wxPyBeginAllowThreads();
3098 result = (int)(arg1)->GetHeight();
3099
3100 wxPyEndAllowThreads(__tstate);
3101 if (PyErr_Occurred()) SWIG_fail;
3102 }
c370783e 3103 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3104 return resultobj;
3105 fail:
3106 return NULL;
3107}
3108
3109
c370783e 3110static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3111 PyObject *resultobj;
3112 wxBitmap *arg1 = (wxBitmap *) 0 ;
3113 int result;
3114 PyObject * obj0 = 0 ;
3115 char *kwnames[] = {
3116 (char *) "self", NULL
3117 };
3118
3119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3122 {
3123 PyThreadState* __tstate = wxPyBeginAllowThreads();
3124 result = (int)(arg1)->GetDepth();
3125
3126 wxPyEndAllowThreads(__tstate);
3127 if (PyErr_Occurred()) SWIG_fail;
3128 }
c370783e 3129 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3130 return resultobj;
3131 fail:
3132 return NULL;
3133}
3134
3135
c370783e 3136static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3137 PyObject *resultobj;
3138 wxBitmap *arg1 = (wxBitmap *) 0 ;
3139 wxSize result;
3140 PyObject * obj0 = 0 ;
3141 char *kwnames[] = {
3142 (char *) "self", NULL
3143 };
3144
3145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3148 {
3149 PyThreadState* __tstate = wxPyBeginAllowThreads();
3150 result = wxBitmap_GetSize(arg1);
3151
3152 wxPyEndAllowThreads(__tstate);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 {
3156 wxSize * resultptr;
3157 resultptr = new wxSize((wxSize &) result);
3158 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3159 }
3160 return resultobj;
3161 fail:
3162 return NULL;
3163}
3164
3165
c370783e 3166static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3167 PyObject *resultobj;
3168 wxBitmap *arg1 = (wxBitmap *) 0 ;
3169 SwigValueWrapper< wxImage > result;
3170 PyObject * obj0 = 0 ;
3171 char *kwnames[] = {
3172 (char *) "self", NULL
3173 };
3174
3175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3178 {
3179 PyThreadState* __tstate = wxPyBeginAllowThreads();
3180 result = ((wxBitmap const *)arg1)->ConvertToImage();
3181
3182 wxPyEndAllowThreads(__tstate);
3183 if (PyErr_Occurred()) SWIG_fail;
3184 }
3185 {
3186 wxImage * resultptr;
3187 resultptr = new wxImage((wxImage &) result);
3188 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3189 }
3190 return resultobj;
3191 fail:
3192 return NULL;
3193}
3194
3195
c370783e 3196static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3197 PyObject *resultobj;
3198 wxBitmap *arg1 = (wxBitmap *) 0 ;
3199 wxMask *result;
3200 PyObject * obj0 = 0 ;
3201 char *kwnames[] = {
3202 (char *) "self", NULL
3203 };
3204
3205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3208 {
3209 PyThreadState* __tstate = wxPyBeginAllowThreads();
3210 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3211
3212 wxPyEndAllowThreads(__tstate);
3213 if (PyErr_Occurred()) SWIG_fail;
3214 }
3215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3216 return resultobj;
3217 fail:
3218 return NULL;
3219}
3220
3221
c370783e 3222static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3223 PyObject *resultobj;
3224 wxBitmap *arg1 = (wxBitmap *) 0 ;
3225 wxMask *arg2 = (wxMask *) 0 ;
3226 PyObject * obj0 = 0 ;
3227 PyObject * obj1 = 0 ;
3228 char *kwnames[] = {
3229 (char *) "self",(char *) "mask", NULL
3230 };
3231
3232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 (arg1)->SetMask(arg2);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 }
3244 Py_INCREF(Py_None); resultobj = Py_None;
3245 return resultobj;
3246 fail:
3247 return NULL;
3248}
3249
3250
c370783e 3251static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3252 PyObject *resultobj;
3253 wxBitmap *arg1 = (wxBitmap *) 0 ;
3254 wxColour *arg2 = 0 ;
3255 wxColour temp2 ;
3256 PyObject * obj0 = 0 ;
3257 PyObject * obj1 = 0 ;
3258 char *kwnames[] = {
3259 (char *) "self",(char *) "colour", NULL
3260 };
3261
3262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3265 {
3266 arg2 = &temp2;
3267 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3268 }
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 Py_INCREF(Py_None); resultobj = Py_None;
3277 return resultobj;
3278 fail:
3279 return NULL;
3280}
3281
3282
c370783e 3283static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3284 PyObject *resultobj;
3285 wxBitmap *arg1 = (wxBitmap *) 0 ;
3286 wxRect *arg2 = 0 ;
3287 SwigValueWrapper< wxBitmap > result;
3288 wxRect temp2 ;
3289 PyObject * obj0 = 0 ;
3290 PyObject * obj1 = 0 ;
3291 char *kwnames[] = {
3292 (char *) "self",(char *) "rect", NULL
3293 };
3294
3295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3298 {
3299 arg2 = &temp2;
3300 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3301 }
3302 {
3303 PyThreadState* __tstate = wxPyBeginAllowThreads();
3304 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3305
3306 wxPyEndAllowThreads(__tstate);
3307 if (PyErr_Occurred()) SWIG_fail;
3308 }
3309 {
3310 wxBitmap * resultptr;
3311 resultptr = new wxBitmap((wxBitmap &) result);
3312 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3313 }
3314 return resultobj;
3315 fail:
3316 return NULL;
3317}
3318
3319
c370783e 3320static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3321 PyObject *resultobj;
3322 wxBitmap *arg1 = (wxBitmap *) 0 ;
3323 wxString *arg2 = 0 ;
3324 int arg3 ;
d6c14a4c 3325 wxPalette *arg4 = (wxPalette *) NULL ;
d55e5bfc 3326 bool result;
b411df4a 3327 bool temp2 = false ;
d55e5bfc
RD
3328 PyObject * obj0 = 0 ;
3329 PyObject * obj1 = 0 ;
3330 PyObject * obj2 = 0 ;
3331 PyObject * obj3 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3339 {
3340 arg2 = wxString_in_helper(obj1);
3341 if (arg2 == NULL) SWIG_fail;
b411df4a 3342 temp2 = true;
d55e5bfc 3343 }
c370783e 3344 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3345 if (PyErr_Occurred()) SWIG_fail;
3346 if (obj3) {
3347 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3349 }
3350 {
3351 PyThreadState* __tstate = wxPyBeginAllowThreads();
3352 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3353
3354 wxPyEndAllowThreads(__tstate);
3355 if (PyErr_Occurred()) SWIG_fail;
3356 }
3357 {
3358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3359 }
3360 {
3361 if (temp2)
3362 delete arg2;
3363 }
3364 return resultobj;
3365 fail:
3366 {
3367 if (temp2)
3368 delete arg2;
3369 }
3370 return NULL;
3371}
3372
3373
c370783e 3374static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3375 PyObject *resultobj;
3376 wxBitmap *arg1 = (wxBitmap *) 0 ;
3377 wxString *arg2 = 0 ;
3378 int arg3 ;
3379 bool result;
b411df4a 3380 bool temp2 = false ;
d55e5bfc
RD
3381 PyObject * obj0 = 0 ;
3382 PyObject * obj1 = 0 ;
3383 PyObject * obj2 = 0 ;
3384 char *kwnames[] = {
3385 (char *) "self",(char *) "name",(char *) "type", NULL
3386 };
3387
3388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3391 {
3392 arg2 = wxString_in_helper(obj1);
3393 if (arg2 == NULL) SWIG_fail;
b411df4a 3394 temp2 = true;
d55e5bfc 3395 }
c370783e 3396 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3397 if (PyErr_Occurred()) SWIG_fail;
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3401
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 {
3406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3407 }
3408 {
3409 if (temp2)
3410 delete arg2;
3411 }
3412 return resultobj;
3413 fail:
3414 {
3415 if (temp2)
3416 delete arg2;
3417 }
3418 return NULL;
3419}
3420
3421
070c48b4
RD
3422static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 wxBitmap *arg1 = (wxBitmap *) 0 ;
3425 wxPalette *result;
3426 PyObject * obj0 = 0 ;
3427 char *kwnames[] = {
3428 (char *) "self", NULL
3429 };
3430
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
3432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3434 {
3435 PyThreadState* __tstate = wxPyBeginAllowThreads();
3436 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
3437
3438 wxPyEndAllowThreads(__tstate);
3439 if (PyErr_Occurred()) SWIG_fail;
3440 }
3441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
3442 return resultobj;
3443 fail:
3444 return NULL;
3445}
3446
3447
c370783e 3448static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3449 PyObject *resultobj;
3450 wxBitmap *arg1 = (wxBitmap *) 0 ;
3451 wxIcon *arg2 = 0 ;
3452 bool result;
3453 PyObject * obj0 = 0 ;
3454 PyObject * obj1 = 0 ;
3455 char *kwnames[] = {
3456 (char *) "self",(char *) "icon", NULL
3457 };
3458
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3463 SWIG_POINTER_EXCEPTION | 0)) == -1)
3464 SWIG_fail;
3465 if (arg2 == NULL) {
3466 PyErr_SetString(PyExc_TypeError,"null reference");
3467 SWIG_fail;
3468 }
3469 {
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3472
3473 wxPyEndAllowThreads(__tstate);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 }
3476 {
3477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3478 }
3479 return resultobj;
3480 fail:
3481 return NULL;
3482}
3483
3484
c370783e 3485static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3486 PyObject *resultobj;
3487 wxBitmap *arg1 = (wxBitmap *) 0 ;
3488 int arg2 ;
3489 PyObject * obj0 = 0 ;
3490 PyObject * obj1 = 0 ;
3491 char *kwnames[] = {
3492 (char *) "self",(char *) "height", NULL
3493 };
3494
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 3498 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3499 if (PyErr_Occurred()) SWIG_fail;
3500 {
3501 PyThreadState* __tstate = wxPyBeginAllowThreads();
3502 (arg1)->SetHeight(arg2);
3503
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 Py_INCREF(Py_None); resultobj = Py_None;
3508 return resultobj;
3509 fail:
3510 return NULL;
3511}
3512
3513
c370783e 3514static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3515 PyObject *resultobj;
3516 wxBitmap *arg1 = (wxBitmap *) 0 ;
3517 int arg2 ;
3518 PyObject * obj0 = 0 ;
3519 PyObject * obj1 = 0 ;
3520 char *kwnames[] = {
3521 (char *) "self",(char *) "width", NULL
3522 };
3523
3524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 3527 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3528 if (PyErr_Occurred()) SWIG_fail;
3529 {
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 (arg1)->SetWidth(arg2);
3532
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 Py_INCREF(Py_None); resultobj = Py_None;
3537 return resultobj;
3538 fail:
3539 return NULL;
3540}
3541
3542
c370783e 3543static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3544 PyObject *resultobj;
3545 wxBitmap *arg1 = (wxBitmap *) 0 ;
3546 int arg2 ;
3547 PyObject * obj0 = 0 ;
3548 PyObject * obj1 = 0 ;
3549 char *kwnames[] = {
3550 (char *) "self",(char *) "depth", NULL
3551 };
3552
3553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 3556 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3557 if (PyErr_Occurred()) SWIG_fail;
3558 {
3559 PyThreadState* __tstate = wxPyBeginAllowThreads();
3560 (arg1)->SetDepth(arg2);
3561
3562 wxPyEndAllowThreads(__tstate);
3563 if (PyErr_Occurred()) SWIG_fail;
3564 }
3565 Py_INCREF(Py_None); resultobj = Py_None;
3566 return resultobj;
3567 fail:
3568 return NULL;
3569}
3570
3571
c370783e 3572static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3573 PyObject *resultobj;
3574 wxBitmap *arg1 = (wxBitmap *) 0 ;
3575 wxSize *arg2 = 0 ;
3576 wxSize temp2 ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579 char *kwnames[] = {
3580 (char *) "self",(char *) "size", NULL
3581 };
3582
3583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3586 {
3587 arg2 = &temp2;
3588 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3589 }
3590 {
3591 PyThreadState* __tstate = wxPyBeginAllowThreads();
3592 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3593
3594 wxPyEndAllowThreads(__tstate);
3595 if (PyErr_Occurred()) SWIG_fail;
3596 }
3597 Py_INCREF(Py_None); resultobj = Py_None;
3598 return resultobj;
3599 fail:
3600 return NULL;
3601}
3602
3603
c370783e 3604static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3605 PyObject *resultobj;
3606 wxBitmap *arg1 = (wxBitmap *) 0 ;
3607 wxBitmap *arg2 = (wxBitmap *) 0 ;
3608 bool result;
3609 PyObject * obj0 = 0 ;
3610 PyObject * obj1 = 0 ;
3611 char *kwnames[] = {
3612 (char *) "self",(char *) "other", NULL
3613 };
3614
3615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3623
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 {
3628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3629 }
3630 return resultobj;
3631 fail:
3632 return NULL;
3633}
3634
3635
c370783e 3636static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3637 PyObject *resultobj;
3638 wxBitmap *arg1 = (wxBitmap *) 0 ;
3639 wxBitmap *arg2 = (wxBitmap *) 0 ;
3640 bool result;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "self",(char *) "other", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3655
3656 wxPyEndAllowThreads(__tstate);
3657 if (PyErr_Occurred()) SWIG_fail;
3658 }
3659 {
3660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3661 }
3662 return resultobj;
3663 fail:
3664 return NULL;
3665}
3666
3667
c370783e 3668static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3669 PyObject *obj;
3670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3671 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3672 Py_INCREF(obj);
3673 return Py_BuildValue((char *)"");
3674}
c370783e 3675static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3676 PyObject *resultobj;
3677 wxBitmap *arg1 = 0 ;
3678 wxColour const &arg2_defvalue = wxNullColour ;
3679 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3680 wxMask *result;
3681 wxColour temp2 ;
3682 PyObject * obj0 = 0 ;
3683 PyObject * obj1 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "bitmap",(char *) "colour", NULL
3686 };
3687
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3690 SWIG_POINTER_EXCEPTION | 0)) == -1)
3691 SWIG_fail;
3692 if (arg1 == NULL) {
3693 PyErr_SetString(PyExc_TypeError,"null reference");
3694 SWIG_fail;
3695 }
3696 if (obj1) {
3697 {
3698 arg2 = &temp2;
3699 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3700 }
3701 }
3702 {
0439c23b 3703 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3706
3707 wxPyEndAllowThreads(__tstate);
110da5b0 3708 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3709 }
3710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3711 return resultobj;
3712 fail:
3713 return NULL;
3714}
3715
3716
c370783e 3717static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3718 PyObject *obj;
3719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3720 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3721 Py_INCREF(obj);
3722 return Py_BuildValue((char *)"");
3723}
c370783e 3724static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3725 PyObject *resultobj;
3726 wxString *arg1 = 0 ;
3727 int arg2 ;
3728 int arg3 = (int) -1 ;
3729 int arg4 = (int) -1 ;
3730 wxIcon *result;
b411df4a 3731 bool temp1 = false ;
d55e5bfc
RD
3732 PyObject * obj0 = 0 ;
3733 PyObject * obj1 = 0 ;
3734 PyObject * obj2 = 0 ;
3735 PyObject * obj3 = 0 ;
3736 char *kwnames[] = {
3737 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3738 };
3739
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3741 {
3742 arg1 = wxString_in_helper(obj0);
3743 if (arg1 == NULL) SWIG_fail;
b411df4a 3744 temp1 = true;
d55e5bfc 3745 }
c370783e 3746 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3747 if (PyErr_Occurred()) SWIG_fail;
3748 if (obj2) {
c370783e 3749 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3750 if (PyErr_Occurred()) SWIG_fail;
3751 }
3752 if (obj3) {
c370783e 3753 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3754 if (PyErr_Occurred()) SWIG_fail;
3755 }
3756 {
0439c23b 3757 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3760
3761 wxPyEndAllowThreads(__tstate);
110da5b0 3762 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3763 }
3764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3765 {
3766 if (temp1)
3767 delete arg1;
3768 }
3769 return resultobj;
3770 fail:
3771 {
3772 if (temp1)
3773 delete arg1;
3774 }
3775 return NULL;
3776}
3777
3778
c370783e 3779static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3780 PyObject *resultobj;
3781 wxIcon *arg1 = (wxIcon *) 0 ;
3782 PyObject * obj0 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "self", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 delete arg1;
3793
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 Py_INCREF(Py_None); resultobj = Py_None;
3798 return resultobj;
3799 fail:
3800 return NULL;
3801}
3802
3803
c370783e 3804static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3805 PyObject *resultobj;
3806 wxIcon *result;
3807 char *kwnames[] = {
3808 NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3812 {
0439c23b 3813 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3814 PyThreadState* __tstate = wxPyBeginAllowThreads();
3815 result = (wxIcon *)new wxIcon();
3816
3817 wxPyEndAllowThreads(__tstate);
110da5b0 3818 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3819 }
3820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3821 return resultobj;
3822 fail:
3823 return NULL;
3824}
3825
3826
c370783e 3827static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3828 PyObject *resultobj;
3829 wxIconLocation *arg1 = 0 ;
3830 wxIcon *result;
3831 PyObject * obj0 = 0 ;
3832 char *kwnames[] = {
3833 (char *) "loc", NULL
3834 };
3835
3836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3838 SWIG_POINTER_EXCEPTION | 0)) == -1)
3839 SWIG_fail;
3840 if (arg1 == NULL) {
3841 PyErr_SetString(PyExc_TypeError,"null reference");
3842 SWIG_fail;
3843 }
3844 {
0439c23b 3845 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
3847 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3848
3849 wxPyEndAllowThreads(__tstate);
110da5b0 3850 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3851 }
3852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3853 return resultobj;
3854 fail:
3855 return NULL;
3856}
3857
3858
c370783e 3859static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3860 PyObject *resultobj;
3861 wxBitmap *arg1 = 0 ;
3862 wxIcon *result;
3863 PyObject * obj0 = 0 ;
3864 char *kwnames[] = {
3865 (char *) "bmp", NULL
3866 };
3867
3868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3870 SWIG_POINTER_EXCEPTION | 0)) == -1)
3871 SWIG_fail;
3872 if (arg1 == NULL) {
3873 PyErr_SetString(PyExc_TypeError,"null reference");
3874 SWIG_fail;
3875 }
3876 {
0439c23b 3877 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3880
3881 wxPyEndAllowThreads(__tstate);
110da5b0 3882 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3883 }
3884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3885 return resultobj;
3886 fail:
3887 return NULL;
3888}
3889
3890
c370783e 3891static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3892 PyObject *resultobj;
3893 PyObject *arg1 = (PyObject *) 0 ;
3894 wxIcon *result;
3895 PyObject * obj0 = 0 ;
3896 char *kwnames[] = {
3897 (char *) "listOfStrings", NULL
3898 };
3899
3900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3901 arg1 = obj0;
3902 {
0439c23b 3903 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 result = (wxIcon *)new_wxIcon(arg1);
3906
3907 wxPyEndAllowThreads(__tstate);
110da5b0 3908 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3909 }
3910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3911 return resultobj;
3912 fail:
3913 return NULL;
3914}
3915
3916
c370783e 3917static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3918 PyObject *resultobj;
3919 wxIcon *arg1 = (wxIcon *) 0 ;
3920 bool result;
3921 PyObject * obj0 = 0 ;
3922 char *kwnames[] = {
3923 (char *) "self", NULL
3924 };
3925
3926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3929 {
3930 PyThreadState* __tstate = wxPyBeginAllowThreads();
3931 result = (bool)(arg1)->Ok();
3932
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 {
3937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3938 }
3939 return resultobj;
3940 fail:
3941 return NULL;
3942}
3943
3944
c370783e 3945static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3946 PyObject *resultobj;
3947 wxIcon *arg1 = (wxIcon *) 0 ;
3948 int result;
3949 PyObject * obj0 = 0 ;
3950 char *kwnames[] = {
3951 (char *) "self", NULL
3952 };
3953
3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 result = (int)(arg1)->GetWidth();
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
c370783e 3964 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3965 return resultobj;
3966 fail:
3967 return NULL;
3968}
3969
3970
c370783e 3971static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3972 PyObject *resultobj;
3973 wxIcon *arg1 = (wxIcon *) 0 ;
3974 int result;
3975 PyObject * obj0 = 0 ;
3976 char *kwnames[] = {
3977 (char *) "self", NULL
3978 };
3979
3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3983 {
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 result = (int)(arg1)->GetHeight();
3986
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) SWIG_fail;
3989 }
c370783e 3990 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3991 return resultobj;
3992 fail:
3993 return NULL;
3994}
3995
3996
c370783e 3997static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3998 PyObject *resultobj;
3999 wxIcon *arg1 = (wxIcon *) 0 ;
4000 int result;
4001 PyObject * obj0 = 0 ;
4002 char *kwnames[] = {
4003 (char *) "self", NULL
4004 };
4005
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = (int)(arg1)->GetDepth();
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
c370783e 4016 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4017 return resultobj;
4018 fail:
4019 return NULL;
4020}
4021
4022
c370783e 4023static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4024 PyObject *resultobj;
4025 wxIcon *arg1 = (wxIcon *) 0 ;
4026 int arg2 ;
4027 PyObject * obj0 = 0 ;
4028 PyObject * obj1 = 0 ;
4029 char *kwnames[] = {
4030 (char *) "self",(char *) "w", NULL
4031 };
4032
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4036 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4037 if (PyErr_Occurred()) SWIG_fail;
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 (arg1)->SetWidth(arg2);
4041
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
4045 Py_INCREF(Py_None); resultobj = Py_None;
4046 return resultobj;
4047 fail:
4048 return NULL;
4049}
4050
4051
c370783e 4052static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4053 PyObject *resultobj;
4054 wxIcon *arg1 = (wxIcon *) 0 ;
4055 int arg2 ;
4056 PyObject * obj0 = 0 ;
4057 PyObject * obj1 = 0 ;
4058 char *kwnames[] = {
4059 (char *) "self",(char *) "h", NULL
4060 };
4061
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4065 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4066 if (PyErr_Occurred()) SWIG_fail;
4067 {
4068 PyThreadState* __tstate = wxPyBeginAllowThreads();
4069 (arg1)->SetHeight(arg2);
4070
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 Py_INCREF(Py_None); resultobj = Py_None;
4075 return resultobj;
4076 fail:
4077 return NULL;
4078}
4079
4080
c370783e 4081static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4082 PyObject *resultobj;
4083 wxIcon *arg1 = (wxIcon *) 0 ;
4084 int arg2 ;
4085 PyObject * obj0 = 0 ;
4086 PyObject * obj1 = 0 ;
4087 char *kwnames[] = {
4088 (char *) "self",(char *) "d", NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4094 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4095 if (PyErr_Occurred()) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 (arg1)->SetDepth(arg2);
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 Py_INCREF(Py_None); resultobj = Py_None;
4104 return resultobj;
4105 fail:
4106 return NULL;
4107}
4108
4109
c370783e 4110static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4111 PyObject *resultobj;
4112 wxIcon *arg1 = (wxIcon *) 0 ;
4113 wxBitmap *arg2 = 0 ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 char *kwnames[] = {
4117 (char *) "self",(char *) "bmp", NULL
4118 };
4119
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4124 SWIG_POINTER_EXCEPTION | 0)) == -1)
4125 SWIG_fail;
4126 if (arg2 == NULL) {
4127 PyErr_SetString(PyExc_TypeError,"null reference");
4128 SWIG_fail;
4129 }
4130 {
4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
4132 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 Py_INCREF(Py_None); resultobj = Py_None;
4138 return resultobj;
4139 fail:
4140 return NULL;
4141}
4142
4143
c370783e 4144static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4145 PyObject *obj;
4146 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4147 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4148 Py_INCREF(obj);
4149 return Py_BuildValue((char *)"");
4150}
c370783e 4151static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4152 PyObject *resultobj;
4153 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4154 int arg2 = (int) 0 ;
4155 wxIconLocation *result;
b411df4a 4156 bool temp1 = false ;
d55e5bfc
RD
4157 PyObject * obj0 = 0 ;
4158 PyObject * obj1 = 0 ;
4159 char *kwnames[] = {
4160 (char *) "filename",(char *) "num", NULL
4161 };
4162
4163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4164 if (obj0) {
4165 {
4166 arg1 = wxString_in_helper(obj0);
4167 if (arg1 == NULL) SWIG_fail;
b411df4a 4168 temp1 = true;
d55e5bfc
RD
4169 }
4170 }
4171 if (obj1) {
c370783e 4172 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4183 {
4184 if (temp1)
4185 delete arg1;
4186 }
4187 return resultobj;
4188 fail:
4189 {
4190 if (temp1)
4191 delete arg1;
4192 }
4193 return NULL;
4194}
4195
4196
c370783e 4197static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4198 PyObject *resultobj;
4199 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4200 PyObject * obj0 = 0 ;
4201 char *kwnames[] = {
4202 (char *) "self", NULL
4203 };
4204
4205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 delete arg1;
4211
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 Py_INCREF(Py_None); resultobj = Py_None;
4216 return resultobj;
4217 fail:
4218 return NULL;
4219}
4220
4221
c370783e 4222static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4223 PyObject *resultobj;
4224 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4225 bool result;
4226 PyObject * obj0 = 0 ;
4227 char *kwnames[] = {
4228 (char *) "self", NULL
4229 };
4230
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4234 {
4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
4236 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4237
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 {
4242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4243 }
4244 return resultobj;
4245 fail:
4246 return NULL;
4247}
4248
4249
c370783e 4250static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4251 PyObject *resultobj;
4252 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4253 wxString *arg2 = 0 ;
b411df4a 4254 bool temp2 = false ;
d55e5bfc
RD
4255 PyObject * obj0 = 0 ;
4256 PyObject * obj1 = 0 ;
4257 char *kwnames[] = {
4258 (char *) "self",(char *) "filename", NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4264 {
4265 arg2 = wxString_in_helper(obj1);
4266 if (arg2 == NULL) SWIG_fail;
b411df4a 4267 temp2 = true;
d55e5bfc
RD
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 (arg1)->SetFileName((wxString const &)*arg2);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 }
4276 Py_INCREF(Py_None); resultobj = Py_None;
4277 {
4278 if (temp2)
4279 delete arg2;
4280 }
4281 return resultobj;
4282 fail:
4283 {
4284 if (temp2)
4285 delete arg2;
4286 }
4287 return NULL;
4288}
4289
4290
c370783e 4291static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4292 PyObject *resultobj;
4293 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4294 wxString *result;
4295 PyObject * obj0 = 0 ;
4296 char *kwnames[] = {
4297 (char *) "self", NULL
4298 };
4299
4300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 {
4306 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4307 result = (wxString *) &_result_ref;
4308 }
4309
4310 wxPyEndAllowThreads(__tstate);
4311 if (PyErr_Occurred()) SWIG_fail;
4312 }
4313 {
4314#if wxUSE_UNICODE
4315 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4316#else
4317 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4318#endif
4319 }
4320 return resultobj;
4321 fail:
4322 return NULL;
4323}
4324
4325
c370783e 4326static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4327 PyObject *resultobj;
4328 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4329 int arg2 ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char *kwnames[] = {
4333 (char *) "self",(char *) "num", NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4339 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4340 if (PyErr_Occurred()) SWIG_fail;
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 wxIconLocation_SetIndex(arg1,arg2);
4344
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 Py_INCREF(Py_None); resultobj = Py_None;
4349 return resultobj;
4350 fail:
4351 return NULL;
4352}
4353
4354
c370783e 4355static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4356 PyObject *resultobj;
4357 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4358 int result;
4359 PyObject * obj0 = 0 ;
4360 char *kwnames[] = {
4361 (char *) "self", NULL
4362 };
4363
4364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4367 {
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
4369 result = (int)wxIconLocation_GetIndex(arg1);
4370
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
c370783e 4374 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4375 return resultobj;
4376 fail:
4377 return NULL;
4378}
4379
4380
c370783e 4381static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4382 PyObject *obj;
4383 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4384 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4385 Py_INCREF(obj);
4386 return Py_BuildValue((char *)"");
4387}
c370783e 4388static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4389 PyObject *resultobj;
4390 wxIconBundle *result;
4391 char *kwnames[] = {
4392 NULL
4393 };
4394
4395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4396 {
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
4398 result = (wxIconBundle *)new wxIconBundle();
4399
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4404 return resultobj;
4405 fail:
4406 return NULL;
4407}
4408
4409
c370783e 4410static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4411 PyObject *resultobj;
4412 wxString *arg1 = 0 ;
4413 long arg2 ;
4414 wxIconBundle *result;
b411df4a 4415 bool temp1 = false ;
d55e5bfc
RD
4416 PyObject * obj0 = 0 ;
4417 PyObject * obj1 = 0 ;
4418 char *kwnames[] = {
4419 (char *) "file",(char *) "type", NULL
4420 };
4421
4422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4423 {
4424 arg1 = wxString_in_helper(obj0);
4425 if (arg1 == NULL) SWIG_fail;
b411df4a 4426 temp1 = true;
d55e5bfc 4427 }
c370783e 4428 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4429 if (PyErr_Occurred()) SWIG_fail;
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4433
4434 wxPyEndAllowThreads(__tstate);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4438 {
4439 if (temp1)
4440 delete arg1;
4441 }
4442 return resultobj;
4443 fail:
4444 {
4445 if (temp1)
4446 delete arg1;
4447 }
4448 return NULL;
4449}
4450
4451
c370783e 4452static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4453 PyObject *resultobj;
4454 wxIcon *arg1 = 0 ;
4455 wxIconBundle *result;
4456 PyObject * obj0 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "icon", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4463 SWIG_POINTER_EXCEPTION | 0)) == -1)
4464 SWIG_fail;
4465 if (arg1 == NULL) {
4466 PyErr_SetString(PyExc_TypeError,"null reference");
4467 SWIG_fail;
4468 }
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4477 return resultobj;
4478 fail:
4479 return NULL;
4480}
4481
4482
c370783e 4483static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4484 PyObject *resultobj;
4485 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4486 PyObject * obj0 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 delete arg1;
4497
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 Py_INCREF(Py_None); resultobj = Py_None;
4502 return resultobj;
4503 fail:
4504 return NULL;
4505}
4506
4507
c370783e 4508static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4509 PyObject *resultobj;
4510 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4511 wxIcon *arg2 = 0 ;
4512 PyObject * obj0 = 0 ;
4513 PyObject * obj1 = 0 ;
4514 char *kwnames[] = {
4515 (char *) "self",(char *) "icon", NULL
4516 };
4517
4518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4521 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4522 SWIG_POINTER_EXCEPTION | 0)) == -1)
4523 SWIG_fail;
4524 if (arg2 == NULL) {
4525 PyErr_SetString(PyExc_TypeError,"null reference");
4526 SWIG_fail;
4527 }
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 (arg1)->AddIcon((wxIcon const &)*arg2);
4531
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 Py_INCREF(Py_None); resultobj = Py_None;
4536 return resultobj;
4537 fail:
4538 return NULL;
4539}
4540
4541
c370783e 4542static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4543 PyObject *resultobj;
4544 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4545 wxString *arg2 = 0 ;
4546 long arg3 ;
b411df4a 4547 bool temp2 = false ;
d55e5bfc
RD
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 char *kwnames[] = {
4552 (char *) "self",(char *) "file",(char *) "type", NULL
4553 };
4554
4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4558 {
4559 arg2 = wxString_in_helper(obj1);
4560 if (arg2 == NULL) SWIG_fail;
b411df4a 4561 temp2 = true;
d55e5bfc 4562 }
c370783e 4563 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
4564 if (PyErr_Occurred()) SWIG_fail;
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 Py_INCREF(Py_None); resultobj = Py_None;
4573 {
4574 if (temp2)
4575 delete arg2;
4576 }
4577 return resultobj;
4578 fail:
4579 {
4580 if (temp2)
4581 delete arg2;
4582 }
4583 return NULL;
4584}
4585
4586
c370783e 4587static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4588 PyObject *resultobj;
4589 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4590 wxSize *arg2 = 0 ;
4591 wxIcon *result;
4592 wxSize temp2 ;
4593 PyObject * obj0 = 0 ;
4594 PyObject * obj1 = 0 ;
4595 char *kwnames[] = {
4596 (char *) "self",(char *) "size", NULL
4597 };
4598
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4602 {
4603 arg2 = &temp2;
4604 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4605 }
4606 {
4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
4608 {
4609 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4610 result = (wxIcon *) &_result_ref;
4611 }
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 {
4617 wxIcon* resultptr = new wxIcon(*result);
4618 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4619 }
4620 return resultobj;
4621 fail:
4622 return NULL;
4623}
4624
4625
c370783e 4626static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4627 PyObject *obj;
4628 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4629 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4630 Py_INCREF(obj);
4631 return Py_BuildValue((char *)"");
4632}
c370783e 4633static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4634 PyObject *resultobj;
4635 wxString *arg1 = (wxString *) 0 ;
4636 long arg2 ;
4637 int arg3 = (int) 0 ;
4638 int arg4 = (int) 0 ;
4639 wxCursor *result;
b411df4a 4640 bool temp1 = false ;
d55e5bfc
RD
4641 PyObject * obj0 = 0 ;
4642 PyObject * obj1 = 0 ;
4643 PyObject * obj2 = 0 ;
4644 PyObject * obj3 = 0 ;
4645 char *kwnames[] = {
4646 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4647 };
4648
4649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4650 {
4651 arg1 = wxString_in_helper(obj0);
4652 if (arg1 == NULL) SWIG_fail;
b411df4a 4653 temp1 = true;
d55e5bfc 4654 }
c370783e 4655 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4656 if (PyErr_Occurred()) SWIG_fail;
4657 if (obj2) {
c370783e 4658 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 if (obj3) {
c370783e 4662 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 {
0439c23b 4666 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4669
4670 wxPyEndAllowThreads(__tstate);
110da5b0 4671 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4672 }
4673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4674 {
4675 if (temp1)
4676 delete arg1;
4677 }
4678 return resultobj;
4679 fail:
4680 {
4681 if (temp1)
4682 delete arg1;
4683 }
4684 return NULL;
4685}
4686
4687
c370783e 4688static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4689 PyObject *resultobj;
4690 wxCursor *arg1 = (wxCursor *) 0 ;
4691 PyObject * obj0 = 0 ;
4692 char *kwnames[] = {
4693 (char *) "self", NULL
4694 };
4695
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 delete arg1;
4702
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 Py_INCREF(Py_None); resultobj = Py_None;
4707 return resultobj;
4708 fail:
4709 return NULL;
4710}
4711
4712
c370783e 4713static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4714 PyObject *resultobj;
4715 int arg1 ;
4716 wxCursor *result;
4717 PyObject * obj0 = 0 ;
4718 char *kwnames[] = {
4719 (char *) "id", NULL
4720 };
4721
4722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
c370783e 4723 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4724 if (PyErr_Occurred()) SWIG_fail;
4725 {
0439c23b 4726 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 result = (wxCursor *)new wxCursor(arg1);
4729
4730 wxPyEndAllowThreads(__tstate);
110da5b0 4731 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4732 }
4733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4734 return resultobj;
4735 fail:
4736 return NULL;
4737}
4738
4739
c370783e 4740static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4741 PyObject *resultobj;
4742 wxImage *arg1 = 0 ;
4743 wxCursor *result;
4744 PyObject * obj0 = 0 ;
4745 char *kwnames[] = {
4746 (char *) "image", NULL
4747 };
4748
4749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4751 SWIG_POINTER_EXCEPTION | 0)) == -1)
4752 SWIG_fail;
4753 if (arg1 == NULL) {
4754 PyErr_SetString(PyExc_TypeError,"null reference");
4755 SWIG_fail;
4756 }
4757 {
0439c23b 4758 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4759 PyThreadState* __tstate = wxPyBeginAllowThreads();
4760 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4761
4762 wxPyEndAllowThreads(__tstate);
110da5b0 4763 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4764 }
4765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4766 return resultobj;
4767 fail:
4768 return NULL;
4769}
4770
4771
c370783e 4772static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4773 PyObject *resultobj;
4774 wxCursor *arg1 = (wxCursor *) 0 ;
4775 bool result;
4776 PyObject * obj0 = 0 ;
4777 char *kwnames[] = {
4778 (char *) "self", NULL
4779 };
4780
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (bool)(arg1)->Ok();
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797}
4798
4799
c370783e 4800static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4801 PyObject *obj;
4802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4803 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4804 Py_INCREF(obj);
4805 return Py_BuildValue((char *)"");
4806}
c370783e 4807static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4808 PyObject *resultobj;
4809 int arg1 = (int) 0 ;
4810 int arg2 = (int) 0 ;
4811 int arg3 = (int) 0 ;
4812 int arg4 = (int) 0 ;
4813 wxRegion *result;
4814 PyObject * obj0 = 0 ;
4815 PyObject * obj1 = 0 ;
4816 PyObject * obj2 = 0 ;
4817 PyObject * obj3 = 0 ;
4818 char *kwnames[] = {
4819 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4820 };
4821
4822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4823 if (obj0) {
c370783e 4824 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
4827 if (obj1) {
c370783e 4828 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4829 if (PyErr_Occurred()) SWIG_fail;
4830 }
4831 if (obj2) {
c370783e 4832 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 if (obj3) {
c370783e 4836 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 {
0439c23b 4840 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4843
4844 wxPyEndAllowThreads(__tstate);
110da5b0 4845 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4846 }
4847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4848 return resultobj;
4849 fail:
4850 return NULL;
4851}
4852
4853
c370783e 4854static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4855 PyObject *resultobj;
4856 wxBitmap *arg1 = 0 ;
d07096ad
RD
4857 wxRegion *result;
4858 PyObject * obj0 = 0 ;
4859 char *kwnames[] = {
4860 (char *) "bmp", NULL
4861 };
4862
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4865 SWIG_POINTER_EXCEPTION | 0)) == -1)
4866 SWIG_fail;
4867 if (arg1 == NULL) {
4868 PyErr_SetString(PyExc_TypeError,"null reference");
4869 SWIG_fail;
4870 }
4871 {
4872 if (!wxPyCheckForApp()) SWIG_fail;
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
4874 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4875
4876 wxPyEndAllowThreads(__tstate);
110da5b0 4877 if (PyErr_Occurred()) SWIG_fail;
d07096ad
RD
4878 }
4879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4880 return resultobj;
4881 fail:
4882 return NULL;
4883}
4884
4885
c370783e 4886static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d07096ad
RD
4887 PyObject *resultobj;
4888 wxBitmap *arg1 = 0 ;
4889 wxColour *arg2 = 0 ;
d55e5bfc
RD
4890 int arg3 = (int) 0 ;
4891 wxRegion *result;
4892 wxColour temp2 ;
4893 PyObject * obj0 = 0 ;
4894 PyObject * obj1 = 0 ;
4895 PyObject * obj2 = 0 ;
4896 char *kwnames[] = {
4897 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4898 };
4899
d07096ad 4900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
4901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4902 SWIG_POINTER_EXCEPTION | 0)) == -1)
4903 SWIG_fail;
4904 if (arg1 == NULL) {
4905 PyErr_SetString(PyExc_TypeError,"null reference");
4906 SWIG_fail;
4907 }
d07096ad
RD
4908 {
4909 arg2 = &temp2;
4910 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
4911 }
4912 if (obj2) {
c370783e 4913 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 {
0439c23b 4917 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4920
4921 wxPyEndAllowThreads(__tstate);
110da5b0 4922 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4923 }
4924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4925 return resultobj;
4926 fail:
4927 return NULL;
4928}
4929
4930
c370783e 4931static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4932 PyObject *resultobj;
4933 int arg1 ;
4934 wxPoint *arg2 = (wxPoint *) 0 ;
4935 int arg3 = (int) wxWINDING_RULE ;
4936 wxRegion *result;
4937 PyObject * obj0 = 0 ;
4938 PyObject * obj1 = 0 ;
4939 char *kwnames[] = {
4940 (char *) "points",(char *) "fillStyle", NULL
4941 };
4942
4943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4944 {
4945 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4946 if (arg2 == NULL) SWIG_fail;
4947 }
4948 if (obj1) {
c370783e 4949 arg3 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4950 if (PyErr_Occurred()) SWIG_fail;
4951 }
4952 {
0439c23b 4953 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
03837c5c 4955 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
d55e5bfc
RD
4956
4957 wxPyEndAllowThreads(__tstate);
110da5b0 4958 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4959 }
4960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4961 {
4962 if (arg2) delete [] arg2;
4963 }
4964 return resultobj;
4965 fail:
4966 {
4967 if (arg2) delete [] arg2;
4968 }
4969 return NULL;
4970}
4971
4972
c370783e 4973static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4974 PyObject *resultobj;
4975 wxRegion *arg1 = (wxRegion *) 0 ;
4976 PyObject * obj0 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 delete arg1;
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 Py_INCREF(Py_None); resultobj = Py_None;
4992 return resultobj;
4993 fail:
4994 return NULL;
4995}
4996
4997
c370783e 4998static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4999 PyObject *resultobj;
5000 wxRegion *arg1 = (wxRegion *) 0 ;
5001 PyObject * obj0 = 0 ;
5002 char *kwnames[] = {
5003 (char *) "self", NULL
5004 };
5005
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 (arg1)->Clear();
5012
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 Py_INCREF(Py_None); resultobj = Py_None;
5017 return resultobj;
5018 fail:
5019 return NULL;
5020}
5021
5022
070c48b4
RD
5023static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxRegion *arg1 = (wxRegion *) 0 ;
5026 int arg2 ;
5027 int arg3 ;
5028 bool result;
5029 PyObject * obj0 = 0 ;
5030 PyObject * obj1 = 0 ;
5031 PyObject * obj2 = 0 ;
5032 char *kwnames[] = {
5033 (char *) "self",(char *) "x",(char *) "y", NULL
5034 };
5035
5036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5039 arg2 = (int)SWIG_As_int(obj1);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 arg3 = (int)SWIG_As_int(obj2);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 {
5044 PyThreadState* __tstate = wxPyBeginAllowThreads();
5045 result = (bool)(arg1)->Offset(arg2,arg3);
5046
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 {
5051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5052 }
5053 return resultobj;
5054 fail:
5055 return NULL;
5056}
5057
5058
c370783e 5059static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5060 PyObject *resultobj;
5061 wxRegion *arg1 = (wxRegion *) 0 ;
5062 int arg2 ;
5063 int arg3 ;
5064 int result;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 PyObject * obj2 = 0 ;
5068 char *kwnames[] = {
5069 (char *) "self",(char *) "x",(char *) "y", NULL
5070 };
5071
5072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5075 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5076 if (PyErr_Occurred()) SWIG_fail;
c370783e 5077 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5078 if (PyErr_Occurred()) SWIG_fail;
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 result = (int)(arg1)->Contains(arg2,arg3);
5082
5083 wxPyEndAllowThreads(__tstate);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 }
c370783e 5086 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5087 return resultobj;
5088 fail:
5089 return NULL;
5090}
5091
5092
c370783e 5093static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5094 PyObject *resultobj;
5095 wxRegion *arg1 = (wxRegion *) 0 ;
5096 wxPoint *arg2 = 0 ;
5097 int result;
5098 wxPoint temp2 ;
5099 PyObject * obj0 = 0 ;
5100 PyObject * obj1 = 0 ;
5101 char *kwnames[] = {
5102 (char *) "self",(char *) "pt", NULL
5103 };
5104
5105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5108 {
5109 arg2 = &temp2;
5110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5111 }
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5115
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
c370783e 5119 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5120 return resultobj;
5121 fail:
5122 return NULL;
5123}
5124
5125
c370783e 5126static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5127 PyObject *resultobj;
5128 wxRegion *arg1 = (wxRegion *) 0 ;
5129 wxRect *arg2 = 0 ;
5130 int result;
5131 wxRect temp2 ;
5132 PyObject * obj0 = 0 ;
5133 PyObject * obj1 = 0 ;
5134 char *kwnames[] = {
5135 (char *) "self",(char *) "rect", NULL
5136 };
5137
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5141 {
5142 arg2 = &temp2;
5143 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5144 }
5145 {
5146 PyThreadState* __tstate = wxPyBeginAllowThreads();
5147 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5148
5149 wxPyEndAllowThreads(__tstate);
5150 if (PyErr_Occurred()) SWIG_fail;
5151 }
c370783e 5152 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5153 return resultobj;
5154 fail:
5155 return NULL;
5156}
5157
5158
c370783e 5159static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5160 PyObject *resultobj;
5161 wxRegion *arg1 = (wxRegion *) 0 ;
5162 int arg2 ;
5163 int arg3 ;
5164 int arg4 ;
5165 int arg5 ;
5166 int result;
5167 PyObject * obj0 = 0 ;
5168 PyObject * obj1 = 0 ;
5169 PyObject * obj2 = 0 ;
5170 PyObject * obj3 = 0 ;
5171 PyObject * obj4 = 0 ;
5172 char *kwnames[] = {
5173 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5174 };
5175
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5179 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5180 if (PyErr_Occurred()) SWIG_fail;
c370783e 5181 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5182 if (PyErr_Occurred()) SWIG_fail;
c370783e 5183 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5184 if (PyErr_Occurred()) SWIG_fail;
c370783e 5185 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5186 if (PyErr_Occurred()) SWIG_fail;
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
c370783e 5194 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5195 return resultobj;
5196 fail:
5197 return NULL;
5198}
5199
5200
c370783e 5201static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5202 PyObject *resultobj;
5203 wxRegion *arg1 = (wxRegion *) 0 ;
5204 wxRect result;
5205 PyObject * obj0 = 0 ;
5206 char *kwnames[] = {
5207 (char *) "self", NULL
5208 };
5209
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 result = (arg1)->GetBox();
5216
5217 wxPyEndAllowThreads(__tstate);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 }
5220 {
5221 wxRect * resultptr;
5222 resultptr = new wxRect((wxRect &) result);
5223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5224 }
5225 return resultobj;
5226 fail:
5227 return NULL;
5228}
5229
5230
c370783e 5231static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5232 PyObject *resultobj;
5233 wxRegion *arg1 = (wxRegion *) 0 ;
5234 int arg2 ;
5235 int arg3 ;
5236 int arg4 ;
5237 int arg5 ;
5238 bool result;
5239 PyObject * obj0 = 0 ;
5240 PyObject * obj1 = 0 ;
5241 PyObject * obj2 = 0 ;
5242 PyObject * obj3 = 0 ;
5243 PyObject * obj4 = 0 ;
5244 char *kwnames[] = {
5245 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5246 };
5247
5248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5251 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5252 if (PyErr_Occurred()) SWIG_fail;
c370783e 5253 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5254 if (PyErr_Occurred()) SWIG_fail;
c370783e 5255 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5256 if (PyErr_Occurred()) SWIG_fail;
c370783e 5257 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5258 if (PyErr_Occurred()) SWIG_fail;
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5262
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 {
5267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5268 }
5269 return resultobj;
5270 fail:
5271 return NULL;
5272}
5273
5274
c370783e 5275static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5276 PyObject *resultobj;
5277 wxRegion *arg1 = (wxRegion *) 0 ;
5278 wxRect *arg2 = 0 ;
5279 bool result;
5280 wxRect temp2 ;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
5283 char *kwnames[] = {
5284 (char *) "self",(char *) "rect", NULL
5285 };
5286
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5290 {
5291 arg2 = &temp2;
5292 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5293 }
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5297
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 {
5302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5303 }
5304 return resultobj;
5305 fail:
5306 return NULL;
5307}
5308
5309
c370783e 5310static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5311 PyObject *resultobj;
5312 wxRegion *arg1 = (wxRegion *) 0 ;
5313 wxRegion *arg2 = 0 ;
5314 bool result;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char *kwnames[] = {
5318 (char *) "self",(char *) "region", NULL
5319 };
5320
5321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5325 SWIG_POINTER_EXCEPTION | 0)) == -1)
5326 SWIG_fail;
5327 if (arg2 == NULL) {
5328 PyErr_SetString(PyExc_TypeError,"null reference");
5329 SWIG_fail;
5330 }
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5334
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 {
5339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5340 }
5341 return resultobj;
5342 fail:
5343 return NULL;
5344}
5345
5346
c370783e 5347static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5348 PyObject *resultobj;
5349 wxRegion *arg1 = (wxRegion *) 0 ;
5350 bool result;
5351 PyObject * obj0 = 0 ;
5352 char *kwnames[] = {
5353 (char *) "self", NULL
5354 };
5355
5356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5359 {
5360 PyThreadState* __tstate = wxPyBeginAllowThreads();
5361 result = (bool)(arg1)->IsEmpty();
5362
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 {
5367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5368 }
5369 return resultobj;
5370 fail:
5371 return NULL;
5372}
5373
5374
c370783e 5375static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5376 PyObject *resultobj;
5377 wxRegion *arg1 = (wxRegion *) 0 ;
5378 int arg2 ;
5379 int arg3 ;
5380 int arg4 ;
5381 int arg5 ;
5382 bool result;
5383 PyObject * obj0 = 0 ;
5384 PyObject * obj1 = 0 ;
5385 PyObject * obj2 = 0 ;
5386 PyObject * obj3 = 0 ;
5387 PyObject * obj4 = 0 ;
5388 char *kwnames[] = {
5389 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5390 };
5391
5392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5395 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5396 if (PyErr_Occurred()) SWIG_fail;
c370783e 5397 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5398 if (PyErr_Occurred()) SWIG_fail;
c370783e 5399 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5400 if (PyErr_Occurred()) SWIG_fail;
c370783e 5401 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5402 if (PyErr_Occurred()) SWIG_fail;
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5406
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 {
5411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5412 }
5413 return resultobj;
5414 fail:
5415 return NULL;
5416}
5417
5418
c370783e 5419static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5420 PyObject *resultobj;
5421 wxRegion *arg1 = (wxRegion *) 0 ;
5422 wxRect *arg2 = 0 ;
5423 bool result;
5424 wxRect temp2 ;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 char *kwnames[] = {
5428 (char *) "self",(char *) "rect", NULL
5429 };
5430
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5434 {
5435 arg2 = &temp2;
5436 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5437 }
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5441
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 {
5446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5447 }
5448 return resultobj;
5449 fail:
5450 return NULL;
5451}
5452
5453
c370783e 5454static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5455 PyObject *resultobj;
5456 wxRegion *arg1 = (wxRegion *) 0 ;
5457 wxRegion *arg2 = 0 ;
5458 bool result;
5459 PyObject * obj0 = 0 ;
5460 PyObject * obj1 = 0 ;
5461 char *kwnames[] = {
5462 (char *) "self",(char *) "region", NULL
5463 };
5464
5465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5469 SWIG_POINTER_EXCEPTION | 0)) == -1)
5470 SWIG_fail;
5471 if (arg2 == NULL) {
5472 PyErr_SetString(PyExc_TypeError,"null reference");
5473 SWIG_fail;
5474 }
5475 {
5476 PyThreadState* __tstate = wxPyBeginAllowThreads();
5477 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5478
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 {
5483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5484 }
5485 return resultobj;
5486 fail:
5487 return NULL;
5488}
5489
5490
c370783e 5491static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5492 PyObject *resultobj;
5493 wxRegion *arg1 = (wxRegion *) 0 ;
5494 int arg2 ;
5495 int arg3 ;
5496 int arg4 ;
5497 int arg5 ;
5498 bool result;
5499 PyObject * obj0 = 0 ;
5500 PyObject * obj1 = 0 ;
5501 PyObject * obj2 = 0 ;
5502 PyObject * obj3 = 0 ;
5503 PyObject * obj4 = 0 ;
5504 char *kwnames[] = {
5505 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5506 };
5507
5508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5511 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5512 if (PyErr_Occurred()) SWIG_fail;
c370783e 5513 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5514 if (PyErr_Occurred()) SWIG_fail;
c370783e 5515 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5516 if (PyErr_Occurred()) SWIG_fail;
c370783e 5517 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5518 if (PyErr_Occurred()) SWIG_fail;
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5522
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) SWIG_fail;
5525 }
5526 {
5527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5528 }
5529 return resultobj;
5530 fail:
5531 return NULL;
5532}
5533
5534
c370783e 5535static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5536 PyObject *resultobj;
5537 wxRegion *arg1 = (wxRegion *) 0 ;
5538 wxRect *arg2 = 0 ;
5539 bool result;
5540 wxRect temp2 ;
5541 PyObject * obj0 = 0 ;
5542 PyObject * obj1 = 0 ;
5543 char *kwnames[] = {
5544 (char *) "self",(char *) "rect", NULL
5545 };
5546
5547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5550 {
5551 arg2 = &temp2;
5552 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5553 }
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5557
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 {
5562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5563 }
5564 return resultobj;
5565 fail:
5566 return NULL;
5567}
5568
5569
c370783e 5570static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5571 PyObject *resultobj;
5572 wxRegion *arg1 = (wxRegion *) 0 ;
5573 wxRegion *arg2 = 0 ;
5574 bool result;
5575 PyObject * obj0 = 0 ;
5576 PyObject * obj1 = 0 ;
5577 char *kwnames[] = {
5578 (char *) "self",(char *) "region", NULL
5579 };
5580
5581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5584 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5585 SWIG_POINTER_EXCEPTION | 0)) == -1)
5586 SWIG_fail;
5587 if (arg2 == NULL) {
5588 PyErr_SetString(PyExc_TypeError,"null reference");
5589 SWIG_fail;
5590 }
5591 {
5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
5593 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5594
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 {
5599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5600 }
5601 return resultobj;
5602 fail:
5603 return NULL;
5604}
5605
5606
c370783e 5607static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5608 PyObject *resultobj;
5609 wxRegion *arg1 = (wxRegion *) 0 ;
5610 int arg2 ;
5611 int arg3 ;
5612 int arg4 ;
5613 int arg5 ;
5614 bool result;
5615 PyObject * obj0 = 0 ;
5616 PyObject * obj1 = 0 ;
5617 PyObject * obj2 = 0 ;
5618 PyObject * obj3 = 0 ;
5619 PyObject * obj4 = 0 ;
5620 char *kwnames[] = {
5621 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5622 };
5623
5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5627 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5628 if (PyErr_Occurred()) SWIG_fail;
c370783e 5629 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5630 if (PyErr_Occurred()) SWIG_fail;
c370783e 5631 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5632 if (PyErr_Occurred()) SWIG_fail;
c370783e 5633 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5634 if (PyErr_Occurred()) SWIG_fail;
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5638
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 {
5643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5644 }
5645 return resultobj;
5646 fail:
5647 return NULL;
5648}
5649
5650
c370783e 5651static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5652 PyObject *resultobj;
5653 wxRegion *arg1 = (wxRegion *) 0 ;
5654 wxRect *arg2 = 0 ;
5655 bool result;
5656 wxRect temp2 ;
5657 PyObject * obj0 = 0 ;
5658 PyObject * obj1 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "self",(char *) "rect", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5666 {
5667 arg2 = &temp2;
5668 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5669 }
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5673
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 {
5678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5679 }
5680 return resultobj;
5681 fail:
5682 return NULL;
5683}
5684
5685
c370783e 5686static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5687 PyObject *resultobj;
5688 wxRegion *arg1 = (wxRegion *) 0 ;
5689 wxRegion *arg2 = 0 ;
5690 bool result;
5691 PyObject * obj0 = 0 ;
5692 PyObject * obj1 = 0 ;
5693 char *kwnames[] = {
5694 (char *) "self",(char *) "region", NULL
5695 };
5696
5697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5701 SWIG_POINTER_EXCEPTION | 0)) == -1)
5702 SWIG_fail;
5703 if (arg2 == NULL) {
5704 PyErr_SetString(PyExc_TypeError,"null reference");
5705 SWIG_fail;
5706 }
5707 {
5708 PyThreadState* __tstate = wxPyBeginAllowThreads();
5709 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5710
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 {
5715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5716 }
5717 return resultobj;
5718 fail:
5719 return NULL;
5720}
5721
5722
c370783e 5723static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5724 PyObject *resultobj;
5725 wxRegion *arg1 = (wxRegion *) 0 ;
5726 SwigValueWrapper< wxBitmap > result;
5727 PyObject * obj0 = 0 ;
5728 char *kwnames[] = {
5729 (char *) "self", NULL
5730 };
5731
5732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5735 {
5736 PyThreadState* __tstate = wxPyBeginAllowThreads();
5737 result = (arg1)->ConvertToBitmap();
5738
5739 wxPyEndAllowThreads(__tstate);
5740 if (PyErr_Occurred()) SWIG_fail;
5741 }
5742 {
5743 wxBitmap * resultptr;
5744 resultptr = new wxBitmap((wxBitmap &) result);
5745 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5746 }
5747 return resultobj;
5748 fail:
5749 return NULL;
5750}
5751
5752
c370783e 5753static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5754 PyObject *resultobj;
5755 wxRegion *arg1 = (wxRegion *) 0 ;
5756 wxBitmap *arg2 = 0 ;
d07096ad
RD
5757 bool result;
5758 PyObject * obj0 = 0 ;
5759 PyObject * obj1 = 0 ;
5760 char *kwnames[] = {
5761 (char *) "self",(char *) "bmp", NULL
5762 };
5763
5764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5768 SWIG_POINTER_EXCEPTION | 0)) == -1)
5769 SWIG_fail;
5770 if (arg2 == NULL) {
5771 PyErr_SetString(PyExc_TypeError,"null reference");
5772 SWIG_fail;
5773 }
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 {
5782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5783 }
5784 return resultobj;
5785 fail:
5786 return NULL;
5787}
5788
5789
c370783e 5790static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d07096ad
RD
5791 PyObject *resultobj;
5792 wxRegion *arg1 = (wxRegion *) 0 ;
5793 wxBitmap *arg2 = 0 ;
5794 wxColour *arg3 = 0 ;
d55e5bfc
RD
5795 int arg4 = (int) 0 ;
5796 bool result;
5797 wxColour temp3 ;
5798 PyObject * obj0 = 0 ;
5799 PyObject * obj1 = 0 ;
5800 PyObject * obj2 = 0 ;
5801 PyObject * obj3 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5804 };
5805
d07096ad 5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5810 SWIG_POINTER_EXCEPTION | 0)) == -1)
5811 SWIG_fail;
5812 if (arg2 == NULL) {
5813 PyErr_SetString(PyExc_TypeError,"null reference");
5814 SWIG_fail;
5815 }
d07096ad
RD
5816 {
5817 arg3 = &temp3;
5818 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
5819 }
5820 if (obj3) {
c370783e 5821 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
5822 if (PyErr_Occurred()) SWIG_fail;
5823 }
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 {
5832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5833 }
5834 return resultobj;
5835 fail:
5836 return NULL;
5837}
5838
5839
c370783e 5840static PyObject * Region_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5841 PyObject *obj;
5842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5843 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5844 Py_INCREF(obj);
5845 return Py_BuildValue((char *)"");
5846}
c370783e 5847static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5848 PyObject *resultobj;
5849 wxRegion *arg1 = 0 ;
5850 wxRegionIterator *result;
5851 PyObject * obj0 = 0 ;
5852 char *kwnames[] = {
5853 (char *) "region", NULL
5854 };
5855
5856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5858 SWIG_POINTER_EXCEPTION | 0)) == -1)
5859 SWIG_fail;
5860 if (arg1 == NULL) {
5861 PyErr_SetString(PyExc_TypeError,"null reference");
5862 SWIG_fail;
5863 }
5864 {
0439c23b 5865 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5866 PyThreadState* __tstate = wxPyBeginAllowThreads();
5867 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5868
5869 wxPyEndAllowThreads(__tstate);
110da5b0 5870 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5871 }
5872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5873 return resultobj;
5874 fail:
5875 return NULL;
5876}
5877
5878
c370783e 5879static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5880 PyObject *resultobj;
5881 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5882 PyObject * obj0 = 0 ;
5883 char *kwnames[] = {
5884 (char *) "self", NULL
5885 };
5886
5887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5890 {
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 delete arg1;
5893
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 }
5897 Py_INCREF(Py_None); resultobj = Py_None;
5898 return resultobj;
5899 fail:
5900 return NULL;
5901}
5902
5903
c370783e 5904static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5905 PyObject *resultobj;
5906 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5907 int result;
5908 PyObject * obj0 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "self", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5916 {
5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
5918 result = (int)(arg1)->GetX();
5919
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
c370783e 5923 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5924 return resultobj;
5925 fail:
5926 return NULL;
5927}
5928
5929
c370783e 5930static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5931 PyObject *resultobj;
5932 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5933 int result;
5934 PyObject * obj0 = 0 ;
5935 char *kwnames[] = {
5936 (char *) "self", NULL
5937 };
5938
5939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (int)(arg1)->GetY();
5945
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
c370783e 5949 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5950 return resultobj;
5951 fail:
5952 return NULL;
5953}
5954
5955
c370783e 5956static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5957 PyObject *resultobj;
5958 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5959 int result;
5960 PyObject * obj0 = 0 ;
5961 char *kwnames[] = {
5962 (char *) "self", NULL
5963 };
5964
5965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 result = (int)(arg1)->GetW();
5971
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) SWIG_fail;
5974 }
c370783e 5975 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5976 return resultobj;
5977 fail:
5978 return NULL;
5979}
5980
5981
c370783e 5982static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5983 PyObject *resultobj;
5984 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5985 int result;
5986 PyObject * obj0 = 0 ;
5987 char *kwnames[] = {
5988 (char *) "self", NULL
5989 };
5990
5991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5994 {
5995 PyThreadState* __tstate = wxPyBeginAllowThreads();
5996 result = (int)(arg1)->GetWidth();
5997
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
c370783e 6001 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6002 return resultobj;
6003 fail:
6004 return NULL;
6005}
6006
6007
c370783e 6008static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6009 PyObject *resultobj;
6010 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6011 int result;
6012 PyObject * obj0 = 0 ;
6013 char *kwnames[] = {
6014 (char *) "self", NULL
6015 };
6016
6017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (int)(arg1)->GetH();
6023
6024 wxPyEndAllowThreads(__tstate);
6025 if (PyErr_Occurred()) SWIG_fail;
6026 }
c370783e 6027 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6028 return resultobj;
6029 fail:
6030 return NULL;
6031}
6032
6033
c370783e 6034static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6035 PyObject *resultobj;
6036 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6037 int result;
6038 PyObject * obj0 = 0 ;
6039 char *kwnames[] = {
6040 (char *) "self", NULL
6041 };
6042
6043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6046 {
6047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6048 result = (int)(arg1)->GetHeight();
6049
6050 wxPyEndAllowThreads(__tstate);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
c370783e 6053 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6054 return resultobj;
6055 fail:
6056 return NULL;
6057}
6058
6059
c370783e 6060static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6061 PyObject *resultobj;
6062 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6063 wxRect result;
6064 PyObject * obj0 = 0 ;
6065 char *kwnames[] = {
6066 (char *) "self", NULL
6067 };
6068
6069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (arg1)->GetRect();
6075
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 {
6080 wxRect * resultptr;
6081 resultptr = new wxRect((wxRect &) result);
6082 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6083 }
6084 return resultobj;
6085 fail:
6086 return NULL;
6087}
6088
6089
c370783e 6090static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6091 PyObject *resultobj;
6092 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6093 bool result;
6094 PyObject * obj0 = 0 ;
6095 char *kwnames[] = {
6096 (char *) "self", NULL
6097 };
6098
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6102 {
6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
6104 result = (bool)(arg1)->HaveRects();
6105
6106 wxPyEndAllowThreads(__tstate);
6107 if (PyErr_Occurred()) SWIG_fail;
6108 }
6109 {
6110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6111 }
6112 return resultobj;
6113 fail:
6114 return NULL;
6115}
6116
6117
c370783e 6118static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6119 PyObject *resultobj;
6120 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6121 PyObject * obj0 = 0 ;
6122 char *kwnames[] = {
6123 (char *) "self", NULL
6124 };
6125
6126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 (arg1)->Reset();
6132
6133 wxPyEndAllowThreads(__tstate);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 Py_INCREF(Py_None); resultobj = Py_None;
6137 return resultobj;
6138 fail:
6139 return NULL;
6140}
6141
6142
c370783e 6143static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6144 PyObject *resultobj;
6145 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6146 PyObject * obj0 = 0 ;
6147 char *kwnames[] = {
6148 (char *) "self", NULL
6149 };
6150
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6154 {
6155 PyThreadState* __tstate = wxPyBeginAllowThreads();
6156 wxRegionIterator_Next(arg1);
6157
6158 wxPyEndAllowThreads(__tstate);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 Py_INCREF(Py_None); resultobj = Py_None;
6162 return resultobj;
6163 fail:
6164 return NULL;
6165}
6166
6167
c370783e 6168static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6169 PyObject *resultobj;
6170 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6171 bool result;
6172 PyObject * obj0 = 0 ;
6173 char *kwnames[] = {
6174 (char *) "self", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 result = (bool)wxRegionIterator___nonzero__(arg1);
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 {
6188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6189 }
6190 return resultobj;
6191 fail:
6192 return NULL;
6193}
6194
6195
c370783e 6196static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6197 PyObject *obj;
6198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6199 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6200 Py_INCREF(obj);
6201 return Py_BuildValue((char *)"");
6202}
c370783e 6203static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6204 PyObject *resultobj;
6205 wxNativeFontInfo *result;
6206 char *kwnames[] = {
6207 NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6214
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6219 return resultobj;
6220 fail:
6221 return NULL;
6222}
6223
6224
c370783e 6225static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6226 PyObject *resultobj;
6227 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6228 PyObject * obj0 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 delete arg1;
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 Py_INCREF(Py_None); resultobj = Py_None;
6244 return resultobj;
6245 fail:
6246 return NULL;
6247}
6248
6249
c370783e 6250static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6251 PyObject *resultobj;
6252 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6253 PyObject * obj0 = 0 ;
6254 char *kwnames[] = {
6255 (char *) "self", NULL
6256 };
6257
6258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 (arg1)->Init();
6264
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 Py_INCREF(Py_None); resultobj = Py_None;
6269 return resultobj;
6270 fail:
6271 return NULL;
6272}
6273
6274
c370783e 6275static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6276 PyObject *resultobj;
6277 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6278 wxFont *arg2 = 0 ;
6279 PyObject * obj0 = 0 ;
6280 PyObject * obj1 = 0 ;
6281 char *kwnames[] = {
6282 (char *) "self",(char *) "font", NULL
6283 };
6284
6285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6289 SWIG_POINTER_EXCEPTION | 0)) == -1)
6290 SWIG_fail;
6291 if (arg2 == NULL) {
6292 PyErr_SetString(PyExc_TypeError,"null reference");
6293 SWIG_fail;
6294 }
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 (arg1)->InitFromFont((wxFont const &)*arg2);
6298
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 Py_INCREF(Py_None); resultobj = Py_None;
6303 return resultobj;
6304 fail:
6305 return NULL;
6306}
6307
6308
c370783e 6309static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6310 PyObject *resultobj;
6311 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6312 int result;
6313 PyObject * obj0 = 0 ;
6314 char *kwnames[] = {
6315 (char *) "self", NULL
6316 };
6317
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
c370783e 6328 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6329 return resultobj;
6330 fail:
6331 return NULL;
6332}
6333
6334
c370783e 6335static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6336 PyObject *resultobj;
6337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6338 int result;
6339 PyObject * obj0 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self", NULL
6342 };
6343
6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6350
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
c370783e 6354 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6355 return resultobj;
6356 fail:
6357 return NULL;
6358}
6359
6360
c370783e 6361static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6362 PyObject *resultobj;
6363 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6364 int result;
6365 PyObject * obj0 = 0 ;
6366 char *kwnames[] = {
6367 (char *) "self", NULL
6368 };
6369
6370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
c370783e 6380 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6381 return resultobj;
6382 fail:
6383 return NULL;
6384}
6385
6386
c370783e 6387static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6388 PyObject *resultobj;
6389 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6390 bool result;
6391 PyObject * obj0 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 {
6407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6408 }
6409 return resultobj;
6410 fail:
6411 return NULL;
6412}
6413
6414
c370783e 6415static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6416 PyObject *resultobj;
6417 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6418 wxString result;
6419 PyObject * obj0 = 0 ;
6420 char *kwnames[] = {
6421 (char *) "self", NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6427 {
6428 PyThreadState* __tstate = wxPyBeginAllowThreads();
6429 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6430
6431 wxPyEndAllowThreads(__tstate);
6432 if (PyErr_Occurred()) SWIG_fail;
6433 }
6434 {
6435#if wxUSE_UNICODE
6436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6437#else
6438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6439#endif
6440 }
6441 return resultobj;
6442 fail:
6443 return NULL;
6444}
6445
6446
c370783e 6447static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6448 PyObject *resultobj;
6449 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6450 int result;
6451 PyObject * obj0 = 0 ;
6452 char *kwnames[] = {
6453 (char *) "self", NULL
6454 };
6455
6456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6459 {
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6462
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
c370783e 6466 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6467 return resultobj;
6468 fail:
6469 return NULL;
6470}
6471
6472
c370783e 6473static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6474 PyObject *resultobj;
6475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6476 int result;
6477 PyObject * obj0 = 0 ;
6478 char *kwnames[] = {
6479 (char *) "self", NULL
6480 };
6481
6482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6488
6489 wxPyEndAllowThreads(__tstate);
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
c370783e 6492 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6493 return resultobj;
6494 fail:
6495 return NULL;
6496}
6497
6498
c370783e 6499static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6500 PyObject *resultobj;
6501 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6502 int arg2 ;
6503 PyObject * obj0 = 0 ;
6504 PyObject * obj1 = 0 ;
6505 char *kwnames[] = {
6506 (char *) "self",(char *) "pointsize", NULL
6507 };
6508
6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6512 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6513 if (PyErr_Occurred()) SWIG_fail;
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->SetPointSize(arg2);
6517
6518 wxPyEndAllowThreads(__tstate);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 Py_INCREF(Py_None); resultobj = Py_None;
6522 return resultobj;
6523 fail:
6524 return NULL;
6525}
6526
6527
c370783e 6528static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6529 PyObject *resultobj;
6530 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6531 int arg2 ;
6532 PyObject * obj0 = 0 ;
6533 PyObject * obj1 = 0 ;
6534 char *kwnames[] = {
6535 (char *) "self",(char *) "style", NULL
6536 };
6537
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6541 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6542 if (PyErr_Occurred()) SWIG_fail;
6543 {
6544 PyThreadState* __tstate = wxPyBeginAllowThreads();
6545 (arg1)->SetStyle((wxFontStyle )arg2);
6546
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) SWIG_fail;
6549 }
6550 Py_INCREF(Py_None); resultobj = Py_None;
6551 return resultobj;
6552 fail:
6553 return NULL;
6554}
6555
6556
c370783e 6557static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6558 PyObject *resultobj;
6559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6560 int arg2 ;
6561 PyObject * obj0 = 0 ;
6562 PyObject * obj1 = 0 ;
6563 char *kwnames[] = {
6564 (char *) "self",(char *) "weight", NULL
6565 };
6566
6567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6570 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6571 if (PyErr_Occurred()) SWIG_fail;
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SetWeight((wxFontWeight )arg2);
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 Py_INCREF(Py_None); resultobj = Py_None;
6580 return resultobj;
6581 fail:
6582 return NULL;
6583}
6584
6585
c370783e 6586static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6587 PyObject *resultobj;
6588 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6589 bool arg2 ;
6590 PyObject * obj0 = 0 ;
6591 PyObject * obj1 = 0 ;
6592 char *kwnames[] = {
6593 (char *) "self",(char *) "underlined", NULL
6594 };
6595
6596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6599 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
6600 if (PyErr_Occurred()) SWIG_fail;
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 (arg1)->SetUnderlined(arg2);
6604
6605 wxPyEndAllowThreads(__tstate);
6606 if (PyErr_Occurred()) SWIG_fail;
6607 }
6608 Py_INCREF(Py_None); resultobj = Py_None;
6609 return resultobj;
6610 fail:
6611 return NULL;
6612}
6613
6614
c370783e 6615static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6616 PyObject *resultobj;
6617 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6618 wxString arg2 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "self",(char *) "facename", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6628 {
6629 wxString* sptr = wxString_in_helper(obj1);
6630 if (sptr == NULL) SWIG_fail;
6631 arg2 = *sptr;
6632 delete sptr;
6633 }
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 (arg1)->SetFaceName(arg2);
6637
6638 wxPyEndAllowThreads(__tstate);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 Py_INCREF(Py_None); resultobj = Py_None;
6642 return resultobj;
6643 fail:
6644 return NULL;
6645}
6646
6647
c370783e 6648static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6649 PyObject *resultobj;
6650 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6651 int arg2 ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char *kwnames[] = {
6655 (char *) "self",(char *) "family", NULL
6656 };
6657
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6661 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6662 if (PyErr_Occurred()) SWIG_fail;
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 (arg1)->SetFamily((wxFontFamily )arg2);
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 Py_INCREF(Py_None); resultobj = Py_None;
6671 return resultobj;
6672 fail:
6673 return NULL;
6674}
6675
6676
c370783e 6677static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6678 PyObject *resultobj;
6679 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6680 int arg2 ;
6681 PyObject * obj0 = 0 ;
6682 PyObject * obj1 = 0 ;
6683 char *kwnames[] = {
6684 (char *) "self",(char *) "encoding", NULL
6685 };
6686
6687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6690 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6691 if (PyErr_Occurred()) SWIG_fail;
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 (arg1)->SetEncoding((wxFontEncoding )arg2);
6695
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 Py_INCREF(Py_None); resultobj = Py_None;
6700 return resultobj;
6701 fail:
6702 return NULL;
6703}
6704
6705
c370783e 6706static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6707 PyObject *resultobj;
6708 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6709 wxString *arg2 = 0 ;
6710 bool result;
b411df4a 6711 bool temp2 = false ;
d55e5bfc
RD
6712 PyObject * obj0 = 0 ;
6713 PyObject * obj1 = 0 ;
6714 char *kwnames[] = {
6715 (char *) "self",(char *) "s", NULL
6716 };
6717
6718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6721 {
6722 arg2 = wxString_in_helper(obj1);
6723 if (arg2 == NULL) SWIG_fail;
b411df4a 6724 temp2 = true;
d55e5bfc
RD
6725 }
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 {
6734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6735 }
6736 {
6737 if (temp2)
6738 delete arg2;
6739 }
6740 return resultobj;
6741 fail:
6742 {
6743 if (temp2)
6744 delete arg2;
6745 }
6746 return NULL;
6747}
6748
6749
c370783e 6750static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6751 PyObject *resultobj;
6752 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6753 wxString result;
6754 PyObject * obj0 = 0 ;
6755 char *kwnames[] = {
6756 (char *) "self", NULL
6757 };
6758
6759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 result = ((wxNativeFontInfo const *)arg1)->ToString();
6765
6766 wxPyEndAllowThreads(__tstate);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 {
6770#if wxUSE_UNICODE
6771 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6772#else
6773 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6774#endif
6775 }
6776 return resultobj;
6777 fail:
6778 return NULL;
6779}
6780
6781
c370783e 6782static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6783 PyObject *resultobj;
6784 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6785 wxString result;
6786 PyObject * obj0 = 0 ;
6787 char *kwnames[] = {
6788 (char *) "self", NULL
6789 };
6790
6791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6794 {
6795 PyThreadState* __tstate = wxPyBeginAllowThreads();
6796 result = wxNativeFontInfo___str__(arg1);
6797
6798 wxPyEndAllowThreads(__tstate);
6799 if (PyErr_Occurred()) SWIG_fail;
6800 }
6801 {
6802#if wxUSE_UNICODE
6803 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6804#else
6805 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6806#endif
6807 }
6808 return resultobj;
6809 fail:
6810 return NULL;
6811}
6812
6813
c370783e 6814static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6815 PyObject *resultobj;
6816 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6817 wxString *arg2 = 0 ;
6818 bool result;
b411df4a 6819 bool temp2 = false ;
d55e5bfc
RD
6820 PyObject * obj0 = 0 ;
6821 PyObject * obj1 = 0 ;
6822 char *kwnames[] = {
6823 (char *) "self",(char *) "s", NULL
6824 };
6825
6826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6829 {
6830 arg2 = wxString_in_helper(obj1);
6831 if (arg2 == NULL) SWIG_fail;
b411df4a 6832 temp2 = true;
d55e5bfc
RD
6833 }
6834 {
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6837
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6843 }
6844 {
6845 if (temp2)
6846 delete arg2;
6847 }
6848 return resultobj;
6849 fail:
6850 {
6851 if (temp2)
6852 delete arg2;
6853 }
6854 return NULL;
6855}
6856
6857
c370783e 6858static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6859 PyObject *resultobj;
6860 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6861 wxString result;
6862 PyObject * obj0 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 {
6878#if wxUSE_UNICODE
6879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6880#else
6881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6882#endif
6883 }
6884 return resultobj;
6885 fail:
6886 return NULL;
6887}
6888
6889
c370783e 6890static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6891 PyObject *obj;
6892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6893 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6894 Py_INCREF(obj);
6895 return Py_BuildValue((char *)"");
6896}
c370783e 6897static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6898 PyObject *resultobj;
6899 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6900 wxString *arg2 = (wxString *) 0 ;
b411df4a 6901 bool temp2 = false ;
d55e5bfc
RD
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 char *kwnames[] = {
6905 (char *) "self",(char *) "facename", NULL
6906 };
6907
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6911 {
6912 arg2 = wxString_in_helper(obj1);
6913 if (arg2 == NULL) SWIG_fail;
b411df4a 6914 temp2 = true;
d55e5bfc
RD
6915 }
6916 if (arg1) (arg1)->facename = *arg2;
6917
6918 Py_INCREF(Py_None); resultobj = Py_None;
6919 {
6920 if (temp2)
6921 delete arg2;
6922 }
6923 return resultobj;
6924 fail:
6925 {
6926 if (temp2)
6927 delete arg2;
6928 }
6929 return NULL;
6930}
6931
6932
c370783e 6933static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6934 PyObject *resultobj;
6935 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6936 wxString *result;
6937 PyObject * obj0 = 0 ;
6938 char *kwnames[] = {
6939 (char *) "self", NULL
6940 };
6941
6942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6945 result = (wxString *)& ((arg1)->facename);
6946
6947 {
6948#if wxUSE_UNICODE
6949 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6950#else
6951 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6952#endif
6953 }
6954 return resultobj;
6955 fail:
6956 return NULL;
6957}
6958
6959
c370783e 6960static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6961 PyObject *resultobj;
6962 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6963 int arg2 ;
6964 PyObject * obj0 = 0 ;
6965 PyObject * obj1 = 0 ;
6966 char *kwnames[] = {
6967 (char *) "self",(char *) "encoding", NULL
6968 };
6969
6970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6973 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6974 if (PyErr_Occurred()) SWIG_fail;
6975 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6976
6977 Py_INCREF(Py_None); resultobj = Py_None;
6978 return resultobj;
6979 fail:
6980 return NULL;
6981}
6982
6983
c370783e 6984static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6985 PyObject *resultobj;
6986 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6987 int result;
6988 PyObject * obj0 = 0 ;
6989 char *kwnames[] = {
6990 (char *) "self", NULL
6991 };
6992
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6996 result = (int) ((arg1)->encoding);
6997
c370783e 6998 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6999 return resultobj;
7000 fail:
7001 return NULL;
7002}
7003
7004
c370783e 7005static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7006 PyObject *resultobj;
7007 wxNativeEncodingInfo *result;
7008 char *kwnames[] = {
7009 NULL
7010 };
7011
7012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7013 {
7014 PyThreadState* __tstate = wxPyBeginAllowThreads();
7015 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7016
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7021 return resultobj;
7022 fail:
7023 return NULL;
7024}
7025
7026
c370783e 7027static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7028 PyObject *resultobj;
7029 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7030 PyObject * obj0 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 delete arg1;
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 Py_INCREF(Py_None); resultobj = Py_None;
7046 return resultobj;
7047 fail:
7048 return NULL;
7049}
7050
7051
c370783e 7052static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7053 PyObject *resultobj;
7054 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7055 wxString *arg2 = 0 ;
7056 bool result;
b411df4a 7057 bool temp2 = false ;
d55e5bfc
RD
7058 PyObject * obj0 = 0 ;
7059 PyObject * obj1 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self",(char *) "s", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7067 {
7068 arg2 = wxString_in_helper(obj1);
7069 if (arg2 == NULL) SWIG_fail;
b411df4a 7070 temp2 = true;
d55e5bfc
RD
7071 }
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7075
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 {
7080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7081 }
7082 {
7083 if (temp2)
7084 delete arg2;
7085 }
7086 return resultobj;
7087 fail:
7088 {
7089 if (temp2)
7090 delete arg2;
7091 }
7092 return NULL;
7093}
7094
7095
c370783e 7096static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7097 PyObject *resultobj;
7098 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7099 wxString result;
7100 PyObject * obj0 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "self", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 {
7116#if wxUSE_UNICODE
7117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7118#else
7119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7120#endif
7121 }
7122 return resultobj;
7123 fail:
7124 return NULL;
7125}
7126
7127
c370783e 7128static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7129 PyObject *obj;
7130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7131 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7132 Py_INCREF(obj);
7133 return Py_BuildValue((char *)"");
7134}
c370783e 7135static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7136 PyObject *resultobj;
7137 int arg1 ;
7138 wxNativeEncodingInfo *result;
7139 PyObject * obj0 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "encoding", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
c370783e 7145 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7146 if (PyErr_Occurred()) SWIG_fail;
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7150
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7155 return resultobj;
7156 fail:
7157 return NULL;
7158}
7159
7160
c370783e 7161static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7162 PyObject *resultobj;
7163 wxNativeEncodingInfo *arg1 = 0 ;
7164 bool result;
7165 PyObject * obj0 = 0 ;
7166 char *kwnames[] = {
7167 (char *) "info", NULL
7168 };
7169
7170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7172 SWIG_POINTER_EXCEPTION | 0)) == -1)
7173 SWIG_fail;
7174 if (arg1 == NULL) {
7175 PyErr_SetString(PyExc_TypeError,"null reference");
7176 SWIG_fail;
7177 }
7178 {
7179 PyThreadState* __tstate = wxPyBeginAllowThreads();
7180 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7181
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 {
7186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7187 }
7188 return resultobj;
7189 fail:
7190 return NULL;
7191}
7192
7193
c370783e 7194static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7195 PyObject *resultobj;
7196 wxFontMapper *result;
7197 char *kwnames[] = {
7198 NULL
7199 };
7200
7201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7202 {
7203 PyThreadState* __tstate = wxPyBeginAllowThreads();
7204 result = (wxFontMapper *)new wxFontMapper();
7205
7206 wxPyEndAllowThreads(__tstate);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7210 return resultobj;
7211 fail:
7212 return NULL;
7213}
7214
7215
c370783e 7216static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7217 PyObject *resultobj;
7218 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7219 PyObject * obj0 = 0 ;
7220 char *kwnames[] = {
7221 (char *) "self", NULL
7222 };
7223
7224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 delete arg1;
7230
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 Py_INCREF(Py_None); resultobj = Py_None;
7235 return resultobj;
7236 fail:
7237 return NULL;
7238}
7239
7240
c370783e 7241static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7242 PyObject *resultobj;
7243 wxFontMapper *result;
7244 char *kwnames[] = {
7245 NULL
7246 };
7247
7248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7249 {
7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
7251 result = (wxFontMapper *)wxFontMapper::Get();
7252
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7257 return resultobj;
7258 fail:
7259 return NULL;
7260}
7261
7262
c370783e 7263static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7264 PyObject *resultobj;
7265 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7266 wxFontMapper *result;
7267 PyObject * obj0 = 0 ;
7268 char *kwnames[] = {
7269 (char *) "mapper", NULL
7270 };
7271
7272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7278
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7283 return resultobj;
7284 fail:
7285 return NULL;
7286}
7287
7288
c370783e 7289static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7290 PyObject *resultobj;
7291 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7292 wxString *arg2 = 0 ;
b411df4a 7293 bool arg3 = (bool) true ;
d55e5bfc 7294 int result;
b411df4a 7295 bool temp2 = false ;
d55e5bfc
RD
7296 PyObject * obj0 = 0 ;
7297 PyObject * obj1 = 0 ;
7298 PyObject * obj2 = 0 ;
7299 char *kwnames[] = {
7300 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7301 };
7302
7303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7306 {
7307 arg2 = wxString_in_helper(obj1);
7308 if (arg2 == NULL) SWIG_fail;
b411df4a 7309 temp2 = true;
d55e5bfc
RD
7310 }
7311 if (obj2) {
c370783e 7312 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
c370783e 7322 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7323 {
7324 if (temp2)
7325 delete arg2;
7326 }
7327 return resultobj;
7328 fail:
7329 {
7330 if (temp2)
7331 delete arg2;
7332 }
7333 return NULL;
7334}
7335
7336
c370783e 7337static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7338 PyObject *resultobj;
7339 size_t result;
7340 char *kwnames[] = {
7341 NULL
7342 };
7343
7344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
c370783e 7352 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
7353 return resultobj;
7354 fail:
7355 return NULL;
7356}
7357
7358
c370783e 7359static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7360 PyObject *resultobj;
7361 size_t arg1 ;
7362 int result;
7363 PyObject * obj0 = 0 ;
7364 char *kwnames[] = {
7365 (char *) "n", NULL
7366 };
7367
7368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
c370783e 7369 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7370 if (PyErr_Occurred()) SWIG_fail;
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 result = (int)wxFontMapper::GetEncoding(arg1);
7374
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
c370783e 7378 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7379 return resultobj;
7380 fail:
7381 return NULL;
7382}
7383
7384
c370783e 7385static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7386 PyObject *resultobj;
7387 int arg1 ;
7388 wxString result;
7389 PyObject * obj0 = 0 ;
7390 char *kwnames[] = {
7391 (char *) "encoding", NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
c370783e 7395 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7396 if (PyErr_Occurred()) SWIG_fail;
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 {
7405#if wxUSE_UNICODE
7406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7407#else
7408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7409#endif
7410 }
7411 return resultobj;
7412 fail:
7413 return NULL;
7414}
7415
7416
c370783e 7417static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7418 PyObject *resultobj;
7419 int arg1 ;
7420 wxString result;
7421 PyObject * obj0 = 0 ;
7422 char *kwnames[] = {
7423 (char *) "encoding", NULL
7424 };
7425
7426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
c370783e 7427 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7428 if (PyErr_Occurred()) SWIG_fail;
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 {
7437#if wxUSE_UNICODE
7438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7439#else
7440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7441#endif
7442 }
7443 return resultobj;
7444 fail:
7445 return NULL;
7446}
7447
7448
c370783e 7449static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7450 PyObject *resultobj;
7451 wxString *arg1 = 0 ;
7452 int result;
b411df4a 7453 bool temp1 = false ;
d55e5bfc
RD
7454 PyObject * obj0 = 0 ;
7455 char *kwnames[] = {
7456 (char *) "name", NULL
7457 };
7458
7459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7460 {
7461 arg1 = wxString_in_helper(obj0);
7462 if (arg1 == NULL) SWIG_fail;
b411df4a 7463 temp1 = true;
d55e5bfc
RD
7464 }
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
c370783e 7472 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7473 {
7474 if (temp1)
7475 delete arg1;
7476 }
7477 return resultobj;
7478 fail:
7479 {
7480 if (temp1)
7481 delete arg1;
7482 }
7483 return NULL;
7484}
7485
7486
c370783e 7487static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7488 PyObject *resultobj;
7489 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7490 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self",(char *) "config", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7502 {
7503 PyThreadState* __tstate = wxPyBeginAllowThreads();
7504 (arg1)->SetConfig(arg2);
7505
7506 wxPyEndAllowThreads(__tstate);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 }
7509 Py_INCREF(Py_None); resultobj = Py_None;
7510 return resultobj;
7511 fail:
7512 return NULL;
7513}
7514
7515
c370783e 7516static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7517 PyObject *resultobj;
7518 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7519 wxString *arg2 = 0 ;
b411df4a 7520 bool temp2 = false ;
d55e5bfc
RD
7521 PyObject * obj0 = 0 ;
7522 PyObject * obj1 = 0 ;
7523 char *kwnames[] = {
7524 (char *) "self",(char *) "prefix", NULL
7525 };
7526
7527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7530 {
7531 arg2 = wxString_in_helper(obj1);
7532 if (arg2 == NULL) SWIG_fail;
b411df4a 7533 temp2 = true;
d55e5bfc
RD
7534 }
7535 {
7536 PyThreadState* __tstate = wxPyBeginAllowThreads();
7537 (arg1)->SetConfigPath((wxString const &)*arg2);
7538
7539 wxPyEndAllowThreads(__tstate);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 Py_INCREF(Py_None); resultobj = Py_None;
7543 {
7544 if (temp2)
7545 delete arg2;
7546 }
7547 return resultobj;
7548 fail:
7549 {
7550 if (temp2)
7551 delete arg2;
7552 }
7553 return NULL;
7554}
7555
7556
c370783e 7557static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7558 PyObject *resultobj;
7559 wxString result;
7560 char *kwnames[] = {
7561 NULL
7562 };
7563
7564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = wxFontMapper::GetDefaultConfigPath();
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 {
7573#if wxUSE_UNICODE
7574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7575#else
7576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7577#endif
7578 }
7579 return resultobj;
7580 fail:
7581 return NULL;
7582}
7583
7584
c370783e 7585static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7586 PyObject *resultobj;
7587 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7588 int arg2 ;
7589 wxString const &arg3_defvalue = wxPyEmptyString ;
7590 wxString *arg3 = (wxString *) &arg3_defvalue ;
b411df4a 7591 bool arg4 = (bool) true ;
d55e5bfc 7592 PyObject *result;
b411df4a 7593 bool temp3 = false ;
d55e5bfc
RD
7594 PyObject * obj0 = 0 ;
7595 PyObject * obj1 = 0 ;
7596 PyObject * obj2 = 0 ;
7597 PyObject * obj3 = 0 ;
7598 char *kwnames[] = {
7599 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7605 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7606 if (PyErr_Occurred()) SWIG_fail;
7607 if (obj2) {
7608 {
7609 arg3 = wxString_in_helper(obj2);
7610 if (arg3 == NULL) SWIG_fail;
b411df4a 7611 temp3 = true;
d55e5bfc
RD
7612 }
7613 }
7614 if (obj3) {
c370783e 7615 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 {
7619 PyThreadState* __tstate = wxPyBeginAllowThreads();
7620 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 resultobj = result;
7626 {
7627 if (temp3)
7628 delete arg3;
7629 }
7630 return resultobj;
7631 fail:
7632 {
7633 if (temp3)
7634 delete arg3;
7635 }
7636 return NULL;
7637}
7638
7639
c370783e 7640static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7641 PyObject *resultobj;
7642 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7643 int arg2 ;
7644 wxString const &arg3_defvalue = wxPyEmptyString ;
7645 wxString *arg3 = (wxString *) &arg3_defvalue ;
7646 bool result;
b411df4a 7647 bool temp3 = false ;
d55e5bfc
RD
7648 PyObject * obj0 = 0 ;
7649 PyObject * obj1 = 0 ;
7650 PyObject * obj2 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7658 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7659 if (PyErr_Occurred()) SWIG_fail;
7660 if (obj2) {
7661 {
7662 arg3 = wxString_in_helper(obj2);
7663 if (arg3 == NULL) SWIG_fail;
b411df4a 7664 temp3 = true;
d55e5bfc
RD
7665 }
7666 }
7667 {
7668 PyThreadState* __tstate = wxPyBeginAllowThreads();
7669 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7670
7671 wxPyEndAllowThreads(__tstate);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 {
7675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7676 }
7677 {
7678 if (temp3)
7679 delete arg3;
7680 }
7681 return resultobj;
7682 fail:
7683 {
7684 if (temp3)
7685 delete arg3;
7686 }
7687 return NULL;
7688}
7689
7690
c370783e 7691static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7692 PyObject *resultobj;
7693 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7694 wxWindow *arg2 = (wxWindow *) 0 ;
7695 PyObject * obj0 = 0 ;
7696 PyObject * obj1 = 0 ;
7697 char *kwnames[] = {
7698 (char *) "self",(char *) "parent", NULL
7699 };
7700
7701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7704 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7706 {
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 (arg1)->SetDialogParent(arg2);
7709
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 Py_INCREF(Py_None); resultobj = Py_None;
7714 return resultobj;
7715 fail:
7716 return NULL;
7717}
7718
7719
c370783e 7720static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7721 PyObject *resultobj;
7722 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7723 wxString *arg2 = 0 ;
b411df4a 7724 bool temp2 = false ;
d55e5bfc
RD
7725 PyObject * obj0 = 0 ;
7726 PyObject * obj1 = 0 ;
7727 char *kwnames[] = {
7728 (char *) "self",(char *) "title", NULL
7729 };
7730
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7734 {
7735 arg2 = wxString_in_helper(obj1);
7736 if (arg2 == NULL) SWIG_fail;
b411df4a 7737 temp2 = true;
d55e5bfc
RD
7738 }
7739 {
7740 PyThreadState* __tstate = wxPyBeginAllowThreads();
7741 (arg1)->SetDialogTitle((wxString const &)*arg2);
7742
7743 wxPyEndAllowThreads(__tstate);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 Py_INCREF(Py_None); resultobj = Py_None;
7747 {
7748 if (temp2)
7749 delete arg2;
7750 }
7751 return resultobj;
7752 fail:
7753 {
7754 if (temp2)
7755 delete arg2;
7756 }
7757 return NULL;
7758}
7759
7760
c370783e 7761static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7762 PyObject *obj;
7763 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7764 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7765 Py_INCREF(obj);
7766 return Py_BuildValue((char *)"");
7767}
c370783e 7768static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7769 PyObject *resultobj;
7770 int arg1 ;
7771 int arg2 ;
7772 int arg3 ;
7773 int arg4 ;
b411df4a 7774 bool arg5 = (bool) false ;
d55e5bfc
RD
7775 wxString const &arg6_defvalue = wxPyEmptyString ;
7776 wxString *arg6 = (wxString *) &arg6_defvalue ;
7777 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7778 wxFont *result;
b411df4a 7779 bool temp6 = false ;
d55e5bfc
RD
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj1 = 0 ;
7782 PyObject * obj2 = 0 ;
7783 PyObject * obj3 = 0 ;
7784 PyObject * obj4 = 0 ;
7785 PyObject * obj5 = 0 ;
7786 PyObject * obj6 = 0 ;
7787 char *kwnames[] = {
7788 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7789 };
7790
7791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c370783e 7792 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 7793 if (PyErr_Occurred()) SWIG_fail;
c370783e 7794 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 7795 if (PyErr_Occurred()) SWIG_fail;
c370783e 7796 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 7797 if (PyErr_Occurred()) SWIG_fail;
c370783e 7798 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
7799 if (PyErr_Occurred()) SWIG_fail;
7800 if (obj4) {
c370783e 7801 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
7802 if (PyErr_Occurred()) SWIG_fail;
7803 }
7804 if (obj5) {
7805 {
7806 arg6 = wxString_in_helper(obj5);
7807 if (arg6 == NULL) SWIG_fail;
b411df4a 7808 temp6 = true;
d55e5bfc
RD
7809 }
7810 }
7811 if (obj6) {
c370783e 7812 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 {
0439c23b 7816 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7817 PyThreadState* __tstate = wxPyBeginAllowThreads();
7818 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7819
7820 wxPyEndAllowThreads(__tstate);
110da5b0 7821 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7822 }
7823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7824 {
7825 if (temp6)
7826 delete arg6;
7827 }
7828 return resultobj;
7829 fail:
7830 {
7831 if (temp6)
7832 delete arg6;
7833 }
7834 return NULL;
7835}
7836
7837
c370783e 7838static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7839 PyObject *resultobj;
7840 wxFont *arg1 = (wxFont *) 0 ;
7841 PyObject * obj0 = 0 ;
7842 char *kwnames[] = {
7843 (char *) "self", NULL
7844 };
7845
7846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7849 {
7850 PyThreadState* __tstate = wxPyBeginAllowThreads();
7851 delete arg1;
7852
7853 wxPyEndAllowThreads(__tstate);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 }
7856 Py_INCREF(Py_None); resultobj = Py_None;
7857 return resultobj;
7858 fail:
7859 return NULL;
7860}
7861
7862
c370783e 7863static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7864 PyObject *resultobj;
7865 wxNativeFontInfo *arg1 = 0 ;
7866 wxFont *result;
7867 PyObject * obj0 = 0 ;
7868 char *kwnames[] = {
7869 (char *) "info", NULL
7870 };
7871
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7874 SWIG_POINTER_EXCEPTION | 0)) == -1)
7875 SWIG_fail;
7876 if (arg1 == NULL) {
7877 PyErr_SetString(PyExc_TypeError,"null reference");
7878 SWIG_fail;
7879 }
7880 {
0439c23b 7881 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7882 PyThreadState* __tstate = wxPyBeginAllowThreads();
7883 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7884
7885 wxPyEndAllowThreads(__tstate);
110da5b0 7886 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7887 }
7888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7889 return resultobj;
7890 fail:
7891 return NULL;
7892}
7893
7894
c370783e 7895static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7896 PyObject *resultobj;
7897 wxString *arg1 = 0 ;
7898 wxFont *result;
b411df4a 7899 bool temp1 = false ;
d55e5bfc
RD
7900 PyObject * obj0 = 0 ;
7901 char *kwnames[] = {
7902 (char *) "info", NULL
7903 };
7904
7905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7906 {
7907 arg1 = wxString_in_helper(obj0);
7908 if (arg1 == NULL) SWIG_fail;
b411df4a 7909 temp1 = true;
d55e5bfc
RD
7910 }
7911 {
0439c23b 7912 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7913 PyThreadState* __tstate = wxPyBeginAllowThreads();
7914 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7915
7916 wxPyEndAllowThreads(__tstate);
110da5b0 7917 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7918 }
7919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7920 {
7921 if (temp1)
7922 delete arg1;
7923 }
7924 return resultobj;
7925 fail:
7926 {
7927 if (temp1)
7928 delete arg1;
7929 }
7930 return NULL;
7931}
7932
7933
c370783e 7934static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7935 PyObject *resultobj;
7936 int arg1 ;
7937 int arg2 ;
7938 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7939 wxString const &arg4_defvalue = wxPyEmptyString ;
7940 wxString *arg4 = (wxString *) &arg4_defvalue ;
7941 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7942 wxFont *result;
b411df4a 7943 bool temp4 = false ;
d55e5bfc
RD
7944 PyObject * obj0 = 0 ;
7945 PyObject * obj1 = 0 ;
7946 PyObject * obj2 = 0 ;
7947 PyObject * obj3 = 0 ;
7948 PyObject * obj4 = 0 ;
7949 char *kwnames[] = {
7950 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7951 };
7952
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
c370783e 7954 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 7955 if (PyErr_Occurred()) SWIG_fail;
c370783e 7956 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7957 if (PyErr_Occurred()) SWIG_fail;
7958 if (obj2) {
c370783e 7959 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 if (obj3) {
7963 {
7964 arg4 = wxString_in_helper(obj3);
7965 if (arg4 == NULL) SWIG_fail;
b411df4a 7966 temp4 = true;
d55e5bfc
RD
7967 }
7968 }
7969 if (obj4) {
c370783e 7970 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 {
0439c23b 7974 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7977
7978 wxPyEndAllowThreads(__tstate);
110da5b0 7979 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7980 }
7981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7982 {
7983 if (temp4)
7984 delete arg4;
7985 }
7986 return resultobj;
7987 fail:
7988 {
7989 if (temp4)
7990 delete arg4;
7991 }
7992 return NULL;
7993}
7994
7995
5e483524
RD
7996static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj;
7998 wxSize *arg1 = 0 ;
7999 int arg2 ;
8000 int arg3 ;
8001 int arg4 ;
8002 bool arg5 = (bool) false ;
8003 wxString const &arg6_defvalue = wxEmptyString ;
8004 wxString *arg6 = (wxString *) &arg6_defvalue ;
8005 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8006 wxFont *result;
8007 wxSize temp1 ;
8008 bool temp6 = false ;
8009 PyObject * obj0 = 0 ;
8010 PyObject * obj1 = 0 ;
8011 PyObject * obj2 = 0 ;
8012 PyObject * obj3 = 0 ;
8013 PyObject * obj4 = 0 ;
8014 PyObject * obj5 = 0 ;
8015 PyObject * obj6 = 0 ;
8016 char *kwnames[] = {
8017 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
8018 };
8019
8020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8021 {
8022 arg1 = &temp1;
8023 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
8024 }
8025 arg2 = (int)SWIG_As_int(obj1);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 arg3 = (int)SWIG_As_int(obj2);
8028 if (PyErr_Occurred()) SWIG_fail;
8029 arg4 = (int)SWIG_As_int(obj3);
8030 if (PyErr_Occurred()) SWIG_fail;
8031 if (obj4) {
8032 arg5 = (bool)SWIG_As_bool(obj4);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 if (obj5) {
8036 {
8037 arg6 = wxString_in_helper(obj5);
8038 if (arg6 == NULL) SWIG_fail;
8039 temp6 = true;
8040 }
8041 }
8042 if (obj6) {
8043 arg7 = (int)SWIG_As_int(obj6);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 {
8047 if (!wxPyCheckForApp()) SWIG_fail;
8048 PyThreadState* __tstate = wxPyBeginAllowThreads();
8049 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8050
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8055 {
8056 if (temp6)
8057 delete arg6;
8058 }
8059 return resultobj;
8060 fail:
8061 {
8062 if (temp6)
8063 delete arg6;
8064 }
8065 return NULL;
8066}
8067
8068
c370783e 8069static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8070 PyObject *resultobj;
8071 wxFont *arg1 = (wxFont *) 0 ;
8072 bool result;
8073 PyObject * obj0 = 0 ;
8074 char *kwnames[] = {
8075 (char *) "self", NULL
8076 };
8077
8078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8081 {
8082 PyThreadState* __tstate = wxPyBeginAllowThreads();
8083 result = (bool)((wxFont const *)arg1)->Ok();
8084
8085 wxPyEndAllowThreads(__tstate);
8086 if (PyErr_Occurred()) SWIG_fail;
8087 }
8088 {
8089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8090 }
8091 return resultobj;
8092 fail:
8093 return NULL;
8094}
8095
8096
c370783e 8097static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8098 PyObject *resultobj;
8099 wxFont *arg1 = (wxFont *) 0 ;
8100 wxFont *arg2 = (wxFont *) 0 ;
8101 bool result;
8102 PyObject * obj0 = 0 ;
8103 PyObject * obj1 = 0 ;
8104 char *kwnames[] = {
8105 (char *) "self",(char *) "other", NULL
8106 };
8107
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 {
8121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8122 }
8123 return resultobj;
8124 fail:
8125 return NULL;
8126}
8127
8128
c370783e 8129static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8130 PyObject *resultobj;
8131 wxFont *arg1 = (wxFont *) 0 ;
8132 wxFont *arg2 = (wxFont *) 0 ;
8133 bool result;
8134 PyObject * obj0 = 0 ;
8135 PyObject * obj1 = 0 ;
8136 char *kwnames[] = {
8137 (char *) "self",(char *) "other", NULL
8138 };
8139
8140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8145 {
8146 PyThreadState* __tstate = wxPyBeginAllowThreads();
8147 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8148
8149 wxPyEndAllowThreads(__tstate);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 {
8153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8154 }
8155 return resultobj;
8156 fail:
8157 return NULL;
8158}
8159
8160
c370783e 8161static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8162 PyObject *resultobj;
8163 wxFont *arg1 = (wxFont *) 0 ;
8164 int result;
8165 PyObject * obj0 = 0 ;
8166 char *kwnames[] = {
8167 (char *) "self", NULL
8168 };
8169
8170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8173 {
8174 PyThreadState* __tstate = wxPyBeginAllowThreads();
8175 result = (int)((wxFont const *)arg1)->GetPointSize();
8176
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
c370783e 8180 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8181 return resultobj;
8182 fail:
8183 return NULL;
8184}
8185
8186
5e483524
RD
8187static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8188 PyObject *resultobj;
8189 wxFont *arg1 = (wxFont *) 0 ;
8190 wxSize result;
8191 PyObject * obj0 = 0 ;
8192 char *kwnames[] = {
8193 (char *) "self", NULL
8194 };
8195
8196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
8197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8199 {
8200 PyThreadState* __tstate = wxPyBeginAllowThreads();
8201 result = ((wxFont const *)arg1)->GetPixelSize();
8202
8203 wxPyEndAllowThreads(__tstate);
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 {
8207 wxSize * resultptr;
8208 resultptr = new wxSize((wxSize &) result);
8209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8210 }
8211 return resultobj;
8212 fail:
8213 return NULL;
8214}
8215
8216
8217static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
8218 PyObject *resultobj;
8219 wxFont *arg1 = (wxFont *) 0 ;
8220 bool result;
8221 PyObject * obj0 = 0 ;
8222 char *kwnames[] = {
8223 (char *) "self", NULL
8224 };
8225
8226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
8227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8229 {
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
8232
8233 wxPyEndAllowThreads(__tstate);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 {
8237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8238 }
8239 return resultobj;
8240 fail:
8241 return NULL;
8242}
8243
8244
c370783e 8245static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8246 PyObject *resultobj;
8247 wxFont *arg1 = (wxFont *) 0 ;
8248 int result;
8249 PyObject * obj0 = 0 ;
8250 char *kwnames[] = {
8251 (char *) "self", NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8257 {
8258 PyThreadState* __tstate = wxPyBeginAllowThreads();
8259 result = (int)((wxFont const *)arg1)->GetFamily();
8260
8261 wxPyEndAllowThreads(__tstate);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
c370783e 8264 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8265 return resultobj;
8266 fail:
8267 return NULL;
8268}
8269
8270
c370783e 8271static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8272 PyObject *resultobj;
8273 wxFont *arg1 = (wxFont *) 0 ;
8274 int result;
8275 PyObject * obj0 = 0 ;
8276 char *kwnames[] = {
8277 (char *) "self", NULL
8278 };
8279
8280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8283 {
8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
8285 result = (int)((wxFont const *)arg1)->GetStyle();
8286
8287 wxPyEndAllowThreads(__tstate);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
c370783e 8290 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8291 return resultobj;
8292 fail:
8293 return NULL;
8294}
8295
8296
c370783e 8297static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8298 PyObject *resultobj;
8299 wxFont *arg1 = (wxFont *) 0 ;
8300 int result;
8301 PyObject * obj0 = 0 ;
8302 char *kwnames[] = {
8303 (char *) "self", NULL
8304 };
8305
8306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 result = (int)((wxFont const *)arg1)->GetWeight();
8312
8313 wxPyEndAllowThreads(__tstate);
8314 if (PyErr_Occurred()) SWIG_fail;
8315 }
c370783e 8316 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8317 return resultobj;
8318 fail:
8319 return NULL;
8320}
8321
8322
c370783e 8323static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8324 PyObject *resultobj;
8325 wxFont *arg1 = (wxFont *) 0 ;
8326 bool result;
8327 PyObject * obj0 = 0 ;
8328 char *kwnames[] = {
8329 (char *) "self", NULL
8330 };
8331
8332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8335 {
8336 PyThreadState* __tstate = wxPyBeginAllowThreads();
8337 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8338
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 {
8343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8344 }
8345 return resultobj;
8346 fail:
8347 return NULL;
8348}
8349
8350
c370783e 8351static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8352 PyObject *resultobj;
8353 wxFont *arg1 = (wxFont *) 0 ;
8354 wxString result;
8355 PyObject * obj0 = 0 ;
8356 char *kwnames[] = {
8357 (char *) "self", NULL
8358 };
8359
8360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8363 {
8364 PyThreadState* __tstate = wxPyBeginAllowThreads();
8365 result = ((wxFont const *)arg1)->GetFaceName();
8366
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 {
8371#if wxUSE_UNICODE
8372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8373#else
8374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8375#endif
8376 }
8377 return resultobj;
8378 fail:
8379 return NULL;
8380}
8381
8382
c370783e 8383static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8384 PyObject *resultobj;
8385 wxFont *arg1 = (wxFont *) 0 ;
8386 int result;
8387 PyObject * obj0 = 0 ;
8388 char *kwnames[] = {
8389 (char *) "self", NULL
8390 };
8391
8392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8395 {
8396 PyThreadState* __tstate = wxPyBeginAllowThreads();
8397 result = (int)((wxFont const *)arg1)->GetEncoding();
8398
8399 wxPyEndAllowThreads(__tstate);
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
c370783e 8402 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8403 return resultobj;
8404 fail:
8405 return NULL;
8406}
8407
8408
c370783e 8409static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8410 PyObject *resultobj;
8411 wxFont *arg1 = (wxFont *) 0 ;
8412 wxNativeFontInfo *result;
8413 PyObject * obj0 = 0 ;
8414 char *kwnames[] = {
8415 (char *) "self", NULL
8416 };
8417
8418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8429 return resultobj;
8430 fail:
8431 return NULL;
8432}
8433
8434
c370783e 8435static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8436 PyObject *resultobj;
8437 wxFont *arg1 = (wxFont *) 0 ;
8438 bool result;
8439 PyObject * obj0 = 0 ;
8440 char *kwnames[] = {
8441 (char *) "self", NULL
8442 };
8443
8444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8450
8451 wxPyEndAllowThreads(__tstate);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 {
8455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8456 }
8457 return resultobj;
8458 fail:
8459 return NULL;
8460}
8461
8462
c370783e 8463static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8464 PyObject *resultobj;
8465 wxFont *arg1 = (wxFont *) 0 ;
8466 wxString result;
8467 PyObject * obj0 = 0 ;
8468 char *kwnames[] = {
8469 (char *) "self", NULL
8470 };
8471
8472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8475 {
8476 PyThreadState* __tstate = wxPyBeginAllowThreads();
8477 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8478
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 {
8483#if wxUSE_UNICODE
8484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8485#else
8486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8487#endif
8488 }
8489 return resultobj;
8490 fail:
8491 return NULL;
8492}
8493
8494
c370783e 8495static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8496 PyObject *resultobj;
8497 wxFont *arg1 = (wxFont *) 0 ;
8498 wxString result;
8499 PyObject * obj0 = 0 ;
8500 char *kwnames[] = {
8501 (char *) "self", NULL
8502 };
8503
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8507 {
8508 PyThreadState* __tstate = wxPyBeginAllowThreads();
8509 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8510
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 {
8515#if wxUSE_UNICODE
8516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8517#else
8518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8519#endif
8520 }
8521 return resultobj;
8522 fail:
8523 return NULL;
8524}
8525
8526
c370783e 8527static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8528 PyObject *resultobj;
8529 wxFont *arg1 = (wxFont *) 0 ;
8530 int arg2 ;
8531 PyObject * obj0 = 0 ;
8532 PyObject * obj1 = 0 ;
8533 char *kwnames[] = {
8534 (char *) "self",(char *) "pointSize", NULL
8535 };
8536
8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8540 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8541 if (PyErr_Occurred()) SWIG_fail;
8542 {
8543 PyThreadState* __tstate = wxPyBeginAllowThreads();
8544 (arg1)->SetPointSize(arg2);
8545
8546 wxPyEndAllowThreads(__tstate);
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 Py_INCREF(Py_None); resultobj = Py_None;
8550 return resultobj;
8551 fail:
8552 return NULL;
8553}
8554
8555
5e483524
RD
8556static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8557 PyObject *resultobj;
8558 wxFont *arg1 = (wxFont *) 0 ;
8559 wxSize *arg2 = 0 ;
8560 wxSize temp2 ;
8561 PyObject * obj0 = 0 ;
8562 PyObject * obj1 = 0 ;
8563 char *kwnames[] = {
8564 (char *) "self",(char *) "pixelSize", NULL
8565 };
8566
8567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8570 {
8571 arg2 = &temp2;
8572 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8573 }
8574 {
8575 PyThreadState* __tstate = wxPyBeginAllowThreads();
8576 (arg1)->SetPixelSize((wxSize const &)*arg2);
8577
8578 wxPyEndAllowThreads(__tstate);
8579 if (PyErr_Occurred()) SWIG_fail;
8580 }
8581 Py_INCREF(Py_None); resultobj = Py_None;
8582 return resultobj;
8583 fail:
8584 return NULL;
8585}
8586
8587
c370783e 8588static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8589 PyObject *resultobj;
8590 wxFont *arg1 = (wxFont *) 0 ;
8591 int arg2 ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 char *kwnames[] = {
8595 (char *) "self",(char *) "family", NULL
8596 };
8597
8598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8601 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8602 if (PyErr_Occurred()) SWIG_fail;
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 (arg1)->SetFamily(arg2);
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 Py_INCREF(Py_None); resultobj = Py_None;
8611 return resultobj;
8612 fail:
8613 return NULL;
8614}
8615
8616
c370783e 8617static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8618 PyObject *resultobj;
8619 wxFont *arg1 = (wxFont *) 0 ;
8620 int arg2 ;
8621 PyObject * obj0 = 0 ;
8622 PyObject * obj1 = 0 ;
8623 char *kwnames[] = {
8624 (char *) "self",(char *) "style", NULL
8625 };
8626
8627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8630 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8631 if (PyErr_Occurred()) SWIG_fail;
8632 {
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 (arg1)->SetStyle(arg2);
8635
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 Py_INCREF(Py_None); resultobj = Py_None;
8640 return resultobj;
8641 fail:
8642 return NULL;
8643}
8644
8645
c370783e 8646static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8647 PyObject *resultobj;
8648 wxFont *arg1 = (wxFont *) 0 ;
8649 int arg2 ;
8650 PyObject * obj0 = 0 ;
8651 PyObject * obj1 = 0 ;
8652 char *kwnames[] = {
8653 (char *) "self",(char *) "weight", NULL
8654 };
8655
8656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8659 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8660 if (PyErr_Occurred()) SWIG_fail;
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 (arg1)->SetWeight(arg2);
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 Py_INCREF(Py_None); resultobj = Py_None;
8669 return resultobj;
8670 fail:
8671 return NULL;
8672}
8673
8674
c370783e 8675static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8676 PyObject *resultobj;
8677 wxFont *arg1 = (wxFont *) 0 ;
8678 wxString *arg2 = 0 ;
b411df4a 8679 bool temp2 = false ;
d55e5bfc
RD
8680 PyObject * obj0 = 0 ;
8681 PyObject * obj1 = 0 ;
8682 char *kwnames[] = {
8683 (char *) "self",(char *) "faceName", NULL
8684 };
8685
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8689 {
8690 arg2 = wxString_in_helper(obj1);
8691 if (arg2 == NULL) SWIG_fail;
b411df4a 8692 temp2 = true;
d55e5bfc
RD
8693 }
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->SetFaceName((wxString const &)*arg2);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 Py_INCREF(Py_None); resultobj = Py_None;
8702 {
8703 if (temp2)
8704 delete arg2;
8705 }
8706 return resultobj;
8707 fail:
8708 {
8709 if (temp2)
8710 delete arg2;
8711 }
8712 return NULL;
8713}
8714
8715
c370783e 8716static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8717 PyObject *resultobj;
8718 wxFont *arg1 = (wxFont *) 0 ;
8719 bool arg2 ;
8720 PyObject * obj0 = 0 ;
8721 PyObject * obj1 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self",(char *) "underlined", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8729 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8730 if (PyErr_Occurred()) SWIG_fail;
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 (arg1)->SetUnderlined(arg2);
8734
8735 wxPyEndAllowThreads(__tstate);
8736 if (PyErr_Occurred()) SWIG_fail;
8737 }
8738 Py_INCREF(Py_None); resultobj = Py_None;
8739 return resultobj;
8740 fail:
8741 return NULL;
8742}
8743
8744
c370783e 8745static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8746 PyObject *resultobj;
8747 wxFont *arg1 = (wxFont *) 0 ;
8748 int arg2 ;
8749 PyObject * obj0 = 0 ;
8750 PyObject * obj1 = 0 ;
8751 char *kwnames[] = {
8752 (char *) "self",(char *) "encoding", NULL
8753 };
8754
8755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8758 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8759 if (PyErr_Occurred()) SWIG_fail;
8760 {
8761 PyThreadState* __tstate = wxPyBeginAllowThreads();
8762 (arg1)->SetEncoding((wxFontEncoding )arg2);
8763
8764 wxPyEndAllowThreads(__tstate);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 }
8767 Py_INCREF(Py_None); resultobj = Py_None;
8768 return resultobj;
8769 fail:
8770 return NULL;
8771}
8772
8773
c370783e 8774static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8775 PyObject *resultobj;
8776 wxFont *arg1 = (wxFont *) 0 ;
8777 wxNativeFontInfo *arg2 = 0 ;
8778 PyObject * obj0 = 0 ;
8779 PyObject * obj1 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "self",(char *) "info", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8788 SWIG_POINTER_EXCEPTION | 0)) == -1)
8789 SWIG_fail;
8790 if (arg2 == NULL) {
8791 PyErr_SetString(PyExc_TypeError,"null reference");
8792 SWIG_fail;
8793 }
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 Py_INCREF(Py_None); resultobj = Py_None;
8802 return resultobj;
8803 fail:
8804 return NULL;
8805}
8806
8807
c370783e 8808static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8809 PyObject *resultobj;
8810 wxFont *arg1 = (wxFont *) 0 ;
8811 wxString *arg2 = 0 ;
b411df4a 8812 bool temp2 = false ;
d55e5bfc
RD
8813 PyObject * obj0 = 0 ;
8814 PyObject * obj1 = 0 ;
8815 char *kwnames[] = {
8816 (char *) "self",(char *) "info", NULL
8817 };
8818
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8822 {
8823 arg2 = wxString_in_helper(obj1);
8824 if (arg2 == NULL) SWIG_fail;
b411df4a 8825 temp2 = true;
d55e5bfc
RD
8826 }
8827 {
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8830
8831 wxPyEndAllowThreads(__tstate);
8832 if (PyErr_Occurred()) SWIG_fail;
8833 }
8834 Py_INCREF(Py_None); resultobj = Py_None;
8835 {
8836 if (temp2)
8837 delete arg2;
8838 }
8839 return resultobj;
8840 fail:
8841 {
8842 if (temp2)
8843 delete arg2;
8844 }
8845 return NULL;
8846}
8847
8848
c370783e 8849static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8850 PyObject *resultobj;
8851 wxFont *arg1 = (wxFont *) 0 ;
8852 wxString *arg2 = 0 ;
b411df4a 8853 bool temp2 = false ;
d55e5bfc
RD
8854 PyObject * obj0 = 0 ;
8855 PyObject * obj1 = 0 ;
8856 char *kwnames[] = {
8857 (char *) "self",(char *) "info", NULL
8858 };
8859
8860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8863 {
8864 arg2 = wxString_in_helper(obj1);
8865 if (arg2 == NULL) SWIG_fail;
b411df4a 8866 temp2 = true;
d55e5bfc
RD
8867 }
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 Py_INCREF(Py_None); resultobj = Py_None;
8876 {
8877 if (temp2)
8878 delete arg2;
8879 }
8880 return resultobj;
8881 fail:
8882 {
8883 if (temp2)
8884 delete arg2;
8885 }
8886 return NULL;
8887}
8888
8889
c370783e 8890static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8891 PyObject *resultobj;
8892 wxFont *arg1 = (wxFont *) 0 ;
8893 wxString result;
8894 PyObject * obj0 = 0 ;
8895 char *kwnames[] = {
8896 (char *) "self", NULL
8897 };
8898
8899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8902 {
8903 PyThreadState* __tstate = wxPyBeginAllowThreads();
8904 result = ((wxFont const *)arg1)->GetFamilyString();
8905
8906 wxPyEndAllowThreads(__tstate);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 }
8909 {
8910#if wxUSE_UNICODE
8911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8912#else
8913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8914#endif
8915 }
8916 return resultobj;
8917 fail:
8918 return NULL;
8919}
8920
8921
c370783e 8922static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8923 PyObject *resultobj;
8924 wxFont *arg1 = (wxFont *) 0 ;
8925 wxString result;
8926 PyObject * obj0 = 0 ;
8927 char *kwnames[] = {
8928 (char *) "self", NULL
8929 };
8930
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = ((wxFont const *)arg1)->GetStyleString();
8937
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 {
8942#if wxUSE_UNICODE
8943 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8944#else
8945 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8946#endif
8947 }
8948 return resultobj;
8949 fail:
8950 return NULL;
8951}
8952
8953
c370783e 8954static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8955 PyObject *resultobj;
8956 wxFont *arg1 = (wxFont *) 0 ;
8957 wxString result;
8958 PyObject * obj0 = 0 ;
8959 char *kwnames[] = {
8960 (char *) "self", NULL
8961 };
8962
8963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8966 {
8967 PyThreadState* __tstate = wxPyBeginAllowThreads();
8968 result = ((wxFont const *)arg1)->GetWeightString();
8969
8970 wxPyEndAllowThreads(__tstate);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 {
8974#if wxUSE_UNICODE
8975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8976#else
8977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8978#endif
8979 }
8980 return resultobj;
8981 fail:
8982 return NULL;
8983}
8984
8985
c370783e 8986static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8987 PyObject *resultobj;
8988 wxFont *arg1 = (wxFont *) 0 ;
b411df4a 8989 bool arg2 = (bool) true ;
d55e5bfc
RD
8990 PyObject * obj0 = 0 ;
8991 PyObject * obj1 = 0 ;
8992 char *kwnames[] = {
8993 (char *) "self",(char *) "no", NULL
8994 };
8995
8996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8999 if (obj1) {
c370783e 9000 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 {
9004 PyThreadState* __tstate = wxPyBeginAllowThreads();
9005 (arg1)->SetNoAntiAliasing(arg2);
9006
9007 wxPyEndAllowThreads(__tstate);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 Py_INCREF(Py_None); resultobj = Py_None;
9011 return resultobj;
9012 fail:
9013 return NULL;
9014}
9015
9016
c370783e 9017static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9018 PyObject *resultobj;
9019 wxFont *arg1 = (wxFont *) 0 ;
9020 bool result;
9021 PyObject * obj0 = 0 ;
9022 char *kwnames[] = {
9023 (char *) "self", NULL
9024 };
9025
9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
92379a03 9031 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d55e5bfc
RD
9032
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 {
9037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9038 }
9039 return resultobj;
9040 fail:
9041 return NULL;
9042}
9043
9044
c370783e 9045static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9046 PyObject *resultobj;
9047 int result;
9048 char *kwnames[] = {
9049 NULL
9050 };
9051
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9053 {
0439c23b 9054 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 result = (int)wxFont::GetDefaultEncoding();
9057
9058 wxPyEndAllowThreads(__tstate);
110da5b0 9059 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9060 }
c370783e 9061 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9062 return resultobj;
9063 fail:
9064 return NULL;
9065}
9066
9067
c370783e 9068static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9069 PyObject *resultobj;
9070 int arg1 ;
9071 PyObject * obj0 = 0 ;
9072 char *kwnames[] = {
9073 (char *) "encoding", NULL
9074 };
9075
9076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
c370783e 9077 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9078 if (PyErr_Occurred()) SWIG_fail;
9079 {
0439c23b 9080 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9083
9084 wxPyEndAllowThreads(__tstate);
110da5b0 9085 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9086 }
9087 Py_INCREF(Py_None); resultobj = Py_None;
9088 return resultobj;
9089 fail:
9090 return NULL;
9091}
9092
9093
c370783e 9094static PyObject * Font_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9095 PyObject *obj;
9096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9097 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9098 Py_INCREF(obj);
9099 return Py_BuildValue((char *)"");
9100}
c370783e 9101static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9102 PyObject *resultobj;
9103 wxPyFontEnumerator *result;
9104 char *kwnames[] = {
9105 NULL
9106 };
9107
9108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9109 {
0439c23b 9110 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9113
9114 wxPyEndAllowThreads(__tstate);
110da5b0 9115 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9116 }
9117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9118 return resultobj;
9119 fail:
9120 return NULL;
9121}
9122
9123
c370783e 9124static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9125 PyObject *resultobj;
9126 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9127 PyObject * obj0 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9135 {
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 delete arg1;
9138
9139 wxPyEndAllowThreads(__tstate);
9140 if (PyErr_Occurred()) SWIG_fail;
9141 }
9142 Py_INCREF(Py_None); resultobj = Py_None;
9143 return resultobj;
9144 fail:
9145 return NULL;
9146}
9147
9148
c370783e 9149static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9150 PyObject *resultobj;
9151 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9152 PyObject *arg2 = (PyObject *) 0 ;
9153 PyObject *arg3 = (PyObject *) 0 ;
9154 bool arg4 ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 PyObject * obj2 = 0 ;
9158 PyObject * obj3 = 0 ;
9159 char *kwnames[] = {
9160 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9161 };
9162
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9166 arg2 = obj1;
9167 arg3 = obj2;
c370783e 9168 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
9169 if (PyErr_Occurred()) SWIG_fail;
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9173
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 Py_INCREF(Py_None); resultobj = Py_None;
9178 return resultobj;
9179 fail:
9180 return NULL;
9181}
9182
9183
c370783e 9184static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9185 PyObject *resultobj;
9186 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9187 int arg2 = (int) wxFONTENCODING_SYSTEM ;
b411df4a 9188 bool arg3 = (bool) false ;
d55e5bfc
RD
9189 bool result;
9190 PyObject * obj0 = 0 ;
9191 PyObject * obj1 = 0 ;
9192 PyObject * obj2 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9200 if (obj1) {
c370783e 9201 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 if (obj2) {
c370783e 9205 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 {
9209 PyThreadState* __tstate = wxPyBeginAllowThreads();
9210 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9211
9212 wxPyEndAllowThreads(__tstate);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 {
9216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9217 }
9218 return resultobj;
9219 fail:
9220 return NULL;
9221}
9222
9223
c370783e 9224static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9225 PyObject *resultobj;
9226 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9227 wxString const &arg2_defvalue = wxPyEmptyString ;
9228 wxString *arg2 = (wxString *) &arg2_defvalue ;
9229 bool result;
b411df4a 9230 bool temp2 = false ;
d55e5bfc
RD
9231 PyObject * obj0 = 0 ;
9232 PyObject * obj1 = 0 ;
9233 char *kwnames[] = {
9234 (char *) "self",(char *) "facename", NULL
9235 };
9236
9237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9240 if (obj1) {
9241 {
9242 arg2 = wxString_in_helper(obj1);
9243 if (arg2 == NULL) SWIG_fail;
b411df4a 9244 temp2 = true;
d55e5bfc
RD
9245 }
9246 }
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9250
9251 wxPyEndAllowThreads(__tstate);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 {
9255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9256 }
9257 {
9258 if (temp2)
9259 delete arg2;
9260 }
9261 return resultobj;
9262 fail:
9263 {
9264 if (temp2)
9265 delete arg2;
9266 }
9267 return NULL;
9268}
9269
9270
c370783e 9271static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9272 PyObject *resultobj;
9273 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9274 PyObject *result;
9275 PyObject * obj0 = 0 ;
9276 char *kwnames[] = {
9277 (char *) "self", NULL
9278 };
9279
9280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9283 {
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9286
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 resultobj = result;
9291 return resultobj;
9292 fail:
9293 return NULL;
9294}
9295
9296
c370783e 9297static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9298 PyObject *resultobj;
9299 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9300 PyObject *result;
9301 PyObject * obj0 = 0 ;
9302 char *kwnames[] = {
9303 (char *) "self", NULL
9304 };
9305
9306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 resultobj = result;
9317 return resultobj;
9318 fail:
9319 return NULL;
9320}
9321
9322
c370783e 9323static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9324 PyObject *obj;
9325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9326 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9327 Py_INCREF(obj);
9328 return Py_BuildValue((char *)"");
9329}
c370783e 9330static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9331 PyObject *resultobj;
9332 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9333 int arg2 ;
9334 PyObject * obj0 = 0 ;
9335 PyObject * obj1 = 0 ;
9336 char *kwnames[] = {
9337 (char *) "self",(char *) "Language", NULL
9338 };
9339
9340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 9343 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9344 if (PyErr_Occurred()) SWIG_fail;
9345 if (arg1) (arg1)->Language = arg2;
9346
9347 Py_INCREF(Py_None); resultobj = Py_None;
9348 return resultobj;
9349 fail:
9350 return NULL;
9351}
9352
9353
c370783e 9354static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9355 PyObject *resultobj;
9356 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9357 int result;
9358 PyObject * obj0 = 0 ;
9359 char *kwnames[] = {
9360 (char *) "self", NULL
9361 };
9362
9363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9366 result = (int) ((arg1)->Language);
9367
c370783e 9368 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9369 return resultobj;
9370 fail:
9371 return NULL;
9372}
9373
9374
c370783e 9375static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9376 PyObject *resultobj;
9377 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9378 wxString *arg2 = (wxString *) 0 ;
b411df4a 9379 bool temp2 = false ;
d55e5bfc
RD
9380 PyObject * obj0 = 0 ;
9381 PyObject * obj1 = 0 ;
9382 char *kwnames[] = {
9383 (char *) "self",(char *) "CanonicalName", NULL
9384 };
9385
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9389 {
9390 arg2 = wxString_in_helper(obj1);
9391 if (arg2 == NULL) SWIG_fail;
b411df4a 9392 temp2 = true;
d55e5bfc
RD
9393 }
9394 if (arg1) (arg1)->CanonicalName = *arg2;
9395
9396 Py_INCREF(Py_None); resultobj = Py_None;
9397 {
9398 if (temp2)
9399 delete arg2;
9400 }
9401 return resultobj;
9402 fail:
9403 {
9404 if (temp2)
9405 delete arg2;
9406 }
9407 return NULL;
9408}
9409
9410
c370783e 9411static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9412 PyObject *resultobj;
9413 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9414 wxString *result;
9415 PyObject * obj0 = 0 ;
9416 char *kwnames[] = {
9417 (char *) "self", NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9423 result = (wxString *)& ((arg1)->CanonicalName);
9424
9425 {
9426#if wxUSE_UNICODE
9427 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9428#else
9429 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9430#endif
9431 }
9432 return resultobj;
9433 fail:
9434 return NULL;
9435}
9436
9437
c370783e 9438static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9439 PyObject *resultobj;
9440 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9441 wxString *arg2 = (wxString *) 0 ;
b411df4a 9442 bool temp2 = false ;
d55e5bfc
RD
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 char *kwnames[] = {
9446 (char *) "self",(char *) "Description", NULL
9447 };
9448
9449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9452 {
9453 arg2 = wxString_in_helper(obj1);
9454 if (arg2 == NULL) SWIG_fail;
b411df4a 9455 temp2 = true;
d55e5bfc
RD
9456 }
9457 if (arg1) (arg1)->Description = *arg2;
9458
9459 Py_INCREF(Py_None); resultobj = Py_None;
9460 {
9461 if (temp2)
9462 delete arg2;
9463 }
9464 return resultobj;
9465 fail:
9466 {
9467 if (temp2)
9468 delete arg2;
9469 }
9470 return NULL;
9471}
9472
9473
c370783e 9474static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9475 PyObject *resultobj;
9476 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9477 wxString *result;
9478 PyObject * obj0 = 0 ;
9479 char *kwnames[] = {
9480 (char *) "self", NULL
9481 };
9482
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9486 result = (wxString *)& ((arg1)->Description);
9487
9488 {
9489#if wxUSE_UNICODE
9490 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9491#else
9492 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9493#endif
9494 }
9495 return resultobj;
9496 fail:
9497 return NULL;
9498}
9499
9500
c370783e 9501static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9502 PyObject *obj;
9503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9504 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9505 Py_INCREF(obj);
9506 return Py_BuildValue((char *)"");
9507}
c370783e 9508static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9509 PyObject *resultobj;
15817c7e 9510 int arg1 = (int) -1 ;
d55e5bfc
RD
9511 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9512 wxLocale *result;
9513 PyObject * obj0 = 0 ;
9514 PyObject * obj1 = 0 ;
9515 char *kwnames[] = {
9516 (char *) "language",(char *) "flags", NULL
9517 };
9518
9519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9520 if (obj0) {
c370783e 9521 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9522 if (PyErr_Occurred()) SWIG_fail;
9523 }
9524 if (obj1) {
c370783e 9525 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 9530 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9536 return resultobj;
9537 fail:
9538 return NULL;
9539}
9540
9541
c370783e 9542static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9543 PyObject *resultobj;
9544 wxLocale *arg1 = (wxLocale *) 0 ;
9545 PyObject * obj0 = 0 ;
9546 char *kwnames[] = {
9547 (char *) "self", NULL
9548 };
9549
9550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 delete arg1;
9556
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 Py_INCREF(Py_None); resultobj = Py_None;
9561 return resultobj;
9562 fail:
9563 return NULL;
9564}
9565
9566
c370783e 9567static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9568 PyObject *resultobj;
9569 wxLocale *arg1 = (wxLocale *) 0 ;
9570 wxString *arg2 = 0 ;
9571 wxString const &arg3_defvalue = wxPyEmptyString ;
9572 wxString *arg3 = (wxString *) &arg3_defvalue ;
9573 wxString const &arg4_defvalue = wxPyEmptyString ;
9574 wxString *arg4 = (wxString *) &arg4_defvalue ;
b411df4a
RD
9575 bool arg5 = (bool) true ;
9576 bool arg6 = (bool) false ;
d55e5bfc 9577 bool result;
b411df4a
RD
9578 bool temp2 = false ;
9579 bool temp3 = false ;
9580 bool temp4 = false ;
d55e5bfc
RD
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 PyObject * obj2 = 0 ;
9584 PyObject * obj3 = 0 ;
9585 PyObject * obj4 = 0 ;
9586 PyObject * obj5 = 0 ;
9587 char *kwnames[] = {
9588 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9589 };
9590
9591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9594 {
9595 arg2 = wxString_in_helper(obj1);
9596 if (arg2 == NULL) SWIG_fail;
b411df4a 9597 temp2 = true;
d55e5bfc
RD
9598 }
9599 if (obj2) {
9600 {
9601 arg3 = wxString_in_helper(obj2);
9602 if (arg3 == NULL) SWIG_fail;
b411df4a 9603 temp3 = true;
d55e5bfc
RD
9604 }
9605 }
9606 if (obj3) {
9607 {
9608 arg4 = wxString_in_helper(obj3);
9609 if (arg4 == NULL) SWIG_fail;
b411df4a 9610 temp4 = true;
d55e5bfc
RD
9611 }
9612 }
9613 if (obj4) {
c370783e 9614 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 if (obj5) {
c370783e 9618 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 {
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
070c48b4 9623 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
d55e5bfc
RD
9624
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 {
9629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9630 }
9631 {
9632 if (temp2)
9633 delete arg2;
9634 }
9635 {
9636 if (temp3)
9637 delete arg3;
9638 }
9639 {
9640 if (temp4)
9641 delete arg4;
9642 }
9643 return resultobj;
9644 fail:
9645 {
9646 if (temp2)
9647 delete arg2;
9648 }
9649 {
9650 if (temp3)
9651 delete arg3;
9652 }
9653 {
9654 if (temp4)
9655 delete arg4;
9656 }
9657 return NULL;
9658}
9659
9660
c370783e 9661static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9662 PyObject *resultobj;
9663 wxLocale *arg1 = (wxLocale *) 0 ;
9664 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9665 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9666 bool result;
9667 PyObject * obj0 = 0 ;
9668 PyObject * obj1 = 0 ;
9669 PyObject * obj2 = 0 ;
9670 char *kwnames[] = {
9671 (char *) "self",(char *) "language",(char *) "flags", NULL
9672 };
9673
9674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9677 if (obj1) {
c370783e 9678 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 if (obj2) {
c370783e 9682 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
070c48b4 9687 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
d55e5bfc
RD
9688
9689 wxPyEndAllowThreads(__tstate);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 {
9693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9694 }
9695 return resultobj;
9696 fail:
9697 return NULL;
9698}
9699
9700
c370783e 9701static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9702 PyObject *resultobj;
9703 int result;
9704 char *kwnames[] = {
9705 NULL
9706 };
9707
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 result = (int)wxLocale::GetSystemLanguage();
9712
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
c370783e 9716 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9717 return resultobj;
9718 fail:
9719 return NULL;
9720}
9721
9722
c370783e 9723static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9724 PyObject *resultobj;
9725 int result;
9726 char *kwnames[] = {
9727 NULL
9728 };
9729
9730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9731 {
9732 PyThreadState* __tstate = wxPyBeginAllowThreads();
9733 result = (int)wxLocale::GetSystemEncoding();
9734
9735 wxPyEndAllowThreads(__tstate);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 }
c370783e 9738 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9739 return resultobj;
9740 fail:
9741 return NULL;
9742}
9743
9744
c370783e 9745static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9746 PyObject *resultobj;
9747 wxString result;
9748 char *kwnames[] = {
9749 NULL
9750 };
9751
9752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 result = wxLocale::GetSystemEncodingName();
9756
9757 wxPyEndAllowThreads(__tstate);
9758 if (PyErr_Occurred()) SWIG_fail;
9759 }
9760 {
9761#if wxUSE_UNICODE
9762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9763#else
9764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9765#endif
9766 }
9767 return resultobj;
9768 fail:
9769 return NULL;
9770}
9771
9772
c370783e 9773static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9774 PyObject *resultobj;
9775 wxLocale *arg1 = (wxLocale *) 0 ;
9776 bool result;
9777 PyObject * obj0 = 0 ;
9778 char *kwnames[] = {
9779 (char *) "self", NULL
9780 };
9781
9782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9785 {
9786 PyThreadState* __tstate = wxPyBeginAllowThreads();
9787 result = (bool)((wxLocale const *)arg1)->IsOk();
9788
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 {
9793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9794 }
9795 return resultobj;
9796 fail:
9797 return NULL;
9798}
9799
9800
c370783e 9801static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9802 PyObject *resultobj;
9803 wxLocale *arg1 = (wxLocale *) 0 ;
9804 wxString result;
9805 PyObject * obj0 = 0 ;
9806 char *kwnames[] = {
9807 (char *) "self", NULL
9808 };
9809
9810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 result = ((wxLocale const *)arg1)->GetLocale();
9816
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 {
9821#if wxUSE_UNICODE
9822 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9823#else
9824 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9825#endif
9826 }
9827 return resultobj;
9828 fail:
9829 return NULL;
9830}
9831
9832
c370783e 9833static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9834 PyObject *resultobj;
9835 wxLocale *arg1 = (wxLocale *) 0 ;
9836 int result;
9837 PyObject * obj0 = 0 ;
9838 char *kwnames[] = {
9839 (char *) "self", NULL
9840 };
9841
9842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 result = (int)((wxLocale const *)arg1)->GetLanguage();
9848
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) SWIG_fail;
9851 }
c370783e 9852 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9853 return resultobj;
9854 fail:
9855 return NULL;
9856}
9857
9858
c370783e 9859static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9860 PyObject *resultobj;
9861 wxLocale *arg1 = (wxLocale *) 0 ;
9862 wxString result;
9863 PyObject * obj0 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 result = ((wxLocale const *)arg1)->GetSysName();
9874
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
9878 {
9879#if wxUSE_UNICODE
9880 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9881#else
9882 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9883#endif
9884 }
9885 return resultobj;
9886 fail:
9887 return NULL;
9888}
9889
9890
c370783e 9891static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9892 PyObject *resultobj;
9893 wxLocale *arg1 = (wxLocale *) 0 ;
9894 wxString result;
9895 PyObject * obj0 = 0 ;
9896 char *kwnames[] = {
9897 (char *) "self", NULL
9898 };
9899
9900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9903 {
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = ((wxLocale const *)arg1)->GetCanonicalName();
9906
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 {
9911#if wxUSE_UNICODE
9912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9913#else
9914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9915#endif
9916 }
9917 return resultobj;
9918 fail:
9919 return NULL;
9920}
9921
9922
c370783e 9923static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9924 PyObject *resultobj;
9925 wxString *arg1 = 0 ;
b411df4a 9926 bool temp1 = false ;
d55e5bfc
RD
9927 PyObject * obj0 = 0 ;
9928 char *kwnames[] = {
9929 (char *) "prefix", NULL
9930 };
9931
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9933 {
9934 arg1 = wxString_in_helper(obj0);
9935 if (arg1 == NULL) SWIG_fail;
b411df4a 9936 temp1 = true;
d55e5bfc
RD
9937 }
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9941
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
9945 Py_INCREF(Py_None); resultobj = Py_None;
9946 {
9947 if (temp1)
9948 delete arg1;
9949 }
9950 return resultobj;
9951 fail:
9952 {
9953 if (temp1)
9954 delete arg1;
9955 }
9956 return NULL;
9957}
9958
9959
c370783e 9960static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9961 PyObject *resultobj;
9962 wxLocale *arg1 = (wxLocale *) 0 ;
9963 wxString *arg2 = 0 ;
9964 bool result;
b411df4a 9965 bool temp2 = false ;
d55e5bfc
RD
9966 PyObject * obj0 = 0 ;
9967 PyObject * obj1 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "self",(char *) "szDomain", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9975 {
9976 arg2 = wxString_in_helper(obj1);
9977 if (arg2 == NULL) SWIG_fail;
b411df4a 9978 temp2 = true;
d55e5bfc
RD
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 {
9988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9989 }
9990 {
9991 if (temp2)
9992 delete arg2;
9993 }
9994 return resultobj;
9995 fail:
9996 {
9997 if (temp2)
9998 delete arg2;
9999 }
10000 return NULL;
10001}
10002
10003
c370783e 10004static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10005 PyObject *resultobj;
10006 wxLocale *arg1 = (wxLocale *) 0 ;
10007 wxString *arg2 = 0 ;
10008 bool result;
b411df4a 10009 bool temp2 = false ;
d55e5bfc
RD
10010 PyObject * obj0 = 0 ;
10011 PyObject * obj1 = 0 ;
10012 char *kwnames[] = {
10013 (char *) "self",(char *) "szDomain", NULL
10014 };
10015
10016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10019 {
10020 arg2 = wxString_in_helper(obj1);
10021 if (arg2 == NULL) SWIG_fail;
b411df4a 10022 temp2 = true;
d55e5bfc
RD
10023 }
10024 {
10025 PyThreadState* __tstate = wxPyBeginAllowThreads();
10026 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10027
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 {
10032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10033 }
10034 {
10035 if (temp2)
10036 delete arg2;
10037 }
10038 return resultobj;
10039 fail:
10040 {
10041 if (temp2)
10042 delete arg2;
10043 }
10044 return NULL;
10045}
10046
10047
c370783e 10048static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10049 PyObject *resultobj;
10050 int arg1 ;
10051 wxLanguageInfo *result;
10052 PyObject * obj0 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "lang", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
c370783e 10058 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10059 if (PyErr_Occurred()) SWIG_fail;
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10068 return resultobj;
10069 fail:
10070 return NULL;
10071}
10072
10073
c370783e 10074static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10075 PyObject *resultobj;
10076 int arg1 ;
10077 wxString result;
10078 PyObject * obj0 = 0 ;
10079 char *kwnames[] = {
10080 (char *) "lang", NULL
10081 };
10082
10083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
c370783e 10084 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10085 if (PyErr_Occurred()) SWIG_fail;
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = wxLocale::GetLanguageName(arg1);
10089
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 {
10094#if wxUSE_UNICODE
10095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10096#else
10097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10098#endif
10099 }
10100 return resultobj;
10101 fail:
10102 return NULL;
10103}
10104
10105
c370783e 10106static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10107 PyObject *resultobj;
10108 wxString *arg1 = 0 ;
10109 wxLanguageInfo *result;
b411df4a 10110 bool temp1 = false ;
d55e5bfc
RD
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "locale", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10117 {
10118 arg1 = wxString_in_helper(obj0);
10119 if (arg1 == NULL) SWIG_fail;
b411df4a 10120 temp1 = true;
d55e5bfc
RD
10121 }
10122 {
10123 PyThreadState* __tstate = wxPyBeginAllowThreads();
10124 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10125
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10130 {
10131 if (temp1)
10132 delete arg1;
10133 }
10134 return resultobj;
10135 fail:
10136 {
10137 if (temp1)
10138 delete arg1;
10139 }
10140 return NULL;
10141}
10142
10143
c370783e 10144static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10145 PyObject *resultobj;
10146 wxLanguageInfo *arg1 = 0 ;
10147 PyObject * obj0 = 0 ;
10148 char *kwnames[] = {
10149 (char *) "info", NULL
10150 };
10151
10152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10154 SWIG_POINTER_EXCEPTION | 0)) == -1)
10155 SWIG_fail;
10156 if (arg1 == NULL) {
10157 PyErr_SetString(PyExc_TypeError,"null reference");
10158 SWIG_fail;
10159 }
10160 {
10161 PyThreadState* __tstate = wxPyBeginAllowThreads();
10162 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10163
10164 wxPyEndAllowThreads(__tstate);
10165 if (PyErr_Occurred()) SWIG_fail;
10166 }
10167 Py_INCREF(Py_None); resultobj = Py_None;
10168 return resultobj;
10169 fail:
10170 return NULL;
10171}
10172
10173
c370783e 10174static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10175 PyObject *resultobj;
10176 wxLocale *arg1 = (wxLocale *) 0 ;
10177 wxString *arg2 = 0 ;
10178 wxString const &arg3_defvalue = wxPyEmptyString ;
10179 wxString *arg3 = (wxString *) &arg3_defvalue ;
10180 wxString result;
b411df4a
RD
10181 bool temp2 = false ;
10182 bool temp3 = false ;
d55e5bfc
RD
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10185 PyObject * obj2 = 0 ;
10186 char *kwnames[] = {
10187 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10188 };
10189
10190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10193 {
10194 arg2 = wxString_in_helper(obj1);
10195 if (arg2 == NULL) SWIG_fail;
b411df4a 10196 temp2 = true;
d55e5bfc
RD
10197 }
10198 if (obj2) {
10199 {
10200 arg3 = wxString_in_helper(obj2);
10201 if (arg3 == NULL) SWIG_fail;
b411df4a 10202 temp3 = true;
d55e5bfc
RD
10203 }
10204 }
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10208
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 {
10213#if wxUSE_UNICODE
10214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10215#else
10216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10217#endif
10218 }
10219 {
10220 if (temp2)
10221 delete arg2;
10222 }
10223 {
10224 if (temp3)
10225 delete arg3;
10226 }
10227 return resultobj;
10228 fail:
10229 {
10230 if (temp2)
10231 delete arg2;
10232 }
10233 {
10234 if (temp3)
10235 delete arg3;
10236 }
10237 return NULL;
10238}
10239
10240
c370783e 10241static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10242 PyObject *resultobj;
10243 wxLocale *arg1 = (wxLocale *) 0 ;
10244 wxString *result;
10245 PyObject * obj0 = 0 ;
10246 char *kwnames[] = {
10247 (char *) "self", NULL
10248 };
10249
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 {
10256 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10257 result = (wxString *) &_result_ref;
10258 }
10259
10260 wxPyEndAllowThreads(__tstate);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 }
10263 {
10264#if wxUSE_UNICODE
10265 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10266#else
10267 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10268#endif
10269 }
10270 return resultobj;
10271 fail:
10272 return NULL;
10273}
10274
10275
c370783e 10276static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10277 PyObject *obj;
10278 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10279 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10280 Py_INCREF(obj);
10281 return Py_BuildValue((char *)"");
10282}
c370783e 10283static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10284 PyObject *resultobj;
10285 wxLocale *result;
10286 char *kwnames[] = {
10287 NULL
10288 };
10289
10290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (wxLocale *)wxGetLocale();
10294
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10299 return resultobj;
10300 fail:
10301 return NULL;
10302}
10303
10304
c370783e 10305static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
10306 PyObject *resultobj;
10307 wxString *arg1 = 0 ;
10308 wxString result;
b411df4a 10309 bool temp1 = false ;
d55e5bfc
RD
10310 PyObject * obj0 = 0 ;
10311
10312 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10313 {
10314 arg1 = wxString_in_helper(obj0);
10315 if (arg1 == NULL) SWIG_fail;
b411df4a 10316 temp1 = true;
d55e5bfc
RD
10317 }
10318 {
10319 PyThreadState* __tstate = wxPyBeginAllowThreads();
10320 result = wxGetTranslation((wxString const &)*arg1);
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 {
10333 if (temp1)
10334 delete arg1;
10335 }
10336 return resultobj;
10337 fail:
10338 {
10339 if (temp1)
10340 delete arg1;
10341 }
10342 return NULL;
10343}
10344
10345
c370783e 10346static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
10347 PyObject *resultobj;
10348 wxString *arg1 = 0 ;
10349 wxString *arg2 = 0 ;
10350 size_t arg3 ;
10351 wxString result;
b411df4a
RD
10352 bool temp1 = false ;
10353 bool temp2 = false ;
d55e5bfc
RD
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 PyObject * obj2 = 0 ;
10357
10358 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10359 {
10360 arg1 = wxString_in_helper(obj0);
10361 if (arg1 == NULL) SWIG_fail;
b411df4a 10362 temp1 = true;
d55e5bfc
RD
10363 }
10364 {
10365 arg2 = wxString_in_helper(obj1);
10366 if (arg2 == NULL) SWIG_fail;
b411df4a 10367 temp2 = true;
d55e5bfc 10368 }
c370783e 10369 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
d55e5bfc
RD
10370 if (PyErr_Occurred()) SWIG_fail;
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10374
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 {
10379#if wxUSE_UNICODE
10380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10381#else
10382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10383#endif
10384 }
10385 {
10386 if (temp1)
10387 delete arg1;
10388 }
10389 {
10390 if (temp2)
10391 delete arg2;
10392 }
10393 return resultobj;
10394 fail:
10395 {
10396 if (temp1)
10397 delete arg1;
10398 }
10399 {
10400 if (temp2)
10401 delete arg2;
10402 }
10403 return NULL;
10404}
10405
10406
10407static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10408 int argc;
10409 PyObject *argv[4];
10410 int ii;
10411
10412 argc = PyObject_Length(args);
10413 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10414 argv[ii] = PyTuple_GetItem(args,ii);
10415 }
10416 if (argc == 1) {
10417 int _v;
10418 {
10419 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10420 }
10421 if (_v) {
10422 return _wrap_GetTranslation__SWIG_0(self,args);
10423 }
10424 }
10425 if (argc == 3) {
10426 int _v;
10427 {
10428 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10429 }
10430 if (_v) {
10431 {
10432 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10433 }
10434 if (_v) {
c370783e 10435 _v = SWIG_Check_unsigned_SS_long(argv[2]);
d55e5bfc
RD
10436 if (_v) {
10437 return _wrap_GetTranslation__SWIG_1(self,args);
10438 }
10439 }
10440 }
10441 }
10442
10443 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10444 return NULL;
10445}
10446
10447
c370783e 10448static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10449 PyObject *resultobj;
10450 wxEncodingConverter *result;
10451 char *kwnames[] = {
10452 NULL
10453 };
10454
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (wxEncodingConverter *)new wxEncodingConverter();
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10464 return resultobj;
10465 fail:
10466 return NULL;
10467}
10468
10469
c370783e 10470static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10471 PyObject *resultobj;
10472 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10473 PyObject * obj0 = 0 ;
10474 char *kwnames[] = {
10475 (char *) "self", NULL
10476 };
10477
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10481 {
10482 PyThreadState* __tstate = wxPyBeginAllowThreads();
10483 delete arg1;
10484
10485 wxPyEndAllowThreads(__tstate);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 Py_INCREF(Py_None); resultobj = Py_None;
10489 return resultobj;
10490 fail:
10491 return NULL;
10492}
10493
10494
c370783e 10495static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10496 PyObject *resultobj;
10497 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10498 int arg2 ;
10499 int arg3 ;
10500 int arg4 = (int) wxCONVERT_STRICT ;
10501 bool result;
10502 PyObject * obj0 = 0 ;
10503 PyObject * obj1 = 0 ;
10504 PyObject * obj2 = 0 ;
10505 PyObject * obj3 = 0 ;
10506 char *kwnames[] = {
10507 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10508 };
10509
10510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10513 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10514 if (PyErr_Occurred()) SWIG_fail;
c370783e 10515 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10516 if (PyErr_Occurred()) SWIG_fail;
10517 if (obj3) {
c370783e 10518 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
10523 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10524
10525 wxPyEndAllowThreads(__tstate);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
10528 {
10529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10530 }
10531 return resultobj;
10532 fail:
10533 return NULL;
10534}
10535
10536
c370783e 10537static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10538 PyObject *resultobj;
10539 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10540 wxString *arg2 = 0 ;
10541 wxString result;
b411df4a 10542 bool temp2 = false ;
d55e5bfc
RD
10543 PyObject * obj0 = 0 ;
10544 PyObject * obj1 = 0 ;
10545 char *kwnames[] = {
10546 (char *) "self",(char *) "input", NULL
10547 };
10548
10549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10552 {
10553 arg2 = wxString_in_helper(obj1);
10554 if (arg2 == NULL) SWIG_fail;
b411df4a 10555 temp2 = true;
d55e5bfc
RD
10556 }
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (arg1)->Convert((wxString const &)*arg2);
10560
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 {
10565#if wxUSE_UNICODE
10566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10567#else
10568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10569#endif
10570 }
10571 {
10572 if (temp2)
10573 delete arg2;
10574 }
10575 return resultobj;
10576 fail:
10577 {
10578 if (temp2)
10579 delete arg2;
10580 }
10581 return NULL;
10582}
10583
10584
c370783e 10585static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10586 PyObject *resultobj;
10587 int arg1 ;
10588 int arg2 = (int) wxPLATFORM_CURRENT ;
10589 wxFontEncodingArray result;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "enc",(char *) "platform", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
c370783e 10597 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10598 if (PyErr_Occurred()) SWIG_fail;
10599 if (obj1) {
c370783e 10600 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 {
10611 resultobj = PyList_New(0);
10612 for (size_t i=0; i < (&result)->GetCount(); i++) {
10613 PyObject* number = PyInt_FromLong((&result)->Item(i));
10614 PyList_Append(resultobj, number);
10615 Py_DECREF(number);
10616 }
10617 }
10618 return resultobj;
10619 fail:
10620 return NULL;
10621}
10622
10623
c370783e 10624static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10625 PyObject *resultobj;
10626 int arg1 ;
10627 wxFontEncodingArray result;
10628 PyObject * obj0 = 0 ;
10629 char *kwnames[] = {
10630 (char *) "enc", NULL
10631 };
10632
10633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
c370783e 10634 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10635 if (PyErr_Occurred()) SWIG_fail;
10636 {
10637 PyThreadState* __tstate = wxPyBeginAllowThreads();
10638 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10639
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 {
10644 resultobj = PyList_New(0);
10645 for (size_t i=0; i < (&result)->GetCount(); i++) {
10646 PyObject* number = PyInt_FromLong((&result)->Item(i));
10647 PyList_Append(resultobj, number);
10648 Py_DECREF(number);
10649 }
10650 }
10651 return resultobj;
10652 fail:
10653 return NULL;
10654}
10655
10656
c370783e 10657static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10658 PyObject *resultobj;
10659 int arg1 ;
10660 int arg2 ;
10661 bool result;
10662 PyObject * obj0 = 0 ;
10663 PyObject * obj1 = 0 ;
10664 char *kwnames[] = {
10665 (char *) "encIn",(char *) "encOut", NULL
10666 };
10667
10668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
c370783e 10669 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 10670 if (PyErr_Occurred()) SWIG_fail;
c370783e 10671 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10672 if (PyErr_Occurred()) SWIG_fail;
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10676
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 {
10681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10682 }
10683 return resultobj;
10684 fail:
10685 return NULL;
10686}
10687
10688
c370783e 10689static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10690 PyObject *obj;
10691 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10692 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10693 Py_INCREF(obj);
10694 return Py_BuildValue((char *)"");
10695}
c370783e 10696static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10697 PyObject *resultobj;
10698 wxDC *arg1 = (wxDC *) 0 ;
10699 PyObject * obj0 = 0 ;
10700 char *kwnames[] = {
10701 (char *) "self", NULL
10702 };
10703
10704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 delete arg1;
10710
10711 wxPyEndAllowThreads(__tstate);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 }
10714 Py_INCREF(Py_None); resultobj = Py_None;
10715 return resultobj;
10716 fail:
10717 return NULL;
10718}
10719
10720
c370783e 10721static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10722 PyObject *resultobj;
10723 wxDC *arg1 = (wxDC *) 0 ;
10724 PyObject * obj0 = 0 ;
10725 char *kwnames[] = {
10726 (char *) "self", NULL
10727 };
10728
10729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 (arg1)->BeginDrawing();
10735
10736 wxPyEndAllowThreads(__tstate);
10737 if (PyErr_Occurred()) SWIG_fail;
10738 }
10739 Py_INCREF(Py_None); resultobj = Py_None;
10740 return resultobj;
10741 fail:
10742 return NULL;
10743}
10744
10745
c370783e 10746static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10747 PyObject *resultobj;
10748 wxDC *arg1 = (wxDC *) 0 ;
10749 PyObject * obj0 = 0 ;
10750 char *kwnames[] = {
10751 (char *) "self", NULL
10752 };
10753
10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 (arg1)->EndDrawing();
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 Py_INCREF(Py_None); resultobj = Py_None;
10765 return resultobj;
10766 fail:
10767 return NULL;
10768}
10769
10770
c370783e 10771static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10772 PyObject *resultobj;
10773 wxDC *arg1 = (wxDC *) 0 ;
10774 int arg2 ;
10775 int arg3 ;
10776 wxColour *arg4 = 0 ;
10777 int arg5 = (int) wxFLOOD_SURFACE ;
10778 bool result;
10779 wxColour temp4 ;
10780 PyObject * obj0 = 0 ;
10781 PyObject * obj1 = 0 ;
10782 PyObject * obj2 = 0 ;
10783 PyObject * obj3 = 0 ;
10784 PyObject * obj4 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10787 };
10788
d6c14a4c 10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10792 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10793 if (PyErr_Occurred()) SWIG_fail;
c370783e 10794 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10795 if (PyErr_Occurred()) SWIG_fail;
10796 {
10797 arg4 = &temp4;
10798 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10799 }
10800 if (obj4) {
c370783e 10801 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10807
10808 wxPyEndAllowThreads(__tstate);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 {
10812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10813 }
10814 return resultobj;
10815 fail:
10816 return NULL;
10817}
10818
10819
c370783e 10820static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10821 PyObject *resultobj;
10822 wxDC *arg1 = (wxDC *) 0 ;
10823 wxPoint *arg2 = 0 ;
10824 wxColour *arg3 = 0 ;
10825 int arg4 = (int) wxFLOOD_SURFACE ;
10826 bool result;
10827 wxPoint temp2 ;
10828 wxColour temp3 ;
10829 PyObject * obj0 = 0 ;
10830 PyObject * obj1 = 0 ;
10831 PyObject * obj2 = 0 ;
10832 PyObject * obj3 = 0 ;
10833 char *kwnames[] = {
10834 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10835 };
10836
d6c14a4c 10837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
10838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10840 {
10841 arg2 = &temp2;
10842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10843 }
10844 {
10845 arg3 = &temp3;
10846 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10847 }
10848 if (obj3) {
c370783e 10849 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10855
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
10859 {
10860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10861 }
10862 return resultobj;
10863 fail:
10864 return NULL;
10865}
10866
10867
c370783e 10868static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10869 PyObject *resultobj;
10870 wxDC *arg1 = (wxDC *) 0 ;
10871 int arg2 ;
10872 int arg3 ;
10873 wxColour result;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 PyObject * obj2 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "self",(char *) "x",(char *) "y", NULL
10879 };
10880
d6c14a4c 10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10884 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10885 if (PyErr_Occurred()) SWIG_fail;
c370783e 10886 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10887 if (PyErr_Occurred()) SWIG_fail;
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10890 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
10891
10892 wxPyEndAllowThreads(__tstate);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 }
10895 {
10896 wxColour * resultptr;
10897 resultptr = new wxColour((wxColour &) result);
10898 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10899 }
10900 return resultobj;
10901 fail:
10902 return NULL;
10903}
10904
10905
c370783e 10906static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10907 PyObject *resultobj;
10908 wxDC *arg1 = (wxDC *) 0 ;
10909 wxPoint *arg2 = 0 ;
10910 wxColour result;
10911 wxPoint temp2 ;
10912 PyObject * obj0 = 0 ;
10913 PyObject * obj1 = 0 ;
10914 char *kwnames[] = {
10915 (char *) "self",(char *) "pt", NULL
10916 };
10917
d6c14a4c 10918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10921 {
10922 arg2 = &temp2;
10923 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10924 }
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10927 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
10928
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 {
10933 wxColour * resultptr;
10934 resultptr = new wxColour((wxColour &) result);
10935 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10936 }
10937 return resultobj;
10938 fail:
10939 return NULL;
10940}
10941
10942
c370783e 10943static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10944 PyObject *resultobj;
10945 wxDC *arg1 = (wxDC *) 0 ;
10946 int arg2 ;
10947 int arg3 ;
10948 int arg4 ;
10949 int arg5 ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 PyObject * obj2 = 0 ;
10953 PyObject * obj3 = 0 ;
10954 PyObject * obj4 = 0 ;
10955 char *kwnames[] = {
10956 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10957 };
10958
d6c14a4c 10959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10962 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10963 if (PyErr_Occurred()) SWIG_fail;
c370783e 10964 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 10965 if (PyErr_Occurred()) SWIG_fail;
c370783e 10966 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 10967 if (PyErr_Occurred()) SWIG_fail;
c370783e 10968 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
10969 if (PyErr_Occurred()) SWIG_fail;
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 Py_INCREF(Py_None); resultobj = Py_None;
10978 return resultobj;
10979 fail:
10980 return NULL;
10981}
10982
10983
c370783e 10984static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10985 PyObject *resultobj;
10986 wxDC *arg1 = (wxDC *) 0 ;
10987 wxPoint *arg2 = 0 ;
10988 wxPoint *arg3 = 0 ;
10989 wxPoint temp2 ;
10990 wxPoint temp3 ;
10991 PyObject * obj0 = 0 ;
10992 PyObject * obj1 = 0 ;
10993 PyObject * obj2 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10996 };
10997
d6c14a4c 10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11001 {
11002 arg2 = &temp2;
11003 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11004 }
11005 {
11006 arg3 = &temp3;
11007 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11008 }
11009 {
11010 PyThreadState* __tstate = wxPyBeginAllowThreads();
11011 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11012
11013 wxPyEndAllowThreads(__tstate);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 }
11016 Py_INCREF(Py_None); resultobj = Py_None;
11017 return resultobj;
11018 fail:
11019 return NULL;
11020}
11021
11022
c370783e 11023static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11024 PyObject *resultobj;
11025 wxDC *arg1 = (wxDC *) 0 ;
11026 int arg2 ;
11027 int arg3 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 PyObject * obj2 = 0 ;
11031 char *kwnames[] = {
11032 (char *) "self",(char *) "x",(char *) "y", NULL
11033 };
11034
d6c14a4c 11035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11038 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11039 if (PyErr_Occurred()) SWIG_fail;
c370783e 11040 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11041 if (PyErr_Occurred()) SWIG_fail;
11042 {
11043 PyThreadState* __tstate = wxPyBeginAllowThreads();
11044 (arg1)->CrossHair(arg2,arg3);
11045
11046 wxPyEndAllowThreads(__tstate);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 }
11049 Py_INCREF(Py_None); resultobj = Py_None;
11050 return resultobj;
11051 fail:
11052 return NULL;
11053}
11054
11055
c370783e 11056static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11057 PyObject *resultobj;
11058 wxDC *arg1 = (wxDC *) 0 ;
11059 wxPoint *arg2 = 0 ;
11060 wxPoint temp2 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 char *kwnames[] = {
11064 (char *) "self",(char *) "pt", NULL
11065 };
11066
d6c14a4c 11067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11070 {
11071 arg2 = &temp2;
11072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11073 }
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 (arg1)->CrossHair((wxPoint const &)*arg2);
11077
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 Py_INCREF(Py_None); resultobj = Py_None;
11082 return resultobj;
11083 fail:
11084 return NULL;
11085}
11086
11087
c370783e 11088static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11089 PyObject *resultobj;
11090 wxDC *arg1 = (wxDC *) 0 ;
11091 int arg2 ;
11092 int arg3 ;
11093 int arg4 ;
11094 int arg5 ;
11095 int arg6 ;
11096 int arg7 ;
11097 PyObject * obj0 = 0 ;
11098 PyObject * obj1 = 0 ;
11099 PyObject * obj2 = 0 ;
11100 PyObject * obj3 = 0 ;
11101 PyObject * obj4 = 0 ;
11102 PyObject * obj5 = 0 ;
11103 PyObject * obj6 = 0 ;
11104 char *kwnames[] = {
11105 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11106 };
11107
d6c14a4c 11108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11111 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11112 if (PyErr_Occurred()) SWIG_fail;
c370783e 11113 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11114 if (PyErr_Occurred()) SWIG_fail;
c370783e 11115 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11116 if (PyErr_Occurred()) SWIG_fail;
c370783e 11117 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11118 if (PyErr_Occurred()) SWIG_fail;
c370783e 11119 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc 11120 if (PyErr_Occurred()) SWIG_fail;
c370783e 11121 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
11122 if (PyErr_Occurred()) SWIG_fail;
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11126
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 Py_INCREF(Py_None); resultobj = Py_None;
11131 return resultobj;
11132 fail:
11133 return NULL;
11134}
11135
11136
c370783e 11137static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11138 PyObject *resultobj;
11139 wxDC *arg1 = (wxDC *) 0 ;
11140 wxPoint *arg2 = 0 ;
11141 wxPoint *arg3 = 0 ;
11142 wxPoint *arg4 = 0 ;
11143 wxPoint temp2 ;
11144 wxPoint temp3 ;
11145 wxPoint temp4 ;
11146 PyObject * obj0 = 0 ;
11147 PyObject * obj1 = 0 ;
11148 PyObject * obj2 = 0 ;
11149 PyObject * obj3 = 0 ;
11150 char *kwnames[] = {
f5b96ee1 11151 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d55e5bfc
RD
11152 };
11153
d6c14a4c 11154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11157 {
11158 arg2 = &temp2;
11159 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11160 }
11161 {
11162 arg3 = &temp3;
11163 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11164 }
11165 {
11166 arg4 = &temp4;
11167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11168 }
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11172
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 Py_INCREF(Py_None); resultobj = Py_None;
11177 return resultobj;
11178 fail:
11179 return NULL;
11180}
11181
11182
c370783e 11183static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11184 PyObject *resultobj;
11185 wxDC *arg1 = (wxDC *) 0 ;
11186 int arg2 ;
11187 int arg3 ;
11188 int arg4 ;
11189 int arg5 ;
11190 PyObject * obj0 = 0 ;
11191 PyObject * obj1 = 0 ;
11192 PyObject * obj2 = 0 ;
11193 PyObject * obj3 = 0 ;
11194 PyObject * obj4 = 0 ;
11195 char *kwnames[] = {
11196 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11197 };
11198
d6c14a4c 11199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11202 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11203 if (PyErr_Occurred()) SWIG_fail;
c370783e 11204 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11205 if (PyErr_Occurred()) SWIG_fail;
c370783e 11206 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11207 if (PyErr_Occurred()) SWIG_fail;
c370783e 11208 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11209 if (PyErr_Occurred()) SWIG_fail;
11210 {
11211 PyThreadState* __tstate = wxPyBeginAllowThreads();
11212 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11213
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 Py_INCREF(Py_None); resultobj = Py_None;
11218 return resultobj;
11219 fail:
11220 return NULL;
11221}
11222
11223
c370783e 11224static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11225 PyObject *resultobj;
11226 wxDC *arg1 = (wxDC *) 0 ;
11227 wxRect *arg2 = 0 ;
11228 wxRect temp2 ;
11229 PyObject * obj0 = 0 ;
11230 PyObject * obj1 = 0 ;
11231 char *kwnames[] = {
11232 (char *) "self",(char *) "rect", NULL
11233 };
11234
d6c14a4c 11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11238 {
11239 arg2 = &temp2;
11240 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11241 }
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11245
11246 wxPyEndAllowThreads(__tstate);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 }
11249 Py_INCREF(Py_None); resultobj = Py_None;
11250 return resultobj;
11251 fail:
11252 return NULL;
11253}
11254
11255
c370783e 11256static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11257 PyObject *resultobj;
11258 wxDC *arg1 = (wxDC *) 0 ;
11259 int arg2 ;
11260 int arg3 ;
11261 int arg4 ;
11262 int arg5 ;
11263 double arg6 ;
11264 double arg7 ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11267 PyObject * obj2 = 0 ;
11268 PyObject * obj3 = 0 ;
11269 PyObject * obj4 = 0 ;
11270 PyObject * obj5 = 0 ;
11271 PyObject * obj6 = 0 ;
11272 char *kwnames[] = {
f5b96ee1 11273 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11274 };
11275
d6c14a4c 11276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11279 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11280 if (PyErr_Occurred()) SWIG_fail;
c370783e 11281 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11282 if (PyErr_Occurred()) SWIG_fail;
c370783e 11283 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11284 if (PyErr_Occurred()) SWIG_fail;
c370783e 11285 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11286 if (PyErr_Occurred()) SWIG_fail;
c370783e 11287 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc 11288 if (PyErr_Occurred()) SWIG_fail;
c370783e 11289 arg7 = (double)SWIG_As_double(obj6);
d55e5bfc
RD
11290 if (PyErr_Occurred()) SWIG_fail;
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11294
11295 wxPyEndAllowThreads(__tstate);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 }
11298 Py_INCREF(Py_None); resultobj = Py_None;
11299 return resultobj;
11300 fail:
11301 return NULL;
11302}
11303
11304
c370783e 11305static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11306 PyObject *resultobj;
11307 wxDC *arg1 = (wxDC *) 0 ;
11308 wxPoint *arg2 = 0 ;
11309 wxSize *arg3 = 0 ;
11310 double arg4 ;
11311 double arg5 ;
11312 wxPoint temp2 ;
11313 wxSize temp3 ;
11314 PyObject * obj0 = 0 ;
11315 PyObject * obj1 = 0 ;
11316 PyObject * obj2 = 0 ;
11317 PyObject * obj3 = 0 ;
11318 PyObject * obj4 = 0 ;
11319 char *kwnames[] = {
f5b96ee1 11320 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11321 };
11322
d6c14a4c 11323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11326 {
11327 arg2 = &temp2;
11328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11329 }
11330 {
11331 arg3 = &temp3;
11332 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11333 }
c370783e 11334 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc 11335 if (PyErr_Occurred()) SWIG_fail;
c370783e 11336 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
11337 if (PyErr_Occurred()) SWIG_fail;
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11341
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 Py_INCREF(Py_None); resultobj = Py_None;
11346 return resultobj;
11347 fail:
11348 return NULL;
11349}
11350
11351
c370783e 11352static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11353 PyObject *resultobj;
11354 wxDC *arg1 = (wxDC *) 0 ;
11355 int arg2 ;
11356 int arg3 ;
11357 PyObject * obj0 = 0 ;
11358 PyObject * obj1 = 0 ;
11359 PyObject * obj2 = 0 ;
11360 char *kwnames[] = {
11361 (char *) "self",(char *) "x",(char *) "y", NULL
11362 };
11363
d6c14a4c 11364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11367 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11368 if (PyErr_Occurred()) SWIG_fail;
c370783e 11369 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11370 if (PyErr_Occurred()) SWIG_fail;
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 (arg1)->DrawPoint(arg2,arg3);
11374
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 Py_INCREF(Py_None); resultobj = Py_None;
11379 return resultobj;
11380 fail:
11381 return NULL;
11382}
11383
11384
c370783e 11385static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11386 PyObject *resultobj;
11387 wxDC *arg1 = (wxDC *) 0 ;
11388 wxPoint *arg2 = 0 ;
11389 wxPoint temp2 ;
11390 PyObject * obj0 = 0 ;
11391 PyObject * obj1 = 0 ;
11392 char *kwnames[] = {
11393 (char *) "self",(char *) "pt", NULL
11394 };
11395
d6c14a4c 11396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11399 {
11400 arg2 = &temp2;
11401 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11402 }
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 (arg1)->DrawPoint((wxPoint const &)*arg2);
11406
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 Py_INCREF(Py_None); resultobj = Py_None;
11411 return resultobj;
11412 fail:
11413 return NULL;
11414}
11415
11416
c370783e 11417static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11418 PyObject *resultobj;
11419 wxDC *arg1 = (wxDC *) 0 ;
11420 int arg2 ;
11421 int arg3 ;
11422 int arg4 ;
11423 int arg5 ;
11424 PyObject * obj0 = 0 ;
11425 PyObject * obj1 = 0 ;
11426 PyObject * obj2 = 0 ;
11427 PyObject * obj3 = 0 ;
11428 PyObject * obj4 = 0 ;
11429 char *kwnames[] = {
11430 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11431 };
11432
d6c14a4c 11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11436 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11437 if (PyErr_Occurred()) SWIG_fail;
c370783e 11438 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11439 if (PyErr_Occurred()) SWIG_fail;
c370783e 11440 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11441 if (PyErr_Occurred()) SWIG_fail;
c370783e 11442 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11443 if (PyErr_Occurred()) SWIG_fail;
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11447
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 Py_INCREF(Py_None); resultobj = Py_None;
11452 return resultobj;
11453 fail:
11454 return NULL;
11455}
11456
11457
c370783e 11458static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11459 PyObject *resultobj;
11460 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11461 wxRect *arg2 = 0 ;
11462 wxRect temp2 ;
d55e5bfc
RD
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
d55e5bfc 11465 char *kwnames[] = {
d6c14a4c 11466 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11467 };
11468
d6c14a4c 11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11472 {
11473 arg2 = &temp2;
d6c14a4c 11474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11475 }
11476 {
11477 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11478 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
11479
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 Py_INCREF(Py_None); resultobj = Py_None;
11484 return resultobj;
11485 fail:
11486 return NULL;
11487}
11488
11489
c370783e 11490static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11491 PyObject *resultobj;
11492 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11493 wxPoint *arg2 = 0 ;
11494 wxSize *arg3 = 0 ;
11495 wxPoint temp2 ;
11496 wxSize temp3 ;
d55e5bfc
RD
11497 PyObject * obj0 = 0 ;
11498 PyObject * obj1 = 0 ;
d6c14a4c 11499 PyObject * obj2 = 0 ;
d55e5bfc 11500 char *kwnames[] = {
d6c14a4c 11501 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11502 };
11503
d6c14a4c 11504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11507 {
11508 arg2 = &temp2;
d6c14a4c
RD
11509 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11510 }
11511 {
11512 arg3 = &temp3;
11513 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11514 }
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11517 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11518
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 Py_INCREF(Py_None); resultobj = Py_None;
11523 return resultobj;
11524 fail:
11525 return NULL;
11526}
11527
11528
c370783e 11529static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11530 PyObject *resultobj;
11531 wxDC *arg1 = (wxDC *) 0 ;
11532 int arg2 ;
11533 int arg3 ;
11534 int arg4 ;
11535 int arg5 ;
11536 double arg6 ;
11537 PyObject * obj0 = 0 ;
11538 PyObject * obj1 = 0 ;
11539 PyObject * obj2 = 0 ;
11540 PyObject * obj3 = 0 ;
11541 PyObject * obj4 = 0 ;
11542 PyObject * obj5 = 0 ;
11543 char *kwnames[] = {
11544 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11545 };
11546
d6c14a4c 11547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
11548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11550 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11551 if (PyErr_Occurred()) SWIG_fail;
c370783e 11552 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11553 if (PyErr_Occurred()) SWIG_fail;
c370783e 11554 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11555 if (PyErr_Occurred()) SWIG_fail;
c370783e 11556 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11557 if (PyErr_Occurred()) SWIG_fail;
c370783e 11558 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc
RD
11559 if (PyErr_Occurred()) SWIG_fail;
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 Py_INCREF(Py_None); resultobj = Py_None;
11568 return resultobj;
11569 fail:
11570 return NULL;
11571}
11572
11573
c370783e 11574static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11575 PyObject *resultobj;
11576 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11577 wxRect *arg2 = 0 ;
11578 double arg3 ;
11579 wxRect temp2 ;
d55e5bfc
RD
11580 PyObject * obj0 = 0 ;
11581 PyObject * obj1 = 0 ;
11582 PyObject * obj2 = 0 ;
d55e5bfc 11583 char *kwnames[] = {
d6c14a4c 11584 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
11585 };
11586
d6c14a4c 11587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11590 {
11591 arg2 = &temp2;
d6c14a4c 11592 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11593 }
c370783e 11594 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
11595 if (PyErr_Occurred()) SWIG_fail;
11596 {
11597 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11598 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
11599
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 Py_INCREF(Py_None); resultobj = Py_None;
11604 return resultobj;
11605 fail:
11606 return NULL;
11607}
11608
11609
c370783e 11610static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11611 PyObject *resultobj;
11612 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11613 wxPoint *arg2 = 0 ;
11614 wxSize *arg3 = 0 ;
11615 double arg4 ;
11616 wxPoint temp2 ;
11617 wxSize temp3 ;
d55e5bfc
RD
11618 PyObject * obj0 = 0 ;
11619 PyObject * obj1 = 0 ;
11620 PyObject * obj2 = 0 ;
d6c14a4c 11621 PyObject * obj3 = 0 ;
d55e5bfc 11622 char *kwnames[] = {
d6c14a4c 11623 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
11624 };
11625
d6c14a4c 11626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11629 {
11630 arg2 = &temp2;
d6c14a4c 11631 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11632 }
d6c14a4c
RD
11633 {
11634 arg3 = &temp3;
11635 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11636 }
c370783e 11637 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
11638 if (PyErr_Occurred()) SWIG_fail;
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11641 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d55e5bfc
RD
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
c370783e 11653static PyObject *_wrap_DC_DrawCircle(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 PyObject * obj0 = 0 ;
11660 PyObject * obj1 = 0 ;
11661 PyObject * obj2 = 0 ;
11662 PyObject * obj3 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11665 };
11666
d6c14a4c 11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11670 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11671 if (PyErr_Occurred()) SWIG_fail;
c370783e 11672 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11673 if (PyErr_Occurred()) SWIG_fail;
c370783e 11674 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11675 if (PyErr_Occurred()) SWIG_fail;
11676 {
11677 PyThreadState* __tstate = wxPyBeginAllowThreads();
11678 (arg1)->DrawCircle(arg2,arg3,arg4);
11679
11680 wxPyEndAllowThreads(__tstate);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 Py_INCREF(Py_None); resultobj = Py_None;
11684 return resultobj;
11685 fail:
11686 return NULL;
11687}
11688
11689
c370783e 11690static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11691 PyObject *resultobj;
11692 wxDC *arg1 = (wxDC *) 0 ;
11693 wxPoint *arg2 = 0 ;
11694 int arg3 ;
11695 wxPoint temp2 ;
11696 PyObject * obj0 = 0 ;
11697 PyObject * obj1 = 0 ;
11698 PyObject * obj2 = 0 ;
11699 char *kwnames[] = {
11700 (char *) "self",(char *) "pt",(char *) "radius", NULL
11701 };
11702
d6c14a4c 11703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11706 {
11707 arg2 = &temp2;
11708 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11709 }
c370783e 11710 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11711 if (PyErr_Occurred()) SWIG_fail;
11712 {
11713 PyThreadState* __tstate = wxPyBeginAllowThreads();
11714 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11715
11716 wxPyEndAllowThreads(__tstate);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 Py_INCREF(Py_None); resultobj = Py_None;
11720 return resultobj;
11721 fail:
11722 return NULL;
11723}
11724
11725
c370783e 11726static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11727 PyObject *resultobj;
11728 wxDC *arg1 = (wxDC *) 0 ;
11729 int arg2 ;
11730 int arg3 ;
11731 int arg4 ;
11732 int arg5 ;
11733 PyObject * obj0 = 0 ;
11734 PyObject * obj1 = 0 ;
11735 PyObject * obj2 = 0 ;
11736 PyObject * obj3 = 0 ;
11737 PyObject * obj4 = 0 ;
11738 char *kwnames[] = {
11739 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11740 };
11741
d6c14a4c 11742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11745 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11746 if (PyErr_Occurred()) SWIG_fail;
c370783e 11747 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11748 if (PyErr_Occurred()) SWIG_fail;
c370783e 11749 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11750 if (PyErr_Occurred()) SWIG_fail;
c370783e 11751 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11752 if (PyErr_Occurred()) SWIG_fail;
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11756
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 Py_INCREF(Py_None); resultobj = Py_None;
11761 return resultobj;
11762 fail:
11763 return NULL;
11764}
11765
11766
c370783e 11767static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11768 PyObject *resultobj;
11769 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11770 wxRect *arg2 = 0 ;
11771 wxRect temp2 ;
d55e5bfc
RD
11772 PyObject * obj0 = 0 ;
11773 PyObject * obj1 = 0 ;
d55e5bfc 11774 char *kwnames[] = {
d6c14a4c 11775 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11776 };
11777
d6c14a4c 11778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11781 {
11782 arg2 = &temp2;
d6c14a4c 11783 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11784 }
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11787 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
11788
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 Py_INCREF(Py_None); resultobj = Py_None;
11793 return resultobj;
11794 fail:
11795 return NULL;
11796}
11797
11798
c370783e 11799static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11800 PyObject *resultobj;
11801 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11802 wxPoint *arg2 = 0 ;
11803 wxSize *arg3 = 0 ;
11804 wxPoint temp2 ;
11805 wxSize temp3 ;
d55e5bfc
RD
11806 PyObject * obj0 = 0 ;
11807 PyObject * obj1 = 0 ;
d6c14a4c 11808 PyObject * obj2 = 0 ;
d55e5bfc 11809 char *kwnames[] = {
d6c14a4c 11810 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11811 };
11812
d6c14a4c 11813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11816 {
11817 arg2 = &temp2;
d6c14a4c
RD
11818 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11819 }
11820 {
11821 arg3 = &temp3;
11822 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11823 }
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11826 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11827
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 }
11831 Py_INCREF(Py_None); resultobj = Py_None;
11832 return resultobj;
11833 fail:
11834 return NULL;
11835}
11836
11837
c370783e 11838static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11839 PyObject *resultobj;
11840 wxDC *arg1 = (wxDC *) 0 ;
11841 wxIcon *arg2 = 0 ;
11842 int arg3 ;
11843 int arg4 ;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 PyObject * obj2 = 0 ;
11847 PyObject * obj3 = 0 ;
11848 char *kwnames[] = {
11849 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11850 };
11851
d6c14a4c 11852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11856 SWIG_POINTER_EXCEPTION | 0)) == -1)
11857 SWIG_fail;
11858 if (arg2 == NULL) {
11859 PyErr_SetString(PyExc_TypeError,"null reference");
11860 SWIG_fail;
11861 }
c370783e 11862 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11863 if (PyErr_Occurred()) SWIG_fail;
c370783e 11864 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11865 if (PyErr_Occurred()) SWIG_fail;
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11869
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 Py_INCREF(Py_None); resultobj = Py_None;
11874 return resultobj;
11875 fail:
11876 return NULL;
11877}
11878
11879
c370783e 11880static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11881 PyObject *resultobj;
11882 wxDC *arg1 = (wxDC *) 0 ;
11883 wxIcon *arg2 = 0 ;
11884 wxPoint *arg3 = 0 ;
11885 wxPoint temp3 ;
11886 PyObject * obj0 = 0 ;
11887 PyObject * obj1 = 0 ;
11888 PyObject * obj2 = 0 ;
11889 char *kwnames[] = {
11890 (char *) "self",(char *) "icon",(char *) "pt", NULL
11891 };
11892
d6c14a4c 11893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11897 SWIG_POINTER_EXCEPTION | 0)) == -1)
11898 SWIG_fail;
11899 if (arg2 == NULL) {
11900 PyErr_SetString(PyExc_TypeError,"null reference");
11901 SWIG_fail;
11902 }
11903 {
11904 arg3 = &temp3;
11905 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11906 }
11907 {
11908 PyThreadState* __tstate = wxPyBeginAllowThreads();
11909 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11910
11911 wxPyEndAllowThreads(__tstate);
11912 if (PyErr_Occurred()) SWIG_fail;
11913 }
11914 Py_INCREF(Py_None); resultobj = Py_None;
11915 return resultobj;
11916 fail:
11917 return NULL;
11918}
11919
11920
c370783e 11921static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11922 PyObject *resultobj;
11923 wxDC *arg1 = (wxDC *) 0 ;
11924 wxBitmap *arg2 = 0 ;
11925 int arg3 ;
11926 int arg4 ;
b411df4a 11927 bool arg5 = (bool) false ;
d55e5bfc
RD
11928 PyObject * obj0 = 0 ;
11929 PyObject * obj1 = 0 ;
11930 PyObject * obj2 = 0 ;
11931 PyObject * obj3 = 0 ;
11932 PyObject * obj4 = 0 ;
11933 char *kwnames[] = {
11934 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11935 };
11936
d6c14a4c 11937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11940 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11941 SWIG_POINTER_EXCEPTION | 0)) == -1)
11942 SWIG_fail;
11943 if (arg2 == NULL) {
11944 PyErr_SetString(PyExc_TypeError,"null reference");
11945 SWIG_fail;
11946 }
c370783e 11947 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11948 if (PyErr_Occurred()) SWIG_fail;
c370783e 11949 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11950 if (PyErr_Occurred()) SWIG_fail;
11951 if (obj4) {
c370783e 11952 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11958
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 Py_INCREF(Py_None); resultobj = Py_None;
11963 return resultobj;
11964 fail:
11965 return NULL;
11966}
11967
11968
c370783e 11969static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11970 PyObject *resultobj;
11971 wxDC *arg1 = (wxDC *) 0 ;
11972 wxBitmap *arg2 = 0 ;
11973 wxPoint *arg3 = 0 ;
b411df4a 11974 bool arg4 = (bool) false ;
d55e5bfc
RD
11975 wxPoint temp3 ;
11976 PyObject * obj0 = 0 ;
11977 PyObject * obj1 = 0 ;
11978 PyObject * obj2 = 0 ;
11979 PyObject * obj3 = 0 ;
11980 char *kwnames[] = {
11981 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11982 };
11983
d6c14a4c 11984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11988 SWIG_POINTER_EXCEPTION | 0)) == -1)
11989 SWIG_fail;
11990 if (arg2 == NULL) {
11991 PyErr_SetString(PyExc_TypeError,"null reference");
11992 SWIG_fail;
11993 }
11994 {
11995 arg3 = &temp3;
11996 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11997 }
11998 if (obj3) {
c370783e 11999 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12005
12006 wxPyEndAllowThreads(__tstate);
12007 if (PyErr_Occurred()) SWIG_fail;
12008 }
12009 Py_INCREF(Py_None); resultobj = Py_None;
12010 return resultobj;
12011 fail:
12012 return NULL;
12013}
12014
12015
c370783e 12016static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12017 PyObject *resultobj;
12018 wxDC *arg1 = (wxDC *) 0 ;
12019 wxString *arg2 = 0 ;
12020 int arg3 ;
12021 int arg4 ;
b411df4a 12022 bool temp2 = false ;
d55e5bfc
RD
12023 PyObject * obj0 = 0 ;
12024 PyObject * obj1 = 0 ;
12025 PyObject * obj2 = 0 ;
12026 PyObject * obj3 = 0 ;
12027 char *kwnames[] = {
12028 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12029 };
12030
d6c14a4c 12031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12034 {
12035 arg2 = wxString_in_helper(obj1);
12036 if (arg2 == NULL) SWIG_fail;
b411df4a 12037 temp2 = true;
d55e5bfc 12038 }
c370783e 12039 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12040 if (PyErr_Occurred()) SWIG_fail;
c370783e 12041 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12042 if (PyErr_Occurred()) SWIG_fail;
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12046
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 Py_INCREF(Py_None); resultobj = Py_None;
12051 {
12052 if (temp2)
12053 delete arg2;
12054 }
12055 return resultobj;
12056 fail:
12057 {
12058 if (temp2)
12059 delete arg2;
12060 }
12061 return NULL;
12062}
12063
12064
c370783e 12065static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12066 PyObject *resultobj;
12067 wxDC *arg1 = (wxDC *) 0 ;
12068 wxString *arg2 = 0 ;
12069 wxPoint *arg3 = 0 ;
b411df4a 12070 bool temp2 = false ;
d55e5bfc
RD
12071 wxPoint temp3 ;
12072 PyObject * obj0 = 0 ;
12073 PyObject * obj1 = 0 ;
12074 PyObject * obj2 = 0 ;
12075 char *kwnames[] = {
12076 (char *) "self",(char *) "text",(char *) "pt", NULL
12077 };
12078
d6c14a4c 12079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12082 {
12083 arg2 = wxString_in_helper(obj1);
12084 if (arg2 == NULL) SWIG_fail;
b411df4a 12085 temp2 = true;
d55e5bfc
RD
12086 }
12087 {
12088 arg3 = &temp3;
12089 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12090 }
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12094
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 Py_INCREF(Py_None); resultobj = Py_None;
12099 {
12100 if (temp2)
12101 delete arg2;
12102 }
12103 return resultobj;
12104 fail:
12105 {
12106 if (temp2)
12107 delete arg2;
12108 }
12109 return NULL;
12110}
12111
12112
c370783e 12113static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12114 PyObject *resultobj;
12115 wxDC *arg1 = (wxDC *) 0 ;
12116 wxString *arg2 = 0 ;
12117 int arg3 ;
12118 int arg4 ;
12119 double arg5 ;
b411df4a 12120 bool temp2 = false ;
d55e5bfc
RD
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 PyObject * obj2 = 0 ;
12124 PyObject * obj3 = 0 ;
12125 PyObject * obj4 = 0 ;
12126 char *kwnames[] = {
12127 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12128 };
12129
d6c14a4c 12130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12133 {
12134 arg2 = wxString_in_helper(obj1);
12135 if (arg2 == NULL) SWIG_fail;
b411df4a 12136 temp2 = true;
d55e5bfc 12137 }
c370783e 12138 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12139 if (PyErr_Occurred()) SWIG_fail;
c370783e 12140 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12141 if (PyErr_Occurred()) SWIG_fail;
c370783e 12142 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
12143 if (PyErr_Occurred()) SWIG_fail;
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12147
12148 wxPyEndAllowThreads(__tstate);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 Py_INCREF(Py_None); resultobj = Py_None;
12152 {
12153 if (temp2)
12154 delete arg2;
12155 }
12156 return resultobj;
12157 fail:
12158 {
12159 if (temp2)
12160 delete arg2;
12161 }
12162 return NULL;
12163}
12164
12165
c370783e 12166static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12167 PyObject *resultobj;
12168 wxDC *arg1 = (wxDC *) 0 ;
12169 wxString *arg2 = 0 ;
12170 wxPoint *arg3 = 0 ;
12171 double arg4 ;
b411df4a 12172 bool temp2 = false ;
d55e5bfc
RD
12173 wxPoint temp3 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 PyObject * obj2 = 0 ;
12177 PyObject * obj3 = 0 ;
12178 char *kwnames[] = {
12179 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12180 };
12181
d6c14a4c 12182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12185 {
12186 arg2 = wxString_in_helper(obj1);
12187 if (arg2 == NULL) SWIG_fail;
b411df4a 12188 temp2 = true;
d55e5bfc
RD
12189 }
12190 {
12191 arg3 = &temp3;
12192 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12193 }
c370783e 12194 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
12195 if (PyErr_Occurred()) SWIG_fail;
12196 {
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12199
12200 wxPyEndAllowThreads(__tstate);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 }
12203 Py_INCREF(Py_None); resultobj = Py_None;
12204 {
12205 if (temp2)
12206 delete arg2;
12207 }
12208 return resultobj;
12209 fail:
12210 {
12211 if (temp2)
12212 delete arg2;
12213 }
12214 return NULL;
12215}
12216
12217
c370783e 12218static PyObject *_wrap_DC_Blit(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 int arg5 ;
12225 wxDC *arg6 = (wxDC *) 0 ;
12226 int arg7 ;
12227 int arg8 ;
12228 int arg9 = (int) wxCOPY ;
b411df4a 12229 bool arg10 = (bool) false ;
d55e5bfc
RD
12230 int arg11 = (int) -1 ;
12231 int arg12 = (int) -1 ;
12232 bool result;
12233 PyObject * obj0 = 0 ;
12234 PyObject * obj1 = 0 ;
12235 PyObject * obj2 = 0 ;
12236 PyObject * obj3 = 0 ;
12237 PyObject * obj4 = 0 ;
12238 PyObject * obj5 = 0 ;
12239 PyObject * obj6 = 0 ;
12240 PyObject * obj7 = 0 ;
12241 PyObject * obj8 = 0 ;
12242 PyObject * obj9 = 0 ;
12243 PyObject * obj10 = 0 ;
12244 PyObject * obj11 = 0 ;
12245 char *kwnames[] = {
12246 (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
12247 };
12248
d6c14a4c 12249 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
12250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 12252 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12253 if (PyErr_Occurred()) SWIG_fail;
c370783e 12254 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12255 if (PyErr_Occurred()) SWIG_fail;
c370783e 12256 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12257 if (PyErr_Occurred()) SWIG_fail;
c370783e 12258 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12259 if (PyErr_Occurred()) SWIG_fail;
12260 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 12262 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc 12263 if (PyErr_Occurred()) SWIG_fail;
c370783e 12264 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
12265 if (PyErr_Occurred()) SWIG_fail;
12266 if (obj8) {
c370783e 12267 arg9 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 if (obj9) {
c370783e 12271 arg10 = (bool)SWIG_As_bool(obj9);
d55e5bfc
RD
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 if (obj10) {
c370783e 12275 arg11 = (int)SWIG_As_int(obj10);
d55e5bfc
RD
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 if (obj11) {
c370783e 12279 arg12 = (int)SWIG_As_int(obj11);
d55e5bfc
RD
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 PyThreadState* __tstate = wxPyBeginAllowThreads();
12284 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12285
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 {
12290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12291 }
12292 return resultobj;
12293 fail:
12294 return NULL;
12295}
12296
12297
c370783e 12298static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12299 PyObject *resultobj;
12300 wxDC *arg1 = (wxDC *) 0 ;
12301 wxPoint *arg2 = 0 ;
12302 wxSize *arg3 = 0 ;
12303 wxDC *arg4 = (wxDC *) 0 ;
12304 wxPoint *arg5 = 0 ;
12305 int arg6 = (int) wxCOPY ;
b411df4a 12306 bool arg7 = (bool) false ;
d55e5bfc
RD
12307 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12308 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12309 bool result;
12310 wxPoint temp2 ;
12311 wxSize temp3 ;
12312 wxPoint temp5 ;
12313 wxPoint temp8 ;
12314 PyObject * obj0 = 0 ;
12315 PyObject * obj1 = 0 ;
12316 PyObject * obj2 = 0 ;
12317 PyObject * obj3 = 0 ;
12318 PyObject * obj4 = 0 ;
12319 PyObject * obj5 = 0 ;
12320 PyObject * obj6 = 0 ;
12321 PyObject * obj7 = 0 ;
12322 char *kwnames[] = {
12323 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12324 };
12325
d6c14a4c 12326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
12327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12329 {
12330 arg2 = &temp2;
12331 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12332 }
12333 {
12334 arg3 = &temp3;
12335 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12336 }
12337 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12339 {
12340 arg5 = &temp5;
12341 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12342 }
12343 if (obj5) {
c370783e 12344 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 if (obj6) {
c370783e 12348 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
12349 if (PyErr_Occurred()) SWIG_fail;
12350 }
12351 if (obj7) {
12352 {
12353 arg8 = &temp8;
12354 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12355 }
12356 }
12357 {
12358 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c
RD
12359 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12360
12361 wxPyEndAllowThreads(__tstate);
12362 if (PyErr_Occurred()) SWIG_fail;
12363 }
12364 {
12365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12366 }
12367 return resultobj;
12368 fail:
12369 return NULL;
12370}
12371
12372
c370783e 12373static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12374 PyObject *resultobj;
12375 wxDC *arg1 = (wxDC *) 0 ;
12376 int arg2 ;
12377 int arg3 ;
12378 int arg4 ;
12379 int arg5 ;
12380 PyObject * obj0 = 0 ;
12381 PyObject * obj1 = 0 ;
12382 PyObject * obj2 = 0 ;
12383 PyObject * obj3 = 0 ;
12384 PyObject * obj4 = 0 ;
12385 char *kwnames[] = {
12386 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12387 };
12388
12389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 12392 arg2 = (int)SWIG_As_int(obj1);
d6c14a4c 12393 if (PyErr_Occurred()) SWIG_fail;
c370783e 12394 arg3 = (int)SWIG_As_int(obj2);
d6c14a4c 12395 if (PyErr_Occurred()) SWIG_fail;
c370783e 12396 arg4 = (int)SWIG_As_int(obj3);
d6c14a4c 12397 if (PyErr_Occurred()) SWIG_fail;
c370783e 12398 arg5 = (int)SWIG_As_int(obj4);
d6c14a4c
RD
12399 if (PyErr_Occurred()) SWIG_fail;
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12403
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 Py_INCREF(Py_None); resultobj = Py_None;
12408 return resultobj;
12409 fail:
12410 return NULL;
12411}
12412
12413
c370783e 12414static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12415 PyObject *resultobj;
12416 wxDC *arg1 = (wxDC *) 0 ;
12417 wxPoint *arg2 = 0 ;
12418 wxSize *arg3 = 0 ;
12419 wxPoint temp2 ;
12420 wxSize temp3 ;
12421 PyObject * obj0 = 0 ;
12422 PyObject * obj1 = 0 ;
12423 PyObject * obj2 = 0 ;
12424 char *kwnames[] = {
12425 (char *) "self",(char *) "pt",(char *) "sz", NULL
12426 };
12427
12428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12431 {
12432 arg2 = &temp2;
12433 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12434 }
12435 {
12436 arg3 = &temp3;
12437 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12438 }
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12442
12443 wxPyEndAllowThreads(__tstate);
12444 if (PyErr_Occurred()) SWIG_fail;
12445 }
12446 Py_INCREF(Py_None); resultobj = Py_None;
12447 return resultobj;
12448 fail:
12449 return NULL;
12450}
12451
12452
c370783e 12453static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12454 PyObject *resultobj;
12455 wxDC *arg1 = (wxDC *) 0 ;
12456 wxRegion *arg2 = 0 ;
12457 PyObject * obj0 = 0 ;
12458 PyObject * obj1 = 0 ;
12459 char *kwnames[] = {
12460 (char *) "self",(char *) "region", NULL
12461 };
12462
12463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12467 SWIG_POINTER_EXCEPTION | 0)) == -1)
12468 SWIG_fail;
12469 if (arg2 == NULL) {
12470 PyErr_SetString(PyExc_TypeError,"null reference");
12471 SWIG_fail;
12472 }
12473 {
12474 PyThreadState* __tstate = wxPyBeginAllowThreads();
12475 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12476
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 Py_INCREF(Py_None); resultobj = Py_None;
12481 return resultobj;
12482 fail:
12483 return NULL;
12484}
12485
12486
c370783e 12487static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12488 PyObject *resultobj;
12489 wxDC *arg1 = (wxDC *) 0 ;
12490 wxRect *arg2 = 0 ;
12491 wxRect temp2 ;
12492 PyObject * obj0 = 0 ;
12493 PyObject * obj1 = 0 ;
12494 char *kwnames[] = {
12495 (char *) "self",(char *) "rect", NULL
12496 };
12497
12498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12501 {
12502 arg2 = &temp2;
12503 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12504 }
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
12508
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
d6c14a4c 12512 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
12513 return resultobj;
12514 fail:
12515 return NULL;
12516}
12517
12518
c370783e 12519static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12520 PyObject *resultobj;
12521 wxDC *arg1 = (wxDC *) 0 ;
12522 int arg2 ;
12523 wxPoint *arg3 = (wxPoint *) 0 ;
12524 int arg4 = (int) 0 ;
12525 int arg5 = (int) 0 ;
12526 PyObject * obj0 = 0 ;
12527 PyObject * obj1 = 0 ;
12528 PyObject * obj2 = 0 ;
12529 PyObject * obj3 = 0 ;
12530 char *kwnames[] = {
12531 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12532 };
12533
12534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12537 {
12538 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12539 if (arg3 == NULL) SWIG_fail;
12540 }
12541 if (obj2) {
c370783e 12542 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 if (obj3) {
c370783e 12546 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12552
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 Py_INCREF(Py_None); resultobj = Py_None;
12557 {
12558 if (arg3) delete [] arg3;
12559 }
12560 return resultobj;
12561 fail:
12562 {
12563 if (arg3) delete [] arg3;
12564 }
12565 return NULL;
12566}
12567
12568
c370783e 12569static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12570 PyObject *resultobj;
12571 wxDC *arg1 = (wxDC *) 0 ;
12572 int arg2 ;
12573 wxPoint *arg3 = (wxPoint *) 0 ;
12574 int arg4 = (int) 0 ;
12575 int arg5 = (int) 0 ;
12576 int arg6 = (int) wxODDEVEN_RULE ;
12577 PyObject * obj0 = 0 ;
12578 PyObject * obj1 = 0 ;
12579 PyObject * obj2 = 0 ;
12580 PyObject * obj3 = 0 ;
12581 PyObject * obj4 = 0 ;
12582 char *kwnames[] = {
12583 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12584 };
12585
12586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12589 {
12590 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12591 if (arg3 == NULL) SWIG_fail;
12592 }
12593 if (obj2) {
c370783e 12594 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12595 if (PyErr_Occurred()) SWIG_fail;
12596 }
12597 if (obj3) {
c370783e 12598 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 if (obj4) {
c370783e 12602 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 {
12614 if (arg3) delete [] arg3;
12615 }
12616 return resultobj;
12617 fail:
12618 {
12619 if (arg3) delete [] arg3;
12620 }
12621 return NULL;
12622}
12623
12624
c370783e 12625static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12626 PyObject *resultobj;
12627 wxDC *arg1 = (wxDC *) 0 ;
12628 wxString *arg2 = 0 ;
12629 wxRect *arg3 = 0 ;
12630 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12631 int arg5 = (int) -1 ;
b411df4a 12632 bool temp2 = false ;
d55e5bfc
RD
12633 wxRect temp3 ;
12634 PyObject * obj0 = 0 ;
12635 PyObject * obj1 = 0 ;
12636 PyObject * obj2 = 0 ;
12637 PyObject * obj3 = 0 ;
12638 PyObject * obj4 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12646 {
12647 arg2 = wxString_in_helper(obj1);
12648 if (arg2 == NULL) SWIG_fail;
b411df4a 12649 temp2 = true;
d55e5bfc
RD
12650 }
12651 {
12652 arg3 = &temp3;
12653 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12654 }
12655 if (obj3) {
c370783e 12656 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 if (obj4) {
c370783e 12660 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12666
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 Py_INCREF(Py_None); resultobj = Py_None;
12671 {
12672 if (temp2)
12673 delete arg2;
12674 }
12675 return resultobj;
12676 fail:
12677 {
12678 if (temp2)
12679 delete arg2;
12680 }
12681 return NULL;
12682}
12683
12684
c370783e 12685static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12686 PyObject *resultobj;
12687 wxDC *arg1 = (wxDC *) 0 ;
12688 wxString *arg2 = 0 ;
12689 wxBitmap *arg3 = 0 ;
12690 wxRect *arg4 = 0 ;
12691 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12692 int arg6 = (int) -1 ;
12693 wxRect result;
b411df4a 12694 bool temp2 = false ;
d55e5bfc
RD
12695 wxRect temp4 ;
12696 PyObject * obj0 = 0 ;
12697 PyObject * obj1 = 0 ;
12698 PyObject * obj2 = 0 ;
12699 PyObject * obj3 = 0 ;
12700 PyObject * obj4 = 0 ;
12701 PyObject * obj5 = 0 ;
12702 char *kwnames[] = {
12703 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12704 };
12705
12706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12709 {
12710 arg2 = wxString_in_helper(obj1);
12711 if (arg2 == NULL) SWIG_fail;
b411df4a 12712 temp2 = true;
d55e5bfc
RD
12713 }
12714 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12715 SWIG_POINTER_EXCEPTION | 0)) == -1)
12716 SWIG_fail;
12717 if (arg3 == NULL) {
12718 PyErr_SetString(PyExc_TypeError,"null reference");
12719 SWIG_fail;
12720 }
12721 {
12722 arg4 = &temp4;
12723 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12724 }
12725 if (obj4) {
c370783e 12726 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12727 if (PyErr_Occurred()) SWIG_fail;
12728 }
12729 if (obj5) {
c370783e 12730 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 {
12734 PyThreadState* __tstate = wxPyBeginAllowThreads();
12735 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12736
12737 wxPyEndAllowThreads(__tstate);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 }
12740 {
12741 wxRect * resultptr;
12742 resultptr = new wxRect((wxRect &) result);
12743 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12744 }
12745 {
12746 if (temp2)
12747 delete arg2;
12748 }
12749 return resultobj;
12750 fail:
12751 {
12752 if (temp2)
12753 delete arg2;
12754 }
12755 return NULL;
12756}
12757
12758
c370783e 12759static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12760 PyObject *resultobj;
12761 wxDC *arg1 = (wxDC *) 0 ;
12762 int arg2 ;
12763 wxPoint *arg3 = (wxPoint *) 0 ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 char *kwnames[] = {
12767 (char *) "self",(char *) "points", NULL
12768 };
12769
12770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12773 {
12774 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12775 if (arg3 == NULL) SWIG_fail;
12776 }
12777 {
12778 PyThreadState* __tstate = wxPyBeginAllowThreads();
12779 (arg1)->DrawSpline(arg2,arg3);
12780
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 Py_INCREF(Py_None); resultobj = Py_None;
12785 {
12786 if (arg3) delete [] arg3;
12787 }
12788 return resultobj;
12789 fail:
12790 {
12791 if (arg3) delete [] arg3;
12792 }
12793 return NULL;
12794}
12795
12796
c370783e 12797static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12798 PyObject *resultobj;
12799 wxDC *arg1 = (wxDC *) 0 ;
12800 PyObject * obj0 = 0 ;
12801 char *kwnames[] = {
12802 (char *) "self", NULL
12803 };
12804
12805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12808 {
12809 PyThreadState* __tstate = wxPyBeginAllowThreads();
12810 (arg1)->Clear();
12811
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 Py_INCREF(Py_None); resultobj = Py_None;
12816 return resultobj;
12817 fail:
12818 return NULL;
12819}
12820
12821
c370783e 12822static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12823 PyObject *resultobj;
12824 wxDC *arg1 = (wxDC *) 0 ;
12825 wxString *arg2 = 0 ;
12826 bool result;
b411df4a 12827 bool temp2 = false ;
d55e5bfc
RD
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 char *kwnames[] = {
12831 (char *) "self",(char *) "message", NULL
12832 };
12833
12834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12837 {
12838 arg2 = wxString_in_helper(obj1);
12839 if (arg2 == NULL) SWIG_fail;
b411df4a 12840 temp2 = true;
d55e5bfc
RD
12841 }
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12845
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 {
12850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12851 }
12852 {
12853 if (temp2)
12854 delete arg2;
12855 }
12856 return resultobj;
12857 fail:
12858 {
12859 if (temp2)
12860 delete arg2;
12861 }
12862 return NULL;
12863}
12864
12865
c370783e 12866static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12867 PyObject *resultobj;
12868 wxDC *arg1 = (wxDC *) 0 ;
12869 PyObject * obj0 = 0 ;
12870 char *kwnames[] = {
12871 (char *) "self", NULL
12872 };
12873
12874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12877 {
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 (arg1)->EndDoc();
12880
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 Py_INCREF(Py_None); resultobj = Py_None;
12885 return resultobj;
12886 fail:
12887 return NULL;
12888}
12889
12890
c370783e 12891static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12892 PyObject *resultobj;
12893 wxDC *arg1 = (wxDC *) 0 ;
12894 PyObject * obj0 = 0 ;
12895 char *kwnames[] = {
12896 (char *) "self", NULL
12897 };
12898
12899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12902 {
12903 PyThreadState* __tstate = wxPyBeginAllowThreads();
12904 (arg1)->StartPage();
12905
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 Py_INCREF(Py_None); resultobj = Py_None;
12910 return resultobj;
12911 fail:
12912 return NULL;
12913}
12914
12915
c370783e 12916static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12917 PyObject *resultobj;
12918 wxDC *arg1 = (wxDC *) 0 ;
12919 PyObject * obj0 = 0 ;
12920 char *kwnames[] = {
12921 (char *) "self", NULL
12922 };
12923
12924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 (arg1)->EndPage();
12930
12931 wxPyEndAllowThreads(__tstate);
12932 if (PyErr_Occurred()) SWIG_fail;
12933 }
12934 Py_INCREF(Py_None); resultobj = Py_None;
12935 return resultobj;
12936 fail:
12937 return NULL;
12938}
12939
12940
c370783e 12941static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12942 PyObject *resultobj;
12943 wxDC *arg1 = (wxDC *) 0 ;
12944 wxFont *arg2 = 0 ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 char *kwnames[] = {
12948 (char *) "self",(char *) "font", NULL
12949 };
12950
12951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12955 SWIG_POINTER_EXCEPTION | 0)) == -1)
12956 SWIG_fail;
12957 if (arg2 == NULL) {
12958 PyErr_SetString(PyExc_TypeError,"null reference");
12959 SWIG_fail;
12960 }
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 (arg1)->SetFont((wxFont const &)*arg2);
12964
12965 wxPyEndAllowThreads(__tstate);
12966 if (PyErr_Occurred()) SWIG_fail;
12967 }
12968 Py_INCREF(Py_None); resultobj = Py_None;
12969 return resultobj;
12970 fail:
12971 return NULL;
12972}
12973
12974
c370783e 12975static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12976 PyObject *resultobj;
12977 wxDC *arg1 = (wxDC *) 0 ;
12978 wxPen *arg2 = 0 ;
12979 PyObject * obj0 = 0 ;
12980 PyObject * obj1 = 0 ;
12981 char *kwnames[] = {
12982 (char *) "self",(char *) "pen", NULL
12983 };
12984
12985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12988 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12989 SWIG_POINTER_EXCEPTION | 0)) == -1)
12990 SWIG_fail;
12991 if (arg2 == NULL) {
12992 PyErr_SetString(PyExc_TypeError,"null reference");
12993 SWIG_fail;
12994 }
12995 {
12996 PyThreadState* __tstate = wxPyBeginAllowThreads();
12997 (arg1)->SetPen((wxPen const &)*arg2);
12998
12999 wxPyEndAllowThreads(__tstate);
13000 if (PyErr_Occurred()) SWIG_fail;
13001 }
13002 Py_INCREF(Py_None); resultobj = Py_None;
13003 return resultobj;
13004 fail:
13005 return NULL;
13006}
13007
13008
c370783e 13009static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13010 PyObject *resultobj;
13011 wxDC *arg1 = (wxDC *) 0 ;
13012 wxBrush *arg2 = 0 ;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 char *kwnames[] = {
13016 (char *) "self",(char *) "brush", NULL
13017 };
13018
13019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13023 SWIG_POINTER_EXCEPTION | 0)) == -1)
13024 SWIG_fail;
13025 if (arg2 == NULL) {
13026 PyErr_SetString(PyExc_TypeError,"null reference");
13027 SWIG_fail;
13028 }
13029 {
13030 PyThreadState* __tstate = wxPyBeginAllowThreads();
13031 (arg1)->SetBrush((wxBrush const &)*arg2);
13032
13033 wxPyEndAllowThreads(__tstate);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
13036 Py_INCREF(Py_None); resultobj = Py_None;
13037 return resultobj;
13038 fail:
13039 return NULL;
13040}
13041
13042
c370783e 13043static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13044 PyObject *resultobj;
13045 wxDC *arg1 = (wxDC *) 0 ;
13046 wxBrush *arg2 = 0 ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char *kwnames[] = {
13050 (char *) "self",(char *) "brush", NULL
13051 };
13052
13053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13057 SWIG_POINTER_EXCEPTION | 0)) == -1)
13058 SWIG_fail;
13059 if (arg2 == NULL) {
13060 PyErr_SetString(PyExc_TypeError,"null reference");
13061 SWIG_fail;
13062 }
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->SetBackground((wxBrush const &)*arg2);
13066
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 Py_INCREF(Py_None); resultobj = Py_None;
13071 return resultobj;
13072 fail:
13073 return NULL;
13074}
13075
13076
c370783e 13077static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13078 PyObject *resultobj;
13079 wxDC *arg1 = (wxDC *) 0 ;
13080 int arg2 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self",(char *) "mode", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13090 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13091 if (PyErr_Occurred()) SWIG_fail;
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 (arg1)->SetBackgroundMode(arg2);
13095
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) SWIG_fail;
13098 }
13099 Py_INCREF(Py_None); resultobj = Py_None;
13100 return resultobj;
13101 fail:
13102 return NULL;
13103}
13104
13105
c370783e 13106static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13107 PyObject *resultobj;
13108 wxDC *arg1 = (wxDC *) 0 ;
13109 wxPalette *arg2 = 0 ;
13110 PyObject * obj0 = 0 ;
13111 PyObject * obj1 = 0 ;
13112 char *kwnames[] = {
13113 (char *) "self",(char *) "palette", NULL
13114 };
13115
13116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13120 SWIG_POINTER_EXCEPTION | 0)) == -1)
13121 SWIG_fail;
13122 if (arg2 == NULL) {
13123 PyErr_SetString(PyExc_TypeError,"null reference");
13124 SWIG_fail;
13125 }
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 (arg1)->SetPalette((wxPalette const &)*arg2);
13129
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 Py_INCREF(Py_None); resultobj = Py_None;
13134 return resultobj;
13135 fail:
13136 return NULL;
13137}
13138
13139
c370783e 13140static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13141 PyObject *resultobj;
13142 wxDC *arg1 = (wxDC *) 0 ;
13143 PyObject * obj0 = 0 ;
13144 char *kwnames[] = {
13145 (char *) "self", NULL
13146 };
13147
13148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 (arg1)->DestroyClippingRegion();
13154
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 Py_INCREF(Py_None); resultobj = Py_None;
13159 return resultobj;
13160 fail:
13161 return NULL;
13162}
13163
13164
c370783e 13165static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13166 PyObject *resultobj;
13167 wxDC *arg1 = (wxDC *) 0 ;
13168 int *arg2 = (int *) 0 ;
13169 int *arg3 = (int *) 0 ;
13170 int *arg4 = (int *) 0 ;
13171 int *arg5 = (int *) 0 ;
13172 int temp2 ;
c370783e 13173 int res2 = 0 ;
d55e5bfc 13174 int temp3 ;
c370783e 13175 int res3 = 0 ;
d55e5bfc 13176 int temp4 ;
c370783e 13177 int res4 = 0 ;
d55e5bfc 13178 int temp5 ;
c370783e 13179 int res5 = 0 ;
d55e5bfc
RD
13180 PyObject * obj0 = 0 ;
13181 char *kwnames[] = {
13182 (char *) "self", NULL
13183 };
13184
c370783e
RD
13185 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13186 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13187 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13188 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13192 {
13193 PyThreadState* __tstate = wxPyBeginAllowThreads();
13194 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13195
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13200 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13201 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13202 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13203 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13204 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13205 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13206 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13207 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13208 return resultobj;
13209 fail:
13210 return NULL;
13211}
13212
13213
c370783e 13214static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13215 PyObject *resultobj;
13216 wxDC *arg1 = (wxDC *) 0 ;
13217 wxRect result;
13218 PyObject * obj0 = 0 ;
13219 char *kwnames[] = {
13220 (char *) "self", NULL
13221 };
13222
13223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = wxDC_GetClippingRect(arg1);
13229
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 {
13234 wxRect * resultptr;
13235 resultptr = new wxRect((wxRect &) result);
13236 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13237 }
13238 return resultobj;
13239 fail:
13240 return NULL;
13241}
13242
13243
c370783e 13244static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13245 PyObject *resultobj;
13246 wxDC *arg1 = (wxDC *) 0 ;
13247 int result;
13248 PyObject * obj0 = 0 ;
13249 char *kwnames[] = {
13250 (char *) "self", NULL
13251 };
13252
13253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 result = (int)((wxDC const *)arg1)->GetCharHeight();
13259
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
c370783e 13263 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13264 return resultobj;
13265 fail:
13266 return NULL;
13267}
13268
13269
c370783e 13270static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13271 PyObject *resultobj;
13272 wxDC *arg1 = (wxDC *) 0 ;
13273 int result;
13274 PyObject * obj0 = 0 ;
13275 char *kwnames[] = {
13276 (char *) "self", NULL
13277 };
13278
13279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13282 {
13283 PyThreadState* __tstate = wxPyBeginAllowThreads();
13284 result = (int)((wxDC const *)arg1)->GetCharWidth();
13285
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
c370783e 13289 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13290 return resultobj;
13291 fail:
13292 return NULL;
13293}
13294
13295
c370783e 13296static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13297 PyObject *resultobj;
13298 wxDC *arg1 = (wxDC *) 0 ;
13299 wxString *arg2 = 0 ;
13300 int *arg3 = (int *) 0 ;
13301 int *arg4 = (int *) 0 ;
b411df4a 13302 bool temp2 = false ;
d55e5bfc 13303 int temp3 ;
c370783e 13304 int res3 = 0 ;
d55e5bfc 13305 int temp4 ;
c370783e 13306 int res4 = 0 ;
d55e5bfc
RD
13307 PyObject * obj0 = 0 ;
13308 PyObject * obj1 = 0 ;
13309 char *kwnames[] = {
13310 (char *) "self",(char *) "string", NULL
13311 };
13312
c370783e
RD
13313 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13314 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13318 {
13319 arg2 = wxString_in_helper(obj1);
13320 if (arg2 == NULL) SWIG_fail;
b411df4a 13321 temp2 = true;
d55e5bfc
RD
13322 }
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13326
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13331 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13332 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13333 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13334 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13335 {
13336 if (temp2)
13337 delete arg2;
13338 }
13339 return resultobj;
13340 fail:
13341 {
13342 if (temp2)
13343 delete arg2;
13344 }
13345 return NULL;
13346}
13347
13348
c370783e 13349static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13350 PyObject *resultobj;
13351 wxDC *arg1 = (wxDC *) 0 ;
13352 wxString *arg2 = 0 ;
13353 int *arg3 = (int *) 0 ;
13354 int *arg4 = (int *) 0 ;
13355 int *arg5 = (int *) 0 ;
13356 int *arg6 = (int *) 0 ;
13357 wxFont *arg7 = (wxFont *) NULL ;
b411df4a 13358 bool temp2 = false ;
d55e5bfc 13359 int temp3 ;
c370783e 13360 int res3 = 0 ;
d55e5bfc 13361 int temp4 ;
c370783e 13362 int res4 = 0 ;
d55e5bfc 13363 int temp5 ;
c370783e 13364 int res5 = 0 ;
d55e5bfc 13365 int temp6 ;
c370783e 13366 int res6 = 0 ;
d55e5bfc
RD
13367 PyObject * obj0 = 0 ;
13368 PyObject * obj1 = 0 ;
13369 PyObject * obj2 = 0 ;
13370 char *kwnames[] = {
13371 (char *) "self",(char *) "string",(char *) "font", NULL
13372 };
13373
c370783e
RD
13374 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13375 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13376 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13377 arg6 = &temp6; res6 = SWIG_NEWOBJ;
d55e5bfc
RD
13378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13381 {
13382 arg2 = wxString_in_helper(obj1);
13383 if (arg2 == NULL) SWIG_fail;
b411df4a 13384 temp2 = true;
d55e5bfc
RD
13385 }
13386 if (obj2) {
13387 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13389 }
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13393
13394 wxPyEndAllowThreads(__tstate);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13398 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13399 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13400 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13401 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13402 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13403 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13404 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13405 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13406 {
13407 if (temp2)
13408 delete arg2;
13409 }
13410 return resultobj;
13411 fail:
13412 {
13413 if (temp2)
13414 delete arg2;
13415 }
13416 return NULL;
13417}
13418
13419
c370783e 13420static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13421 PyObject *resultobj;
13422 wxDC *arg1 = (wxDC *) 0 ;
13423 wxString *arg2 = 0 ;
13424 int *arg3 = (int *) 0 ;
13425 int *arg4 = (int *) 0 ;
13426 int *arg5 = (int *) 0 ;
13427 wxFont *arg6 = (wxFont *) NULL ;
b411df4a 13428 bool temp2 = false ;
d55e5bfc 13429 int temp3 ;
c370783e 13430 int res3 = 0 ;
d55e5bfc 13431 int temp4 ;
c370783e 13432 int res4 = 0 ;
d55e5bfc 13433 int temp5 ;
c370783e 13434 int res5 = 0 ;
d55e5bfc
RD
13435 PyObject * obj0 = 0 ;
13436 PyObject * obj1 = 0 ;
13437 PyObject * obj2 = 0 ;
13438 char *kwnames[] = {
13439 (char *) "self",(char *) "text",(char *) "font", NULL
13440 };
13441
c370783e
RD
13442 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13443 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13444 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13448 {
13449 arg2 = wxString_in_helper(obj1);
13450 if (arg2 == NULL) SWIG_fail;
b411df4a 13451 temp2 = true;
d55e5bfc
RD
13452 }
13453 if (obj2) {
13454 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13456 }
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13460
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13465 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13466 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13467 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13468 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13469 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13470 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13471 {
13472 if (temp2)
13473 delete arg2;
13474 }
13475 return resultobj;
13476 fail:
13477 {
13478 if (temp2)
13479 delete arg2;
13480 }
13481 return NULL;
13482}
13483
13484
c370783e 13485static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13486 PyObject *resultobj;
13487 wxDC *arg1 = (wxDC *) 0 ;
13488 wxString *arg2 = 0 ;
13489 wxArrayInt result;
b411df4a 13490 bool temp2 = false ;
d55e5bfc
RD
13491 PyObject * obj0 = 0 ;
13492 PyObject * obj1 = 0 ;
13493 char *kwnames[] = {
13494 (char *) "self",(char *) "text", NULL
13495 };
13496
13497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13500 {
13501 arg2 = wxString_in_helper(obj1);
13502 if (arg2 == NULL) SWIG_fail;
b411df4a 13503 temp2 = true;
d55e5bfc
RD
13504 }
13505 {
13506 PyThreadState* __tstate = wxPyBeginAllowThreads();
13507 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13508
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 {
13513 resultobj = PyList_New(0);
13514 size_t idx;
13515 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13516 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13517 PyList_Append(resultobj, val);
13518 Py_DECREF(val);
13519 }
13520 }
13521 {
13522 if (temp2)
13523 delete arg2;
13524 }
13525 return resultobj;
13526 fail:
13527 {
13528 if (temp2)
13529 delete arg2;
13530 }
13531 return NULL;
13532}
13533
13534
c370783e 13535static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13536 PyObject *resultobj;
13537 wxDC *arg1 = (wxDC *) 0 ;
13538 wxSize result;
13539 PyObject * obj0 = 0 ;
13540 char *kwnames[] = {
13541 (char *) "self", NULL
13542 };
13543
13544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 result = (arg1)->GetSize();
13550
13551 wxPyEndAllowThreads(__tstate);
13552 if (PyErr_Occurred()) SWIG_fail;
13553 }
13554 {
13555 wxSize * resultptr;
13556 resultptr = new wxSize((wxSize &) result);
13557 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13558 }
13559 return resultobj;
13560 fail:
13561 return NULL;
13562}
13563
13564
c370783e 13565static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13566 PyObject *resultobj;
13567 wxDC *arg1 = (wxDC *) 0 ;
13568 int *arg2 = (int *) 0 ;
13569 int *arg3 = (int *) 0 ;
13570 int temp2 ;
c370783e 13571 int res2 = 0 ;
d55e5bfc 13572 int temp3 ;
c370783e 13573 int res3 = 0 ;
d55e5bfc
RD
13574 PyObject * obj0 = 0 ;
13575 char *kwnames[] = {
13576 (char *) "self", NULL
13577 };
13578
c370783e
RD
13579 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13580 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
13581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 (arg1)->GetSize(arg2,arg3);
13587
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13592 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13593 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13594 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13595 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13596 return resultobj;
13597 fail:
13598 return NULL;
13599}
13600
13601
c370783e 13602static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13603 PyObject *resultobj;
13604 wxDC *arg1 = (wxDC *) 0 ;
13605 wxSize result;
13606 PyObject * obj0 = 0 ;
13607 char *kwnames[] = {
13608 (char *) "self", NULL
13609 };
13610
13611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 result = ((wxDC const *)arg1)->GetSizeMM();
13617
13618 wxPyEndAllowThreads(__tstate);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 }
13621 {
13622 wxSize * resultptr;
13623 resultptr = new wxSize((wxSize &) result);
13624 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13625 }
13626 return resultobj;
13627 fail:
13628 return NULL;
13629}
13630
13631
c370783e 13632static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13633 PyObject *resultobj;
13634 wxDC *arg1 = (wxDC *) 0 ;
13635 int *arg2 = (int *) 0 ;
13636 int *arg3 = (int *) 0 ;
13637 int temp2 ;
c370783e 13638 int res2 = 0 ;
d55e5bfc 13639 int temp3 ;
c370783e 13640 int res3 = 0 ;
d55e5bfc
RD
13641 PyObject * obj0 = 0 ;
13642 char *kwnames[] = {
13643 (char *) "self", NULL
13644 };
13645
c370783e
RD
13646 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13647 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
13648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13654
13655 wxPyEndAllowThreads(__tstate);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 }
13658 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13659 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13660 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13661 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13662 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13663 return resultobj;
13664 fail:
13665 return NULL;
13666}
13667
13668
c370783e 13669static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13670 PyObject *resultobj;
13671 wxDC *arg1 = (wxDC *) 0 ;
13672 int arg2 ;
13673 int result;
13674 PyObject * obj0 = 0 ;
13675 PyObject * obj1 = 0 ;
13676 char *kwnames[] = {
13677 (char *) "self",(char *) "x", NULL
13678 };
13679
13680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13683 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13684 if (PyErr_Occurred()) SWIG_fail;
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13688
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
c370783e 13692 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13693 return resultobj;
13694 fail:
13695 return NULL;
13696}
13697
13698
c370783e 13699static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13700 PyObject *resultobj;
13701 wxDC *arg1 = (wxDC *) 0 ;
13702 int arg2 ;
13703 int result;
13704 PyObject * obj0 = 0 ;
13705 PyObject * obj1 = 0 ;
13706 char *kwnames[] = {
13707 (char *) "self",(char *) "y", NULL
13708 };
13709
13710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13713 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13714 if (PyErr_Occurred()) SWIG_fail;
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13718
13719 wxPyEndAllowThreads(__tstate);
13720 if (PyErr_Occurred()) SWIG_fail;
13721 }
c370783e 13722 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13723 return resultobj;
13724 fail:
13725 return NULL;
13726}
13727
13728
c370783e 13729static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13730 PyObject *resultobj;
13731 wxDC *arg1 = (wxDC *) 0 ;
13732 int arg2 ;
13733 int result;
13734 PyObject * obj0 = 0 ;
13735 PyObject * obj1 = 0 ;
13736 char *kwnames[] = {
13737 (char *) "self",(char *) "x", NULL
13738 };
13739
13740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13743 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13744 if (PyErr_Occurred()) SWIG_fail;
13745 {
13746 PyThreadState* __tstate = wxPyBeginAllowThreads();
13747 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13748
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
c370783e 13752 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13753 return resultobj;
13754 fail:
13755 return NULL;
13756}
13757
13758
c370783e 13759static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13760 PyObject *resultobj;
13761 wxDC *arg1 = (wxDC *) 0 ;
13762 int arg2 ;
13763 int result;
13764 PyObject * obj0 = 0 ;
13765 PyObject * obj1 = 0 ;
13766 char *kwnames[] = {
13767 (char *) "self",(char *) "y", NULL
13768 };
13769
13770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13773 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13774 if (PyErr_Occurred()) SWIG_fail;
13775 {
13776 PyThreadState* __tstate = wxPyBeginAllowThreads();
13777 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13778
13779 wxPyEndAllowThreads(__tstate);
13780 if (PyErr_Occurred()) SWIG_fail;
13781 }
c370783e 13782 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13783 return resultobj;
13784 fail:
13785 return NULL;
13786}
13787
13788
c370783e 13789static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13790 PyObject *resultobj;
13791 wxDC *arg1 = (wxDC *) 0 ;
13792 int arg2 ;
13793 int result;
13794 PyObject * obj0 = 0 ;
13795 PyObject * obj1 = 0 ;
13796 char *kwnames[] = {
13797 (char *) "self",(char *) "x", NULL
13798 };
13799
13800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13803 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13804 if (PyErr_Occurred()) SWIG_fail;
13805 {
13806 PyThreadState* __tstate = wxPyBeginAllowThreads();
13807 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13808
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
c370783e 13812 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13813 return resultobj;
13814 fail:
13815 return NULL;
13816}
13817
13818
c370783e 13819static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13820 PyObject *resultobj;
13821 wxDC *arg1 = (wxDC *) 0 ;
13822 int arg2 ;
13823 int result;
13824 PyObject * obj0 = 0 ;
13825 PyObject * obj1 = 0 ;
13826 char *kwnames[] = {
13827 (char *) "self",(char *) "y", NULL
13828 };
13829
13830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13833 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13834 if (PyErr_Occurred()) SWIG_fail;
13835 {
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13838
13839 wxPyEndAllowThreads(__tstate);
13840 if (PyErr_Occurred()) SWIG_fail;
13841 }
c370783e 13842 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13843 return resultobj;
13844 fail:
13845 return NULL;
13846}
13847
13848
c370783e 13849static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13850 PyObject *resultobj;
13851 wxDC *arg1 = (wxDC *) 0 ;
13852 int arg2 ;
13853 int result;
13854 PyObject * obj0 = 0 ;
13855 PyObject * obj1 = 0 ;
13856 char *kwnames[] = {
13857 (char *) "self",(char *) "x", NULL
13858 };
13859
13860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13863 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13864 if (PyErr_Occurred()) SWIG_fail;
13865 {
13866 PyThreadState* __tstate = wxPyBeginAllowThreads();
13867 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13868
13869 wxPyEndAllowThreads(__tstate);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
c370783e 13872 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13873 return resultobj;
13874 fail:
13875 return NULL;
13876}
13877
13878
c370783e 13879static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13880 PyObject *resultobj;
13881 wxDC *arg1 = (wxDC *) 0 ;
13882 int arg2 ;
13883 int result;
13884 PyObject * obj0 = 0 ;
13885 PyObject * obj1 = 0 ;
13886 char *kwnames[] = {
13887 (char *) "self",(char *) "y", NULL
13888 };
13889
13890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13893 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13894 if (PyErr_Occurred()) SWIG_fail;
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
c370783e 13902 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13903 return resultobj;
13904 fail:
13905 return NULL;
13906}
13907
13908
c370783e 13909static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13910 PyObject *resultobj;
13911 wxDC *arg1 = (wxDC *) 0 ;
13912 bool result;
13913 PyObject * obj0 = 0 ;
13914 char *kwnames[] = {
13915 (char *) "self", NULL
13916 };
13917
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13921 {
13922 PyThreadState* __tstate = wxPyBeginAllowThreads();
13923 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13924
13925 wxPyEndAllowThreads(__tstate);
13926 if (PyErr_Occurred()) SWIG_fail;
13927 }
13928 {
13929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13930 }
13931 return resultobj;
13932 fail:
13933 return NULL;
13934}
13935
13936
c370783e 13937static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13938 PyObject *resultobj;
13939 wxDC *arg1 = (wxDC *) 0 ;
13940 bool result;
13941 PyObject * obj0 = 0 ;
13942 char *kwnames[] = {
13943 (char *) "self", NULL
13944 };
13945
13946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13952
13953 wxPyEndAllowThreads(__tstate);
13954 if (PyErr_Occurred()) SWIG_fail;
13955 }
13956 {
13957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13958 }
13959 return resultobj;
13960 fail:
13961 return NULL;
13962}
13963
13964
c370783e 13965static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13966 PyObject *resultobj;
13967 wxDC *arg1 = (wxDC *) 0 ;
13968 int result;
13969 PyObject * obj0 = 0 ;
13970 char *kwnames[] = {
13971 (char *) "self", NULL
13972 };
13973
13974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13977 {
13978 PyThreadState* __tstate = wxPyBeginAllowThreads();
13979 result = (int)((wxDC const *)arg1)->GetDepth();
13980
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
c370783e 13984 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13985 return resultobj;
13986 fail:
13987 return NULL;
13988}
13989
13990
c370783e 13991static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13992 PyObject *resultobj;
13993 wxDC *arg1 = (wxDC *) 0 ;
13994 wxSize result;
13995 PyObject * obj0 = 0 ;
13996 char *kwnames[] = {
13997 (char *) "self", NULL
13998 };
13999
14000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14003 {
14004 PyThreadState* __tstate = wxPyBeginAllowThreads();
14005 result = ((wxDC const *)arg1)->GetPPI();
14006
14007 wxPyEndAllowThreads(__tstate);
14008 if (PyErr_Occurred()) SWIG_fail;
14009 }
14010 {
14011 wxSize * resultptr;
14012 resultptr = new wxSize((wxSize &) result);
14013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14014 }
14015 return resultobj;
14016 fail:
14017 return NULL;
14018}
14019
14020
c370783e 14021static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14022 PyObject *resultobj;
14023 wxDC *arg1 = (wxDC *) 0 ;
14024 bool result;
14025 PyObject * obj0 = 0 ;
14026 char *kwnames[] = {
14027 (char *) "self", NULL
14028 };
14029
14030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14033 {
14034 PyThreadState* __tstate = wxPyBeginAllowThreads();
14035 result = (bool)((wxDC const *)arg1)->Ok();
14036
14037 wxPyEndAllowThreads(__tstate);
14038 if (PyErr_Occurred()) SWIG_fail;
14039 }
14040 {
14041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14042 }
14043 return resultobj;
14044 fail:
14045 return NULL;
14046}
14047
14048
c370783e 14049static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14050 PyObject *resultobj;
14051 wxDC *arg1 = (wxDC *) 0 ;
14052 int result;
14053 PyObject * obj0 = 0 ;
14054 char *kwnames[] = {
14055 (char *) "self", NULL
14056 };
14057
14058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14064
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
c370783e 14068 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14069 return resultobj;
14070 fail:
14071 return NULL;
14072}
14073
14074
c370783e 14075static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14076 PyObject *resultobj;
14077 wxDC *arg1 = (wxDC *) 0 ;
14078 wxBrush *result;
14079 PyObject * obj0 = 0 ;
14080 char *kwnames[] = {
14081 (char *) "self", NULL
14082 };
14083
14084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14087 {
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 {
14090 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14091 result = (wxBrush *) &_result_ref;
14092 }
14093
14094 wxPyEndAllowThreads(__tstate);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 }
14097 {
14098 wxBrush* resultptr = new wxBrush(*result);
14099 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14100 }
14101 return resultobj;
14102 fail:
14103 return NULL;
14104}
14105
14106
c370783e 14107static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14108 PyObject *resultobj;
14109 wxDC *arg1 = (wxDC *) 0 ;
14110 wxBrush *result;
14111 PyObject * obj0 = 0 ;
14112 char *kwnames[] = {
14113 (char *) "self", NULL
14114 };
14115
14116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 {
14122 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14123 result = (wxBrush *) &_result_ref;
14124 }
14125
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 {
14130 wxBrush* resultptr = new wxBrush(*result);
14131 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14132 }
14133 return resultobj;
14134 fail:
14135 return NULL;
14136}
14137
14138
c370783e 14139static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14140 PyObject *resultobj;
14141 wxDC *arg1 = (wxDC *) 0 ;
14142 wxFont *result;
14143 PyObject * obj0 = 0 ;
14144 char *kwnames[] = {
14145 (char *) "self", NULL
14146 };
14147
14148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14151 {
14152 PyThreadState* __tstate = wxPyBeginAllowThreads();
14153 {
14154 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14155 result = (wxFont *) &_result_ref;
14156 }
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162 wxFont* resultptr = new wxFont(*result);
14163 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14164 }
14165 return resultobj;
14166 fail:
14167 return NULL;
14168}
14169
14170
c370783e 14171static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14172 PyObject *resultobj;
14173 wxDC *arg1 = (wxDC *) 0 ;
14174 wxPen *result;
14175 PyObject * obj0 = 0 ;
14176 char *kwnames[] = {
14177 (char *) "self", NULL
14178 };
14179
14180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 {
14186 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14187 result = (wxPen *) &_result_ref;
14188 }
14189
14190 wxPyEndAllowThreads(__tstate);
14191 if (PyErr_Occurred()) SWIG_fail;
14192 }
14193 {
14194 wxPen* resultptr = new wxPen(*result);
14195 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14196 }
14197 return resultobj;
14198 fail:
14199 return NULL;
14200}
14201
14202
c370783e 14203static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14204 PyObject *resultobj;
14205 wxDC *arg1 = (wxDC *) 0 ;
14206 wxColour *result;
14207 PyObject * obj0 = 0 ;
14208 char *kwnames[] = {
14209 (char *) "self", NULL
14210 };
14211
14212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14215 {
14216 PyThreadState* __tstate = wxPyBeginAllowThreads();
14217 {
14218 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14219 result = (wxColour *) &_result_ref;
14220 }
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14226 return resultobj;
14227 fail:
14228 return NULL;
14229}
14230
14231
c370783e 14232static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14233 PyObject *resultobj;
14234 wxDC *arg1 = (wxDC *) 0 ;
14235 wxColour *result;
14236 PyObject * obj0 = 0 ;
14237 char *kwnames[] = {
14238 (char *) "self", NULL
14239 };
14240
14241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14244 {
14245 PyThreadState* __tstate = wxPyBeginAllowThreads();
14246 {
14247 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14248 result = (wxColour *) &_result_ref;
14249 }
14250
14251 wxPyEndAllowThreads(__tstate);
14252 if (PyErr_Occurred()) SWIG_fail;
14253 }
14254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14255 return resultobj;
14256 fail:
14257 return NULL;
14258}
14259
14260
c370783e 14261static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14262 PyObject *resultobj;
14263 wxDC *arg1 = (wxDC *) 0 ;
14264 wxColour *arg2 = 0 ;
14265 wxColour temp2 ;
14266 PyObject * obj0 = 0 ;
14267 PyObject * obj1 = 0 ;
14268 char *kwnames[] = {
14269 (char *) "self",(char *) "colour", NULL
14270 };
14271
14272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14275 {
14276 arg2 = &temp2;
14277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14278 }
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 (arg1)->SetTextForeground((wxColour const &)*arg2);
14282
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 Py_INCREF(Py_None); resultobj = Py_None;
14287 return resultobj;
14288 fail:
14289 return NULL;
14290}
14291
14292
c370783e 14293static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14294 PyObject *resultobj;
14295 wxDC *arg1 = (wxDC *) 0 ;
14296 wxColour *arg2 = 0 ;
14297 wxColour temp2 ;
14298 PyObject * obj0 = 0 ;
14299 PyObject * obj1 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self",(char *) "colour", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14307 {
14308 arg2 = &temp2;
14309 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14310 }
14311 {
14312 PyThreadState* __tstate = wxPyBeginAllowThreads();
14313 (arg1)->SetTextBackground((wxColour const &)*arg2);
14314
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 Py_INCREF(Py_None); resultobj = Py_None;
14319 return resultobj;
14320 fail:
14321 return NULL;
14322}
14323
14324
c370783e 14325static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14326 PyObject *resultobj;
14327 wxDC *arg1 = (wxDC *) 0 ;
14328 int result;
14329 PyObject * obj0 = 0 ;
14330 char *kwnames[] = {
14331 (char *) "self", NULL
14332 };
14333
14334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = (int)((wxDC const *)arg1)->GetMapMode();
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
c370783e 14344 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14345 return resultobj;
14346 fail:
14347 return NULL;
14348}
14349
14350
c370783e 14351static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14352 PyObject *resultobj;
14353 wxDC *arg1 = (wxDC *) 0 ;
14354 int arg2 ;
14355 PyObject * obj0 = 0 ;
14356 PyObject * obj1 = 0 ;
14357 char *kwnames[] = {
14358 (char *) "self",(char *) "mode", NULL
14359 };
14360
14361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14364 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14365 if (PyErr_Occurred()) SWIG_fail;
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 (arg1)->SetMapMode(arg2);
14369
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 Py_INCREF(Py_None); resultobj = Py_None;
14374 return resultobj;
14375 fail:
14376 return NULL;
14377}
14378
14379
c370783e 14380static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14381 PyObject *resultobj;
14382 wxDC *arg1 = (wxDC *) 0 ;
14383 double *arg2 = (double *) 0 ;
14384 double *arg3 = (double *) 0 ;
14385 double temp2 ;
c370783e 14386 int res2 = 0 ;
d55e5bfc 14387 double temp3 ;
c370783e 14388 int res3 = 0 ;
d55e5bfc
RD
14389 PyObject * obj0 = 0 ;
14390 char *kwnames[] = {
14391 (char *) "self", NULL
14392 };
14393
c370783e
RD
14394 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14395 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14402
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14407 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14408 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14409 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14410 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14411 return resultobj;
14412 fail:
14413 return NULL;
14414}
14415
14416
c370783e 14417static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14418 PyObject *resultobj;
14419 wxDC *arg1 = (wxDC *) 0 ;
14420 double arg2 ;
14421 double arg3 ;
14422 PyObject * obj0 = 0 ;
14423 PyObject * obj1 = 0 ;
14424 PyObject * obj2 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self",(char *) "x",(char *) "y", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14432 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14433 if (PyErr_Occurred()) SWIG_fail;
c370783e 14434 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
14435 if (PyErr_Occurred()) SWIG_fail;
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 (arg1)->SetUserScale(arg2,arg3);
14439
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 Py_INCREF(Py_None); resultobj = Py_None;
14444 return resultobj;
14445 fail:
14446 return NULL;
14447}
14448
14449
c370783e 14450static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14451 PyObject *resultobj;
14452 wxDC *arg1 = (wxDC *) 0 ;
14453 double *arg2 = (double *) 0 ;
14454 double *arg3 = (double *) 0 ;
14455 double temp2 ;
c370783e 14456 int res2 = 0 ;
d55e5bfc 14457 double temp3 ;
c370783e 14458 int res3 = 0 ;
d55e5bfc
RD
14459 PyObject * obj0 = 0 ;
14460 char *kwnames[] = {
14461 (char *) "self", NULL
14462 };
14463
c370783e
RD
14464 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14465 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 (arg1)->GetLogicalScale(arg2,arg3);
14472
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14477 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14478 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14479 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14480 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14481 return resultobj;
14482 fail:
14483 return NULL;
14484}
14485
14486
c370783e 14487static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14488 PyObject *resultobj;
14489 wxDC *arg1 = (wxDC *) 0 ;
14490 double arg2 ;
14491 double arg3 ;
14492 PyObject * obj0 = 0 ;
14493 PyObject * obj1 = 0 ;
14494 PyObject * obj2 = 0 ;
14495 char *kwnames[] = {
14496 (char *) "self",(char *) "x",(char *) "y", NULL
14497 };
14498
14499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14502 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14503 if (PyErr_Occurred()) SWIG_fail;
c370783e 14504 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
14505 if (PyErr_Occurred()) SWIG_fail;
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 (arg1)->SetLogicalScale(arg2,arg3);
14509
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 Py_INCREF(Py_None); resultobj = Py_None;
14514 return resultobj;
14515 fail:
14516 return NULL;
14517}
14518
14519
c370783e 14520static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14521 PyObject *resultobj;
14522 wxDC *arg1 = (wxDC *) 0 ;
14523 wxPoint result;
14524 PyObject * obj0 = 0 ;
14525 char *kwnames[] = {
14526 (char *) "self", NULL
14527 };
14528
14529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 {
14540 wxPoint * resultptr;
14541 resultptr = new wxPoint((wxPoint &) result);
14542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14543 }
14544 return resultobj;
14545 fail:
14546 return NULL;
14547}
14548
14549
c370783e 14550static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14551 PyObject *resultobj;
14552 wxDC *arg1 = (wxDC *) 0 ;
14553 int *arg2 = (int *) 0 ;
14554 int *arg3 = (int *) 0 ;
14555 int temp2 ;
c370783e 14556 int res2 = 0 ;
d55e5bfc 14557 int temp3 ;
c370783e 14558 int res3 = 0 ;
d55e5bfc
RD
14559 PyObject * obj0 = 0 ;
14560 char *kwnames[] = {
14561 (char *) "self", NULL
14562 };
14563
c370783e
RD
14564 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14565 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14569 {
14570 PyThreadState* __tstate = wxPyBeginAllowThreads();
14571 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14572
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14577 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14578 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14579 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14580 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14581 return resultobj;
14582 fail:
14583 return NULL;
14584}
14585
14586
c370783e 14587static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14588 PyObject *resultobj;
14589 wxDC *arg1 = (wxDC *) 0 ;
14590 int arg2 ;
14591 int arg3 ;
14592 PyObject * obj0 = 0 ;
14593 PyObject * obj1 = 0 ;
14594 PyObject * obj2 = 0 ;
14595 char *kwnames[] = {
14596 (char *) "self",(char *) "x",(char *) "y", NULL
14597 };
14598
14599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14602 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14603 if (PyErr_Occurred()) SWIG_fail;
c370783e 14604 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14605 if (PyErr_Occurred()) SWIG_fail;
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 (arg1)->SetLogicalOrigin(arg2,arg3);
14609
14610 wxPyEndAllowThreads(__tstate);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 Py_INCREF(Py_None); resultobj = Py_None;
14614 return resultobj;
14615 fail:
14616 return NULL;
14617}
14618
14619
c370783e 14620static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
14621 PyObject *resultobj;
14622 wxDC *arg1 = (wxDC *) 0 ;
14623 wxPoint *arg2 = 0 ;
14624 wxPoint temp2 ;
14625 PyObject * obj0 = 0 ;
14626 PyObject * obj1 = 0 ;
14627 char *kwnames[] = {
14628 (char *) "self",(char *) "point", NULL
14629 };
14630
14631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14634 {
14635 arg2 = &temp2;
14636 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14637 }
14638 {
14639 PyThreadState* __tstate = wxPyBeginAllowThreads();
14640 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14641
14642 wxPyEndAllowThreads(__tstate);
14643 if (PyErr_Occurred()) SWIG_fail;
14644 }
14645 Py_INCREF(Py_None); resultobj = Py_None;
14646 return resultobj;
14647 fail:
14648 return NULL;
14649}
14650
14651
c370783e 14652static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14653 PyObject *resultobj;
14654 wxDC *arg1 = (wxDC *) 0 ;
14655 wxPoint result;
14656 PyObject * obj0 = 0 ;
14657 char *kwnames[] = {
14658 (char *) "self", NULL
14659 };
14660
14661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14664 {
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14667
14668 wxPyEndAllowThreads(__tstate);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 {
14672 wxPoint * resultptr;
14673 resultptr = new wxPoint((wxPoint &) result);
14674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14675 }
14676 return resultobj;
14677 fail:
14678 return NULL;
14679}
14680
14681
c370783e 14682static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14683 PyObject *resultobj;
14684 wxDC *arg1 = (wxDC *) 0 ;
14685 int *arg2 = (int *) 0 ;
14686 int *arg3 = (int *) 0 ;
14687 int temp2 ;
c370783e 14688 int res2 = 0 ;
d55e5bfc 14689 int temp3 ;
c370783e 14690 int res3 = 0 ;
d55e5bfc
RD
14691 PyObject * obj0 = 0 ;
14692 char *kwnames[] = {
14693 (char *) "self", NULL
14694 };
14695
c370783e
RD
14696 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14697 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14701 {
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14704
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14709 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14710 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14711 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14712 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14713 return resultobj;
14714 fail:
14715 return NULL;
14716}
14717
14718
c370783e 14719static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14720 PyObject *resultobj;
14721 wxDC *arg1 = (wxDC *) 0 ;
14722 int arg2 ;
14723 int arg3 ;
14724 PyObject * obj0 = 0 ;
14725 PyObject * obj1 = 0 ;
14726 PyObject * obj2 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "self",(char *) "x",(char *) "y", NULL
14729 };
14730
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14734 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14735 if (PyErr_Occurred()) SWIG_fail;
c370783e 14736 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14737 if (PyErr_Occurred()) SWIG_fail;
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 (arg1)->SetDeviceOrigin(arg2,arg3);
14741
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 Py_INCREF(Py_None); resultobj = Py_None;
14746 return resultobj;
14747 fail:
14748 return NULL;
14749}
14750
14751
c370783e 14752static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
14753 PyObject *resultobj;
14754 wxDC *arg1 = (wxDC *) 0 ;
14755 wxPoint *arg2 = 0 ;
14756 wxPoint temp2 ;
14757 PyObject * obj0 = 0 ;
14758 PyObject * obj1 = 0 ;
14759 char *kwnames[] = {
14760 (char *) "self",(char *) "point", NULL
14761 };
14762
14763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14766 {
14767 arg2 = &temp2;
14768 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14769 }
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14773
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 Py_INCREF(Py_None); resultobj = Py_None;
14778 return resultobj;
14779 fail:
14780 return NULL;
14781}
14782
14783
c370783e 14784static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14785 PyObject *resultobj;
14786 wxDC *arg1 = (wxDC *) 0 ;
14787 bool arg2 ;
14788 bool arg3 ;
14789 PyObject * obj0 = 0 ;
14790 PyObject * obj1 = 0 ;
14791 PyObject * obj2 = 0 ;
14792 char *kwnames[] = {
14793 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14794 };
14795
14796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14799 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc 14800 if (PyErr_Occurred()) SWIG_fail;
c370783e 14801 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
14802 if (PyErr_Occurred()) SWIG_fail;
14803 {
14804 PyThreadState* __tstate = wxPyBeginAllowThreads();
14805 (arg1)->SetAxisOrientation(arg2,arg3);
14806
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 Py_INCREF(Py_None); resultobj = Py_None;
14811 return resultobj;
14812 fail:
14813 return NULL;
14814}
14815
14816
c370783e 14817static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14818 PyObject *resultobj;
14819 wxDC *arg1 = (wxDC *) 0 ;
14820 int result;
14821 PyObject * obj0 = 0 ;
14822 char *kwnames[] = {
14823 (char *) "self", NULL
14824 };
14825
14826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14829 {
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14832
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
c370783e 14836 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14837 return resultobj;
14838 fail:
14839 return NULL;
14840}
14841
14842
c370783e 14843static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14844 PyObject *resultobj;
14845 wxDC *arg1 = (wxDC *) 0 ;
14846 int arg2 ;
14847 PyObject * obj0 = 0 ;
14848 PyObject * obj1 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "self",(char *) "function", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14856 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14857 if (PyErr_Occurred()) SWIG_fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 (arg1)->SetLogicalFunction(arg2);
14861
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 Py_INCREF(Py_None); resultobj = Py_None;
14866 return resultobj;
14867 fail:
14868 return NULL;
14869}
14870
14871
c370783e 14872static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14873 PyObject *resultobj;
14874 wxDC *arg1 = (wxDC *) 0 ;
14875 bool arg2 ;
14876 PyObject * obj0 = 0 ;
14877 PyObject * obj1 = 0 ;
14878 char *kwnames[] = {
f5b96ee1 14879 (char *) "self",(char *) "optimize", NULL
d55e5bfc
RD
14880 };
14881
14882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14885 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
14886 if (PyErr_Occurred()) SWIG_fail;
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 (arg1)->SetOptimization(arg2);
14890
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 Py_INCREF(Py_None); resultobj = Py_None;
14895 return resultobj;
14896 fail:
14897 return NULL;
14898}
14899
14900
c370783e 14901static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14902 PyObject *resultobj;
14903 wxDC *arg1 = (wxDC *) 0 ;
14904 bool result;
14905 PyObject * obj0 = 0 ;
14906 char *kwnames[] = {
14907 (char *) "self", NULL
14908 };
14909
14910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14913 {
14914 PyThreadState* __tstate = wxPyBeginAllowThreads();
14915 result = (bool)(arg1)->GetOptimization();
14916
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 {
14921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14922 }
14923 return resultobj;
14924 fail:
14925 return NULL;
14926}
14927
14928
c370783e 14929static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14930 PyObject *resultobj;
14931 wxDC *arg1 = (wxDC *) 0 ;
14932 int arg2 ;
14933 int arg3 ;
14934 PyObject * obj0 = 0 ;
14935 PyObject * obj1 = 0 ;
14936 PyObject * obj2 = 0 ;
14937 char *kwnames[] = {
14938 (char *) "self",(char *) "x",(char *) "y", NULL
14939 };
14940
14941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14944 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14945 if (PyErr_Occurred()) SWIG_fail;
c370783e 14946 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14947 if (PyErr_Occurred()) SWIG_fail;
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 (arg1)->CalcBoundingBox(arg2,arg3);
14951
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 Py_INCREF(Py_None); resultobj = Py_None;
14956 return resultobj;
14957 fail:
14958 return NULL;
14959}
14960
14961
c370783e 14962static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
14963 PyObject *resultobj;
14964 wxDC *arg1 = (wxDC *) 0 ;
14965 wxPoint *arg2 = 0 ;
14966 wxPoint temp2 ;
14967 PyObject * obj0 = 0 ;
14968 PyObject * obj1 = 0 ;
14969 char *kwnames[] = {
14970 (char *) "self",(char *) "point", NULL
14971 };
14972
14973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14976 {
14977 arg2 = &temp2;
14978 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14979 }
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14983
14984 wxPyEndAllowThreads(__tstate);
14985 if (PyErr_Occurred()) SWIG_fail;
14986 }
14987 Py_INCREF(Py_None); resultobj = Py_None;
14988 return resultobj;
14989 fail:
14990 return NULL;
14991}
14992
14993
c370783e 14994static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14995 PyObject *resultobj;
14996 wxDC *arg1 = (wxDC *) 0 ;
14997 PyObject * obj0 = 0 ;
14998 char *kwnames[] = {
14999 (char *) "self", NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 (arg1)->ResetBoundingBox();
15008
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 Py_INCREF(Py_None); resultobj = Py_None;
15013 return resultobj;
15014 fail:
15015 return NULL;
15016}
15017
15018
c370783e 15019static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15020 PyObject *resultobj;
15021 wxDC *arg1 = (wxDC *) 0 ;
15022 int result;
15023 PyObject * obj0 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = (int)((wxDC const *)arg1)->MinX();
15034
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
c370783e 15038 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15039 return resultobj;
15040 fail:
15041 return NULL;
15042}
15043
15044
c370783e 15045static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15046 PyObject *resultobj;
15047 wxDC *arg1 = (wxDC *) 0 ;
15048 int result;
15049 PyObject * obj0 = 0 ;
15050 char *kwnames[] = {
15051 (char *) "self", NULL
15052 };
15053
15054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 result = (int)((wxDC const *)arg1)->MaxX();
15060
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
c370783e 15064 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15065 return resultobj;
15066 fail:
15067 return NULL;
15068}
15069
15070
c370783e 15071static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15072 PyObject *resultobj;
15073 wxDC *arg1 = (wxDC *) 0 ;
15074 int result;
15075 PyObject * obj0 = 0 ;
15076 char *kwnames[] = {
15077 (char *) "self", NULL
15078 };
15079
15080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15083 {
15084 PyThreadState* __tstate = wxPyBeginAllowThreads();
15085 result = (int)((wxDC const *)arg1)->MinY();
15086
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
c370783e 15090 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15091 return resultobj;
15092 fail:
15093 return NULL;
15094}
15095
15096
c370783e 15097static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15098 PyObject *resultobj;
15099 wxDC *arg1 = (wxDC *) 0 ;
15100 int result;
15101 PyObject * obj0 = 0 ;
15102 char *kwnames[] = {
15103 (char *) "self", NULL
15104 };
15105
15106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15109 {
15110 PyThreadState* __tstate = wxPyBeginAllowThreads();
15111 result = (int)((wxDC const *)arg1)->MaxY();
15112
15113 wxPyEndAllowThreads(__tstate);
15114 if (PyErr_Occurred()) SWIG_fail;
15115 }
c370783e 15116 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15117 return resultobj;
15118 fail:
15119 return NULL;
15120}
15121
15122
c370783e 15123static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15124 PyObject *resultobj;
15125 wxDC *arg1 = (wxDC *) 0 ;
15126 int *arg2 = (int *) 0 ;
15127 int *arg3 = (int *) 0 ;
15128 int *arg4 = (int *) 0 ;
15129 int *arg5 = (int *) 0 ;
15130 int temp2 ;
c370783e 15131 int res2 = 0 ;
d55e5bfc 15132 int temp3 ;
c370783e 15133 int res3 = 0 ;
d55e5bfc 15134 int temp4 ;
c370783e 15135 int res4 = 0 ;
d55e5bfc 15136 int temp5 ;
c370783e 15137 int res5 = 0 ;
d55e5bfc
RD
15138 PyObject * obj0 = 0 ;
15139 char *kwnames[] = {
15140 (char *) "self", NULL
15141 };
15142
c370783e
RD
15143 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15144 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15145 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15146 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
15147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15150 {
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15153
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
15158 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15159 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15160 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15161 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15162 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15163 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15164 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15165 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15166 return resultobj;
15167 fail:
15168 return NULL;
15169}
15170
15171
c370783e 15172static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15173 PyObject *resultobj;
15174 wxDC *arg1 = (wxDC *) 0 ;
15175 PyObject *arg2 = (PyObject *) 0 ;
15176 PyObject *arg3 = (PyObject *) 0 ;
15177 PyObject *arg4 = (PyObject *) 0 ;
15178 PyObject *result;
15179 PyObject * obj0 = 0 ;
15180 PyObject * obj1 = 0 ;
15181 PyObject * obj2 = 0 ;
15182 PyObject * obj3 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15190 arg2 = obj1;
15191 arg3 = obj2;
15192 arg4 = obj3;
15193 {
15194 PyThreadState* __tstate = wxPyBeginAllowThreads();
15195 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15196
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 resultobj = result;
15201 return resultobj;
15202 fail:
15203 return NULL;
15204}
15205
15206
c370783e 15207static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15208 PyObject *resultobj;
15209 wxDC *arg1 = (wxDC *) 0 ;
15210 PyObject *arg2 = (PyObject *) 0 ;
15211 PyObject *arg3 = (PyObject *) 0 ;
15212 PyObject *arg4 = (PyObject *) 0 ;
15213 PyObject *result;
15214 PyObject * obj0 = 0 ;
15215 PyObject * obj1 = 0 ;
15216 PyObject * obj2 = 0 ;
15217 PyObject * obj3 = 0 ;
15218 char *kwnames[] = {
15219 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15220 };
15221
15222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15225 arg2 = obj1;
15226 arg3 = obj2;
15227 arg4 = obj3;
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 resultobj = result;
15236 return resultobj;
15237 fail:
15238 return NULL;
15239}
15240
15241
c370783e 15242static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15243 PyObject *resultobj;
15244 wxDC *arg1 = (wxDC *) 0 ;
15245 PyObject *arg2 = (PyObject *) 0 ;
15246 PyObject *arg3 = (PyObject *) 0 ;
15247 PyObject *arg4 = (PyObject *) 0 ;
15248 PyObject *result;
15249 PyObject * obj0 = 0 ;
15250 PyObject * obj1 = 0 ;
15251 PyObject * obj2 = 0 ;
15252 PyObject * obj3 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15260 arg2 = obj1;
15261 arg3 = obj2;
15262 arg4 = obj3;
15263 {
15264 PyThreadState* __tstate = wxPyBeginAllowThreads();
15265 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15266
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 resultobj = result;
15271 return resultobj;
15272 fail:
15273 return NULL;
15274}
15275
15276
c370783e 15277static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15278 PyObject *resultobj;
15279 wxDC *arg1 = (wxDC *) 0 ;
15280 PyObject *arg2 = (PyObject *) 0 ;
15281 PyObject *arg3 = (PyObject *) 0 ;
15282 PyObject *arg4 = (PyObject *) 0 ;
15283 PyObject *result;
15284 PyObject * obj0 = 0 ;
15285 PyObject * obj1 = 0 ;
15286 PyObject * obj2 = 0 ;
15287 PyObject * obj3 = 0 ;
15288 char *kwnames[] = {
15289 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15290 };
15291
15292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15295 arg2 = obj1;
15296 arg3 = obj2;
15297 arg4 = obj3;
15298 {
15299 PyThreadState* __tstate = wxPyBeginAllowThreads();
15300 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15301
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 resultobj = result;
15306 return resultobj;
15307 fail:
15308 return NULL;
15309}
15310
15311
c370783e 15312static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15313 PyObject *resultobj;
15314 wxDC *arg1 = (wxDC *) 0 ;
15315 PyObject *arg2 = (PyObject *) 0 ;
15316 PyObject *arg3 = (PyObject *) 0 ;
15317 PyObject *arg4 = (PyObject *) 0 ;
15318 PyObject *result;
15319 PyObject * obj0 = 0 ;
15320 PyObject * obj1 = 0 ;
15321 PyObject * obj2 = 0 ;
15322 PyObject * obj3 = 0 ;
15323 char *kwnames[] = {
15324 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15325 };
15326
15327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15330 arg2 = obj1;
15331 arg3 = obj2;
15332 arg4 = obj3;
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15336
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 resultobj = result;
15341 return resultobj;
15342 fail:
15343 return NULL;
15344}
15345
15346
c370783e 15347static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15348 PyObject *resultobj;
15349 wxDC *arg1 = (wxDC *) 0 ;
15350 PyObject *arg2 = (PyObject *) 0 ;
15351 PyObject *arg3 = (PyObject *) 0 ;
15352 PyObject *arg4 = (PyObject *) 0 ;
15353 PyObject *arg5 = (PyObject *) 0 ;
15354 PyObject *result;
15355 PyObject * obj0 = 0 ;
15356 PyObject * obj1 = 0 ;
15357 PyObject * obj2 = 0 ;
15358 PyObject * obj3 = 0 ;
15359 PyObject * obj4 = 0 ;
15360 char *kwnames[] = {
15361 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15362 };
15363
15364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15367 arg2 = obj1;
15368 arg3 = obj2;
15369 arg4 = obj3;
15370 arg5 = obj4;
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15374
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = result;
15379 return resultobj;
15380 fail:
15381 return NULL;
15382}
15383
15384
c370783e 15385static PyObject * DC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15386 PyObject *obj;
15387 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15388 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15389 Py_INCREF(obj);
15390 return Py_BuildValue((char *)"");
15391}
c370783e 15392static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15393 PyObject *resultobj;
15394 wxMemoryDC *result;
15395 char *kwnames[] = {
15396 NULL
15397 };
15398
15399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15400 {
0439c23b 15401 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (wxMemoryDC *)new wxMemoryDC();
15404
15405 wxPyEndAllowThreads(__tstate);
110da5b0 15406 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15407 }
15408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15409 return resultobj;
15410 fail:
15411 return NULL;
15412}
15413
15414
c370783e 15415static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15416 PyObject *resultobj;
15417 wxDC *arg1 = (wxDC *) 0 ;
15418 wxMemoryDC *result;
15419 PyObject * obj0 = 0 ;
15420 char *kwnames[] = {
15421 (char *) "oldDC", NULL
15422 };
15423
15424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15427 {
0439c23b 15428 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15431
15432 wxPyEndAllowThreads(__tstate);
110da5b0 15433 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15434 }
15435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15436 return resultobj;
15437 fail:
15438 return NULL;
15439}
15440
15441
c370783e 15442static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15443 PyObject *resultobj;
15444 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15445 wxBitmap *arg2 = 0 ;
15446 PyObject * obj0 = 0 ;
15447 PyObject * obj1 = 0 ;
15448 char *kwnames[] = {
15449 (char *) "self",(char *) "bitmap", NULL
15450 };
15451
15452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15456 SWIG_POINTER_EXCEPTION | 0)) == -1)
15457 SWIG_fail;
15458 if (arg2 == NULL) {
15459 PyErr_SetString(PyExc_TypeError,"null reference");
15460 SWIG_fail;
15461 }
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 (arg1)->SelectObject((wxBitmap const &)*arg2);
15465
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 Py_INCREF(Py_None); resultobj = Py_None;
15470 return resultobj;
15471 fail:
15472 return NULL;
15473}
15474
15475
c370783e 15476static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15477 PyObject *obj;
15478 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15479 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15480 Py_INCREF(obj);
15481 return Py_BuildValue((char *)"");
15482}
c370783e 15483static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
15484 PyObject *resultobj;
15485 wxDC *arg1 = (wxDC *) 0 ;
15486 wxBitmap *arg2 = 0 ;
15487 wxBufferedDC *result;
15488 PyObject * obj0 = 0 ;
15489 PyObject * obj1 = 0 ;
15490
15491 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15495 SWIG_POINTER_EXCEPTION | 0)) == -1)
15496 SWIG_fail;
15497 if (arg2 == NULL) {
15498 PyErr_SetString(PyExc_TypeError,"null reference");
15499 SWIG_fail;
15500 }
15501 {
0439c23b 15502 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15505
15506 wxPyEndAllowThreads(__tstate);
110da5b0 15507 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15508 }
15509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15510 return resultobj;
15511 fail:
15512 return NULL;
15513}
15514
15515
c370783e 15516static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
15517 PyObject *resultobj;
15518 wxDC *arg1 = (wxDC *) 0 ;
15519 wxSize *arg2 = 0 ;
15520 wxBufferedDC *result;
15521 wxSize temp2 ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524
15525 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15528 {
15529 arg2 = &temp2;
15530 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15531 }
15532 {
0439c23b 15533 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15534 PyThreadState* __tstate = wxPyBeginAllowThreads();
15535 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15536
15537 wxPyEndAllowThreads(__tstate);
110da5b0 15538 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15539 }
15540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15541 return resultobj;
15542 fail:
15543 return NULL;
15544}
15545
15546
15547static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15548 int argc;
15549 PyObject *argv[3];
15550 int ii;
15551
15552 argc = PyObject_Length(args);
15553 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15554 argv[ii] = PyTuple_GetItem(args,ii);
15555 }
15556 if (argc == 2) {
15557 int _v;
15558 {
15559 void *ptr;
15560 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15561 _v = 0;
15562 PyErr_Clear();
15563 } else {
15564 _v = 1;
15565 }
15566 }
15567 if (_v) {
15568 {
15569 void *ptr;
15570 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15571 _v = 0;
15572 PyErr_Clear();
15573 } else {
15574 _v = 1;
15575 }
15576 }
15577 if (_v) {
15578 return _wrap_new_BufferedDC__SWIG_0(self,args);
15579 }
15580 }
15581 }
15582 if (argc == 2) {
15583 int _v;
15584 {
15585 void *ptr;
15586 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15587 _v = 0;
15588 PyErr_Clear();
15589 } else {
15590 _v = 1;
15591 }
15592 }
15593 if (_v) {
15594 {
15595 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15596 }
15597 if (_v) {
15598 return _wrap_new_BufferedDC__SWIG_1(self,args);
15599 }
15600 }
15601 }
15602
15603 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15604 return NULL;
15605}
15606
15607
c370783e 15608static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15609 PyObject *resultobj;
15610 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15611 PyObject * obj0 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "self", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 delete arg1;
15622
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 Py_INCREF(Py_None); resultobj = Py_None;
15627 return resultobj;
15628 fail:
15629 return NULL;
15630}
15631
15632
c370783e 15633static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15634 PyObject *resultobj;
15635 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15636 PyObject * obj0 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 (arg1)->UnMask();
15647
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 Py_INCREF(Py_None); resultobj = Py_None;
15652 return resultobj;
15653 fail:
15654 return NULL;
15655}
15656
15657
c370783e 15658static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15659 PyObject *obj;
15660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15661 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15662 Py_INCREF(obj);
15663 return Py_BuildValue((char *)"");
15664}
c370783e 15665static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15666 PyObject *resultobj;
15667 wxWindow *arg1 = (wxWindow *) 0 ;
15668 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15669 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15670 wxBufferedPaintDC *result;
15671 PyObject * obj0 = 0 ;
15672 PyObject * obj1 = 0 ;
15673 char *kwnames[] = {
15674 (char *) "window",(char *) "buffer", NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15680 if (obj1) {
15681 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15682 SWIG_POINTER_EXCEPTION | 0)) == -1)
15683 SWIG_fail;
15684 if (arg2 == NULL) {
15685 PyErr_SetString(PyExc_TypeError,"null reference");
15686 SWIG_fail;
15687 }
15688 }
15689 {
0439c23b 15690 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15693
15694 wxPyEndAllowThreads(__tstate);
110da5b0 15695 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15696 }
15697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15698 return resultobj;
15699 fail:
15700 return NULL;
15701}
15702
15703
c370783e 15704static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15705 PyObject *obj;
15706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15707 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15708 Py_INCREF(obj);
15709 return Py_BuildValue((char *)"");
15710}
c370783e 15711static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15712 PyObject *resultobj;
15713 wxScreenDC *result;
15714 char *kwnames[] = {
15715 NULL
15716 };
15717
15718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15719 {
0439c23b 15720 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15721 PyThreadState* __tstate = wxPyBeginAllowThreads();
15722 result = (wxScreenDC *)new wxScreenDC();
15723
15724 wxPyEndAllowThreads(__tstate);
110da5b0 15725 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15726 }
15727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15728 return resultobj;
15729 fail:
15730 return NULL;
15731}
15732
15733
c370783e 15734static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15735 PyObject *resultobj;
15736 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15737 wxWindow *arg2 = (wxWindow *) 0 ;
15738 bool result;
15739 PyObject * obj0 = 0 ;
15740 PyObject * obj1 = 0 ;
15741 char *kwnames[] = {
15742 (char *) "self",(char *) "window", NULL
15743 };
15744
15745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 {
15758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15759 }
15760 return resultobj;
15761 fail:
15762 return NULL;
15763}
15764
15765
c370783e 15766static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15767 PyObject *resultobj;
15768 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15769 wxRect *arg2 = (wxRect *) NULL ;
15770 bool result;
15771 PyObject * obj0 = 0 ;
15772 PyObject * obj1 = 0 ;
15773 char *kwnames[] = {
15774 (char *) "self",(char *) "rect", NULL
15775 };
15776
15777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15780 if (obj1) {
15781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15783 }
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15787
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 {
15792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15793 }
15794 return resultobj;
15795 fail:
15796 return NULL;
15797}
15798
15799
c370783e 15800static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15801 PyObject *resultobj;
15802 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15803 bool result;
15804 PyObject * obj0 = 0 ;
15805 char *kwnames[] = {
15806 (char *) "self", NULL
15807 };
15808
15809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15812 {
15813 PyThreadState* __tstate = wxPyBeginAllowThreads();
15814 result = (bool)(arg1)->EndDrawingOnTop();
15815
15816 wxPyEndAllowThreads(__tstate);
15817 if (PyErr_Occurred()) SWIG_fail;
15818 }
15819 {
15820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15821 }
15822 return resultobj;
15823 fail:
15824 return NULL;
15825}
15826
15827
c370783e 15828static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15829 PyObject *obj;
15830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15831 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15832 Py_INCREF(obj);
15833 return Py_BuildValue((char *)"");
15834}
c370783e 15835static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15836 PyObject *resultobj;
15837 wxWindow *arg1 = (wxWindow *) 0 ;
15838 wxClientDC *result;
15839 PyObject * obj0 = 0 ;
15840 char *kwnames[] = {
15841 (char *) "win", NULL
15842 };
15843
15844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15847 {
0439c23b 15848 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15849 PyThreadState* __tstate = wxPyBeginAllowThreads();
15850 result = (wxClientDC *)new wxClientDC(arg1);
15851
15852 wxPyEndAllowThreads(__tstate);
110da5b0 15853 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15854 }
15855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15856 return resultobj;
15857 fail:
15858 return NULL;
15859}
15860
15861
c370783e 15862static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15863 PyObject *obj;
15864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15865 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15866 Py_INCREF(obj);
15867 return Py_BuildValue((char *)"");
15868}
c370783e 15869static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15870 PyObject *resultobj;
15871 wxWindow *arg1 = (wxWindow *) 0 ;
15872 wxPaintDC *result;
15873 PyObject * obj0 = 0 ;
15874 char *kwnames[] = {
15875 (char *) "win", NULL
15876 };
15877
15878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15881 {
0439c23b 15882 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15883 PyThreadState* __tstate = wxPyBeginAllowThreads();
15884 result = (wxPaintDC *)new wxPaintDC(arg1);
15885
15886 wxPyEndAllowThreads(__tstate);
110da5b0 15887 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15888 }
15889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15890 return resultobj;
15891 fail:
15892 return NULL;
15893}
15894
15895
c370783e 15896static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15897 PyObject *obj;
15898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15899 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15900 Py_INCREF(obj);
15901 return Py_BuildValue((char *)"");
15902}
c370783e 15903static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15904 PyObject *resultobj;
15905 wxWindow *arg1 = (wxWindow *) 0 ;
15906 wxWindowDC *result;
15907 PyObject * obj0 = 0 ;
15908 char *kwnames[] = {
15909 (char *) "win", NULL
15910 };
15911
15912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15915 {
0439c23b 15916 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = (wxWindowDC *)new wxWindowDC(arg1);
15919
15920 wxPyEndAllowThreads(__tstate);
110da5b0 15921 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15922 }
15923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15924 return resultobj;
15925 fail:
15926 return NULL;
15927}
15928
15929
c370783e 15930static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15931 PyObject *obj;
15932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15933 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15934 Py_INCREF(obj);
15935 return Py_BuildValue((char *)"");
15936}
c370783e 15937static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15938 PyObject *resultobj;
15939 wxDC *arg1 = 0 ;
15940 bool arg2 ;
15941 wxMirrorDC *result;
15942 PyObject * obj0 = 0 ;
15943 PyObject * obj1 = 0 ;
15944 char *kwnames[] = {
15945 (char *) "dc",(char *) "mirror", NULL
15946 };
15947
15948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15950 SWIG_POINTER_EXCEPTION | 0)) == -1)
15951 SWIG_fail;
15952 if (arg1 == NULL) {
15953 PyErr_SetString(PyExc_TypeError,"null reference");
15954 SWIG_fail;
15955 }
c370783e 15956 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15957 if (PyErr_Occurred()) SWIG_fail;
15958 {
0439c23b 15959 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15962
15963 wxPyEndAllowThreads(__tstate);
110da5b0 15964 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15965 }
15966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15967 return resultobj;
15968 fail:
15969 return NULL;
15970}
15971
15972
c370783e 15973static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15974 PyObject *obj;
15975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15976 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15977 Py_INCREF(obj);
15978 return Py_BuildValue((char *)"");
15979}
c370783e 15980static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15981 PyObject *resultobj;
15982 wxPrintData *arg1 = 0 ;
15983 wxPostScriptDC *result;
15984 PyObject * obj0 = 0 ;
15985 char *kwnames[] = {
15986 (char *) "printData", NULL
15987 };
15988
15989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15991 SWIG_POINTER_EXCEPTION | 0)) == -1)
15992 SWIG_fail;
15993 if (arg1 == NULL) {
15994 PyErr_SetString(PyExc_TypeError,"null reference");
15995 SWIG_fail;
15996 }
15997 {
0439c23b 15998 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15999 PyThreadState* __tstate = wxPyBeginAllowThreads();
16000 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16001
16002 wxPyEndAllowThreads(__tstate);
110da5b0 16003 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16004 }
16005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16006 return resultobj;
16007 fail:
16008 return NULL;
16009}
16010
16011
c370783e 16012static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16013 PyObject *resultobj;
16014 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16015 wxPrintData *result;
16016 PyObject * obj0 = 0 ;
16017 char *kwnames[] = {
16018 (char *) "self", NULL
16019 };
16020
16021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16024 {
16025 PyThreadState* __tstate = wxPyBeginAllowThreads();
16026 {
16027 wxPrintData &_result_ref = (arg1)->GetPrintData();
16028 result = (wxPrintData *) &_result_ref;
16029 }
16030
16031 wxPyEndAllowThreads(__tstate);
16032 if (PyErr_Occurred()) SWIG_fail;
16033 }
16034 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16035 return resultobj;
16036 fail:
16037 return NULL;
16038}
16039
16040
c370783e 16041static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16042 PyObject *resultobj;
16043 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16044 wxPrintData *arg2 = 0 ;
16045 PyObject * obj0 = 0 ;
16046 PyObject * obj1 = 0 ;
16047 char *kwnames[] = {
16048 (char *) "self",(char *) "data", NULL
16049 };
16050
16051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16055 SWIG_POINTER_EXCEPTION | 0)) == -1)
16056 SWIG_fail;
16057 if (arg2 == NULL) {
16058 PyErr_SetString(PyExc_TypeError,"null reference");
16059 SWIG_fail;
16060 }
16061 {
16062 PyThreadState* __tstate = wxPyBeginAllowThreads();
16063 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16064
16065 wxPyEndAllowThreads(__tstate);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 }
16068 Py_INCREF(Py_None); resultobj = Py_None;
16069 return resultobj;
16070 fail:
16071 return NULL;
16072}
16073
16074
c370783e 16075static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16076 PyObject *resultobj;
16077 int arg1 ;
16078 PyObject * obj0 = 0 ;
16079 char *kwnames[] = {
16080 (char *) "ppi", NULL
16081 };
16082
16083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
c370783e 16084 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
16085 if (PyErr_Occurred()) SWIG_fail;
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 wxPostScriptDC::SetResolution(arg1);
16089
16090 wxPyEndAllowThreads(__tstate);
16091 if (PyErr_Occurred()) SWIG_fail;
16092 }
16093 Py_INCREF(Py_None); resultobj = Py_None;
16094 return resultobj;
16095 fail:
16096 return NULL;
16097}
16098
16099
c370783e 16100static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16101 PyObject *resultobj;
16102 int result;
16103 char *kwnames[] = {
16104 NULL
16105 };
16106
16107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 result = (int)wxPostScriptDC::GetResolution();
16111
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
c370783e 16115 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16116 return resultobj;
16117 fail:
16118 return NULL;
16119}
16120
16121
c370783e 16122static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16123 PyObject *obj;
16124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16125 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16126 Py_INCREF(obj);
16127 return Py_BuildValue((char *)"");
16128}
c370783e 16129static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16130 PyObject *resultobj;
16131 wxString const &arg1_defvalue = wxPyEmptyString ;
16132 wxString *arg1 = (wxString *) &arg1_defvalue ;
16133 wxMetaFile *result;
b411df4a 16134 bool temp1 = false ;
d55e5bfc
RD
16135 PyObject * obj0 = 0 ;
16136 char *kwnames[] = {
16137 (char *) "filename", NULL
16138 };
16139
16140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16141 if (obj0) {
16142 {
16143 arg1 = wxString_in_helper(obj0);
16144 if (arg1 == NULL) SWIG_fail;
b411df4a 16145 temp1 = true;
d55e5bfc
RD
16146 }
16147 }
16148 {
0439c23b 16149 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16150 PyThreadState* __tstate = wxPyBeginAllowThreads();
16151 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16152
16153 wxPyEndAllowThreads(__tstate);
110da5b0 16154 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16155 }
16156 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16157 {
16158 if (temp1)
16159 delete arg1;
16160 }
16161 return resultobj;
16162 fail:
16163 {
16164 if (temp1)
16165 delete arg1;
16166 }
16167 return NULL;
16168}
16169
16170
c370783e 16171static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16172 PyObject *resultobj;
16173 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16174 PyObject * obj0 = 0 ;
16175 char *kwnames[] = {
16176 (char *) "self", NULL
16177 };
16178
16179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16182 {
16183 PyThreadState* __tstate = wxPyBeginAllowThreads();
16184 delete arg1;
16185
16186 wxPyEndAllowThreads(__tstate);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 }
16189 Py_INCREF(Py_None); resultobj = Py_None;
16190 return resultobj;
16191 fail:
16192 return NULL;
16193}
16194
16195
c370783e 16196static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16197 PyObject *resultobj;
16198 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16199 bool result;
16200 PyObject * obj0 = 0 ;
16201 char *kwnames[] = {
16202 (char *) "self", NULL
16203 };
16204
16205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16208 {
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 result = (bool)(arg1)->Ok();
16211
16212 wxPyEndAllowThreads(__tstate);
16213 if (PyErr_Occurred()) SWIG_fail;
16214 }
16215 {
16216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16217 }
16218 return resultobj;
16219 fail:
16220 return NULL;
16221}
16222
16223
c370783e 16224static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16225 PyObject *resultobj;
16226 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16227 int arg2 = (int) 0 ;
16228 int arg3 = (int) 0 ;
16229 bool result;
16230 PyObject * obj0 = 0 ;
16231 PyObject * obj1 = 0 ;
16232 PyObject * obj2 = 0 ;
16233 char *kwnames[] = {
16234 (char *) "self",(char *) "width",(char *) "height", NULL
16235 };
16236
16237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16240 if (obj1) {
c370783e 16241 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16242 if (PyErr_Occurred()) SWIG_fail;
16243 }
16244 if (obj2) {
c370783e 16245 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 {
16256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16257 }
16258 return resultobj;
16259 fail:
16260 return NULL;
16261}
16262
16263
c370783e 16264static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16265 PyObject *resultobj;
16266 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16267 wxSize result;
16268 PyObject * obj0 = 0 ;
16269 char *kwnames[] = {
16270 (char *) "self", NULL
16271 };
16272
16273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (arg1)->GetSize();
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 {
16284 wxSize * resultptr;
16285 resultptr = new wxSize((wxSize &) result);
16286 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16287 }
16288 return resultobj;
16289 fail:
16290 return NULL;
16291}
16292
16293
c370783e 16294static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16295 PyObject *resultobj;
16296 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16297 int result;
16298 PyObject * obj0 = 0 ;
16299 char *kwnames[] = {
16300 (char *) "self", NULL
16301 };
16302
16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = (int)(arg1)->GetWidth();
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
c370783e 16313 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16314 return resultobj;
16315 fail:
16316 return NULL;
16317}
16318
16319
c370783e 16320static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16321 PyObject *resultobj;
16322 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16323 int result;
16324 PyObject * obj0 = 0 ;
16325 char *kwnames[] = {
16326 (char *) "self", NULL
16327 };
16328
16329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16332 {
16333 PyThreadState* __tstate = wxPyBeginAllowThreads();
16334 result = (int)(arg1)->GetHeight();
16335
16336 wxPyEndAllowThreads(__tstate);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 }
c370783e 16339 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16340 return resultobj;
16341 fail:
16342 return NULL;
16343}
16344
16345
c370783e 16346static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16347 PyObject *obj;
16348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16349 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16350 Py_INCREF(obj);
16351 return Py_BuildValue((char *)"");
16352}
c370783e 16353static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16354 PyObject *resultobj;
16355 wxString const &arg1_defvalue = wxPyEmptyString ;
16356 wxString *arg1 = (wxString *) &arg1_defvalue ;
16357 int arg2 = (int) 0 ;
16358 int arg3 = (int) 0 ;
16359 wxString const &arg4_defvalue = wxPyEmptyString ;
16360 wxString *arg4 = (wxString *) &arg4_defvalue ;
16361 wxMetaFileDC *result;
b411df4a
RD
16362 bool temp1 = false ;
16363 bool temp4 = false ;
d55e5bfc
RD
16364 PyObject * obj0 = 0 ;
16365 PyObject * obj1 = 0 ;
16366 PyObject * obj2 = 0 ;
16367 PyObject * obj3 = 0 ;
16368 char *kwnames[] = {
16369 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16370 };
16371
16372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16373 if (obj0) {
16374 {
16375 arg1 = wxString_in_helper(obj0);
16376 if (arg1 == NULL) SWIG_fail;
b411df4a 16377 temp1 = true;
d55e5bfc
RD
16378 }
16379 }
16380 if (obj1) {
c370783e 16381 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 if (obj2) {
c370783e 16385 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 if (obj3) {
16389 {
16390 arg4 = wxString_in_helper(obj3);
16391 if (arg4 == NULL) SWIG_fail;
b411df4a 16392 temp4 = true;
d55e5bfc
RD
16393 }
16394 }
16395 {
0439c23b 16396 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16399
16400 wxPyEndAllowThreads(__tstate);
110da5b0 16401 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16402 }
16403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16404 {
16405 if (temp1)
16406 delete arg1;
16407 }
16408 {
16409 if (temp4)
16410 delete arg4;
16411 }
16412 return resultobj;
16413 fail:
16414 {
16415 if (temp1)
16416 delete arg1;
16417 }
16418 {
16419 if (temp4)
16420 delete arg4;
16421 }
16422 return NULL;
16423}
16424
16425
c370783e 16426static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16427 PyObject *resultobj;
16428 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16429 wxMetaFile *result;
16430 PyObject * obj0 = 0 ;
16431 char *kwnames[] = {
16432 (char *) "self", NULL
16433 };
16434
16435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 result = (wxMetaFile *)(arg1)->Close();
16441
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16446 return resultobj;
16447 fail:
16448 return NULL;
16449}
16450
16451
c370783e 16452static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16453 PyObject *obj;
16454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16455 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16456 Py_INCREF(obj);
16457 return Py_BuildValue((char *)"");
16458}
c370783e 16459static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16460 PyObject *resultobj;
16461 wxPrintData *arg1 = 0 ;
16462 wxPrinterDC *result;
16463 PyObject * obj0 = 0 ;
16464 char *kwnames[] = {
16465 (char *) "printData", NULL
16466 };
16467
16468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16470 SWIG_POINTER_EXCEPTION | 0)) == -1)
16471 SWIG_fail;
16472 if (arg1 == NULL) {
16473 PyErr_SetString(PyExc_TypeError,"null reference");
16474 SWIG_fail;
16475 }
16476 {
0439c23b 16477 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16480
16481 wxPyEndAllowThreads(__tstate);
110da5b0 16482 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16483 }
16484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16485 return resultobj;
16486 fail:
16487 return NULL;
16488}
16489
16490
c370783e 16491static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16492 PyObject *obj;
16493 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16494 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16495 Py_INCREF(obj);
16496 return Py_BuildValue((char *)"");
16497}
c370783e 16498static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16499 PyObject *resultobj;
16500 int arg1 ;
16501 int arg2 ;
b411df4a 16502 int arg3 = (int) true ;
d55e5bfc
RD
16503 int arg4 = (int) 1 ;
16504 wxImageList *result;
16505 PyObject * obj0 = 0 ;
16506 PyObject * obj1 = 0 ;
16507 PyObject * obj2 = 0 ;
16508 PyObject * obj3 = 0 ;
16509 char *kwnames[] = {
16510 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16511 };
16512
16513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c370783e 16514 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 16515 if (PyErr_Occurred()) SWIG_fail;
c370783e 16516 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16517 if (PyErr_Occurred()) SWIG_fail;
16518 if (obj2) {
c370783e 16519 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 if (obj3) {
c370783e 16523 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 {
0439c23b 16527 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16530
16531 wxPyEndAllowThreads(__tstate);
110da5b0 16532 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16533 }
16534 {
412d302d 16535 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
16536 }
16537 return resultobj;
16538 fail:
16539 return NULL;
16540}
16541
16542
c370783e 16543static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16544 PyObject *resultobj;
16545 wxImageList *arg1 = (wxImageList *) 0 ;
16546 PyObject * obj0 = 0 ;
16547 char *kwnames[] = {
16548 (char *) "self", NULL
16549 };
16550
16551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 delete arg1;
16557
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 Py_INCREF(Py_None); resultobj = Py_None;
16562 return resultobj;
16563 fail:
16564 return NULL;
16565}
16566
16567
c370783e 16568static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16569 PyObject *resultobj;
16570 wxImageList *arg1 = (wxImageList *) 0 ;
16571 wxBitmap *arg2 = 0 ;
16572 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16573 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16574 int result;
16575 PyObject * obj0 = 0 ;
16576 PyObject * obj1 = 0 ;
16577 PyObject * obj2 = 0 ;
16578 char *kwnames[] = {
16579 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16580 };
16581
16582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16586 SWIG_POINTER_EXCEPTION | 0)) == -1)
16587 SWIG_fail;
16588 if (arg2 == NULL) {
16589 PyErr_SetString(PyExc_TypeError,"null reference");
16590 SWIG_fail;
16591 }
16592 if (obj2) {
16593 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16594 SWIG_POINTER_EXCEPTION | 0)) == -1)
16595 SWIG_fail;
16596 if (arg3 == NULL) {
16597 PyErr_SetString(PyExc_TypeError,"null reference");
16598 SWIG_fail;
16599 }
16600 }
16601 {
16602 PyThreadState* __tstate = wxPyBeginAllowThreads();
16603 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16604
16605 wxPyEndAllowThreads(__tstate);
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
c370783e 16608 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16609 return resultobj;
16610 fail:
16611 return NULL;
16612}
16613
16614
c370783e 16615static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16616 PyObject *resultobj;
16617 wxImageList *arg1 = (wxImageList *) 0 ;
16618 wxBitmap *arg2 = 0 ;
16619 wxColour *arg3 = 0 ;
16620 int result;
16621 wxColour temp3 ;
16622 PyObject * obj0 = 0 ;
16623 PyObject * obj1 = 0 ;
16624 PyObject * obj2 = 0 ;
16625 char *kwnames[] = {
16626 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16627 };
16628
16629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16633 SWIG_POINTER_EXCEPTION | 0)) == -1)
16634 SWIG_fail;
16635 if (arg2 == NULL) {
16636 PyErr_SetString(PyExc_TypeError,"null reference");
16637 SWIG_fail;
16638 }
16639 {
16640 arg3 = &temp3;
16641 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16642 }
16643 {
16644 PyThreadState* __tstate = wxPyBeginAllowThreads();
16645 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16646
16647 wxPyEndAllowThreads(__tstate);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
c370783e 16650 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16651 return resultobj;
16652 fail:
16653 return NULL;
16654}
16655
16656
c370783e 16657static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16658 PyObject *resultobj;
16659 wxImageList *arg1 = (wxImageList *) 0 ;
16660 wxIcon *arg2 = 0 ;
16661 int result;
16662 PyObject * obj0 = 0 ;
16663 PyObject * obj1 = 0 ;
16664 char *kwnames[] = {
16665 (char *) "self",(char *) "icon", NULL
16666 };
16667
16668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16672 SWIG_POINTER_EXCEPTION | 0)) == -1)
16673 SWIG_fail;
16674 if (arg2 == NULL) {
16675 PyErr_SetString(PyExc_TypeError,"null reference");
16676 SWIG_fail;
16677 }
16678 {
16679 PyThreadState* __tstate = wxPyBeginAllowThreads();
16680 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16681
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
c370783e 16685 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16686 return resultobj;
16687 fail:
16688 return NULL;
16689}
16690
16691
c370783e 16692static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16693 PyObject *resultobj;
16694 wxImageList *arg1 = (wxImageList *) 0 ;
16695 int arg2 ;
16696 wxBitmap *arg3 = 0 ;
16697 bool result;
16698 PyObject * obj0 = 0 ;
16699 PyObject * obj1 = 0 ;
16700 PyObject * obj2 = 0 ;
16701 char *kwnames[] = {
16702 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16703 };
16704
16705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16708 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16709 if (PyErr_Occurred()) SWIG_fail;
16710 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16711 SWIG_POINTER_EXCEPTION | 0)) == -1)
16712 SWIG_fail;
16713 if (arg3 == NULL) {
16714 PyErr_SetString(PyExc_TypeError,"null reference");
16715 SWIG_fail;
16716 }
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16720
16721 wxPyEndAllowThreads(__tstate);
16722 if (PyErr_Occurred()) SWIG_fail;
16723 }
16724 {
16725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16726 }
16727 return resultobj;
16728 fail:
16729 return NULL;
16730}
16731
16732
c370783e 16733static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16734 PyObject *resultobj;
16735 wxImageList *arg1 = (wxImageList *) 0 ;
16736 int arg2 ;
16737 wxDC *arg3 = 0 ;
16738 int arg4 ;
16739 int arg5 ;
16740 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
b411df4a 16741 bool arg7 = (bool) (bool)false ;
d55e5bfc
RD
16742 bool result;
16743 PyObject * obj0 = 0 ;
16744 PyObject * obj1 = 0 ;
16745 PyObject * obj2 = 0 ;
16746 PyObject * obj3 = 0 ;
16747 PyObject * obj4 = 0 ;
16748 PyObject * obj5 = 0 ;
16749 PyObject * obj6 = 0 ;
16750 char *kwnames[] = {
16751 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16752 };
16753
16754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16757 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16758 if (PyErr_Occurred()) SWIG_fail;
16759 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16760 SWIG_POINTER_EXCEPTION | 0)) == -1)
16761 SWIG_fail;
16762 if (arg3 == NULL) {
16763 PyErr_SetString(PyExc_TypeError,"null reference");
16764 SWIG_fail;
16765 }
c370783e 16766 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 16767 if (PyErr_Occurred()) SWIG_fail;
c370783e 16768 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
16769 if (PyErr_Occurred()) SWIG_fail;
16770 if (obj5) {
c370783e 16771 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
16772 if (PyErr_Occurred()) SWIG_fail;
16773 }
16774 if (obj6) {
c370783e 16775 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 {
16779 PyThreadState* __tstate = wxPyBeginAllowThreads();
16780 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16781
16782 wxPyEndAllowThreads(__tstate);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 {
16786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16787 }
16788 return resultobj;
16789 fail:
16790 return NULL;
16791}
16792
16793
c370783e 16794static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16795 PyObject *resultobj;
16796 wxImageList *arg1 = (wxImageList *) 0 ;
16797 int result;
16798 PyObject * obj0 = 0 ;
16799 char *kwnames[] = {
16800 (char *) "self", NULL
16801 };
16802
16803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (int)(arg1)->GetImageCount();
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
c370783e 16813 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16814 return resultobj;
16815 fail:
16816 return NULL;
16817}
16818
16819
c370783e 16820static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16821 PyObject *resultobj;
16822 wxImageList *arg1 = (wxImageList *) 0 ;
16823 int arg2 ;
16824 bool result;
16825 PyObject * obj0 = 0 ;
16826 PyObject * obj1 = 0 ;
16827 char *kwnames[] = {
16828 (char *) "self",(char *) "index", NULL
16829 };
16830
16831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16834 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16835 if (PyErr_Occurred()) SWIG_fail;
16836 {
16837 PyThreadState* __tstate = wxPyBeginAllowThreads();
16838 result = (bool)(arg1)->Remove(arg2);
16839
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 {
16844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16845 }
16846 return resultobj;
16847 fail:
16848 return NULL;
16849}
16850
16851
c370783e 16852static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16853 PyObject *resultobj;
16854 wxImageList *arg1 = (wxImageList *) 0 ;
16855 bool result;
16856 PyObject * obj0 = 0 ;
16857 char *kwnames[] = {
16858 (char *) "self", NULL
16859 };
16860
16861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16864 {
16865 PyThreadState* __tstate = wxPyBeginAllowThreads();
16866 result = (bool)(arg1)->RemoveAll();
16867
16868 wxPyEndAllowThreads(__tstate);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 }
16871 {
16872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16873 }
16874 return resultobj;
16875 fail:
16876 return NULL;
16877}
16878
16879
c370783e 16880static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16881 PyObject *resultobj;
16882 wxImageList *arg1 = (wxImageList *) 0 ;
16883 int arg2 ;
16884 int *arg3 = 0 ;
16885 int *arg4 = 0 ;
16886 int temp3 ;
c370783e 16887 int res3 = 0 ;
d55e5bfc 16888 int temp4 ;
c370783e 16889 int res4 = 0 ;
d55e5bfc
RD
16890 PyObject * obj0 = 0 ;
16891 PyObject * obj1 = 0 ;
16892 char *kwnames[] = {
16893 (char *) "self",(char *) "index", NULL
16894 };
16895
c370783e
RD
16896 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16897 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
16898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16901 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16902 if (PyErr_Occurred()) SWIG_fail;
16903 {
16904 PyThreadState* __tstate = wxPyBeginAllowThreads();
16905 (arg1)->GetSize(arg2,*arg3,*arg4);
16906
16907 wxPyEndAllowThreads(__tstate);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
16910 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
16911 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16912 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16913 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16914 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
16915 return resultobj;
16916 fail:
16917 return NULL;
16918}
16919
16920
c370783e 16921static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16922 PyObject *obj;
16923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16924 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16925 Py_INCREF(obj);
16926 return Py_BuildValue((char *)"");
16927}
c370783e 16928static int _wrap_NORMAL_FONT_set(PyObject *) {
d55e5bfc
RD
16929 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16930 return 1;
16931}
16932
16933
16934static PyObject *_wrap_NORMAL_FONT_get() {
16935 PyObject *pyobj;
16936
16937 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16938 return pyobj;
16939}
16940
16941
c370783e 16942static int _wrap_SMALL_FONT_set(PyObject *) {
d55e5bfc
RD
16943 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16944 return 1;
16945}
16946
16947
16948static PyObject *_wrap_SMALL_FONT_get() {
16949 PyObject *pyobj;
16950
16951 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16952 return pyobj;
16953}
16954
16955
c370783e 16956static int _wrap_ITALIC_FONT_set(PyObject *) {
d55e5bfc
RD
16957 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16958 return 1;
16959}
16960
16961
16962static PyObject *_wrap_ITALIC_FONT_get() {
16963 PyObject *pyobj;
16964
16965 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16966 return pyobj;
16967}
16968
16969
c370783e 16970static int _wrap_SWISS_FONT_set(PyObject *) {
d55e5bfc
RD
16971 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16972 return 1;
16973}
16974
16975
16976static PyObject *_wrap_SWISS_FONT_get() {
16977 PyObject *pyobj;
16978
16979 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16980 return pyobj;
16981}
16982
16983
c370783e 16984static int _wrap_RED_PEN_set(PyObject *) {
d55e5bfc
RD
16985 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16986 return 1;
16987}
16988
16989
16990static PyObject *_wrap_RED_PEN_get() {
16991 PyObject *pyobj;
16992
16993 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16994 return pyobj;
16995}
16996
16997
c370783e 16998static int _wrap_CYAN_PEN_set(PyObject *) {
d55e5bfc
RD
16999 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17000 return 1;
17001}
17002
17003
17004static PyObject *_wrap_CYAN_PEN_get() {
17005 PyObject *pyobj;
17006
17007 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17008 return pyobj;
17009}
17010
17011
c370783e 17012static int _wrap_GREEN_PEN_set(PyObject *) {
d55e5bfc
RD
17013 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17014 return 1;
17015}
17016
17017
17018static PyObject *_wrap_GREEN_PEN_get() {
17019 PyObject *pyobj;
17020
17021 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17022 return pyobj;
17023}
17024
17025
c370783e 17026static int _wrap_BLACK_PEN_set(PyObject *) {
d55e5bfc
RD
17027 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17028 return 1;
17029}
17030
17031
17032static PyObject *_wrap_BLACK_PEN_get() {
17033 PyObject *pyobj;
17034
17035 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17036 return pyobj;
17037}
17038
17039
c370783e 17040static int _wrap_WHITE_PEN_set(PyObject *) {
d55e5bfc
RD
17041 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17042 return 1;
17043}
17044
17045
17046static PyObject *_wrap_WHITE_PEN_get() {
17047 PyObject *pyobj;
17048
17049 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17050 return pyobj;
17051}
17052
17053
c370783e 17054static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
d55e5bfc
RD
17055 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17056 return 1;
17057}
17058
17059
17060static PyObject *_wrap_TRANSPARENT_PEN_get() {
17061 PyObject *pyobj;
17062
17063 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17064 return pyobj;
17065}
17066
17067
c370783e 17068static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
d55e5bfc
RD
17069 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17070 return 1;
17071}
17072
17073
17074static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17075 PyObject *pyobj;
17076
17077 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17078 return pyobj;
17079}
17080
17081
c370783e 17082static int _wrap_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17083 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17084 return 1;
17085}
17086
17087
17088static PyObject *_wrap_GREY_PEN_get() {
17089 PyObject *pyobj;
17090
17091 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17092 return pyobj;
17093}
17094
17095
c370783e 17096static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17097 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17098 return 1;
17099}
17100
17101
17102static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17103 PyObject *pyobj;
17104
17105 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17106 return pyobj;
17107}
17108
17109
c370783e 17110static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17111 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17112 return 1;
17113}
17114
17115
17116static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17117 PyObject *pyobj;
17118
17119 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17120 return pyobj;
17121}
17122
17123
c370783e 17124static int _wrap_BLUE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17125 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17126 return 1;
17127}
17128
17129
17130static PyObject *_wrap_BLUE_BRUSH_get() {
17131 PyObject *pyobj;
17132
17133 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17134 return pyobj;
17135}
17136
17137
c370783e 17138static int _wrap_GREEN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17139 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17140 return 1;
17141}
17142
17143
17144static PyObject *_wrap_GREEN_BRUSH_get() {
17145 PyObject *pyobj;
17146
17147 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17148 return pyobj;
17149}
17150
17151
c370783e 17152static int _wrap_WHITE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17153 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17154 return 1;
17155}
17156
17157
17158static PyObject *_wrap_WHITE_BRUSH_get() {
17159 PyObject *pyobj;
17160
17161 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17162 return pyobj;
17163}
17164
17165
c370783e 17166static int _wrap_BLACK_BRUSH_set(PyObject *) {
d55e5bfc
RD
17167 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17168 return 1;
17169}
17170
17171
17172static PyObject *_wrap_BLACK_BRUSH_get() {
17173 PyObject *pyobj;
17174
17175 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17176 return pyobj;
17177}
17178
17179
c370783e 17180static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
d55e5bfc
RD
17181 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17182 return 1;
17183}
17184
17185
17186static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17187 PyObject *pyobj;
17188
17189 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17190 return pyobj;
17191}
17192
17193
c370783e 17194static int _wrap_CYAN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17195 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17196 return 1;
17197}
17198
17199
17200static PyObject *_wrap_CYAN_BRUSH_get() {
17201 PyObject *pyobj;
17202
17203 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17204 return pyobj;
17205}
17206
17207
c370783e 17208static int _wrap_RED_BRUSH_set(PyObject *) {
d55e5bfc
RD
17209 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17210 return 1;
17211}
17212
17213
17214static PyObject *_wrap_RED_BRUSH_get() {
17215 PyObject *pyobj;
17216
17217 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17218 return pyobj;
17219}
17220
17221
c370783e 17222static int _wrap_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17223 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17224 return 1;
17225}
17226
17227
17228static PyObject *_wrap_GREY_BRUSH_get() {
17229 PyObject *pyobj;
17230
17231 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17232 return pyobj;
17233}
17234
17235
c370783e 17236static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17237 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17238 return 1;
17239}
17240
17241
17242static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17243 PyObject *pyobj;
17244
17245 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17246 return pyobj;
17247}
17248
17249
c370783e 17250static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17251 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17252 return 1;
17253}
17254
17255
17256static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17257 PyObject *pyobj;
17258
17259 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17260 return pyobj;
17261}
17262
17263
c370783e 17264static int _wrap_BLACK_set(PyObject *) {
d55e5bfc
RD
17265 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17266 return 1;
17267}
17268
17269
17270static PyObject *_wrap_BLACK_get() {
17271 PyObject *pyobj;
17272
17273 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17274 return pyobj;
17275}
17276
17277
c370783e 17278static int _wrap_WHITE_set(PyObject *) {
d55e5bfc
RD
17279 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17280 return 1;
17281}
17282
17283
17284static PyObject *_wrap_WHITE_get() {
17285 PyObject *pyobj;
17286
17287 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17288 return pyobj;
17289}
17290
17291
c370783e 17292static int _wrap_RED_set(PyObject *) {
d55e5bfc
RD
17293 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17294 return 1;
17295}
17296
17297
17298static PyObject *_wrap_RED_get() {
17299 PyObject *pyobj;
17300
17301 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17302 return pyobj;
17303}
17304
17305
c370783e 17306static int _wrap_BLUE_set(PyObject *) {
d55e5bfc
RD
17307 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17308 return 1;
17309}
17310
17311
17312static PyObject *_wrap_BLUE_get() {
17313 PyObject *pyobj;
17314
17315 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17316 return pyobj;
17317}
17318
17319
c370783e 17320static int _wrap_GREEN_set(PyObject *) {
d55e5bfc
RD
17321 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17322 return 1;
17323}
17324
17325
17326static PyObject *_wrap_GREEN_get() {
17327 PyObject *pyobj;
17328
17329 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17330 return pyobj;
17331}
17332
17333
c370783e 17334static int _wrap_CYAN_set(PyObject *) {
d55e5bfc
RD
17335 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17336 return 1;
17337}
17338
17339
17340static PyObject *_wrap_CYAN_get() {
17341 PyObject *pyobj;
17342
17343 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17344 return pyobj;
17345}
17346
17347
c370783e 17348static int _wrap_LIGHT_GREY_set(PyObject *) {
d55e5bfc
RD
17349 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17350 return 1;
17351}
17352
17353
17354static PyObject *_wrap_LIGHT_GREY_get() {
17355 PyObject *pyobj;
17356
17357 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17358 return pyobj;
17359}
17360
17361
c370783e 17362static int _wrap_STANDARD_CURSOR_set(PyObject *) {
d55e5bfc
RD
17363 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17364 return 1;
17365}
17366
17367
17368static PyObject *_wrap_STANDARD_CURSOR_get() {
17369 PyObject *pyobj;
17370
17371 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17372 return pyobj;
17373}
17374
17375
c370783e 17376static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
d55e5bfc
RD
17377 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17378 return 1;
17379}
17380
17381
17382static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17383 PyObject *pyobj;
17384
17385 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17386 return pyobj;
17387}
17388
17389
c370783e 17390static int _wrap_CROSS_CURSOR_set(PyObject *) {
d55e5bfc
RD
17391 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17392 return 1;
17393}
17394
17395
17396static PyObject *_wrap_CROSS_CURSOR_get() {
17397 PyObject *pyobj;
17398
17399 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17400 return pyobj;
17401}
17402
17403
c370783e 17404static int _wrap_NullBitmap_set(PyObject *) {
d55e5bfc
RD
17405 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17406 return 1;
17407}
17408
17409
17410static PyObject *_wrap_NullBitmap_get() {
17411 PyObject *pyobj;
17412
17413 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17414 return pyobj;
17415}
17416
17417
c370783e 17418static int _wrap_NullIcon_set(PyObject *) {
d55e5bfc
RD
17419 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17420 return 1;
17421}
17422
17423
17424static PyObject *_wrap_NullIcon_get() {
17425 PyObject *pyobj;
17426
17427 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17428 return pyobj;
17429}
17430
17431
c370783e 17432static int _wrap_NullCursor_set(PyObject *) {
d55e5bfc
RD
17433 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17434 return 1;
17435}
17436
17437
17438static PyObject *_wrap_NullCursor_get() {
17439 PyObject *pyobj;
17440
17441 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17442 return pyobj;
17443}
17444
17445
c370783e 17446static int _wrap_NullPen_set(PyObject *) {
d55e5bfc
RD
17447 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17448 return 1;
17449}
17450
17451
17452static PyObject *_wrap_NullPen_get() {
17453 PyObject *pyobj;
17454
17455 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17456 return pyobj;
17457}
17458
17459
c370783e 17460static int _wrap_NullBrush_set(PyObject *) {
d55e5bfc
RD
17461 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17462 return 1;
17463}
17464
17465
17466static PyObject *_wrap_NullBrush_get() {
17467 PyObject *pyobj;
17468
17469 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17470 return pyobj;
17471}
17472
17473
c370783e 17474static int _wrap_NullPalette_set(PyObject *) {
d55e5bfc
RD
17475 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17476 return 1;
17477}
17478
17479
17480static PyObject *_wrap_NullPalette_get() {
17481 PyObject *pyobj;
17482
17483 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17484 return pyobj;
17485}
17486
17487
c370783e 17488static int _wrap_NullFont_set(PyObject *) {
d55e5bfc
RD
17489 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17490 return 1;
17491}
17492
17493
17494static PyObject *_wrap_NullFont_get() {
17495 PyObject *pyobj;
17496
17497 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17498 return pyobj;
17499}
17500
17501
c370783e 17502static int _wrap_NullColour_set(PyObject *) {
d55e5bfc
RD
17503 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17504 return 1;
17505}
17506
17507
17508static PyObject *_wrap_NullColour_get() {
17509 PyObject *pyobj;
17510
17511 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17512 return pyobj;
17513}
17514
17515
c370783e 17516static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17517 PyObject *resultobj;
17518 wxPenList *arg1 = (wxPenList *) 0 ;
17519 wxPen *arg2 = (wxPen *) 0 ;
17520 PyObject * obj0 = 0 ;
17521 PyObject * obj1 = 0 ;
17522 char *kwnames[] = {
17523 (char *) "self",(char *) "pen", NULL
17524 };
17525
17526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 (arg1)->AddPen(arg2);
17534
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 Py_INCREF(Py_None); resultobj = Py_None;
17539 return resultobj;
17540 fail:
17541 return NULL;
17542}
17543
17544
c370783e 17545static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17546 PyObject *resultobj;
17547 wxPenList *arg1 = (wxPenList *) 0 ;
17548 wxColour *arg2 = 0 ;
17549 int arg3 ;
17550 int arg4 ;
17551 wxPen *result;
17552 wxColour temp2 ;
17553 PyObject * obj0 = 0 ;
17554 PyObject * obj1 = 0 ;
17555 PyObject * obj2 = 0 ;
17556 PyObject * obj3 = 0 ;
17557 char *kwnames[] = {
17558 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17559 };
17560
17561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17564 {
17565 arg2 = &temp2;
17566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17567 }
c370783e 17568 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 17569 if (PyErr_Occurred()) SWIG_fail;
c370783e 17570 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
17571 if (PyErr_Occurred()) SWIG_fail;
17572 {
17573 PyThreadState* __tstate = wxPyBeginAllowThreads();
17574 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17575
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17580 return resultobj;
17581 fail:
17582 return NULL;
17583}
17584
17585
c370783e 17586static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17587 PyObject *resultobj;
17588 wxPenList *arg1 = (wxPenList *) 0 ;
17589 wxPen *arg2 = (wxPen *) 0 ;
17590 PyObject * obj0 = 0 ;
17591 PyObject * obj1 = 0 ;
17592 char *kwnames[] = {
17593 (char *) "self",(char *) "pen", NULL
17594 };
17595
17596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17601 {
17602 PyThreadState* __tstate = wxPyBeginAllowThreads();
17603 (arg1)->RemovePen(arg2);
17604
17605 wxPyEndAllowThreads(__tstate);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 Py_INCREF(Py_None); resultobj = Py_None;
17609 return resultobj;
17610 fail:
17611 return NULL;
17612}
17613
17614
c370783e 17615static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17616 PyObject *resultobj;
17617 wxPenList *arg1 = (wxPenList *) 0 ;
17618 int result;
17619 PyObject * obj0 = 0 ;
17620 char *kwnames[] = {
17621 (char *) "self", NULL
17622 };
17623
17624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17627 {
17628 PyThreadState* __tstate = wxPyBeginAllowThreads();
17629 result = (int)(arg1)->GetCount();
17630
17631 wxPyEndAllowThreads(__tstate);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 }
c370783e 17634 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17635 return resultobj;
17636 fail:
17637 return NULL;
17638}
17639
17640
c370783e 17641static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17642 PyObject *obj;
17643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17644 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17645 Py_INCREF(obj);
17646 return Py_BuildValue((char *)"");
17647}
c370783e 17648static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17649 PyObject *resultobj;
17650 wxBrushList *arg1 = (wxBrushList *) 0 ;
17651 wxBrush *arg2 = (wxBrush *) 0 ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 char *kwnames[] = {
17655 (char *) "self",(char *) "brush", NULL
17656 };
17657
17658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 (arg1)->AddBrush(arg2);
17666
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 Py_INCREF(Py_None); resultobj = Py_None;
17671 return resultobj;
17672 fail:
17673 return NULL;
17674}
17675
17676
c370783e 17677static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17678 PyObject *resultobj;
17679 wxBrushList *arg1 = (wxBrushList *) 0 ;
17680 wxColour *arg2 = 0 ;
17681 int arg3 ;
17682 wxBrush *result;
17683 wxColour temp2 ;
17684 PyObject * obj0 = 0 ;
17685 PyObject * obj1 = 0 ;
17686 PyObject * obj2 = 0 ;
17687 char *kwnames[] = {
17688 (char *) "self",(char *) "colour",(char *) "style", NULL
17689 };
17690
17691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17694 {
17695 arg2 = &temp2;
17696 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17697 }
c370783e 17698 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17699 if (PyErr_Occurred()) SWIG_fail;
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17703
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17708 return resultobj;
17709 fail:
17710 return NULL;
17711}
17712
17713
c370783e 17714static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17715 PyObject *resultobj;
17716 wxBrushList *arg1 = (wxBrushList *) 0 ;
17717 wxBrush *arg2 = (wxBrush *) 0 ;
17718 PyObject * obj0 = 0 ;
17719 PyObject * obj1 = 0 ;
17720 char *kwnames[] = {
17721 (char *) "self",(char *) "brush", NULL
17722 };
17723
17724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17729 {
17730 PyThreadState* __tstate = wxPyBeginAllowThreads();
17731 (arg1)->RemoveBrush(arg2);
17732
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 Py_INCREF(Py_None); resultobj = Py_None;
17737 return resultobj;
17738 fail:
17739 return NULL;
17740}
17741
17742
c370783e 17743static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17744 PyObject *resultobj;
17745 wxBrushList *arg1 = (wxBrushList *) 0 ;
17746 int result;
17747 PyObject * obj0 = 0 ;
17748 char *kwnames[] = {
17749 (char *) "self", NULL
17750 };
17751
17752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17755 {
17756 PyThreadState* __tstate = wxPyBeginAllowThreads();
17757 result = (int)(arg1)->GetCount();
17758
17759 wxPyEndAllowThreads(__tstate);
17760 if (PyErr_Occurred()) SWIG_fail;
17761 }
c370783e 17762 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17763 return resultobj;
17764 fail:
17765 return NULL;
17766}
17767
17768
c370783e 17769static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17770 PyObject *obj;
17771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17772 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17773 Py_INCREF(obj);
17774 return Py_BuildValue((char *)"");
17775}
c370783e 17776static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17777 PyObject *resultobj;
17778 wxColourDatabase *result;
17779 char *kwnames[] = {
17780 NULL
17781 };
17782
17783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17784 {
0439c23b 17785 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17786 PyThreadState* __tstate = wxPyBeginAllowThreads();
17787 result = (wxColourDatabase *)new wxColourDatabase();
17788
17789 wxPyEndAllowThreads(__tstate);
110da5b0 17790 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17791 }
17792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17793 return resultobj;
17794 fail:
17795 return NULL;
17796}
17797
17798
c370783e 17799static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17800 PyObject *resultobj;
17801 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17802 PyObject * obj0 = 0 ;
17803 char *kwnames[] = {
17804 (char *) "self", NULL
17805 };
17806
17807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 delete arg1;
17813
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 Py_INCREF(Py_None); resultobj = Py_None;
17818 return resultobj;
17819 fail:
17820 return NULL;
17821}
17822
17823
c370783e 17824static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17825 PyObject *resultobj;
17826 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17827 wxString *arg2 = 0 ;
17828 wxColour result;
b411df4a 17829 bool temp2 = false ;
d55e5bfc
RD
17830 PyObject * obj0 = 0 ;
17831 PyObject * obj1 = 0 ;
17832 char *kwnames[] = {
17833 (char *) "self",(char *) "name", NULL
17834 };
17835
17836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17839 {
17840 arg2 = wxString_in_helper(obj1);
17841 if (arg2 == NULL) SWIG_fail;
b411df4a 17842 temp2 = true;
d55e5bfc
RD
17843 }
17844 {
17845 PyThreadState* __tstate = wxPyBeginAllowThreads();
17846 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17847
17848 wxPyEndAllowThreads(__tstate);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 }
17851 {
17852 wxColour * resultptr;
17853 resultptr = new wxColour((wxColour &) result);
17854 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17855 }
17856 {
17857 if (temp2)
17858 delete arg2;
17859 }
17860 return resultobj;
17861 fail:
17862 {
17863 if (temp2)
17864 delete arg2;
17865 }
17866 return NULL;
17867}
17868
17869
c370783e 17870static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17871 PyObject *resultobj;
17872 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17873 wxColour *arg2 = 0 ;
17874 wxString result;
17875 wxColour temp2 ;
17876 PyObject * obj0 = 0 ;
17877 PyObject * obj1 = 0 ;
17878 char *kwnames[] = {
17879 (char *) "self",(char *) "colour", NULL
17880 };
17881
17882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17885 {
17886 arg2 = &temp2;
17887 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17888 }
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17892
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 {
17897#if wxUSE_UNICODE
17898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17899#else
17900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17901#endif
17902 }
17903 return resultobj;
17904 fail:
17905 return NULL;
17906}
17907
17908
c370783e 17909static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17910 PyObject *resultobj;
17911 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17912 wxString *arg2 = 0 ;
17913 wxColour *arg3 = 0 ;
b411df4a 17914 bool temp2 = false ;
d55e5bfc
RD
17915 wxColour temp3 ;
17916 PyObject * obj0 = 0 ;
17917 PyObject * obj1 = 0 ;
17918 PyObject * obj2 = 0 ;
17919 char *kwnames[] = {
17920 (char *) "self",(char *) "name",(char *) "colour", NULL
17921 };
17922
17923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17926 {
17927 arg2 = wxString_in_helper(obj1);
17928 if (arg2 == NULL) SWIG_fail;
b411df4a 17929 temp2 = true;
d55e5bfc
RD
17930 }
17931 {
17932 arg3 = &temp3;
17933 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17934 }
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17938
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 Py_INCREF(Py_None); resultobj = Py_None;
17943 {
17944 if (temp2)
17945 delete arg2;
17946 }
17947 return resultobj;
17948 fail:
17949 {
17950 if (temp2)
17951 delete arg2;
17952 }
17953 return NULL;
17954}
17955
17956
c370783e 17957static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17958 PyObject *resultobj;
17959 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17960 wxString *arg2 = 0 ;
17961 int arg3 ;
17962 int arg4 ;
17963 int arg5 ;
b411df4a 17964 bool temp2 = false ;
d55e5bfc
RD
17965 PyObject * obj0 = 0 ;
17966 PyObject * obj1 = 0 ;
17967 PyObject * obj2 = 0 ;
17968 PyObject * obj3 = 0 ;
17969 PyObject * obj4 = 0 ;
17970 char *kwnames[] = {
17971 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17972 };
17973
17974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17977 {
17978 arg2 = wxString_in_helper(obj1);
17979 if (arg2 == NULL) SWIG_fail;
b411df4a 17980 temp2 = true;
d55e5bfc 17981 }
c370783e 17982 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 17983 if (PyErr_Occurred()) SWIG_fail;
c370783e 17984 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 17985 if (PyErr_Occurred()) SWIG_fail;
c370783e 17986 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
17987 if (PyErr_Occurred()) SWIG_fail;
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17991
17992 wxPyEndAllowThreads(__tstate);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 }
17995 Py_INCREF(Py_None); resultobj = Py_None;
17996 {
17997 if (temp2)
17998 delete arg2;
17999 }
18000 return resultobj;
18001 fail:
18002 {
18003 if (temp2)
18004 delete arg2;
18005 }
18006 return NULL;
18007}
18008
18009
c370783e 18010static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18011 PyObject *obj;
18012 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18013 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18014 Py_INCREF(obj);
18015 return Py_BuildValue((char *)"");
18016}
c370783e 18017static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18018 PyObject *resultobj;
18019 wxFontList *arg1 = (wxFontList *) 0 ;
18020 wxFont *arg2 = (wxFont *) 0 ;
18021 PyObject * obj0 = 0 ;
18022 PyObject * obj1 = 0 ;
18023 char *kwnames[] = {
18024 (char *) "self",(char *) "font", NULL
18025 };
18026
18027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18032 {
18033 PyThreadState* __tstate = wxPyBeginAllowThreads();
18034 (arg1)->AddFont(arg2);
18035
18036 wxPyEndAllowThreads(__tstate);
18037 if (PyErr_Occurred()) SWIG_fail;
18038 }
18039 Py_INCREF(Py_None); resultobj = Py_None;
18040 return resultobj;
18041 fail:
18042 return NULL;
18043}
18044
18045
c370783e 18046static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18047 PyObject *resultobj;
18048 wxFontList *arg1 = (wxFontList *) 0 ;
18049 int arg2 ;
18050 int arg3 ;
18051 int arg4 ;
18052 int arg5 ;
b411df4a 18053 bool arg6 = (bool) false ;
d55e5bfc
RD
18054 wxString const &arg7_defvalue = wxPyEmptyString ;
18055 wxString *arg7 = (wxString *) &arg7_defvalue ;
18056 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18057 wxFont *result;
b411df4a 18058 bool temp7 = false ;
d55e5bfc
RD
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 PyObject * obj2 = 0 ;
18062 PyObject * obj3 = 0 ;
18063 PyObject * obj4 = 0 ;
18064 PyObject * obj5 = 0 ;
18065 PyObject * obj6 = 0 ;
18066 PyObject * obj7 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18074 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 18075 if (PyErr_Occurred()) SWIG_fail;
c370783e 18076 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18077 if (PyErr_Occurred()) SWIG_fail;
c370783e 18078 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18079 if (PyErr_Occurred()) SWIG_fail;
c370783e 18080 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18081 if (PyErr_Occurred()) SWIG_fail;
18082 if (obj5) {
c370783e 18083 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
18084 if (PyErr_Occurred()) SWIG_fail;
18085 }
18086 if (obj6) {
18087 {
18088 arg7 = wxString_in_helper(obj6);
18089 if (arg7 == NULL) SWIG_fail;
b411df4a 18090 temp7 = true;
d55e5bfc
RD
18091 }
18092 }
18093 if (obj7) {
c370783e 18094 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
18095 if (PyErr_Occurred()) SWIG_fail;
18096 }
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18100
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18105 {
18106 if (temp7)
18107 delete arg7;
18108 }
18109 return resultobj;
18110 fail:
18111 {
18112 if (temp7)
18113 delete arg7;
18114 }
18115 return NULL;
18116}
18117
18118
c370783e 18119static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18120 PyObject *resultobj;
18121 wxFontList *arg1 = (wxFontList *) 0 ;
18122 wxFont *arg2 = (wxFont *) 0 ;
18123 PyObject * obj0 = 0 ;
18124 PyObject * obj1 = 0 ;
18125 char *kwnames[] = {
18126 (char *) "self",(char *) "font", NULL
18127 };
18128
18129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18134 {
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
18136 (arg1)->RemoveFont(arg2);
18137
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 Py_INCREF(Py_None); resultobj = Py_None;
18142 return resultobj;
18143 fail:
18144 return NULL;
18145}
18146
18147
c370783e 18148static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18149 PyObject *resultobj;
18150 wxFontList *arg1 = (wxFontList *) 0 ;
18151 int result;
18152 PyObject * obj0 = 0 ;
18153 char *kwnames[] = {
18154 (char *) "self", NULL
18155 };
18156
18157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18160 {
18161 PyThreadState* __tstate = wxPyBeginAllowThreads();
18162 result = (int)(arg1)->GetCount();
18163
18164 wxPyEndAllowThreads(__tstate);
18165 if (PyErr_Occurred()) SWIG_fail;
18166 }
c370783e 18167 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18168 return resultobj;
18169 fail:
18170 return NULL;
18171}
18172
18173
c370783e 18174static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18175 PyObject *obj;
18176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18177 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18178 Py_INCREF(obj);
18179 return Py_BuildValue((char *)"");
18180}
c370783e 18181static int _wrap_TheFontList_set(PyObject *) {
d55e5bfc
RD
18182 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18183 return 1;
18184}
18185
18186
18187static PyObject *_wrap_TheFontList_get() {
18188 PyObject *pyobj;
18189
18190 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18191 return pyobj;
18192}
18193
18194
c370783e 18195static int _wrap_ThePenList_set(PyObject *) {
d55e5bfc
RD
18196 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18197 return 1;
18198}
18199
18200
18201static PyObject *_wrap_ThePenList_get() {
18202 PyObject *pyobj;
18203
18204 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18205 return pyobj;
18206}
18207
18208
c370783e 18209static int _wrap_TheBrushList_set(PyObject *) {
d55e5bfc
RD
18210 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18211 return 1;
18212}
18213
18214
18215static PyObject *_wrap_TheBrushList_get() {
18216 PyObject *pyobj;
18217
18218 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18219 return pyobj;
18220}
18221
18222
c370783e 18223static int _wrap_TheColourDatabase_set(PyObject *) {
d55e5bfc
RD
18224 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18225 return 1;
18226}
18227
18228
18229static PyObject *_wrap_TheColourDatabase_get() {
18230 PyObject *pyobj;
18231
18232 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18233 return pyobj;
18234}
18235
18236
c370783e 18237static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18238 PyObject *resultobj;
18239 wxEffects *result;
18240 char *kwnames[] = {
18241 NULL
18242 };
18243
18244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18245 {
18246 PyThreadState* __tstate = wxPyBeginAllowThreads();
18247 result = (wxEffects *)new wxEffects();
18248
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18253 return resultobj;
18254 fail:
18255 return NULL;
18256}
18257
18258
c370783e 18259static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18260 PyObject *resultobj;
18261 wxEffects *arg1 = (wxEffects *) 0 ;
18262 wxColour result;
18263 PyObject * obj0 = 0 ;
18264 char *kwnames[] = {
18265 (char *) "self", NULL
18266 };
18267
18268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 result = ((wxEffects const *)arg1)->GetHighlightColour();
18274
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 {
18279 wxColour * resultptr;
18280 resultptr = new wxColour((wxColour &) result);
18281 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18282 }
18283 return resultobj;
18284 fail:
18285 return NULL;
18286}
18287
18288
c370783e 18289static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18290 PyObject *resultobj;
18291 wxEffects *arg1 = (wxEffects *) 0 ;
18292 wxColour result;
18293 PyObject * obj0 = 0 ;
18294 char *kwnames[] = {
18295 (char *) "self", NULL
18296 };
18297
18298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 result = ((wxEffects const *)arg1)->GetLightShadow();
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 {
18309 wxColour * resultptr;
18310 resultptr = new wxColour((wxColour &) result);
18311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18312 }
18313 return resultobj;
18314 fail:
18315 return NULL;
18316}
18317
18318
c370783e 18319static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18320 PyObject *resultobj;
18321 wxEffects *arg1 = (wxEffects *) 0 ;
18322 wxColour result;
18323 PyObject * obj0 = 0 ;
18324 char *kwnames[] = {
18325 (char *) "self", NULL
18326 };
18327
18328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 result = ((wxEffects const *)arg1)->GetFaceColour();
18334
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 {
18339 wxColour * resultptr;
18340 resultptr = new wxColour((wxColour &) result);
18341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18342 }
18343 return resultobj;
18344 fail:
18345 return NULL;
18346}
18347
18348
c370783e 18349static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18350 PyObject *resultobj;
18351 wxEffects *arg1 = (wxEffects *) 0 ;
18352 wxColour result;
18353 PyObject * obj0 = 0 ;
18354 char *kwnames[] = {
18355 (char *) "self", NULL
18356 };
18357
18358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 result = ((wxEffects const *)arg1)->GetMediumShadow();
18364
18365 wxPyEndAllowThreads(__tstate);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 }
18368 {
18369 wxColour * resultptr;
18370 resultptr = new wxColour((wxColour &) result);
18371 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18372 }
18373 return resultobj;
18374 fail:
18375 return NULL;
18376}
18377
18378
c370783e 18379static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18380 PyObject *resultobj;
18381 wxEffects *arg1 = (wxEffects *) 0 ;
18382 wxColour result;
18383 PyObject * obj0 = 0 ;
18384 char *kwnames[] = {
18385 (char *) "self", NULL
18386 };
18387
18388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 result = ((wxEffects const *)arg1)->GetDarkShadow();
18394
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 {
18399 wxColour * resultptr;
18400 resultptr = new wxColour((wxColour &) result);
18401 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18402 }
18403 return resultobj;
18404 fail:
18405 return NULL;
18406}
18407
18408
c370783e 18409static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18410 PyObject *resultobj;
18411 wxEffects *arg1 = (wxEffects *) 0 ;
18412 wxColour *arg2 = 0 ;
18413 wxColour temp2 ;
18414 PyObject * obj0 = 0 ;
18415 PyObject * obj1 = 0 ;
18416 char *kwnames[] = {
18417 (char *) "self",(char *) "c", NULL
18418 };
18419
18420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18423 {
18424 arg2 = &temp2;
18425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18426 }
18427 {
18428 PyThreadState* __tstate = wxPyBeginAllowThreads();
18429 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18430
18431 wxPyEndAllowThreads(__tstate);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 Py_INCREF(Py_None); resultobj = Py_None;
18435 return resultobj;
18436 fail:
18437 return NULL;
18438}
18439
18440
c370783e 18441static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18442 PyObject *resultobj;
18443 wxEffects *arg1 = (wxEffects *) 0 ;
18444 wxColour *arg2 = 0 ;
18445 wxColour temp2 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 char *kwnames[] = {
18449 (char *) "self",(char *) "c", NULL
18450 };
18451
18452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18455 {
18456 arg2 = &temp2;
18457 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18458 }
18459 {
18460 PyThreadState* __tstate = wxPyBeginAllowThreads();
18461 (arg1)->SetLightShadow((wxColour const &)*arg2);
18462
18463 wxPyEndAllowThreads(__tstate);
18464 if (PyErr_Occurred()) SWIG_fail;
18465 }
18466 Py_INCREF(Py_None); resultobj = Py_None;
18467 return resultobj;
18468 fail:
18469 return NULL;
18470}
18471
18472
c370783e 18473static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18474 PyObject *resultobj;
18475 wxEffects *arg1 = (wxEffects *) 0 ;
18476 wxColour *arg2 = 0 ;
18477 wxColour temp2 ;
18478 PyObject * obj0 = 0 ;
18479 PyObject * obj1 = 0 ;
18480 char *kwnames[] = {
18481 (char *) "self",(char *) "c", NULL
18482 };
18483
18484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18487 {
18488 arg2 = &temp2;
18489 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18490 }
18491 {
18492 PyThreadState* __tstate = wxPyBeginAllowThreads();
18493 (arg1)->SetFaceColour((wxColour const &)*arg2);
18494
18495 wxPyEndAllowThreads(__tstate);
18496 if (PyErr_Occurred()) SWIG_fail;
18497 }
18498 Py_INCREF(Py_None); resultobj = Py_None;
18499 return resultobj;
18500 fail:
18501 return NULL;
18502}
18503
18504
c370783e 18505static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18506 PyObject *resultobj;
18507 wxEffects *arg1 = (wxEffects *) 0 ;
18508 wxColour *arg2 = 0 ;
18509 wxColour temp2 ;
18510 PyObject * obj0 = 0 ;
18511 PyObject * obj1 = 0 ;
18512 char *kwnames[] = {
18513 (char *) "self",(char *) "c", NULL
18514 };
18515
18516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18519 {
18520 arg2 = &temp2;
18521 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18522 }
18523 {
18524 PyThreadState* __tstate = wxPyBeginAllowThreads();
18525 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18526
18527 wxPyEndAllowThreads(__tstate);
18528 if (PyErr_Occurred()) SWIG_fail;
18529 }
18530 Py_INCREF(Py_None); resultobj = Py_None;
18531 return resultobj;
18532 fail:
18533 return NULL;
18534}
18535
18536
c370783e 18537static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18538 PyObject *resultobj;
18539 wxEffects *arg1 = (wxEffects *) 0 ;
18540 wxColour *arg2 = 0 ;
18541 wxColour temp2 ;
18542 PyObject * obj0 = 0 ;
18543 PyObject * obj1 = 0 ;
18544 char *kwnames[] = {
18545 (char *) "self",(char *) "c", NULL
18546 };
18547
18548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18551 {
18552 arg2 = &temp2;
18553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18554 }
18555 {
18556 PyThreadState* __tstate = wxPyBeginAllowThreads();
18557 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18558
18559 wxPyEndAllowThreads(__tstate);
18560 if (PyErr_Occurred()) SWIG_fail;
18561 }
18562 Py_INCREF(Py_None); resultobj = Py_None;
18563 return resultobj;
18564 fail:
18565 return NULL;
18566}
18567
18568
c370783e 18569static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18570 PyObject *resultobj;
18571 wxEffects *arg1 = (wxEffects *) 0 ;
18572 wxColour *arg2 = 0 ;
18573 wxColour *arg3 = 0 ;
18574 wxColour *arg4 = 0 ;
18575 wxColour *arg5 = 0 ;
18576 wxColour *arg6 = 0 ;
18577 wxColour temp2 ;
18578 wxColour temp3 ;
18579 wxColour temp4 ;
18580 wxColour temp5 ;
18581 wxColour temp6 ;
18582 PyObject * obj0 = 0 ;
18583 PyObject * obj1 = 0 ;
18584 PyObject * obj2 = 0 ;
18585 PyObject * obj3 = 0 ;
18586 PyObject * obj4 = 0 ;
18587 PyObject * obj5 = 0 ;
18588 char *kwnames[] = {
18589 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18590 };
18591
18592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18595 {
18596 arg2 = &temp2;
18597 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18598 }
18599 {
18600 arg3 = &temp3;
18601 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18602 }
18603 {
18604 arg4 = &temp4;
18605 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18606 }
18607 {
18608 arg5 = &temp5;
18609 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18610 }
18611 {
18612 arg6 = &temp6;
18613 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18614 }
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18618
18619 wxPyEndAllowThreads(__tstate);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 }
18622 Py_INCREF(Py_None); resultobj = Py_None;
18623 return resultobj;
18624 fail:
18625 return NULL;
18626}
18627
18628
c370783e 18629static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18630 PyObject *resultobj;
18631 wxEffects *arg1 = (wxEffects *) 0 ;
18632 wxDC *arg2 = 0 ;
18633 wxRect *arg3 = 0 ;
18634 int arg4 = (int) 1 ;
18635 wxRect temp3 ;
18636 PyObject * obj0 = 0 ;
18637 PyObject * obj1 = 0 ;
18638 PyObject * obj2 = 0 ;
18639 PyObject * obj3 = 0 ;
18640 char *kwnames[] = {
18641 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18642 };
18643
18644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18647 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18648 SWIG_POINTER_EXCEPTION | 0)) == -1)
18649 SWIG_fail;
18650 if (arg2 == NULL) {
18651 PyErr_SetString(PyExc_TypeError,"null reference");
18652 SWIG_fail;
18653 }
18654 {
18655 arg3 = &temp3;
18656 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18657 }
18658 if (obj3) {
c370783e 18659 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18665
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 Py_INCREF(Py_None); resultobj = Py_None;
18670 return resultobj;
18671 fail:
18672 return NULL;
18673}
18674
18675
c370783e 18676static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18677 PyObject *resultobj;
18678 wxEffects *arg1 = (wxEffects *) 0 ;
18679 wxRect *arg2 = 0 ;
18680 wxDC *arg3 = 0 ;
18681 wxBitmap *arg4 = 0 ;
18682 bool result;
18683 wxRect temp2 ;
18684 PyObject * obj0 = 0 ;
18685 PyObject * obj1 = 0 ;
18686 PyObject * obj2 = 0 ;
18687 PyObject * obj3 = 0 ;
18688 char *kwnames[] = {
18689 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18690 };
18691
18692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18695 {
18696 arg2 = &temp2;
18697 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18698 }
18699 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18700 SWIG_POINTER_EXCEPTION | 0)) == -1)
18701 SWIG_fail;
18702 if (arg3 == NULL) {
18703 PyErr_SetString(PyExc_TypeError,"null reference");
18704 SWIG_fail;
18705 }
18706 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18707 SWIG_POINTER_EXCEPTION | 0)) == -1)
18708 SWIG_fail;
18709 if (arg4 == NULL) {
18710 PyErr_SetString(PyExc_TypeError,"null reference");
18711 SWIG_fail;
18712 }
18713 {
18714 PyThreadState* __tstate = wxPyBeginAllowThreads();
18715 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18716
18717 wxPyEndAllowThreads(__tstate);
18718 if (PyErr_Occurred()) SWIG_fail;
18719 }
18720 {
18721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18722 }
18723 return resultobj;
18724 fail:
18725 return NULL;
18726}
18727
18728
c370783e 18729static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18730 PyObject *obj;
18731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18732 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18733 Py_INCREF(obj);
18734 return Py_BuildValue((char *)"");
18735}
18736static PyMethodDef SwigMethods[] = {
c370783e
RD
18737 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18738 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18743 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18746 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18747 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18750 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18751 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18753 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18754 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18756 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18760 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18761 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18763 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18765 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18766 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18769 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18775 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18777 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18785 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18797 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18803 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
070c48b4 18816 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18817 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18825 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18827 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18832 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18839 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18841 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18842 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18845 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18846 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18847 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18848 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18850 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18851 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18853 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18854 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18856 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18858 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18860 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18861 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18862 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18863 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18864 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18866 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
070c48b4 18870 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18871 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18872 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18879 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18880 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18883 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18885 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18887 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18893 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18897 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18899 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18900 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18902 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18907 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18911 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18914 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18915 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18918 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18919 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18920 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18922 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18923 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18924 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18925 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18926 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18929 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18930 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18931 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18932 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18933 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18934 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18935 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18936 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18937 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18938 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18939 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18940 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18941 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18942 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18943 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18944 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18945 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18946 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18947 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18948 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18949 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18950 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18951 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18952 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18953 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18954 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18955 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18956 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18957 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18958 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18959 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18960 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18961 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18962 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18963 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18964 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 18965 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18966 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18967 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18968 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18969 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524
RD
18970 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18971 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18972 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18973 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18974 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18975 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18976 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18977 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18978 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18979 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18980 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18981 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18982 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 18983 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18984 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18985 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18986 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18987 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18988 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18989 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18990 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18991 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18992 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18993 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18994 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18995 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18996 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18997 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18998 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18999 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19000 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
19001 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19002 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19003 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19004 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19005 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19006 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19007 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19008 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
19009 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
19010 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
19011 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
19012 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
19013 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
19014 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
19015 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
19016 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19017 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19018 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
19019 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
19020 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19021 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19022 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19023 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19024 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19025 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19026 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
19027 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
19028 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
19029 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
19030 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
19031 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19032 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
19033 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19034 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19035 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
19036 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
19037 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
19038 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19039 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
19040 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19041 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19042 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19043 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
19044 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19045 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19046 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
19047 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
19048 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
19049 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19050 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19051 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
19052 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19053 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19054 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19055 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
19056 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19057 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
19058 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19059 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
19060 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19061 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
19062 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
19063 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
19064 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19065 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19066 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19067 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19068 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19069 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19070 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19071 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19072 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19073 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
19074 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19075 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
19076 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
19077 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19078 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19079 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19080 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19081 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19082 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
19083 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19084 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
19085 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19086 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
19087 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19088 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19089 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19090 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19091 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19092 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
19093 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
19094 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19095 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19096 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
19097 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19098 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19099 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19100 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
19101 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
19102 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19103 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19104 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19105 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19106 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19107 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19108 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19109 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19110 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19111 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19112 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19113 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19114 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19115 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19116 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
19117 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19118 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19119 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
19120 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19121 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
19122 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
19123 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19124 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19125 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
19126 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
19127 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19128 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19129 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19130 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19131 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19132 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
19133 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19134 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19135 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19136 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19137 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19138 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19139 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19140 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19141 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19142 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19143 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19144 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19145 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19146 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19147 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19148 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19149 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19150 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19151 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19152 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19153 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19154 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19155 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19156 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19157 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
19158 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19159 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19160 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19161 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19162 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19163 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19164 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19165 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
19166 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
19167 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
19168 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
19169 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19170 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
19171 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
19172 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
19173 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
19174 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
19175 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
19176 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19177 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19178 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19179 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19180 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19181 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19182 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19183 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19184 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19185 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19186 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19187 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19188 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19189 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19190 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19191 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19192 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19193 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19194 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19195 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19196 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19197 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19198 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19199 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19200 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19201 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19202 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19203 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19204 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19205 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19206 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19207 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19208 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19209 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
19210 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19211 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19212 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19213 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19214 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19215 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
19216 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19217 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19218 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19219 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19220 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19221 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19222 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19223 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19224 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19225 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19226 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19227 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19228 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19229 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19230 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19231 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19232 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19233 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19234 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19235 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19236 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19237 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19238 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19239 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19240 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19241 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19242 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19243 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19244 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19245 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19246 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19247 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19248 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19249 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19250 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19251 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19252 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19253 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19254 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19255 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19256 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19257 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19258 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19259 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19260 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19261 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19262 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19263 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19264 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19265 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19266 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19267 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19268 { NULL, NULL, 0, NULL }
d55e5bfc
RD
19269};
19270
19271
19272/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19273
19274static void *_p_wxControlTo_p_wxWindow(void *x) {
19275 return (void *)((wxWindow *) ((wxControl *) x));
19276}
19277static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19278 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19279}
19280static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19281 return (void *)((wxWindow *) ((wxMenuBar *) x));
19282}
19283static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19284 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19285}
19286static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19287 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19288}
19289static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19290 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19291}
19292static void *_p_wxPenTo_p_wxObject(void *x) {
19293 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19294}
19295static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19296 return (void *)((wxObject *) ((wxRegionIterator *) x));
19297}
19298static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19299 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19300}
19301static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19302 return (void *)((wxObject *) ((wxSizerItem *) x));
19303}
19304static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19305 return (void *)((wxObject *) ((wxColourDatabase *) x));
19306}
19307static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19308 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19309}
19310static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19311 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19312}
19313static void *_p_wxIconTo_p_wxObject(void *x) {
19314 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19315}
19316static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19317 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19318}
19319static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19320 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19321}
19322static void *_p_wxSizerTo_p_wxObject(void *x) {
19323 return (void *)((wxObject *) ((wxSizer *) x));
19324}
19325static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19326 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19327}
19328static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19329 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19330}
19331static void *_p_wxPenListTo_p_wxObject(void *x) {
19332 return (void *)((wxObject *) ((wxPenList *) x));
19333}
19334static void *_p_wxEventTo_p_wxObject(void *x) {
19335 return (void *)((wxObject *) ((wxEvent *) x));
19336}
19337static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19338 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19339}
19340static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19341 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19342}
19343static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19344 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19345}
19346static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19347 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19348}
19349static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19350 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19351}
19352static void *_p_wxDCTo_p_wxObject(void *x) {
19353 return (void *)((wxObject *) ((wxDC *) x));
19354}
19355static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19356 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19357}
19358static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19359 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19360}
19361static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19362 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19363}
19364static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19365 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19366}
19367static void *_p_wxControlTo_p_wxObject(void *x) {
19368 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19369}
19370static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19371 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19372}
19373static void *_p_wxClientDCTo_p_wxObject(void *x) {
19374 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19375}
19376static void *_p_wxFSFileTo_p_wxObject(void *x) {
19377 return (void *)((wxObject *) ((wxFSFile *) x));
19378}
19379static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19380 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19381}
19382static void *_p_wxRegionTo_p_wxObject(void *x) {
19383 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19384}
19385static void *_p_wxPySizerTo_p_wxObject(void *x) {
19386 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19387}
19388static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19389 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19390}
19391static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19392 return (void *)((wxObject *) ((wxGDIObject *) x));
19393}
19394static void *_p_wxEffectsTo_p_wxObject(void *x) {
19395 return (void *)((wxObject *) ((wxEffects *) x));
19396}
19397static void *_p_wxPyEventTo_p_wxObject(void *x) {
19398 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19399}
19400static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19401 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19402}
19403static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19404 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19405}
19406static void *_p_wxShowEventTo_p_wxObject(void *x) {
19407 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19408}
19409static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19410 return (void *)((wxObject *) ((wxMenuItem *) x));
19411}
19412static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19413 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19414}
19415static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19416 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19417}
19418static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19419 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19420}
19421static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19422 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19423}
19424static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19425 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19426}
19427static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19428 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19429}
19430static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19431 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19432}
19433static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19434 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19435}
19436static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19437 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19438}
19439static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19440 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19441}
19442static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19443 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19444}
19445static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19446 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19447}
19448static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19449 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19450}
19451static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19452 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19453}
19454static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19455 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19456}
19457static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19458 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19459}
19460static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19462}
19463static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19464 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19465}
19466static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19467 return (void *)((wxObject *) ((wxImageHandler *) x));
19468}
19469static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19470 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19471}
19472static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19473 return (void *)((wxObject *) ((wxEvtHandler *) x));
19474}
19475static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19476 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19477}
19478static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19479 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19480}
19481static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19482 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19483}
19484static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19485 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19486}
19487static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19488 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19489}
19490static void *_p_wxImageTo_p_wxObject(void *x) {
19491 return (void *)((wxObject *) ((wxImage *) x));
19492}
19493static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19494 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19495}
19496static void *_p_wxPaletteTo_p_wxObject(void *x) {
19497 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19498}
19499static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19500 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19501}
19502static void *_p_wxImageListTo_p_wxObject(void *x) {
19503 return (void *)((wxObject *) ((wxImageList *) x));
19504}
19505static void *_p_wxCursorTo_p_wxObject(void *x) {
19506 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19507}
19508static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19509 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19510}
19511static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19512 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19513}
19514static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19515 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19516}
19517static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19518 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19519}
19520static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19521 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19522}
19523static void *_p_wxWindowTo_p_wxObject(void *x) {
19524 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19525}
19526static void *_p_wxMenuTo_p_wxObject(void *x) {
19527 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19528}
19529static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19530 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19531}
19532static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19533 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19534}
19535static void *_p_wxBrushListTo_p_wxObject(void *x) {
19536 return (void *)((wxObject *) ((wxBrushList *) x));
19537}
d55e5bfc
RD
19538static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19539 return (void *)((wxObject *) ((wxFileSystem *) x));
19540}
19541static void *_p_wxBitmapTo_p_wxObject(void *x) {
19542 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19543}
19544static void *_p_wxMaskTo_p_wxObject(void *x) {
19545 return (void *)((wxObject *) ((wxMask *) x));
19546}
19547static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19549}
19550static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19551 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19552}
19553static void *_p_wxPyAppTo_p_wxObject(void *x) {
19554 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19555}
19556static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19557 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19558}
19559static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19560 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19561}
19562static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19563 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19564}
19565static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19567}
19568static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19569 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19570}
19571static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19572 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19573}
19574static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19575 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19576}
19577static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19578 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19579}
19580static void *_p_wxFontTo_p_wxObject(void *x) {
19581 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19582}
19583static void *_p_wxBrushTo_p_wxObject(void *x) {
19584 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19585}
19586static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19587 return (void *)((wxObject *) ((wxMetaFile *) x));
19588}
19589static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19590 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19591}
19592static void *_p_wxColourTo_p_wxObject(void *x) {
19593 return (void *)((wxObject *) ((wxColour *) x));
19594}
19595static void *_p_wxFontListTo_p_wxObject(void *x) {
19596 return (void *)((wxObject *) ((wxFontList *) x));
19597}
19598static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19599 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19600}
19601static void *_p_wxValidatorTo_p_wxObject(void *x) {
19602 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19603}
19604static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19605 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19606}
19607static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19608 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19609}
19610static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19611 return (void *)((wxDC *) ((wxScreenDC *) x));
19612}
19613static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19614 return (void *)((wxDC *) ((wxMirrorDC *) x));
19615}
19616static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19617 return (void *)((wxDC *) ((wxMemoryDC *) x));
19618}
19619static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19620 return (void *)((wxDC *) ((wxWindowDC *) x));
19621}
19622static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19623 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19624}
19625static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19626 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19627}
19628static void *_p_wxClientDCTo_p_wxDC(void *x) {
19629 return (void *)((wxDC *) ((wxClientDC *) x));
19630}
19631static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19632 return (void *)((wxDC *) ((wxPaintDC *) x));
19633}
19634static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19635 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19636}
19637static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19638 return (void *)((wxDC *) ((wxPrinterDC *) x));
19639}
d55e5bfc
RD
19640static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19641 return (void *)((wxGDIObject *) ((wxIcon *) x));
19642}
19643static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19644 return (void *)((wxGDIObject *) ((wxPalette *) x));
19645}
19646static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19647 return (void *)((wxGDIObject *) ((wxPen *) x));
19648}
19649static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19650 return (void *)((wxGDIObject *) ((wxFont *) x));
19651}
19652static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19653 return (void *)((wxGDIObject *) ((wxCursor *) x));
19654}
19655static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19656 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19657}
19658static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19659 return (void *)((wxGDIObject *) ((wxRegion *) x));
19660}
19661static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19662 return (void *)((wxGDIObject *) ((wxBrush *) x));
19663}
d55e5bfc
RD
19664static 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}};
19665static 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}};
19666static 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}};
19667static 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}};
19668static 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}};
19669static 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}};
19670static 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}};
19671static 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}};
19672static 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}};
19673static 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}};
19674static 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}};
19675static 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}};
19676static 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}};
19677static 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}};
19678static 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}};
19679static 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}};
19680static 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}};
19681static 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}};
19682static 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}};
19683static 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}};
19684static 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}};
19685static 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}};
d6c14a4c 19686static 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
19687static 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}};
19688static 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}};
19689static 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}};
19690static 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}};
19691static 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}};
19692static 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}};
19693static 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}};
19694static 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}};
19695static 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}};
19696static 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}};
19697static 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}};
19698static 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}};
19699static 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}};
d6c14a4c 19700static 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
19701static 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}};
19702static 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}};
19703static 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 19704static 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}};
d6c14a4c 19705static 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
19706static 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}};
19707static 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}};
19708static 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}};
19709static 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}};
d6c14a4c 19710static 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
19711static 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}};
19712static 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}};
19713static 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
19714static 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}};
19715static 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}};
19716static 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}};
19717static 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}};
19718static 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}};
19719
19720static swig_type_info *swig_types_initial[] = {
19721_swigt__p_wxPostScriptDC,
19722_swigt__p_wxBrush,
19723_swigt__p_wxColour,
19724_swigt__p_wxDC,
19725_swigt__p_wxMirrorDC,
19726_swigt__p_byte,
19727_swigt__p_wxPyFontEnumerator,
19728_swigt__p_char,
19729_swigt__p_wxIconLocation,
19730_swigt__p_wxImage,
19731_swigt__p_wxMetaFileDC,
19732_swigt__p_wxMask,
19733_swigt__p_wxSize,
19734_swigt__p_wxFont,
19735_swigt__p_wxWindow,
19736_swigt__p_double,
19737_swigt__p_wxMemoryDC,
19738_swigt__p_wxFontMapper,
19739_swigt__p_wxEffects,
19740_swigt__p_wxNativeEncodingInfo,
19741_swigt__p_wxPalette,
19742_swigt__p_wxBitmap,
19743_swigt__p_wxObject,
19744_swigt__p_wxRegionIterator,
19745_swigt__p_wxRect,
19746_swigt__p_wxString,
19747_swigt__p_wxPrinterDC,
19748_swigt__p_wxIconBundle,
19749_swigt__p_wxPoint,
19750_swigt__p_wxDash,
19751_swigt__p_wxScreenDC,
19752_swigt__p_wxCursor,
19753_swigt__p_wxClientDC,
19754_swigt__p_wxBufferedDC,
19755_swigt__p_wxImageList,
19756_swigt__p_unsigned_char,
19757_swigt__p_wxGDIObject,
19758_swigt__p_wxIcon,
19759_swigt__p_wxLocale,
19760_swigt__p_wxRegion,
d55e5bfc 19761_swigt__p_wxLanguageInfo,
d6c14a4c 19762_swigt__p_wxConfigBase,
d55e5bfc
RD
19763_swigt__p_wxWindowDC,
19764_swigt__p_wxPrintData,
19765_swigt__p_wxBrushList,
19766_swigt__p_wxFontList,
19767_swigt__p_wxPen,
19768_swigt__p_wxBufferedPaintDC,
19769_swigt__p_wxPaintDC,
19770_swigt__p_wxPenList,
d55e5bfc
RD
19771_swigt__p_int,
19772_swigt__p_wxMetaFile,
19773_swigt__p_wxNativeFontInfo,
19774_swigt__p_wxEncodingConverter,
19775_swigt__p_wxColourDatabase,
197760
19777};
19778
19779
19780/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19781
19782static swig_const_info swig_const_table[] = {
c370783e 19783{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
19784
19785#ifdef __cplusplus
19786}
19787#endif
19788
19789#ifdef __cplusplus
19790extern "C"
19791#endif
19792SWIGEXPORT(void) SWIG_init(void) {
19793 static PyObject *SWIG_globals = 0;
19794 static int typeinit = 0;
19795 PyObject *m, *d;
19796 int i;
19797 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19798 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19799 d = PyModule_GetDict(m);
19800
19801 if (!typeinit) {
19802 for (i = 0; swig_types_initial[i]; i++) {
19803 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19804 }
19805 typeinit = 1;
19806 }
19807 SWIG_InstallConstants(d,swig_const_table);
19808
c370783e
RD
19809 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19810 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19811 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19812 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19813 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19814 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19815 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19816 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19817 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19818 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19819 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19820 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19821 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19822 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19823 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19824 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19825 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19826 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19827 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19828 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19829 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19830 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19831 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19832 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19833 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19834 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19835 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19836 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19837 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19838 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19839 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19840 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19841 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19842 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19843 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19844 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19845 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19846 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19847 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19848 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19849 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19850 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19851 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19852 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19853 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19854 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19855 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19856 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19857 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19858 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19859 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19860 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19861 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19862 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19863 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19864 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19865 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19866 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19867 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19868 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19869 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19870 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19871 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19872 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19873 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19874 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19875 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19876 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19877 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19878 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19879 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19880 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19881 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19882 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19883 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19884 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19885 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19886 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19887 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19888 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19889 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19890 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19891 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19892 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19893 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19894 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19895 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19896 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19897 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19898 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19899 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19900 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19901 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19902 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19903 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19904 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19905 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19906 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19907 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19908 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19909 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19910 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19911 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19912 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19913 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19914 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19915 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19916 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19917 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19918 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19919 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19920 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19921 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19922 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19923 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19924 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19925 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19926 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19927 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19928 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19929 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19930 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19931 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19932 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19933 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19934 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19935 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
d55e5bfc
RD
19936
19937 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19938
c370783e
RD
19939 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19940 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19941 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19942 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19943 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19944 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19945 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19946 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19947 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19948 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19949 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19950 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19951 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19952 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19953 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19954 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19955 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19956 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19957 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19958 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19959 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19960 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19961 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19962 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19963 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19964 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19965 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19966 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19967 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19968 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19969 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19970 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
19971 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
19972 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
19973 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
19974 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
19975 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
19976 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
19977 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
19978 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
19979 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
19980 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
19981 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
19982 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
19983 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19984 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19985 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
19986 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
19987 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
19988 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
19989 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
19990 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
19991 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
19992 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
19993 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
19994 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
19995 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
19996 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
19997 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
19998 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19999 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
20000 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20001 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
20002 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20003 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
20004 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
20005 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
20006 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20007 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20008 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20009 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20010 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20011 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
20012 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
20013 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
20014 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
20015 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
20016 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
20017 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
20018 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
20019 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
20020 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20021 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
20022 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
20023 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
20024 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
20025 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
20026 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
20027 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20028 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
20029 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20030 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20031 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
20032 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
20033 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
20034 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
20035 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
20036 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
20037 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
20038 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
20039 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
20040 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
20041 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
20042 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
20043 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
20044 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
20045 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
20046 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
20047 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
20048 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
20049 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
20050 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
20051 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
20052 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
20053 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
20054 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
20055 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
20056 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
20057 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
20058 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
20059 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
20060 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
20061 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
20062 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
20063 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
20064 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
20065 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
20066 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
20067 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
20068 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
20069 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
20070 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
20071 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20072 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
20073 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
20074 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
20075 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
20076 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
20077 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
20078 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
20079 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
20080 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
20081 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
20082 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20083 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20084 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
20085 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
20086 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
20087 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
20088 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
20089 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
20090 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20091 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
20092 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
20093 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
20094 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
20095 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
20096 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20097 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
20098 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
20099 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
20100 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
20101 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
20102 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20103 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
20104 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
20105 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
20106 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
20107 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
20108 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
20109 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
20110 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
20111 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
20112 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
20113 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
20114 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
20115 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
20116 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
20117 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
20118 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
20119 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20120 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20121 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
20122 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20123 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
20124 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
20125 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
20126 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
20127 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
20128 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
20129 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
20130 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
20131 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20132 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
20133 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
20134 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
20135 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
20136 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
20137 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
20138 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
20139 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
20140 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
20141 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
20142 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
20143 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
20144 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
20145 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
20146 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
20147 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
20148 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
20149 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
20150 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
20151 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
20152 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
20153 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
20154 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
20155 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
20156 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
20157 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
20158 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
20159 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
20160 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
20161 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
20162 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
20163 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
20164 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
20165 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
20166 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
20167 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
20168 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
20169 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
20170 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
20171 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
20172 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
20173 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
20174 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
20175 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
20176 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
20177 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
20178 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
20179 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
20180 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
20181 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
20182 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
20183 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20184 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20185 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20186 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20187 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20188 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20189 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20190 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20191 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
d55e5bfc
RD
20192 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20193 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20194 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20195 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20196 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20197 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20198 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20199 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20200 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20201 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20202 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20203 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20204 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20205 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20206 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20207 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20208 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20209 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20210 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20211 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20212 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20213 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20214 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20215 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20216 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20217 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20218 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20219 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20220 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20221 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20222 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20223 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20224 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20225 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20226 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20227 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20228 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20229 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20230 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20231 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20232 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20233 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20234 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20235 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20236 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20237 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20238 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20239
20240 // Work around a chicken/egg problem in drawlist.cpp
20241 wxPyDrawList_SetAPIPtr();
20242
20243}
20244